/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */
/*!@preserve
 * Tempus Dominus Bootstrap4 v5.39.0 (https://tempusdominus.github.io/bootstrap-4/)
 * Copyright 2016-2020 Jonathan Peterson and contributors
 * Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)
 */
if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=[],n=t.document,a=Object.getPrototypeOf,r=i.slice,o=i.concat,s=i.push,l=i.indexOf,c={},u=c.toString,d=c.hasOwnProperty,h=d.toString,f=h.call(Object),p={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},g=function(t){return null!=t&&t===t.window},v={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,i){var a,r,o=(i=i||n).createElement("script");if(o.text=t,e)for(a in v)(r=e[a]||e.getAttribute&&e.getAttribute(a))&&o.setAttribute(a,r);i.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[u.call(t)]||"object":typeof t}var _="3.4.1",x=function(t,e){return new x.fn.init(t,e)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!m(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}x.fn=x.prototype={jquery:_,constructor:x,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var t,e,i,n,a,r,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||m(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&o!==n&&(c&&n&&(x.isPlainObject(n)||(a=Array.isArray(n)))?(i=o[e],r=a&&!Array.isArray(i)?[]:a||x.isPlainObject(i)?i:{},a=!1,o[e]=x.extend(c,r,n)):void 0!==n&&(o[e]=n));return o},x.extend({expando:"jQuery"+(_+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==u.call(t))&&(!(e=a(t))||"function"==typeof(i=d.call(e,"constructor")&&e.constructor)&&h.call(i)===f)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){y(t,{nonce:e&&e.nonce})},each:function(t,e){var i,n=0;if(k(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(w,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(k(Object(t))?x.merge(i,"string"==typeof t?[t]:t):s.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:l.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,a=t.length;n<i;n++)t[a++]=e[n];return t.length=a,t},grep:function(t,e,i){for(var n=[],a=0,r=t.length,o=!i;a<r;a++)!e(t[a],a)!==o&&n.push(t[a]);return n},map:function(t,e,i){var n,a,r=0,s=[];if(k(t))for(n=t.length;r<n;r++)null!=(a=e(t[r],r,i))&&s.push(a);else for(r in t)null!=(a=e(t[r],r,i))&&s.push(a);return o.apply([],s)},guid:1,support:p}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var S=
/*!
 * Sizzle CSS Selector Engine v2.3.4
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2019-04-08
 */
function(t){var e,i,n,a,r,o,s,l,c,u,d,h,f,p,m,g,v,y,b,_="sizzle"+1*new Date,x=t.document,w=0,k=0,S=lt(),M=lt(),L=lt(),T=lt(),C=function(t,e){return t===e&&(d=!0),0},A={}.hasOwnProperty,D=[],E=D.pop,O=D.push,P=D.push,Y=D.slice,I=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\[[\\x20\\t\\r\\n\\f]*("+j+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+H+"*\\]",R=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(H+"+","g"),$=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),B=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]*"),V=new RegExp(H+"|>"),q=new RegExp(R),U=new RegExp("^"+j+"$"),X={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+R),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("^(?:"+N+")$","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,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),it=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,at=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},ot=_t((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(D=Y.call(x.childNodes),x.childNodes),D[x.childNodes.length].nodeType}catch(t){P={apply:D.length?function(t,e){O.apply(t,Y.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,a){var r,s,c,u,d,p,v,y=e&&e.ownerDocument,w=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==w&&9!==w&&11!==w)return n;if(!a&&((e?e.ownerDocument||e:x)!==f&&h(e),e=e||f,m)){if(11!==w&&(d=Q.exec(t)))if(r=d[1]){if(9===w){if(!(c=e.getElementById(r)))return n;if(c.id===r)return n.push(c),n}else if(y&&(c=y.getElementById(r))&&b(e,c)&&c.id===r)return n.push(c),n}else{if(d[2])return P.apply(n,e.getElementsByTagName(t)),n;if((r=d[3])&&i.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(r)),n}if(i.qsa&&!T[t+" "]&&(!g||!g.test(t))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===w&&V.test(t)){for((u=e.getAttribute("id"))?u=u.replace(nt,at):e.setAttribute("id",u=_),s=(p=o(t)).length;s--;)p[s]="#"+u+" "+bt(p[s]);v=p.join(","),y=tt.test(t)&&vt(e.parentNode)||e}try{return P.apply(n,y.querySelectorAll(v)),n}catch(e){T(t,!0)}finally{u===_&&e.removeAttribute("id")}}}return l(t.replace($,"$1"),e,n,a)}function lt(){var t=[];return function e(i,a){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=a}}function ct(t){return t[_]=!0,t}function ut(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var i=t.split("|"),a=i.length;a--;)n.attrHandle[i[a]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function mt(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&&ot(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct((function(e){return e=+e,ct((function(i,n){for(var a,r=t([],i.length,e),o=r.length;o--;)i[a=r[o]]&&(i[a]=!(n[a]=i[a]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},r=st.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!G.test(e||i&&i.nodeName||"HTML")},h=st.setDocument=function(t){var e,a,o=t?t.ownerDocument||t:x;return o!==f&&9===o.nodeType&&o.documentElement?(p=(f=o).documentElement,m=!r(f),x!==f&&(a=f.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",rt,!1):a.attachEvent&&a.attachEvent("onunload",rt)),i.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ut((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(f.getElementsByClassName),i.getById=ut((function(t){return p.appendChild(t).id=_,!f.getElementsByName||!f.getElementsByName(_).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i,n,a,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(a=e.getElementsByName(t),n=0;r=a[n++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],a=0,r=e.getElementsByTagName(t);if("*"===t){for(;i=r[a++];)1===i.nodeType&&n.push(i);return n}return r},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(i.qsa=J.test(f.querySelectorAll))&&(ut((function(t){p.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")})),ut((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ut((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",R)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(p.compareDocumentPosition),b=e||J.test(p.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},C=e?function(t,e){if(t===e)return d=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===f||t.ownerDocument===x&&b(x,t)?-1:e===f||e.ownerDocument===x&&b(x,e)?1:u?I(u,t)-I(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return d=!0,0;var i,n=0,a=t.parentNode,r=e.parentNode,o=[t],s=[e];if(!a||!r)return t===f?-1:e===f?1:a?-1:r?1:u?I(u,t)-I(u,e):0;if(a===r)return ht(t,e);for(i=t;i=i.parentNode;)o.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;o[n]===s[n];)n++;return n?ht(o[n],s[n]):o[n]===x?-1:s[n]===x?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if((t.ownerDocument||t)!==f&&h(t),i.matchesSelector&&m&&!T[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){T(e,!0)}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!==f&&h(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!==f&&h(t);var a=n.attrHandle[e.toLowerCase()],r=a&&A.call(n.attrHandle,e.toLowerCase())?a(t,e,!m):void 0;return void 0!==r?r:i.attributes||!m?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},st.escape=function(t){return(t+"").replace(nt,at)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],a=0,r=0;if(d=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(C),d){for(;e=t[r++];)e===t[r]&&(a=n.push(r));for(;a--;)t.splice(n[a],1)}return u=null,t},a=st.getText=function(t){var e,i="",n=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)i+=a(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=a(e);return i},(n=st.selectors={cacheLength:50,createPseudo:ct,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,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===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,i=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&q.test(i)&&(e=o(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+H+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var a=st.attr(n,t);return null==a?"!="===e:!e||(a+="","="===e?a===i:"!="===e?a!==i:"^="===e?i&&0===a.indexOf(i):"*="===e?i&&a.indexOf(i)>-1:"$="===e?i&&a.slice(-i.length)===i:"~="===e?(" "+a.replace(z," ")+" ").indexOf(i)>-1:"|="===e&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,a){var r="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===a?function(t){return!!t.parentNode}:function(e,i,l){var c,u,d,h,f,p,m=r!==o?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(r){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&y){for(b=(f=(c=(u=(d=(h=g)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===w&&c[1])&&c[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){u[t]=[w,f,b];break}}else if(y&&(b=f=(c=(u=(d=(h=e)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===w&&c[1]),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[w,b]),h!==e)););return(b-=a)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,a=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return a[_]?a(e):a.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,i){for(var n,r=a(t,e),o=r.length;o--;)t[n=I(t,r[o])]=!(i[n]=r[o])})):function(t){return a(t,0,i)}):a}},pseudos:{not:ct((function(t){var e=[],i=[],n=s(t.replace($,"$1"));return n[_]?ct((function(t,e,i,a){for(var r,o=n(t,null,a,[]),s=t.length;s--;)(r=o[s])&&(t[s]=!(e[s]=r))})):function(t,a,r){return e[0]=t,n(e,null,r,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return(e.textContent||a(e)).indexOf(t)>-1}})),lang:ct((function(t){return U.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!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!n.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return K.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:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,i){return[i<0?i+e:i]})),even:gt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:gt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:gt((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:gt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ft(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=pt(e);function yt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function _t(t,e,i){var n=e.dir,a=e.next,r=a||n,o=i&&"parentNode"===r,s=k++;return e.first?function(e,i,a){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,a);return!1}:function(e,i,l){var c,u,d,h=[w,s];if(l){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||o)if(u=(d=e[_]||(e[_]={}))[e.uniqueID]||(d[e.uniqueID]={}),a&&a===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=u[r])&&c[0]===w&&c[1]===s)return h[2]=c[2];if(u[r]=h,h[2]=t(e,i,l))return!0}return!1}}function xt(t){return t.length>1?function(e,i,n){for(var a=t.length;a--;)if(!t[a](e,i,n))return!1;return!0}:t[0]}function wt(t,e,i,n,a){for(var r,o=[],s=0,l=t.length,c=null!=e;s<l;s++)(r=t[s])&&(i&&!i(r,n,a)||(o.push(r),c&&e.push(s)));return o}function kt(t,e,i,n,a,r){return n&&!n[_]&&(n=kt(n)),a&&!a[_]&&(a=kt(a,r)),ct((function(r,o,s,l){var c,u,d,h=[],f=[],p=o.length,m=r||function(t,e,i){for(var n=0,a=e.length;n<a;n++)st(t,e[n],i);return i}(e||"*",s.nodeType?[s]:s,[]),g=!t||!r&&e?m:wt(m,h,t,s,l),v=i?a||(r?t:p||n)?[]:o:g;if(i&&i(g,v,s,l),n)for(c=wt(v,f),n(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(g[f[u]]=d));if(r){if(a||t){if(a){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);a(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=a?I(r,d):h[u])>-1&&(r[c]=!(o[c]=d))}}else v=wt(v===o?v.splice(p,v.length):v),a?a(null,o,v,l):P.apply(o,v)}))}function St(t){for(var e,i,a,r=t.length,o=n.relative[t[0].type],s=o||n.relative[" "],l=o?1:0,u=_t((function(t){return t===e}),s,!0),d=_t((function(t){return I(e,t)>-1}),s,!0),h=[function(t,i,n){var a=!o&&(n||i!==c)||((e=i).nodeType?u(t,i,n):d(t,i,n));return e=null,a}];l<r;l++)if(i=n.relative[t[l].type])h=[_t(xt(h),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[_]){for(a=++l;a<r&&!n.relative[t[a].type];a++);return kt(l>1&&xt(h),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace($,"$1"),i,l<a&&St(t.slice(l,a)),a<r&&St(t=t.slice(a)),a<r&&bt(t))}h.push(i)}return xt(h)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,o=st.tokenize=function(t,e){var i,a,r,o,s,l,c,u=M[t+" "];if(u)return e?0:u.slice(0);for(s=t,l=[],c=n.preFilter;s;){for(o in i&&!(a=B.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(r=[])),i=!1,(a=W.exec(s))&&(i=a.shift(),r.push({value:i,type:a[0].replace($," ")}),s=s.slice(i.length)),n.filter)!(a=X[o].exec(s))||c[o]&&!(a=c[o](a))||(i=a.shift(),r.push({value:i,type:o,matches:a}),s=s.slice(i.length));if(!i)break}return e?s.length:s?st.error(t):M(t,l).slice(0)},s=st.compile=function(t,e){var i,a=[],r=[],s=L[t+" "];if(!s){for(e||(e=o(t)),i=e.length;i--;)(s=St(e[i]))[_]?a.push(s):r.push(s);(s=L(t,function(t,e){var i=e.length>0,a=t.length>0,r=function(r,o,s,l,u){var d,p,g,v=0,y="0",b=r&&[],_=[],x=c,k=r||a&&n.find.TAG("*",u),S=w+=null==x?1:Math.random()||.1,M=k.length;for(u&&(c=o===f||o||u);y!==M&&null!=(d=k[y]);y++){if(a&&d){for(p=0,o||d.ownerDocument===f||(h(d),s=!m);g=t[p++];)if(g(d,o||f,s)){l.push(d);break}u&&(w=S)}i&&((d=!g&&d)&&v--,r&&b.push(d))}if(v+=y,i&&y!==v){for(p=0;g=e[p++];)g(b,_,o,s);if(r){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=E.call(l));_=wt(_)}P.apply(l,_),u&&!r&&_.length>0&&v+e.length>1&&st.uniqueSort(l)}return u&&(w=S,c=x),b};return i?ct(r):r}(r,a))).selector=t}return s},l=st.select=function(t,e,i,a){var r,l,c,u,d,h="function"==typeof t&&t,f=!a&&o(t=h.selector||t);if(i=i||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(r=X.needsContext.test(t)?0:l.length;r--&&(c=l[r],!n.relative[u=c.type]);)if((d=n.find[u])&&(a=d(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(r,1),!(t=a.length&&bt(l)))return P.apply(i,a),i;break}}return(h||s(t,f))(a,e,!m,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=_.split("").sort(C).join("")===_,i.detectDuplicates=!!d,h(),i.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||dt(N,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),st}(t);x.find=S,x.expr=S.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var M=function(t,e,i){for(var n=[],a=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(a&&x(t).is(i))break;n.push(t)}return n},L=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},T=x.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(t,e,i){return m(e)?x.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?x.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?x.grep(t,(function(t){return l.call(e,t)>-1!==i})):x.filter(e,t,i)}x.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?x.find.matchesSelector(n,t)?[n]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,i,n=this.length,a=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<n;e++)if(x.contains(a[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)x.find(t,a[e],i);return n>1?x.uniqueSort(i):i},filter:function(t){return this.pushStack(D(this,t||[],!1))},not:function(t){return this.pushStack(D(this,t||[],!0))},is:function(t){return!!D(this,"string"==typeof t&&T.test(t)?x(t):t||[],!1).length}});var E,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,i){var a,r;if(!t)return this;if(i=i||E,"string"==typeof t){if(!(a="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:O.exec(t))||!a[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(a[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(a[1],e&&e.nodeType?e.ownerDocument||e:n,!0)),A.test(a[1])&&x.isPlainObject(e))for(a in e)m(this[a])?this[a](e[a]):this.attr(a,e[a]);return this}return(r=n.getElementById(a[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==i.ready?i.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,E=x(n);var P=/^(?:parents|prev(?:Until|All))/,Y={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,a=this.length,r=[],o="string"!=typeof t&&x(t);if(!T.test(t))for(;n<a;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&x.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(r.length>1?x.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?l.call(x(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return M(t,"parentNode")},parentsUntil:function(t,e,i){return M(t,"parentNode",i)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return M(t,"nextSibling")},prevAll:function(t){return M(t,"previousSibling")},nextUntil:function(t,e,i){return M(t,"nextSibling",i)},prevUntil:function(t,e,i){return M(t,"previousSibling",i)},siblings:function(t){return L((t.parentNode||{}).firstChild,t)},children:function(t){return L(t.firstChild)},contents:function(t){return void 0!==t.contentDocument?t.contentDocument:(C(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(i,n){var a=x.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=x.filter(n,a)),this.length>1&&(Y[t]||x.uniqueSort(a),P.test(t)&&a.reverse()),this.pushStack(a)}}));var N=/[^\x20\t\r\n\f]+/g;function H(t){return t}function j(t){throw t}function F(t,e,i,n){var a;try{t&&m(a=t.promise)?a.call(t).done(e).fail(i):t&&m(a=t.then)?a.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(N)||[],(function(t,i){e[i]=!0})),e}(t):x.extend({},t);var e,i,n,a,r=[],o=[],s=-1,l=function(){for(a=a||t.once,n=e=!0;o.length;s=-1)for(i=o.shift();++s<r.length;)!1===r[s].apply(i[0],i[1])&&t.stopOnFalse&&(s=r.length,i=!1);t.memory||(i=!1),e=!1,a&&(r=i?[]:"")},c={add:function(){return r&&(i&&!e&&(s=r.length-1,o.push(i)),function e(i){x.each(i,(function(i,n){m(n)?t.unique&&c.has(n)||r.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return x.each(arguments,(function(t,e){for(var i;(i=x.inArray(e,r,i))>-1;)r.splice(i,1),i<=s&&s--})),this},has:function(t){return t?x.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=o=[],r=i="",this},disabled:function(){return!r},lock:function(){return a=o=[],i||e||(r=i=""),this},locked:function(){return!!a},fireWith:function(t,i){return a||(i=[t,(i=i||[]).slice?i.slice():i],o.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(e){x.each(i,(function(i,n){var a=m(t[n[4]])&&t[n[4]];r[n[1]]((function(){var t=a&&a.apply(this,arguments);t&&m(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,a?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,a){var r=0;function o(e,i,n,a){return function(){var s=this,l=arguments,c=function(){var t,c;if(!(e<r)){if((t=n.apply(s,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,m(c)?a?c.call(t,o(r,i,H,a),o(r,i,j,a)):(r++,c.call(t,o(r,i,H,a),o(r,i,j,a),o(r,i,H,i.notifyWith))):(n!==H&&(s=void 0,l=[t]),(a||i.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,u.stackTrace),e+1>=r&&(n!==j&&(s=void 0,l=[t]),i.rejectWith(s,l))}};e?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),t.setTimeout(u))}}return x.Deferred((function(t){i[0][3].add(o(0,t,m(a)?a:H,t.notifyWith)),i[1][3].add(o(0,t,m(e)?e:H)),i[2][3].add(o(0,t,m(n)?n:j))})).promise()},promise:function(t){return null!=t?x.extend(t,a):a}},r={};return x.each(i,(function(t,e){var o=e[2],s=e[5];a[e[1]]=o.add,s&&o.add((function(){n=s}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),o.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=o.fireWith})),a.promise(r),e&&e.call(r,r),r},when:function(t){var e=arguments.length,i=e,n=Array(i),a=r.call(arguments),o=x.Deferred(),s=function(t){return function(i){n[t]=this,a[t]=arguments.length>1?r.call(arguments):i,--e||o.resolveWith(n,a)}};if(e<=1&&(F(t,o.done(s(i)).resolve,o.reject,!e),"pending"===o.state()||m(a[i]&&a[i].then)))return o.then();for(;i--;)F(a[i],s(i),o.reject);return o.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&R.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},x.readyException=function(e){t.setTimeout((function(){throw e}))};var z=x.Deferred();function $(){n.removeEventListener("DOMContentLoaded",$),t.removeEventListener("load",$),x.ready()}x.fn.ready=function(t){return z.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||z.resolveWith(n,[x]))}}),x.ready.then=z.then,"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?t.setTimeout(x.ready):(n.addEventListener("DOMContentLoaded",$),t.addEventListener("load",$));var B=function(t,e,i,n,a,r,o){var s=0,l=t.length,c=null==i;if("object"===b(i))for(s in a=!0,i)B(t,e,s,i[s],!0,r,o);else if(void 0!==n&&(a=!0,m(n)||(o=!0),c&&(o?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(x(t),i)})),e))for(;s<l;s++)e(t[s],i,o?n:n.call(t[s],s,e(t[s],i)));return a?t:c?e.call(t):l?e(t[0],i):r},W=/^-ms-/,V=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function U(t){return t.replace(W,"ms-").replace(V,q)}var X=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function G(){this.expando=x.expando+G.uid++}G.uid=1,G.prototype={cache:function(t){var e=t[this.expando];return e||(e={},X(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,a=this.cache(t);if("string"==typeof e)a[U(e)]=i;else for(n in e)a[U(n)]=e[n];return a},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][U(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(U):(e=U(e))in n?[e]:e.match(N)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||x.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var K=new G,Z=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function tt(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:J.test(t)?JSON.parse(t):t)}(i)}catch(t){}Z.set(t,e,i)}else i=void 0;return i}x.extend({hasData:function(t){return Z.hasData(t)||K.hasData(t)},data:function(t,e,i){return Z.access(t,e,i)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,i){return K.access(t,e,i)},_removeData:function(t,e){K.remove(t,e)}}),x.fn.extend({data:function(t,e){var i,n,a,r=this[0],o=r&&r.attributes;if(void 0===t){if(this.length&&(a=Z.get(r),1===r.nodeType&&!K.get(r,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&0===(n=o[i].name).indexOf("data-")&&(n=U(n.slice(5)),tt(r,n,a[n]));K.set(r,"hasDataAttrs",!0)}return a}return"object"==typeof t?this.each((function(){Z.set(this,t)})):B(this,(function(e){var i;if(r&&void 0===e)return void 0!==(i=Z.get(r,t))||void 0!==(i=tt(r,t))?i: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)}))}}),x.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=K.get(t,e),i&&(!n||Array.isArray(i)?n=K.access(t,e,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=x.queue(t,e),n=i.length,a=i.shift(),r=x._queueHooks(t,e);"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===e&&i.unshift("inprogress"),delete r.stop,a.call(t,(function(){x.dequeue(t,e)}),r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return K.get(t,i)||K.access(t,i,{empty:x.Callbacks("once memory").add((function(){K.remove(t,[e+"queue",i])}))})}}),x.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?x.queue(this[0],t):void 0===e?this:this.each((function(){var i=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,a=x.Deferred(),r=this,o=this.length,s=function(){--n||a.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(i=K.get(r[o],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),a.promise(e)}});var et=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+et+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],at=n.documentElement,rt=function(t){return x.contains(t.ownerDocument,t)},ot={composed:!0};at.getRootNode&&(rt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===x.css(t,"display")},lt=function(t,e,i,n){var a,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in a=i.apply(t,n||[]),e)t.style[r]=o[r];return a};function ct(t,e,i,n){var a,r,o=20,s=n?function(){return n.cur()}:function(){return x.css(t,e,"")},l=s(),c=i&&i[3]||(x.cssNumber[e]?"":"px"),u=t.nodeType&&(x.cssNumber[e]||"px"!==c&&+l)&&it.exec(x.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)x.style(t,e,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(o=0),u/=r;u*=2,x.style(t,e,u+c),i=i||[]}return i&&(u=+u||+l||0,a=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=a)),a}var ut={};function dt(t){var e,i=t.ownerDocument,n=t.nodeName,a=ut[n];return a||(e=i.body.appendChild(i.createElement(n)),a=x.css(e,"display"),e.parentNode.removeChild(e),"none"===a&&(a="block"),ut[n]=a,a)}function ht(t,e){for(var i,n,a=[],r=0,o=t.length;r<o;r++)(n=t[r]).style&&(i=n.style.display,e?("none"===i&&(a[r]=K.get(n,"display")||null,a[r]||(n.style.display="")),""===n.style.display&&st(n)&&(a[r]=dt(n))):"none"!==i&&(a[r]="none",K.set(n,"display",i)));for(r=0;r<o;r++)null!=a[r]&&(t[r].style.display=a[r]);return t}x.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?x(this).show():x(this).hide()}))}});var ft=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i,gt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?x.merge([t],i):i}function yt(t,e){for(var i=0,n=t.length;i<n;i++)K.set(t[i],"globalEval",!e||K.get(e[i],"globalEval"))}gt.optgroup=gt.option,gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td;var bt,_t,xt=/<|&#?\w+;/;function wt(t,e,i,n,a){for(var r,o,s,l,c,u,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===b(r))x.merge(h,r.nodeType?[r]:r);else if(xt.test(r)){for(o=o||d.appendChild(e.createElement("div")),s=(pt.exec(r)||["",""])[1].toLowerCase(),l=gt[s]||gt._default,o.innerHTML=l[1]+x.htmlPrefilter(r)+l[2],u=l[0];u--;)o=o.lastChild;x.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(e.createTextNode(r));for(d.textContent="",f=0;r=h[f++];)if(n&&x.inArray(r,n)>-1)a&&a.push(r);else if(c=rt(r),o=vt(d.appendChild(r),"script"),c&&yt(o),i)for(u=0;r=o[u++];)mt.test(r.type||"")&&i.push(r);return d}bt=n.createDocumentFragment().appendChild(n.createElement("div")),(_t=n.createElement("input")).setAttribute("type","radio"),_t.setAttribute("checked","checked"),_t.setAttribute("name","t"),bt.appendChild(_t),p.checkClone=bt.cloneNode(!0).cloneNode(!0).lastChild.checked,bt.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!bt.cloneNode(!0).lastChild.defaultValue;var kt=/^key/,St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Mt=/^([^.]*)(?:\.(.+)|)/;function Lt(){return!0}function Tt(){return!1}function Ct(t,e){return t===function(){try{return n.activeElement}catch(t){}}()==("focus"===e)}function At(t,e,i,n,a,r){var o,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)At(t,s,i,n,e[s],r);return t}if(null==n&&null==a?(a=i,n=i=void 0):null==a&&("string"==typeof i?(a=n,n=void 0):(a=n,n=i,i=void 0)),!1===a)a=Tt;else if(!a)return t;return 1===r&&(o=a,(a=function(t){return x().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=x.guid++)),t.each((function(){x.event.add(this,e,a,n,i)}))}function Dt(t,e,i){i?(K.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,a,o=K.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=r.call(arguments),K.set(this,e,o),n=i(this,e),this[e](),o!==(a=K.get(this,e))||n?K.set(this,e,!1):a={},o!==a)return t.stopImmediatePropagation(),t.preventDefault(),a.value}else o.length&&(K.set(this,e,{value:x.event.trigger(x.extend(o[0],x.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,e)&&x.event.add(t,e,Lt)}x.event={global:{},add:function(t,e,i,n,a){var r,o,s,l,c,u,d,h,f,p,m,g=K.get(t);if(g)for(i.handler&&(i=(r=i).handler,a=r.selector),a&&x.find.matchesSelector(at,a),i.guid||(i.guid=x.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)f=m=(s=Mt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(a?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,p,o)||t.addEventListener&&t.addEventListener(f,o)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),a?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[f]=!0)},remove:function(t,e,i,n,a){var r,o,s,l,c,u,d,h,f,p,m,g=K.hasData(t)&&K.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(f=m=(s=Mt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},h=l[f=(n?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=h.length;r--;)u=h[r],!a&&m!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||x.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[c],i,n,!0);x.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,i,n,a,r,o,s=x.event.fix(t),l=new Array(arguments.length),c=(K.get(this,"events")||{})[s.type]||[],u=x.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(o=x.event.handlers.call(this,s,c),e=0;(a=o[e++])&&!s.isPropagationStopped();)for(s.currentTarget=a.elem,i=0;(r=a.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==r.namespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(n=((x.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,l))&&!1===(s.result=n)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var i,n,a,r,o,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],o={},i=0;i<l;i++)void 0===o[a=(n=e[i]).selector+" "]&&(o[a]=n.needsContext?x(a,this).index(c)>-1:x.find(a,this,null,[c]).length),o[a]&&r.push(n);r.length&&s.push({elem:c,handlers:r})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ft.test(e.type)&&e.click&&C(e,"input")&&Dt(e,"click",Lt),!1},trigger:function(t){var e=this||t;return ft.test(e.type)&&e.click&&C(e,"input")&&Dt(e,"click"),!0},_default:function(t){var e=t.target;return ft.test(e.type)&&e.click&&C(e,"input")&&K.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Lt:Tt,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&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Lt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Lt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Lt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.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&&kt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&St.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){x.event.special[t]={setup:function(){return Dt(this,t,Ct),!1},trigger:function(){return Dt(this,t),!0},delegateType:e}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,a=t.relatedTarget,r=t.handleObj;return a&&(a===n||x.contains(n,a))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}})),x.fn.extend({on:function(t,e,i,n){return At(this,t,e,i,n)},one:function(t,e,i,n){return At(this,t,e,i,n,1)},off:function(t,e,i){var n,a;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,x(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(a in t)this.off(a,e,t[a]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Tt),this.each((function(){x.event.remove(this,t,i,e)}))}});var Et=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ot=/<script|<style|<link/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function It(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Nt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var i,n,a,r,o,s,l,c;if(1===e.nodeType){if(K.hasData(t)&&(r=K.access(t),o=K.set(e,r),c=r.events))for(a in delete o.handle,o.events={},c)for(i=0,n=c[a].length;i<n;i++)x.event.add(e,a,c[a][i]);Z.hasData(t)&&(s=Z.access(t),l=x.extend({},s),Z.set(e,l))}}function Ft(t,e){var i=e.nodeName.toLowerCase();"input"===i&&ft.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Rt(t,e,i,n){e=o.apply([],e);var a,r,s,l,c,u,d=0,h=t.length,f=h-1,g=e[0],v=m(g);if(v||h>1&&"string"==typeof g&&!p.checkClone&&Pt.test(g))return t.each((function(a){var r=t.eq(a);v&&(e[0]=g.call(this,a,r.html())),Rt(r,e,i,n)}));if(h&&(r=(a=wt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===a.childNodes.length&&(a=r),r||n)){for(l=(s=x.map(vt(a,"script"),Nt)).length;d<h;d++)c=a,d!==f&&(c=x.clone(c,!0,!0),l&&x.merge(s,vt(c,"script"))),i.call(t[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,x.map(s,Ht),d=0;d<l;d++)c=s[d],mt.test(c.type||"")&&!K.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")}):y(c.textContent.replace(Yt,""),c,u))}return t}function zt(t,e,i){for(var n,a=e?x.filter(e,t):t,r=0;null!=(n=a[r]);r++)i||1!==n.nodeType||x.cleanData(vt(n)),n.parentNode&&(i&&rt(n)&&yt(vt(n,"script")),n.parentNode.removeChild(n));return t}x.extend({htmlPrefilter:function(t){return t.replace(Et,"<$1></$2>")},clone:function(t,e,i){var n,a,r,o,s=t.cloneNode(!0),l=rt(t);if(!(p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(o=vt(s),n=0,a=(r=vt(t)).length;n<a;n++)Ft(r[n],o[n]);if(e)if(i)for(r=r||vt(t),o=o||vt(s),n=0,a=r.length;n<a;n++)jt(r[n],o[n]);else jt(t,s);return(o=vt(s,"script")).length>0&&yt(o,!l&&vt(t,"script")),s},cleanData:function(t){for(var e,i,n,a=x.event.special,r=0;void 0!==(i=t[r]);r++)if(X(i)){if(e=i[K.expando]){if(e.events)for(n in e.events)a[n]?x.event.remove(i,n):x.removeEvent(i,n,e.handle);i[K.expando]=void 0}i[Z.expando]&&(i[Z.expando]=void 0)}}}),x.fn.extend({detach:function(t){return zt(this,t,!0)},remove:function(t){return zt(this,t)},text:function(t){return B(this,(function(t){return void 0===t?x.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 Rt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||It(this,t).appendChild(t)}))},prepend:function(){return Rt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Rt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Rt(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&&(x.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return B(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ot.test(t)&&!gt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(x.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Rt(this,arguments,(function(e){var i=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(vt(this)),i&&i.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var i,n=[],a=x(t),r=a.length-1,o=0;o<=r;o++)i=o===r?this:this.clone(!0),x(a[o])[e](i),s.apply(n,i.get());return this.pushStack(n)}}));var $t=new RegExp("^("+et+")(?!px)[a-z%]+$","i"),Bt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Wt=new RegExp(nt.join("|"),"i");function Vt(t,e,i){var n,a,r,o,s=t.style;return(i=i||Bt(t))&&(""!==(o=i.getPropertyValue(e)||i[e])||rt(t)||(o=x.style(t,e)),!p.pixelBoxStyles()&&$t.test(o)&&Wt.test(e)&&(n=s.width,a=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=i.width,s.width=n,s.minWidth=a,s.maxWidth=r)),void 0!==o?o+"":o}function qt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(c).appendChild(u);var e=t.getComputedStyle(u);a="1%"!==e.top,l=12===i(e.marginLeft),u.style.right="60%",s=36===i(e.right),r=36===i(e.width),u.style.position="absolute",o=12===i(u.offsetWidth/3),at.removeChild(c),u=null}}function i(t){return Math.round(parseFloat(t))}var a,r,o,s,l,c=n.createElement("div"),u=n.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(p,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),a},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o}}))}();var Ut=["Webkit","Moz","ms"],Xt=n.createElement("div").style,Gt={};function Kt(t){var e=x.cssProps[t]||Gt[t];return e||(t in Xt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Ut.length;i--;)if((t=Ut[i]+e)in Xt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,Jt=/^--/,Qt={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,i){var n=it.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ie(t,e,i,n,a,r){var o="width"===e?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(l+=x.css(t,i+nt[o],!0,a)),n?("content"===i&&(l-=x.css(t,"padding"+nt[o],!0,a)),"margin"!==i&&(l-=x.css(t,"border"+nt[o]+"Width",!0,a))):(l+=x.css(t,"padding"+nt[o],!0,a),"padding"!==i?l+=x.css(t,"border"+nt[o]+"Width",!0,a):s+=x.css(t,"border"+nt[o]+"Width",!0,a));return!n&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-s-.5))||0),l}function ne(t,e,i){var n=Bt(t),a=(!p.boxSizingReliable()||i)&&"border-box"===x.css(t,"boxSizing",!1,n),r=a,o=Vt(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if($t.test(o)){if(!i)return o;o="auto"}return(!p.boxSizingReliable()&&a||"auto"===o||!parseFloat(o)&&"inline"===x.css(t,"display",!1,n))&&t.getClientRects().length&&(a="border-box"===x.css(t,"boxSizing",!1,n),(r=s in t)&&(o=t[s])),(o=parseFloat(o)||0)+ie(t,e,i||(a?"border":"content"),r,n,o)+"px"}function ae(t,e,i,n,a){return new ae.prototype.init(t,e,i,n,a)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Vt(t,"opacity");return""===i?"1":i}}}},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,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,r,o,s=U(e),l=Jt.test(e),c=t.style;if(l||(e=Kt(s)),o=x.cssHooks[e]||x.cssHooks[s],void 0===i)return o&&"get"in o&&void 0!==(a=o.get(t,!1,n))?a:c[e];"string"===(r=typeof i)&&(a=it.exec(i))&&a[1]&&(i=ct(t,e,a),r="number"),null!=i&&i==i&&("number"!==r||l||(i+=a&&a[3]||(x.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var a,r,o,s=U(e);return Jt.test(e)||(e=Kt(s)),(o=x.cssHooks[e]||x.cssHooks[s])&&"get"in o&&(a=o.get(t,!0,i)),void 0===a&&(a=Vt(t,e,n)),"normal"===a&&e in te&&(a=te[e]),""===i||i?(r=parseFloat(a),!0===i||isFinite(r)?r||0:a):a}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,i,n){if(i)return!Zt.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,n):lt(t,Qt,(function(){return ne(t,e,n)}))},set:function(t,i,n){var a,r=Bt(t),o=!p.scrollboxSize()&&"absolute"===r.position,s=(o||n)&&"border-box"===x.css(t,"boxSizing",!1,r),l=n?ie(t,e,n,s,r):0;return s&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-ie(t,e,"border",!1,r)-.5)),l&&(a=it.exec(i))&&"px"!==(a[3]||"px")&&(t.style[e]=i,i=x.css(t,e)),ee(0,i,l)}}})),x.cssHooks.marginLeft=qt(p.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||t.getBoundingClientRect().left-lt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(i){for(var n=0,a={},r="string"==typeof i?i.split(" "):[i];n<4;n++)a[t+nt[n]+e]=r[n]||r[n-2]||r[0];return a}},"margin"!==t&&(x.cssHooks[t+e].set=ee)})),x.fn.extend({css:function(t,e){return B(this,(function(t,e,i){var n,a,r={},o=0;if(Array.isArray(e)){for(n=Bt(t),a=e.length;o<a;o++)r[e[o]]=x.css(t,e[o],!1,n);return r}return void 0!==i?x.style(t,e,i):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=ae,ae.prototype={constructor:ae,init:function(t,e,i,n,a,r){this.elem=t,this.prop=i,this.easing=a||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(x.cssNumber[i]?"":"px")},cur:function(){var t=ae.propHooks[this.prop];return t&&t.get?t.get(this):ae.propHooks._default.get(this)},run:function(t){var e,i=ae.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ae.propHooks._default.set(this),this}},ae.prototype.init.prototype=ae.prototype,ae.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=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},ae.propHooks.scrollTop=ae.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=ae.prototype.init,x.fx.step={};var re,oe,se=/^(?:toggle|show|hide)$/,le=/queueHooks$/;function ce(){oe&&(!1===n.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ce):t.setTimeout(ce,x.fx.interval),x.fx.tick())}function ue(){return t.setTimeout((function(){re=void 0})),re=Date.now()}function de(t,e){var i,n=0,a={height:t};for(e=e?1:0;n<4;n+=2-e)a["margin"+(i=nt[n])]=a["padding"+i]=t;return e&&(a.opacity=a.width=t),a}function he(t,e,i){for(var n,a=(fe.tweeners[e]||[]).concat(fe.tweeners["*"]),r=0,o=a.length;r<o;r++)if(n=a[r].call(i,e,t))return n}function fe(t,e,i){var n,a,r=0,o=fe.prefilters.length,s=x.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var e=re||ue(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),r=0,o=c.tweens.length;r<o;r++)c.tweens[r].run(n);return s.notifyWith(t,[c,n,i]),n<1&&o?i:(o||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:e,originalOptions:i,startTime:re||ue(),duration:i.duration,tweens:[],createTween:function(e,i){var n=x.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(a)return this;for(a=!0;i<n;i++)c.tweens[i].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var i,n,a,r,o;for(i in t)if(a=e[n=U(i)],r=t[i],Array.isArray(r)&&(a=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),(o=x.cssHooks[n])&&"expand"in o)for(i in r=o.expand(r),delete t[n],r)i in t||(t[i]=r[i],e[i]=a);else e[n]=a}(u,c.opts.specialEasing);r<o;r++)if(n=fe.prefilters[r].call(c,t,u,c.opts))return m(n.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return x.map(u,he,c),m(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(fe,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ct(i.elem,t,it.exec(e),i),i}]},tweener:function(t,e){m(t)?(e=t,t=["*"]):t=t.match(N);for(var i,n=0,a=t.length;n<a;n++)i=t[n],fe.tweeners[i]=fe.tweeners[i]||[],fe.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,a,r,o,s,l,c,u,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&st(t),g=K.get(t,"fxshow");for(n in i.queue||(null==(o=x._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,x.queue(t,"fx").length||o.empty.fire()}))}))),e)if(a=e[n],se.test(a)){if(delete e[n],r=r||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!g||void 0===g[n])continue;m=!0}f[n]=g&&g[n]||x.style(t,n)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(f))for(n in d&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=K.get(t,"display")),"none"===(u=x.css(t,"display"))&&(c?u=c:(ht([t],!0),c=t.style.display||c,u=x.css(t,"display"),ht([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(t,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(t,"fxshow",{display:c}),r&&(g.hidden=!m),m&&ht([t],!0),h.done((function(){for(n in m||ht([t]),K.remove(t,"fxshow"),f)x.style(t,n,f[n])}))),l=he(m?g[n]:0,n,h),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?fe.prefilters.unshift(t):fe.prefilters.push(t)}}),x.speed=function(t,e,i){var n=t&&"object"==typeof t?x.extend({},t):{complete:i||!i&&e||m(t)&&t,duration:t,easing:i&&e||e&&!m(e)&&e};return x.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in x.fx.speeds?n.duration=x.fx.speeds[n.duration]:n.duration=x.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){m(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(t,e,i,n){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var a=x.isEmptyObject(t),r=x.speed(e,i,n),o=function(){var e=fe(this,x.extend({},t),r);(a||K.get(this,"finish"))&&e.stop(!0)};return o.finish=o,a||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,a=null!=t&&t+"queueHooks",r=x.timers,o=K.get(this);if(a)o[a]&&o[a].stop&&n(o[a]);else for(a in o)o[a]&&o[a].stop&&le.test(a)&&n(o[a]);for(a=r.length;a--;)r[a].elem!==this||null!=t&&r[a].queue!==t||(r[a].anim.stop(i),e=!1,r.splice(a,1));!e&&i||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=K.get(this),n=i[t+"queue"],a=i[t+"queueHooks"],r=x.timers,o=n?n.length:0;for(i.finish=!0,x.queue(this,t,[]),a&&a.stop&&a.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var i=x.fn[e];x.fn[e]=function(t,n,a){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(de(e,!0),t,n,a)}})),x.each({slideDown:de("show"),slideUp:de("hide"),slideToggle:de("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),x.timers=[],x.fx.tick=function(){var t,e=0,i=x.timers;for(re=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||x.fx.stop(),re=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){oe||(oe=!0,ce())},x.fx.stop=function(){oe=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,i){return e=x.fx&&x.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var a=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(a)}}))},function(){var t=n.createElement("input"),e=n.createElement("select").appendChild(n.createElement("option"));t.type="checkbox",p.checkOn=""!==t.value,p.optSelected=e.selected,(t=n.createElement("input")).value="t",t.type="radio",p.radioValue="t"===t.value}();var pe,me=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return B(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,i){var n,a,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?x.prop(t,e,i):(1===r&&x.isXMLDoc(t)||(a=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?pe:void 0)),void 0!==i?null===i?void x.removeAttr(t,e):a&&"set"in a&&void 0!==(n=a.set(t,i,e))?n:(t.setAttribute(e,i+""),i):a&&"get"in a&&null!==(n=a.get(t,e))?n:null==(n=x.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!p.radioValue&&"radio"===e&&C(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,a=e&&e.match(N);if(a&&1===t.nodeType)for(;i=a[n++];)t.removeAttribute(i)}}),pe={set:function(t,e,i){return!1===e?x.removeAttr(t,i):t.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=me[e]||x.find.attr;me[e]=function(t,e,n){var a,r,o=e.toLowerCase();return n||(r=me[o],me[o]=a,a=null!=i(t,e,n)?o:null,me[o]=r),a}}));var ge=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function ye(t){return(t.match(N)||[]).join(" ")}function be(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}x.fn.extend({prop:function(t,e){return B(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,i){var n,a,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&x.isXMLDoc(t)||(e=x.propFix[e]||e,a=x.propHooks[e]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(t,i,e))?n:t[e]=i:a&&"get"in a&&null!==(n=a.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,i,n,a,r,o,s,l=0;if(m(t))return this.each((function(e){x(this).addClass(t.call(this,e,be(this)))}));if((e=_e(t)).length)for(;i=this[l++];)if(a=be(i),n=1===i.nodeType&&" "+ye(a)+" "){for(o=0;r=e[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");a!==(s=ye(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,a,r,o,s,l=0;if(m(t))return this.each((function(e){x(this).removeClass(t.call(this,e,be(this)))}));if(!arguments.length)return this.attr("class","");if((e=_e(t)).length)for(;i=this[l++];)if(a=be(i),n=1===i.nodeType&&" "+ye(a)+" "){for(o=0;r=e[o++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a!==(s=ye(n))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):m(t)?this.each((function(i){x(this).toggleClass(t.call(this,i,be(this),e),e)})):this.each((function(){var e,a,r,o;if(n)for(a=0,r=x(this),o=_e(t);e=o[a++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||((e=be(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+ye(be(i))+" ").indexOf(e)>-1)return!0;return!1}});var xe=/\r/g;x.fn.extend({val:function(t){var e,i,n,a=this[0];return arguments.length?(n=m(t),this.each((function(i){var a;1===this.nodeType&&(null==(a=n?t.call(this,i,x(this).val()):t)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=x.map(a,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,a,"value")||(this.value=a))}))):a?(e=x.valHooks[a.type]||x.valHooks[a.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(xe,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:ye(x.text(t))}},select:{get:function(t){var e,i,n,a=t.options,r=t.selectedIndex,o="select-one"===t.type,s=o?null:[],l=o?r+1:a.length;for(n=r<0?l:o?r:0;n<l;n++)if(((i=a[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!C(i.parentNode,"optgroup"))){if(e=x(i).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var i,n,a=t.options,r=x.makeArray(e),o=a.length;o--;)((n=a[o]).selected=x.inArray(x.valHooks.option.get(n),r)>-1)&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},p.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),p.focusin="onfocusin"in t;var we=/^(?:focusinfocus|focusoutblur)$/,ke=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,i,a,r){var o,s,l,c,u,h,f,p,v=[a||n],y=d.call(e,"type")?e.type:e,b=d.call(e,"namespace")?e.namespace.split("."):[];if(s=p=l=a=a||n,3!==a.nodeType&&8!==a.nodeType&&!we.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(e=e[x.expando]?e:new x.Event(y,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=a),i=null==i?[e]:x.makeArray(i,[e]),f=x.event.special[y]||{},r||!f.trigger||!1!==f.trigger.apply(a,i))){if(!r&&!f.noBubble&&!g(a)){for(c=f.delegateType||y,we.test(c+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),l=s;l===(a.ownerDocument||n)&&v.push(l.defaultView||l.parentWindow||t)}for(o=0;(s=v[o++])&&!e.isPropagationStopped();)p=s,e.type=o>1?c:f.bindType||y,(h=(K.get(s,"events")||{})[e.type]&&K.get(s,"handle"))&&h.apply(s,i),(h=u&&s[u])&&h.apply&&X(s)&&(e.result=h.apply(s,i),!1===e.result&&e.preventDefault());return e.type=y,r||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),i)||!X(a)||u&&m(a[y])&&!g(a)&&((l=a[u])&&(a[u]=null),x.event.triggered=y,e.isPropagationStopped()&&p.addEventListener(y,ke),a[y](),e.isPropagationStopped()&&p.removeEventListener(y,ke),x.event.triggered=void 0,l&&(a[u]=l)),e.result}},simulate:function(t,e,i){var n=x.extend(new x.Event,i,{type:t,isSimulated:!0});x.event.trigger(n,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return x.event.trigger(t,e,i,!0)}}),p.focusin||x.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){x.event.simulate(e,t.target,x.event.fix(t))};x.event.special[e]={setup:function(){var n=this.ownerDocument||this,a=K.access(n,e);a||n.addEventListener(t,i,!0),K.access(n,e,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this,a=K.access(n,e)-1;a?K.access(n,e,a):(n.removeEventListener(t,i,!0),K.remove(n,e))}}}));var Se=t.location,Me=Date.now(),Le=/\?/;x.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),i};var Te=/\[\]$/,Ce=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;function Ee(t,e,i,n){var a;if(Array.isArray(e))x.each(e,(function(e,a){i||Te.test(t)?n(t,a):Ee(t+"["+("object"==typeof a&&null!=a?e:"")+"]",a,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(a in e)Ee(t+"["+a+"]",e[a],i,n)}x.param=function(t,e){var i,n=[],a=function(t,e){var i=m(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){a(this.name,this.value)}));else for(i in t)Ee(i,t[i],e,a);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&De.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!ft.test(t))})).map((function(t,e){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}})):{name:e.name,value:i.replace(Ce,"\r\n")}})).get()}});var Oe=/%20/g,Pe=/#.*$/,Ye=/([?&])_=[^&]*/,Ie=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ne=/^(?:GET|HEAD)$/,He=/^\/\//,je={},Fe={},Re="*/".concat("*"),ze=n.createElement("a");function $e(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,a=0,r=e.toLowerCase().match(N)||[];if(m(i))for(;n=r[a++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Be(t,e,i,n){var a={},r=t===Fe;function o(s){var l;return a[s]=!0,x.each(t[s]||[],(function(t,s){var c=s(e,i,n);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)})),l}return o(e.dataTypes[0])||!a["*"]&&o("*")}function We(t,e){var i,n,a=x.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((a[i]?t:n||(n={}))[i]=e[i]);return n&&x.extend(!0,t,n),t}ze.href=Se.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?We(We(t,x.ajaxSettings),e):We(x.ajaxSettings,t)},ajaxPrefilter:$e(je),ajaxTransport:$e(Fe),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var a,r,o,s,l,c,u,d,h,f,p=x.ajaxSetup({},i),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?x(m):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=p.statusCode||{},_={},w={},k="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=Ie.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)S.always(t[S.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return a&&a.abort(e),M(0,e),this}};if(v.promise(S),p.url=((e||p.url||Se.href)+"").replace(He,Se.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){c=n.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=ze.protocol+"//"+ze.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),Be(je,p,i,S),u)return S;for(h in(d=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ne.test(p.type),r=p.url.replace(Pe,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Oe,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Le.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ye,"$1"),f=(Le.test(r)?"&":"?")+"_="+Me+++f),p.url=r+f),p.ifModified&&(x.lastModified[r]&&S.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&S.setRequestHeader("If-None-Match",x.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Re+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(m,S,p)||u))return S.abort();if(k="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),a=Be(Fe,p,i,S)){if(S.readyState=1,d&&g.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(l=t.setTimeout((function(){S.abort("timeout")}),p.timeout));try{u=!1,a.send(_,M)}catch(t){if(u)throw t;M(-1,t)}}else M(-1,"No Transport");function M(e,i,n,s){var c,h,f,_,w,k=i;u||(u=!0,l&&t.clearTimeout(l),a=void 0,o=s||"",S.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(_=function(t,e,i){for(var n,a,r,o,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(a in s)if(s[a]&&s[a].test(n)){l.unshift(a);break}if(l[0]in i)r=l[0];else{for(a in i){if(!l[0]||t.converters[a+" "+l[0]]){r=a;break}o||(o=a)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),i[r]}(p,S,n)),_=function(t,e,i,n){var a,r,o,s,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(r=u.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(a in c)if((s=a.split(" "))[1]===r&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[a]:!0!==c[a]&&(r=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(p,_,S,c),c?(p.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=w),(w=S.getResponseHeader("etag"))&&(x.etag[r]=w)),204===e||"HEAD"===p.type?k="nocontent":304===e?k="notmodified":(k=_.state,h=_.data,c=!(f=_.error))):(f=k,!e&&k||(k="error",e<0&&(e=0))),S.status=e,S.statusText=(i||k)+"",c?v.resolveWith(m,[h,k,S]):v.rejectWith(m,[S,k,f]),S.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[S,p,c?h:f]),y.fireWith(m,[S,k]),d&&(g.trigger("ajaxComplete",[S,p]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,i){return x.get(t,e,i,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,i,n,a){return m(i)&&(a=a||n,n=i,i=void 0),x.ajax(x.extend({url:t,type:e,dataType:a,data:i,success:n},x.isPlainObject(t)&&t))}})),x._evalUrl=function(t,e){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=x(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 m(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(i){x(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ve={0:200,1223:204},qe=x.ajaxSettings.xhr();p.cors=!!qe&&"withCredentials"in qe,p.ajax=qe=!!qe,x.ajaxTransport((function(e){var i,n;if(p.cors||qe&&!e.crossDomain)return{send:function(a,r){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(o,a[o]);i=function(t){return function(){i&&(i=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=i(),n=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.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 x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(a,r){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),n.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ue,Xe=[],Ge=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||x.expando+"_"+Me++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(e,i,n){var a,r,o,s=!1!==e.jsonp&&(Ge.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ge,"$1"+a):!1!==e.jsonp&&(e.url+=(Le.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return o||x.error(a+" was not called"),o[0]},e.dataTypes[0]="json",r=t[a],t[a]=function(){o=arguments},n.always((function(){void 0===r?x(t).removeProp(a):t[a]=r,e[a]&&(e.jsonpCallback=i.jsonpCallback,Xe.push(a)),o&&m(r)&&r(o[0]),o=r=void 0})),"script"})),p.createHTMLDocument=((Ue=n.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ue.childNodes.length),x.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(p.createHTMLDocument?((a=(e=n.implementation.createHTMLDocument("")).createElement("base")).href=n.location.href,e.head.appendChild(a)):e=n),o=!i&&[],(r=A.exec(t))?[e.createElement(r[1])]:(r=wt([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var a,r,o},x.fn.load=function(t,e,i){var n,a,r,o=this,s=t.indexOf(" ");return s>-1&&(n=ye(t.slice(s)),t=t.slice(0,s)),m(e)?(i=e,e=void 0):e&&"object"==typeof e&&(a="POST"),o.length>0&&x.ajax({url:t,type:a||"GET",dataType:"html",data:e}).done((function(t){r=arguments,o.html(n?x("<div>").append(x.parseHTML(t)).find(n):t)})).always(i&&function(t,e){o.each((function(){i.apply(this,r||[t.responseText,e,t])}))}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,i){var n,a,r,o,s,l,c=x.css(t,"position"),u=x(t),d={};"static"===c&&(t.style.position="relative"),s=u.offset(),r=x.css(t,"top"),l=x.css(t,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(o=(n=u.position()).top,a=n.left):(o=parseFloat(r)||0,a=parseFloat(l)||0),m(e)&&(e=e.call(t,i,x.extend({},s))),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+a),"using"in e?e.using.call(t,d):u.css(d)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],a={top:0,left:0};if("fixed"===x.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((a=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),a.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-a.top-x.css(n,"marginTop",!0),left:e.left-a.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||at}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;x.fn[t]=function(n){return B(this,(function(t,n,a){var r;if(g(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===a)return r?r[e]:t[n];r?r.scrollTo(i?r.pageXOffset:a,i?a:r.pageYOffset):t[n]=a}),t,n,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=qt(p.pixelPosition,(function(t,i){if(i)return i=Vt(t,e),$t.test(i)?x(t).position()[e]+"px":i}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){x.fn[n]=function(a,r){var o=arguments.length&&(i||"boolean"!=typeof a),s=i||(!0===a||!0===r?"margin":"border");return B(this,(function(e,i,a){var r;return g(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===a?x.css(e,i,s):x.style(e,i,a,s)}),e,o?a:void 0,o)}}))})),x.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){x.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}})),x.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),x.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),x.proxy=function(t,e){var i,n,a;if("string"==typeof e&&(i=t[e],e=t,t=i),m(t))return n=r.call(arguments,2),(a=function(){return t.apply(e||this,n.concat(r.call(arguments)))}).guid=t.guid=t.guid||x.guid++,a},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=C,x.isFunction=m,x.isWindow=g,x.camelCase=U,x.type=b,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return x}));var Ke=t.jQuery,Ze=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=Ze),e&&t.jQuery===x&&(t.jQuery=Ke),x},e||(t.jQuery=t.$=x),x})),
/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,(function(){"use strict";var t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,e=function(){for(var e=["Edge","Trident","Firefox"],i=0;i<e.length;i+=1)if(t&&navigator.userAgent.indexOf(e[i])>=0)return 1;return 0}();var i=t&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var i=!1;return function(){i||(i=!0,setTimeout((function(){i=!1,t()}),e))}};function n(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var i=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?i[e]:i}function r(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(i+s+n)?t:o(r(t))}function s(t){return t&&t.referenceNode?t.referenceNode:t}var l=t&&!(!window.MSInputMethodContext||!document.documentMode),c=t&&/MSIE 10/.test(navigator.userAgent);function u(t){return 11===t?l:10===t?c:l||c}function d(t){if(!t)return document.documentElement;for(var e=u(10)?document.body:null,i=t.offsetParent||null;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===a(i,"position")?d(i):i:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,a=i?e:t,r=document.createRange();r.setStart(n,0),r.setEnd(a,0);var o,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||n.contains(a))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&d(o.firstElementChild)!==o?d(l):l;var c=h(t);return c.host?f(c.host,e):f(t,h(e).host)}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var a=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||a;return r[i]}return t[i]}function m(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=p(e,"top"),a=p(e,"left"),r=i?-1:1;return t.top+=n*r,t.bottom+=n*r,t.left+=a*r,t.right+=a*r,t}function g(t,e){var i="x"===e?"Left":"Top",n="Left"===i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"])+parseFloat(t["border"+n+"Width"])}function v(t,e,i,n){return Math.max(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],u(10)?parseInt(i["offset"+t])+parseInt(n["margin"+("Height"===t?"Top":"Left")])+parseInt(n["margin"+("Height"===t?"Bottom":"Right")]):0)}function y(t){var e=t.body,i=t.documentElement,n=u(10)&&getComputedStyle(i);return{height:v("Height",e,i,n),width:v("Width",e,i,n)}}var b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),x=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function k(t){return w({},t,{right:t.left+t.width,bottom:t.top+t.height})}function S(t){var e={};try{if(u(10)){e=t.getBoundingClientRect();var i=p(t,"top"),n=p(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?y(t.ownerDocument):{},s=o.width||t.clientWidth||r.width,l=o.height||t.clientHeight||r.height,c=t.offsetWidth-s,d=t.offsetHeight-l;if(c||d){var h=a(t);c-=g(h,"x"),d-=g(h,"y"),r.width-=c,r.height-=d}return k(r)}function M(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=u(10),r="HTML"===e.nodeName,s=S(t),l=S(e),c=o(t),d=a(e),h=parseFloat(d.borderTopWidth),f=parseFloat(d.borderLeftWidth);i&&r&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var p=k({top:s.top-l.top-h,left:s.left-l.left-f,width:s.width,height:s.height});if(p.marginTop=0,p.marginLeft=0,!n&&r){var g=parseFloat(d.marginTop),v=parseFloat(d.marginLeft);p.top-=h-g,p.bottom-=h-g,p.left-=f-v,p.right-=f-v,p.marginTop=g,p.marginLeft=v}return(n&&!i?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(p=m(p,e)),p}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=M(t,i),a=Math.max(i.clientWidth,window.innerWidth||0),r=Math.max(i.clientHeight,window.innerHeight||0),o=e?0:p(i),s=e?0:p(i,"left"),l={top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:a,height:r};return k(l)}function T(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var i=r(t);return!!i&&T(i)}function C(t){if(!t||!t.parentElement||u())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function A(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},c=a?C(t):f(t,s(e));if("viewport"===n)l=L(c,a);else{var u=void 0;"scrollParent"===n?"BODY"===(u=o(r(e))).nodeName&&(u=t.ownerDocument.documentElement):u="window"===n?t.ownerDocument.documentElement:n;var d=M(u,c,a);if("HTML"!==u.nodeName||T(c))l=d;else{var h=y(t.ownerDocument),p=h.height,m=h.width;l.top+=d.top-d.marginTop,l.bottom=p+d.top,l.left+=d.left-d.marginLeft,l.right=m+d.left}}var g="number"==typeof(i=i||0);return l.left+=g?i:i.left||0,l.top+=g?i:i.top||0,l.right-=g?i:i.right||0,l.bottom-=g?i:i.bottom||0,l}function D(t){return t.width*t.height}function E(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var o=A(i,n,r,a),s={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},l=Object.keys(s).map((function(t){return w({key:t},s[t],{area:D(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function O(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=n?C(e):f(e,s(i));return M(i,a,n)}function P(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),i=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),n=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function Y(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 I(t,e,i){i=i.split("-")[0];var n=P(t),a={width:n.width,height:n.height},r=-1!==["right","left"].indexOf(i),o=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return a[o]=e[o]+e[l]/2-n[l]/2,a[s]=i===s?e[s]-n[c]:e[Y(s)],a}function N(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function H(t,e,i){return(void 0===i?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===i}));var n=N(t,(function(t){return t[e]===i}));return t.indexOf(n)}(t,"name",i))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=t.function||t.fn;t.enabled&&n(i)&&(e.offsets.popper=k(e.offsets.popper),e.offsets.reference=k(e.offsets.reference),e=i(e,t))})),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=O(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=E(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=I(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=H(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function F(t,e){return t.some((function(t){var i=t.name;return t.enabled&&i===e}))}function R(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var a=e[n],r=a?""+a+i:t;if(void 0!==document.body.style[r])return r}return null}function z(){return this.state.isDestroyed=!0,F(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[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $(t){var e=t.ownerDocument;return e?e.defaultView:window}function B(t,e,i,n){var a="BODY"===t.nodeName,r=a?t.ownerDocument.defaultView:t;r.addEventListener(e,i,{passive:!0}),a||B(o(r.parentNode),e,i,n),n.push(r)}function W(t,e,i,n){i.updateBound=n,$(t).addEventListener("resize",i.updateBound,{passive:!0});var a=o(t);return B(a,"scroll",i.updateBound,i.scrollParents),i.scrollElement=a,i.eventsEnabled=!0,i}function V(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function q(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,$(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 U(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function X(t,e){Object.keys(e).forEach((function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&U(e[i])&&(n="px"),t.style[i]=e[i]+n}))}var G=t&&/Firefox/i.test(navigator.userAgent);function K(t,e,i){var n=N(t,(function(t){return t.name===e})),a=!!n&&t.some((function(t){return t.name===i&&t.enabled&&t.order<n.order}));if(!a){var r="`"+e+"`",o="`"+i+"`";console.warn(o+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return a}var Z=["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"],J=Z.slice(3);function Q(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=J.indexOf(t),n=J.slice(i+1).concat(J.slice(0,i));return e?n.reverse():n}var tt="flip",et="clockwise",it="counterclockwise";function nt(t,e,i,n){var a=[0,0],r=-1!==["right","left"].indexOf(n),o=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=o.indexOf(N(o,(function(t){return-1!==t.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return(c=c.map((function(t,n){var a=(1===n?!r:r)?"height":"width",o=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,i,n){var a=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+a[1],o=a[2];if(!r)return t;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=i;break;case"%":case"%r":default:s=n}return k(s)[e]/100*r}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,a,e,i)}))}))).forEach((function(t,e){t.forEach((function(i,n){U(i)&&(a[e]+=i*("-"===t[n-1]?-1:1))}))})),a}var at={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,i=e.split("-")[0],n=e.split("-")[1];if(n){var a=t.offsets,r=a.reference,o=a.popper,s=-1!==["bottom","top"].indexOf(i),l=s?"left":"top",c=s?"width":"height",u={start:x({},l,r[l]),end:x({},l,r[l]+r[c]-o[c])};t.offsets.popper=w({},o,u[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i=e.offset,n=t.placement,a=t.offsets,r=a.popper,o=a.reference,s=n.split("-")[0],l=void 0;return l=U(+i)?[+i,0]:nt(i,r,o,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 i=e.boundariesElement||d(t.instance.popper);t.instance.reference===i&&(i=d(i));var n=R("transform"),a=t.instance.popper.style,r=a.top,o=a.left,s=a[n];a.top="",a.left="",a[n]="";var l=A(t.instance.popper,t.instance.reference,e.padding,i,t.positionFixed);a.top=r,a.left=o,a[n]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,h={primary:function(t){var i=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(i=Math.max(u[t],l[t])),x({},t,i)},secondary:function(t){var i="right"===t?"left":"top",n=u[i];return u[t]>l[t]&&!e.escapeWithReference&&(n=Math.min(u[i],l[t]-("right"===t?u.width:u.height))),x({},i,n)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=w({},u,h[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,a=t.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(a),s=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return i[s]<r(n[l])&&(t.offsets.popper[l]=r(n[l])-i[c]),i[l]>r(n[s])&&(t.offsets.popper[l]=r(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!K(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,l=o.reference,c=-1!==["left","right"].indexOf(r),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=P(n)[u];l[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-m)),l[h]+m>s[p]&&(t.offsets.popper[h]+=l[h]+m-s[p]),t.offsets.popper=k(t.offsets.popper);var g=l[h]+l[u]/2-m/2,v=a(t.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),_=g-t.offsets.popper[h]-y-b;return _=Math.max(Math.min(s[u]-m,_),0),t.arrowElement=n,t.offsets.arrow=(x(i={},h,Math.round(_)),x(i,f,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(F(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var i=A(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],a=Y(n),r=t.placement.split("-")[1]||"",o=[];switch(e.behavior){case tt:o=[n,a];break;case et:o=Q(n);break;case it:o=Q(n,!0);break;default:o=e.behavior}return o.forEach((function(s,l){if(n!==s||o.length===l+1)return t;n=t.placement.split("-")[0],a=Y(n);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,h="left"===n&&d(c.right)>d(u.left)||"right"===n&&d(c.left)<d(u.right)||"top"===n&&d(c.bottom)>d(u.top)||"bottom"===n&&d(c.top)<d(u.bottom),f=d(c.left)<d(i.left),p=d(c.right)>d(i.right),m=d(c.top)<d(i.top),g=d(c.bottom)>d(i.bottom),v="left"===n&&f||"right"===n&&p||"top"===n&&m||"bottom"===n&&g,y=-1!==["top","bottom"].indexOf(n),b=!!e.flipVariations&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&m||!y&&"end"===r&&g),_=!!e.flipVariationsByContent&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&g||!y&&"end"===r&&m),x=b||_;(h||v||x)&&(t.flipped=!0,(h||v)&&(n=o[l+1]),x&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=n+(r?"-"+r:""),t.offsets.popper=w({},t.offsets.popper,I(t.instance.popper,t.offsets.reference,t.placement)),t=H(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,i=e.split("-")[0],n=t.offsets,a=n.popper,r=n.reference,o=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return a[o?"left":"top"]=r[i]-(s?a[o?"width":"height"]:0),t.placement=Y(e),t.offsets.popper=k(a),t}},hide:{order:800,enabled:!0,fn:function(t){if(!K(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=N(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.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 i=e.x,n=e.y,a=t.offsets.popper,r=N(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 o=void 0!==r?r:e.gpuAcceleration,s=d(t.instance.popper),l=S(s),c={position:a.position},u=function(t,e){var i=t.offsets,n=i.popper,a=i.reference,r=Math.round,o=Math.floor,s=function(t){return t},l=r(a.width),c=r(n.width),u=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?u||d||l%2==c%2?r:o:s,f=e?r:s;return{left:h(l%2==1&&c%2==1&&!d&&e?n.left-1:n.left),top:f(n.top),bottom:f(n.bottom),right:h(n.right)}}(t,window.devicePixelRatio<2||!G),h="bottom"===i?"top":"bottom",f="right"===n?"left":"right",p=R("transform"),m=void 0,g=void 0;if(g="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&p)c[p]="translate3d("+m+"px, "+g+"px, 0)",c[h]=0,c[f]=0,c.willChange="transform";else{var v="bottom"===h?-1:1,y="right"===f?-1:1;c[h]=g*v,c[f]=m*y,c.willChange=h+", "+f}var b={"x-placement":t.placement};return t.attributes=w({},b,t.attributes),t.styles=w({},c,t.styles),t.arrowStyles=w({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,i;return X(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEach((function(t){!1!==i[t]?e.setAttribute(t,i[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&X(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,a){var r=O(a,e,t,i.positionFixed),o=E(i.placement,r,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",o),X(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},rt=function(){function t(e,a){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};b(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=w({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=a&&a.jquery?a[0]:a,this.options.modifiers={},Object.keys(w({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){r.options.modifiers[e]=w({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return w({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&n(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return _(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return z.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return q.call(this)}}]),t}();return rt.Utils=("undefined"!=typeof window?window:global).PopperUtils,rt.placements=Z,rt.Defaults=at,rt})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,i){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=n(e),r=n(i);function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&o(t.prototype,e),i&&o(t,i),t}function l(){return(l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}var c={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=a.default(t).css("transition-duration"),i=a.default(t).css("transition-delay"),n=parseFloat(e),r=parseFloat(i);return n||r?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){a.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var a=i[n],r=e[n],o=r&&c.isElement(r)?"element":null===(s=r)||void 0===s?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(a).test(o))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+o+'" but expected type "'+a+'".')}var s},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?c.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===a.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=a.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};c.jQueryDetection(),a.default.fn.emulateTransitionEnd=function(t){var e=this,i=!1;return a.default(this).one(c.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||c.triggerTransitionEnd(e)}),t),this},a.default.event.special[c.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(a.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var u="alert",d=a.default.fn[u],h=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(){a.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=c.getSelectorFromElement(t),i=!1;return e&&(i=document.querySelector(e)),i||(i=a.default(t).closest(".alert")[0]),i},e._triggerCloseEvent=function(t){var e=a.default.Event("close.bs.alert");return a.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(a.default(t).removeClass("show"),a.default(t).hasClass("fade")){var i=c.getTransitionDurationFromElement(t);a.default(t).one(c.TRANSITION_END,(function(i){return e._destroyElement(t,i)})).emulateTransitionEnd(i)}else this._destroyElement(t)},e._destroyElement=function(t){a.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this),n=i.data("bs.alert");n||(n=new t(this),i.data("bs.alert",n)),"close"===e&&n[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();a.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),a.default.fn[u]=h._jQueryInterface,a.default.fn[u].Constructor=h,a.default.fn[u].noConflict=function(){return a.default.fn[u]=d,h._jQueryInterface};var f=a.default.fn.button,p=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,i=a.default(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=this._element.querySelector('input:not([type="hidden"])');if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains("active"))t=!1;else{var r=i.querySelector(".active");r&&a.default(r).removeClass("active")}t&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||a.default(n).trigger("change")),n.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&a.default(this._element).toggleClass("active"))},e.dispose=function(){a.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,i){return this.each((function(){var n=a.default(this),r=n.data("bs.button");r||(r=new t(this),n.data("bs.button",r)),r.shouldAvoidTriggerChange=i,"toggle"===e&&r[e]()}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),t}();a.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,i=e;if(a.default(e).hasClass("btn")||(e=a.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var n=e.querySelector('input:not([type="hidden"])');if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==i.tagName&&"LABEL"===e.tagName||p._jQueryInterface.call(a.default(e),"toggle","INPUT"===i.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=a.default(t.target).closest(".btn")[0];a.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),a.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,i=t.length;e<i;e++){var n=t[e],a=n.querySelector('input:not([type="hidden"])');a.checked||a.hasAttribute("checked")?n.classList.add("active"):n.classList.remove("active")}for(var r=0,o=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;r<o;r++){var s=t[r];"true"===s.getAttribute("aria-pressed")?s.classList.add("active"):s.classList.remove("active")}})),a.default.fn.button=p._jQueryInterface,a.default.fn.button.Constructor=p,a.default.fn.button.noConflict=function(){return a.default.fn.button=f,p._jQueryInterface};var m="carousel",g=a.default.fn[m],v={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},b={TOUCH:"touch",PEN:"pen"},_=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(".carousel-indicators"),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("next")},e.nextWhenVisible=function(){var t=a.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(c.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(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)a.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var n=t>i?"next":"prev";this._slide(n,this._items[t])}},e.dispose=function(){a.default(this._element).off(".bs.carousel"),a.default.removeData(this._element,"bs.carousel"),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({},v,t),c.typeCheckConfig(m,t,y),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){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&&a.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&a.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(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&&b[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&b[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)}),500+t._config.interval))};a.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(a.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),a.default(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(a.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),a.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),a.default(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var i="next"===t,n="prev"===t,a=this._getItemIndex(e),r=this._items.length-1;if((n&&0===a||i&&a===r)&&!this._config.wrap)return e;var o=(a+("prev"===t?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},e._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(this._element.querySelector(".active.carousel-item")),r=a.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i});return a.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));a.default(e).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&a.default(i).addClass("active")}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(".active.carousel-item");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 i,n,r,o=this,s=this._element.querySelector(".active.carousel-item"),l=this._getItemIndex(s),u=e||s&&this._getItemByDirection(t,s),d=this._getItemIndex(u),h=Boolean(this._interval);if("next"===t?(i="carousel-item-left",n="carousel-item-next",r="left"):(i="carousel-item-right",n="carousel-item-prev",r="right"),u&&a.default(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,r).isDefaultPrevented()&&s&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u),this._activeElement=u;var f=a.default.Event("slid.bs.carousel",{relatedTarget:u,direction:r,from:l,to:d});if(a.default(this._element).hasClass("slide")){a.default(u).addClass(n),c.reflow(u),a.default(s).addClass(i),a.default(u).addClass(i);var p=c.getTransitionDurationFromElement(s);a.default(s).one(c.TRANSITION_END,(function(){a.default(u).removeClass(i+" "+n).addClass("active"),a.default(s).removeClass("active "+n+" "+i),o._isSliding=!1,setTimeout((function(){return a.default(o._element).trigger(f)}),0)})).emulateTransitionEnd(p)}else a.default(s).removeClass("active"),a.default(u).addClass("active"),this._isSliding=!1,a.default(this._element).trigger(f);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this).data("bs.carousel"),n=l({},v,a.default(this).data());"object"==typeof e&&(n=l({},n,e));var r="string"==typeof e?e:n.slide;if(i||(i=new t(this,n),a.default(this).data("bs.carousel",i)),"number"==typeof e)i.to(e);else if("string"==typeof r){if(void 0===i[r])throw new TypeError('No method named "'+r+'"');i[r]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(e){var i=c.getSelectorFromElement(this);if(i){var n=a.default(i)[0];if(n&&a.default(n).hasClass("carousel")){var r=l({},a.default(n).data(),a.default(this).data()),o=this.getAttribute("data-slide-to");o&&(r.interval=!1),t._jQueryInterface.call(a.default(n),r),o&&a.default(n).data("bs.carousel").to(o),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return v}}]),t}();a.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",_._dataApiClickHandler),a.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,i=t.length;e<i;e++){var n=a.default(t[e]);_._jQueryInterface.call(n,n.data())}})),a.default.fn[m]=_._jQueryInterface,a.default.fn[m].Constructor=_,a.default.fn[m].noConflict=function(){return a.default.fn[m]=g,_._jQueryInterface};var x="collapse",w=a.default.fn[x],k={toggle:!0,parent:""},S={toggle:"boolean",parent:"(string|element)"},M=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 i=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),n=0,a=i.length;n<a;n++){var r=i[n],o=c.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(o)).filter((function(e){return e===t}));null!==o&&s.length>0&&(this._selector=o,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(){a.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,i,n=this;if(!(this._isTransitioning||a.default(this._element).hasClass("show")||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains("collapse")}))).length&&(e=null),e&&(i=a.default(e).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var r=a.default.Event("show.bs.collapse");if(a.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(a.default(e).not(this._selector),"hide"),i||a.default(e).data("bs.collapse",null));var o=this._getDimension();a.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[o]=0,this._triggerArray.length&&a.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(o[0].toUpperCase()+o.slice(1)),l=c.getTransitionDurationFromElement(this._element);a.default(this._element).one(c.TRANSITION_END,(function(){a.default(n._element).removeClass("collapsing").addClass("collapse show"),n._element.style[o]="",n.setTransitioning(!1),a.default(n._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(l),this._element.style[o]=this._element[s]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&a.default(this._element).hasClass("show")){var e=a.default.Event("hide.bs.collapse");if(a.default(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",c.reflow(this._element),a.default(this._element).addClass("collapsing").removeClass("collapse show");var n=this._triggerArray.length;if(n>0)for(var r=0;r<n;r++){var o=this._triggerArray[r],s=c.getSelectorFromElement(o);null!==s&&(a.default([].slice.call(document.querySelectorAll(s))).hasClass("show")||a.default(o).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var l=c.getTransitionDurationFromElement(this._element);a.default(this._element).one(c.TRANSITION_END,(function(){t.setTransitioning(!1),a.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(l)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){a.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},k,t)).toggle=Boolean(t.toggle),c.typeCheckConfig(x,t,S),t},e._getDimension=function(){return a.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,i=this;c.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 n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(n));return a.default(r).each((function(e,n){i._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])})),e},e._addAriaAndCollapsedClass=function(t,e){var i=a.default(t).hasClass("show");e.length&&a.default(e).toggleClass("collapsed",!i).attr("aria-expanded",i)},t._getTargetFromElement=function(t){var e=c.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this),n=i.data("bs.collapse"),r=l({},k,i.data(),"object"==typeof e&&e?e:{});if(!n&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),n||(n=new t(this,r),i.data("bs.collapse",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"4.6.0"}},{key:"Default",get:function(){return k}}]),t}();a.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=a.default(this),i=c.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(i));a.default(n).each((function(){var t=a.default(this),i=t.data("bs.collapse")?"toggle":e.data();M._jQueryInterface.call(t,i)}))})),a.default.fn[x]=M._jQueryInterface,a.default.fn[x].Constructor=M,a.default.fn[x].noConflict=function(){return a.default.fn[x]=w,M._jQueryInterface};var L="dropdown",T=a.default.fn[L],C=new RegExp("38|40|27"),A={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},D={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},E=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&&!a.default(this._element).hasClass("disabled")){var e=a.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||a.default(this._element).hasClass("disabled")||a.default(this._menu).hasClass("show"))){var i={relatedTarget:this._element},n=a.default.Event("show.bs.dropdown",i),o=t._getParentFromElement(this._element);if(a.default(o).trigger(n),!n.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=o:c.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&a.default(o).addClass("position-static"),this._popper=new r.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===a.default(o).closest(".navbar-nav").length&&a.default(document.body).children().on("mouseover",null,a.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),a.default(this._menu).toggleClass("show"),a.default(o).toggleClass("show").trigger(a.default.Event("shown.bs.dropdown",i))}}},e.hide=function(){if(!this._element.disabled&&!a.default(this._element).hasClass("disabled")&&a.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},i=a.default.Event("hide.bs.dropdown",e),n=t._getParentFromElement(this._element);a.default(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),a.default(this._menu).toggleClass("show"),a.default(n).toggleClass("show").trigger(a.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){a.default.removeData(this._element,"bs.dropdown"),a.default(this._element).off(".bs.dropdown"),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;a.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=l({},this.constructor.Default,a.default(this._element).data(),t),c.typeCheckConfig(L,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=a.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=a.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":a.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return a.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 i=a.default(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof e?e:null),a.default(this).data("bs.dropdown",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),n=0,r=i.length;n<r;n++){var o=t._getParentFromElement(i[n]),s=a.default(i[n]).data("bs.dropdown"),l={relatedTarget:i[n]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var c=s._menu;if(a.default(o).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&a.default.contains(o,e.target))){var u=a.default.Event("hide.bs.dropdown",l);a.default(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&a.default(document.body).children().off("mouseover",null,a.default.noop),i[n].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),a.default(c).removeClass("show"),a.default(o).removeClass("show").trigger(a.default.Event("hidden.bs.dropdown",l)))}}}},t._getParentFromElement=function(t){var e,i=c.getSelectorFromElement(t);return i&&(e=document.querySelector(i)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||a.default(e.target).closest(".dropdown-menu").length):!C.test(e.which))&&!this.disabled&&!a.default(this).hasClass("disabled")){var i=t._getParentFromElement(this),n=a.default(i).hasClass("show");if(n||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!n||27===e.which||32===e.which)return 27===e.which&&a.default(i.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void a.default(this).trigger("click");var r=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return a.default(t).is(":visible")}));if(0!==r.length){var o=r.indexOf(e.target);38===e.which&&o>0&&o--,40===e.which&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return A}},{key:"DefaultType",get:function(){return D}}]),t}();a.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',E._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",E._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",E._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),E._jQueryInterface.call(a.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),a.default.fn[L]=E._jQueryInterface,a.default.fn[L].Constructor=E,a.default.fn[L].noConflict=function(){return a.default.fn[L]=T,E._jQueryInterface};var O=a.default.fn.modal,P={backdrop:!0,keyboard:!0,focus:!0,show:!0},Y={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},I=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),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){a.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var i=a.default.Event("show.bs.modal",{relatedTarget:t});a.default(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),a.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),a.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){a.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){a.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 i=a.default.Event("hide.bs.modal");if(a.default(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=a.default(this._element).hasClass("fade");if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),a.default(document).off("focusin.bs.modal"),a.default(this._element).removeClass("show"),a.default(this._element).off("click.dismiss.bs.modal"),a.default(this._dialog).off("mousedown.dismiss.bs.modal"),n){var r=c.getTransitionDurationFromElement(this._element);a.default(this._element).one(c.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 a.default(t).off(".bs.modal")})),a.default(document).off("focusin.bs.modal"),a.default.removeData(this._element,"bs.modal"),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({},P,t),c.typeCheckConfig("modal",t,Y),t},e._triggerBackdropTransition=function(){var t=this,e=a.default.Event("hidePrevented.bs.modal");if(a.default(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=c.getTransitionDurationFromElement(this._dialog);a.default(this._element).off(c.TRANSITION_END),a.default(this._element).one(c.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),i||a.default(t._element).one(c.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,n)})).emulateTransitionEnd(n),this._element.focus()}},e._showElement=function(t){var e=this,i=a.default(this._element).hasClass("fade"),n=this._dialog?this._dialog.querySelector(".modal-body"):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"),a.default(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&c.reflow(this._element),a.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var r=a.default.Event("shown.bs.modal",{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,a.default(e._element).trigger(r)};if(i){var s=c.getTransitionDurationFromElement(this._dialog);a.default(this._dialog).one(c.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},e._enforceFocus=function(){var t=this;a.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===a.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?a.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||a.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?a.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):a.default(window).off("resize.bs.modal")},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(){a.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),a.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(a.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,i=a.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),a.default(this._backdrop).appendTo(document.body),a.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),i&&c.reflow(this._backdrop),a.default(this._backdrop).addClass("show"),!t)return;if(!i)return void t();var n=c.getTransitionDurationFromElement(this._backdrop);a.default(this._backdrop).one(c.TRANSITION_END,t).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){a.default(this._backdrop).removeClass("show");var r=function(){e._removeBackdrop(),t&&t()};if(a.default(this._element).hasClass("fade")){var o=c.getTransitionDurationFromElement(this._backdrop);a.default(this._backdrop).one(c.TRANSITION_END,r).emulateTransitionEnd(o)}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(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),i=[].slice.call(document.querySelectorAll(".sticky-top"));a.default(e).each((function(e,i){var n=i.style.paddingRight,r=a.default(i).css("padding-right");a.default(i).data("padding-right",n).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")})),a.default(i).each((function(e,i){var n=i.style.marginRight,r=a.default(i).css("margin-right");a.default(i).data("margin-right",n).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")}));var n=document.body.style.paddingRight,r=a.default(document.body).css("padding-right");a.default(document.body).data("padding-right",n).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}a.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));a.default(t).each((function(t,e){var i=a.default(e).data("padding-right");a.default(e).removeData("padding-right"),e.style.paddingRight=i||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));a.default(e).each((function(t,e){var i=a.default(e).data("margin-right");void 0!==i&&a.default(e).css("margin-right",i).removeData("margin-right")}));var i=a.default(document.body).data("padding-right");a.default(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,i){return this.each((function(){var n=a.default(this).data("bs.modal"),r=l({},P,a.default(this).data(),"object"==typeof e&&e?e:{});if(n||(n=new t(this,r),a.default(this).data("bs.modal",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e](i)}else r.show&&n.show(i)}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return P}}]),t}();a.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,i=this,n=c.getSelectorFromElement(this);n&&(e=document.querySelector(n));var r=a.default(e).data("bs.modal")?"toggle":l({},a.default(e).data(),a.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=a.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){a.default(i).is(":visible")&&i.focus()}))}));I._jQueryInterface.call(a.default(e),r,this)})),a.default.fn.modal=I._jQueryInterface,a.default.fn.modal.Constructor=I,a.default.fn.modal.noConflict=function(){return a.default.fn.modal=O,I._jQueryInterface};var N=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],H=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,j=/^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 F(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(e),r=[].slice.call(n.body.querySelectorAll("*")),o=function(t,i){var n=r[t],o=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var s=[].slice.call(n.attributes),l=[].concat(e["*"]||[],e[o]||[]);s.forEach((function(t){(function(t,e){var i=t.nodeName.toLowerCase();if(-1!==e.indexOf(i))return-1===N.indexOf(i)||Boolean(t.nodeValue.match(H)||t.nodeValue.match(j));for(var n=e.filter((function(t){return t instanceof RegExp})),a=0,r=n.length;a<r;a++)if(i.match(n[a]))return!0;return!1})(t,l)||n.removeAttribute(t.nodeName)}))},s=0,l=r.length;s<l;s++)o(s);return n.body.innerHTML}var R="tooltip",z=a.default.fn[R],$=new RegExp("(^|\\s)bs-tooltip\\S+","g"),B=["sanitize","whiteList","sanitizeFn"],W={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)"},V={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},q={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:{"*":["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:[]},popperConfig:null},U={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},X=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,i=a.default(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),a.default(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(a.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),a.default.removeData(this.element,this.constructor.DATA_KEY),a.default(this.element).off(this.constructor.EVENT_KEY),a.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&a.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"===a.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=a.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){a.default(this.element).trigger(e);var i=c.findShadowRoot(this.element),n=a.default.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var o=this.getTipElement(),s=c.getUID(this.constructor.NAME);o.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&a.default(o).addClass("fade");var l="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,u=this._getAttachment(l);this.addAttachmentClass(u);var d=this._getContainer();a.default(o).data(this.constructor.DATA_KEY,this),a.default.contains(this.element.ownerDocument.documentElement,this.tip)||a.default(o).appendTo(d),a.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new r.default(this.element,o,this._getPopperConfig(u)),a.default(o).addClass("show"),a.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&a.default(document.body).children().on("mouseover",null,a.default.noop);var h=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,a.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(a.default(this.tip).hasClass("fade")){var f=c.getTransitionDurationFromElement(this.tip);a.default(this.tip).one(c.TRANSITION_END,h).emulateTransitionEnd(f)}else h()}},e.hide=function(t){var e=this,i=this.getTipElement(),n=a.default.Event(this.constructor.Event.HIDE),r=function(){"show"!==e._hoverState&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),a.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(a.default(this.element).trigger(n),!n.isDefaultPrevented()){if(a.default(i).removeClass("show"),"ontouchstart"in document.documentElement&&a.default(document.body).children().off("mouseover",null,a.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,a.default(this.tip).hasClass("fade")){var o=c.getTransitionDurationFromElement(i);a.default(i).one(c.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){a.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||a.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(a.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),a.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=F(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?a.default(e).parent().is(t)||t.empty().append(e):t.text(a.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:".arrow"},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:c.isElement(this.config.container)?a.default(this.config.container):a.default(document).find(this.config.container)},e._getAttachment=function(t){return V[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)a.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var i="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;a.default(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(n,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},a.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 i=this.constructor.DATA_KEY;(e=e||a.default(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),a.default(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),a.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||a.default(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),a.default(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&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=a.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==B.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()),c.typeCheckConfig(R,t,this.constructor.DefaultType),t.sanitize&&(t.template=F(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=a.default(this.getTipElement()),e=t.attr("class").match($);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")&&(a.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this),n=i.data("bs.tooltip"),r="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,r),i.data("bs.tooltip",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"4.6.0"}},{key:"Default",get:function(){return q}},{key:"NAME",get:function(){return R}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return U}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return W}}]),t}();a.default.fn[R]=X._jQueryInterface,a.default.fn[R].Constructor=X,a.default.fn[R].noConflict=function(){return a.default.fn[R]=z,X._jQueryInterface};var G="popover",K=a.default.fn[G],Z=new RegExp("(^|\\s)bs-popover\\S+","g"),J=l({},X.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>'}),Q=l({},X.DefaultType,{content:"(string|element|function)"}),tt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},et=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){a.default(this.getTipElement()).addClass("bs-popover-"+t)},r.getTipElement=function(){return this.tip=this.tip||a.default(this.config.template)[0],this.tip},r.setContent=function(){var t=a.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=a.default(this.getTipElement()),e=t.attr("class").match(Z);null!==e&&e.length>0&&t.removeClass(e.join(""))},n._jQueryInterface=function(t){return this.each((function(){var e=a.default(this).data("bs.popover"),i="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new n(this,i),a.default(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},s(n,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return J}},{key:"NAME",get:function(){return G}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return tt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Q}}]),n}(X);a.default.fn[G]=et._jQueryInterface,a.default.fn[G].Constructor=et,a.default.fn[G].noConflict=function(){return a.default.fn[G]=K,et._jQueryInterface};var it="scrollspy",nt=a.default.fn[it],at={offset:10,method:"auto",target:""},rt={offset:"number",method:"string",target:"(string|element)"},ot=function(){function t(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,a.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?e:this._config.method,n="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,r=c.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var o=e.getBoundingClientRect();if(o.width||o.height)return[a.default(e)[i]().top+n,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(){a.default.removeData(this._element,"bs.scrollspy"),a.default(this._scrollElement).off(".bs.scrollspy"),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({},at,"object"==typeof t&&t?t:{})).target&&c.isElement(t.target)){var e=a.default(t.target).attr("id");e||(e=c.getUID(it),a.default(t.target).attr("id",e)),t.target="#"+e}return c.typeCheckConfig(it,t,rt),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(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var a=this._offsets.length;a--;)this._activeTarget!==this._targets[a]&&t>=this._offsets[a]&&(void 0===this._offsets[a+1]||t<this._offsets[a+1])&&this._activate(this._targets[a])}},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+'"]'})),i=a.default([].slice.call(document.querySelectorAll(e.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),a.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this).data("bs.scrollspy");if(i||(i=new t(this,"object"==typeof e&&e),a.default(this).data("bs.scrollspy",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"4.6.0"}},{key:"Default",get:function(){return at}}]),t}();a.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var i=a.default(t[e]);ot._jQueryInterface.call(i,i.data())}})),a.default.fn[it]=ot._jQueryInterface,a.default.fn[it].Constructor=ot,a.default.fn[it].noConflict=function(){return a.default.fn[it]=nt,ot._jQueryInterface};var st=a.default.fn.tab,lt=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&&a.default(this._element).hasClass("active")||a.default(this._element).hasClass("disabled"))){var e,i,n=a.default(this._element).closest(".nav, .list-group")[0],r=c.getSelectorFromElement(this._element);if(n){var o="UL"===n.nodeName||"OL"===n.nodeName?"> li > .active":".active";i=(i=a.default.makeArray(a.default(n).find(o)))[i.length-1]}var s=a.default.Event("hide.bs.tab",{relatedTarget:this._element}),l=a.default.Event("show.bs.tab",{relatedTarget:i});if(i&&a.default(i).trigger(s),a.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,n);var u=function(){var e=a.default.Event("hidden.bs.tab",{relatedTarget:t._element}),n=a.default.Event("shown.bs.tab",{relatedTarget:i});a.default(i).trigger(e),a.default(t._element).trigger(n)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){a.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,i){var n=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?a.default(e).children(".active"):a.default(e).find("> li > .active"))[0],o=i&&r&&a.default(r).hasClass("fade"),s=function(){return n._transitionComplete(t,r,i)};if(r&&o){var l=c.getTransitionDurationFromElement(r);a.default(r).removeClass("show").one(c.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,i){if(e){a.default(e).removeClass("active");var n=a.default(e.parentNode).find("> .dropdown-menu .active")[0];n&&a.default(n).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(a.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),c.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&a.default(t.parentNode).hasClass("dropdown-menu")){var r=a.default(t).closest(".dropdown")[0];if(r){var o=[].slice.call(r.querySelectorAll(".dropdown-toggle"));a.default(o).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this),n=i.data("bs.tab");if(n||(n=new t(this),i.data("bs.tab",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"4.6.0"}}]),t}();a.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),lt._jQueryInterface.call(a.default(this),"show")})),a.default.fn.tab=lt._jQueryInterface,a.default.fn.tab.Constructor=lt,a.default.fn.tab.noConflict=function(){return a.default.fn.tab=st,lt._jQueryInterface};var ct=a.default.fn.toast,ut={animation:"boolean",autohide:"boolean",delay:"number"},dt={animation:!0,autohide:!0,delay:500},ht=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=a.default.Event("show.bs.toast");if(a.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),a.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),c.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var n=c.getTransitionDurationFromElement(this._element);a.default(this._element).one(c.TRANSITION_END,i).emulateTransitionEnd(n)}else i()}},e.hide=function(){if(this._element.classList.contains("show")){var t=a.default.Event("hide.bs.toast");a.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),a.default(this._element).off("click.dismiss.bs.toast"),a.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},dt,a.default(this._element).data(),"object"==typeof t&&t?t:{}),c.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;a.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),a.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=c.getTransitionDurationFromElement(this._element);a.default(this._element).one(c.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var i=a.default(this),n=i.data("bs.toast");if(n||(n=new t(this,"object"==typeof e&&e),i.data("bs.toast",n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e](this)}}))},s(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return ut}},{key:"Default",get:function(){return dt}}]),t}();a.default.fn.toast=ht._jQueryInterface,a.default.fn.toast.Constructor=ht,a.default.fn.toast.noConflict=function(){return a.default.fn.toast=ct,ht._jQueryInterface},t.Alert=h,t.Button=p,t.Carousel=_,t.Collapse=M,t.Dropdown=E,t.Modal=I,t.Popover=et,t.Scrollspy=ot,t.Tab=lt,t.Toast=ht,t.Tooltip=X,t.Util=c,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,(function(){"use strict";var t,e;function i(){return t.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(var e in t)if(r(t,e))return;return 1}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){for(var i=[],n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){for(var i in e)r(e,i)&&(t[i]=e[i]);return r(e,"toString")&&(t.toString=e.toString),r(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,i,n){return ve(t,e,i,n,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var i=f(t),n=e.call(i.parsedDateParts,(function(t){return null!=t})),a=!isNaN(t._d.getTime())&&i.overflow<0&&!i.empty&&!i.invalidEra&&!i.invalidMonth&&!i.invalidWeekday&&!i.weekdayMismatch&&!i.nullInput&&!i.invalidFormat&&!i.userInvalidated&&(!i.meridiem||i.meridiem&&n);if(t._strict&&(a=a&&0===i.charsLeftOver&&0===i.unusedTokens.length&&void 0===i.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return a;t._isValid=a}return t._isValid}function m(t){var e=h(NaN);return null!=t?d(f(e),t):f(e).userInvalidated=!0,e}e=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var g=i.momentProperties=[],v=!1;function y(t,e){var i,n,a;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),0<g.length)for(i=0;i<g.length;i++)s(a=e[n=g[i]])||(t[n]=a);return t}function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function _(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,e){var n=!0;return d((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var a,o,s=[],l=0;l<arguments.length;l++){if(a="","object"==typeof arguments[l]){for(o in a+="\n["+l+"] ",arguments[0])r(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[l];s.push(a)}x(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var k,S={};function M(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),S[t]||(x(e),S[t]=!0)}function L(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function T(t,e){var i,n=d({},t);for(i in e)r(e,i)&&(a(t[i])&&a(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)r(t,i)&&!r(e,i)&&a(t[i])&&(n[i]=d({},n[i]));return n}function C(t){null!=t&&this.set(t)}function A(t,e,i){var n=""+Math.abs(t),a=e-n.length;return(0<=t?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)r(t,e)&&i.push(e);return i};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},P={};function Y(t,e,i,n){var a="string"==typeof n?function(){return this[n]()}:n;t&&(P[t]=a),e&&(P[e[0]]=function(){return A(a.apply(this,arguments),e[1],e[2])}),i&&(P[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function I(t,e){return t.isValid()?(e=N(e,t.localeData()),O[e]=O[e]||function(t){for(var e,i=t.match(D),n=0,a=i.length;n<a;n++)P[i[n]]?i[n]=P[i[n]]:i[n]=(e=i[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var n="",r=0;r<a;r++)n+=L(i[r])?i[r].call(e,t):i[r];return n}}(e),O[e](t)):t.localeData().invalidDate()}function N(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(E.lastIndex=0;0<=i&&E.test(t);)t=t.replace(E,n),E.lastIndex=0,--i;return t}var H={};function j(t,e){var i=t.toLowerCase();H[i]=H[i+"s"]=H[e]=t}function F(t){return"string"==typeof t?H[t]||H[t.toLowerCase()]:void 0}function R(t){var e,i,n={};for(i in t)r(t,i)&&(e=F(i))&&(n[e]=t[i]);return n}var z={};function $(t,e){z[t]=e}function B(t){return t%4==0&&t%100!=0||t%400==0}function W(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function V(t){var e=+t,i=0;return 0!=e&&isFinite(e)&&(i=W(e)),i}function q(t,e){return function(n){return null!=n?(X(this,t,n),i.updateOffset(this,e),this):U(this,t)}}function U(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function X(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&B(t.year())&&1===t.month()&&29===t.date()?(i=V(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),bt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var G,K=/\d/,Z=/\d\d/,J=/\d{3}/,Q=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,it=/\d\d\d\d?/,nt=/\d\d\d\d\d\d?/,at=/\d{1,3}/,rt=/\d{1,4}/,ot=/[+-]?\d{1,6}/,st=/\d+/,lt=/[+-]?\d+/,ct=/Z|[+-]\d\d:?\d\d/gi,ut=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ht(t,e,i){G[t]=L(e)?e:function(t,n){return t&&i?i:e}}function ft(t,e){return r(G,t)?G[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,a){return e||i||n||a}))))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}G={};var mt={};function gt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=V(t)}),i=0;i<t.length;i++)mt[t[i]]=n}function vt(t,e){gt(t,(function(t,i,n,a){n._w=n._w||{},e(t,n._w,n,a)}))}var yt;function bt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1==i?B(t)?29:28:31-i%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){for(var e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Y("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),j("month","M"),$("month",8),ht("M",et),ht("MM",et,Z),ht("MMM",(function(t,e){return e.monthsShortRegex(t)})),ht("MMMM",(function(t,e){return e.monthsRegex(t)})),gt(["M","MM"],(function(t,e){e[1]=V(t)-1})),gt(["MMM","MMMM"],(function(t,e,i,n){var a=i._locale.monthsParse(t,n,i._strict);null!=a?e[1]=a:f(i).invalidMonth=t}));var _t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),wt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,kt=dt,St=dt;function Mt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=V(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),bt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Lt(t){return null!=t?(Mt(this,t),i.updateOffset(this,!0),this):U(this,"Month")}function Tt(){function t(t,e){return e.length-t.length}for(var e,i=[],n=[],a=[],r=0;r<12;r++)e=h([2e3,r]),i.push(this.monthsShort(e,"")),n.push(this.months(e,"")),a.push(this.months(e,"")),a.push(this.monthsShort(e,""));for(i.sort(t),n.sort(t),a.sort(t),r=0;r<12;r++)i[r]=pt(i[r]),n[r]=pt(n[r]);for(r=0;r<24;r++)a[r]=pt(a[r]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ct(t){return B(t)?366:365}Y("Y",0,0,(function(){var t=this.year();return t<=9999?A(t,4):"+"+t})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),j("year","y"),$("year",1),ht("Y",lt),ht("YY",et,Z),ht("YYYY",rt,Q),ht("YYYYY",ot,tt),ht("YYYYYY",ot,tt),gt(["YYYYY","YYYYYY"],0),gt("YYYY",(function(t,e){e[0]=2===t.length?i.parseTwoDigitYear(t):V(t)})),gt("YY",(function(t,e){e[0]=i.parseTwoDigitYear(t)})),gt("Y",(function(t,e){e[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return V(t)+(68<V(t)?1900:2e3)};var At=q("FullYear",!0);function Dt(t){var e,i;return t<100&&0<=t?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Et(t,e,i){var n=7+e-i;return n-(7+Dt(t,0,n).getUTCDay()-e)%7-1}function Ot(t,e,i,n,a){var r,o=1+7*(e-1)+(7+i-n)%7+Et(t,n,a),s=o<=0?Ct(r=t-1)+o:o>Ct(t)?(r=t+1,o-Ct(t)):(r=t,o);return{year:r,dayOfYear:s}}function Pt(t,e,i){var n,a,r=Et(t.year(),e,i),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?n=o+Yt(a=t.year()-1,e,i):o>Yt(t.year(),e,i)?(n=o-Yt(t.year(),e,i),a=t.year()+1):(a=t.year(),n=o),{week:n,year:a}}function Yt(t,e,i){var n=Et(t,e,i),a=Et(t+1,e,i);return(Ct(t)-n+a)/7}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),$("week",5),$("isoWeek",5),ht("w",et),ht("ww",et,Z),ht("W",et),ht("WW",et,Z),vt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=V(t)})),Y("d",0,"do","day"),Y("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Y("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Y("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),$("day",11),$("weekday",11),$("isoWeekday",11),ht("d",et),ht("e",et),ht("E",et),ht("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ht("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ht("dddd",(function(t,e){return e.weekdaysRegex(t)})),vt(["dd","ddd","dddd"],(function(t,e,i,n){var a=i._locale.weekdaysParse(t,n,i._strict);null!=a?e.d=a:f(i).invalidWeekday=t})),vt(["d","e","E"],(function(t,e,i,n){e[n]=V(t)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ht="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=dt,Rt=dt,zt=dt;function $t(){function t(t,e){return e.length-t.length}for(var e,i,n,a,r=[],o=[],s=[],l=[],c=0;c<7;c++)e=h([2e3,1]).day(c),i=pt(this.weekdaysMin(e,"")),n=pt(this.weekdaysShort(e,"")),a=pt(this.weekdays(e,"")),r.push(i),o.push(n),s.push(a),l.push(i),l.push(n),l.push(a);r.sort(t),o.sort(t),s.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Bt(){return this.hours()%12||12}function Wt(t,e){Y(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Vt(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Bt),Y("k",["kk",2],0,(function(){return this.hours()||24})),Y("hmm",0,0,(function(){return""+Bt.apply(this)+A(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Bt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Wt("a",!0),Wt("A",!1),j("hour","h"),$("hour",13),ht("a",Vt),ht("A",Vt),ht("H",et),ht("h",et),ht("k",et),ht("HH",et,Z),ht("hh",et,Z),ht("kk",et,Z),ht("hmm",it),ht("hmmss",nt),ht("Hmm",it),ht("Hmmss",nt),gt(["H","HH"],3),gt(["k","kk"],(function(t,e,i){var n=V(t);e[3]=24===n?0:n})),gt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),gt(["h","hh"],(function(t,e,i){e[3]=V(t),f(i).bigHour=!0})),gt("hmm",(function(t,e,i){var n=t.length-2;e[3]=V(t.substr(0,n)),e[4]=V(t.substr(n)),f(i).bigHour=!0})),gt("hmmss",(function(t,e,i){var n=t.length-4,a=t.length-2;e[3]=V(t.substr(0,n)),e[4]=V(t.substr(n,2)),e[5]=V(t.substr(a)),f(i).bigHour=!0})),gt("Hmm",(function(t,e,i){var n=t.length-2;e[3]=V(t.substr(0,n)),e[4]=V(t.substr(n))})),gt("Hmmss",(function(t,e,i){var n=t.length-4,a=t.length-2;e[3]=V(t.substr(0,n)),e[4]=V(t.substr(n,2)),e[5]=V(t.substr(a))}));var qt,Ut=q("Hours",!0),Xt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_t,monthsShort:xt,week:{dow:0,doy:6},weekdays:Nt,weekdaysMin:jt,weekdaysShort:Ht,meridiemParse:/[ap]\.?m?\.?/i},Gt={},Kt={};function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Jt(t){var e;if(void 0===Gt[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=qt._abbr,require("./locale/"+t),Qt(e)}catch(e){Gt[t]=null}return Gt[t]}function Qt(t,e){var i;return t&&((i=s(e)?ee(t):te(t,e))?qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),qt._abbr}function te(t,e){if(null===e)return delete Gt[t],null;var i,n=Xt;if(e.abbr=t,null!=Gt[t])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Gt[t]._config;else if(null!=e.parentLocale)if(null!=Gt[e.parentLocale])n=Gt[e.parentLocale]._config;else{if(null==(i=Jt(e.parentLocale)))return Kt[e.parentLocale]||(Kt[e.parentLocale]=[]),Kt[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Gt[t]=new C(T(n,e)),Kt[t]&&Kt[t].forEach((function(t){te(t.name,t.config)})),Qt(t),Gt[t]}function ee(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return qt;if(!n(t)){if(e=Jt(t))return e;t=[t]}return function(t){for(var e,i,n,a,r=0;r<t.length;){for(e=(a=Zt(t[r]).split("-")).length,i=(i=Zt(t[r+1]))?i.split("-"):null;0<e;){if(n=Jt(a.slice(0,e).join("-")))return n;if(i&&i.length>=e&&function(t,e){for(var i=Math.min(t.length,e.length),n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}(a,i)>=e-1)break;e--}r++}return qt}(t)}function ie(t){var e,i=t._a;return i&&-2===f(t).overflow&&(e=i[1]<0||11<i[1]?1:i[2]<1||i[2]>bt(i[0],i[1])?2:i[3]<0||24<i[3]||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||59<i[4]?4:i[5]<0||59<i[5]?5:i[6]<0||999<i[6]?6:-1,f(t)._overflowDayOfYear&&(e<0||2<e)&&(e=2),f(t)._overflowWeeks&&-1===e&&(e=7),f(t)._overflowWeekday&&-1===e&&(e=8),f(t).overflow=e),t}var ne=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ae=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,re=/Z|[+-]\d\d(?::?\d\d)?/,oe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],se=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],le=/^\/?Date\((-?\d+)/i,ce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ue={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function de(t){var e,i,n,a,r,o,s=t._i,l=ne.exec(s)||ae.exec(s);if(l){for(f(t).iso=!0,e=0,i=oe.length;e<i;e++)if(oe[e][1].exec(l[1])){a=oe[e][0],n=!1!==oe[e][2];break}if(null==a)return void(t._isValid=!1);if(l[3]){for(e=0,i=se.length;e<i;e++)if(se[e][1].exec(l[3])){r=(l[2]||" ")+se[e][0];break}if(null==r)return void(t._isValid=!1)}if(!n&&null!=r)return void(t._isValid=!1);if(l[4]){if(!re.exec(l[4]))return void(t._isValid=!1);o="Z"}t._f=a+(r||"")+(o||""),me(t)}else t._isValid=!1}function he(t){var e,i,n,a,r=ce.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(r){if(n=e=function(t,e,i,n,a,r){var o=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),xt.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(a,10)];return r&&o.push(parseInt(r,10)),o}(r[4],r[3],r[2],r[5],r[6],r[7]),a=t,(i=r[1])&&Ht.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(f(a).weekdayMismatch=!0,!void(a._isValid=!1)))return;t._a=e,t._tzm=function(t,e,i){if(t)return ue[t];if(e)return 0;var n=parseInt(i,10),a=n%100;return(n-a)/100*60+a}(r[8],r[9],r[10]),t._d=Dt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function fe(t,e,i){return null!=t?t:null!=e?e:i}function pe(t){var e,n,a,r,o,s,l,c=[];if(!t._d){for(s=t,l=new Date(i.now()),a=s._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,a,r,o,s,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(r=1,o=4,i=fe(e.GG,t._a[0],Pt(ye(),1,4).year),n=fe(e.W,1),((a=fe(e.E,1))<1||7<a)&&(l=!0)):(r=t._locale._week.dow,o=t._locale._week.doy,c=Pt(ye(),r,o),i=fe(e.gg,t._a[0],c.year),n=fe(e.w,c.week),null!=e.d?((a=e.d)<0||6<a)&&(l=!0):null!=e.e?(a=e.e+r,(e.e<0||6<e.e)&&(l=!0)):a=r),n<1||n>Yt(i,r,o)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=Ot(i,n,a,r,o),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=fe(t._a[0],a[0]),(t._dayOfYear>Ct(o)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Dt(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=c[e]=a[e];for(;e<7;e++)t._a[e]=c[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Dt:function(t,e,i,n,a,r,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,i,n,a,r,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,i,n,a,r,o),s}).apply(null,c),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(f(t).weekdayMismatch=!0)}}function me(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;for(var e,n,a,o,s,l,c,u=""+t._i,d=u.length,h=0,p=N(t._f,t._locale).match(D)||[],m=0;m<p.length;m++)n=p[m],(e=(u.match(ft(n,t))||[])[0])&&(0<(a=u.substr(0,u.indexOf(e))).length&&f(t).unusedInput.push(a),u=u.slice(u.indexOf(e)+e.length),h+=e.length),P[n]?(e?f(t).empty=!1:f(t).unusedTokens.push(n),s=n,c=t,null!=(l=e)&&r(mt,s)&&mt[s](l,c._a,c,s)):t._strict&&!e&&f(t).unusedTokens.push(n);f(t).charsLeftOver=d-h,0<u.length&&f(t).unusedInput.push(u),t._a[3]<=12&&!0===f(t).bigHour&&0<t._a[3]&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):(null!=t.isPM&&((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0)),e)}(t._locale,t._a[3],t._meridiem),null!==(o=f(t).era)&&(t._a[0]=t._locale.erasConvertYear(o,t._a[0])),pe(t),ie(t)}else he(t);else de(t)}function ge(t){var e,r,o=t._i,h=t._f;return t._locale=t._locale||ee(t._l),null===o||void 0===h&&""===o?m({nullInput:!0}):("string"==typeof o&&(t._i=o=t._locale.preparse(o)),_(o)?new b(ie(o)):(c(o)?t._d=o:n(h)?function(t){var e,i,n,a,r,o,s=!1;if(0===t._f.length)return f(t).invalidFormat=!0,t._d=new Date(NaN);for(a=0;a<t._f.length;a++)r=0,o=!1,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[a],me(e),p(e)&&(o=!0),r+=f(e).charsLeftOver,r+=10*f(e).unusedTokens.length,f(e).score=r,s?r<n&&(n=r,i=e):(null==n||r<n||o)&&(n=r,i=e,o&&(s=!0));d(t,i||e)}(t):h?me(t):s(r=(e=t)._i)?e._d=new Date(i.now()):c(r)?e._d=new Date(r.valueOf()):"string"==typeof r?function(t){var e=le.exec(t._i);null===e?(de(t),!1===t._isValid&&(delete t._isValid,he(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(e):n(r)?(e._a=u(r.slice(0),(function(t){return parseInt(t,10)})),pe(e)):a(r)?function(t){var e,i;t._d||(i=void 0===(e=R(t._i)).day?e.date:e.day,t._a=u([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),pe(t))}(e):l(r)?e._d=new Date(r):i.createFromInputFallback(e),p(t)||(t._d=null),t))}function ve(t,e,i,r,s){var l,c={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==i&&!1!==i||(r=i,i=void 0),(a(t)&&o(t)||n(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=i,c._i=t,c._f=e,c._strict=r,(l=new b(ie(ge(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ye(t,e,i,n){return ve(t,e,i,n,!1)}i.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var be=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ye.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),_e=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ye.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:m()}));function xe(t,e){var i,a;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return ye();for(i=e[0],a=1;a<e.length;++a)e[a].isValid()&&!e[a][t](i)||(i=e[a]);return i}var we=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ke(t){var e=R(t),i=e.year||0,n=e.quarter||0,a=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1;for(e in t)if(r(t,e)&&(-1===yt.call(we,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<we.length;++i)if(t[we[i]]){if(n)return!1;parseFloat(t[we[i]])!==V(t[we[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+s+7*o,this._months=+a+3*n+12*i,this._data={},this._locale=ee(),this._bubble()}function Se(t){return t instanceof ke}function Me(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Le(t,e){Y(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+A(~~(t/60),2)+e+A(~~t%60,2)}))}Le("Z",":"),Le("ZZ",""),ht("Z",ut),ht("ZZ",ut),gt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ce(ut,t)}));var Te=/([\+\-]|\d\d)/gi;function Ce(t,e){var i,n,a=(e||"").match(t);return null===a?null:0===(n=60*(i=((a[a.length-1]||[])+"").match(Te)||["-",0,0])[1]+V(i[2]))?0:"+"===i[0]?n:-n}function Ae(t,e){var n,a;return e._isUTC?(n=e.clone(),a=(_(t)||c(t)?t.valueOf():ye(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),i.updateOffset(n,!1),n):ye(t).local()}function De(t){return-Math.round(t._d.getTimezoneOffset())}function Ee(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Oe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ye(t,e){var i,n,a,o=t,s=null;return Se(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(o={},e?o[e]=+t:o.milliseconds=+t):(s=Oe.exec(t))?(i="-"===s[1]?-1:1,o={y:0,d:V(s[2])*i,h:V(s[3])*i,m:V(s[4])*i,s:V(s[5])*i,ms:V(Me(1e3*s[6]))*i}):(s=Pe.exec(t))?(i="-"===s[1]?-1:1,o={y:Ie(s[2],i),M:Ie(s[3],i),w:Ie(s[4],i),d:Ie(s[5],i),h:Ie(s[6],i),m:Ie(s[7],i),s:Ie(s[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(a=function(t,e){var i;return t.isValid()&&e.isValid()?(e=Ae(e,t),t.isBefore(e)?i=Ne(t,e):((i=Ne(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(ye(o.from),ye(o.to)),(o={}).ms=a.milliseconds,o.M=a.months),n=new ke(o),Se(t)&&r(t,"_locale")&&(n._locale=t._locale),Se(t)&&r(t,"_isValid")&&(n._isValid=t._isValid),n}function Ie(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Ne(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=e-t.clone().add(i.months,"M"),i}function He(t,e){return function(i,n){var a;return null===n||isNaN(+n)||(M(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),je(this,Ye(i,n),t),this}}function je(t,e,n,a){var r=e._milliseconds,o=Me(e._days),s=Me(e._months);t.isValid()&&(a=null==a||a,s&&Mt(t,U(t,"Month")+s*n),o&&X(t,"Date",U(t,"Date")+o*n),r&&t._d.setTime(t._d.valueOf()+r*n),a&&i.updateOffset(t,o||s))}Ye.fn=ke.prototype,Ye.invalid=function(){return Ye(NaN)};var Fe=He(1,"add"),Re=He(-1,"subtract");function ze(t){return"string"==typeof t||t instanceof String}function $e(t){return _(t)||c(t)||ze(t)||l(t)||function(t){var e=n(t),i=!1;return e&&(i=0===t.filter((function(e){return!l(e)&&ze(t)})).length),e&&i}(t)||function(t){var e,i=a(t)&&!o(t),n=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<s.length;e+=1)n=n||r(t,s[e]);return i&&n}(t)||null==t}function Be(t,e){if(t.date()<e.date())return-Be(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(1+i,"months")-n)))||0}function We(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ee(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ve=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function qe(){return this._locale}var Ue=126227808e5;function Xe(t,e){return(t%e+e)%e}function Ge(t,e,i){return t<100&&0<=t?new Date(t+400,e,i)-Ue:new Date(t,e,i).valueOf()}function Ke(t,e,i){return t<100&&0<=t?Date.UTC(t+400,e,i)-Ue:Date.UTC(t,e,i)}function Ze(t,e){return e.erasAbbrRegex(t)}function Je(){for(var t=[],e=[],i=[],n=[],a=this.eras(),r=0,o=a.length;r<o;++r)e.push(pt(a[r].name)),t.push(pt(a[r].abbr)),i.push(pt(a[r].narrow)),n.push(pt(a[r].name)),n.push(pt(a[r].abbr)),n.push(pt(a[r].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Qe(t,e){Y(0,[t,t.length],0,e)}function ti(t,e,i,n,a){var r;return null==t?Pt(this,n,a).year:((r=Yt(t,n,a))<e&&(e=r),function(t,e,i,n,a){var r=Ot(t,e,i,n,a),o=Dt(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,i,n,a))}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),ht("N",Ze),ht("NN",Ze),ht("NNN",Ze),ht("NNNN",(function(t,e){return e.erasNameRegex(t)})),ht("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),gt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var a=i._locale.erasParse(t,n,i._strict);a?f(i).era=a:f(i).invalidEra=t})),ht("y",st),ht("yy",st),ht("yyy",st),ht("yyyy",st),ht("yo",(function(t,e){return e._eraYearOrdinalRegex||st})),gt(["y","yy","yyy","yyyy"],0),gt(["yo"],(function(t,e,i,n){var a;i._locale._eraYearOrdinalRegex&&(a=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[0]=i._locale.eraYearOrdinalParse(t,a):e[0]=parseInt(t,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Qe("gggg","weekYear"),Qe("ggggg","weekYear"),Qe("GGGG","isoWeekYear"),Qe("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),$("weekYear",1),$("isoWeekYear",1),ht("G",lt),ht("g",lt),ht("GG",et,Z),ht("gg",et,Z),ht("GGGG",rt,Q),ht("gggg",rt,Q),ht("GGGGG",ot,tt),ht("ggggg",ot,tt),vt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=V(t)})),vt(["gg","GG"],(function(t,e,n,a){e[a]=i.parseTwoDigitYear(t)})),Y("Q",0,"Qo","quarter"),j("quarter","Q"),$("quarter",7),ht("Q",K),gt("Q",(function(t,e){e[1]=3*(V(t)-1)})),Y("D",["DD",2],"Do","date"),j("date","D"),$("date",9),ht("D",et),ht("DD",et,Z),ht("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),gt(["D","DD"],2),gt("Do",(function(t,e){e[2]=V(t.match(et)[0])}));var ei=q("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),$("dayOfYear",4),ht("DDD",at),ht("DDDD",J),gt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=V(t)})),Y("m",["mm",2],0,"minute"),j("minute","m"),$("minute",14),ht("m",et),ht("mm",et,Z),gt(["m","mm"],4);var ii=q("Minutes",!1);Y("s",["ss",2],0,"second"),j("second","s"),$("second",15),ht("s",et),ht("ss",et,Z),gt(["s","ss"],5);var ni,ai,ri=q("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),$("millisecond",16),ht("S",at,K),ht("SS",at,Z),ht("SSS",at,J),ni="SSSS";ni.length<=9;ni+="S")ht(ni,st);function oi(t,e){e[6]=V(1e3*("0."+t))}for(ni="S";ni.length<=9;ni+="S")gt(ni,oi);ai=q("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var si=b.prototype;function li(t){return t}si.add=Fe,si.calendar=function(t,e){1===arguments.length&&(arguments[0]?$e(arguments[0])?(t=arguments[0],e=void 0):function(t){for(var e=a(t)&&!o(t),i=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s=0;s<n.length;s+=1)i=i||r(t,n[s]);return e&&i}(arguments[0])&&(e=arguments[0],t=void 0):e=t=void 0);var n=t||ye(),s=Ae(n,this).startOf("day"),l=i.calendarFormat(this,s)||"sameElse",c=e&&(L(e[l])?e[l].call(this,n):e[l]);return this.format(c||this.localeData().calendar(l,this,ye(n)))},si.clone=function(){return new b(this)},si.diff=function(t,e,i){var n,a,r;if(!this.isValid())return NaN;if(!(n=Ae(t,this)).isValid())return NaN;switch(a=6e4*(n.utcOffset()-this.utcOffset()),e=F(e)){case"year":r=Be(this,n)/12;break;case"month":r=Be(this,n);break;case"quarter":r=Be(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-a)/864e5;break;case"week":r=(this-n-a)/6048e5;break;default:r=this-n}return i?r:W(r)},si.endOf=function(t){var e,n;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?Ke:Ge,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Xe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Xe(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Xe(e,1e3)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},si.format=function(t){var e=I(this,t=t||(this.isUtc()?i.defaultFormatUtc:i.defaultFormat));return this.localeData().postformat(e)},si.from=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||ye(t).isValid())?Ye({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},si.fromNow=function(t){return this.from(ye(),t)},si.to=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||ye(t).isValid())?Ye({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},si.toNow=function(t){return this.to(ye(),t)},si.get=function(t){return L(this[t=F(t)])?this[t]():this},si.invalidAt=function(){return f(this).overflow},si.isAfter=function(t,e){var i=_(t)?t:ye(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},si.isBefore=function(t,e){var i=_(t)?t:ye(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},si.isBetween=function(t,e,i,n){var a=_(t)?t:ye(t),r=_(e)?e:ye(e);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(a,i):!this.isBefore(a,i))&&(")"===n[1]?this.isBefore(r,i):!this.isAfter(r,i))},si.isSame=function(t,e){var i,n=_(t)?t:ye(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},si.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},si.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},si.isValid=function(){return p(this)},si.lang=Ve,si.locale=We,si.localeData=qe,si.max=_e,si.min=be,si.parsingFlags=function(){return d({},f(this))},si.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e,i=[];for(e in t)r(t,e)&&i.push({unit:e,priority:z[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=R(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(L(this[t=F(t)]))return this[t](e);return this},si.startOf=function(t){var e,n;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?Ke:Ge,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Xe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Xe(e,6e4);break;case"second":e=this._d.valueOf(),e-=Xe(e,1e3)}return this._d.setTime(e),i.updateOffset(this,!0),this},si.subtract=Re,si.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},si.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},si.toDate=function(){return new Date(this.valueOf())},si.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||9999<i.year()?I(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(i,"Z")):I(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},si.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=a+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(si[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),si.toJSON=function(){return this.isValid()?this.toISOString():null},si.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},si.unix=function(){return Math.floor(this.valueOf()/1e3)},si.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},si.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},si.eraName=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].name;if(e[i].until<=t&&t<=e[i].since)return e[i].name}return""},si.eraNarrow=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].narrow;if(e[i].until<=t&&t<=e[i].since)return e[i].narrow}return""},si.eraAbbr=function(){for(var t,e=this.localeData().eras(),i=0,n=e.length;i<n;++i){if(t=this.clone().startOf("day").valueOf(),e[i].since<=t&&t<=e[i].until)return e[i].abbr;if(e[i].until<=t&&t<=e[i].since)return e[i].abbr}return""},si.eraYear=function(){for(var t,e,n=this.localeData().eras(),a=0,r=n.length;a<r;++a)if(t=n[a].since<=n[a].until?1:-1,e=this.clone().startOf("day").valueOf(),n[a].since<=e&&e<=n[a].until||n[a].until<=e&&e<=n[a].since)return(this.year()-i(n[a].since).year())*t+n[a].offset;return this.year()},si.year=At,si.isLeapYear=function(){return B(this.year())},si.weekYear=function(t){return ti.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},si.isoWeekYear=function(t){return ti.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},si.quarter=si.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},si.month=Lt,si.daysInMonth=function(){return bt(this.year(),this.month())},si.week=si.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},si.isoWeek=si.isoWeeks=function(t){var e=Pt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},si.weeksInYear=function(){var t=this.localeData()._week;return Yt(this.year(),t.dow,t.doy)},si.weeksInWeekYear=function(){var t=this.localeData()._week;return Yt(this.weekYear(),t.dow,t.doy)},si.isoWeeksInYear=function(){return Yt(this.year(),1,4)},si.isoWeeksInISOWeekYear=function(){return Yt(this.isoWeekYear(),1,4)},si.date=ei,si.day=si.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d")):n},si.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},si.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,i,n=(e=t,i=this.localeData(),"string"==typeof e?i.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?n:n-7)},si.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},si.hour=si.hours=Ut,si.minute=si.minutes=ii,si.second=si.seconds=ri,si.millisecond=si.milliseconds=ai,si.utcOffset=function(t,e,n){var a,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?r:De(this);if("string"==typeof t){if(null===(t=Ce(ut,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(a=De(this)),this._offset=t,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==t&&(!e||this._changeInProgress?je(this,Ye(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},si.utc=function(t){return this.utcOffset(0,t)},si.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(De(this),"m")),this},si.parseZone=function(){var t;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(t=Ce(ct,this._i))?this.utcOffset(t):this.utcOffset(0,!0)),this},si.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ye(t).utcOffset():0,(this.utcOffset()-t)%60==0)},si.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},si.isLocal=function(){return!!this.isValid()&&!this._isUTC},si.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},si.isUtc=Ee,si.isUTC=Ee,si.zoneAbbr=function(){return this._isUTC?"UTC":""},si.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},si.dates=w("dates accessor is deprecated. Use date instead.",ei),si.months=w("months accessor is deprecated. Use month instead",Lt),si.years=w("years accessor is deprecated. Use year instead",At),si.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),si.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=ge(e))._a?(t=(e._isUTC?h:ye)(e._a),this._isDSTShifted=this.isValid()&&0<function(t,e,i){for(var n=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),r=0,o=0;o<n;o++)V(t[o])!==V(e[o])&&r++;return r+a}(e._a,t.toArray())):this._isDSTShifted=!1,this._isDSTShifted}));var ci=C.prototype;function ui(t,e,i,n){var a=ee(),r=h().set(n,e);return a[i](r,t)}function di(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return ui(t,e,i,"month");for(var n=[],a=0;a<12;a++)n[a]=ui(t,a,i,"month");return n}function hi(t,e,i,n){"boolean"==typeof t?l(e)&&(i=e,e=void 0):(e=t,t=!1,l(i=e)&&(i=e,e=void 0)),e=e||"";var a,r=ee(),o=t?r._week.dow:0,s=[];if(null!=i)return ui(e,(i+o)%7,n,"day");for(a=0;a<7;a++)s[a]=ui(e,(a+o)%7,n,"day");return s}ci.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return L(n)?n.call(e,i):n},ci.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(D).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},ci.invalidDate=function(){return this._invalidDate},ci.ordinal=function(t){return this._ordinal.replace("%d",t)},ci.preparse=li,ci.postformat=li,ci.relativeTime=function(t,e,i,n){var a=this._relativeTime[i];return L(a)?a(t,e,i,n):a.replace(/%d/i,t)},ci.pastFuture=function(t,e){var i=this._relativeTime[0<t?"future":"past"];return L(i)?i(e):i.replace(/%s/i,e)},ci.set=function(t){var e,i;for(i in t)r(t,i)&&(L(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ci.eras=function(t,e){for(var n,a=this._eras||ee("en")._eras,r=0,o=a.length;r<o;++r){switch(typeof a[r].since){case"string":n=i(a[r].since).startOf("day"),a[r].since=n.valueOf()}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=i(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf()}}return a},ci.erasParse=function(t,e,i){var n,a,r,o,s,l=this.eras();for(t=t.toUpperCase(),n=0,a=l.length;n<a;++n)if(r=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(o===t)return l[n];break;case"NNNN":if(r===t)return l[n];break;case"NNNNN":if(s===t)return l[n]}else if(0<=[r,o,s].indexOf(t))return l[n]},ci.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},ci.erasAbbrRegex=function(t){return r(this,"_erasAbbrRegex")||Je.call(this),t?this._erasAbbrRegex:this._erasRegex},ci.erasNameRegex=function(t){return r(this,"_erasNameRegex")||Je.call(this),t?this._erasNameRegex:this._erasRegex},ci.erasNarrowRegex=function(t){return r(this,"_erasNarrowRegex")||Je.call(this),t?this._erasNarrowRegex:this._erasRegex},ci.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||wt).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},ci.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[wt.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ci.monthsParse=function(t,e,i){var n,a,r;if(this._monthsParseExact)return function(t,e,i){var n,a,r,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=h([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(a=yt.call(this._shortMonthsParse,o))?a:null:-1!==(a=yt.call(this._longMonthsParse,o))?a:null:"MMM"===e?-1!==(a=yt.call(this._shortMonthsParse,o))||-1!==(a=yt.call(this._longMonthsParse,o))?a:null:-1!==(a=yt.call(this._longMonthsParse,o))||-1!==(a=yt.call(this._shortMonthsParse,o))?a:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=h([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},ci.monthsRegex=function(t){return this._monthsParseExact?(r(this,"_monthsRegex")||Tt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(r(this,"_monthsRegex")||(this._monthsRegex=St),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},ci.monthsShortRegex=function(t){return this._monthsParseExact?(r(this,"_monthsRegex")||Tt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(r(this,"_monthsShortRegex")||(this._monthsShortRegex=kt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},ci.week=function(t){return Pt(t,this._week.dow,this._week.doy).week},ci.firstDayOfYear=function(){return this._week.doy},ci.firstDayOfWeek=function(){return this._week.dow},ci.weekdays=function(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?It(i,this._week.dow):t?i[t.day()]:i},ci.weekdaysMin=function(t){return!0===t?It(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},ci.weekdaysShort=function(t){return!0===t?It(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},ci.weekdaysParse=function(t,e,i){var n,a,r;if(this._weekdaysParseExact)return function(t,e,i){var n,a,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(a=yt.call(this._weekdaysParse,o))?a:null:"ddd"===e?-1!==(a=yt.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=yt.call(this._minWeekdaysParse,o))?a:null:"dddd"===e?-1!==(a=yt.call(this._weekdaysParse,o))||-1!==(a=yt.call(this._shortWeekdaysParse,o))||-1!==(a=yt.call(this._minWeekdaysParse,o))?a:null:"ddd"===e?-1!==(a=yt.call(this._shortWeekdaysParse,o))||-1!==(a=yt.call(this._weekdaysParse,o))||-1!==(a=yt.call(this._minWeekdaysParse,o))?a:null:-1!==(a=yt.call(this._minWeekdaysParse,o))||-1!==(a=yt.call(this._weekdaysParse,o))||-1!==(a=yt.call(this._shortWeekdaysParse,o))?a:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=h([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},ci.weekdaysRegex=function(t){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},ci.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ci.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ci.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ci.meridiem=function(t,e,i){return 11<t?i?"pm":"PM":i?"am":"AM"},Qt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===V(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),i.lang=w("moment.lang is deprecated. Use moment.locale instead.",Qt),i.langData=w("moment.langData is deprecated. Use moment.localeData instead.",ee);var fi=Math.abs;function pi(t,e,i,n){var a=Ye(e,i);return t._milliseconds+=n*a._milliseconds,t._days+=n*a._days,t._months+=n*a._months,t._bubble()}function mi(t){return t<0?Math.floor(t):Math.ceil(t)}function gi(t){return 4800*t/146097}function vi(t){return 146097*t/4800}function yi(t){return function(){return this.as(t)}}var bi=yi("ms"),_i=yi("s"),xi=yi("m"),wi=yi("h"),ki=yi("d"),Si=yi("w"),Mi=yi("M"),Li=yi("Q"),Ti=yi("y");function Ci(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ai=Ci("milliseconds"),Di=Ci("seconds"),Ei=Ci("minutes"),Oi=Ci("hours"),Pi=Ci("days"),Yi=Ci("months"),Ii=Ci("years"),Ni=Math.round,Hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var ji=Math.abs;function Fi(t){return(0<t)-(t<0)||+t}function Ri(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,a,r,o,s,l=ji(this._milliseconds)/1e3,c=ji(this._days),u=ji(this._months),d=this.asSeconds();return d?(t=W(l/60),e=W(t/60),l%=60,t%=60,i=W(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",r=Fi(this._months)!==Fi(d)?"-":"",o=Fi(this._days)!==Fi(d)?"-":"",s=Fi(this._milliseconds)!==Fi(d)?"-":"",a+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(c?o+c+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+n+"S":"")):"P0D"}var zi=ke.prototype;function $i(t){return 0===t?0:1===t?1:2===t?2:3<=t%100&&t%100<=10?3:11<=t%100?4:5}function Bi(t){return function(e,i,n,a){var r=$i(e),o=Wi[t][$i(e)];return 2===r&&(o=o[i?0:1]),o.replace(/%d/i,e)}}zi.isValid=function(){return this._isValid},zi.abs=function(){var t=this._data;return this._milliseconds=fi(this._milliseconds),this._days=fi(this._days),this._months=fi(this._months),t.milliseconds=fi(t.milliseconds),t.seconds=fi(t.seconds),t.minutes=fi(t.minutes),t.hours=fi(t.hours),t.months=fi(t.months),t.years=fi(t.years),this},zi.add=function(t,e){return pi(this,t,e,1)},zi.subtract=function(t,e){return pi(this,t,e,-1)},zi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+gi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(vi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},zi.asMilliseconds=bi,zi.asSeconds=_i,zi.asMinutes=xi,zi.asHours=wi,zi.asDays=ki,zi.asWeeks=Si,zi.asMonths=Mi,zi.asQuarters=Li,zi.asYears=Ti,zi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},zi._bubble=function(){var t,e,i,n,a,r=this._milliseconds,o=this._days,s=this._months,l=this._data;return 0<=r&&0<=o&&0<=s||r<=0&&o<=0&&s<=0||(r+=864e5*mi(vi(s)+o),s=o=0),l.milliseconds=r%1e3,t=W(r/1e3),l.seconds=t%60,e=W(t/60),l.minutes=e%60,i=W(e/60),l.hours=i%24,o+=W(i/24),s+=a=W(gi(o)),o-=mi(vi(a)),n=W(s/12),s%=12,l.days=o,l.months=s,l.years=n,this},zi.clone=function(){return Ye(this)},zi.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},zi.milliseconds=Ai,zi.seconds=Di,zi.minutes=Ei,zi.hours=Oi,zi.days=Pi,zi.weeks=function(){return W(this.days()/7)},zi.months=Yi,zi.years=Ii,zi.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,a=!1,r=Hi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(a=t),"object"==typeof e&&(r=Object.assign({},Hi,e),null!=e.s&&null==e.ss&&(r.ss=e.s-1)),n=function(t,e,i,n){var a=Ye(t).abs(),r=Ni(a.as("s")),o=Ni(a.as("m")),s=Ni(a.as("h")),l=Ni(a.as("d")),c=Ni(a.as("M")),u=Ni(a.as("w")),d=Ni(a.as("y")),h=(r<=i.ss?["s",r]:r<i.s&&["ss",r])||o<=1&&["m"]||o<i.m&&["mm",o]||s<=1&&["h"]||s<i.h&&["hh",s]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(h=h||u<=1&&["w"]||u<i.w&&["ww",u]),(h=h||c<=1&&["M"]||c<i.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=0<+t,h[4]=n,function(t,e,i,n,a){return a.relativeTime(e||1,!!i,t,n)}.apply(null,h)}(this,!a,r,i=this.localeData()),a&&(n=i.pastFuture(+this,n)),i.postformat(n)},zi.toISOString=Ri,zi.toString=Ri,zi.toJSON=Ri,zi.locale=We,zi.localeData=qe,zi.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ri),zi.lang=Ve,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),ht("x",lt),ht("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),gt("x",(function(t,e,i){i._d=new Date(V(t))})),i.version="2.29.1",t=ye,i.fn=si,i.min=function(){return xe("isBefore",[].slice.call(arguments,0))},i.max=function(){return xe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(t){return ye(1e3*t)},i.months=function(t,e){return di(t,e,"months")},i.isDate=c,i.locale=Qt,i.invalid=m,i.duration=Ye,i.isMoment=_,i.weekdays=function(t,e,i){return hi(t,e,i,"weekdays")},i.parseZone=function(){return ye.apply(null,arguments).parseZone()},i.localeData=ee,i.isDuration=Se,i.monthsShort=function(t,e){return di(t,e,"monthsShort")},i.weekdaysMin=function(t,e,i){return hi(t,e,i,"weekdaysMin")},i.defineLocale=te,i.updateLocale=function(t,e){var i,n,a;return null!=e?(a=Xt,null!=Gt[t]&&null!=Gt[t].parentLocale?Gt[t].set(T(Gt[t]._config,e)):(null!=(n=Jt(t))&&(a=n._config),e=T(a,e),null==n&&(e.abbr=t),(i=new C(e)).parentLocale=Gt[t],Gt[t]=i),Qt(t)):null!=Gt[t]&&(null!=Gt[t].parentLocale?(Gt[t]=Gt[t].parentLocale,t===Qt()&&Qt(t)):null!=Gt[t]&&delete Gt[t]),Gt[t]},i.locales=function(){return k(Gt)},i.weekdaysShort=function(t,e,i){return hi(t,e,i,"weekdaysShort")},i.normalizeUnits=F,i.relativeTimeRounding=function(t){return void 0===t?Ni:"function"==typeof t&&(Ni=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Hi[t]&&(void 0===e?Hi[t]:(Hi[t]=e,"s"===t&&(Hi.ss=e-1),!0))},i.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},i.prototype=si,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||20<=t?"ste":"de")},week:{dow:1,doy:4}});var Wi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Vi=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];function qi(t){return 0===t?0:1===t?1:2===t?2:3<=t%100&&t%100<=10?3:11<=t%100?4:5}function Ui(t){return function(e,i,n,a){var r=qi(e),o=Gi[t][qi(e)];return 2===r&&(o=o[i?0:1]),o.replace(/%d/i,e)}}i.defineLocale("ar-dz",{months:Vi,monthsShort:Vi,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Bi("s"),ss:Bi("s"),m:Bi("m"),mm:Bi("m"),h:Bi("h"),hh:Bi("h"),d:Bi("d"),dd:Bi("d"),M:Bi("M"),MM:Bi("M"),y:Bi("y"),yy:Bi("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}}),i.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var Xi={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Gi={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Ki=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];i.defineLocale("ar-ly",{months:Ki,monthsShort:Ki,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Ui("s"),ss:Ui("s"),m:Ui("m"),mm:Ui("m"),h:Ui("h"),hh:Ui("h"),d:Ui("d"),dd:Ui("d"),M:Ui("M"),MM:Ui("M"),y:Ui("y"),yy:Ui("y")},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return Xi[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}}),i.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Zi={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ji={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};function Qi(t){return 0===t?0:1===t?1:2===t?2:3<=t%100&&t%100<=10?3:11<=t%100?4:5}function tn(t){return function(e,i,n,a){var r=Qi(e),o=an[t][Qi(e)];return 2===r&&(o=o[i?0:1]),o.replace(/%d/i,e)}}i.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return Ji[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return Zi[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}}),i.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var en={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},nn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},an={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},rn=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];i.defineLocale("ar",{months:rn,monthsShort:rn,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"م"===t},meridiem:function(t,e,i){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:tn("s"),ss:tn("s"),m:tn("m"),mm:tn("m"),h:tn("h"),hh:tn("h"),d:tn("d"),dd:tn("d"),M:tn("M"),MM:tn("M"),y:tn("y"),yy:tn("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return nn[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return en[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});var on={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};function sn(t,e,i){var n,a;return"m"===i?e?"хвіліна":"хвіліну":"h"===i?e?"гадзіна":"гадзіну":t+" "+(n=+t,a={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:e?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i].split("_"),n%10==1&&n%100!=11?a[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?a[1]:a[2])}i.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,i){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var e=t%10;return t+(on[e]||on[t%100-e]||on[100<=t?100:null])},week:{dow:1,doy:7}}),i.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:sn,mm:sn,h:sn,hh:sn,d:"дзень",dd:sn,M:"месяц",MM:sn,y:"год",yy:sn},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}}),i.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(t){var e=t%10,i=t%100;return 0===t?t+"-ев":0==i?t+"-ен":10<i&&i<20?t+"-ти":1==e?t+"-ви":2==e?t+"-ри":7==e||8==e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}}),i.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var ln={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},cn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};i.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(t){return cn[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return ln[t]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e?t<4?t:t+12:"ভোর"===e||"সকাল"===e?t:"দুপুর"===e?3<=t?t:t+12:"বিকাল"===e||"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}});var un={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},dn={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};i.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(t){return dn[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return un[t]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&4<=t||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,i){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var hn={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},fn={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};function pn(t,e,i){var n;return t+" "+(n={mm:"munutenn",MM:"miz",dd:"devezh"}[i],2!==t?n:function(t){var e={m:"v",b:"v",d:"z"};return void 0!==e[t.charAt(0)]?e[t.charAt(0)]+t.substring(1):t}(n))}i.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(t){return fn[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return hn[t]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&4<=t||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,i){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}});var mn=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],gn=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,vn=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];function yn(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t||2!==t&&3!==t&&4!==t?"minuta":"minute");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t||2!==t&&3!==t&&4!==t?"godina":"godine")}}i.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:vn,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:vn,monthsRegex:gn,monthsShortRegex:gn,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:mn,longMonthsParse:mn,shortMonthsParse:mn,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:pn,h:"un eur",hh:"%d eur",d:"un devezh",dd:pn,M:"ur miz",MM:pn,y:"ur bloaz",yy:function(t){switch(function t(e){return 9<e?t(e%10):e}(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,i){return t<12?"a.m.":"g.m."}}),i.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:yn,m:yn,mm:yn,h:yn,hh:yn,d:"dan",dd:yn,M:"mjesec",MM:yn,y:"godinu",yy:yn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){return t+("w"!==e&&"W"!==e?1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è":"a")},week:{dow:1,doy:4}});var bn="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),_n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),xn=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],wn=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function kn(t){return 1<t&&t<5&&1!=~~(t/10)}function Sn(t,e,i,n){var a=t+" ";switch(i){case"s":return e||n?"pár sekund":"pár sekundami";case"ss":return e||n?a+(kn(t)?"sekundy":"sekund"):a+"sekundami";case"m":return e?"minuta":n?"minutu":"minutou";case"mm":return e||n?a+(kn(t)?"minuty":"minut"):a+"minutami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?a+(kn(t)?"hodiny":"hodin"):a+"hodinami";case"d":return e||n?"den":"dnem";case"dd":return e||n?a+(kn(t)?"dny":"dní"):a+"dny";case"M":return e||n?"měsíc":"měsícem";case"MM":return e||n?a+(kn(t)?"měsíce":"měsíců"):a+"měsíci";case"y":return e||n?"rok":"rokem";case"yy":return e||n?a+(kn(t)?"roky":"let"):a+"lety"}}function Mn(t,e,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?a[i][0]:a[i][1]}function Ln(t,e,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?a[i][0]:a[i][1]}function Tn(t,e,i,n){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?a[i][0]:a[i][1]}i.defineLocale("cs",{months:bn,monthsShort:_n,monthsRegex:wn,monthsShortRegex:wn,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:xn,longMonthsParse:xn,shortMonthsParse:xn,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:Sn,ss:Sn,m:Sn,mm:Sn,h:Sn,hh:Sn,d:Sn,dd:Sn,M:Sn,MM:Sn,y:Sn,yy:Sn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"рен":/\u04ab\u0443\u043b$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),i.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return 20<t?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":0<t&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}}),i.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Mn,mm:"%d Minuten",h:Mn,hh:"%d Stunden",d:Mn,dd:Mn,w:Mn,ww:"%d Wochen",M:Mn,MM:Mn,y:Mn,yy:Mn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Ln,mm:"%d Minuten",h:Ln,hh:"%d Stunden",d:Ln,dd:Ln,w:Ln,ww:"%d Wochen",M:Ln,MM:Ln,y:Ln,yy:Ln},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:Tn,mm:"%d Minuten",h:Tn,hh:"%d Stunden",d:Tn,dd:Tn,w:Tn,ww:"%d Wochen",M:Tn,MM:Tn,y:Tn,yy:Tn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Cn=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],An=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];i.defineLocale("dv",{months:Cn,monthsShort:Cn,weekdays:An,weekdaysShort:An,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,i){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}}),i.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,i){return 11<t?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var i,n=this._calendarEl[t],a=e&&e.hours();return i=n,("undefined"!=typeof Function&&i instanceof Function||"[object Function]"===Object.prototype.toString.call(i))&&(n=n.apply(e)),n.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}}),i.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:0,doy:4}}),i.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),i.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),i.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:0,doy:6}}),i.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,i){return 11<t?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var Dn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),En="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),On=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Pn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;i.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?En[t.month()]:Dn[t.month()]:Dn},monthsRegex:Pn,monthsShortRegex:Pn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:On,longMonthsParse:On,shortMonthsParse:On,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var Yn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),In="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Nn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Hn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;i.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?In[t.month()]:Yn[t.month()]:Yn},monthsRegex:Hn,monthsShortRegex:Hn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Nn,longMonthsParse:Nn,shortMonthsParse:Nn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"});var jn="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Fn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Rn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],zn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;i.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?Fn[t.month()]:jn[t.month()]:jn},monthsRegex:zn,monthsShortRegex:zn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Rn,longMonthsParse:Rn,shortMonthsParse:Rn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}});var $n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Bn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Wn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],Vn=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;function qn(t,e,i,n){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?a[i][2]?a[i][2]:a[i][1]:n?a[i][0]:a[i][1]}i.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?Bn[t.month()]:$n[t.month()]:$n},monthsRegex:Vn,monthsShortRegex:Vn,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Wn,longMonthsParse:Wn,shortMonthsParse:Wn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"}),i.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:qn,ss:qn,m:qn,mm:qn,h:qn,hh:qn,d:qn,dd:"%d päeva",M:qn,MM:qn,y:qn,yy:qn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Un={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Xn={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};i.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,i){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[\u06f0-\u06f9]/g,(function(t){return Xn[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return Un[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}});var Gn="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Kn=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Gn[7],Gn[8],Gn[9]];function Zn(t,e,i,n){var a,r="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":r=n?"sekunnin":"sekuntia";break;case"m":return n?"minuutin":"minuutti";case"mm":r=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":r=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":r=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":r=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":r=n?"vuoden":"vuotta"}return((a=t)<10?n?Kn[a]:Gn[a]:a)+" "+r}i.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:Zn,ss:Zn,m:Zn,mm:Zn,h:Zn,hh:Zn,d:Zn,dd:Zn,M:Zn,MM:Zn,y:Zn,yy:Zn},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}}),i.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}}),i.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});var Jn=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,Qn=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];i.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Jn,monthsShortRegex:Jn,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:Qn,longMonthsParse:Qn,shortMonthsParse:Qn,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}});var ta="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),ea="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");function ia(t,e,i,n){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return n?a[i][0]:a[i][1]}function na(t,e,i,n){var a={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return n?a[i][0]:a[i][1]}i.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?ea[t.month()]:ta[t.month()]:ta},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||20<=t?"ste":"de")},week:{dow:1,doy:4}}),i.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}}),i.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}}),i.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:ia,ss:ia,m:ia,mm:ia,h:ia,hh:ia,d:ia,dd:ia,M:ia,MM:ia,y:ia,yy:ia},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(t,e){switch(e){case"D":return t+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?12<t?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}}),i.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:na,ss:na,m:na,mm:na,h:na,hh:na,d:na,dd:na,M:na,MM:na,y:na,yy:na},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?12<t?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}});var aa={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},ra={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};i.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(t){return ra[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return aa[t]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?10<=t?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),i.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,i){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?i?'לפנה"צ':"לפני הצהריים":t<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});var oa={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},sa={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},la=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];function ca(t,e,i){var n=t+" ";switch(i){case"ss":return n+(1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi");case"m":return e?"jedna minuta":"jedne minute";case"mm":return n+(1===t||2!==t&&3!==t&&4!==t?"minuta":"minute");case"h":return e?"jedan sat":"jednog sata";case"hh":return n+(1===t?"sat":2===t||3===t||4===t?"sata":"sati");case"dd":return n+(1===t?"dan":"dana");case"MM":return n+(1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci");case"yy":return n+(1===t||2!==t&&3!==t&&4!==t?"godina":"godine")}}i.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:la,longMonthsParse:la,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return sa[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return oa[t]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?10<=t?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}}),i.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:ca,m:ca,mm:ca,h:ca,hh:ca,d:"dan",dd:ca,M:"mjesec",MM:ca,y:"godinu",yy:ca},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var ua="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function da(t,e,i,n){var a=t;switch(i){case"s":return n||e?"néhány másodperc":"néhány másodperce";case"ss":return a+(n||e)?" másodperc":" másodperce";case"m":return"egy"+(n||e?" perc":" perce");case"mm":return a+(n||e?" perc":" perce");case"h":return"egy"+(n||e?" óra":" órája");case"hh":return a+(n||e?" óra":" órája");case"d":return"egy"+(n||e?" nap":" napja");case"dd":return a+(n||e?" nap":" napja");case"M":return"egy"+(n||e?" hónap":" hónapja");case"MM":return a+(n||e?" hónap":" hónapja");case"y":return"egy"+(n||e?" év":" éve");case"yy":return a+(n||e?" év":" éve")}return""}function ha(t){return(t?"":"[múlt] ")+"["+ua[this.day()]+"] LT[-kor]"}function fa(t){return t%100==11||t%10!=1}function pa(t,e,i,n){var a=t+" ";switch(i){case"s":return e||n?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return fa(t)?a+(e||n?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return e?"mínúta":"mínútu";case"mm":return fa(t)?a+(e||n?"mínútur":"mínútum"):e?a+"mínúta":a+"mínútu";case"hh":return fa(t)?a+(e||n?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return e?"dagur":n?"dag":"degi";case"dd":return fa(t)?e?a+"dagar":a+(n?"daga":"dögum"):e?a+"dagur":a+(n?"dag":"degi");case"M":return e?"mánuður":n?"mánuð":"mánuði";case"MM":return fa(t)?e?a+"mánuðir":a+(n?"mánuði":"mánuðum"):e?a+"mánuður":a+(n?"mánuð":"mánuði");case"y":return e||n?"ár":"ári";case"yy":return fa(t)?a+(e||n?"ár":"árum"):a+(e||n?"ár":"ári")}}i.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,i){return t<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ha.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ha.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:da,ss:da,m:da,mm:da,h:da,hh:da,d:da,dd:da,M:da,MM:da,y:da,yy:da},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}}),i.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?11<=t?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}}),i.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:pa,ss:pa,m:pa,mm:pa,h:"klukkustund",hh:pa,d:pa,dd:pa,M:pa,MM:pa,y:pa,yy:pa},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(1<this.hours()?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,i){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),i.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?11<=t?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),i.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,(function(t,e,i){return"ი"===i?e+"ში":e+i+"ში"}))},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"ის წინ"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}});var ma={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};i.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(ma[t]||ma[t%10]||ma[100<=t?100:null])},week:{dow:1,doy:7}});var ga={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},va={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};i.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,i){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(t){return va[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return ga[t]}))},week:{dow:1,doy:4}});var ya={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},ba={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};i.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(t){return ba[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return ya[t]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?10<=t?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}}),i.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"오후"===t},meridiem:function(t,e,i){return t<12?"오전":"오후"}});var _a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},xa={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},wa=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];i.defineLocale("ku",{months:wa,monthsShort:wa,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,i){return t<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return xa[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return _a[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}});var ka={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};function Sa(t,e,i,n){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?a[i][0]:a[i][1]}function Ma(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return Ma(0==e?t/10:e)}if(t<1e4){for(;10<=t;)t/=10;return Ma(t)}return Ma(t/=1e3)}i.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(ka[t]||ka[t%10]||ka[100<=t?100:null])},week:{dow:1,doy:7}}),i.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return Ma(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return Ma(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:Sa,mm:"%d Minutten",h:Sa,hh:"%d Stonnen",d:Sa,dd:"%d Deeg",M:Sa,MM:"%d Méint",y:Sa,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,i){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}});var La={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function Ta(t,e,i,n){return e?Aa(i)[0]:n?Aa(i)[1]:Aa(i)[2]}function Ca(t){return t%10==0||10<t&&t<20}function Aa(t){return La[t].split("_")}function Da(t,e,i,n){var a=t+" ";return 1===t?a+Ta(0,e,i[0],n):e?a+(Ca(t)?Aa(i)[1]:Aa(i)[0]):n?a+Aa(i)[1]:a+(Ca(t)?Aa(i)[1]:Aa(i)[2])}i.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(t,e,i,n){return e?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:Da,m:Ta,mm:Da,h:Ta,hh:Da,d:Ta,dd:Da,M:Ta,MM:Da,y:Ta,yy:Da},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}});var Ea={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function Oa(t,e,i){return i?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function Pa(t,e,i){return t+" "+Oa(Ea[i],t,e)}function Ya(t,e,i){return Oa(Ea[i],t,e)}i.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(t,e){return e?"dažas sekundes":"dažām sekundēm"},ss:Pa,m:Ya,mm:Pa,h:Ya,hh:Pa,d:Ya,dd:Pa,M:Ya,MM:Pa,y:Ya,yy:Pa},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ia={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:2<=t&&t<=4?e[1]:e[2]},translate:function(t,e,i){var n=Ia.words[i];return 1===i.length?e?n[0]:n[1]:t+" "+Ia.correctGrammaticalCase(t,n)}};function Na(t,e,i,n){switch(i){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}i.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Ia.translate,m:Ia.translate,mm:Ia.translate,h:Ia.translate,hh:Ia.translate,d:"dan",dd:Ia.translate,M:"mjesec",MM:Ia.translate,y:"godinu",yy:Ia.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(t){var e=t%10,i=t%100;return 0===t?t+"-ев":0==i?t+"-ен":10<i&&i<20?t+"-ти":1==e?t+"-ви":2==e?t+"-ри":7==e||8==e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}}),i.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&4<=t||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,i){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}}),i.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,i){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:Na,ss:Na,m:Na,mm:Na,h:Na,hh:Na,d:Na,dd:Na,M:Na,MM:Na,y:Na,yy:Na},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}});var Ha={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ja={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function Fa(t,e,i,n){var a="";if(e)switch(i){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(i){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,t)}i.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:Fa,ss:Fa,m:Fa,mm:Fa,h:Fa,hh:Fa,d:Fa,dd:Fa,M:Fa,MM:Fa,y:Fa,yy:Fa},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return ja[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return Ha[t]}))},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?12<=t?t:t+12:void 0},meridiem:function(t,e,i){return 0<=t&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),i.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?11<=t?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),i.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?11<=t?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,i){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),i.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var Ra={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},za={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};i.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(t){return za[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return Ra[t]}))},week:{dow:1,doy:4}}),i.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var $a={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ba={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};i.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return Ba[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return $a[t]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?10<=t?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,i){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var Wa="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Va="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),qa=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Ua=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;i.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?Va[t.month()]:Wa[t.month()]:Wa},monthsRegex:Ua,monthsShortRegex:Ua,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:qa,longMonthsParse:qa,shortMonthsParse:qa,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||20<=t?"ste":"de")},week:{dow:1,doy:4}});var Xa="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ga="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ka=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Za=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;i.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,e){return t?/-MMM-/.test(e)?Ga[t.month()]:Xa[t.month()]:Xa},monthsRegex:Za,monthsShortRegex:Za,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ka,longMonthsParse:Ka,shortMonthsParse:Ka,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||20<=t?"ste":"de")},week:{dow:1,doy:4}}),i.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){return t+("w"!==e&&"W"!==e?1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è":"a")},week:{dow:1,doy:4}});var Ja={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Qa={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};i.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(t){return Qa[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return Ja[t]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?10<=t?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var tr="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),er="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),ir=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function nr(t){return t%10<5&&1<t%10&&~~(t/10)%10!=1}function ar(t,e,i){var n=t+" ";switch(i){case"ss":return n+(nr(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return n+(nr(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return n+(nr(t)?"godziny":"godzin");case"ww":return n+(nr(t)?"tygodnie":"tygodni");case"MM":return n+(nr(t)?"miesiące":"miesięcy");case"yy":return n+(nr(t)?"lata":"lat")}}function rr(t,e,i){return t+(20<=t%100||100<=t&&t%100==0?" de ":" ")+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[i]}function or(t,e,i){var n,a;return"m"===i?e?"минута":"минуту":t+" "+(n=+t,a={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i].split("_"),n%10==1&&n%100!=11?a[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?a[1]:a[2])}i.defineLocale("pl",{months:function(t,e){return t?/D MMMM/.test(e)?er[t.month()]:tr[t.month()]:tr},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:ir,longMonthsParse:ir,shortMonthsParse:ir,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:ar,m:ar,mm:ar,h:ar,hh:ar,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:ar,M:"miesiąc",MM:ar,y:"rok",yy:ar},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",invalidDate:"Data inválida"}),i.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),i.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:rr,m:"un minut",mm:rr,h:"o oră",hh:rr,d:"o zi",dd:rr,w:"o săptămână",ww:rr,M:"o lună",MM:rr,y:"un an",yy:rr},week:{dow:1,doy:7}});var sr=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];i.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:sr,longMonthsParse:sr,shortMonthsParse:sr,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:or,m:or,mm:or,h:"час",hh:or,d:"день",dd:or,w:"неделя",ww:or,M:"месяц",MM:or,y:"год",yy:or},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}});var lr=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],cr=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];i.defineLocale("sd",{months:lr,monthsShort:lr,weekdays:cr,weekdaysShort:cr,weekdaysMin:cr,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(t){return"شام"===t},meridiem:function(t,e,i){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}}),i.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(t){return t+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,i){return 11<t?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});var ur="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),dr="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function hr(t){return 1<t&&t<5}function fr(t,e,i,n){var a=t+" ";switch(i){case"s":return e||n?"pár sekúnd":"pár sekundami";case"ss":return e||n?a+(hr(t)?"sekundy":"sekúnd"):a+"sekundami";case"m":return e?"minúta":n?"minútu":"minútou";case"mm":return e||n?a+(hr(t)?"minúty":"minút"):a+"minútami";case"h":return e?"hodina":n?"hodinu":"hodinou";case"hh":return e||n?a+(hr(t)?"hodiny":"hodín"):a+"hodinami";case"d":return e||n?"deň":"dňom";case"dd":return e||n?a+(hr(t)?"dni":"dní"):a+"dňami";case"M":return e||n?"mesiac":"mesiacom";case"MM":return e||n?a+(hr(t)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return e||n?"rok":"rokom";case"yy":return e||n?a+(hr(t)?"roky":"rokov"):a+"rokmi"}}function pr(t,e,i,n){var a=t+" ";switch(i){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"ss":return a+(1===t?e?"sekundo":"sekundi":2===t?e||n?"sekundi":"sekundah":t<5?e||n?"sekunde":"sekundah":"sekund");case"m":return e?"ena minuta":"eno minuto";case"mm":return a+(1===t?e?"minuta":"minuto":2===t?e||n?"minuti":"minutama":t<5?e||n?"minute":"minutami":e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return a+(1===t?e?"ura":"uro":2===t?e||n?"uri":"urama":t<5?e||n?"ure":"urami":e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return a+(1===t?e||n?"dan":"dnem":2===t?e||n?"dni":"dnevoma":e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return a+(1===t?e||n?"mesec":"mesecem":2===t?e||n?"meseca":"mesecema":t<5?e||n?"mesece":"meseci":e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return a+(1===t?e||n?"leto":"letom":2===t?e||n?"leti":"letoma":t<5?e||n?"leta":"leti":e||n?"let":"leti")}}i.defineLocale("sk",{months:ur,monthsShort:dr,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:fr,ss:fr,m:fr,mm:fr,h:fr,hh:fr,d:fr,dd:fr,M:fr,MM:fr,y:fr,yy:fr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:pr,ss:pr,m:pr,mm:pr,h:pr,hh:pr,d:pr,dd:pr,M:pr,MM:pr,y:pr,yy:pr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,i){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var mr={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:2<=t&&t<=4?e[1]:e[2]},translate:function(t,e,i){var n=mr.words[i];return 1===i.length?e?n[0]:n[1]:t+" "+mr.correctGrammaticalCase(t,n)}};i.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:mr.translate,m:mr.translate,mm:mr.translate,h:mr.translate,hh:mr.translate,d:"дан",dd:mr.translate,M:"месец",MM:mr.translate,y:"годину",yy:mr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var gr={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:2<=t&&t<=4?e[1]:e[2]},translate:function(t,e,i){var n=gr.words[i];return 1===i.length?e?n[0]:n[1]:t+" "+gr.correctGrammaticalCase(t,n)}};i.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:gr.translate,m:gr.translate,mm:gr.translate,h:gr.translate,hh:gr.translate,d:"dan",dd:gr.translate,M:"mesec",MM:gr.translate,y:"godinu",yy:gr.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),i.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,i){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?11<=t?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),i.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)||1!=e&&2!=e?":e":":a")},week:{dow:1,doy:4}}),i.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var vr={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},yr={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};i.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(t){return yr[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return vr[t]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(t,e,i){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&10<=t?t:t+12},week:{dow:0,doy:6}}),i.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?10<=t?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),i.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:1,doy:4}});var br={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};i.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?11<=t?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,i){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(br[t]||br[t%10]||br[100<=t?100:null])},week:{dow:1,doy:7}}),i.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,i){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});var _r={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};i.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(t,e){switch(e){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var i=t%10;return t+(_r[i]||_r[t%100-i]||_r[100<=t?100:null])}},week:{dow:1,doy:7}}),i.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}});var xr="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function wr(t,e,i,n){var a=function(t){var e=Math.floor(t%1e3/100),i=Math.floor(t%100/10),n=t%10,a="";return 0<e&&(a+=xr[e]+"vatlh"),0<i&&(a+=(""!==a?" ":"")+xr[i]+"maH"),0<n&&(a+=(""!==a?" ":"")+xr[n]),""===a?"pagh":a}(t);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}i.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:wr,m:"wa’ tup",mm:wr,h:"wa’ rep",hh:wr,d:"wa’ jaj",dd:wr,M:"wa’ jar",MM:wr,y:"wa’ DIS",yy:wr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var kr={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};function Sr(t,e,i,n){var a={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return n||e?a[i][0]:a[i][1]}function Mr(t,e,i){var n,a;return"m"===i?e?"хвилина":"хвилину":"h"===i?e?"година":"годину":t+" "+(n=+t,a={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i].split("_"),n%10==1&&n%100!=11?a[0]:2<=n%10&&n%10<=4&&(n%100<10||20<=n%100)?a[1]:a[2])}function Lr(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}i.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(t,e,i){return t<12?i?"öö":"ÖÖ":i?"ös":"ÖS"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(t){return"ös"===t||"ÖS"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,e){switch(e){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var i=t%10;return t+(kr[i]||kr[t%100-i]||kr[100<=t?100:null])}},week:{dow:1,doy:7}}),i.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,i){return 11<t?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Sr,ss:Sr,m:Sr,mm:Sr,h:Sr,hh:Sr,d:Sr,dd:Sr,M:Sr,MM:Sr,y:Sr,yy:Sr},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),i.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),i.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),i.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e||"چۈشتىن كېيىن"!==e&&"كەچ"!==e&&11<=t?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"يېرىم كېچە":n<900?"سەھەر":n<1130?"چۈشتىن بۇرۇن":n<1230?"چۈش":n<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}}),i.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):t?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Lr("[Сьогодні "),nextDay:Lr("[Завтра "),lastDay:Lr("[Вчора "),nextWeek:Lr("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Lr("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Lr("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:Mr,m:Mr,mm:Mr,h:"годину",hh:Mr,d:"день",dd:Mr,M:"місяць",MM:Mr,y:"рік",yy:Mr},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,i){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}});var Tr=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Cr=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return i.defineLocale("ur",{months:Tr,monthsShort:Tr,weekdays:Cr,weekdaysShort:Cr,weekdaysMin:Cr,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(t){return"شام"===t},meridiem:function(t,e,i){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}}),i.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),i.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),i.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,i){return t<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}}),i.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")},week:{dow:1,doy:4}}),i.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),i.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e||"下午"!==e&&"晚上"!==e&&11<=t?t:t+12},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),i.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?11<=t?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1200?"上午":1200===n?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),i.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?11<=t?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),i.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?11<=t?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,i){var n=100*t+e;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),i.locale("en"),i})),
/*!
 * perfect-scrollbar v1.5.0
 * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors
 * Licensed under MIT
 */
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).PerfectScrollbar=e()}(this,(function(){"use strict";function t(t){return getComputedStyle(t)}function e(t,e){for(var i in e){var n=e[i];"number"==typeof n&&(n+="px"),t.style[i]=n}return t}function i(t){var e=document.createElement("div");return e.className=t,e}var n="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function a(t,e){if(!n)throw new Error("No element matching method supported");return n.call(t,e)}function r(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function o(t,e){return Array.prototype.filter.call(t.children,(function(t){return a(t,e)}))}var s="ps",l="ps__rtl",c={thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},u={focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}},d={x:null,y:null};function h(t,e){var i=t.element.classList,n=u.scrolling(e);i.contains(n)?clearTimeout(d[e]):i.add(n)}function f(t,e){d[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(u.scrolling(e))}),t.settings.scrollingThreshold)}var p=function(t){this.element=t,this.handlers={}},m={isEmpty:{configurable:!0}};p.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},p.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter((function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)}))},p.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},m.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(p.prototype,m);var g=function(){this.eventElements=[]};function v(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function y(t,e,i,n,a){var r;if(void 0===n&&(n=!0),void 0===a&&(a=!1),"top"===e)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,i,n,a){var r=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5];void 0===n&&(n=!0);void 0===a&&(a=!1);var d=t.element;t.reach[l]=null,d[s]<1&&(t.reach[l]="start");d[s]>t[r]-t[o]-1&&(t.reach[l]="end");e&&(d.dispatchEvent(v("ps-scroll-"+l)),e<0?d.dispatchEvent(v("ps-scroll-"+c)):e>0&&d.dispatchEvent(v("ps-scroll-"+u)),n&&function(t,e){h(t,e),f(t,e)}(t,l));t.reach[l]&&(e||a)&&d.dispatchEvent(v("ps-"+l+"-reach-"+t.reach[l]))}(t,i,r,n,a)}function b(t){return parseInt(t,10)||0}g.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new p(t),this.eventElements.push(e)),e},g.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},g.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},g.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},g.prototype.once=function(t,e,i){var n=this.eventElement(t),a=function(t){n.unbind(e,a),i(t)};n.bind(e,a)};var _={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function x(t){var i=t.element,n=Math.floor(i.scrollTop),a=i.getBoundingClientRect();t.containerWidth=Math.ceil(a.width),t.containerHeight=Math.ceil(a.height),t.contentWidth=i.scrollWidth,t.contentHeight=i.scrollHeight,i.contains(t.scrollbarXRail)||(o(i,c.rail("x")).forEach((function(t){return r(t)})),i.appendChild(t.scrollbarXRail)),i.contains(t.scrollbarYRail)||(o(i,c.rail("y")).forEach((function(t){return r(t)})),i.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=w(t,b(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=b((t.negativeScrollAdjustment+i.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=w(t,b(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=b(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,i){var n={width:i.railXWidth},a=Math.floor(t.scrollTop);i.isRtl?n.left=i.negativeScrollAdjustment+t.scrollLeft+i.containerWidth-i.contentWidth:n.left=t.scrollLeft;i.isScrollbarXUsingBottom?n.bottom=i.scrollbarXBottom-a:n.top=i.scrollbarXTop+a;e(i.scrollbarXRail,n);var r={top:a,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?r.right=i.contentWidth-(i.negativeScrollAdjustment+t.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth-9:r.right=i.scrollbarYRight-t.scrollLeft:i.isRtl?r.left=i.negativeScrollAdjustment+t.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:r.left=i.scrollbarYLeft+t.scrollLeft;e(i.scrollbarYRail,r),e(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),e(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}(i,t),t.scrollbarXActive?i.classList.add(u.active("x")):(i.classList.remove(u.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,i.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?i.classList.add(u.active("y")):(i.classList.remove(u.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,i.scrollTop=0)}function w(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function k(t,e){var i=e[0],n=e[1],a=e[2],r=e[3],o=e[4],s=e[5],l=e[6],c=e[7],d=e[8],p=t.element,m=null,g=null,v=null;function y(e){e.touches&&e.touches[0]&&(e[a]=e.touches[0].pageY),p[l]=m+v*(e[a]-g),h(t,c),x(t),e.stopPropagation(),e.preventDefault()}function b(){f(t,c),t[d].classList.remove(u.clicking),t.event.unbind(t.ownerDocument,"mousemove",y)}function _(e,o){m=p[l],o&&e.touches&&(e[a]=e.touches[0].pageY),g=e[a],v=(t[n]-t[i])/(t[r]-t[s]),o?t.event.bind(t.ownerDocument,"touchmove",y):(t.event.bind(t.ownerDocument,"mousemove",y),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[d].classList.add(u.clicking),e.stopPropagation()}t.event.bind(t[o],"mousedown",(function(t){_(t)})),t.event.bind(t[o],"touchstart",(function(t){_(t,!0)}))}var S={"click-rail":function(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,x(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,x(t),e.stopPropagation()}))},"drag-thumb":function(t){k(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),k(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",(function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(a(e,":hover")||a(t.scrollbarX,":focus")||a(t.scrollbarY,":focus"))){var n,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(a(n=r,"input,[contenteditable]")||a(n,"select,[contenteditable]")||a(n,"textarea,[contenteditable]")||a(n,"button,[contenteditable]"))return}var o=0,s=0;switch(i.which){case 37:o=i.metaKey?-t.contentWidth:i.altKey?-t.containerWidth:-30;break;case 38:s=i.metaKey?t.contentHeight:i.altKey?t.containerHeight:30;break;case 39:o=i.metaKey?t.contentWidth:i.altKey?t.containerWidth:30;break;case 40:s=i.metaKey?-t.contentHeight:i.altKey?-t.containerHeight:-30;break;case 32:s=i.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:s=t.containerHeight;break;case 34:s=-t.containerHeight;break;case 36:s=t.contentHeight;break;case 35:s=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==s||(e.scrollTop-=s,e.scrollLeft+=o,x(t),function(i,n){var a=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===a&&n>0||a>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var r=e.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===r&&i<0||r>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}(o,s)&&i.preventDefault())}}))},wheel:function(e){var i=e.element;function n(n){var a=function(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}(n),r=a[0],o=a[1];if(!function(e,n,a){if(!_.isWebKit&&i.querySelector("select:focus"))return!0;if(!i.contains(e))return!1;for(var r=e;r&&r!==i;){if(r.classList.contains(c.consuming))return!0;var o=t(r);if(a&&o.overflowY.match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&(r.scrollTop>0&&a<0||r.scrollTop<s&&a>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var l=r.scrollWidth-r.clientWidth;if(l>0&&(r.scrollLeft>0&&n<0||r.scrollLeft<l&&n>0))return!0}r=r.parentNode}return!1}(n.target,r,o)){var s=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(o?i.scrollTop-=o*e.settings.wheelSpeed:i.scrollTop+=r*e.settings.wheelSpeed,s=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(r?i.scrollLeft+=r*e.settings.wheelSpeed:i.scrollLeft-=o*e.settings.wheelSpeed,s=!0):(i.scrollTop-=o*e.settings.wheelSpeed,i.scrollLeft+=r*e.settings.wheelSpeed),x(e),(s=s||function(t,n){var a=Math.floor(i.scrollTop),r=0===i.scrollTop,o=a+i.offsetHeight===i.scrollHeight,s=0===i.scrollLeft,l=i.scrollLeft+i.offsetWidth===i.scrollWidth;return!(Math.abs(n)>Math.abs(t)?r||o:s||l)||!e.settings.wheelPropagation}(r,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?e.event.bind(i,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(i,"mousewheel",n)},touch:function(e){if(_.supportsTouch||_.supportsIePointer){var i=e.element,n={},a=0,r={},o=null;_.supportsTouch?(e.event.bind(i,"touchstart",d),e.event.bind(i,"touchmove",h),e.event.bind(i,"touchend",f)):_.supportsIePointer&&(window.PointerEvent?(e.event.bind(i,"pointerdown",d),e.event.bind(i,"pointermove",h),e.event.bind(i,"pointerup",f)):window.MSPointerEvent&&(e.event.bind(i,"MSPointerDown",d),e.event.bind(i,"MSPointerMove",h),e.event.bind(i,"MSPointerUp",f)))}function s(t,n){i.scrollTop-=n,i.scrollLeft-=t,x(e)}function l(t){return t.targetTouches?t.targetTouches[0]:t}function u(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function d(t){if(u(t)){var e=l(t);n.pageX=e.pageX,n.pageY=e.pageY,a=(new Date).getTime(),null!==o&&clearInterval(o)}}function h(o){if(u(o)){var d=l(o),h={pageX:d.pageX,pageY:d.pageY},f=h.pageX-n.pageX,p=h.pageY-n.pageY;if(function(e,n,a){if(!i.contains(e))return!1;for(var r=e;r&&r!==i;){if(r.classList.contains(c.consuming))return!0;var o=t(r);if(a&&o.overflowY.match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&(r.scrollTop>0&&a<0||r.scrollTop<s&&a>0))return!0}if(n&&o.overflowX.match(/(scroll|auto)/)){var l=r.scrollWidth-r.clientWidth;if(l>0&&(r.scrollLeft>0&&n<0||r.scrollLeft<l&&n>0))return!0}r=r.parentNode}return!1}(o.target,f,p))return;s(f,p),n=h;var m=(new Date).getTime(),g=m-a;g>0&&(r.x=f/g,r.y=p/g,a=m),function(t,n){var a=Math.floor(i.scrollTop),r=i.scrollLeft,o=Math.abs(t),s=Math.abs(n);if(s>o){if(n<0&&a===e.contentHeight-e.containerHeight||n>0&&0===a)return 0===window.scrollY&&n>0&&_.isChrome}else if(o>s&&(t<0&&r===e.contentWidth-e.containerWidth||t>0&&0===r))return!0;return!0}(f,p)&&o.preventDefault()}}function f(){e.settings.swipeEasing&&(clearInterval(o),o=setInterval((function(){e.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(s(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)}),10))}}},M=function(n,a){var r=this;if(void 0===a&&(a={}),"string"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var o in this.element=n,n.classList.add(s),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},a)this.settings[o]=a[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var d,h,f=function(){return n.classList.add(u.focus)},p=function(){return n.classList.remove(u.focus)};this.isRtl="rtl"===t(n).direction,!0===this.isRtl&&n.classList.add(l),this.isNegativeScroll=(h=n.scrollLeft,n.scrollLeft=-1,d=n.scrollLeft<0,n.scrollLeft=h,d),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new g,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=i(c.rail("x")),n.appendChild(this.scrollbarXRail),this.scrollbarX=i(c.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",f),this.event.bind(this.scrollbarX,"blur",p),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var m=t(this.scrollbarXRail);this.scrollbarXBottom=parseInt(m.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=b(m.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=b(m.borderLeftWidth)+b(m.borderRightWidth),e(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=b(m.marginLeft)+b(m.marginRight),e(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(c.rail("y")),n.appendChild(this.scrollbarYRail),this.scrollbarY=i(c.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",f),this.event.bind(this.scrollbarY,"blur",p),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var v=t(this.scrollbarYRail);this.scrollbarYRight=parseInt(v.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=b(v.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var i=t(e);return b(i.width)+b(i.paddingLeft)+b(i.paddingRight)+b(i.borderLeftWidth)+b(i.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=b(v.borderTopWidth)+b(v.borderBottomWidth),e(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=b(v.marginTop)+b(v.marginBottom),e(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?"start":n.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:n.scrollTop<=0?"start":n.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return S[t](r)})),this.lastScrollTop=Math.floor(n.scrollTop),this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return r.onScroll(t)})),x(this)};return M.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,e(this.scrollbarXRail,{display:"block"}),e(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=b(t(this.scrollbarXRail).marginLeft)+b(t(this.scrollbarXRail).marginRight),this.railYMarginHeight=b(t(this.scrollbarYRail).marginTop)+b(t(this.scrollbarYRail).marginBottom),e(this.scrollbarXRail,{display:"none"}),e(this.scrollbarYRail,{display:"none"}),x(this),y(this,"top",0,!1,!0),y(this,"left",0,!1,!0),e(this.scrollbarXRail,{display:""}),e(this.scrollbarYRail,{display:""}))},M.prototype.onScroll=function(t){this.isAlive&&(x(this),y(this,"top",this.element.scrollTop-this.lastScrollTop),y(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},M.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),r(this.scrollbarX),r(this.scrollbarY),r(this.scrollbarXRail),r(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},M.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")},M})),function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.wNumb=t()}((function(){"use strict";var t=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function e(t){return t.split("").reverse().join("")}function i(t,e){return t.substring(0,e.length)===e}function n(t,e,i){if((t[e]||t[i])&&t[e]===t[i])throw new Error(e)}function a(t){return"number"==typeof t&&isFinite(t)}function r(t,i,n,r,o,s,l,c,u,d,h,f){var p,m,g,v,y,b=f,_="",x="";return s&&(f=s(f)),!!a(f)&&(!1!==t&&0===parseFloat(f.toFixed(t))&&(f=0),f<0&&(p=!0,f=Math.abs(f)),!1!==t&&(y=t,v=(v=f).toString().split("e"),f=(+((v=(v=Math.round(+(v[0]+"e"+(v[1]?+v[1]+y:y)))).toString().split("e"))[0]+"e"+(v[1]?+v[1]-y:-y))).toFixed(y)),-1!==(f=f.toString()).indexOf(".")?(g=(m=f.split("."))[0],n&&(_=n+m[1])):g=f,i&&(g=e(g).match(/.{1,3}/g),g=e(g.join(e(i)))),p&&c&&(x+=c),r&&(x+=r),p&&u&&(x+=u),x+=g,x+=_,o&&(x+=o),d&&(x=d(x,b)),x)}function o(t,e,n,r,o,s,l,c,u,d,h,f){var p,m="";return h&&(f=h(f)),!(!f||"string"!=typeof f)&&(c&&i(f,c)&&(f=f.replace(c,""),p=!0),r&&i(f,r)&&(f=f.replace(r,"")),u&&i(f,u)&&(f=f.replace(u,""),p=!0),o&&function(t,e){return t.slice(-1*e.length)===e}(f,o)&&(f=f.slice(0,-1*o.length)),e&&(f=f.split(e).join("")),n&&(f=f.replace(n,".")),p&&(m+="-"),""!==(m=(m+=f).replace(/[^0-9\.\-.]/g,""))&&(m=Number(m),l&&(m=l(m)),!!a(m)&&m))}function s(e,i,n){var a,r=[];for(a=0;a<t.length;a+=1)r.push(e[t[a]]);return r.push(n),i.apply("",r)}return function e(i){if(!(this instanceof e))return new e(i);"object"==typeof i&&(i=function(e){var i,a,r,o={};for(void 0===e.suffix&&(e.suffix=e.postfix),i=0;i<t.length;i+=1)if(void 0===(r=e[a=t[i]]))"negative"!==a||o.negativeBefore?"mark"===a&&"."!==o.thousand?o[a]=".":o[a]=!1:o[a]="-";else if("decimals"===a){if(!(r>=0&&r<8))throw new Error(a);o[a]=r}else if("encoder"===a||"decoder"===a||"edit"===a||"undo"===a){if("function"!=typeof r)throw new Error(a);o[a]=r}else{if("string"!=typeof r)throw new Error(a);o[a]=r}return n(o,"mark","thousand"),n(o,"prefix","negative"),n(o,"prefix","negativeBefore"),o}(i),this.to=function(t){return s(i,r,t)},this.from=function(t){return s(i,o,t)})}})),
/*!
 * https://github.com/paulmillr/es6-shim
 * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
 *   and contributors,  MIT License
 * es6-shim: v0.35.4
 * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE
 * Details and documentation:
 * https://github.com/paulmillr/es6-shim/
 */
function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.returnExports=e()}(this,(function(){"use strict";var t,e=Function.call.bind(Function.apply),i=Function.call.bind(Function.call),n=Array.isArray,a=Object.keys,r=function(t){return function(){return!e(t,this,arguments)}},o=function(t){try{return t(),!1}catch(t){return!0}},s=function(t){try{return t()}catch(t){return!1}},l=r(o),c=function(){return!o((function(){return Object.defineProperty({},"x",{get:function(){}})}))},u=!!Object.defineProperty&&c(),d="foo"===function(){}.name,h=Function.call.bind(Array.prototype.forEach),f=Function.call.bind(Array.prototype.reduce),p=Function.call.bind(Array.prototype.filter),m=Function.call.bind(Array.prototype.some),g=function(t,e,i,n){!n&&e in t||(u?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:i}):t[e]=i)},v=function(t,e,i){h(a(e),(function(n){var a=e[n];g(t,n,a,!!i)}))},y=Function.call.bind(Object.prototype.toString),b="function"==typeof/abc/?function(t){return"function"==typeof t&&"[object Function]"===y(t)}:function(t){return"function"==typeof t},_={getter:function(t,e,i){if(!u)throw new TypeError("getters require true ES5 support");Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:i})},proxy:function(t,e,i){if(!u)throw new TypeError("getters require true ES5 support");var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return t[e]},set:function(i){t[e]=i}})},redefine:function(t,e,i){if(u){var n=Object.getOwnPropertyDescriptor(t,e);n.value=i,Object.defineProperty(t,e,n)}else t[e]=i},defineByDescriptor:function(t,e,i){u?Object.defineProperty(t,e,i):"value"in i&&(t[e]=i.value)},preserveToString:function(t,e){e&&b(e.toString)&&g(t,"toString",e.toString.bind(e),!0)}},x=Object.create||function(t,e){var i=function(){};i.prototype=t;var n=new i;return void 0!==e&&a(e).forEach((function(t){_.defineByDescriptor(n,t,e[t])})),n},w=function(t,e){return!!Object.setPrototypeOf&&s((function(){var i=function e(i){var n=new t(i);return Object.setPrototypeOf(n,e.prototype),n};return Object.setPrototypeOf(i,t),i.prototype=x(t.prototype,{constructor:{value:i}}),e(i)}))},k=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")},S=k(),M=S.isFinite,L=Function.call.bind(String.prototype.indexOf),T=Function.apply.bind(Array.prototype.indexOf),C=Function.call.bind(Array.prototype.concat),A=Function.call.bind(String.prototype.slice),D=Function.call.bind(Array.prototype.push),E=Function.apply.bind(Array.prototype.push),O=Function.call.bind(Array.prototype.join),P=Function.call.bind(Array.prototype.shift),Y=Math.max,I=Math.min,N=Math.floor,H=Math.abs,j=Math.exp,F=Math.log,R=Math.sqrt,z=Function.call.bind(Object.prototype.hasOwnProperty),$=function(){},B=S.Map,W=B&&B.prototype.delete,V=B&&B.prototype.get,q=B&&B.prototype.has,U=B&&B.prototype.set,X=S.Symbol||{},G=X.species||"@@species",K=Number.isNaN||function(t){return t!=t},Z=Number.isFinite||function(t){return"number"==typeof t&&M(t)},J=b(Math.sign)?Math.sign:function(t){var e=Number(t);return 0===e||K(e)?e:e<0?-1:1},Q=function(t){var e=Number(t);return e<-1||K(e)?NaN:0===e||e===1/0?e:-1===e?-1/0:1+e-1==0?e:e*(F(1+e)/(1+e-1))},tt=function(t){return"[object Arguments]"===y(t)},et=function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==y(t)&&"[object Function]"===y(t.callee)},it=tt(arguments)?tt:et,nt={primitive:function(t){return null===t||"function"!=typeof t&&"object"!=typeof t},string:function(t){return"[object String]"===y(t)},regex:function(t){return"[object RegExp]"===y(t)},symbol:function(t){return"function"==typeof S.Symbol&&"symbol"==typeof t}},at=function(t,e,i){var n=t[e];g(t,e,i,!0),_.preserveToString(t[e],n)},rt="function"==typeof X&&"function"==typeof X.for&&nt.symbol(X()),ot=nt.symbol(X.iterator)?X.iterator:"_es6-shim iterator_";S.Set&&"function"==typeof(new S.Set)["@@iterator"]&&(ot="@@iterator"),S.Reflect||g(S,"Reflect",{},!0);var st=S.Reflect,lt=String,ct="undefined"!=typeof document&&document?document.all:null,ut=null==ct?function(t){return null==t}:function(t){return null==t&&t!==ct},dt={Call:function(t,i){var n=arguments.length>2?arguments[2]:[];if(!dt.IsCallable(t))throw new TypeError(t+" is not a function");return e(t,i,n)},RequireObjectCoercible:function(t,e){if(ut(t))throw new TypeError(e||"Cannot call method on "+t);return t},TypeIsObject:function(t){return null!=t&&!0!==t&&!1!==t&&("function"==typeof t||"object"==typeof t||t===ct)},ToObject:function(t,e){return Object(dt.RequireObjectCoercible(t,e))},IsCallable:b,IsConstructor:function(t){return dt.IsCallable(t)},ToInt32:function(t){return dt.ToNumber(t)>>0},ToUint32:function(t){return dt.ToNumber(t)>>>0},ToNumber:function(t){if(rt&&"[object Symbol]"===y(t))throw new TypeError("Cannot convert a Symbol value to a number");return+t},ToInteger:function(t){var e=dt.ToNumber(t);return K(e)?0:0!==e&&Z(e)?(e>0?1:-1)*N(H(e)):e},ToLength:function(t){var e=dt.ToInteger(t);return e<=0?0:e>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e},SameValue:function(t,e){return t===e?0!==t||1/t==1/e:K(t)&&K(e)},SameValueZero:function(t,e){return t===e||K(t)&&K(e)},IsIterable:function(t){return dt.TypeIsObject(t)&&(void 0!==t[ot]||it(t))},GetIterator:function(e){if(it(e))return new t(e,"value");var i=dt.GetMethod(e,ot);if(!dt.IsCallable(i))throw new TypeError("value is not an iterable");var n=dt.Call(i,e);if(!dt.TypeIsObject(n))throw new TypeError("bad iterator");return n},GetMethod:function(t,e){var i=dt.ToObject(t)[e];if(!ut(i)){if(!dt.IsCallable(i))throw new TypeError("Method not callable: "+e);return i}},IteratorComplete:function(t){return!!t.done},IteratorClose:function(t,e){var i=dt.GetMethod(t,"return");if(void 0!==i){var n,a;try{n=dt.Call(i,t)}catch(t){a=t}if(!e){if(a)throw a;if(!dt.TypeIsObject(n))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(t){var e=arguments.length>1?t.next(arguments[1]):t.next();if(!dt.TypeIsObject(e))throw new TypeError("bad iterator");return e},IteratorStep:function(t){var e=dt.IteratorNext(t);return!dt.IteratorComplete(e)&&e},Construct:function(t,e,i,n){var a=void 0===i?t:i;if(!n&&st.construct)return st.construct(t,e,a);var r=a.prototype;dt.TypeIsObject(r)||(r=Object.prototype);var o=x(r),s=dt.Call(t,o,e);return dt.TypeIsObject(s)?s:o},SpeciesConstructor:function(t,e){var i=t.constructor;if(void 0===i)return e;if(!dt.TypeIsObject(i))throw new TypeError("Bad constructor");var n=i[G];if(ut(n))return e;if(!dt.IsConstructor(n))throw new TypeError("Bad @@species");return n},CreateHTML:function(t,e,i,n){var a=dt.ToString(t),r="<"+e;""!==i&&(r+=" "+i+'="'+dt.ToString(n).replace(/"/g,"&quot;")+'"');return r+">"+a+"</"+e+">"},IsRegExp:function(t){if(!dt.TypeIsObject(t))return!1;var e=t[X.match];return void 0!==e?!!e:nt.regex(t)},ToString:function(t){if(rt&&"[object Symbol]"===y(t))throw new TypeError("Cannot convert a Symbol value to a number");return lt(t)}};if(u&&rt){var ht=function(t){if(nt.symbol(X[t]))return X[t];var e=X.for("Symbol."+t);return Object.defineProperty(X,t,{configurable:!1,enumerable:!1,writable:!1,value:e}),e};if(!nt.symbol(X.search)){var ft=ht("search"),pt=String.prototype.search;g(RegExp.prototype,ft,(function(t){return dt.Call(pt,t,[this])}));var mt=function(t){var e=dt.RequireObjectCoercible(this);if(!ut(t)){var i=dt.GetMethod(t,ft);if(void 0!==i)return dt.Call(i,t,[e])}return dt.Call(pt,e,[dt.ToString(t)])};at(String.prototype,"search",mt)}if(!nt.symbol(X.replace)){var gt=ht("replace"),vt=String.prototype.replace;g(RegExp.prototype,gt,(function(t,e){return dt.Call(vt,t,[this,e])}));var yt=function(t,e){var i=dt.RequireObjectCoercible(this);if(!ut(t)){var n=dt.GetMethod(t,gt);if(void 0!==n)return dt.Call(n,t,[i,e])}return dt.Call(vt,i,[dt.ToString(t),e])};at(String.prototype,"replace",yt)}if(!nt.symbol(X.split)){var bt=ht("split"),_t=String.prototype.split;g(RegExp.prototype,bt,(function(t,e){return dt.Call(_t,t,[this,e])}));var xt=function(t,e){var i=dt.RequireObjectCoercible(this);if(!ut(t)){var n=dt.GetMethod(t,bt);if(void 0!==n)return dt.Call(n,t,[i,e])}return dt.Call(_t,i,[dt.ToString(t),e])};at(String.prototype,"split",xt)}var wt=nt.symbol(X.match),kt=wt&&function(){var t={};return t[X.match]=function(){return 42},42!=="a".match(t)}();if(!wt||kt){var St=ht("match"),Mt=String.prototype.match;g(RegExp.prototype,St,(function(t){return dt.Call(Mt,t,[this])}));var Lt=function(t){var e=dt.RequireObjectCoercible(this);if(!ut(t)){var i=dt.GetMethod(t,St);if(void 0!==i)return dt.Call(i,t,[e])}return dt.Call(Mt,e,[dt.ToString(t)])};at(String.prototype,"match",Lt)}}var Tt=function(t,e,i){_.preserveToString(e,t),Object.setPrototypeOf&&Object.setPrototypeOf(t,e),u?h(Object.getOwnPropertyNames(t),(function(n){n in $||i[n]||_.proxy(t,n,e)})):h(Object.keys(t),(function(n){n in $||i[n]||(e[n]=t[n])})),e.prototype=t.prototype,_.redefine(t.prototype,"constructor",e)},Ct=function(){return this},At=function(t){u&&!z(t,G)&&_.getter(t,G,Ct)},Dt=function(t,e){var i=e||function(){return this};g(t,ot,i),!t[ot]&&nt.symbol(ot)&&(t[ot]=i)},Et=function(t,e,i){u?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[e]=i},Ot=function(t,e,i){if(Et(t,e,i),!dt.SameValue(t[e],i))throw new TypeError("property is nonconfigurable")},Pt=function(t,e,i,n){if(!dt.TypeIsObject(t))throw new TypeError("Constructor requires `new`: "+e.name);var a=e.prototype;dt.TypeIsObject(a)||(a=i);var r=x(a);for(var o in n)if(z(n,o)){var s=n[o];g(r,o,s,!0)}return r};if(String.fromCodePoint&&1!==String.fromCodePoint.length){var Yt=String.fromCodePoint;at(String,"fromCodePoint",(function(t){return dt.Call(Yt,this,arguments)}))}var It={fromCodePoint:function(t){for(var e,i=[],n=0,a=arguments.length;n<a;n++){if(e=Number(arguments[n]),!dt.SameValue(e,dt.ToInteger(e))||e<0||e>1114111)throw new RangeError("Invalid code point "+e);e<65536?D(i,String.fromCharCode(e)):(e-=65536,D(i,String.fromCharCode(55296+(e>>10))),D(i,String.fromCharCode(e%1024+56320)))}return O(i,"")},raw:function(t){var e=dt.ToObject(t,"bad template"),i=dt.ToObject(e.raw,"bad raw value"),n=i.length,a=dt.ToLength(n);if(a<=0)return"";for(var r,o,s,l,c=[],u=0;u<a&&(r=dt.ToString(u),s=dt.ToString(i[r]),D(c,s),!(u+1>=a));)o=u+1<arguments.length?arguments[u+1]:"",l=dt.ToString(o),D(c,l),u+=1;return O(c,"")}};String.raw&&"xy"!==String.raw({raw:{0:"x",1:"y",length:2}})&&at(String,"raw",It.raw),v(String,It);var Nt=function t(e,i){if(i<1)return"";if(i%2)return t(e,i-1)+e;var n=t(e,i/2);return n+n},Ht=1/0,jt={repeat:function(t){var e=dt.ToString(dt.RequireObjectCoercible(this)),i=dt.ToInteger(t);if(i<0||i>=Ht)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Nt(e,i)},startsWith:function(t){var e=dt.ToString(dt.RequireObjectCoercible(this));if(dt.IsRegExp(t))throw new TypeError('Cannot call method "startsWith" with a regex');var i,n=dt.ToString(t);arguments.length>1&&(i=arguments[1]);var a=Y(dt.ToInteger(i),0);return A(e,a,a+n.length)===n},endsWith:function(t){var e=dt.ToString(dt.RequireObjectCoercible(this));if(dt.IsRegExp(t))throw new TypeError('Cannot call method "endsWith" with a regex');var i,n=dt.ToString(t),a=e.length;arguments.length>1&&(i=arguments[1]);var r=void 0===i?a:dt.ToInteger(i),o=I(Y(r,0),a);return A(e,o-n.length,o)===n},includes:function(t){if(dt.IsRegExp(t))throw new TypeError('"includes" does not accept a RegExp');var e,i=dt.ToString(t);return arguments.length>1&&(e=arguments[1]),-1!==L(this,i,e)},codePointAt:function(t){var e=dt.ToString(dt.RequireObjectCoercible(this)),i=dt.ToInteger(t),n=e.length;if(i>=0&&i<n){var a=e.charCodeAt(i);if(a<55296||a>56319||i+1===n)return a;var r=e.charCodeAt(i+1);return r<56320||r>57343?a:1024*(a-55296)+(r-56320)+65536}}};if(String.prototype.includes&&!1!=="a".includes("a",1/0)&&at(String.prototype,"includes",jt.includes),String.prototype.startsWith&&String.prototype.endsWith){var Ft=o((function(){return"/a/".startsWith(/a/)})),Rt=s((function(){return!1==="abc".startsWith("a",1/0)}));Ft&&Rt||(at(String.prototype,"startsWith",jt.startsWith),at(String.prototype,"endsWith",jt.endsWith))}if(rt){var zt=s((function(){var t=/a/;return t[X.match]=!1,"/a/".startsWith(t)}));zt||at(String.prototype,"startsWith",jt.startsWith);var $t=s((function(){var t=/a/;return t[X.match]=!1,"/a/".endsWith(t)}));$t||at(String.prototype,"endsWith",jt.endsWith);var Bt=s((function(){var t=/a/;return t[X.match]=!1,"/a/".includes(t)}));Bt||at(String.prototype,"includes",jt.includes)}v(String.prototype,jt);var Wt=["\t\n\v\f\r   ᠎    ","         　\u2028","\u2029\ufeff"].join(""),Vt=new RegExp("(^["+Wt+"]+)|(["+Wt+"]+$)","g"),qt=function(){return dt.ToString(dt.RequireObjectCoercible(this)).replace(Vt,"")},Ut=["","​",""].join(""),Xt=new RegExp("["+Ut+"]","g"),Gt=/^[-+]0x[0-9a-f]+$/i,Kt=Ut.trim().length!==Ut.length;g(String.prototype,"trim",qt,Kt);var Zt=function(t){return{value:t,done:0===arguments.length}},Jt=function(t){dt.RequireObjectCoercible(t),this._s=dt.ToString(t),this._i=0};Jt.prototype.next=function(){var t=this._s,e=this._i;if(void 0===t||e>=t.length)return this._s=void 0,Zt();var i,n,a=t.charCodeAt(e);return n=a<55296||a>56319||e+1===t.length||(i=t.charCodeAt(e+1))<56320||i>57343?1:2,this._i=e+n,Zt(t.substr(e,n))},Dt(Jt.prototype),Dt(String.prototype,(function(){return new Jt(this)}));var Qt={from:function(t){var e,n,a,r=this;if(arguments.length>1&&(e=arguments[1]),void 0===e)n=!1;else{if(!dt.IsCallable(e))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(a=arguments[2]),n=!0}var o,s,l,c=void 0!==(it(t)||dt.GetMethod(t,ot));if(c){s=dt.IsConstructor(r)?Object(new r):[];var u,d,h=dt.GetIterator(t);for(l=0;!1!==(u=dt.IteratorStep(h));){d=u.value;try{n&&(d=void 0===a?e(d,l):i(e,a,d,l)),s[l]=d}catch(t){throw dt.IteratorClose(h,!0),t}l+=1}o=l}else{var f,p=dt.ToObject(t);for(o=dt.ToLength(p.length),s=dt.IsConstructor(r)?Object(new r(o)):new Array(o),l=0;l<o;++l)f=p[l],n&&(f=void 0===a?e(f,l):i(e,a,f,l)),Ot(s,l,f)}return s.length=o,s},of:function(){for(var t=arguments.length,e=this,i=n(e)||!dt.IsCallable(e)?new Array(t):dt.Construct(e,[t]),a=0;a<t;++a)Ot(i,a,arguments[a]);return i.length=t,i}};v(Array,Qt),At(Array),v((t=function(t,e){this.i=0,this.array=t,this.kind=e}).prototype,{next:function(){var e=this.i,i=this.array;if(!(this instanceof t))throw new TypeError("Not an ArrayIterator");if(void 0!==i&&e<dt.ToLength(i.length)){var n,a=this.kind;return"key"===a?n=e:"value"===a?n=i[e]:"entry"===a&&(n=[e,i[e]]),this.i=e+1,Zt(n)}return this.array=void 0,Zt()}}),Dt(t.prototype);var te=Array.of===Qt.of||function(){var t=function(t){this.length=t};t.prototype=[];var e=Array.of.apply(t,[1,2]);return e instanceof t&&2===e.length}();te||at(Array,"of",Qt.of);var ee={copyWithin:function(t,e){var i,n=dt.ToObject(this),a=dt.ToLength(n.length),r=dt.ToInteger(t),o=dt.ToInteger(e),s=r<0?Y(a+r,0):I(r,a),l=o<0?Y(a+o,0):I(o,a);arguments.length>2&&(i=arguments[2]);var c=void 0===i?a:dt.ToInteger(i),u=c<0?Y(a+c,0):I(c,a),d=I(u-l,a-s),h=1;for(l<s&&s<l+d&&(h=-1,l+=d-1,s+=d-1);d>0;)l in n?n[s]=n[l]:delete n[s],l+=h,s+=h,d-=1;return n},fill:function(t){var e,i;arguments.length>1&&(e=arguments[1]),arguments.length>2&&(i=arguments[2]);var n=dt.ToObject(this),a=dt.ToLength(n.length);e=dt.ToInteger(void 0===e?0:e),i=dt.ToInteger(void 0===i?a:i);for(var r=e<0?Y(a+e,0):I(e,a),o=i<0?a+i:i,s=r;s<a&&s<o;++s)n[s]=t;return n},find:function(t){var e=dt.ToObject(this),n=dt.ToLength(e.length);if(!dt.IsCallable(t))throw new TypeError("Array#find: predicate must be a function");for(var a,r=arguments.length>1?arguments[1]:null,o=0;o<n;o++)if(a=e[o],r){if(i(t,r,a,o,e))return a}else if(t(a,o,e))return a},findIndex:function(t){var e=dt.ToObject(this),n=dt.ToLength(e.length);if(!dt.IsCallable(t))throw new TypeError("Array#findIndex: predicate must be a function");for(var a=arguments.length>1?arguments[1]:null,r=0;r<n;r++)if(a){if(i(t,a,e[r],r,e))return r}else if(t(e[r],r,e))return r;return-1},keys:function(){return new t(this,"key")},values:function(){return new t(this,"value")},entries:function(){return new t(this,"entry")}};if(Array.prototype.keys&&!dt.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!dt.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[ot]&&(v(Array.prototype,{values:Array.prototype[ot]}),nt.symbol(X.unscopables)&&(Array.prototype[X.unscopables].values=!0)),d&&Array.prototype.values&&"values"!==Array.prototype.values.name){var ie=Array.prototype.values;at(Array.prototype,"values",(function(){return dt.Call(ie,this,arguments)})),g(Array.prototype,ot,Array.prototype.values,!0)}v(Array.prototype,ee),1/[!0].indexOf(!0,-0)<0&&g(Array.prototype,"indexOf",(function(t){var e=T(this,arguments);return 0===e&&1/e<0?0:e}),!0),Dt(Array.prototype,(function(){return this.values()})),Object.getPrototypeOf&&Dt(Object.getPrototypeOf([].values()));var ne=s((function(){return 0===Array.from({length:-1}).length})),ae=function(){var t=Array.from([0].entries());return 1===t.length&&n(t[0])&&0===t[0][0]&&0===t[0][1]}();ne&&ae||at(Array,"from",Qt.from);var re=s((function(){return Array.from([0],void 0)}));if(!re){var oe=Array.from;at(Array,"from",(function(t){return arguments.length>1&&void 0!==arguments[1]?dt.Call(oe,this,arguments):i(oe,this,t)}))}var se=-(Math.pow(2,32)-1),le=function(t,e){var n={length:se};return n[e?(n.length>>>0)-1:0]=!0,s((function(){return i(t,n,(function(){throw new RangeError("should not reach here")}),[]),!0}))};if(!le(Array.prototype.forEach)){var ce=Array.prototype.forEach;at(Array.prototype,"forEach",(function(t){return dt.Call(ce,this.length>=0?this:[],arguments)}))}if(!le(Array.prototype.map)){var ue=Array.prototype.map;at(Array.prototype,"map",(function(t){return dt.Call(ue,this.length>=0?this:[],arguments)}))}if(!le(Array.prototype.filter)){var de=Array.prototype.filter;at(Array.prototype,"filter",(function(t){return dt.Call(de,this.length>=0?this:[],arguments)}))}if(!le(Array.prototype.some)){var he=Array.prototype.some;at(Array.prototype,"some",(function(t){return dt.Call(he,this.length>=0?this:[],arguments)}))}if(!le(Array.prototype.every)){var fe=Array.prototype.every;at(Array.prototype,"every",(function(t){return dt.Call(fe,this.length>=0?this:[],arguments)}))}if(!le(Array.prototype.reduce)){var pe=Array.prototype.reduce;at(Array.prototype,"reduce",(function(t){return dt.Call(pe,this.length>=0?this:[],arguments)}))}if(!le(Array.prototype.reduceRight,!0)){var me=Array.prototype.reduceRight;at(Array.prototype,"reduceRight",(function(t){return dt.Call(me,this.length>=0?this:[],arguments)}))}var ge=8!==Number("0o10"),ve=2!==Number("0b10"),ye=m(Ut,(function(t){return 0===Number(t+0+t)}));if(ge||ve||ye){var be=Number,_e=/^0b[01]+$/i,xe=/^0o[0-7]+$/i,we=_e.test.bind(_e),ke=xe.test.bind(xe),Se=function(t,e){var i;if("function"==typeof t.valueOf&&(i=t.valueOf(),nt.primitive(i)))return i;if("function"==typeof t.toString&&(i=t.toString(),nt.primitive(i)))return i;throw new TypeError("No default value")},Me=Xt.test.bind(Xt),Le=Gt.test.bind(Gt),Te=function(){var t=function(e){var i;"string"==typeof(i=arguments.length>0?nt.primitive(e)?e:Se(e,"number"):0)&&(i=dt.Call(qt,i),we(i)?i=parseInt(A(i,2),2):ke(i)?i=parseInt(A(i,2),8):(Me(i)||Le(i))&&(i=NaN));var n=this,a=s((function(){return be.prototype.valueOf.call(n),!0}));return n instanceof t&&!a?new be(i):be(i)};return t}();Tt(be,Te,{}),v(Te,{NaN:be.NaN,MAX_VALUE:be.MAX_VALUE,MIN_VALUE:be.MIN_VALUE,NEGATIVE_INFINITY:be.NEGATIVE_INFINITY,POSITIVE_INFINITY:be.POSITIVE_INFINITY}),Number=Te,_.redefine(S,"Number",Te)}var Ce=Math.pow(2,53)-1;v(Number,{MAX_SAFE_INTEGER:Ce,MIN_SAFE_INTEGER:-Ce,EPSILON:2220446049250313e-31,parseInt:S.parseInt,parseFloat:S.parseFloat,isFinite:Z,isInteger:function(t){return Z(t)&&dt.ToInteger(t)===t},isSafeInteger:function(t){return Number.isInteger(t)&&H(t)<=Number.MAX_SAFE_INTEGER},isNaN:K}),g(Number,"parseInt",S.parseInt,Number.parseInt!==S.parseInt),1===[,1].find((function(){return!0}))&&at(Array.prototype,"find",ee.find),0!==[,1].findIndex((function(){return!0}))&&at(Array.prototype,"findIndex",ee.findIndex);var Ae=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),De=function(t,e){u&&Ae(t,e)&&Object.defineProperty(t,e,{enumerable:!1})},Ee=function(){for(var t=Number(this),e=arguments.length,i=e-t,n=new Array(i<0?0:i),a=t;a<e;++a)n[a-t]=arguments[a];return n},Oe=function(t){return function(e,i){return e[i]=t[i],e}},Pe=function(t,e){var i,n=a(Object(e));return dt.IsCallable(Object.getOwnPropertySymbols)&&(i=p(Object.getOwnPropertySymbols(Object(e)),Ae(e))),f(C(n,i||[]),Oe(e),t)},Ye={assign:function(t,e){var i=dt.ToObject(t,"Cannot convert undefined or null to object");return f(dt.Call(Ee,1,arguments),Pe,i)},is:function(t,e){return dt.SameValue(t,e)}},Ie=Object.assign&&Object.preventExtensions&&function(){var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}}();if(Ie&&at(Object,"assign",Ye.assign),v(Object,Ye),u){var Ne={setPrototypeOf:function(t,e){var n,a=function(t,e){return function(t,e){if(!dt.TypeIsObject(t))throw new TypeError("cannot set prototype on a non-object");if(null!==e&&!dt.TypeIsObject(e))throw new TypeError("can only set prototype to an object or null"+e)}(t,e),i(n,t,e),t};try{n=t.getOwnPropertyDescriptor(t.prototype,e).set,i(n,{},null)}catch(i){if(t.prototype!=={}[e])return;n=function(t){this[e]=t},a.polyfill=a(a({},null),t.prototype)instanceof t}return a}(Object,"__proto__")};v(Object,Ne)}Object.setPrototypeOf&&Object.getPrototypeOf&&null!==Object.getPrototypeOf(Object.setPrototypeOf({},null))&&null===Object.getPrototypeOf(Object.create(null))&&function(){var t=Object.create(null),e=Object.getPrototypeOf,i=Object.setPrototypeOf;Object.getPrototypeOf=function(i){var n=e(i);return n===t?null:n},Object.setPrototypeOf=function(e,n){return i(e,null===n?t:n)},Object.setPrototypeOf.polyfill=!1}();var He=!o((function(){return Object.keys("foo")}));if(!He){var je=Object.keys;at(Object,"keys",(function(t){return je(dt.ToObject(t))})),a=Object.keys}var Fe=o((function(){return Object.keys(/a/g)}));if(Fe){var Re=Object.keys;at(Object,"keys",(function(t){if(nt.regex(t)){var e=[];for(var i in t)z(t,i)&&D(e,i);return e}return Re(t)})),a=Object.keys}if(Object.getOwnPropertyNames){var ze=!o((function(){return Object.getOwnPropertyNames("foo")}));if(!ze){var $e="object"==typeof window?Object.getOwnPropertyNames(window):[],Be=Object.getOwnPropertyNames;at(Object,"getOwnPropertyNames",(function(t){var e=dt.ToObject(t);if("[object Window]"===y(e))try{return Be(e)}catch(t){return C([],$e)}return Be(e)}))}}if(Object.getOwnPropertyDescriptor){var We=!o((function(){return Object.getOwnPropertyDescriptor("foo","bar")}));if(!We){var Ve=Object.getOwnPropertyDescriptor;at(Object,"getOwnPropertyDescriptor",(function(t,e){return Ve(dt.ToObject(t),e)}))}}if(Object.seal){var qe=!o((function(){return Object.seal("foo")}));if(!qe){var Ue=Object.seal;at(Object,"seal",(function(t){return dt.TypeIsObject(t)?Ue(t):t}))}}if(Object.isSealed){var Xe=!o((function(){return Object.isSealed("foo")}));if(!Xe){var Ge=Object.isSealed;at(Object,"isSealed",(function(t){return!dt.TypeIsObject(t)||Ge(t)}))}}if(Object.freeze){var Ke=!o((function(){return Object.freeze("foo")}));if(!Ke){var Ze=Object.freeze;at(Object,"freeze",(function(t){return dt.TypeIsObject(t)?Ze(t):t}))}}if(Object.isFrozen){var Je=!o((function(){return Object.isFrozen("foo")}));if(!Je){var Qe=Object.isFrozen;at(Object,"isFrozen",(function(t){return!dt.TypeIsObject(t)||Qe(t)}))}}if(Object.preventExtensions){var ti=!o((function(){return Object.preventExtensions("foo")}));if(!ti){var ei=Object.preventExtensions;at(Object,"preventExtensions",(function(t){return dt.TypeIsObject(t)?ei(t):t}))}}if(Object.isExtensible){var ii=!o((function(){return Object.isExtensible("foo")}));if(!ii){var ni=Object.isExtensible;at(Object,"isExtensible",(function(t){return!!dt.TypeIsObject(t)&&ni(t)}))}}if(Object.getPrototypeOf){var ai=!o((function(){return Object.getPrototypeOf("foo")}));if(!ai){var ri=Object.getPrototypeOf;at(Object,"getPrototypeOf",(function(t){return ri(dt.ToObject(t))}))}}var oi=u&&function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags");return t&&dt.IsCallable(t.get)}();if(u&&!oi){var si=function(){if(!dt.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var t="";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t};_.getter(RegExp.prototype,"flags",si)}var li=u&&s((function(){return"/a/i"===String(new RegExp(/a/g,"i"))})),ci=rt&&u&&function(){var t=/./;return t[X.match]=!1,RegExp(t)===t}(),ui=s((function(){return"/abc/"===RegExp.prototype.toString.call({source:"abc"})})),di=ui&&s((function(){return"/a/b"===RegExp.prototype.toString.call({source:"a",flags:"b"})}));if(!ui||!di){var hi=RegExp.prototype.toString;g(RegExp.prototype,"toString",(function(){var t=dt.RequireObjectCoercible(this);return nt.regex(t)?i(hi,t):"/"+lt(t.source)+"/"+lt(t.flags)}),!0),_.preserveToString(RegExp.prototype.toString,hi)}if(u&&(!li||ci)){var fi=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get,pi=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{},mi=function(){return this.source},gi=dt.IsCallable(pi.get)?pi.get:mi,vi=RegExp,yi=function t(e,i){var n=dt.IsRegExp(e);return this instanceof t||!n||void 0!==i||e.constructor!==t?nt.regex(e)?new t(dt.Call(gi,e),void 0===i?dt.Call(fi,e):i):(n&&(e.source,void 0===i&&e.flags),new vi(e,i)):e};Tt(vi,yi,{$input:!0}),RegExp=yi,_.redefine(S,"RegExp",yi)}if(u){var bi={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};h(a(bi),(function(t){t in RegExp&&!(bi[t]in RegExp)&&_.getter(RegExp,bi[t],(function(){return RegExp[t]}))}))}At(RegExp);var _i=1/Number.EPSILON,xi=function(t){return t+_i-_i},wi=Math.pow(2,-23),ki=Math.pow(2,127)*(2-wi),Si=Math.pow(2,-126),Mi=Math.E,Li=Math.LOG2E,Ti=Math.LOG10E,Ci=Number.prototype.clz;delete Number.prototype.clz;var Ai={acosh:function(t){var e=Number(t);if(K(e)||t<1)return NaN;if(1===e)return 0;if(e===1/0)return e;var i=1/(e*e);if(e<2)return Q(e-1+R(1-i)*e);var n=e/2;return Q(n+R(1-i)*n-1)+1/Li},asinh:function(t){var e=Number(t);if(0===e||!M(e))return e;var i=H(e),n=i*i,a=J(e);return i<1?a*Q(i+n/(R(n+1)+1)):a*(Q(i/2+R(1+1/n)*i/2-1)+1/Li)},atanh:function(t){var e=Number(t);if(0===e)return e;if(-1===e)return-1/0;if(1===e)return 1/0;if(K(e)||e<-1||e>1)return NaN;var i=H(e);return J(e)*Q(2*i/(1-i))/2},cbrt:function(t){var e=Number(t);if(0===e)return e;var i,n=e<0;return n&&(e=-e),i=e===1/0?1/0:(e/((i=j(F(e)/3))*i)+2*i)/3,n?-i:i},clz32:function(t){var e=Number(t),i=dt.ToUint32(e);return 0===i?32:Ci?dt.Call(Ci,i):31-N(F(i+.5)*Li)},cosh:function(t){var e=Number(t);if(0===e)return 1;if(K(e))return NaN;if(!M(e))return 1/0;var i=j(H(e)-1);return(i+1/(i*Mi*Mi))*(Mi/2)},expm1:function(t){var e=Number(t);if(e===-1/0)return-1;if(!M(e)||0===e)return e;if(H(e)>.5)return j(e)-1;for(var i=e,n=0,a=1;n+i!==n;)n+=i,i*=e/(a+=1);return n},hypot:function(t,e){for(var i=0,n=0,a=0;a<arguments.length;++a){var r=H(Number(arguments[a]));n<r?(i*=n/r*(n/r),i+=1,n=r):i+=r>0?r/n*(r/n):r}return n===1/0?1/0:n*R(i)},log2:function(t){return F(t)*Li},log10:function(t){return F(t)*Ti},log1p:Q,sign:J,sinh:function(t){var e=Number(t);if(!M(e)||0===e)return e;var i=H(e);if(i<1){var n=Math.expm1(i);return J(e)*n*(1+1/(n+1))/2}var a=j(i-1);return J(e)*(a-1/(a*Mi*Mi))*(Mi/2)},tanh:function(t){var e=Number(t);return K(e)||0===e?e:e>=20?1:e<=-20?-1:(Math.expm1(e)-Math.expm1(-e))/(j(e)+j(-e))},trunc:function(t){var e=Number(t);return e<0?-N(-e):N(e)},imul:function(t,e){var i=dt.ToUint32(t),n=dt.ToUint32(e),a=65535&i,r=65535&n;return a*r+((i>>>16&65535)*r+a*(n>>>16&65535)<<16>>>0)|0},fround:function(t){var e=Number(t);if(0===e||e===1/0||e===-1/0||K(e))return e;var i=J(e),n=H(e);if(n<Si)return i*xi(n/Si/wi)*Si*wi;var a=(1+wi/Number.EPSILON)*n,r=a-(a-n);return r>ki||K(r)?i*(1/0):i*r}},Di=function(t,e,i){return H(1-t/e)/Number.EPSILON<(i||8)};v(Math,Ai),g(Math,"sinh",Ai.sinh,Math.sinh(710)===1/0),g(Math,"cosh",Ai.cosh,Math.cosh(710)===1/0),g(Math,"log1p",Ai.log1p,-1e-17!==Math.log1p(-1e-17)),g(Math,"asinh",Ai.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),g(Math,"asinh",Ai.asinh,Math.asinh(1e300)===1/0),g(Math,"atanh",Ai.atanh,0===Math.atanh(1e-300)),g(Math,"tanh",Ai.tanh,-2e-17!==Math.tanh(-2e-17)),g(Math,"acosh",Ai.acosh,Math.acosh(Number.MAX_VALUE)===1/0),g(Math,"acosh",Ai.acosh,!Di(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),g(Math,"cbrt",Ai.cbrt,!Di(Math.cbrt(1e-300),1e-100)),g(Math,"sinh",Ai.sinh,-2e-17!==Math.sinh(-2e-17));var Ei=Math.expm1(10);g(Math,"expm1",Ai.expm1,Ei>22025.465794806718||Ei<22025.465794806718),g(Math,"hypot",Ai.hypot,Math.hypot(1/0,NaN)!==1/0);var Oi=Math.round,Pi=0===Math.round(.5-Number.EPSILON/4)&&1===Math.round(Number.EPSILON/3.99-.5),Yi=_i+1,Ii=2*_i-1,Ni=[Yi,Ii].every((function(t){return Math.round(t)===t}));g(Math,"round",(function(t){var e=N(t);return t-e<.5?e:-1===e?-0:e+1}),!Pi||!Ni),_.preserveToString(Math.round,Oi);var Hi=Math.imul;-5!==Math.imul(4294967295,5)&&(Math.imul=Ai.imul,_.preserveToString(Math.imul,Hi)),2!==Math.imul.length&&at(Math,"imul",(function(t,e){return dt.Call(Hi,Math,arguments)}));var ji=function(){var t=S.setTimeout;if("function"==typeof t||"object"==typeof t){dt.IsPromise=function(t){return!!dt.TypeIsObject(t)&&void 0!==t._promise};var e,n=function(t){if(!dt.IsConstructor(t))throw new TypeError("Bad promise constructor");var e=this;if(e.resolve=void 0,e.reject=void 0,e.promise=new t((function(t,i){if(void 0!==e.resolve||void 0!==e.reject)throw new TypeError("Bad Promise implementation!");e.resolve=t,e.reject=i})),!dt.IsCallable(e.resolve)||!dt.IsCallable(e.reject))throw new TypeError("Bad promise constructor")};"undefined"!=typeof window&&dt.IsCallable(window.postMessage)&&(e=function(){var t=[],e="zero-timeout-message";return window.addEventListener("message",(function(i){if(i.source===window&&i.data===e){if(i.stopPropagation(),0===t.length)return;P(t)()}}),!0),function(i){D(t,i),window.postMessage(e,"*")}});var a,r,o=dt.IsCallable(S.setImmediate)?S.setImmediate:"object"==typeof process&&process.nextTick?process.nextTick:function(){var t=S.Promise,e=t&&t.resolve&&t.resolve();return e&&function(t){return e.then(t)}}()||(dt.IsCallable(e)?e():function(e){t(e,0)}),s=function(t){return t},l=function(t){throw t},c={},u=function(t,e,i){o((function(){d(t,e,i)}))},d=function(t,e,i){var n,a;if(e===c)return t(i);try{n=t(i),a=e.resolve}catch(t){n=t,a=e.reject}a(n)},h=function(t,e){var i=t._promise,n=i.reactionLength;if(n>0&&(u(i.fulfillReactionHandler0,i.reactionCapability0,e),i.fulfillReactionHandler0=void 0,i.rejectReactions0=void 0,i.reactionCapability0=void 0,n>1))for(var a=1,r=0;a<n;a++,r+=3)u(i[r+0],i[r+2],e),t[r+0]=void 0,t[r+1]=void 0,t[r+2]=void 0;i.result=e,i.state=1,i.reactionLength=0},f=function(t,e){var i=t._promise,n=i.reactionLength;if(n>0&&(u(i.rejectReactionHandler0,i.reactionCapability0,e),i.fulfillReactionHandler0=void 0,i.rejectReactions0=void 0,i.reactionCapability0=void 0,n>1))for(var a=1,r=0;a<n;a++,r+=3)u(i[r+1],i[r+2],e),t[r+0]=void 0,t[r+1]=void 0,t[r+2]=void 0;i.result=e,i.state=2,i.reactionLength=0},p=function(t){var e=!1;return{resolve:function(i){var n;if(!e){if(e=!0,i===t)return f(t,new TypeError("Self resolution"));if(!dt.TypeIsObject(i))return h(t,i);try{n=i.then}catch(e){return f(t,e)}if(!dt.IsCallable(n))return h(t,i);o((function(){g(t,i,n)}))}},reject:function(i){if(!e)return e=!0,f(t,i)}}},m=function(t,e,n,a){t===r?i(t,e,n,a,c):i(t,e,n,a)},g=function(t,e,i){var n=p(t),a=n.resolve,r=n.reject;try{m(i,e,a,r)}catch(t){r(t)}},y=function(){var t=function(e){if(!(this instanceof t))throw new TypeError('Constructor Promise requires "new"');if(this&&this._promise)throw new TypeError("Bad construction");if(!dt.IsCallable(e))throw new TypeError("not a valid resolver");var i=Pt(this,t,a,{_promise:{result:void 0,state:0,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}}),n=p(i),r=n.reject;try{e(n.resolve,r)}catch(t){r(t)}return i};return t}();a=y.prototype;var b=function(t,e,i,n){var a=!1;return function(r){a||(a=!0,e[t]=r,0==--n.count&&(0,i.resolve)(e))}};return v(y,{all:function(t){var e=this;if(!dt.TypeIsObject(e))throw new TypeError("Promise is not object");var i,a,r=new n(e);try{return function(t,e,i){for(var n,a,r=t.iterator,o=[],s={count:1},l=0;;){try{if(!1===(n=dt.IteratorStep(r))){t.done=!0;break}a=n.value}catch(e){throw t.done=!0,e}o[l]=void 0;var c=e.resolve(a),u=b(l,o,i,s);s.count+=1,m(c.then,c,u,i.reject),l+=1}return 0==--s.count&&(0,i.resolve)(o),i.promise}(a={iterator:i=dt.GetIterator(t),done:!1},e,r)}catch(t){var o=t;if(a&&!a.done)try{dt.IteratorClose(i,!0)}catch(t){o=t}return(0,r.reject)(o),r.promise}},race:function(t){var e=this;if(!dt.TypeIsObject(e))throw new TypeError("Promise is not object");var i,a,r=new n(e);try{return function(t,e,i){for(var n,a,r,o=t.iterator;;){try{if(!1===(n=dt.IteratorStep(o))){t.done=!0;break}a=n.value}catch(e){throw t.done=!0,e}r=e.resolve(a),m(r.then,r,i.resolve,i.reject)}return i.promise}(a={iterator:i=dt.GetIterator(t),done:!1},e,r)}catch(t){var o=t;if(a&&!a.done)try{dt.IteratorClose(i,!0)}catch(t){o=t}return(0,r.reject)(o),r.promise}},reject:function(t){if(!dt.TypeIsObject(this))throw new TypeError("Bad promise constructor");var e=new n(this);return(0,e.reject)(t),e.promise},resolve:function(t){var e=this;if(!dt.TypeIsObject(e))throw new TypeError("Bad promise constructor");if(dt.IsPromise(t)&&t.constructor===e)return t;var i=new n(e);return(0,i.resolve)(t),i.promise}}),v(a,{catch:function(t){return this.then(null,t)},then:function(t,e){var i=this;if(!dt.IsPromise(i))throw new TypeError("not a promise");var a,r=dt.SpeciesConstructor(i,y),o=arguments.length>2&&arguments[2]===c;a=o&&r===y?c:new n(r);var d,h=dt.IsCallable(t)?t:s,f=dt.IsCallable(e)?e:l,p=i._promise;if(0===p.state){if(0===p.reactionLength)p.fulfillReactionHandler0=h,p.rejectReactionHandler0=f,p.reactionCapability0=a;else{var m=3*(p.reactionLength-1);p[m+0]=h,p[m+1]=f,p[m+2]=a}p.reactionLength+=1}else if(1===p.state)d=p.result,u(h,a,d);else{if(2!==p.state)throw new TypeError("unexpected Promise state");d=p.result,u(f,a,d)}return a.promise}}),c=new n(y),r=a.then,y}}();if(S.Promise&&(delete S.Promise.accept,delete S.Promise.defer,delete S.Promise.prototype.chain),"function"==typeof ji){v(S,{Promise:ji});var Fi=w(S.Promise,(function(t){return t.resolve(42).then((function(){}))instanceof t})),Ri=!o((function(){return S.Promise.reject(42).then(null,5).then(null,$)})),zi=o((function(){return S.Promise.call(3,$)})),$i=function(t){var e=t.resolve(5);e.constructor={};var i=t.resolve(e);try{i.then(null,$).then(null,$)}catch(t){return!0}return e===i}(S.Promise),Bi=u&&function(){var t=0,e=Object.defineProperty({},"then",{get:function(){t+=1}});return Promise.resolve(e),1===t}(),Wi=function t(e){var i=new Promise(e);e(3,(function(){})),this.then=i.then,this.constructor=t};Wi.prototype=Promise.prototype,Wi.all=Promise.all;var Vi=s((function(){return!!Wi.all([1,2])}));if(Fi&&Ri&&zi&&!$i&&Bi&&!Vi||(Promise=ji,at(S,"Promise",ji)),1!==Promise.all.length){var qi=Promise.all;at(Promise,"all",(function(t){return dt.Call(qi,this,arguments)}))}if(1!==Promise.race.length){var Ui=Promise.race;at(Promise,"race",(function(t){return dt.Call(Ui,this,arguments)}))}if(1!==Promise.resolve.length){var Xi=Promise.resolve;at(Promise,"resolve",(function(t){return dt.Call(Xi,this,arguments)}))}if(1!==Promise.reject.length){var Gi=Promise.reject;at(Promise,"reject",(function(t){return dt.Call(Gi,this,arguments)}))}De(Promise,"all"),De(Promise,"race"),De(Promise,"resolve"),De(Promise,"reject"),At(Promise)}var Ki=function(t){var e=a(f(t,(function(t,e){return t[e]=!0,t}),{}));return t.join(":")===e.join(":")},Zi=Ki(["z","a","bb"]),Ji=Ki(["z",1,"a","3",2]);if(u){var Qi=function(t,e){return e||Zi?ut(t)?"^"+dt.ToString(t):"string"==typeof t?"$"+t:"number"==typeof t?Ji?t:"n"+t:"boolean"==typeof t?"b"+t:null:null},tn=function(){return Object.create?Object.create(null):{}},en=function(t,e,a){if(n(a)||nt.string(a))h(a,(function(t){if(!dt.TypeIsObject(t))throw new TypeError("Iterator value "+t+" is not an entry object");e.set(t[0],t[1])}));else if(a instanceof t)i(t.prototype.forEach,a,(function(t,i){e.set(i,t)}));else{var r,o;if(!ut(a)){if(o=e.set,!dt.IsCallable(o))throw new TypeError("bad map");r=dt.GetIterator(a)}if(void 0!==r)for(;;){var s=dt.IteratorStep(r);if(!1===s)break;var l=s.value;try{if(!dt.TypeIsObject(l))throw new TypeError("Iterator value "+l+" is not an entry object");i(o,e,l[0],l[1])}catch(t){throw dt.IteratorClose(r,!0),t}}}},nn=function(t,e,a){if(n(a)||nt.string(a))h(a,(function(t){e.add(t)}));else if(a instanceof t)i(t.prototype.forEach,a,(function(t){e.add(t)}));else{var r,o;if(!ut(a)){if(o=e.add,!dt.IsCallable(o))throw new TypeError("bad set");r=dt.GetIterator(a)}if(void 0!==r)for(;;){var s=dt.IteratorStep(r);if(!1===s)break;var l=s.value;try{i(o,e,l)}catch(t){throw dt.IteratorClose(r,!0),t}}}},an={Map:function(){var t={},e=function(t,e){this.key=t,this.value=e,this.next=null,this.prev=null};e.prototype.isRemoved=function(){return this.key===t};var n,a=function(t,e){if(!dt.TypeIsObject(t)||!function(t){return!!t._es6map}(t))throw new TypeError("Method Map.prototype."+e+" called on incompatible receiver "+dt.ToString(t))},r=function(t,e){a(t,"[[MapIterator]]"),this.head=t._head,this.i=this.head,this.kind=e};Dt(r.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var t,e=this.i,i=this.kind,n=this.head;if(void 0===this.i)return Zt();for(;e.isRemoved()&&e!==n;)e=e.prev;for(;e.next!==n;)if(!(e=e.next).isRemoved())return t="key"===i?e.key:"value"===i?e.value:[e.key,e.value],this.i=e,Zt(t);return this.i=void 0,Zt()}});var o=function t(){if(!(this instanceof t))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var i=Pt(this,t,n,{_es6map:!0,_head:null,_map:B?new B:null,_size:0,_storage:tn()}),a=new e(null,null);return a.next=a.prev=a,i._head=a,arguments.length>0&&en(t,i,arguments[0]),i};return n=o.prototype,_.getter(n,"size",(function(){if(void 0===this._size)throw new TypeError("size method called on incompatible Map");return this._size})),v(n,{get:function(t){var e;a(this,"get");var i=Qi(t,!0);if(null!==i)return(e=this._storage[i])?e.value:void 0;if(this._map)return(e=V.call(this._map,t))?e.value:void 0;for(var n=this._head,r=n;(r=r.next)!==n;)if(dt.SameValueZero(r.key,t))return r.value},has:function(t){a(this,"has");var e=Qi(t,!0);if(null!==e)return void 0!==this._storage[e];if(this._map)return q.call(this._map,t);for(var i=this._head,n=i;(n=n.next)!==i;)if(dt.SameValueZero(n.key,t))return!0;return!1},set:function(t,i){a(this,"set");var n,r=this._head,o=r,s=Qi(t,!0);if(null!==s){if(void 0!==this._storage[s])return this._storage[s].value=i,this;n=this._storage[s]=new e(t,i),o=r.prev}else this._map&&(q.call(this._map,t)?V.call(this._map,t).value=i:(n=new e(t,i),U.call(this._map,t,n),o=r.prev));for(;(o=o.next)!==r;)if(dt.SameValueZero(o.key,t))return o.value=i,this;return n=n||new e(t,i),dt.SameValue(-0,t)&&(n.key=0),n.next=this._head,n.prev=this._head.prev,n.prev.next=n,n.next.prev=n,this._size+=1,this},delete:function(e){a(this,"delete");var i=this._head,n=i,r=Qi(e,!0);if(null!==r){if(void 0===this._storage[r])return!1;n=this._storage[r].prev,delete this._storage[r]}else if(this._map){if(!q.call(this._map,e))return!1;n=V.call(this._map,e).prev,W.call(this._map,e)}for(;(n=n.next)!==i;)if(dt.SameValueZero(n.key,e))return n.key=t,n.value=t,n.prev.next=n.next,n.next.prev=n.prev,this._size-=1,!0;return!1},clear:function(){a(this,"clear"),this._map=B?new B:null,this._size=0,this._storage=tn();for(var e=this._head,i=e,n=i.next;(i=n)!==e;)i.key=t,i.value=t,n=i.next,i.next=i.prev=e;e.next=e.prev=e},keys:function(){return a(this,"keys"),new r(this,"key")},values:function(){return a(this,"values"),new r(this,"value")},entries:function(){return a(this,"entries"),new r(this,"key+value")},forEach:function(t){a(this,"forEach");for(var e=arguments.length>1?arguments[1]:null,n=this.entries(),r=n.next();!r.done;r=n.next())e?i(t,e,r.value[1],r.value[0],this):t(r.value[1],r.value[0],this)}}),Dt(n,n.entries),o}(),Set:function(){var t,e=function(t,e){if(!dt.TypeIsObject(t)||!function(t){return t._es6set&&void 0!==t._storage}(t))throw new TypeError("Set.prototype."+e+" called on incompatible receiver "+dt.ToString(t))},n=function e(){if(!(this instanceof e))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var i=Pt(this,e,t,{_es6set:!0,"[[SetData]]":null,_storage:tn()});if(!i._es6set)throw new TypeError("bad set");return arguments.length>0&&nn(e,i,arguments[0]),i};t=n.prototype;var r=function(t){if(!t["[[SetData]]"]){var e=new an.Map;t["[[SetData]]"]=e,h(a(t._storage),(function(t){var i=function(t){var e=t;if("^null"===e)return null;if("^undefined"!==e){var i=e.charAt(0);return"$"===i?A(e,1):"n"===i?+A(e,1):"b"===i?"btrue"===e:+e}}(t);e.set(i,i)})),t["[[SetData]]"]=e}t._storage=null};_.getter(n.prototype,"size",(function(){return e(this,"size"),this._storage?a(this._storage).length:(r(this),this["[[SetData]]"].size)})),v(n.prototype,{has:function(t){var i;return e(this,"has"),this._storage&&null!==(i=Qi(t))?!!this._storage[i]:(r(this),this["[[SetData]]"].has(t))},add:function(t){var i;return e(this,"add"),this._storage&&null!==(i=Qi(t))?(this._storage[i]=!0,this):(r(this),this["[[SetData]]"].set(t,t),this)},delete:function(t){var i;if(e(this,"delete"),this._storage&&null!==(i=Qi(t))){var n=z(this._storage,i);return delete this._storage[i]&&n}return r(this),this["[[SetData]]"].delete(t)},clear:function(){e(this,"clear"),this._storage&&(this._storage=tn()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return e(this,"values"),r(this),new o(this["[[SetData]]"].values())},entries:function(){return e(this,"entries"),r(this),new o(this["[[SetData]]"].entries())},forEach:function(t){e(this,"forEach");var n=arguments.length>1?arguments[1]:null,a=this;r(a),this["[[SetData]]"].forEach((function(e,r){n?i(t,n,r,r,a):t(r,r,a)}))}}),g(n.prototype,"keys",n.prototype.values,!0),Dt(n.prototype,n.prototype.values);var o=function(t){this.it=t};return o.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},Dt(o.prototype),n}()},rn=S.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray((new Set).keys);if(rn&&(S.Set=an.Set),S.Map||S.Set){var on=s((function(){return 2===new Map([[1,2]]).get(1)}));on||(S.Map=function t(){if(!(this instanceof t))throw new TypeError('Constructor Map requires "new"');var e=new B;return arguments.length>0&&en(t,e,arguments[0]),delete e.constructor,Object.setPrototypeOf(e,S.Map.prototype),e},S.Map.prototype=x(B.prototype),g(S.Map.prototype,"constructor",S.Map,!0),_.preserveToString(S.Map,B));var sn=new Map,ln=function(){var t=new Map([[1,0],[2,0],[3,0],[4,0]]);return t.set(-0,t),t.get(0)===t&&t.get(-0)===t&&t.has(0)&&t.has(-0)}(),cn=sn.set(1,2)===sn;ln&&cn||at(Map.prototype,"set",(function(t,e){return i(U,this,0===t?0:t,e),this})),ln||(v(Map.prototype,{get:function(t){return i(V,this,0===t?0:t)},has:function(t){return i(q,this,0===t?0:t)}},!0),_.preserveToString(Map.prototype.get,V),_.preserveToString(Map.prototype.has,q));var un=new Set,dn=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&function(t){return t.delete(0),t.add(-0),!t.has(0)}(un),hn=un.add(1)===un;if(!dn||!hn){var fn=Set.prototype.add;Set.prototype.add=function(t){return i(fn,this,0===t?0:t),this},_.preserveToString(Set.prototype.add,fn)}if(!dn){var pn=Set.prototype.has;Set.prototype.has=function(t){return i(pn,this,0===t?0:t)},_.preserveToString(Set.prototype.has,pn);var mn=Set.prototype.delete;Set.prototype.delete=function(t){return i(mn,this,0===t?0:t)},_.preserveToString(Set.prototype.delete,mn)}var gn=w(S.Map,(function(t){var e=new t([]);return e.set(42,42),e instanceof t})),vn=Object.setPrototypeOf&&!gn,yn=function(){try{return!(S.Map()instanceof S.Map)}catch(t){return t instanceof TypeError}}();0===S.Map.length&&!vn&&yn||(S.Map=function t(){if(!(this instanceof t))throw new TypeError('Constructor Map requires "new"');var e=new B;return arguments.length>0&&en(t,e,arguments[0]),delete e.constructor,Object.setPrototypeOf(e,t.prototype),e},S.Map.prototype=B.prototype,g(S.Map.prototype,"constructor",S.Map,!0),_.preserveToString(S.Map,B));var bn=w(S.Set,(function(t){var e=new t([]);return e.add(42,42),e instanceof t})),_n=Object.setPrototypeOf&&!bn,xn=function(){try{return!(S.Set()instanceof S.Set)}catch(t){return t instanceof TypeError}}();if(0!==S.Set.length||_n||!xn){var wn=S.Set;S.Set=function t(){if(!(this instanceof t))throw new TypeError('Constructor Set requires "new"');var e=new wn;return arguments.length>0&&nn(t,e,arguments[0]),delete e.constructor,Object.setPrototypeOf(e,t.prototype),e},S.Set.prototype=wn.prototype,g(S.Set.prototype,"constructor",S.Set,!0),_.preserveToString(S.Set,wn)}var kn=new S.Map,Sn=!s((function(){return kn.keys().next().done}));if(("function"!=typeof S.Map.prototype.clear||0!==(new S.Set).size||0!==kn.size||"function"!=typeof S.Map.prototype.keys||"function"!=typeof S.Set.prototype.keys||"function"!=typeof S.Map.prototype.forEach||"function"!=typeof S.Set.prototype.forEach||l(S.Map)||l(S.Set)||"function"!=typeof kn.keys().next||Sn||!gn)&&v(S,{Map:an.Map,Set:an.Set},!0),S.Set.prototype.keys!==S.Set.prototype.values&&g(S.Set.prototype,"keys",S.Set.prototype.values,!0),Dt(Object.getPrototypeOf((new S.Map).keys())),Dt(Object.getPrototypeOf((new S.Set).keys())),d&&"has"!==S.Set.prototype.has.name){var Mn=S.Set.prototype.has;at(S.Set.prototype,"has",(function(t){return i(Mn,this,t)}))}}v(S,an),At(S.Map),At(S.Set)}var Ln=function(t){if(!dt.TypeIsObject(t))throw new TypeError("target must be an object")},Tn={apply:function(){return dt.Call(dt.Call,null,arguments)},construct:function(t,e){if(!dt.IsConstructor(t))throw new TypeError("First argument must be a constructor.");var i=arguments.length>2?arguments[2]:t;if(!dt.IsConstructor(i))throw new TypeError("new.target must be a constructor.");return dt.Construct(t,e,i,"internal")},deleteProperty:function(t,e){if(Ln(t),u){var i=Object.getOwnPropertyDescriptor(t,e);if(i&&!i.configurable)return!1}return delete t[e]},has:function(t,e){return Ln(t),e in t}};Object.getOwnPropertyNames&&Object.assign(Tn,{ownKeys:function(t){Ln(t);var e=Object.getOwnPropertyNames(t);return dt.IsCallable(Object.getOwnPropertySymbols)&&E(e,Object.getOwnPropertySymbols(t)),e}});var Cn=function(t){return!o(t)};if(Object.preventExtensions&&Object.assign(Tn,{isExtensible:function(t){return Ln(t),Object.isExtensible(t)},preventExtensions:function(t){return Ln(t),Cn((function(){return Object.preventExtensions(t)}))}}),u){var An=function(t,e,i){var n=Object.getOwnPropertyDescriptor(t,e);if(!n){var a=Object.getPrototypeOf(t);if(null===a)return;return An(a,e,i)}return"value"in n?n.value:n.get?dt.Call(n.get,i):void 0},Dn=function(t,e,n,a){var r=Object.getOwnPropertyDescriptor(t,e);if(!r){var o=Object.getPrototypeOf(t);if(null!==o)return Dn(o,e,n,a);r={value:void 0,writable:!0,enumerable:!0,configurable:!0}}return"value"in r?!!r.writable&&(!!dt.TypeIsObject(a)&&(Object.getOwnPropertyDescriptor(a,e)?st.defineProperty(a,e,{value:n}):st.defineProperty(a,e,{value:n,writable:!0,enumerable:!0,configurable:!0}))):!!r.set&&(i(r.set,a,n),!0)};Object.assign(Tn,{defineProperty:function(t,e,i){return Ln(t),Cn((function(){return Object.defineProperty(t,e,i)}))},getOwnPropertyDescriptor:function(t,e){return Ln(t),Object.getOwnPropertyDescriptor(t,e)},get:function(t,e){Ln(t);var i=arguments.length>2?arguments[2]:t;return An(t,e,i)},set:function(t,e,i){Ln(t);var n=arguments.length>3?arguments[3]:t;return Dn(t,e,i,n)}})}if(Object.getPrototypeOf){var En=Object.getPrototypeOf;Tn.getPrototypeOf=function(t){return Ln(t),En(t)}}if(Object.setPrototypeOf&&Tn.getPrototypeOf){var On=function(t,e){for(var i=e;i;){if(t===i)return!0;i=Tn.getPrototypeOf(i)}return!1};Object.assign(Tn,{setPrototypeOf:function(t,e){if(Ln(t),null!==e&&!dt.TypeIsObject(e))throw new TypeError("proto must be an object or null");return e===st.getPrototypeOf(t)||!(st.isExtensible&&!st.isExtensible(t))&&(!On(t,e)&&(Object.setPrototypeOf(t,e),!0))}})}var Pn=function(t,e){dt.IsCallable(S.Reflect[t])?s((function(){return S.Reflect[t](1),S.Reflect[t](NaN),S.Reflect[t](!0),!0}))&&at(S.Reflect,t,e):g(S.Reflect,t,e)};Object.keys(Tn).forEach((function(t){Pn(t,Tn[t])}));var Yn=S.Reflect.getPrototypeOf;if(d&&Yn&&"getPrototypeOf"!==Yn.name&&at(S.Reflect,"getPrototypeOf",(function(t){return i(Yn,S.Reflect,t)})),S.Reflect.setPrototypeOf&&s((function(){return S.Reflect.setPrototypeOf(1,{}),!0}))&&at(S.Reflect,"setPrototypeOf",Tn.setPrototypeOf),S.Reflect.defineProperty&&(s((function(){var t=!S.Reflect.defineProperty(1,"test",{value:1}),e="function"!=typeof Object.preventExtensions||!S.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return t&&e}))||at(S.Reflect,"defineProperty",Tn.defineProperty)),S.Reflect.construct&&(s((function(){var t=function(){};return S.Reflect.construct((function(){}),[],t)instanceof t}))||at(S.Reflect,"construct",Tn.construct)),"Invalid Date"!==String(new Date(NaN))){var In=Date.prototype.toString,Nn=function(){var t=+this;return t!=t?"Invalid Date":dt.Call(In,this)};at(Date.prototype,"toString",Nn)}var Hn={anchor:function(t){return dt.CreateHTML(this,"a","name",t)},big:function(){return dt.CreateHTML(this,"big","","")},blink:function(){return dt.CreateHTML(this,"blink","","")},bold:function(){return dt.CreateHTML(this,"b","","")},fixed:function(){return dt.CreateHTML(this,"tt","","")},fontcolor:function(t){return dt.CreateHTML(this,"font","color",t)},fontsize:function(t){return dt.CreateHTML(this,"font","size",t)},italics:function(){return dt.CreateHTML(this,"i","","")},link:function(t){return dt.CreateHTML(this,"a","href",t)},small:function(){return dt.CreateHTML(this,"small","","")},strike:function(){return dt.CreateHTML(this,"strike","","")},sub:function(){return dt.CreateHTML(this,"sub","","")},sup:function(){return dt.CreateHTML(this,"sup","","")}};h(Object.keys(Hn),(function(t){var e=String.prototype[t],n=!1;if(dt.IsCallable(e)){var a=i(e,"",' " '),r=C([],a.match(/"/g)).length;n=a!==a.toLowerCase()||r>2}else n=!0;n&&at(String.prototype,t,Hn[t])}));var jn=function(){if(!rt)return!1;var t="object"==typeof JSON&&"function"==typeof JSON.stringify?JSON.stringify:null;if(!t)return!1;if(void 0!==t(X()))return!0;if("[null]"!==t([X()]))return!0;var e={a:X()};return e[X()]=!0,"{}"!==t(e)}(),Fn=s((function(){return!rt||"{}"===JSON.stringify(Object(X()))&&"[{}]"===JSON.stringify([Object(X())])}));if(jn||!Fn){var Rn=JSON.stringify;at(JSON,"stringify",(function(t){if("symbol"!=typeof t){var e;arguments.length>1&&(e=arguments[1]);var a=[t];if(n(e))a.push(e);else{var r=dt.IsCallable(e)?e:null,o=function(t,e){var n=r?i(r,this,t,e):e;if("symbol"!=typeof n)return nt.symbol(n)?Oe({})(n):n};a.push(o)}return arguments.length>2&&a.push(arguments[2]),Rn.apply(this,a)}}))}return S})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).FormValidation={})}(this,(function(t){"use strict";function e(t){for(var e=t.length,i=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],n=0,a=0;e--;)a+=i[n][parseInt(t.charAt(e),10)],n=1-n;return a%10==0&&a>0}function i(t){for(var e=t.length,i=5,n=0;n<e;n++)i=(2*(i||10)%11+parseInt(t.charAt(n),10))%10;return 1===i}function n(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=t.length,n=e.length,a=Math.floor(n/2),r=0;r<i;r++)a=(2*(a||n)%(n+1)+e.indexOf(t.charAt(r)))%n;return 1===a}function a(t){for(var e=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],i=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],n=t.reverse(),a=0,r=0;r<n.length;r++)a=e[a][i[r%8][n[r]]];return 0===a}var r={luhn:e,mod11And10:i,mod37And36:n,verhoeff:a};function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?f(t):e}function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=d(t);if(e){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return p(this,i)}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function v(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){s=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw r}}}}function y(t,e,i,n){var a=(i.getAttribute("type")||"").toLowerCase();switch(i.tagName.toLowerCase()){case"textarea":return i.value;case"select":var r=i,o=r.selectedIndex;return o>=0?r.options.item(o).value:"";case"input":if("radio"===a||"checkbox"===a){var s=n.filter((function(t){return t.checked})).length;return 0===s?"":s+""}return i.value;default:return""}}function b(t,e){var i=Array.isArray(e)?e:[e],n=t;return i.forEach((function(t){n=n.replace("%s",t)})),n}function _(t,e){if("function"==typeof t)return t.apply(this,e);if("string"==typeof t){var i=t;"()"===i.substring(i.length-2)&&(i=i.substring(0,i.length-2));var n,a=i.split("."),r=a.pop(),o=window,s=v(a);try{for(s.s();!(n=s.n()).done;){o=o[n.value]}}catch(t){s.e(t)}finally{s.f()}return void 0===o[r]?null:o[r].apply(this,e)}}var x={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DANKORT:{length:[16],prefix:["5019"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},ELO:{length:[16],prefix:["4011","4312","4389","4514","4573","4576","5041","5066","5067","509","6277","6362","6363","650","6516","6550"]},FORBRUGSFORENINGEN:{length:[16],prefix:["600722"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","5868","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]},VISA_ELECTRON:{length:[16],prefix:["4026","417500","4405","4508","4844","4913","4917"]}};function w(t,e,i,n){if(isNaN(t)||isNaN(e)||isNaN(i))return!1;if(t<1e3||t>9999||e<=0||e>12)return!1;if(i<=0||i>[31,t%400==0||t%100!=0&&t%4==0?29:28,31,30,31,30,31,31,30,31,30,31][e-1])return!1;if(!0===n){var a=new Date,r=a.getFullYear(),o=a.getMonth(),s=a.getDate();return t<r||t===r&&e-1<o||t===r&&e-1===o&&i<s}return!0}function k(t,e){return new Promise((function(i,n){var a=Object.assign({},{crossDomain:!1,headers:{},method:"GET",params:{}},e),r=Object.keys(a.params).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(a.params[t]))})).join("&"),o=t.indexOf("?"),s="GET"===a.method?"".concat(t).concat(o?"?":"&").concat(r):t;if(a.crossDomain){var l=document.createElement("script"),c="___fetch".concat(Date.now(),"___");window[c]=function(t){delete window[c],i(t)},l.src="".concat(s).concat(o?"&":"?","callback=").concat(c),l.async=!0,l.addEventListener("load",(function(){l.parentNode.removeChild(l)})),l.addEventListener("error",(function(){return n})),document.head.appendChild(l)}else{var u=new XMLHttpRequest;u.open(a.method,s),u.setRequestHeader("X-Requested-With","XMLHttpRequest"),"POST"===a.method&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),Object.keys(a.headers).forEach((function(t){return u.setRequestHeader(t,a.headers[t])})),u.addEventListener("load",(function(){i(JSON.parse(this.responseText))})),u.addEventListener("error",(function(){return n})),u.send(function(t){return Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")}(a.params))}}))}function S(t,e){if(!/^\d{13}$/.test(t))return!1;var i=parseInt(t.substr(0,2),10),n=parseInt(t.substr(2,2),10),a=parseInt(t.substr(7,2),10),r=parseInt(t.substr(12,1),10);if(i>31||n>12)return!1;for(var o=0,s=0;s<6;s++)o+=(7-s)*(parseInt(t.charAt(s),10)+parseInt(t.charAt(s+6),10));if(10!==(o=11-o%11)&&11!==o||(o=0),o!==r)return!1;switch(e.toUpperCase()){case"BA":return 10<=a&&a<=19;case"MK":return 41<=a&&a<=49;case"ME":return 20<=a&&a<=29;case"RS":return 70<=a&&a<=99;case"SI":return 50<=a&&a<=59;default:return!0}}function M(t){if(!/^\d{9,10}$/.test(t))return{meta:{},valid:!1};var e=1900+parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10)%50%20,n=parseInt(t.substr(4,2),10);if(9===t.length){if(e>=1980&&(e-=100),e>1953)return{meta:{},valid:!1}}else e<1954&&(e+=100);if(!w(e,i,n))return{meta:{},valid:!1};if(10===t.length){var a=parseInt(t.substr(0,9),10)%11;return e<1985&&(a%=10),{meta:{},valid:"".concat(a)===t.substr(9,1)}}return{meta:{},valid:!0}}function L(t){if(!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};var e=parseInt(t.charAt(0),10),i=parseInt(t.substr(1,2),10);if(!w(i=100*(e%2==0?17+e/2:17+(e+1)/2)+i,parseInt(t.substr(3,2),10),parseInt(t.substr(5,2),10),!0))return{meta:{},valid:!1};var n,a=[1,2,3,4,5,6,7,8,9,1],r=0;for(n=0;n<10;n++)r+=parseInt(t.charAt(n),10)*a[n];if(10!==(r%=11))return{meta:{},valid:"".concat(r)===t.charAt(10)};for(r=0,a=[3,4,5,6,7,8,9,1,2,3],n=0;n<10;n++)r+=parseInt(t.charAt(n),10)*a[n];return 10===(r%=11)&&(r=0),{meta:{},valid:"".concat(r)===t.charAt(10)}}function T(t){if(t.length<8)return{meta:{},valid:!1};var e=t;if(8===e.length&&(e="0".concat(e)),!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(e))return{meta:{},valid:!1};if(e=e.replace(/\./g,""),0===parseInt(e,10))return{meta:{},valid:!1};for(var i=0,n=e.length,a=0;a<n-1;a++)i+=(9-a)*parseInt(e.charAt(a),10);return 10===(i%=11)&&(i=0),{meta:{},valid:"".concat(i)===e.charAt(n-1)}}function C(t){var e=t;if(/^(GR|EL)[0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9}$/.test(e))return{meta:{},valid:!1};8===e.length&&(e="0".concat(e));for(var i=[256,128,64,32,16,8,4,2],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return{meta:{},valid:"".concat(n=n%11%10)===e.substr(8,1)}}function A(t){for(var e=function(t){return t.split("").map((function(t){var e=t.charCodeAt(0);return e>=65&&e<=90?e-55:t})).join("").split("").map((function(t){return parseInt(t,10)}))}(t),i=0,n=e.length,a=0;a<n-1;++a)i=10*(i+e[a])%97;return(i+=e[n-1])%97==1}var D={between:function(){var t=function(t){return parseFloat("".concat(t).replace(",","."))};return{validate:function(e){var i=e.value;if(""===i)return{valid:!0};var n=Object.assign({},{inclusive:!0,message:""},e.options),a=t(n.min),r=t(n.max);return n.inclusive?{message:b(e.l10n?n.message||e.l10n.between.default:n.message,["".concat(a),"".concat(r)]),valid:parseFloat(i)>=a&&parseFloat(i)<=r}:{message:b(e.l10n?n.message||e.l10n.between.notInclusive:n.message,["".concat(a),"".concat(r)]),valid:parseFloat(i)>a&&parseFloat(i)<r}}}},blank:function(){return{validate:function(t){return{valid:!0}}}},callback:function(){return{validate:function(t){var e=_(t.options.callback,[t]);return"boolean"==typeof e?{valid:e}:e}}},choice:function(){return{validate:function(t){var e="select"===t.element.tagName.toLowerCase()?t.element.querySelectorAll("option:checked").length:t.elements.filter((function(t){return t.checked})).length,i=t.options.min?"".concat(t.options.min):"",n=t.options.max?"".concat(t.options.max):"",a=t.l10n?t.options.message||t.l10n.choice.default:t.options.message,r=!(i&&e<parseInt(i,10)||n&&e>parseInt(n,10));switch(!0){case!!i&&!!n:a=b(t.l10n?t.l10n.choice.between:t.options.message,[i,n]);break;case!!i:a=b(t.l10n?t.l10n.choice.more:t.options.message,i);break;case!!n:a=b(t.l10n?t.l10n.choice.less:t.options.message,n)}return{message:a,valid:r}}}},creditCard:function(){return{validate:function(t){if(""===t.value)return{meta:{type:null},valid:!0};if(/[^0-9-\s]+/.test(t.value))return{meta:{type:null},valid:!1};var i=t.value.replace(/\D/g,"");if(!e(i))return{meta:{type:null},valid:!1};for(var n=0,a=Object.keys(x);n<a.length;n++){var r=a[n];for(var o in x[r].prefix)if(t.value.substr(0,x[r].prefix[o].length)===x[r].prefix[o]&&-1!==x[r].length.indexOf(i.length))return{meta:{type:r},valid:!0}}return{meta:{type:null},valid:!1}}}},date:function(){var t=function(t,e,i){var n=e.indexOf("YYYY"),a=e.indexOf("MM"),r=e.indexOf("DD");if(-1===n||-1===a||-1===r)return null;var o=t.split(" "),s=o[0].split(i);if(s.length<3)return null;var l=new Date(parseInt(s[n],10),parseInt(s[a],10)-1,parseInt(s[r],10));if(o.length>1){var c=o[1].split(":");l.setHours(c.length>0?parseInt(c[0],10):0),l.setMinutes(c.length>1?parseInt(c[1],10):0),l.setSeconds(c.length>2?parseInt(c[2],10):0)}return l},e=function(t,e){var i=e.replace(/Y/g,"y").replace(/M/g,"m").replace(/D/g,"d").replace(/:m/g,":M").replace(/:mm/g,":MM").replace(/:S/,":s").replace(/:SS/,":ss"),n=t.getDate(),a=n<10?"0".concat(n):n,r=t.getMonth()+1,o=r<10?"0".concat(r):r,s="".concat(t.getFullYear()).substr(2),l=t.getFullYear(),c=t.getHours()%12||12,u=c<10?"0".concat(c):c,d=t.getHours(),h=d<10?"0".concat(d):d,f=t.getMinutes(),p=f<10?"0".concat(f):f,m=t.getSeconds(),g=m<10?"0".concat(m):m,v={H:"".concat(d),HH:"".concat(h),M:"".concat(f),MM:"".concat(p),d:"".concat(n),dd:"".concat(a),h:"".concat(c),hh:"".concat(u),m:"".concat(r),mm:"".concat(o),s:"".concat(m),ss:"".concat(g),yy:"".concat(s),yyyy:"".concat(l)};return i.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMs])\1?|"[^"]*"|'[^']*'/g,(function(t){return v[t]?v[t]:t.slice(1,t.length-1)}))};return{validate:function(i){if(""===i.value)return{meta:{date:null},valid:!0};var n=Object.assign({},{format:i.element&&"date"===i.element.getAttribute("type")?"YYYY-MM-DD":"MM/DD/YYYY",message:""},i.options),a=i.l10n?i.l10n.date.default:n.message,r={message:"".concat(a),meta:{date:null},valid:!1},o=n.format.split(" "),s=o.length>1?o[1]:null,l=o.length>2?o[2]:null,c=i.value.split(" "),u=c[0],d=c.length>1?c[1]:null;if(o.length!==c.length)return r;var h=n.separator||(-1!==u.indexOf("/")?"/":-1!==u.indexOf("-")?"-":-1!==u.indexOf(".")?".":"/");if(null===h||-1===u.indexOf(h))return r;var f=u.split(h),p=o[0].split(h);if(f.length!==p.length)return r;var m=f[p.indexOf("YYYY")],g=f[p.indexOf("MM")],v=f[p.indexOf("DD")];if(!/^\d+$/.test(m)||!/^\d+$/.test(g)||!/^\d+$/.test(v)||m.length>4||g.length>2||v.length>2)return r;var y=parseInt(m,10),_=parseInt(g,10),x=parseInt(v,10);if(!w(y,_,x))return r;var k=new Date(y,_-1,x);if(s){var S=d.split(":");if(s.split(":").length!==S.length)return r;var M=S.length>0?S[0].length<=2&&/^\d+$/.test(S[0])?parseInt(S[0],10):-1:0,L=S.length>1?S[1].length<=2&&/^\d+$/.test(S[1])?parseInt(S[1],10):-1:0,T=S.length>2?S[2].length<=2&&/^\d+$/.test(S[2])?parseInt(S[2],10):-1:0;if(-1===M||-1===L||-1===T)return r;if(T<0||T>60)return r;if(M<0||M>=24||l&&M>12)return r;if(L<0||L>59)return r;k.setHours(M),k.setMinutes(L),k.setSeconds(T)}var C="function"==typeof n.min?n.min():n.min,A=C instanceof Date?C:C?t(C,p,h):k,D="function"==typeof n.max?n.max():n.max,E=D instanceof Date?D:D?t(D,p,h):k,O=C instanceof Date?e(A,n.format):C,P=D instanceof Date?e(E,n.format):D;switch(!0){case!!O&&!P:return{message:b(i.l10n?i.l10n.date.min:a,O),meta:{date:k},valid:k.getTime()>=A.getTime()};case!!P&&!O:return{message:b(i.l10n?i.l10n.date.max:a,P),meta:{date:k},valid:k.getTime()<=E.getTime()};case!!P&&!!O:return{message:b(i.l10n?i.l10n.date.range:a,[O,P]),meta:{date:k},valid:k.getTime()<=E.getTime()&&k.getTime()>=A.getTime()};default:return{message:"".concat(a),meta:{date:k},valid:!0}}}}},different:function(){return{validate:function(t){var e="function"==typeof t.options.compare?t.options.compare.call(this):t.options.compare;return{valid:""===e||t.value!==e}}}},digits:function(){return{validate:function(t){return{valid:""===t.value||/^\d+$/.test(t.value)}}}},emailAddress:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{multiple:!1,separator:/[,;]/},t.options),i=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;if(!0===e.multiple||"true"==="".concat(e.multiple)){for(var n=e.separator||/[,;]/,a=function(t,e){for(var i=t.split(/"/),n=i.length,a=[],r="",o=0;o<n;o++)if(o%2==0){var s=i[o].split(e),l=s.length;if(1===l)r+=s[0];else{a.push(r+s[0]);for(var c=1;c<l-1;c++)a.push(s[c]);r=s[l-1]}}else r+='"'+i[o],o<n-1&&(r+='"');return a.push(r),a}(t.value,n),r=a.length,o=0;o<r;o++)if(!i.test(a[o]))return{valid:!1};return{valid:!0}}return{valid:i.test(t.value)}}}},file:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e,i=t.options.extension?t.options.extension.toLowerCase().split(","):null,n=t.options.type?t.options.type.toLowerCase().split(","):null;if(window.File&&window.FileList&&window.FileReader){var a=t.element.files,r=a.length,o=0;if(t.options.maxFiles&&r>parseInt("".concat(t.options.maxFiles),10))return{meta:{error:"INVALID_MAX_FILES"},valid:!1};if(t.options.minFiles&&r<parseInt("".concat(t.options.minFiles),10))return{meta:{error:"INVALID_MIN_FILES"},valid:!1};for(var s={},l=0;l<r;l++){if(o+=a[l].size,s={ext:e=a[l].name.substr(a[l].name.lastIndexOf(".")+1),file:a[l],size:a[l].size,type:a[l].type},t.options.minSize&&a[l].size<parseInt("".concat(t.options.minSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_SIZE"},s),valid:!1};if(t.options.maxSize&&a[l].size>parseInt("".concat(t.options.maxSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_SIZE"},s),valid:!1};if(i&&-1===i.indexOf(e.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_EXTENSION"},s),valid:!1};if(a[l].type&&n&&-1===n.indexOf(a[l].type.toLowerCase()))return{meta:Object.assign({},{error:"INVALID_TYPE"},s),valid:!1}}if(t.options.maxTotalSize&&o>parseInt("".concat(t.options.maxTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MAX_TOTAL_SIZE",totalSize:o},s),valid:!1};if(t.options.minTotalSize&&o<parseInt("".concat(t.options.minTotalSize),10))return{meta:Object.assign({},{error:"INVALID_MIN_TOTAL_SIZE",totalSize:o},s),valid:!1}}else if(e=t.value.substr(t.value.lastIndexOf(".")+1),i&&-1===i.indexOf(e.toLowerCase()))return{meta:{error:"INVALID_EXTENSION",ext:e},valid:!1};return{valid:!0}}}},greaterThan:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{inclusive:!0,message:""},t.options),i=parseFloat("".concat(e.min).replace(",","."));return e.inclusive?{message:b(t.l10n?e.message||t.l10n.greaterThan.default:e.message,"".concat(i)),valid:parseFloat(t.value)>=i}:{message:b(t.l10n?e.message||t.l10n.greaterThan.notInclusive:e.message,"".concat(i)),valid:parseFloat(t.value)>i}}}},identical:function(){return{validate:function(t){var e="function"==typeof t.options.compare?t.options.compare.call(this):t.options.compare;return{valid:""===e||t.value===e}}}},integer:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},t.options),i="."===e.decimalSeparator?"\\.":e.decimalSeparator,n="."===e.thousandsSeparator?"\\.":e.thousandsSeparator,a=new RegExp("^-?[0-9]{1,3}(".concat(n,"[0-9]{3})*(").concat(i,"[0-9]+)?$")),r=new RegExp(n,"g"),o="".concat(t.value);if(!a.test(o))return{valid:!1};n&&(o=o.replace(r,"")),i&&(o=o.replace(i,"."));var s=parseFloat(o);return{valid:!isNaN(s)&&isFinite(s)&&Math.floor(s)===s}}}},ip:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{ipv4:!0,ipv6:!0},t.options),i=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[1-2][0-9]|3[0-2]))?$/,n=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*(\/(\d|\d\d|1[0-1]\d|12[0-8]))?$/;switch(!0){case e.ipv4&&!e.ipv6:return{message:t.l10n?e.message||t.l10n.ip.ipv4:e.message,valid:i.test(t.value)};case!e.ipv4&&e.ipv6:return{message:t.l10n?e.message||t.l10n.ip.ipv6:e.message,valid:n.test(t.value)};case e.ipv4&&e.ipv6:default:return{message:t.l10n?e.message||t.l10n.ip.default:e.message,valid:i.test(t.value)||n.test(t.value)}}}}},lessThan:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{inclusive:!0,message:""},t.options),i=parseFloat("".concat(e.max).replace(",","."));return e.inclusive?{message:b(t.l10n?e.message||t.l10n.lessThan.default:e.message,"".concat(i)),valid:parseFloat(t.value)<=i}:{message:b(t.l10n?e.message||t.l10n.lessThan.notInclusive:e.message,"".concat(i)),valid:parseFloat(t.value)<i}}}},notEmpty:function(){return{validate:function(t){var e=!!t.options&&!!t.options.trim,i=t.value;return{valid:!e&&""!==i||e&&""!==i&&""!==i.trim()}}}},numeric:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{decimalSeparator:".",thousandsSeparator:""},t.options),i="".concat(t.value);i.substr(0,1)===e.decimalSeparator?i="0".concat(e.decimalSeparator).concat(i.substr(1)):i.substr(0,2)==="-".concat(e.decimalSeparator)&&(i="-0".concat(e.decimalSeparator).concat(i.substr(2)));var n="."===e.decimalSeparator?"\\.":e.decimalSeparator,a="."===e.thousandsSeparator?"\\.":e.thousandsSeparator,r=new RegExp("^-?[0-9]{1,3}(".concat(a,"[0-9]{3})*(").concat(n,"[0-9]+)?$")),o=new RegExp(a,"g");if(!r.test(i))return{valid:!1};a&&(i=i.replace(o,"")),n&&(i=i.replace(n,"."));var s=parseFloat(i);return{valid:!isNaN(s)&&isFinite(s)}}}},promise:function(){return{validate:function(t){return _(t.options.promise,[t])}}},regexp:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=t.options.regexp;if(e instanceof RegExp)return{valid:e.test(t.value)};var i=e.toString();return{valid:(t.options.flags?new RegExp(i,t.options.flags):new RegExp(i)).test(t.value)}}}},remote:function(){var t={crossDomain:!1,data:{},headers:{},method:"GET",validKey:"valid"};return{validate:function(e){if(""===e.value)return Promise.resolve({valid:!0});var i=Object.assign({},t,e.options),n=i.data;return"function"==typeof i.data&&(n=i.data.call(this,e)),"string"==typeof n&&(n=JSON.parse(n)),n[i.name||e.field]=e.value,k("function"==typeof i.url?i.url.call(this,e):i.url,{crossDomain:i.crossDomain,headers:i.headers,method:i.method,params:n}).then((function(t){return Promise.resolve({message:t.message,meta:t,valid:"true"==="".concat(t[i.validKey])})})).catch((function(t){return Promise.reject({valid:!1})}))}}},stringCase:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{case:"lower"},t.options),i=(e.case||"lower").toLowerCase();return{message:e.message||(t.l10n?"upper"===i?t.l10n.stringCase.upper:t.l10n.stringCase.default:e.message),valid:"upper"===i?t.value===t.value.toUpperCase():t.value===t.value.toLowerCase()}}}},stringLength:function(){return{validate:function(t){var e=Object.assign({},{message:"",trim:!1,utf8Bytes:!1},t.options),i=!0===e.trim||"true"==="".concat(e.trim)?t.value.trim():t.value;if(""===i)return{valid:!0};var n=e.min?"".concat(e.min):"",a=e.max?"".concat(e.max):"",r=e.utf8Bytes?function(t){for(var e=t.length,i=t.length-1;i>=0;i--){var n=t.charCodeAt(i);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&i--}return"".concat(e)}(i):i.length,o=!0,s=t.l10n?e.message||t.l10n.stringLength.default:e.message;switch((n&&r<parseInt(n,10)||a&&r>parseInt(a,10))&&(o=!1),!0){case!!n&&!!a:s=b(t.l10n?e.message||t.l10n.stringLength.between:e.message,[n,a]);break;case!!n:s=b(t.l10n?e.message||t.l10n.stringLength.more:e.message,"".concat(parseInt(n,10)-1));break;case!!a:s=b(t.l10n?e.message||t.l10n.stringLength.less:e.message,"".concat(parseInt(a,10)+1))}return{message:s,valid:o}}}},uri:function(){var t={allowEmptyProtocol:!1,allowLocal:!1,protocol:"http, https, ftp"};return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},t,e.options),n=!0===i.allowLocal||"true"==="".concat(i.allowLocal),a=!0===i.allowEmptyProtocol||"true"==="".concat(i.allowEmptyProtocol),r=i.protocol.split(",").join("|").replace(/\s/g,"");return{valid:new RegExp("^(?:(?:"+r+")://)"+(a?"?":"")+"(?:\\S+(?::\\S*)?@)?(?:"+(n?"":"(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})")+"(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-?)*[a-z\\u00a1-\\uffff0-9])*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))"+(n?"?":"")+")(?::\\d{2,5})?(?:/[^\\s]*)?$","i").test(e.value)}}}},base64:function(){return{validate:function(t){return{valid:""===t.value||/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(t.value)}}}},bic:function(){return{validate:function(t){return{valid:""===t.value||/^[a-zA-Z]{6}[a-zA-Z0-9]{2}([a-zA-Z0-9]{3})?$/.test(t.value)}}}},color:function(){var t=["hex","rgb","rgba","hsl","hsla","keyword"],e=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],i=function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},n=function(t){return/^hsl\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(t)},a=function(t){return/^hsla\((\s*(-?\d+)\s*,)(\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)},r=function(t){return e.indexOf(t)>=0},o=function(t){return/^rgb\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){2}(\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*)\)$/.test(t)||/^rgb\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){2}(\s*(\b(0?\d{1,2}|100)\b%)\s*)\)$/.test(t)},s=function(t){return/^rgba\((\s*(\b([01]?\d{1,2}|2[0-4]\d|25[0-5])\b)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)||/^rgba\((\s*(\b(0?\d{1,2}|100)\b%)\s*,){3}(\s*(0?(\.\d+)?|1(\.0+)?)\s*)\)$/.test(t)};return{validate:function(e){if(""===e.value)return{valid:!0};var l,c=v("string"==typeof e.options.type?e.options.type.toString().replace(/s/g,"").split(","):e.options.type||t);try{for(c.s();!(l=c.n()).done;){var u=l.value.toLowerCase();if(-1!==t.indexOf(u)){var d=!0;switch(u){case"hex":d=i(e.value);break;case"hsl":d=n(e.value);break;case"hsla":d=a(e.value);break;case"keyword":d=r(e.value);break;case"rgb":d=o(e.value);break;case"rgba":d=s(e.value)}if(d)return{valid:!0}}}}catch(t){c.e(t)}finally{c.f()}return{valid:!1}}}},cusip:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=t.value.toUpperCase();if(!/^[0123456789ABCDEFGHJKLMNPQRSTUVWXYZ*@#]{9}$/.test(e))return{valid:!1};var i=e.split(""),n=i.pop(),a=i.map((function(t){var e=t.charCodeAt(0);switch(!0){case"*"===t:return 36;case"@"===t:return 37;case"#"===t:return 38;case e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0):return e-"A".charCodeAt(0)+10;default:return parseInt(t,10)}})).map((function(t,e){var i=e%2==0?t:2*t;return Math.floor(i/10)+i%10})).reduce((function(t,e){return t+e}),0);return{valid:n==="".concat((10-a%10)%10)}}}},ean:function(){return{validate:function(t){if(""===t.value)return{valid:!0};if(!/^(\d{8}|\d{12}|\d{13}|\d{14})$/.test(t.value))return{valid:!1};for(var e=t.value.length,i=0,n=8===e?[3,1]:[1,3],a=0;a<e-1;a++)i+=parseInt(t.value.charAt(a),10)*n[a%2];return{valid:"".concat(i=(10-i%10)%10)===t.value.charAt(e-1)}}}},ein:function(){var t={ANDOVER:["10","12"],ATLANTA:["60","67"],AUSTIN:["50","53"],BROOKHAVEN:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],CINCINNATI:["30","32","35","36","37","38","61"],FRESNO:["15","24"],INTERNET:["20","26","27","45","46","47"],KANSAS_CITY:["40","44"],MEMPHIS:["94","95"],OGDEN:["80","90"],PHILADELPHIA:["33","39","41","42","43","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],SMALL_BUSINESS_ADMINISTRATION:["31"]};return{validate:function(e){if(""===e.value)return{meta:null,valid:!0};if(!/^[0-9]{2}-?[0-9]{7}$/.test(e.value))return{meta:null,valid:!1};var i="".concat(e.value.substr(0,2));for(var n in t)if(-1!==t[n].indexOf(i))return{meta:{campus:n},valid:!0};return{meta:null,valid:!1}}}},grid:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=t.value.toUpperCase();return/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(e)?("GRID:"===(e=e.replace(/\s/g,"").replace(/-/g,"")).substr(0,5)&&(e=e.substr(5)),{valid:n(e)}):{valid:!1}}}},hex:function(){return{validate:function(t){return{valid:""===t.value||/^[0-9a-fA-F]+$/.test(t.value)}}}},iban:function(){var t={AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9][0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TL:"TL38[0-9]{3}[0-9]{14}[0-9]{2}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}",XK:"XK[0-9]{2}[0-9]{4}[0-9]{10}[0-9]{2}"},e=["AT","BE","BG","CH","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GI","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MC","MT","NL","NO","PL","PT","RO","SE","SI","SK","SM"];return{validate:function(i){if(""===i.value)return{valid:!0};var n=Object.assign({},{message:""},i.options),a=i.value.replace(/[^a-zA-Z0-9]/g,"").toUpperCase(),r=n.country||a.substr(0,2);if(!t[r])return{message:n.message,valid:!1};if(void 0!==n.sepa){var o=-1!==e.indexOf(r);if(("true"===n.sepa||!0===n.sepa)&&!o||("false"===n.sepa||!1===n.sepa)&&o)return{message:n.message,valid:!1}}var s=b(i.l10n?n.message||i.l10n.iban.country:n.message,i.l10n?i.l10n.iban.countries[r]:r);if(!new RegExp("^".concat(t[r],"$")).test(i.value))return{message:s,valid:!1};a=(a="".concat(a.substr(4)).concat(a.substr(0,4))).split("").map((function(t){var e=t.charCodeAt(0);return e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?e-"A".charCodeAt(0)+10:t})).join("");for(var l=parseInt(a.substr(0,1),10),c=a.length,u=1;u<c;++u)l=(10*l+parseInt(a.substr(u,1),10))%97;return{message:s,valid:1===l}}}},id:function(){var t=["AR","BA","BG","BR","CH","CL","CN","CO","CZ","DK","EE","ES","FI","FR","HK","HR","ID","IE","IL","IS","KR","LT","LV","ME","MK","MX","MY","NL","NO","PE","PL","RO","RS","SE","SI","SK","SM","TH","TR","TW","UY","ZA"];return{validate:function(n){if(""===n.value)return{valid:!0};var r=Object.assign({},{message:""},n.options),o=n.value.substr(0,2);if(o="function"==typeof r.country?r.country.call(this):r.country,-1===t.indexOf(o))return{valid:!0};var s={meta:{},valid:!0};switch(o.toLowerCase()){case"ar":s=function(t){var e=t.replace(/\./g,"");return{meta:{},valid:/^\d{7,8}$/.test(e)}}(n.value);break;case"ba":s=function(t){return{meta:{},valid:S(t,"BA")}}(n.value);break;case"bg":s=function(t){if(!/^\d{10}$/.test(t)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(t))return{meta:{},valid:!1};var e=t.replace(/\s/g,""),i=parseInt(e.substr(0,2),10)+1900,n=parseInt(e.substr(2,2),10);if(n>40?(i+=100,n-=40):n>20&&(i-=100,n-=20),!w(i,n,parseInt(e.substr(4,2),10)))return{meta:{},valid:!1};for(var a=0,r=[2,4,8,5,10,9,7,3,6],o=0;o<9;o++)a+=parseInt(e.charAt(o),10)*r[o];return{meta:{},valid:"".concat(a=a%11%10)===e.substr(9,1)}}(n.value);break;case"br":s=function(t){var e=t.replace(/\D/g,"");if(!/^\d{11}$/.test(e)||/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(e))return{meta:{},valid:!1};var i,n=0;for(i=0;i<9;i++)n+=(10-i)*parseInt(e.charAt(i),10);if(10!=(n=11-n%11)&&11!==n||(n=0),"".concat(n)!==e.charAt(9))return{meta:{},valid:!1};var a=0;for(i=0;i<10;i++)a+=(11-i)*parseInt(e.charAt(i),10);return 10!=(a=11-a%11)&&11!==a||(a=0),{meta:{},valid:"".concat(a)===e.charAt(10)}}(n.value);break;case"ch":s=function(t){if(!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(t))return{meta:{},valid:!1};for(var e=t.replace(/\D/g,"").substr(3),i=e.length,n=8===i?[3,1]:[1,3],a=0,r=0;r<i-1;r++)a+=parseInt(e.charAt(r),10)*n[r%2];return{meta:{},valid:"".concat(a=10-a%10)===e.charAt(i-1)}}(n.value);break;case"cl":s=function(t){if(!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(t))return{meta:{},valid:!1};for(var e=t.replace(/\-/g,"");e.length<9;)e="0".concat(e);for(var i=[3,2,7,6,5,4,3,2],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];var r="".concat(n=11-n%11);return 11===n?r="0":10===n&&(r="K"),{meta:{},valid:r===e.charAt(8).toUpperCase()}}(n.value);break;case"cn":s=function(t){var e=t.trim();if(!/^\d{15}$/.test(e)&&!/^\d{17}[\dXx]{1}$/.test(e))return{meta:{},valid:!1};var i={11:{0:[0],1:[[0,9],[11,17]],2:[0,28,29]},12:{0:[0],1:[[0,16]],2:[0,21,23,25]},13:{0:[0],1:[[0,5],7,8,21,[23,33],[81,85]],2:[[0,5],[7,9],[23,25],27,29,30,81,83],3:[[0,4],[21,24]],4:[[0,4],6,21,[23,35],81],5:[[0,3],[21,35],81,82],6:[[0,4],[21,38],[81,84]],7:[[0,3],5,6,[21,33]],8:[[0,4],[21,28]],9:[[0,3],[21,30],[81,84]],10:[[0,3],[22,26],28,81,82],11:[[0,2],[21,28],81,82]},14:{0:[0],1:[0,1,[5,10],[21,23],81],2:[[0,3],11,12,[21,27]],3:[[0,3],11,21,22],4:[[0,2],11,21,[23,31],81],5:[[0,2],21,22,24,25,81],6:[[0,3],[21,24]],7:[[0,2],[21,29],81],8:[[0,2],[21,30],81,82],9:[[0,2],[21,32],81],10:[[0,2],[21,34],81,82],11:[[0,2],[21,30],81,82],23:[[0,3],22,23,[25,30],32,33]},15:{0:[0],1:[[0,5],[21,25]],2:[[0,7],[21,23]],3:[[0,4]],4:[[0,4],[21,26],[28,30]],5:[[0,2],[21,26],81],6:[[0,2],[21,27]],7:[[0,3],[21,27],[81,85]],8:[[0,2],[21,26]],9:[[0,2],[21,29],81],22:[[0,2],[21,24]],25:[[0,2],[22,31]],26:[[0,2],[24,27],[29,32],34],28:[0,1,[22,27]],29:[0,[21,23]]},21:{0:[0],1:[[0,6],[11,14],[22,24],81],2:[[0,4],[11,13],24,[81,83]],3:[[0,4],11,21,23,81],4:[[0,4],11,[21,23]],5:[[0,5],21,22],6:[[0,4],24,81,82],7:[[0,3],11,26,27,81,82],8:[[0,4],11,81,82],9:[[0,5],11,21,22],10:[[0,5],11,21,81],11:[[0,3],21,22],12:[[0,2],4,21,23,24,81,82],13:[[0,3],21,22,24,81,82],14:[[0,4],21,22,81]},22:{0:[0],1:[[0,6],12,22,[81,83]],2:[[0,4],11,21,[81,84]],3:[[0,3],22,23,81,82],4:[[0,3],21,22],5:[[0,3],21,23,24,81,82],6:[[0,2],4,5,[21,23],25,81],7:[[0,2],[21,24],81],8:[[0,2],21,22,81,82],24:[[0,6],24,26]},23:{0:[0],1:[[0,12],21,[23,29],[81,84]],2:[[0,8],21,[23,25],27,[29,31],81],3:[[0,7],21,81,82],4:[[0,7],21,22],5:[[0,3],5,6,[21,24]],6:[[0,6],[21,24]],7:[[0,16],22,81],8:[[0,5],11,22,26,28,33,81,82],9:[[0,4],21],10:[[0,5],24,25,81,[83,85]],11:[[0,2],21,23,24,81,82],12:[[0,2],[21,26],[81,83]],27:[[0,4],[21,23]]},31:{0:[0],1:[0,1,[3,10],[12,20]],2:[0,30]},32:{0:[0],1:[[0,7],11,[13,18],24,25],2:[[0,6],11,81,82],3:[[0,5],11,12,[21,24],81,82],4:[[0,2],4,5,11,12,81,82],5:[[0,9],[81,85]],6:[[0,2],11,12,21,23,[81,84]],7:[0,1,3,5,6,[21,24]],8:[[0,4],11,26,[29,31]],9:[[0,3],[21,25],28,81,82],10:[[0,3],11,12,23,81,84,88],11:[[0,2],11,12,[81,83]],12:[[0,4],[81,84]],13:[[0,2],11,[21,24]]},33:{0:[0],1:[[0,6],[8,10],22,27,82,83,85],2:[0,1,[3,6],11,12,25,26,[81,83]],3:[[0,4],22,24,[26,29],81,82],4:[[0,2],11,21,24,[81,83]],5:[[0,3],[21,23]],6:[[0,2],21,24,[81,83]],7:[[0,3],23,26,27,[81,84]],8:[[0,3],22,24,25,81],9:[[0,3],21,22],10:[[0,4],[21,24],81,82],11:[[0,2],[21,27],81]},34:{0:[0],1:[[0,4],11,[21,24],81],2:[[0,4],7,8,[21,23],25],3:[[0,4],11,[21,23]],4:[[0,6],21],5:[[0,4],6,[21,23]],6:[[0,4],21],7:[[0,3],11,21],8:[[0,3],11,[22,28],81],10:[[0,4],[21,24]],11:[[0,3],22,[24,26],81,82],12:[[0,4],21,22,25,26,82],13:[[0,2],[21,24]],14:[[0,2],[21,24]],15:[[0,3],[21,25]],16:[[0,2],[21,23]],17:[[0,2],[21,23]],18:[[0,2],[21,25],81]},35:{0:[0],1:[[0,5],11,[21,25],28,81,82],2:[[0,6],[11,13]],3:[[0,5],22],4:[[0,3],21,[23,30],81],5:[[0,5],21,[24,27],[81,83]],6:[[0,3],[22,29],81],7:[[0,2],[21,25],[81,84]],8:[[0,2],[21,25],81],9:[[0,2],[21,26],81,82]},36:{0:[0],1:[[0,5],11,[21,24]],2:[[0,3],22,81],3:[[0,2],13,[21,23]],4:[[0,3],21,[23,30],81,82],5:[[0,2],21],6:[[0,2],22,81],7:[[0,2],[21,35],81,82],8:[[0,3],[21,30],81],9:[[0,2],[21,26],[81,83]],10:[[0,2],[21,30]],11:[[0,2],[21,30],81]},37:{0:[0],1:[[0,5],12,13,[24,26],81],2:[[0,3],5,[11,14],[81,85]],3:[[0,6],[21,23]],4:[[0,6],81],5:[[0,3],[21,23]],6:[[0,2],[11,13],34,[81,87]],7:[[0,5],24,25,[81,86]],8:[[0,2],11,[26,32],[81,83]],9:[[0,3],11,21,23,82,83],10:[[0,2],[81,83]],11:[[0,3],21,22],12:[[0,3]],13:[[0,2],11,12,[21,29]],14:[[0,2],[21,28],81,82],15:[[0,2],[21,26],81],16:[[0,2],[21,26]],17:[[0,2],[21,28]]},41:{0:[0],1:[[0,6],8,22,[81,85]],2:[[0,5],11,[21,25]],3:[[0,7],11,[22,29],81],4:[[0,4],11,[21,23],25,81,82],5:[[0,3],5,6,22,23,26,27,81],6:[[0,3],11,21,22],7:[[0,4],11,21,[24,28],81,82],8:[[0,4],11,[21,23],25,[81,83]],9:[[0,2],22,23,[26,28]],10:[[0,2],[23,25],81,82],11:[[0,4],[21,23]],12:[[0,2],21,22,24,81,82],13:[[0,3],[21,30],81],14:[[0,3],[21,26],81],15:[[0,3],[21,28]],16:[[0,2],[21,28],81],17:[[0,2],[21,29]],90:[0,1]},42:{0:[0],1:[[0,7],[11,17]],2:[[0,5],22,81],3:[[0,3],[21,25],81],5:[[0,6],[25,29],[81,83]],6:[[0,2],6,7,[24,26],[82,84]],7:[[0,4]],8:[[0,2],4,21,22,81],9:[[0,2],[21,23],81,82,84],10:[[0,3],[22,24],81,83,87],11:[[0,2],[21,27],81,82],12:[[0,2],[21,24],81],13:[[0,3],21,81],28:[[0,2],22,23,[25,28]],90:[0,[4,6],21]},43:{0:[0],1:[[0,5],11,12,21,22,24,81],2:[[0,4],11,21,[23,25],81],3:[[0,2],4,21,81,82],4:[0,1,[5,8],12,[21,24],26,81,82],5:[[0,3],11,[21,25],[27,29],81],6:[[0,3],11,21,23,24,26,81,82],7:[[0,3],[21,26],81],8:[[0,2],11,21,22],9:[[0,3],[21,23],81],10:[[0,3],[21,28],81],11:[[0,3],[21,29]],12:[[0,2],[21,30],81],13:[[0,2],21,22,81,82],31:[0,1,[22,27],30]},44:{0:[0],1:[[0,7],[11,16],83,84],2:[[0,5],21,22,24,29,32,33,81,82],3:[0,1,[3,8]],4:[[0,4]],5:[0,1,[6,15],23,82,83],6:[0,1,[4,8]],7:[0,1,[3,5],81,[83,85]],8:[[0,4],11,23,25,[81,83]],9:[[0,3],23,[81,83]],12:[[0,3],[23,26],83,84],13:[[0,3],[22,24],81],14:[[0,2],[21,24],26,27,81],15:[[0,2],21,23,81],16:[[0,2],[21,25]],17:[[0,2],21,23,81],18:[[0,3],21,23,[25,27],81,82],19:[0],20:[0],51:[[0,3],21,22],52:[[0,3],21,22,24,81],53:[[0,2],[21,23],81]},45:{0:[0],1:[[0,9],[21,27]],2:[[0,5],[21,26]],3:[[0,5],11,12,[21,32]],4:[0,1,[3,6],11,[21,23],81],5:[[0,3],12,21],6:[[0,3],21,81],7:[[0,3],21,22],8:[[0,4],21,81],9:[[0,3],[21,24],81],10:[[0,2],[21,31]],11:[[0,2],[21,23]],12:[[0,2],[21,29],81],13:[[0,2],[21,24],81],14:[[0,2],[21,25],81]},46:{0:[0],1:[0,1,[5,8]],2:[0,1],3:[0,[21,23]],90:[[0,3],[5,7],[21,39]]},50:{0:[0],1:[[0,19]],2:[0,[22,38],[40,43]],3:[0,[81,84]]},51:{0:[0],1:[0,1,[4,8],[12,15],[21,24],29,31,32,[81,84]],3:[[0,4],11,21,22],4:[[0,3],11,21,22],5:[[0,4],21,22,24,25],6:[0,1,3,23,26,[81,83]],7:[0,1,3,4,[22,27],81],8:[[0,2],11,12,[21,24]],9:[[0,4],[21,23]],10:[[0,2],11,24,25,28],11:[[0,2],[11,13],23,24,26,29,32,33,81],13:[[0,4],[21,25],81],14:[[0,2],[21,25]],15:[[0,3],[21,29]],16:[[0,3],[21,23],81],17:[[0,3],[21,25],81],18:[[0,3],[21,27]],19:[[0,3],[21,23]],20:[[0,2],21,22,81],32:[0,[21,33]],33:[0,[21,38]],34:[0,1,[22,37]]},52:{0:[0],1:[[0,3],[11,15],[21,23],81],2:[0,1,3,21,22],3:[[0,3],[21,30],81,82],4:[[0,2],[21,25]],5:[[0,2],[21,27]],6:[[0,3],[21,28]],22:[0,1,[22,30]],23:[0,1,[22,28]],24:[0,1,[22,28]],26:[0,1,[22,36]],27:[[0,2],22,23,[25,32]]},53:{0:[0],1:[[0,3],[11,14],21,22,[24,29],81],3:[[0,2],[21,26],28,81],4:[[0,2],[21,28]],5:[[0,2],[21,24]],6:[[0,2],[21,30]],7:[[0,2],[21,24]],8:[[0,2],[21,29]],9:[[0,2],[21,27]],23:[0,1,[22,29],31],25:[[0,4],[22,32]],26:[0,1,[21,28]],27:[0,1,[22,30]],28:[0,1,22,23],29:[0,1,[22,32]],31:[0,2,3,[22,24]],34:[0,[21,23]],33:[0,21,[23,25]],35:[0,[21,28]]},54:{0:[0],1:[[0,2],[21,27]],21:[0,[21,29],32,33],22:[0,[21,29],[31,33]],23:[0,1,[22,38]],24:[0,[21,31]],25:[0,[21,27]],26:[0,[21,27]]},61:{0:[0],1:[[0,4],[11,16],22,[24,26]],2:[[0,4],22],3:[[0,4],[21,24],[26,31]],4:[[0,4],[22,31],81],5:[[0,2],[21,28],81,82],6:[[0,2],[21,32]],7:[[0,2],[21,30]],8:[[0,2],[21,31]],9:[[0,2],[21,29]],10:[[0,2],[21,26]]},62:{0:[0],1:[[0,5],11,[21,23]],2:[0,1],3:[[0,2],21],4:[[0,3],[21,23]],5:[[0,3],[21,25]],6:[[0,2],[21,23]],7:[[0,2],[21,25]],8:[[0,2],[21,26]],9:[[0,2],[21,24],81,82],10:[[0,2],[21,27]],11:[[0,2],[21,26]],12:[[0,2],[21,28]],24:[0,21,[24,29]],26:[0,21,[23,30]],29:[0,1,[21,27]],30:[0,1,[21,27]]},63:{0:[0],1:[[0,5],[21,23]],2:[0,2,[21,25]],21:[0,[21,23],[26,28]],22:[0,[21,24]],23:[0,[21,24]],25:[0,[21,25]],26:[0,[21,26]],27:[0,1,[21,26]],28:[[0,2],[21,23]]},64:{0:[0],1:[0,1,[4,6],21,22,81],2:[[0,3],5,[21,23]],3:[[0,3],[21,24],81],4:[[0,2],[21,25]],5:[[0,2],21,22]},65:{0:[0],1:[[0,9],21],2:[[0,5]],21:[0,1,22,23],22:[0,1,22,23],23:[[0,3],[23,25],27,28],28:[0,1,[22,29]],29:[0,1,[22,29]],30:[0,1,[22,24]],31:[0,1,[21,31]],32:[0,1,[21,27]],40:[0,2,3,[21,28]],42:[[0,2],21,[23,26]],43:[0,1,[21,26]],90:[[0,4]],27:[[0,2],22,23]},71:{0:[0]},81:{0:[0]},82:{0:[0]}},n=parseInt(e.substr(0,2),10),a=parseInt(e.substr(2,2),10),r=parseInt(e.substr(4,2),10);if(!i[n]||!i[n][a])return{meta:{},valid:!1};var o,s,l=!1,c=i[n][a];for(o=0;o<c.length;o++)if(Array.isArray(c[o])&&c[o][0]<=r&&r<=c[o][1]||!Array.isArray(c[o])&&r===c[o]){l=!0;break}if(!l)return{meta:{},valid:!1};if(s=18===e.length?e.substr(6,8):"19".concat(e.substr(6,6)),!w(parseInt(s.substr(0,4),10),parseInt(s.substr(4,2),10),parseInt(s.substr(6,2),10)))return{meta:{},valid:!1};if(18===e.length){var u=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],d=0;for(o=0;o<17;o++)d+=parseInt(e.charAt(o),10)*u[o];return d=(12-d%11)%11,{meta:{},valid:("X"!==e.charAt(17).toUpperCase()?parseInt(e.charAt(17),10):10)===d}}return{meta:{},valid:!0}}(n.value);break;case"co":s=function(t){var e=t.replace(/\./g,"").replace("-","");if(!/^\d{8,16}$/.test(e))return{meta:{},valid:!1};for(var i=e.length,n=[3,7,13,17,19,23,29,37,41,43,47,53,59,67,71],a=0,r=i-2;r>=0;r--)a+=parseInt(e.charAt(r),10)*n[r];return(a%=11)>=2&&(a=11-a),{meta:{},valid:"".concat(a)===e.substr(i-1)}}(n.value);break;case"cz":s=M(n.value);break;case"dk":s=function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(t))return{meta:{},valid:!1};var e=t.replace(/-/g,""),i=parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10),a=parseInt(e.substr(4,2),10);switch(!0){case-1!=="5678".indexOf(e.charAt(6))&&a>=58:a+=1800;break;case-1!=="0123".indexOf(e.charAt(6)):case-1!=="49".indexOf(e.charAt(6))&&a>=37:a+=1900;break;default:a+=2e3}return{meta:{},valid:w(a,n,i)}}(n.value);break;case"ee":s=L(n.value);break;case"es":s=function(t){var e=/^[0-9]{8}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(t),i=/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[A-HJ-NP-TV-Z]$/.test(t),n=/^[A-HNPQS][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-J]$/.test(t);if(!e&&!i&&!n)return{meta:{},valid:!1};var a,r,o=t.replace(/-/g,"");if(e||i){r="DNI";var s="XYZ".indexOf(o.charAt(0));return-1!==s&&(o=s+o.substr(1)+"",r="NIE"),{meta:{type:r},valid:(a="TRWAGMYFPDXBNJZSQVHLCKE"[(a=parseInt(o.substr(0,8),10))%23])===o.substr(8,1)}}a=o.substr(1,7),r="CIF";for(var l=o[0],c=o.substr(-1),u=0,d=0;d<a.length;d++)if(d%2!=0)u+=parseInt(a[d],10);else{var h=""+2*parseInt(a[d],10);u+=parseInt(h[0],10),2===h.length&&(u+=parseInt(h[1],10))}var f=u-10*Math.floor(u/10);return 0!==f&&(f=10-f),{meta:{type:r},valid:-1!=="KQS".indexOf(l)?c==="JABCDEFGHI"[f]:-1!=="ABEH".indexOf(l)?c===""+f:c===""+f||c==="JABCDEFGHI"[f]}}(n.value);break;case"fi":s=function(t){if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(t))return{meta:{},valid:!1};var e=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);if(!w(n={"+":1800,"-":1900,A:2e3}[t.charAt(6)]+n,i,e))return{meta:{},valid:!1};if(parseInt(t.substr(7,3),10)<2)return{meta:{},valid:!1};var a=parseInt(t.substr(0,6)+t.substr(7,3)+"",10);return{meta:{},valid:"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(a%31)===t.charAt(10)}}(n.value);break;case"fr":s=function(t){var e=t.toUpperCase();if(!/^(1|2)\d{2}\d{2}(\d{2}|\d[A-Z]|\d{3})\d{2,3}\d{3}\d{2}$/.test(e))return{meta:{},valid:!1};var i=e.substr(5,2);switch(!0){case/^\d{2}$/.test(i):e=t;break;case"2A"===i:e="".concat(t.substr(0,5),"19").concat(t.substr(7));break;case"2B"===i:e="".concat(t.substr(0,5),"18").concat(t.substr(7));break;default:return{meta:{},valid:!1}}var n=97-parseInt(e.substr(0,13),10)%97;return{meta:{},valid:(n<10?"0".concat(n):"".concat(n))===e.substr(13)}}(n.value);break;case"hk":s=function(t){var e=t.toUpperCase();if(!/^[A-MP-Z]{1,2}[0-9]{6}[0-9A]$/.test(e))return{meta:{},valid:!1};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=e.charAt(0),a=e.charAt(1),r=0,o=e;/^[A-Z]$/.test(a)?(r+=9*(10+i.indexOf(n)),r+=8*(10+i.indexOf(a)),o=e.substr(2)):(r+=324,r+=8*(10+i.indexOf(n)),o=e.substr(1));for(var s=o.length,l=0;l<s-1;l++)r+=(7-l)*parseInt(o.charAt(l),10);var c=r%11;return{meta:{},valid:(0===c?"0":11-c==10?"A":"".concat(11-c))===o.charAt(s-1)}}(n.value);break;case"hr":s=function(t){return{meta:{},valid:/^[0-9]{11}$/.test(t)&&i(t)}}(n.value);break;case"id":s=function(t){return/^[2-9]\d{11}$/.test(t)?{meta:{},valid:a(t.split("").map((function(t){return parseInt(t,10)})))}:{meta:{},valid:!1}}(n.value);break;case"ie":s=function(t){if(!/^\d{7}[A-W][AHWTX]?$/.test(t))return{meta:{},valid:!1};var e=function(t){for(var e=t;e.length<7;)e="0".concat(e);for(var i="WABCDEFGHIJKLMNOPQRSTUV",n=0,a=0;a<7;a++)n+=parseInt(e.charAt(a),10)*(8-a);return n+=9*i.indexOf(e.substr(7)),i[n%23]};return{meta:{},valid:9!==t.length||"A"!==t.charAt(8)&&"H"!==t.charAt(8)?t.charAt(7)===e(t.substr(0,7)):t.charAt(7)===e(t.substr(0,7)+t.substr(8)+"")}}(n.value);break;case"il":s=function(t){return/^\d{1,9}$/.test(t)?{meta:{},valid:e(t)}:{meta:{},valid:!1}}(n.value);break;case"is":s=function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(t))return{meta:{},valid:!1};var e=t.replace(/-/g,""),i=parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10),a=parseInt(e.substr(4,2),10),r=parseInt(e.charAt(9),10);if(!w(a=9===r?1900+a:100*(20+r)+a,n,i,!0))return{meta:{},valid:!1};for(var o=[3,2,7,6,5,4,3,2],s=0,l=0;l<8;l++)s+=parseInt(e.charAt(l),10)*o[l];return{meta:{},valid:"".concat(s=11-s%11)===e.charAt(8)}}(n.value);break;case"kr":s=function(t){var e=t.replace("-","");if(!/^\d{13}$/.test(e))return{meta:{},valid:!1};var i=e.charAt(6),n=parseInt(e.substr(0,2),10),a=parseInt(e.substr(2,2),10),r=parseInt(e.substr(4,2),10);switch(i){case"1":case"2":case"5":case"6":n+=1900;break;case"3":case"4":case"7":case"8":n+=2e3;break;default:n+=1800}if(!w(n,a,r))return{meta:{},valid:!1};for(var o=[2,3,4,5,6,7,8,9,2,3,4,5],s=e.length,l=0,c=0;c<s-1;c++)l+=o[c]*parseInt(e.charAt(c),10);return{meta:{},valid:"".concat((11-l%11)%10)===e.charAt(s-1)}}(n.value);break;case"lt":s=L(n.value);break;case"lv":s=function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(t))return{meta:{},valid:!1};var e=t.replace(/\D/g,""),i=parseInt(e.substr(0,2),10),n=parseInt(e.substr(2,2),10),a=parseInt(e.substr(4,2),10);if(!w(a=a+1800+100*parseInt(e.charAt(6),10),n,i,!0))return{meta:{},valid:!1};for(var r=0,o=[10,5,8,4,2,1,6,3,7,9],s=0;s<10;s++)r+=parseInt(e.charAt(s),10)*o[s];return{meta:{},valid:"".concat(r=(r+1)%11%10)===e.charAt(10)}}(n.value);break;case"me":s=function(t){return{meta:{},valid:S(t,"ME")}}(n.value);break;case"mk":s=function(t){return{meta:{},valid:S(t,"MK")}}(n.value);break;case"mx":s=function(t){var e=t.toUpperCase();if(!/^[A-Z]{4}\d{6}[A-Z]{6}[0-9A-Z]\d$/.test(e))return{meta:{},valid:!1};var i=e.substr(0,4);if(["BACA","BAKA","BUEI","BUEY","CACA","CACO","CAGA","CAGO","CAKA","CAKO","COGE","COGI","COJA","COJE","COJI","COJO","COLA","CULO","FALO","FETO","GETA","GUEI","GUEY","JETA","JOTO","KACA","KACO","KAGA","KAGO","KAKA","KAKO","KOGE","KOGI","KOJA","KOJE","KOJI","KOJO","KOLA","KULO","LILO","LOCA","LOCO","LOKA","LOKO","MAME","MAMO","MEAR","MEAS","MEON","MIAR","MION","MOCO","MOKO","MULA","MULO","NACA","NACO","PEDA","PEDO","PENE","PIPI","PITO","POPO","PUTA","PUTO","QULO","RATA","ROBA","ROBE","ROBO","RUIN","SENO","TETA","VACA","VAGA","VAGO","VAKA","VUEI","VUEY","WUEI","WUEY"].indexOf(i)>=0)return{meta:{},valid:!1};var n=parseInt(e.substr(4,2),10),a=parseInt(e.substr(6,2),10),r=parseInt(e.substr(6,2),10);if(/^[0-9]$/.test(e.charAt(16))?n+=1900:n+=2e3,!w(n,a,r))return{meta:{},valid:!1};var o=e.charAt(10);if("H"!==o&&"M"!==o)return{meta:{},valid:!1};var s=e.substr(11,2);if(-1===["AS","BC","BS","CC","CH","CL","CM","CS","DF","DG","GR","GT","HG","JC","MC","MN","MS","NE","NL","NT","OC","PL","QR","QT","SL","SP","SR","TC","TL","TS","VZ","YN","ZS"].indexOf(s))return{meta:{},valid:!1};for(var l=0,c=e.length,u=0;u<c-1;u++)l+=(18-u)*"0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ".indexOf(e.charAt(u));return{meta:{},valid:"".concat(l=(10-l%10)%10)===e.charAt(c-1)}}(n.value);break;case"my":s=function(t){if(!/^\d{12}$/.test(t))return{meta:{},valid:!1};var e=parseInt(t.substr(0,2),10),i=parseInt(t.substr(2,2),10),n=parseInt(t.substr(4,2),10);if(!w(e+1900,i,n)&&!w(e+2e3,i,n))return{meta:{},valid:!1};var a=t.substr(6,2);return{meta:{},valid:-1===["17","18","19","20","69","70","73","80","81","94","95","96","97"].indexOf(a)}}(n.value);break;case"nl":s=T(n.value);break;case"no":s=function(t){return/^\d{11}$/.test(t)?{meta:{},valid:"".concat(function(t){for(var e=[3,7,6,1,8,9,4,5,2],i=0,n=0;n<9;n++)i+=e[n]*parseInt(t.charAt(n),10);return 11-i%11}(t))===t.substr(-2,1)&&"".concat(function(t){for(var e=[5,4,3,2,7,6,5,4,3,2],i=0,n=0;n<10;n++)i+=e[n]*parseInt(t.charAt(n),10);return 11-i%11}(t))===t.substr(-1)}:{meta:{},valid:!1}}(n.value);break;case"pe":s=function(t){if(!/^\d{8}[0-9A-Z]*$/.test(t))return{meta:{},valid:!1};if(8===t.length)return{meta:{},valid:!0};for(var e=[3,2,7,6,5,4,3,2],i=0,n=0;n<8;n++)i+=e[n]*parseInt(t.charAt(n),10);var a=i%11,r=[6,5,4,3,2,1,1,0,9,8,7][a],o="KJIHGFEDCBA".charAt(a);return{meta:{},valid:t.charAt(8)==="".concat(r)||t.charAt(8)===o}}(n.value);break;case"pl":s=function(t){if(!/^[0-9]{11}$/.test(t))return{meta:{},valid:!1};for(var e=0,i=t.length,n=[1,3,7,9,1,3,7,9,1,3,7],a=0;a<i-1;a++)e+=n[a]*parseInt(t.charAt(a),10);return 0==(e%=10)&&(e=10),{meta:{},valid:"".concat(e=10-e)===t.charAt(i-1)}}(n.value);break;case"ro":s=function(t){if(!/^[0-9]{13}$/.test(t))return{meta:{},valid:!1};var e=parseInt(t.charAt(0),10);if(0===e||7===e||8===e)return{meta:{},valid:!1};var i=parseInt(t.substr(1,2),10),n=parseInt(t.substr(3,2),10),a=parseInt(t.substr(5,2),10);if(a>31&&n>12)return{meta:{},valid:!1};if(9!==e&&!w(i={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3}[e+""]+i,n,a))return{meta:{},valid:!1};for(var r=0,o=[2,7,9,1,4,6,3,5,8,2,7,9],s=t.length,l=0;l<s-1;l++)r+=parseInt(t.charAt(l),10)*o[l];return 10==(r%=11)&&(r=1),{meta:{},valid:"".concat(r)===t.charAt(s-1)}}(n.value);break;case"rs":s=function(t){return{meta:{},valid:S(t,"RS")}}(n.value);break;case"se":s=function(t){if(!/^[0-9]{10}$/.test(t)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(t))return{meta:{},valid:!1};var i=t.replace(/[^0-9]/g,"");return w(parseInt(i.substr(0,2),10)+1900,parseInt(i.substr(2,2),10),parseInt(i.substr(4,2),10))?{meta:{},valid:e(i)}:{meta:{},valid:!1}}(n.value);break;case"si":s=function(t){return{meta:{},valid:S(t,"SI")}}(n.value);break;case"sk":s=M(n.value);break;case"sm":s=function(t){return{meta:{},valid:/^\d{5}$/.test(t)}}(n.value);break;case"th":s=function(t){if(13!==t.length)return{meta:{},valid:!1};for(var e=0,i=0;i<12;i++)e+=parseInt(t.charAt(i),10)*(13-i);return{meta:{},valid:(11-e%11)%10===parseInt(t.charAt(12),10)}}(n.value);break;case"tr":s=function(t){if(11!==t.length)return{meta:{},valid:!1};for(var e=0,i=0;i<10;i++)e+=parseInt(t.charAt(i),10);return{meta:{},valid:e%10===parseInt(t.charAt(10),10)}}(n.value);break;case"tw":s=function(t){var e=t.toUpperCase();if(!/^[A-Z][12][0-9]{8}$/.test(e))return{meta:{},valid:!1};for(var i=e.length,n="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.charAt(0))+10,a=Math.floor(n/10)+n%10*(i-1),r=0,o=1;o<i-1;o++)r+=parseInt(e.charAt(o),10)*(i-1-o);return{meta:{},valid:(a+r+parseInt(e.charAt(i-1),10))%10==0}}(n.value);break;case"uy":s=function(t){if(!/^\d{8}$/.test(t))return{meta:{},valid:!1};for(var e=[2,9,8,7,6,3,4],i=0,n=0;n<7;n++)i+=parseInt(t.charAt(n),10)*e[n];return(i%=10)>0&&(i=10-i),{meta:{},valid:"".concat(i)===t.charAt(7)}}(n.value);break;case"za":s=function(t){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(t))return{meta:{},valid:!1};var i=parseInt(t.substr(0,2),10);return w(i=i>=(new Date).getFullYear()%100?i+1900:i+2e3,parseInt(t.substr(2,2),10),parseInt(t.substr(4,2),10))?{meta:{},valid:e(t)}:{meta:{},valid:!1}}(n.value)}var l=b(n.l10n?r.message||n.l10n.id.country:r.message,n.l10n?n.l10n.id.countries[o.toUpperCase()]:o.toUpperCase());return Object.assign({},{message:l},s)}}},imei:function(){return{validate:function(t){if(""===t.value)return{valid:!0};switch(!0){case/^\d{15}$/.test(t.value):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(t.value):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(t.value):return{valid:e(t.value.replace(/[^0-9]/g,""))};case/^\d{14}$/.test(t.value):case/^\d{16}$/.test(t.value):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(t.value):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(t.value):return{valid:!0};default:return{valid:!1}}}}},imo:function(){return{validate:function(t){if(""===t.value)return{valid:!0};if(!/^IMO \d{7}$/i.test(t.value))return{valid:!1};for(var e=t.value.replace(/^.*(\d{7})$/,"$1"),i=0,n=6;n>=1;n--)i+=parseInt(e.slice(6-n,-n),10)*(n+1);return{valid:i%10===parseInt(e.charAt(6),10)}}}},isbn:function(){return{validate:function(t){if(""===t.value)return{meta:{type:null},valid:!0};var e;switch(!0){case/^\d{9}[\dX]$/.test(t.value):case 13===t.value.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(t.value):case 13===t.value.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(t.value):e="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(t.value):case 17===t.value.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(t.value):case 17===t.value.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(t.value):e="ISBN13";break;default:return{meta:{type:null},valid:!1}}var i,n,a=t.value.replace(/[^0-9X]/gi,"").split(""),r=a.length,o=0;switch(e){case"ISBN10":for(o=0,i=0;i<r-1;i++)o+=parseInt(a[i],10)*(10-i);return 11===(n=11-o%11)?n=0:10===n&&(n="X"),{meta:{type:e},valid:"".concat(n)===a[r-1]};case"ISBN13":for(o=0,i=0;i<r-1;i++)o+=i%2==0?parseInt(a[i],10):3*parseInt(a[i],10);return 10===(n=10-o%10)&&(n="0"),{meta:{type:e},valid:"".concat(n)===a[r-1]}}}}},isin:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=t.value.toUpperCase();if(!new RegExp("^(AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW)[0-9A-Z]{10}$").test(t.value))return{valid:!1};var i,n=e.length,a="";for(i=0;i<n-1;i++){var r=e.charCodeAt(i);a+=r>57?(r-55).toString():e.charAt(i)}var o="",s=a.length,l=s%2!=0?0:1;for(i=0;i<s;i++)o+=parseInt(a[i],10)*(i%2===l?2:1)+"";var c=0;for(i=0;i<o.length;i++)c+=parseInt(o.charAt(i),10);return{valid:"".concat(c=(10-c%10)%10)===e.charAt(n-1)}}}},ismn:function(){return{validate:function(t){if(""===t.value)return{meta:null,valid:!0};var e;switch(!0){case/^M\d{9}$/.test(t.value):case/^M-\d{4}-\d{4}-\d{1}$/.test(t.value):case/^M\s\d{4}\s\d{4}\s\d{1}$/.test(t.value):e="ISMN10";break;case/^9790\d{9}$/.test(t.value):case/^979-0-\d{4}-\d{4}-\d{1}$/.test(t.value):case/^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(t.value):e="ISMN13";break;default:return{meta:null,valid:!1}}var i=t.value;"ISMN10"===e&&(i="9790".concat(i.substr(1)));for(var n=0,a=(i=i.replace(/[^0-9]/gi,"")).length,r=[1,3],o=0;o<a-1;o++)n+=parseInt(i.charAt(o),10)*r[o%2];return{meta:{type:e},valid:"".concat(n=(10-n%10)%10)===i.charAt(a-1)}}}},issn:function(){return{validate:function(t){if(""===t.value)return{valid:!0};if(!/^\d{4}\-\d{3}[\dX]$/.test(t.value))return{valid:!1};var e=t.value.replace(/[^0-9X]/gi,"").split(""),i=e.length,n=0;"X"===e[7]&&(e[7]="10");for(var a=0;a<i;a++)n+=parseInt(e[a],10)*(8-a);return{valid:n%11==0}}}},mac:function(){return{validate:function(t){return{valid:""===t.value||/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(t.value)||/^([0-9A-Fa-f]{4}\.){2}([0-9A-Fa-f]{4})$/.test(t.value)}}}},meid:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var i=t.value;switch(!0){case/^[0-9A-F]{15}$/i.test(i):case/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}[- ][0-9A-F]$/i.test(i):case/^\d{19}$/.test(i):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}[- ]\d$/.test(i):var n=i.charAt(i.length-1).toUpperCase();if((i=i.replace(/[- ]/g,"")).match(/^\d*$/i))return{valid:e(i)};i=i.slice(0,-1);var a,r="";for(a=1;a<=13;a+=2)r+=(2*parseInt(i.charAt(a),16)).toString(16);var o=0;for(a=0;a<r.length;a++)o+=parseInt(r.charAt(a),16);return{valid:o%10==0?"0"===n:n===(2*(10*Math.floor((o+10)/10)-o)).toString(16).toUpperCase()};case/^[0-9A-F]{14}$/i.test(i):case/^[0-9A-F]{2}[- ][0-9A-F]{6}[- ][0-9A-F]{6}$/i.test(i):case/^\d{18}$/.test(i):case/^\d{5}[- ]\d{5}[- ]\d{4}[- ]\d{4}$/.test(i):return{valid:!0};default:return{valid:!1}}}}},phone:function(){var t=["AE","BG","BR","CN","CZ","DE","DK","ES","FR","GB","IN","MA","NL","PK","RO","RU","SK","TH","US","VE"];return{validate:function(e){if(""===e.value)return{valid:!0};var i=Object.assign({},{message:""},e.options),n=e.value.trim(),a=n.substr(0,2);if(!(a="function"==typeof i.country?i.country.call(this):i.country)||-1===t.indexOf(a.toUpperCase()))return{valid:!0};var r=!0;switch(a.toUpperCase()){case"AE":r=/^(((\+|00)?971[\s\.-]?(\(0\)[\s\.-]?)?|0)(\(5(0|2|5|6)\)|5(0|2|5|6)|2|3|4|6|7|9)|60)([\s\.-]?[0-9]){7}$/.test(n);break;case"BG":r=/^(0|359|00)(((700|900)[0-9]{5}|((800)[0-9]{5}|(800)[0-9]{4}))|(87|88|89)([0-9]{7})|((2[0-9]{7})|(([3-9][0-9])(([0-9]{6})|([0-9]{5})))))$/.test(n.replace(/\+|\s|-|\/|\(|\)/gi,""));break;case"BR":r=/^(([\d]{4}[-.\s]{1}[\d]{2,3}[-.\s]{1}[\d]{2}[-.\s]{1}[\d]{2})|([\d]{4}[-.\s]{1}[\d]{3}[-.\s]{1}[\d]{4})|((\(?\+?[0-9]{2}\)?\s?)?(\(?\d{2}\)?\s?)?\d{4,5}[-.\s]?\d{4}))$/.test(n);break;case"CN":r=/^((00|\+)?(86(?:-| )))?((\d{11})|(\d{3}[- ]{1}\d{4}[- ]{1}\d{4})|((\d{2,4}[- ]){1}(\d{7,8}|(\d{3,4}[- ]{1}\d{4}))([- ]{1}\d{1,4})?))$/.test(n);break;case"CZ":r=/^(((00)([- ]?)|\+)(420)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(n);break;case"DE":r=/^(((((((00|\+)49[ \-/]?)|0)[1-9][0-9]{1,4})[ \-/]?)|((((00|\+)49\()|\(0)[1-9][0-9]{1,4}\)[ \-/]?))[0-9]{1,7}([ \-/]?[0-9]{1,5})?)$/.test(n);break;case"DK":r=/^(\+45|0045|\(45\))?\s?[2-9](\s?\d){7}$/.test(n);break;case"ES":r=/^(?:(?:(?:\+|00)34\D?))?(?:5|6|7|8|9)(?:\d\D?){8}$/.test(n);break;case"FR":r=/^(?:(?:(?:\+|00)33[ ]?(?:\(0\)[ ]?)?)|0){1}[1-9]{1}([ .-]?)(?:\d{2}\1?){3}\d{2}$/.test(n);break;case"GB":r=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/.test(n);break;case"IN":r=/((\+?)((0[ -]+)*|(91 )*)(\d{12}|\d{10}))|\d{5}([- ]*)\d{6}/.test(n);break;case"MA":r=/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/.test(n);break;case"NL":r=/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9])((\s|\s?-\s?)?[0-9])((\s|\s?-\s?)?[0-9])\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]\s?[0-9]$/gm.test(n);break;case"PK":r=/^0?3[0-9]{2}[0-9]{7}$/.test(n);break;case"RO":r=/^(\+4|)?(07[0-8]{1}[0-9]{1}|02[0-9]{2}|03[0-9]{2}){1}?(\s|\.|\-)?([0-9]{3}(\s|\.|\-|)){2}$/g.test(n);break;case"RU":r=/^((8|\+7|007)[\-\.\/ ]?)?([\(\/\.]?\d{3}[\)\/\.]?[\-\.\/ ]?)?[\d\-\.\/ ]{7,10}$/g.test(n);break;case"SK":r=/^(((00)([- ]?)|\+)(421)([- ]?))?((\d{3})([- ]?)){2}(\d{3})$/.test(n);break;case"TH":r=/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/.test(n);break;case"VE":r=/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/.test(n);break;case"US":default:r=/^(?:(1\-?)|(\+1 ?))?\(?\d{3}\)?[\-\.\s]?\d{3}[\-\.\s]?\d{4}$/.test(n)}return{message:b(e.l10n?i.message||e.l10n.phone.country:i.message,e.l10n?e.l10n.phone.countries[a]:a),valid:r}}}},rtn:function(){return{validate:function(t){if(""===t.value)return{valid:!0};if(!/^\d{9}$/.test(t.value))return{valid:!1};for(var e=0,i=0;i<t.value.length;i+=3)e+=3*parseInt(t.value.charAt(i),10)+7*parseInt(t.value.charAt(i+1),10)+parseInt(t.value.charAt(i+2),10);return{valid:0!==e&&e%10==0}}}},sedol:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=t.value.toUpperCase();if(!/^[0-9A-Z]{7}$/.test(e))return{valid:!1};for(var i=[1,3,1,7,3,9,1],n=e.length,a=0,r=0;r<n-1;r++)a+=i[r]*parseInt(e.charAt(r),36);return{valid:"".concat(a=(10-a%10)%10)===e.charAt(n-1)}}}},siren:function(){return{validate:function(t){return{valid:""===t.value||/^\d{9}$/.test(t.value)&&e(t.value)}}}},siret:function(){return{validate:function(t){if(""===t.value)return{valid:!0};for(var e,i=t.value.length,n=0,a=0;a<i;a++)e=parseInt(t.value.charAt(a),10),a%2==0&&(e*=2)>9&&(e-=9),n+=e;return{valid:n%10==0}}}},step:function(){var t=function(t,e){if(0===e)return 1;var i="".concat(t).split("."),n="".concat(e).split("."),a=(1===i.length?0:i[1].length)+(1===n.length?0:n[1].length);return function(t,e){var i,n=Math.pow(10,e),a=t*n;switch(!0){case 0===a:i=0;break;case a>0:i=1;break;case a<0:i=-1}return a%1==.5*i?(Math.floor(a)+(i>0?1:0))/n:Math.round(a)/n}(t-e*Math.floor(t/e),a)};return{validate:function(e){if(""===e.value)return{valid:!0};var i=parseFloat(e.value);if(isNaN(i)||!isFinite(i))return{valid:!1};var n=Object.assign({},{baseValue:0,message:"",step:1},e.options),a=t(i-n.baseValue,n.step);return{message:b(e.l10n?n.message||e.l10n.step.default:n.message,"".concat(n.step)),valid:0===a||a===n.step}}}},uuid:function(){return{validate:function(t){if(""===t.value)return{valid:!0};var e=Object.assign({},{message:""},t.options),i={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},n=e.version?"".concat(e.version):"all";return{message:e.version?b(t.l10n?e.message||t.l10n.uuid.version:e.message,e.version):t.l10n?t.l10n.uuid.default:e.message,valid:null===i[n]||i[n].test(t.value)}}}},vat:function(){var t=["AR","AT","BE","BG","BR","CH","CY","CZ","DE","DK","EE","EL","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LT","LU","LV","MT","NL","NO","PL","PT","RO","RU","RS","SE","SK","SI","VE","ZA"];return{validate:function(n){var a=n.value;if(""===a)return{valid:!0};var r=Object.assign({},{message:""},n.options),o=a.substr(0,2);if(o="function"==typeof r.country?r.country.call(this):r.country,-1===t.indexOf(o))return{valid:!0};var s={meta:{},valid:!0};switch(o.toLowerCase()){case"ar":s=function(t){var e=t.replace("-","");if(/^AR[0-9]{11}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{11}$/.test(e))return{meta:{},valid:!1};for(var i=[5,4,3,2,7,6,5,4,3,2],n=0,a=0;a<10;a++)n+=parseInt(e.charAt(a),10)*i[a];return 11==(n=11-n%11)&&(n=0),{meta:{},valid:"".concat(n)===e.substr(10)}}(a);break;case"at":s=function(t){var e=t;if(/^ATU[0-9]{8}$/.test(e)&&(e=e.substr(2)),!/^U[0-9]{8}$/.test(e))return{meta:{},valid:!1};e=e.substr(1);for(var i=[1,2,1,2,1,2,1],n=0,a=0,r=0;r<7;r++)(a=parseInt(e.charAt(r),10)*i[r])>9&&(a=Math.floor(a/10)+a%10),n+=a;return 10==(n=10-(n+4)%10)&&(n=0),{meta:{},valid:"".concat(n)===e.substr(7,1)}}(a);break;case"be":s=function(t){var e=t;return/^BE[0]?[0-9]{9}$/.test(e)&&(e=e.substr(2)),/^[0]?[0-9]{9}$/.test(e)?(9===e.length&&(e="0".concat(e)),"0"===e.substr(1,1)?{meta:{},valid:!1}:{meta:{},valid:(parseInt(e.substr(0,8),10)+parseInt(e.substr(8,2),10))%97==0}):{meta:{},valid:!1}}(a);break;case"bg":s=function(t){var e=t;if(/^BG[0-9]{9,10}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9,10}$/.test(e))return{meta:{},valid:!1};var i=0,n=0;if(9===e.length){for(n=0;n<8;n++)i+=parseInt(e.charAt(n),10)*(n+1);if(10==(i%=11))for(i=0,n=0;n<8;n++)i+=parseInt(e.charAt(n),10)*(n+3);return{meta:{},valid:"".concat(i%=10)===e.substr(8)}}return{meta:{},valid:function(t){var e=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10);if(i>40?(e+=100,i-=40):i>20&&(e-=100,i-=20),!w(e,i,parseInt(t.substr(4,2),10)))return!1;for(var n=[2,4,8,5,10,9,7,3,6],a=0,r=0;r<9;r++)a+=parseInt(t.charAt(r),10)*n[r];return"".concat(a=a%11%10)===t.substr(9,1)}(e)||function(t){for(var e=[21,19,17,13,11,9,7,3,1],i=0,n=0;n<9;n++)i+=parseInt(t.charAt(n),10)*e[n];return"".concat(i%=10)===t.substr(9,1)}(e)||function(t){for(var e=[4,3,2,7,6,5,4,3,2],i=0,n=0;n<9;n++)i+=parseInt(t.charAt(n),10)*e[n];return 10!=(i=11-i%11)&&(11===i&&(i=0),"".concat(i)===t.substr(9,1))}(e)}}(a);break;case"br":s=function(t){if(""===t)return{meta:{},valid:!0};var e=t.replace(/[^\d]+/g,"");if(""===e||14!==e.length)return{meta:{},valid:!1};if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return{meta:{},valid:!1};var i,n=e.length-2,a=e.substring(0,n),r=e.substring(n),o=0,s=n-7;for(i=n;i>=1;i--)o+=parseInt(a.charAt(n-i),10)*s--,s<2&&(s=9);var l=o%11<2?0:11-o%11;if(l!==parseInt(r.charAt(0),10))return{meta:{},valid:!1};for(n+=1,a=e.substring(0,n),o=0,s=n-7,i=n;i>=1;i--)o+=parseInt(a.charAt(n-i),10)*s--,s<2&&(s=9);return{meta:{},valid:(l=o%11<2?0:11-o%11)===parseInt(r.charAt(1),10)}}(a);break;case"ch":s=function(t){var e=t;if(/^CHE[0-9]{9}(MWST|TVA|IVA|TPV)?$/.test(e)&&(e=e.substr(2)),!/^E[0-9]{9}(MWST|TVA|IVA|TPV)?$/.test(e))return{meta:{},valid:!1};e=e.substr(1);for(var i=[5,4,3,2,7,6,5,4],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return 10==(n=11-n%11)?{meta:{},valid:!1}:(11===n&&(n=0),{meta:{},valid:"".concat(n)===e.substr(8,1)})}(a);break;case"cy":s=function(t){var e=t;if(/^CY[0-5|9][0-9]{7}[A-Z]$/.test(e)&&(e=e.substr(2)),!/^[0-5|9][0-9]{7}[A-Z]$/.test(e))return{meta:{},valid:!1};if("12"===e.substr(0,2))return{meta:{},valid:!1};for(var i=0,n={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},a=0;a<8;a++){var r=parseInt(e.charAt(a),10);a%2==0&&(r=n["".concat(r)]),i+=r}return{meta:{},valid:"".concat("ABCDEFGHIJKLMNOPQRSTUVWXYZ"[i%26])===e.substr(8,1)}}(a);break;case"cz":s=function(t){var e=t;if(/^CZ[0-9]{8,10}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{8,10}$/.test(e))return{meta:{},valid:!1};var i=0,n=0;if(8===e.length){if("9"==="".concat(e.charAt(0)))return{meta:{},valid:!1};for(i=0,n=0;n<7;n++)i+=parseInt(e.charAt(n),10)*(8-n);return 10==(i=11-i%11)&&(i=0),11===i&&(i=1),{meta:{},valid:"".concat(i)===e.substr(7,1)}}if(9===e.length&&"6"==="".concat(e.charAt(0))){for(i=0,n=0;n<7;n++)i+=parseInt(e.charAt(n+1),10)*(8-n);return 10==(i=11-i%11)&&(i=0),11===i&&(i=1),{meta:{},valid:"".concat(i=[8,7,6,5,4,3,2,1,0,9,10][i-1])===e.substr(8,1)}}if(9===e.length||10===e.length){var a=1900+parseInt(e.substr(0,2),10),r=parseInt(e.substr(2,2),10)%50%20,o=parseInt(e.substr(4,2),10);if(9===e.length){if(a>=1980&&(a-=100),a>1953)return{meta:{},valid:!1}}else a<1954&&(a+=100);if(!w(a,r,o))return{meta:{},valid:!1};if(10===e.length){var s=parseInt(e.substr(0,9),10)%11;return a<1985&&(s%=10),{meta:{},valid:"".concat(s)===e.substr(9,1)}}return{meta:{},valid:!0}}return{meta:{},valid:!1}}(a);break;case"de":s=function(t){var e=t;return/^DE[0-9]{9}$/.test(e)&&(e=e.substr(2)),/^[0-9]{9}$/.test(e)?{meta:{},valid:i(e)}:{meta:{},valid:!1}}(a);break;case"dk":s=function(t){var e=t;if(/^DK[0-9]{8}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{8}$/.test(e))return{meta:{},valid:!1};for(var i=0,n=[2,7,6,5,4,3,2,1],a=0;a<8;a++)i+=parseInt(e.charAt(a),10)*n[a];return{meta:{},valid:i%11==0}}(a);break;case"ee":s=function(t){var e=t;if(/^EE[0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9}$/.test(e))return{meta:{},valid:!1};for(var i=0,n=[3,7,1,3,7,1,3,7,1],a=0;a<9;a++)i+=parseInt(e.charAt(a),10)*n[a];return{meta:{},valid:i%10==0}}(a);break;case"el":s=C(a);break;case"es":s=function(t){var e=t;if(/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(e)&&(e=e.substr(2)),!/^[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(e))return{meta:{},valid:!1};var i=e.charAt(0);return/^[0-9]$/.test(i)?{meta:{type:"DNI"},valid:function(t){var e=parseInt(t.substr(0,8),10);return"".concat("TRWAGMYFPDXBNJZSQVHLCKE"[e%23])===t.substr(8,1)}(e)}:/^[XYZ]$/.test(i)?{meta:{type:"NIE"},valid:function(t){var e=["XYZ".indexOf(t.charAt(0)),t.substr(1)].join(""),i="TRWAGMYFPDXBNJZSQVHLCKE"[parseInt(e,10)%23];return"".concat(i)===t.substr(8,1)}(e)}:{meta:{type:"CIF"},valid:function(t){var e,i=t.charAt(0);if(-1!=="KLM".indexOf(i))return e=parseInt(t.substr(1,8),10),"".concat(e="TRWAGMYFPDXBNJZSQVHLCKE"[e%23])===t.substr(8,1);if(-1!=="ABCDEFGHJNPQRSUVW".indexOf(i)){for(var n=[2,1,2,1,2,1,2],a=0,r=0,o=0;o<7;o++)(r=parseInt(t.charAt(o+1),10)*n[o])>9&&(r=Math.floor(r/10)+r%10),a+=r;return 10==(a=10-a%10)&&(a=0),"".concat(a)===t.substr(8,1)||"JABCDEFGHI"[a]===t.substr(8,1)}return!1}(e)}}(a);break;case"fi":s=function(t){var e=t;if(/^FI[0-9]{8}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{8}$/.test(e))return{meta:{},valid:!1};for(var i=[7,9,10,5,8,4,2,1],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return{meta:{},valid:n%11==0}}(a);break;case"fr":s=function(t){var i=t;if(/^FR[0-9A-Z]{2}[0-9]{9}$/.test(i)&&(i=i.substr(2)),!/^[0-9A-Z]{2}[0-9]{9}$/.test(i))return{meta:{},valid:!1};if(!e(i.substr(2)))return{meta:{},valid:!1};if(/^[0-9]{2}$/.test(i.substr(0,2)))return{meta:{},valid:i.substr(0,2)==="".concat(parseInt(i.substr(2)+"12",10)%97)};var n,a="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return n=/^[0-9]$/.test(i.charAt(0))?24*a.indexOf(i.charAt(0))+a.indexOf(i.charAt(1))-10:34*a.indexOf(i.charAt(0))+a.indexOf(i.charAt(1))-100,{meta:{},valid:(parseInt(i.substr(2),10)+1+Math.floor(n/11))%11==n%11}}(a);break;case"gb":s=function(t){var e=t;if((/^GB[0-9]{9}$/.test(e)||/^GB[0-9]{12}$/.test(e)||/^GBGD[0-9]{3}$/.test(e)||/^GBHA[0-9]{3}$/.test(e)||/^GB(GD|HA)8888[0-9]{5}$/.test(e))&&(e=e.substr(2)),!(/^[0-9]{9}$/.test(e)||/^[0-9]{12}$/.test(e)||/^GD[0-9]{3}$/.test(e)||/^HA[0-9]{3}$/.test(e)||/^(GD|HA)8888[0-9]{5}$/.test(e)))return{meta:{},valid:!1};var i=e.length;if(5===i){var n=e.substr(0,2),a=parseInt(e.substr(2),10);return{meta:{},valid:"GD"===n&&a<500||"HA"===n&&a>=500}}if(11===i&&("GD8888"===e.substr(0,6)||"HA8888"===e.substr(0,6)))return"GD"===e.substr(0,2)&&parseInt(e.substr(6,3),10)>=500||"HA"===e.substr(0,2)&&parseInt(e.substr(6,3),10)<500?{meta:{},valid:!1}:{meta:{},valid:parseInt(e.substr(6,3),10)%97===parseInt(e.substr(9,2),10)};if(9===i||12===i){for(var r=[8,7,6,5,4,3,2,10,1],o=0,s=0;s<9;s++)o+=parseInt(e.charAt(s),10)*r[s];return o%=97,{meta:{},valid:parseInt(e.substr(0,3),10)>=100?0===o||42===o||55===o:0===o}}return{meta:{},valid:!0}}(a);break;case"gr":s=C(a);break;case"hr":s=function(t){var e=t;return/^HR[0-9]{11}$/.test(e)&&(e=e.substr(2)),/^[0-9]{11}$/.test(e)?{meta:{},valid:i(e)}:{meta:{},valid:!1}}(a);break;case"hu":s=function(t){var e=t;if(/^HU[0-9]{8}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{8}$/.test(e))return{meta:{},valid:!1};for(var i=[9,7,3,1,9,7,3,1],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return{meta:{},valid:n%10==0}}(a);break;case"ie":s=function(t){var e=t;if(/^IE[0-9][0-9A-Z\*\+][0-9]{5}[A-Z]{1,2}$/.test(e)&&(e=e.substr(2)),!/^[0-9][0-9A-Z\*\+][0-9]{5}[A-Z]{1,2}$/.test(e))return{meta:{},valid:!1};var i=function(t){for(var e=t;e.length<7;)e="0".concat(e);for(var i="WABCDEFGHIJKLMNOPQRSTUV",n=0,a=0;a<7;a++)n+=parseInt(e.charAt(a),10)*(8-a);return n+=9*i.indexOf(e.substr(7)),i[n%23]};return/^[0-9]+$/.test(e.substr(0,7))?{meta:{},valid:e.charAt(7)===i("".concat(e.substr(0,7)).concat(e.substr(8)))}:-1!=="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(e.charAt(1))?{meta:{},valid:e.charAt(7)===i("".concat(e.substr(2,5)).concat(e.substr(0,1)))}:{meta:{},valid:!0}}(a);break;case"is":s=function(t){var e=t;return/^IS[0-9]{5,6}$/.test(e)&&(e=e.substr(2)),{meta:{},valid:/^[0-9]{5,6}$/.test(e)}}(a);break;case"it":s=function(t){var i=t;if(/^IT[0-9]{11}$/.test(i)&&(i=i.substr(2)),!/^[0-9]{11}$/.test(i))return{meta:{},valid:!1};if(0===parseInt(i.substr(0,7),10))return{meta:{},valid:!1};var n=parseInt(i.substr(7,3),10);return n<1||n>201&&999!==n&&888!==n?{meta:{},valid:!1}:{meta:{},valid:e(i)}}(a);break;case"lt":s=function(t){var e=t;if(/^LT([0-9]{7}1[0-9]|[0-9]{10}1[0-9])$/.test(e)&&(e=e.substr(2)),!/^([0-9]{7}1[0-9]|[0-9]{10}1[0-9])$/.test(e))return{meta:{},valid:!1};var i,n=e.length,a=0;for(i=0;i<n-1;i++)a+=parseInt(e.charAt(i),10)*(1+i%9);var r=a%11;if(10===r)for(a=0,i=0;i<n-1;i++)a+=parseInt(e.charAt(i),10)*(1+(i+2)%9);return{meta:{},valid:"".concat(r=r%11%10)===e.charAt(n-1)}}(a);break;case"lu":s=function(t){var e=t;return/^LU[0-9]{8}$/.test(e)&&(e=e.substr(2)),/^[0-9]{8}$/.test(e)?{meta:{},valid:"".concat(parseInt(e.substr(0,6),10)%89)===e.substr(6,2)}:{meta:{},valid:!1}}(a);break;case"lv":s=function(t){var e=t;if(/^LV[0-9]{11}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{11}$/.test(e))return{meta:{},valid:!1};var i,n=parseInt(e.charAt(0),10),a=e.length,r=0,o=[];if(n>3){for(r=0,o=[9,1,4,8,3,10,2,5,7,6,1],i=0;i<a;i++)r+=parseInt(e.charAt(i),10)*o[i];return{meta:{},valid:3==(r%=11)}}var s=parseInt(e.substr(0,2),10),l=parseInt(e.substr(2,2),10),c=parseInt(e.substr(4,2),10);if(!w(c=c+1800+100*parseInt(e.charAt(6),10),l,s))return{meta:{},valid:!1};for(r=0,o=[10,5,8,4,2,1,6,3,7,9],i=0;i<a-1;i++)r+=parseInt(e.charAt(i),10)*o[i];return{meta:{},valid:"".concat(r=(r+1)%11%10)===e.charAt(a-1)}}(a);break;case"mt":s=function(t){var e=t;if(/^MT[0-9]{8}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{8}$/.test(e))return{meta:{},valid:!1};for(var i=[3,4,6,7,8,9,10,1],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return{meta:{},valid:n%37==0}}(a);break;case"nl":s=function(t){var e=t;return/^NL[0-9]{9}B[0-9]{2}$/.test(e)&&(e=e.substr(2)),/^[0-9]{9}B[0-9]{2}$/.test(e)?{meta:{},valid:T(e.substr(0,9)).valid||A("NL".concat(e))}:{meta:{},valid:!1}}(a);break;case"no":s=function(t){var e=t;if(/^NO[0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9}$/.test(e))return{meta:{},valid:!1};for(var i=[3,2,7,6,5,4,3,2],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return 11==(n=11-n%11)&&(n=0),{meta:{},valid:"".concat(n)===e.substr(8,1)}}(a);break;case"pl":s=function(t){var e=t;if(/^PL[0-9]{10}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{10}$/.test(e))return{meta:{},valid:!1};for(var i=[6,5,7,2,3,4,5,6,7,-1],n=0,a=0;a<10;a++)n+=parseInt(e.charAt(a),10)*i[a];return{meta:{},valid:n%11==0}}(a);break;case"pt":s=function(t){var e=t;if(/^PT[0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9}$/.test(e))return{meta:{},valid:!1};for(var i=[9,8,7,6,5,4,3,2],n=0,a=0;a<8;a++)n+=parseInt(e.charAt(a),10)*i[a];return(n=11-n%11)>9&&(n=0),{meta:{},valid:"".concat(n)===e.substr(8,1)}}(a);break;case"ro":s=function(t){var e=t;if(/^RO[1-9][0-9]{1,9}$/.test(e)&&(e=e.substr(2)),!/^[1-9][0-9]{1,9}$/.test(e))return{meta:{},valid:!1};for(var i=e.length,n=[7,5,3,2,1,7,5,3,2].slice(10-i),a=0,r=0;r<i-1;r++)a+=parseInt(e.charAt(r),10)*n[r];return{meta:{},valid:"".concat(a=10*a%11%10)===e.substr(i-1,1)}}(a);break;case"rs":s=function(t){var e=t;if(/^RS[0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[0-9]{9}$/.test(e))return{meta:{},valid:!1};for(var i=10,n=0,a=0;a<8;a++)0==(n=(parseInt(e.charAt(a),10)+i)%10)&&(n=10),i=2*n%11;return{meta:{},valid:(i+parseInt(e.substr(8,1),10))%10==1}}(a);break;case"ru":s=function(t){var e=t;if(/^RU([0-9]{10}|[0-9]{12})$/.test(e)&&(e=e.substr(2)),!/^([0-9]{10}|[0-9]{12})$/.test(e))return{meta:{},valid:!1};var i=0;if(10===e.length){var n=[2,4,10,3,5,9,4,6,8,0],a=0;for(i=0;i<10;i++)a+=parseInt(e.charAt(i),10)*n[i];return(a%=11)>9&&(a%=10),{meta:{},valid:"".concat(a)===e.substr(9,1)}}if(12===e.length){var r=[7,2,4,10,3,5,9,4,6,8,0],o=[3,7,2,4,10,3,5,9,4,6,8,0],s=0,l=0;for(i=0;i<11;i++)s+=parseInt(e.charAt(i),10)*r[i],l+=parseInt(e.charAt(i),10)*o[i];return(s%=11)>9&&(s%=10),(l%=11)>9&&(l%=10),{meta:{},valid:"".concat(s)===e.substr(10,1)&&"".concat(l)===e.substr(11,1)}}return{meta:{},valid:!0}}(a);break;case"se":s=function(t){var i=t;return/^SE[0-9]{10}01$/.test(i)&&(i=i.substr(2)),/^[0-9]{10}01$/.test(i)?{meta:{},valid:e(i=i.substr(0,10))}:{meta:{},valid:!1}}(a);break;case"si":s=function(t){var e=t.match(/^(SI)?([1-9][0-9]{7})$/);if(!e)return{meta:{},valid:!1};for(var i=e[1]?t.substr(2):t,n=[8,7,6,5,4,3,2],a=0,r=0;r<7;r++)a+=parseInt(i.charAt(r),10)*n[r];return 10==(a=11-a%11)&&(a=0),{meta:{},valid:"".concat(a)===i.substr(7,1)}}(a);break;case"sk":s=function(t){var e=t;return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(e)&&(e=e.substr(2)),/^[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(e)?{meta:{},valid:parseInt(e,10)%11==0}:{meta:{},valid:!1}}(a);break;case"ve":s=function(t){var e=t;if(/^VE[VEJPG][0-9]{9}$/.test(e)&&(e=e.substr(2)),!/^[VEJPG][0-9]{9}$/.test(e))return{meta:{},valid:!1};for(var i=[3,2,7,6,5,4,3,2],n={E:8,G:20,J:12,P:16,V:4}[e.charAt(0)],a=0;a<8;a++)n+=parseInt(e.charAt(a+1),10)*i[a];return 11!=(n=11-n%11)&&10!==n||(n=0),{meta:{},valid:"".concat(n)===e.substr(9,1)}}(a);break;case"za":s=function(t){var e=t;return/^ZA4[0-9]{9}$/.test(e)&&(e=e.substr(2)),{meta:{},valid:/^4[0-9]{9}$/.test(e)}}(a)}var l=b(n.l10n?r.message||n.l10n.vat.country:r.message,n.l10n?n.l10n.vat.countries[o.toUpperCase()]:o.toUpperCase());return Object.assign({},{message:l},s)}}},vin:function(){return{validate:function(t){if(""===t.value)return{valid:!0};if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(t.value))return{valid:!1};for(var e=t.value.toUpperCase(),i={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},n=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],a=e.length,r=0,o=0;o<a;o++)r+=i["".concat(e.charAt(o))]*n[o];var s="".concat(r%11);return"10"===s&&(s="X"),{valid:s===e.charAt(8)}}}},zipCode:function(){var t=["AT","BG","BR","CA","CH","CZ","DE","DK","ES","FR","GB","IE","IN","IT","MA","NL","PL","PT","RO","RU","SE","SG","SK","US"];return{validate:function(e){var i=Object.assign({},e.options);if(""===e.value||!i.country)return{valid:!0};var n=e.value.substr(0,2);if(!(n="function"==typeof i.country?i.country.call(this):i.country)||-1===t.indexOf(n.toUpperCase()))return{valid:!0};var a=!1;switch(n=n.toUpperCase()){case"AT":a=/^([1-9]{1})(\d{3})$/.test(e.value);break;case"BG":a=/^([1-9]{1}[0-9]{3})$/.test(e.value);break;case"BR":a=/^(\d{2})([\.]?)(\d{3})([\-]?)(\d{3})$/.test(e.value);break;case"CA":a=/^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(e.value);break;case"CH":a=/^([1-9]{1})(\d{3})$/.test(e.value);break;case"CZ":a=/^(\d{3})([ ]?)(\d{2})$/.test(e.value);break;case"DE":a=/^(?!01000|99999)(0[1-9]\d{3}|[1-9]\d{4})$/.test(e.value);break;case"DK":a=/^(DK(-|\s)?)?\d{4}$/i.test(e.value);break;case"ES":a=/^(?:0[1-9]|[1-4][0-9]|5[0-2])\d{3}$/.test(e.value);break;case"FR":a=/^[0-9]{5}$/i.test(e.value);break;case"GB":a=function(t){for(var e="[ABCDEFGHIJKLMNOPRSTUWYZ]",i="[ABCDEFGHKLMNOPQRSTUVWXY]",n="[ABDEFGHJLNPQRSTUWXYZ]",a=0,r=[new RegExp("^(".concat(e,"{1}").concat(i,"?[0-9]{1,2})(\\s*)([0-9]{1}").concat(n,"{2})$"),"i"),new RegExp("^(".concat(e,"{1}[0-9]{1}").concat("[ABCDEFGHJKPMNRSTUVWXY]","{1})(\\s*)([0-9]{1}").concat(n,"{2})$"),"i"),new RegExp("^(".concat(e,"{1}").concat(i,"{1}?[0-9]{1}").concat("[ABEHMNPRVWXY]","{1})(\\s*)([0-9]{1}").concat(n,"{2})$"),"i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4})(\s*)(1ZZ)$/i,/^(AI-2640)$/i];a<r.length;a++)if(r[a].test(t))return!0;return!1}(e.value);break;case"IN":a=/^\d{3}\s?\d{3}$/.test(e.value);break;case"IE":a=/^(D6W|[ACDEFHKNPRTVWXY]\d{2})\s[0-9ACDEFHKNPRTVWXY]{4}$/.test(e.value);break;case"IT":a=/^(I-|IT-)?\d{5}$/i.test(e.value);break;case"MA":a=/^[1-9][0-9]{4}$/i.test(e.value);break;case"NL":a=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(e.value);break;case"PL":a=/^[0-9]{2}\-[0-9]{3}$/.test(e.value);break;case"PT":a=/^[1-9]\d{3}-\d{3}$/.test(e.value);break;case"RO":a=/^(0[1-8]{1}|[1-9]{1}[0-5]{1})?[0-9]{4}$/i.test(e.value);break;case"RU":a=/^[0-9]{6}$/i.test(e.value);break;case"SE":a=/^(S-)?\d{3}\s?\d{2}$/i.test(e.value);break;case"SG":a=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(e.value);break;case"SK":a=/^(\d{3})([ ]?)(\d{2})$/.test(e.value);break;case"US":default:a=/^\d{4,5}([\-]?\d{4})?$/.test(e.value)}return{message:b(e.l10n?i.message||e.l10n.zipCode.country:i.message,e.l10n?e.l10n.zipCode.countries[n]:n),valid:a}}}}},E=function(){function t(e,i){o(this,t),this.elements={},this.ee={fns:{},clear:function(){this.fns={}},emit:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(this.fns[t]||[]).map((function(t){return t.apply(t,i)}))},off:function(t,e){if(this.fns[t]){var i=this.fns[t].indexOf(e);i>=0&&this.fns[t].splice(i,1)}},on:function(t,e){(this.fns[t]=this.fns[t]||[]).push(e)}},this.filter={filters:{},add:function(t,e){(this.filters[t]=this.filters[t]||[]).push(e)},clear:function(){this.filters={}},execute:function(t,e,i){if(!this.filters[t]||!this.filters[t].length)return e;for(var n=e,a=this.filters[t],r=a.length,o=0;o<r;o++)n=a[o].apply(n,i);return n},remove:function(t,e){this.filters[t]&&(this.filters[t]=this.filters[t].filter((function(t){return t!==e})))}},this.plugins={},this.results=new Map,this.validators={},this.form=e,this.fields=i}return l(t,[{key:"on",value:function(t,e){return this.ee.on(t,e),this}},{key:"off",value:function(t,e){return this.ee.off(t,e),this}},{key:"emit",value:function(t){for(var e,i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return(e=this.ee).emit.apply(e,[t].concat(n)),this}},{key:"registerPlugin",value:function(t,e){if(this.plugins[t])throw new Error("The plguin ".concat(t," is registered"));return e.setCore(this),e.install(),this.plugins[t]=e,this}},{key:"deregisterPlugin",value:function(t){var e=this.plugins[t];return e&&e.uninstall(),delete this.plugins[t],this}},{key:"registerValidator",value:function(t,e){if(this.validators[t])throw new Error("The validator ".concat(t," is registered"));return this.validators[t]=e,this}},{key:"registerFilter",value:function(t,e){return this.filter.add(t,e),this}},{key:"deregisterFilter",value:function(t,e){return this.filter.remove(t,e),this}},{key:"executeFilter",value:function(t,e,i){return this.filter.execute(t,e,i)}},{key:"addField",value:function(t,e){var i=Object.assign({},{selector:"",validators:{}},e);return this.fields[t]=this.fields[t]?{selector:i.selector||this.fields[t].selector,validators:Object.assign({},this.fields[t].validators,i.validators)}:i,this.elements[t]=this.queryElements(t),this.emit("core.field.added",{elements:this.elements[t],field:t,options:this.fields[t]}),this}},{key:"removeField",value:function(t){if(!this.fields[t])throw new Error("The field ".concat(t," validators are not defined. Please ensure the field is added first"));var e=this.elements[t],i=this.fields[t];return delete this.elements[t],delete this.fields[t],this.emit("core.field.removed",{elements:e,field:t,options:i}),this}},{key:"validate",value:function(){var t=this;return this.emit("core.form.validating"),this.filter.execute("validate-pre",Promise.resolve(),[]).then((function(){return Promise.all(Object.keys(t.fields).map((function(e){return t.validateField(e)}))).then((function(e){switch(!0){case-1!==e.indexOf("Invalid"):return t.emit("core.form.invalid"),Promise.resolve("Invalid");case-1!==e.indexOf("NotValidated"):return t.emit("core.form.notvalidated"),Promise.resolve("NotValidated");default:return t.emit("core.form.valid"),Promise.resolve("Valid")}}))}))}},{key:"validateField",value:function(t){var e=this,i=this.results.get(t);if("Valid"===i||"Invalid"===i)return Promise.resolve(i);this.emit("core.field.validating",t);var n=this.elements[t];if(0===n.length)return this.emit("core.field.valid",t),Promise.resolve("Valid");var a=n[0].getAttribute("type");return"radio"===a||"checkbox"===a||1===n.length?this.validateElement(t,n[0]):Promise.all(n.map((function(i){return e.validateElement(t,i)}))).then((function(i){switch(!0){case-1!==i.indexOf("Invalid"):return e.emit("core.field.invalid",t),e.results.set(t,"Invalid"),Promise.resolve("Invalid");case-1!==i.indexOf("NotValidated"):return e.emit("core.field.notvalidated",t),e.results.delete(t),Promise.resolve("NotValidated");default:return e.emit("core.field.valid",t),e.results.set(t,"Valid"),Promise.resolve("Valid")}}))}},{key:"validateElement",value:function(t,e){var i=this;this.results.delete(t);var n=this.elements[t];if(this.filter.execute("element-ignored",!1,[t,e,n]))return this.emit("core.element.ignored",{element:e,elements:n,field:t}),Promise.resolve("Ignored");var a=this.fields[t].validators;this.emit("core.element.validating",{element:e,elements:n,field:t});var r=Object.keys(a).map((function(n){return function(){return i.executeValidator(t,e,n,a[n])}}));return this.waterfall(r).then((function(a){var r=-1===a.indexOf("Invalid");i.emit("core.element.validated",{element:e,elements:n,field:t,valid:r});var o=e.getAttribute("type");return"radio"!==o&&"checkbox"!==o&&1!==n.length||i.emit(r?"core.field.valid":"core.field.invalid",t),Promise.resolve(r?"Valid":"Invalid")})).catch((function(a){return i.emit("core.element.notvalidated",{element:e,elements:n,field:t}),Promise.resolve(a)}))}},{key:"executeValidator",value:function(t,e,i,n){var a=this,r=this.elements[t],o=this.filter.execute("validator-name",i,[i,t]);if(n.message=this.filter.execute("validator-message",n.message,[this.locale,t,o]),!this.validators[o]||!1===n.enabled)return this.emit("core.validator.validated",{element:e,elements:r,field:t,result:this.normalizeResult(t,o,{valid:!0}),validator:o}),Promise.resolve("Valid");var s=this.validators[o],l=this.getElementValue(t,e,o);if(!this.filter.execute("field-should-validate",!0,[t,e,l,i]))return this.emit("core.validator.notvalidated",{element:e,elements:r,field:t,validator:i}),Promise.resolve("NotValidated");this.emit("core.validator.validating",{element:e,elements:r,field:t,validator:i});var c=s().validate({element:e,elements:r,field:t,l10n:this.localization,options:n,value:l});if("function"==typeof c.then)return c.then((function(n){var o=a.normalizeResult(t,i,n);return a.emit("core.validator.validated",{element:e,elements:r,field:t,result:o,validator:i}),o.valid?"Valid":"Invalid"}));var u=this.normalizeResult(t,i,c);return this.emit("core.validator.validated",{element:e,elements:r,field:t,result:u,validator:i}),Promise.resolve(u.valid?"Valid":"Invalid")}},{key:"getElementValue",value:function(t,e,i){var n=y(this.form,0,e,this.elements[t]);return this.filter.execute("field-value",n,[n,t,e,i])}},{key:"getElements",value:function(t){return this.elements[t]}},{key:"getFields",value:function(){return this.fields}},{key:"getFormElement",value:function(){return this.form}},{key:"getLocale",value:function(){return this.locale}},{key:"getPlugin",value:function(t){return this.plugins[t]}},{key:"updateFieldStatus",value:function(t,e,i){var n=this,a=this.elements[t],r=a[0].getAttribute("type");if(("radio"===r||"checkbox"===r?[a[0]]:a).forEach((function(a){return n.updateElementStatus(t,a,e,i)})),!i)switch(e){case"NotValidated":this.emit("core.field.notvalidated",t),this.results.delete(t);break;case"Validating":this.emit("core.field.validating",t),this.results.delete(t);break;case"Valid":this.emit("core.field.valid",t),this.results.set(t,"Valid");break;case"Invalid":this.emit("core.field.invalid",t),this.results.set(t,"Invalid")}return this}},{key:"updateElementStatus",value:function(t,e,i,n){var a=this,r=this.elements[t],o=this.fields[t].validators,s=n?[n]:Object.keys(o);switch(i){case"NotValidated":s.forEach((function(i){return a.emit("core.validator.notvalidated",{element:e,elements:r,field:t,validator:i})})),this.emit("core.element.notvalidated",{element:e,elements:r,field:t});break;case"Validating":s.forEach((function(i){return a.emit("core.validator.validating",{element:e,elements:r,field:t,validator:i})})),this.emit("core.element.validating",{element:e,elements:r,field:t});break;case"Valid":s.forEach((function(i){return a.emit("core.validator.validated",{element:e,field:t,result:{message:o[i].message,valid:!0},validator:i})})),this.emit("core.element.validated",{element:e,elements:r,field:t,valid:!0});break;case"Invalid":s.forEach((function(i){return a.emit("core.validator.validated",{element:e,field:t,result:{message:o[i].message,valid:!1},validator:i})})),this.emit("core.element.validated",{element:e,elements:r,field:t,valid:!1})}return this}},{key:"resetForm",value:function(t){var e=this;return Object.keys(this.fields).forEach((function(i){return e.resetField(i,t)})),this.emit("core.form.reset",{reset:t}),this}},{key:"resetField",value:function(t,e){if(e){var i=this.elements[t],n=i[0].getAttribute("type");i.forEach((function(t){"radio"===n||"checkbox"===n?(t.removeAttribute("selected"),t.removeAttribute("checked"),t.checked=!1):(t.setAttribute("value",""),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value=""))}))}return this.updateFieldStatus(t,"NotValidated"),this.emit("core.field.reset",{field:t,reset:e}),this}},{key:"revalidateField",value:function(t){return this.updateFieldStatus(t,"NotValidated"),this.validateField(t)}},{key:"disableValidator",value:function(t,e){return this.toggleValidator(!1,t,e)}},{key:"enableValidator",value:function(t,e){return this.toggleValidator(!0,t,e)}},{key:"updateValidatorOption",value:function(t,e,i,n){return this.fields[t]&&this.fields[t].validators&&this.fields[t].validators[e]&&(this.fields[t].validators[e][i]=n),this}},{key:"setFieldOptions",value:function(t,e){return this.fields[t]=e,this}},{key:"destroy",value:function(){var t=this;return Object.keys(this.plugins).forEach((function(e){return t.plugins[e].uninstall()})),this.ee.clear(),this.filter.clear(),this.results.clear(),this.plugins={},this}},{key:"setLocale",value:function(t,e){return this.locale=t,this.localization=e,this}},{key:"waterfall",value:function(t){return t.reduce((function(t,e,i,n){return t.then((function(t){return e().then((function(e){return t.push(e),t}))}))}),Promise.resolve([]))}},{key:"queryElements",value:function(t){var e=this.fields[t].selector?"#"===this.fields[t].selector.charAt(0)?'[id="'.concat(this.fields[t].selector.substring(1),'"]'):this.fields[t].selector:'[name="'.concat(t,'"]');return[].slice.call(this.form.querySelectorAll(e))}},{key:"normalizeResult",value:function(t,e,i){var n=this.fields[t].validators[e];return Object.assign({},i,{message:i.message||(n?n.message:"")||(this.localization&&this.localization[e]&&this.localization[e].default?this.localization[e].default:"")||"The field ".concat(t," is not valid")})}},{key:"toggleValidator",value:function(t,e,i){var n=this,a=this.fields[e].validators;return i&&a&&a[i]?this.fields[e].validators[i].enabled=t:i||Object.keys(a).forEach((function(i){return n.fields[e].validators[i].enabled=t})),this.updateFieldStatus(e,"NotValidated",i)}}]),t}();var O=function(){function t(e){o(this,t),this.opts=e}return l(t,[{key:"setCore",value:function(t){return this.core=t,this}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),t}(),P={getFieldValue:y},Y=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).opts=t||{},n.validatorNameFilter=n.getValidatorName.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.registerFilter("validator-name",this.validatorNameFilter)}},{key:"uninstall",value:function(){this.core.deregisterFilter("validator-name",this.validatorNameFilter)}},{key:"getValidatorName",value:function(t,e){return this.opts[t]||t}}]),i}(O),I=function(t){u(i,t);var e=m(i);function i(){var t;return o(this,i),(t=e.call(this,{})).elementValidatedHandler=t.onElementValidated.bind(f(t)),t.fieldValidHandler=t.onFieldValid.bind(f(t)),t.fieldInvalidHandler=t.onFieldInvalid.bind(f(t)),t.messageDisplayedHandler=t.onMessageDisplayed.bind(f(t)),t}return l(i,[{key:"install",value:function(){this.core.on("core.field.valid",this.fieldValidHandler).on("core.field.invalid",this.fieldInvalidHandler).on("core.element.validated",this.elementValidatedHandler).on("plugins.message.displayed",this.messageDisplayedHandler)}},{key:"uninstall",value:function(){this.core.off("core.field.valid",this.fieldValidHandler).off("core.field.invalid",this.fieldInvalidHandler).off("core.element.validated",this.elementValidatedHandler).off("plugins.message.displayed",this.messageDisplayedHandler)}},{key:"onElementValidated",value:function(t){t.valid&&(t.element.setAttribute("aria-invalid","false"),t.element.removeAttribute("aria-describedby"))}},{key:"onFieldValid",value:function(t){var e=this.core.getElements(t);e&&e.forEach((function(t){t.setAttribute("aria-invalid","false"),t.removeAttribute("aria-describedby")}))}},{key:"onFieldInvalid",value:function(t){var e=this.core.getElements(t);e&&e.forEach((function(t){return t.setAttribute("aria-invalid","true")}))}},{key:"onMessageDisplayed",value:function(t){t.messageElement.setAttribute("role","alert"),t.messageElement.setAttribute("aria-hidden","false");var e=this.core.getElements(t.field),i=e.indexOf(t.element),n="js-fv-".concat(t.field,"-").concat(i,"-").concat(Date.now(),"-message");t.messageElement.setAttribute("id",n),t.element.setAttribute("aria-describedby",n);var a=t.element.getAttribute("type");"radio"!==a&&"checkbox"!==a||e.forEach((function(t){return t.setAttribute("aria-describedby",n)}))}}]),i}(O),N=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).addedFields=new Map,n.opts=Object.assign({},{html5Input:!1,pluginPrefix:"data-fvp-",prefix:"data-fv-"},t),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){var t=this;this.parsePlugins();var e=this.parseOptions();Object.keys(e).forEach((function(i){t.addedFields.has(i)||t.addedFields.set(i,!0),t.core.addField(i,e[i])})),this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)}},{key:"uninstall",value:function(){this.addedFields.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"onFieldAdded",value:function(t){var e=this,i=t.elements;i&&0!==i.length&&!this.addedFields.has(t.field)&&(this.addedFields.set(t.field,!0),i.forEach((function(i){var n=e.parseElement(i);if(!e.isEmptyOption(n)){var a={selector:t.options.selector,validators:Object.assign({},t.options.validators||{},n.validators)};e.core.setFieldOptions(t.field,a)}})))}},{key:"onFieldRemoved",value:function(t){t.field&&this.addedFields.has(t.field)&&this.addedFields.delete(t.field)}},{key:"parseOptions",value:function(){var t=this,e=this.opts.prefix,i={},n=this.core.getFields(),a=this.core.getFormElement();return[].slice.call(a.querySelectorAll("[name], [".concat(e,"field]"))).forEach((function(n){var a=t.parseElement(n);if(!t.isEmptyOption(a)){var r=n.getAttribute("name")||n.getAttribute("".concat(e,"field"));i[r]=Object.assign({},i[r],a)}})),Object.keys(i).forEach((function(t){Object.keys(i[t].validators).forEach((function(e){i[t].validators[e].enabled=i[t].validators[e].enabled||!1,n[t]&&n[t].validators&&n[t].validators[e]&&Object.assign(i[t].validators[e],n[t].validators[e])}))})),Object.assign({},n,i)}},{key:"createPluginInstance",value:function(t,e){for(var i=t.split("."),n=window||this,a=0,r=i.length;a<r;a++)n=n[i[a]];if("function"!=typeof n)throw new Error("the plugin ".concat(t," doesn't exist"));return new n(e)}},{key:"parsePlugins",value:function(){for(var t=this,e=this.core.getFormElement(),i=new RegExp("^".concat(this.opts.pluginPrefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),n=e.attributes.length,a={},r=0;r<n;r++){var o=e.attributes[r].name,s=e.attributes[r].value,l=i.exec(o);if(l&&4===l.length){var u=this.toCamelCase(l[1]);a[u]=Object.assign({},l[3]?c({},this.toCamelCase(l[3]),s):{enabled:""===s||"true"===s},a[u])}}Object.keys(a).forEach((function(e){var i=a[e],n=i.enabled,r=i.class;if(n&&r){delete i.enabled,delete i.clazz;var o=t.createPluginInstance(r,i);t.core.registerPlugin(e,o)}}))}},{key:"isEmptyOption",value:function(t){var e=t.validators;return 0===Object.keys(e).length&&e.constructor===Object}},{key:"parseElement",value:function(t){for(var e=new RegExp("^".concat(this.opts.prefix,"([a-z0-9-]+)(___)*([a-z0-9-]+)*$")),i=t.attributes.length,n={},a=t.getAttribute("type"),r=0;r<i;r++){var o=t.attributes[r].name,s=t.attributes[r].value;if(this.opts.html5Input)switch(!0){case"minlength"===o:n.stringLength=Object.assign({},{enabled:!0,min:parseInt(s,10)},n.stringLength);break;case"maxlength"===o:n.stringLength=Object.assign({},{enabled:!0,max:parseInt(s,10)},n.stringLength);break;case"pattern"===o:n.regexp=Object.assign({},{enabled:!0,regexp:s},n.regexp);break;case"required"===o:n.notEmpty=Object.assign({},{enabled:!0},n.notEmpty);break;case"type"===o&&"color"===s:n.color=Object.assign({},{enabled:!0,type:"hex"},n.color);break;case"type"===o&&"email"===s:n.emailAddress=Object.assign({},{enabled:!0},n.emailAddress);break;case"type"===o&&"url"===s:n.uri=Object.assign({},{enabled:!0},n.uri);break;case"type"===o&&"range"===s:n.between=Object.assign({},{enabled:!0,max:parseFloat(t.getAttribute("max")),min:parseFloat(t.getAttribute("min"))},n.between);break;case"min"===o&&"date"!==a&&"range"!==a:n.greaterThan=Object.assign({},{enabled:!0,min:parseFloat(s)},n.greaterThan);break;case"max"===o&&"date"!==a&&"range"!==a:n.lessThan=Object.assign({},{enabled:!0,max:parseFloat(s)},n.lessThan)}var l=e.exec(o);if(l&&4===l.length){var u=this.toCamelCase(l[1]);n[u]=Object.assign({},l[3]?c({},this.toCamelCase(l[3]),this.normalizeValue(s)):{enabled:""===s||"true"===s},n[u])}}return{validators:n}}},{key:"normalizeValue",value:function(t){return"true"===t||"false"!==t&&t}},{key:"toUpperCase",value:function(t){return t.charAt(1).toUpperCase()}},{key:"toCamelCase",value:function(t){return t.replace(/-./g,this.toUpperCase)}}]),i}(O),H=function(t){u(i,t);var e=m(i);function i(){var t;return o(this,i),(t=e.call(this,{})).onValidHandler=t.onFormValid.bind(f(t)),t}return l(i,[{key:"install",value:function(){if(this.core.getFormElement().querySelectorAll('[type="submit"][name="submit"]').length)throw new Error("Do not use `submit` for the name attribute of submit button");this.core.on("core.form.valid",this.onValidHandler)}},{key:"uninstall",value:function(){this.core.off("core.form.valid",this.onValidHandler)}},{key:"onFormValid",value:function(){var t=this.core.getFormElement();t instanceof HTMLFormElement&&t.submit()}}]),i}(O),j=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).opts=t||{},n.triggerExecutedHandler=n.onTriggerExecuted.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("plugins.trigger.executed",this.triggerExecutedHandler)}},{key:"uninstall",value:function(){this.core.off("plugins.trigger.executed",this.triggerExecutedHandler)}},{key:"onTriggerExecuted",value:function(t){if(this.opts[t.field]){var e,i=v(this.opts[t.field].split(" "));try{for(i.s();!(e=i.n()).done;){var n=e.value.trim();this.opts[n]&&this.core.revalidateField(n)}}catch(t){i.e(t)}finally{i.f()}}}}]),i}(O),F=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).opts=Object.assign({},{excluded:i.defaultIgnore},t),n.ignoreValidationFilter=n.ignoreValidation.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.registerFilter("element-ignored",this.ignoreValidationFilter)}},{key:"uninstall",value:function(){this.core.deregisterFilter("element-ignored",this.ignoreValidationFilter)}},{key:"ignoreValidation",value:function(t,e,i){return this.opts.excluded.apply(this,[t,e,i])}}],[{key:"defaultIgnore",value:function(t,e,i){var n=!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),a=e.getAttribute("disabled");return""===a||"disabled"===a||"hidden"===e.getAttribute("type")||!n}}]),i}(O),R=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).statuses=new Map,n.opts=Object.assign({},{onStatusChanged:function(){}},t),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)}},{key:"uninstall",value:function(){this.statuses.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"areFieldsValid",value:function(){return Array.from(this.statuses.values()).every((function(t){return"Valid"===t||"NotValidated"===t||"Ignored"===t}))}},{key:"getStatuses",value:function(){return this.statuses}},{key:"onFieldAdded",value:function(t){this.statuses.set(t.field,"NotValidated")}},{key:"onFieldRemoved",value:function(t){this.statuses.has(t.field)&&this.statuses.delete(t.field),this.opts.onStatusChanged(this.areFieldsValid())}},{key:"onElementValidating",value:function(t){this.statuses.set(t.field,"Validating"),this.opts.onStatusChanged(!1)}},{key:"onElementValidated",value:function(t){this.statuses.set(t.field,t.valid?"Valid":"Invalid"),t.valid?this.opts.onStatusChanged(this.areFieldsValid()):this.opts.onStatusChanged(!1)}},{key:"onElementNotValidated",value:function(t){this.statuses.set(t.field,"NotValidated"),this.opts.onStatusChanged(!1)}},{key:"onElementIgnored",value:function(t){this.statuses.set(t.field,"Ignored"),this.opts.onStatusChanged(this.areFieldsValid())}}]),i}(O);function z(t,e){var i=[],n=[];Object.keys(e).forEach((function(t){t&&(e[t]?i.push(t):n.push(t))})),n.forEach((function(e){return function(t,e){e.split(" ").forEach((function(e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}))}(t,e)})),i.forEach((function(e){return function(t,e){e.split(" ").forEach((function(e){t.classList?t.classList.add(e):" ".concat(t.className," ").indexOf(" ".concat(e," "))&&(t.className+=" ".concat(e))}))}(t,e)}))}function $(t,e){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return i?i.call(t,e):[].slice.call(t.parentElement.querySelectorAll(e)).indexOf(t)>=0}function B(t,e){for(var i=t;i&&!$(i,e);)i=i.parentElement;return i}var W=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).messages=new Map,n.defaultContainer=document.createElement("div"),n.opts=Object.assign({},{container:function(t,e){return n.defaultContainer}},t),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n.validatorValidatedHandler=n.onValidatorValidated.bind(f(n)),n.validatorNotValidatedHandler=n.onValidatorNotValidated.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.getFormElement().appendChild(this.defaultContainer),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.validator.notvalidated",this.validatorNotValidatedHandler)}},{key:"uninstall",value:function(){this.core.getFormElement().removeChild(this.defaultContainer),this.messages.forEach((function(t){return t.parentNode.removeChild(t)})),this.messages.clear(),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.validator.notvalidated",this.validatorNotValidatedHandler)}},{key:"onFieldAdded",value:function(t){var e=this,i=t.elements;i&&(i.forEach((function(t){var i=e.messages.get(t);i&&(i.parentNode.removeChild(i),e.messages.delete(t))})),this.prepareFieldContainer(t.field,i))}},{key:"onFieldRemoved",value:function(t){var e=this;if(t.elements.length&&t.field){var i=t.elements[0].getAttribute("type");("radio"===i||"checkbox"===i?[t.elements[0]]:t.elements).forEach((function(t){if(e.messages.has(t)){var i=e.messages.get(t);i.parentNode.removeChild(i),e.messages.delete(t)}}))}}},{key:"prepareFieldContainer",value:function(t,e){var i=this;if(e.length){var n=e[0].getAttribute("type");"radio"===n||"checkbox"===n?this.prepareElementContainer(t,e[0],e):e.forEach((function(n){return i.prepareElementContainer(t,n,e)}))}}},{key:"prepareElementContainer",value:function(t,e,i){var n;switch(!0){case"string"==typeof this.opts.container:var a=this.opts.container;a="#"===a.charAt(0)?'[id="'.concat(a.substring(1),'"]'):a,n=this.core.getFormElement().querySelector(a);break;default:n=this.opts.container(t,e)}var r=document.createElement("div");n.appendChild(r),z(r,{"fv-plugins-message-container":!0}),this.core.emit("plugins.message.placed",{element:e,elements:i,field:t,messageElement:r}),this.messages.set(e,r)}},{key:"getMessage",value:function(t){return"string"==typeof t.message?t.message:t.message[this.core.getLocale()]}},{key:"onValidatorValidated",value:function(t){var e=t.elements,i=t.element.getAttribute("type"),n="radio"===i||"checkbox"===i?e[0]:t.element;if(this.messages.has(n)){var a=this.messages.get(n),r=a.querySelector('[data-field="'.concat(t.field,'"][data-validator="').concat(t.validator,'"]'));if(r||t.result.valid)r&&!t.result.valid?(r.innerHTML=this.getMessage(t.result),this.core.emit("plugins.message.displayed",{element:t.element,field:t.field,message:t.result.message,messageElement:r,meta:t.result.meta,validator:t.validator})):r&&t.result.valid&&a.removeChild(r);else{var o=document.createElement("div");o.innerHTML=this.getMessage(t.result),o.setAttribute("data-field",t.field),o.setAttribute("data-validator",t.validator),this.opts.clazz&&z(o,c({},this.opts.clazz,!0)),a.appendChild(o),this.core.emit("plugins.message.displayed",{element:t.element,field:t.field,message:t.result.message,messageElement:o,meta:t.result.meta,validator:t.validator})}}}},{key:"onValidatorNotValidated",value:function(t){var e=t.elements,i=t.element.getAttribute("type"),n="radio"===i||"checkbox"===i?e[0]:t.element;if(this.messages.has(n)){var a=this.messages.get(n),r=a.querySelector('[data-field="'.concat(t.field,'"][data-validator="').concat(t.validator,'"]'));r&&a.removeChild(r)}}},{key:"onElementIgnored",value:function(t){var e=t.elements,i=t.element.getAttribute("type"),n="radio"===i||"checkbox"===i?e[0]:t.element;if(this.messages.has(n)){var a=this.messages.get(n);[].slice.call(a.querySelectorAll('[data-field="'.concat(t.field,'"]'))).forEach((function(t){a.removeChild(t)}))}}}],[{key:"getClosestContainer",value:function(t,e,i){for(var n=t;n&&n!==e&&(n=n.parentElement,!i.test(n.className)););return n}}]),i}(O),V=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).results=new Map,n.containers=new Map,n.opts=Object.assign({},{defaultMessageContainer:!0,eleInvalidClass:"",eleValidClass:"",rowClasses:"",rowValidatingClass:""},t),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.iconPlacedHandler=n.onIconPlaced.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){var t,e=this;z(this.core.getFormElement(),(c(t={},this.opts.formClass,!0),c(t,"fv-plugins-framework",!0),t)),this.core.on("core.element.ignored",this.elementIgnoredHandler).on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("plugins.icon.placed",this.iconPlacedHandler).on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler),this.opts.defaultMessageContainer&&this.core.registerPlugin("___frameworkMessage",new W({clazz:this.opts.messageClass,container:function(t,i){var n=B(i,"string"==typeof e.opts.rowSelector?e.opts.rowSelector:e.opts.rowSelector(t,i));return W.getClosestContainer(i,n,e.opts.rowPattern)}}))}},{key:"uninstall",value:function(){var t;this.results.clear(),this.containers.clear(),z(this.core.getFormElement(),(c(t={},this.opts.formClass,!1),c(t,"fv-plugins-framework",!1),t)),this.core.off("core.element.ignored",this.elementIgnoredHandler).off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("plugins.icon.placed",this.iconPlacedHandler).off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"onIconPlaced",value:function(t){}},{key:"onFieldAdded",value:function(t){var e=this,i=t.elements;i&&(i.forEach((function(t){var i,n=e.containers.get(t);n&&(z(n,(c(i={},e.opts.rowInvalidClass,!1),c(i,e.opts.rowValidatingClass,!1),c(i,e.opts.rowValidClass,!1),c(i,"fv-plugins-icon-container",!1),i)),e.containers.delete(t))})),this.prepareFieldContainer(t.field,i))}},{key:"onFieldRemoved",value:function(t){var e=this;t.elements.forEach((function(t){var i,n=e.containers.get(t);n&&z(n,(c(i={},e.opts.rowInvalidClass,!1),c(i,e.opts.rowValidatingClass,!1),c(i,e.opts.rowValidClass,!1),i))}))}},{key:"prepareFieldContainer",value:function(t,e){var i=this;if(e.length){var n=e[0].getAttribute("type");"radio"===n||"checkbox"===n?this.prepareElementContainer(t,e[0]):e.forEach((function(e){return i.prepareElementContainer(t,e)}))}}},{key:"prepareElementContainer",value:function(t,e){var i,n=B(e,"string"==typeof this.opts.rowSelector?this.opts.rowSelector:this.opts.rowSelector(t,e));n!==e&&(z(n,(c(i={},this.opts.rowClasses,!0),c(i,"fv-plugins-icon-container",!0),i)),this.containers.set(e,n))}},{key:"onElementValidating",value:function(t){var e,i=t.elements,n=t.element.getAttribute("type"),a="radio"===n||"checkbox"===n?i[0]:t.element,r=this.containers.get(a);r&&z(r,(c(e={},this.opts.rowInvalidClass,!1),c(e,this.opts.rowValidatingClass,!0),c(e,this.opts.rowValidClass,!1),e))}},{key:"onElementNotValidated",value:function(t){this.removeClasses(t.element,t.elements)}},{key:"onElementIgnored",value:function(t){this.removeClasses(t.element,t.elements)}},{key:"removeClasses",value:function(t,e){var i,n=t.getAttribute("type"),a="radio"===n||"checkbox"===n?e[0]:t;z(a,(c(i={},this.opts.eleValidClass,!1),c(i,this.opts.eleInvalidClass,!1),i));var r,o=this.containers.get(a);o&&z(o,(c(r={},this.opts.rowInvalidClass,!1),c(r,this.opts.rowValidatingClass,!1),c(r,this.opts.rowValidClass,!1),r))}},{key:"onElementValidated",value:function(t){var e,i=this,n=t.elements,a=t.element.getAttribute("type"),r="radio"===a||"checkbox"===a?n[0]:t.element;z(r,(c(e={},this.opts.eleValidClass,t.valid),c(e,this.opts.eleInvalidClass,!t.valid),e));var o=this.containers.get(r);if(o)if(t.valid){this.results.delete(r);var s,l=!0;if(this.containers.forEach((function(t,e){t===o&&!1===i.results.get(e)&&(l=!1)})),l)z(o,(c(s={},this.opts.rowInvalidClass,!1),c(s,this.opts.rowValidatingClass,!1),c(s,this.opts.rowValidClass,!0),s))}else{var u;this.results.set(r,!1),z(o,(c(u={},this.opts.rowInvalidClass,!0),c(u,this.opts.rowValidatingClass,!1),c(u,this.opts.rowValidClass,!1),u))}}}]),i}(O),q=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).icons=new Map,n.opts=Object.assign({},{invalid:"fv-plugins-icon--invalid",onPlaced:function(){},onSet:function(){},valid:"fv-plugins-icon--valid",validating:"fv-plugins-icon--validating"},t),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.elementIgnoredHandler=n.onElementIgnored.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.element.validating",this.elementValidatingHandler).on("core.element.validated",this.elementValidatedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.ignored",this.elementIgnoredHandler).on("core.field.added",this.fieldAddedHandler)}},{key:"uninstall",value:function(){this.icons.forEach((function(t){return t.parentNode.removeChild(t)})),this.icons.clear(),this.core.off("core.element.validating",this.elementValidatingHandler).off("core.element.validated",this.elementValidatedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.ignored",this.elementIgnoredHandler).off("core.field.added",this.fieldAddedHandler)}},{key:"onFieldAdded",value:function(t){var e=this,i=t.elements;i&&(i.forEach((function(t){var i=e.icons.get(t);i&&(i.parentNode.removeChild(i),e.icons.delete(t))})),this.prepareFieldIcon(t.field,i))}},{key:"prepareFieldIcon",value:function(t,e){var i=this;if(e.length){var n=e[0].getAttribute("type");"radio"===n||"checkbox"===n?this.prepareElementIcon(t,e[0]):e.forEach((function(e){return i.prepareElementIcon(t,e)}))}}},{key:"prepareElementIcon",value:function(t,e){var i=document.createElement("i");i.setAttribute("data-field",t),e.parentNode.insertBefore(i,e.nextSibling),z(i,{"fv-plugins-icon":!0});var n={classes:{invalid:this.opts.invalid,valid:this.opts.valid,validating:this.opts.validating},element:e,field:t,iconElement:i};this.core.emit("plugins.icon.placed",n),this.opts.onPlaced(n),this.icons.set(e,i)}},{key:"onElementValidating",value:function(t){var e,i=this.setClasses(t.field,t.element,t.elements,(c(e={},this.opts.invalid,!1),c(e,this.opts.valid,!1),c(e,this.opts.validating,!0),e)),n={element:t.element,field:t.field,iconElement:i,status:"Validating"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"onElementValidated",value:function(t){var e,i=this.setClasses(t.field,t.element,t.elements,(c(e={},this.opts.invalid,!t.valid),c(e,this.opts.valid,t.valid),c(e,this.opts.validating,!1),e)),n={element:t.element,field:t.field,iconElement:i,status:t.valid?"Valid":"Invalid"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"onElementNotValidated",value:function(t){var e,i=this.setClasses(t.field,t.element,t.elements,(c(e={},this.opts.invalid,!1),c(e,this.opts.valid,!1),c(e,this.opts.validating,!1),e)),n={element:t.element,field:t.field,iconElement:i,status:"NotValidated"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"onElementIgnored",value:function(t){var e,i=this.setClasses(t.field,t.element,t.elements,(c(e={},this.opts.invalid,!1),c(e,this.opts.valid,!1),c(e,this.opts.validating,!1),e)),n={element:t.element,field:t.field,iconElement:i,status:"Ignored"};this.core.emit("plugins.icon.set",n),this.opts.onSet(n)}},{key:"setClasses",value:function(t,e,i,n){var a=e.getAttribute("type"),r="radio"===a||"checkbox"===a?i[0]:e;if(this.icons.has(r)){var o=this.icons.get(r);return z(o,n),o}return null}}]),i}(O),U=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).invalidFields=new Map,n.opts=Object.assign({},{enabled:!0},t),n.validatorHandler=n.onValidatorValidated.bind(f(n)),n.shouldValidateFilter=n.shouldValidate.bind(f(n)),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.elementNotValidatedHandler=n.onElementNotValidated.bind(f(n)),n.elementValidatingHandler=n.onElementValidating.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.validator.validated",this.validatorHandler).on("core.field.added",this.fieldAddedHandler).on("core.element.notvalidated",this.elementNotValidatedHandler).on("core.element.validating",this.elementValidatingHandler).registerFilter("field-should-validate",this.shouldValidateFilter)}},{key:"uninstall",value:function(){this.invalidFields.clear(),this.core.off("core.validator.validated",this.validatorHandler).off("core.field.added",this.fieldAddedHandler).off("core.element.notvalidated",this.elementNotValidatedHandler).off("core.element.validating",this.elementValidatingHandler).deregisterFilter("field-should-validate",this.shouldValidateFilter)}},{key:"shouldValidate",value:function(t,e,i,n){return!((!0===this.opts.enabled||!0===this.opts.enabled[t])&&this.invalidFields.has(e)&&!!this.invalidFields.get(e).length&&-1===this.invalidFields.get(e).indexOf(n))}},{key:"onValidatorValidated",value:function(t){var e=this.invalidFields.has(t.element)?this.invalidFields.get(t.element):[],i=e.indexOf(t.validator);t.result.valid&&i>=0?e.splice(i,1):t.result.valid||-1!==i||e.push(t.validator),this.invalidFields.set(t.element,e)}},{key:"onFieldAdded",value:function(t){t.elements&&this.clearInvalidFields(t.elements)}},{key:"onElementNotValidated",value:function(t){this.clearInvalidFields(t.elements)}},{key:"onElementValidating",value:function(t){this.clearInvalidFields(t.elements)}},{key:"clearInvalidFields",value:function(t){var e=this;t.forEach((function(t){return e.invalidFields.delete(t)}))}}]),i}(O),X=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).isFormValid=!1,n.opts=Object.assign({},{aspNetButton:!1,buttons:function(t){return[].slice.call(t.querySelectorAll('[type="submit"]:not([formnovalidate])'))}},t),n.submitHandler=n.handleSubmitEvent.bind(f(n)),n.buttonClickHandler=n.handleClickEvent.bind(f(n)),n}return l(i,[{key:"install",value:function(){var t=this;if(this.core.getFormElement()instanceof HTMLFormElement){var e=this.core.getFormElement();this.submitButtons=this.opts.buttons(e),e.setAttribute("novalidate","novalidate"),e.addEventListener("submit",this.submitHandler),this.hiddenClickedEle=document.createElement("input"),this.hiddenClickedEle.setAttribute("type","hidden"),e.appendChild(this.hiddenClickedEle),this.submitButtons.forEach((function(e){e.addEventListener("click",t.buttonClickHandler)}))}}},{key:"uninstall",value:function(){var t=this,e=this.core.getFormElement();e instanceof HTMLFormElement&&e.removeEventListener("submit",this.submitHandler),this.submitButtons.forEach((function(e){e.removeEventListener("click",t.buttonClickHandler)})),this.hiddenClickedEle.parentElement.removeChild(this.hiddenClickedEle)}},{key:"handleSubmitEvent",value:function(t){this.validateForm(t)}},{key:"handleClickEvent",value:function(t){if(t.currentTarget instanceof HTMLElement)if(this.opts.aspNetButton&&!0===this.isFormValid);else{this.core.getFormElement().removeEventListener("submit",this.submitHandler),this.clickedButton=t.target;var e=this.clickedButton.getAttribute("name"),i=this.clickedButton.getAttribute("value");e&&i&&(this.hiddenClickedEle.setAttribute("name",e),this.hiddenClickedEle.setAttribute("value",i)),this.validateForm(t)}}},{key:"validateForm",value:function(t){var e=this;t.preventDefault(),this.core.validate().then((function(t){"Valid"===t&&e.opts.aspNetButton&&!e.isFormValid&&e.clickedButton&&(e.isFormValid=!0,e.clickedButton.removeEventListener("click",e.buttonClickHandler),e.clickedButton.click())}))}}]),i}(O),G=function(t){u(i,t);var e=m(i);function i(t){var n;return o(this,i),(n=e.call(this,t)).messages=new Map,n.opts=Object.assign({},{placement:"top",trigger:"click"},t),n.iconPlacedHandler=n.onIconPlaced.bind(f(n)),n.validatorValidatedHandler=n.onValidatorValidated.bind(f(n)),n.elementValidatedHandler=n.onElementValidated.bind(f(n)),n.documentClickHandler=n.onDocumentClicked.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.tip=document.createElement("div"),z(this.tip,c({"fv-plugins-tooltip":!0},"fv-plugins-tooltip--".concat(this.opts.placement),!0)),document.body.appendChild(this.tip),this.core.on("plugins.icon.placed",this.iconPlacedHandler).on("core.validator.validated",this.validatorValidatedHandler).on("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.addEventListener("click",this.documentClickHandler)}},{key:"uninstall",value:function(){this.messages.clear(),document.body.removeChild(this.tip),this.core.off("plugins.icon.placed",this.iconPlacedHandler).off("core.validator.validated",this.validatorValidatedHandler).off("core.element.validated",this.elementValidatedHandler),"click"===this.opts.trigger&&document.removeEventListener("click",this.documentClickHandler)}},{key:"onIconPlaced",value:function(t){var e=this;switch(z(t.iconElement,{"fv-plugins-tooltip-icon":!0}),this.opts.trigger){case"hover":t.iconElement.addEventListener("mouseenter",(function(i){return e.show(t.element,i)})),t.iconElement.addEventListener("mouseleave",(function(t){return e.hide()}));break;case"click":default:t.iconElement.addEventListener("click",(function(i){return e.show(t.element,i)}))}}},{key:"onValidatorValidated",value:function(t){if(!t.result.valid){var e=t.elements,i=t.element.getAttribute("type"),n="radio"===i||"checkbox"===i?e[0]:t.element,a="string"==typeof t.result.message?t.result.message:t.result.message[this.core.getLocale()];this.messages.set(n,a)}}},{key:"onElementValidated",value:function(t){if(t.valid){var e=t.elements,i=t.element.getAttribute("type"),n="radio"===i||"checkbox"===i?e[0]:t.element;this.messages.delete(n)}}},{key:"onDocumentClicked",value:function(t){this.hide()}},{key:"show",value:function(t,e){if(e.preventDefault(),e.stopPropagation(),this.messages.has(t)){z(this.tip,{"fv-plugins-tooltip--hide":!1}),this.tip.innerHTML='<span class="fv-plugins-tooltip__content">'.concat(this.messages.get(t),"</span>");var i=e.target.getBoundingClientRect(),n=0,a=0;switch(this.opts.placement){case"top":default:n=i.top-i.height,a=i.left+i.width/2-this.tip.clientWidth/2;break;case"top-left":n=i.top-i.height,a=i.left;break;case"top-right":n=i.top-i.height,a=i.left+i.width-this.tip.clientWidth;break;case"bottom":n=i.top+i.height,a=i.left+i.width/2-this.tip.clientWidth/2;break;case"bottom-left":n=i.top+i.height,a=i.left;break;case"bottom-right":n=i.top+i.height,a=i.left+i.width-this.tip.clientWidth;break;case"left":n=i.top+i.height/2-this.tip.clientHeight/2,a=i.left-this.tip.clientWidth;break;case"right":n=i.top+i.height/2-this.tip.clientHeight/2,a=i.left+i.width}n+=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a+=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,this.tip.setAttribute("style","top: ".concat(n,"px; left: ").concat(a,"px"))}}},{key:"hide",value:function(){z(this.tip,{"fv-plugins-tooltip--hide":!0})}}]),i}(O),K=function(t){u(i,t);var e=m(i);function i(t){var n;o(this,i),(n=e.call(this,t)).handlers=[],n.timers=new Map,n.ieVersion=function(){for(var t=3,e=document.createElement("div"),i=e.all||[];e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><br><![endif]--\x3e",i[0];);return t>4?t:document.documentMode}();var a=document.createElement("div");return n.defaultEvent=9!==n.ieVersion&&"oninput"in a?"input":"keyup",n.opts=Object.assign({},{delay:0,event:n.defaultEvent,threshold:0},t),n.fieldAddedHandler=n.onFieldAdded.bind(f(n)),n.fieldRemovedHandler=n.onFieldRemoved.bind(f(n)),n}return l(i,[{key:"install",value:function(){this.core.on("core.field.added",this.fieldAddedHandler).on("core.field.removed",this.fieldRemovedHandler)}},{key:"uninstall",value:function(){this.handlers.forEach((function(t){return t.element.removeEventListener(t.event,t.handler)})),this.handlers=[],this.timers.forEach((function(t){return window.clearTimeout(t)})),this.timers.clear(),this.core.off("core.field.added",this.fieldAddedHandler).off("core.field.removed",this.fieldRemovedHandler)}},{key:"prepareHandler",value:function(t,e){var i=this;e.forEach((function(e){var n=[];switch(!0){case!!i.opts.event&&!1===i.opts.event[t]:n=[];break;case!!i.opts.event&&!!i.opts.event[t]:n=i.opts.event[t].split(" ");break;case"string"==typeof i.opts.event&&i.opts.event!==i.defaultEvent:n=i.opts.event.split(" ");break;default:var a=e.getAttribute("type"),r=e.tagName.toLowerCase();n=["radio"===a||"checkbox"===a||"file"===a||"select"===r?"change":i.ieVersion>=10&&e.getAttribute("placeholder")?"keyup":i.defaultEvent]}n.forEach((function(n){var a=function(n){return i.handleEvent(n,t,e)};i.handlers.push({element:e,event:n,field:t,handler:a}),e.addEventListener(n,a)}))}))}},{key:"handleEvent",value:function(t,e,i){var n=this;if(this.exceedThreshold(e,i)&&this.core.executeFilter("plugins-trigger-should-validate",!0,[e,i])){var a=function(){return n.core.validateElement(e,i).then((function(a){n.core.emit("plugins.trigger.executed",{element:i,event:t,field:e})}))},r=this.opts.delay[e]||this.opts.delay;if(0===r)a();else{var o=this.timers.get(i);o&&window.clearTimeout(o),this.timers.set(i,window.setTimeout(a,1e3*r))}}}},{key:"onFieldAdded",value:function(t){this.handlers.filter((function(e){return e.field===t.field})).forEach((function(t){return t.element.removeEventListener(t.event,t.handler)})),this.prepareHandler(t.field,t.elements)}},{key:"onFieldRemoved",value:function(t){this.handlers.filter((function(e){return e.field===t.field&&t.elements.indexOf(e.element)>=0})).forEach((function(t){return t.element.removeEventListener(t.event,t.handler)}))}},{key:"exceedThreshold",value:function(t,e){var i=0!==this.opts.threshold[t]&&0!==this.opts.threshold&&(this.opts.threshold[t]||this.opts.threshold);if(!i)return!0;var n=e.getAttribute("type");return-1!==["button","checkbox","file","hidden","image","radio","reset","submit"].indexOf(n)||this.core.getElementValue(t,e).length>=i}}]),i}(O),Z={Alias:Y,Aria:I,Declarative:N,DefaultSubmit:H,Dependency:j,Excluded:F,FieldStatus:R,Framework:V,Icon:q,Message:W,Sequence:U,SubmitButton:X,Tooltip:G,Trigger:K};var J={call:_,classSet:z,closest:B,fetch:k,format:b,hasClass:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )".concat(e,"( |$)"),"gi").test(t.className)},isValidDate:w};t.Plugin=O,t.algorithms=r,t.filters=P,t.formValidation=function(t,e){var i=Object.assign({},{fields:{},locale:"en_US",plugins:{}},e),n=new E(t,i.fields);return n.setLocale(i.locale,i.localization),Object.keys(i.plugins).forEach((function(t){return n.registerPlugin(t,i.plugins[t])})),Object.keys(D).forEach((function(t){return n.registerValidator(t,D[t])})),Object.keys(i.fields).forEach((function(t){return n.addField(t,i.fields[t])})),n},t.locales={},t.plugins=Z,t.utils=J,t.validators=D,Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):((t=t||self).FormValidation=t.FormValidation||{},t.FormValidation.plugins=t.FormValidation.plugins||{},t.FormValidation.plugins.Bootstrap=e())}(this,(function(){"use strict";function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function n(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,r=e(t);if(i){var o=e(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return n(this,a)}}var r=FormValidation.utils.classSet,o=FormValidation.utils.hasClass;return function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(u,e);var n,s,l,c=a(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,Object.assign({},{eleInvalidClass:"is-invalid",eleValidClass:"is-valid",formClass:"fv-plugins-bootstrap",messageClass:"fv-help-block",rowInvalidClass:"has-danger",rowPattern:/^(.*)(col|offset)(-(sm|md|lg|xl))*-[0-9]+(.*)$/,rowSelector:".form-group",rowValidClass:"has-success"},t))}return n=u,(s=[{key:"onIconPlaced",value:function(t){var e=t.element.parentElement;o(e,"input-group")&&e.parentElement.insertBefore(t.iconElement,e.nextSibling);var i=t.element.getAttribute("type");if("checkbox"===i||"radio"===i){var n=e.parentElement;o(e,"form-check")?(r(t.iconElement,{"fv-plugins-icon-check":!0}),e.parentElement.insertBefore(t.iconElement,e.nextSibling)):o(e.parentElement,"form-check")&&(r(t.iconElement,{"fv-plugins-icon-check":!0}),n.parentElement.insertBefore(t.iconElement,n.nextSibling))}}}])&&t(n.prototype,s),l&&t(n,l),u}(FormValidation.plugins.Framework)})),function(){"use strict";function t(t){t.fn._fadeIn=t.fn.fadeIn;var e=t.noop||function(){},i=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),a=(document.documentMode,t.isFunction(document.createElement("div").style.setExpression));t.blockUI=function(t){s(window,t)},t.unblockUI=function(t){l(window,t)},t.growlUI=function(e,i,n,a){var r=t('<div class="growlUI"></div>');e&&r.append("<h1>"+e+"</h1>"),i&&r.append("<h2>"+i+"</h2>"),void 0===n&&(n=3e3);var o=function(e){e=e||{},t.blockUI({message:r,fadeIn:void 0!==e.fadeIn?e.fadeIn:700,fadeOut:void 0!==e.fadeOut?e.fadeOut:1e3,timeout:void 0!==e.timeout?e.timeout:n,centerY:!1,showOverlay:!1,onUnblock:a,css:t.blockUI.defaults.growlCSS})};o();r.css("opacity");r.mouseover((function(){o({fadeIn:0,timeout:3e4});var e=t(".blockMsg");e.stop(),e.fadeTo(300,1)})).mouseout((function(){t(".blockMsg").fadeOut(1e3)}))},t.fn.block=function(e){if(this[0]===window)return t.blockUI(e),this;var i=t.extend({},t.blockUI.defaults,e||{});return this.each((function(){var e=t(this);i.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})})),this.each((function(){"static"==t.css(this,"position")&&(this.style.position="relative",t(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,e)}))},t.fn.unblock=function(e){return this[0]===window?(t.unblockUI(e),this):this.each((function(){l(this,e)}))},t.blockUI.version=2.7,t.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var r=null,o=[];function s(s,c){var d,p,m=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=t.extend({},t.blockUI.defaults,c||{})).ignoreIfBlocked||!t(s).data("blockUI.isBlocked")){if(c.overlayCSS=t.extend({},t.blockUI.defaults.overlayCSS,c.overlayCSS||{}),d=t.extend({},t.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),p=t.extend({},t.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,m&&r&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var v=g.jquery?g[0]:g,y={};t(s).data("blockUI.history",y),y.el=v,y.parent=v.parentNode,y.display=v.style.display,y.position=v.style.position,y.parent&&y.parent.removeChild(v)}t(s).data("blockUI.onUnblock",c.onUnblock);var b,_,x,w,k=c.baseZ;b=i||c.forceIframe?t('<iframe class="blockUI" style="z-index:'+k+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):t('<div class="blockUI" style="display:none"></div>'),_=c.theme?t('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+k+++';display:none"></div>'):t('<div class="blockUI blockOverlay" style="z-index:'+k+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&m?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(k+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(k+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=m?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(k+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(k+10)+';display:none;position:absolute"></div>',x=t(w),g&&(c.theme?(x.css(p),x.addClass("ui-widget-content")):x.css(d)),c.theme||_.css(c.overlayCSS),_.css("position",m?"fixed":"absolute"),(i||c.forceIframe)&&b.css("opacity",0);var S=[b,_,x],M=t(m?"body":s);t.each(S,(function(){this.appendTo(M)})),c.theme&&c.draggable&&t.fn.draggable&&x.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var L=a&&(!t.support.boxModel||t("object,embed",m?null:s).length>0);if(n||L){if(m&&c.allowBodyStretch&&t.support.boxModel&&t("html,body").css("height","100%"),(n||!t.support.boxModel)&&!m)var T=f(s,"borderTopWidth"),C=f(s,"borderLeftWidth"),A=T?"(0 - "+T+")":0,D=C?"(0 - "+C+")":0;t.each(S,(function(t,e){var i=e[0].style;if(i.position="absolute",t<2)m?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),m?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),D&&i.setExpression("left",D),A&&i.setExpression("top",A);else if(c.centerY)m&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0;else if(!c.centerY&&m){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';i.setExpression("top",n)}}))}if(g&&(c.theme?x.find(".ui-widget-content").append(g):x.append(g),(g.jquery||g.nodeType)&&t(g).show()),(i||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var E=c.onBlock?c.onBlock:e,O=c.showOverlay&&!g?E:e,P=g?E:e;c.showOverlay&&_._fadeIn(c.fadeIn,O),g&&x._fadeIn(c.fadeIn,P)}else c.showOverlay&&_.show(),g&&x.show(),c.onBlock&&c.onBlock.bind(x)();if(u(1,s,c),m?(r=x[0],o=t(c.focusableElements,r),c.focusInput&&setTimeout(h,20)):function(t,e,i){var n=t.parentNode,a=t.style,r=(n.offsetWidth-t.offsetWidth)/2-f(n,"borderLeftWidth"),o=(n.offsetHeight-t.offsetHeight)/2-f(n,"borderTopWidth");e&&(a.left=r>0?r+"px":"0");i&&(a.top=o>0?o+"px":"0")}(x[0],c.centerX,c.centerY),c.timeout){var Y=setTimeout((function(){m?t.unblockUI(c):t(s).unblock(c)}),c.timeout);t(s).data("blockUI.timeout",Y)}}}function l(e,i){var n,a,s=e==window,l=t(e),d=l.data("blockUI.history"),h=l.data("blockUI.timeout");h&&(clearTimeout(h),l.removeData("blockUI.timeout")),i=t.extend({},t.blockUI.defaults,i||{}),u(0,e,i),null===i.onUnblock&&(i.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),a=s?t("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),i.cursorReset&&(a.length>1&&(a[1].style.cursor=i.cursorReset),a.length>2&&(a[2].style.cursor=i.cursorReset)),s&&(r=o=null),i.fadeOut?(n=a.length,a.stop().fadeOut(i.fadeOut,(function(){0==--n&&c(a,d,i,e)}))):c(a,d,i,e)}function c(e,i,n,a){var r=t(a);if(!r.data("blockUI.isBlocked")){e.each((function(t,e){this.parentNode&&this.parentNode.removeChild(this)})),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.el.style.cursor="default",i.parent&&i.parent.appendChild(i.el),r.removeData("blockUI.history")),r.data("blockUI.static")&&r.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(a,n);var o=t(document.body),s=o.width(),l=o[0].style.width;o.width(s-1).width(s),o[0].style.width=l}}function u(e,i,n){var a=i==window,o=t(i);if((e||(!a||r)&&(a||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",e),a&&n.bindEvents&&(!e||n.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";e?t(document).bind(s,n,d):t(document).unbind(s,d)}}function d(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&r&&e.data.constrainTabKey){var i=o,n=!e.shiftKey&&e.target===i[i.length-1],a=e.shiftKey&&e.target===i[0];if(n||a)return setTimeout((function(){h(a)}),10),!1}var s=e.data,l=t(e.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(e),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function h(t){if(o){var e=o[!0===t?o.length-1:0];e&&e.focus()}}function f(e,i){return parseInt(t.css(e,i),10)||0}}"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}((function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function a(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function r(i,n){return function(){return n!==e&&t.fn.datepicker.deprecated(n),this[i].apply(this,arguments)}}function o(e,i){function n(t,e){return e.toLowerCase()}var a=t(e).data(),r={},o=new RegExp("^"+i.toLowerCase()+"([A-Z])");for(var s in i=new RegExp("^"+i.toLowerCase()),a)i.test(s)&&(r[s.replace(o,n)]=a[s]);return r}function s(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var n=m[e];return t.each(p,(function(t,e){e in n&&(i[e]=n[e])})),i}}var l=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new l;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),c=function(e,i){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new l,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(g.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",(function(t,e){return Number(e)+1})),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};c.prototype={constructor:c,_resolveViewName:function(e){return t.each(g.viewModes,(function(i,n){if(e===i||-1!==t.inArray(e,n.names))return e=i,!1})),e},_resolveDaysOfWeek:function(e){return t.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{return i!==e&&""!==i&&((i.match(/[<>]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var a=this.o=t.extend({},this._o),r=a.language;m[r]||(r=r.split("-")[0],m[r]||(r=f.language)),a.language=r,a.startView=this._resolveViewName(a.startView),a.minViewMode=this._resolveViewName(a.minViewMode),a.maxViewMode=this._resolveViewName(a.maxViewMode),a.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,a.startView)),!0!==a.multidate&&(a.multidate=Number(a.multidate)||!1,!1!==a.multidate&&(a.multidate=Math.max(0,a.multidate))),a.multidateSeparator=String(a.multidateSeparator),a.weekStart%=7,a.weekEnd=(a.weekStart+6)%7;var o=g.parseFormat(a.format);a.startDate!==-1/0&&(a.startDate?a.startDate instanceof Date?a.startDate=this._local_to_utc(this._zero_time(a.startDate)):a.startDate=g.parseDate(a.startDate,o,a.language,a.assumeNearbyYear):a.startDate=-1/0),a.endDate!==1/0&&(a.endDate?a.endDate instanceof Date?a.endDate=this._local_to_utc(this._zero_time(a.endDate)):a.endDate=g.parseDate(a.endDate,o,a.language,a.assumeNearbyYear):a.endDate=1/0),a.daysOfWeekDisabled=this._resolveDaysOfWeek(a.daysOfWeekDisabled||[]),a.daysOfWeekHighlighted=this._resolveDaysOfWeek(a.daysOfWeekHighlighted||[]),a.datesDisabled=a.datesDisabled||[],t.isArray(a.datesDisabled)||(a.datesDisabled=a.datesDisabled.split(",")),a.datesDisabled=t.map(a.datesDisabled,(function(t){return g.parseDate(t,o,a.language,a.assumeNearbyYear)}));var s=String(a.orientation).toLowerCase().split(/\s+/g),l=a.orientation.toLowerCase();if(s=t.grep(s,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),a.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===s.length)switch(s[0]){case"top":case"bottom":a.orientation.y=s[0];break;case"left":case"right":a.orientation.x=s[0]}else l=t.grep(s,(function(t){return/^left|right$/.test(t)})),a.orientation.x=l[0]||"auto",l=t.grep(s,(function(t){return/^top|bottom$/.test(t)})),a.orientation.y=l[0]||"auto";if(a.defaultViewDate instanceof Date||"string"==typeof a.defaultViewDate)a.defaultViewDate=g.parseDate(a.defaultViewDate,o,a.language,a.assumeNearbyYear);else if(a.defaultViewDate){var c=a.defaultViewDate.year||(new Date).getFullYear(),u=a.defaultViewDate.month||0,d=a.defaultViewDate.day||1;a.defaultViewDate=i(c,u,d)}else a.defaultViewDate=n()},_applyEvents:function(t){for(var i,n,a,r=0;r<t.length;r++)i=t[r][0],2===t[r].length?(n=e,a=t[r][1]):3===t[r].length&&(n=t[r][1],a=t[r][2]),i.on(a,n)},_unapplyEvents:function(t){for(var i,n,a,r=0;r<t.length;r++)i=t[r][0],2===t[r].length?(a=e,n=t[r][1]):3===t[r].length&&(a=t[r][1],n=t[r][2]),i.off(n,a)},_buildEvents:function(){var e={keyup:t.proxy((function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy((function(t){this._focused_from=t.target}),this)}],[this.element,{blur:t.proxy((function(t){this._focused_from=t.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy((function(t){this.update(t.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var n=i||this.dates.get(-1),a=this._utc_to_local(n);this.element.trigger({type:e,date:a,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy((function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return g.formatDate(i,e,this.o.language)}),this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,(function(t){return new Date(t)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:r("setDates"),setUTCDate:r("setUTCDates"),remove:r("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var n=this.o.language;return t.map(this.dates,(function(t){return g.formatDate(t,i,n)})).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),n=t(this.o.container),a=n.width(),r="body"===this.o.container?t(document).scrollTop():n.scrollTop(),o=n.offset(),s=[0];this.element.parents().each((function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&s.push(Number(e))}));var l=Math.max.apply(Math,s)+this.o.zIndexOffset,c=this.component?this.component.parent().offset():this.element.offset(),u=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),h=c.left-o.left,f=c.top-o.top;"body"!==this.o.container&&(f+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(h-=e-d)):c.left<0?(this.picker.addClass("datepicker-orient-left"),h-=c.left-10):h+e>a?(this.picker.addClass("datepicker-orient-right"),h+=d-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var p=this.o.orientation.y;if("auto"===p&&(p=-r+f-i<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+p),"top"===p?f-=i+parseInt(this.picker.css("padding-top")):f+=u,this.o.rtl){var m=a-(h+d);this.picker.css({top:f,right:m,zIndex:l})}else this.picker.css({top:f,left:h,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],n=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)}),this)),n=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy((function(t){return g.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),i=t.grep(i,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),n?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&n&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",i=0;i<12;i++)e+='<span class="month'+(t&&t.getMonth()===i?" focused":"")+'">'+m[this.o.language].monthsShort[i]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var i=[],r=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),s=n();return e.getUTCFullYear()<r||e.getUTCFullYear()===r&&e.getUTCMonth()<o?i.push("old"):(e.getUTCFullYear()>r||e.getUTCFullYear()===r&&e.getUTCMonth()>o)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&a(e,s)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,n,a,r,o,s,l){for(var c,u,d,h="",f=a/10,p=this.picker.find(i),m=Math.floor(r/a)*a,g=m+9*f,v=Math.floor(this.viewDate.getFullYear()/f)*f,y=t.map(this.dates,(function(t){return Math.floor(t.getUTCFullYear()/f)*f})),b=m-f;b<=g+f;b+=f)c=[n],u=null,b===m-f?c.push("old"):b===g+f&&c.push("new"),-1!==t.inArray(b,y)&&c.push("active"),(b<o||b>s)&&c.push("disabled"),b===v&&c.push("focused"),l!==t.noop&&((d=l(new Date(b,0,1)))===e?d={}:"boolean"==typeof d?d={enabled:d}:"string"==typeof d&&(d={classes:d}),!1===d.enabled&&c.push("disabled"),d.classes&&(c=c.concat(d.classes.split(/\s+/))),d.tooltip&&(u=d.tooltip)),h+='<span class="'+c.join(" ")+'"'+(u?' title="'+u+'"':"")+">"+b+"</span>";p.find(".datepicker-switch").text(m+"-"+g),p.find("td").html(h)},fill:function(){var a,r,o=new Date(this.viewDate),s=o.getUTCFullYear(),l=o.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",v=m[this.o.language].titleFormat||m.en.titleFormat,y=n(),b=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&y>=this.o.startDate&&y<=this.o.endDate&&!this.weekOfDateIsDisabled(y);if(!isNaN(s)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(g.formatDate(o,v,this.o.language)),this.picker.find("tfoot .today").text(f).css("display",b?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var _=i(s,l,0),x=_.getUTCDate();_.setUTCDate(x-(_.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(_);_.getUTCFullYear()<100&&w.setUTCFullYear(_.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var k,S,M=[];_.valueOf()<w;){if((k=_.getUTCDay())===this.o.weekStart&&(M.push("<tr>"),this.o.calendarWeeks)){var L=new Date(+_+(this.o.weekStart-k-7)%7*864e5),T=new Date(Number(L)+(11-L.getUTCDay())%7*864e5),C=new Date(Number(C=i(T.getUTCFullYear(),0,1))+(11-C.getUTCDay())%7*864e5),A=(T-C)/864e5/7+1;M.push('<td class="cw">'+A+"</td>")}(S=this.getClassNames(_)).push("day");var D=_.getUTCDate();this.o.beforeShowDay!==t.noop&&((r=this.o.beforeShowDay(this._utc_to_local(_)))===e?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),!1===r.enabled&&S.push("disabled"),r.classes&&(S=S.concat(r.classes.split(/\s+/))),r.tooltip&&(a=r.tooltip),r.content&&(D=r.content)),S=t.isFunction(t.uniqueSort)?t.uniqueSort(S):t.unique(S),M.push('<td class="'+S.join(" ")+'"'+(a?' title="'+a+'"':"")+' data-date="'+_.getTime().toString()+'">'+D+"</td>"),a=null,k===this.o.weekEnd&&M.push("</tr>"),_.setUTCDate(_.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(M.join(""));var E=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",O=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?E:s).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===s&&O.eq(e.getUTCMonth()).addClass("active")})),(s<c||s>d)&&O.addClass("disabled"),s===c&&O.slice(0,u).addClass("disabled"),s===d&&O.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var P=this;t.each(O,(function(i,n){var a=new Date(s,i,1),r=P.o.beforeShowMonth(a);r===e?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),!1!==r.enabled||t(n).hasClass("disabled")||t(n).addClass("disabled"),r.classes&&t(n).addClass(r.classes),r.tooltip&&t(n).prop("title",r.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,s,c,d,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,c,d,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,c,d,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),n=i.getUTCFullYear(),a=i.getUTCMonth(),r=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(n/c)*c<=r,e=Math.floor(n/c)*c+c>s;break;case 0:t=n<=r&&a<=o,e=n>=s&&a>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var a,r,o;e.preventDefault(),e.stopPropagation(),(a=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),a.hasClass("today")&&!a.hasClass("day")&&(this.setViewMode(0),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),a.hasClass("clear")&&this.clearDates(),a.hasClass("disabled")||(a.hasClass("month")||a.hasClass("year")||a.hasClass("decade")||a.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(o=a.parent().find("span").index(a),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o)):(o=0,r=Number(a.text()),this.viewDate.setUTCFullYear(r)),this._trigger(g.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,o,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget).data("date"),n=new Date(i);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(e){var i=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(i*=12*g.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(g.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!function(t){return t&&!isNaN(t.getTime())}(t))return this.o.defaultViewDate;if(!e)return t;var i,n,a=new Date(t.valueOf()),r=a.getUTCDate(),o=a.getUTCMonth(),s=Math.abs(e);if(e=e>0?1:-1,1===s)n=-1===e?function(){return a.getUTCMonth()===o}:function(){return a.getUTCMonth()!==i},i=o+e,a.setUTCMonth(i),i=(i+12)%12;else{for(var l=0;l<s;l++)a=this.moveMonth(a,e);i=a.getUTCMonth(),a.setUTCDate(r),n=function(){return i!==a.getUTCMonth()}}for(;n();)a.setUTCDate(--r),a.setUTCMonth(i);return a},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,(function(t){return a(e,t)})).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,n=!1,a=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(a,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(a,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(a,e,"moveDay"):this.weekOfDateIsDisabled(a)||(i=this.moveAvailableDate(a,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(a,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(a,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;a=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(a),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+g.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var u=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,(function(t){return t.jquery?t[0]:t})),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,h.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};u.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,i){i.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(i){if(!this.updating){this.updating=!0;var n=t.data(i.target,"datepicker");if(n!==e){var a=n.getUTCDate(),r=this.keepEmptyValues,o=t.inArray(i.target,this.inputs),s=o-1,l=o+1,c=this.inputs.length;if(-1!==o){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==n&&r||e.setUTCDate(a)})),a<this.dates[s])for(;s>=0&&a<this.dates[s];)this.pickers[s--].setUTCDate(a);else if(a>this.dates[l])for(;l<c&&a>this.dates[l];)this.pickers[l++].setUTCDate(a);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:r("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var d=t.fn.datepicker,h=function(i){var n,a=Array.apply(null,arguments);if(a.shift(),this.each((function(){var e=t(this),r=e.data("datepicker"),l="object"==typeof i&&i;if(!r){var d=o(this,"date"),h=s(t.extend({},f,d,l).language),p=t.extend({},f,h,d,l);e.hasClass("input-daterange")||p.inputs?(t.extend(p,{inputs:p.inputs||e.find("input").toArray()}),r=new u(this,p)):r=new c(this,p),e.data("datepicker",r)}"string"==typeof i&&"function"==typeof r[i]&&(n=r[i].apply(r,a))})),n===e||n instanceof c||n instanceof u)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return n};t.fn.datepicker=h;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},p=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=c;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},g={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,a,r,o){function s(){var t=this.slice(0,l[h].length),e=l[h].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;if("string"==typeof a&&(a=g.parseFormat(a)),a.toValue)return a.toValue(i,a,r);var l,u,d,h,f,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},v={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in v&&(i=v[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(l=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,h=0;h<l.length;h++)u=l[h].match(/([\-+]\d+)([dmwy])/i),d=Number(u[1]),f=p[u[2].toLowerCase()],i=c.prototype[f](i,d);return c.prototype._zero_utc_time(i)}l=i&&i.match(this.nonpunctuation)||[];var y,b,_={},x=["yyyy","yy","M","MM","m","mm","d","dd"],w={yyyy:function(t,e){return t.setUTCFullYear(o?function(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}(e,o):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};w.yy=w.yyyy,w.M=w.MM=w.mm=w.m,w.dd=w.d,i=n();var k=a.parts.slice();if(l.length!==k.length&&(k=t(k).filter((function(e,i){return-1!==t.inArray(i,x)})).toArray()),l.length===k.length){var S,M,L;for(h=0,S=k.length;h<S;h++){if(y=parseInt(l[h],10),u=k[h],isNaN(y))switch(u){case"MM":b=t(m[r].months).filter(s),y=t.inArray(b[0],m[r].months)+1;break;case"M":b=t(m[r].monthsShort).filter(s),y=t.inArray(b[0],m[r].monthsShort)+1}_[u]=y}for(h=0;h<x.length;h++)(L=x[h])in _&&!isNaN(_[L])&&(M=new Date(i),w[L](M,_[L]),isNaN(M)||(i=M))}return i},formatDate:function(e,i,n){if(!e)return"";if("string"==typeof i&&(i=g.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,n);var a={d:e.getUTCDate(),D:m[n].daysShort[e.getUTCDay()],DD:m[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[n].monthsShort[e.getUTCMonth()],MM:m[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};a.dd=(a.d<10?"0":"")+a.d,a.mm=(a.m<10?"0":"")+a.m,e=[];for(var r=t.extend([],i.separators),o=0,s=i.parts.length;o<=s;o++)r.length&&e.push(r.shift()),e.push(a[i.parts[o]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+f.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+f.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};g.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+g.headTemplate+"<tbody></tbody>"+g.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=g,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=d,this},t.fn.datepicker.version="1.9.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),h.call(i,"show"))})),t((function(){h.call(t('[data-provide="datepicker-inline"]'))}))})),$.fn.datepicker.defaults.zIndexOffset=10,"undefined"==typeof jQuery)throw new Error("Tempus Dominus Bootstrap4's requires jQuery. jQuery must be included before Tempus Dominus Bootstrap4's JavaScript.");if(function(t){var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Tempus Dominus Bootstrap4's requires at least jQuery v3.0.0 but less than v4.0.0")}(),"undefined"==typeof moment)throw new Error("Tempus Dominus Bootstrap4's requires moment.js. Moment.js must be included before Tempus Dominus Bootstrap4's JavaScript.");var version=moment.version.split(".");if(version[0]<=2&&version[1]<17||version[0]>=3)throw new Error("Tempus Dominus Bootstrap4's requires at least moment.js v2.17.0 but less than v3.0.0");function _typeof(t){return(_typeof="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)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var a=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _createForOfIteratorHelper(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){s=!0,r=t},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw r}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}!function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=function(e,i){function n(t){return e=new Date(t),"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime());var e}var a=function(t){return t.replace(/(^\s+)|(\s+$)/g,"")},r="datetimepicker",o=""+r,s="."+o,l=".data-api",c={DATA_TOGGLE:'[data-toggle="'+o+'"]'},u={INPUT:r+"-input"},d={CHANGE:"change"+s,BLUR:"blur"+s,KEYUP:"keyup"+s,KEYDOWN:"keydown"+s,FOCUS:"focus"+s,CLICK_DATA_API:"click"+s+l,UPDATE:"update"+s,ERROR:"error"+s,HIDE:"hide"+s,SHOW:"show"+s},h=[{CLASS_NAME:"days",NAV_FUNCTION:"M",NAV_STEP:1},{CLASS_NAME:"months",NAV_FUNCTION:"y",NAV_STEP:1},{CLASS_NAME:"years",NAV_FUNCTION:"y",NAV_STEP:10},{CLASS_NAME:"decades",NAV_FUNCTION:"y",NAV_STEP:100}],f={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},p=["times","days","months","years","decades"],m={},g={},v={timeZone:-39,format:-38,dayViewHeaderFormat:-37,extraFormats:-36,stepping:-35,minDate:-34,maxDate:-33,useCurrent:-32,collapse:-31,locale:-30,defaultDate:-29,disabledDates:-28,enabledDates:-27,icons:-26,tooltips:-25,useStrict:-24,sideBySide:-23,daysOfWeekDisabled:-22,calendarWeeks:-21,viewMode:-20,toolbarPlacement:-19,buttons:-18,widgetPositioning:-17,widgetParent:-16,ignoreReadonly:-15,keepOpen:-14,focusOnShow:-13,inline:-12,keepInvalid:-11,keyBinds:-10,debug:-9,allowInputToggle:-8,disabledTimeIntervals:-7,disabledHours:-6,enabledHours:-5,viewDate:-4,allowMultidate:-3,multidateSeparator:-2,updateOnlyThroughDateOption:-1,date:1},y={time:"clock",date:"calendar",up:"arrow-up",down:"arrow-down",previous:"arrow-left",next:"arrow-right",today:"arrow-down-circle",clear:"trash-2",close:"x"};function b(t,e){return v[t]&&v[e]?v[t]<0&&v[e]<0?Math.abs(v[e])-Math.abs(v[t]):v[t]<0?-1:v[e]<0?1:v[t]-v[e]:v[t]?v[t]:v[e]?v[e]:0}var _={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:i.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{type:"class",time:"fa fa-clock-o",date:"fa fa-calendar",up:"fa fa-arrow-up",down:"fa fa-arrow-down",previous:"fa fa-chevron-left",next:"fa fa-chevron-right",today:"fa fa-calendar-check-o",clear:"fa fa-trash",close:"fa fa-times"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time",selectDate:"Select Date"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",buttons:{showToday:!1,showClear:!1,showClose:!1},widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,readonly:!1,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,keyBinds:{up:function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m")),!0},down:function(){if(!this.widget)return this.show(),!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m")),!0},"control up":function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h")),!0},"control down":function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h")),!0},left:function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d")),!0},right:function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d")),!0},pageUp:function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M")),!0},pageDown:function(){if(!this.widget)return!1;var t=this._dates[0]||this.getMoment();return this.widget.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M")),!0},enter:function(){return!!this.widget&&(this.hide(),!0)},escape:function(){return!!this.widget&&(this.hide(),!0)},"control space":function(){return!!this.widget&&(this.widget.find(".timepicker").is(":visible")&&this.widget.find('.btn[data-action="togglePeriod"]').click(),!0)},t:function(){return!!this.widget&&(this.date(this.getMoment()),!0)},delete:function(){return!!this.widget&&(this.clear(),!0)}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1,allowMultidate:!1,multidateSeparator:", ",updateOnlyThroughDateOption:!1,promptTimeOnDateChange:!1,promptTimeOnDateChangeTransitionDelay:200};return function(){function v(t,e){this._options=this._getOptions(e),this._element=t,this._dates=[],this._datesFormatted=[],this._viewDate=null,this.unset=!0,this.component=!1,this.widget=!1,this.use24Hours=null,this.actualFormat=null,this.parseFormats=null,this.currentViewMode=null,this.MinViewModeNumber=0,this.isInitFormatting=!1,this.isInit=!1,this.isDateUpdateThroughDateOptionFromClientCode=!1,this.hasInitDate=!1,this.initDate=void 0,this._notifyChangeEventContext=void 0,this._currentPromptTimeTimeout=null,this._int()}var x,w,k,S=v.prototype;return S._int=function(){this.isInit=!0;var t=this._element.data("target-input");this._element.is("input")?this.input=this._element:void 0!==t&&(this.input="nearest"===t?this._element.find("input"):e(t)),this._dates=[],this._dates[0]=this.getMoment(),this._viewDate=this.getMoment().clone(),e.extend(!0,this._options,this._dataToOptions()),this.hasInitDate=!1,this.initDate=void 0,this.options(this._options),this.isInitFormatting=!0,this._initFormatting(),this.isInitFormatting=!1,void 0!==this.input&&this.input.is("input")&&0!==this.input.val().trim().length?this._setValue(this._parseInputDate(this.input.val().trim()),0):this._options.defaultDate&&void 0!==this.input&&void 0===this.input.attr("placeholder")&&this._setValue(this._options.defaultDate,0),this.hasInitDate&&this.date(this.initDate),this._options.inline&&this.show(),this.isInit=!1},S._update=function(){this.widget&&(this._fillDate(),this._fillTime())},S._setValue=function(t,e){var i=void 0===e,n=!t&&i,r=this.isDateUpdateThroughDateOptionFromClientCode,o=!this.isInit&&this._options.updateOnlyThroughDateOption&&!r,s="",l=!1,c=this.unset?null:this._dates[e];if(!c&&!this.unset&&i&&n&&(c=this._dates[this._dates.length-1]),!t)return o?void this._notifyEvent({type:v.Event.CHANGE,date:t,oldDate:c,isClear:n,isInvalid:l,isDateUpdateThroughDateOptionFromClientCode:r,isInit:this.isInit}):(!this._options.allowMultidate||1===this._dates.length||n?(this.unset=!0,this._dates=[],this._datesFormatted=[]):(s=""+this._element.data("date")+this._options.multidateSeparator,s=c&&s.replace(""+c.format(this.actualFormat)+this._options.multidateSeparator,"").replace(""+this._options.multidateSeparator+this._options.multidateSeparator,"").replace(new RegExp(this._options.multidateSeparator.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")+"\\s*$"),"")||"",this._dates.splice(e,1),this._datesFormatted.splice(e,1)),s=a(s),void 0!==this.input&&(this.input.val(s),this.input.trigger("input")),this._element.data("date",s),this._notifyEvent({type:v.Event.CHANGE,date:!1,oldDate:c,isClear:n,isInvalid:l,isDateUpdateThroughDateOptionFromClientCode:r,isInit:this.isInit}),void this._update());if(t=t.clone().locale(this._options.locale),this._hasTimeZone()&&t.tz(this._options.timeZone),1!==this._options.stepping&&t.minutes(Math.round(t.minutes()/this._options.stepping)*this._options.stepping).seconds(0),this._isValid(t)){if(o)return void this._notifyEvent({type:v.Event.CHANGE,date:t.clone(),oldDate:c,isClear:n,isInvalid:l,isDateUpdateThroughDateOptionFromClientCode:r,isInit:this.isInit});if(this._dates[e]=t,this._datesFormatted[e]=t.format("YYYY-MM-DD"),this._viewDate=t.clone(),this._options.allowMultidate&&this._dates.length>1){for(var u=0;u<this._dates.length;u++)s+=""+this._dates[u].format(this.actualFormat)+this._options.multidateSeparator;s=s.replace(new RegExp(this._options.multidateSeparator+"\\s*$"),"")}else s=this._dates[e].format(this.actualFormat);s=a(s),void 0!==this.input&&(this.input.val(s),this.input.trigger("input")),this._element.data("date",s),this.unset=!1,this._update(),this._notifyEvent({type:v.Event.CHANGE,date:this._dates[e].clone(),oldDate:c,isClear:n,isInvalid:l,isDateUpdateThroughDateOptionFromClientCode:r,isInit:this.isInit})}else l=!0,this._options.keepInvalid?this._notifyEvent({type:v.Event.CHANGE,date:t,oldDate:c,isClear:n,isInvalid:l,isDateUpdateThroughDateOptionFromClientCode:r,isInit:this.isInit}):void 0!==this.input&&(this.input.val(""+(this.unset?"":this._dates[e].format(this.actualFormat))),this.input.trigger("input")),this._notifyEvent({type:v.Event.ERROR,date:t,oldDate:c})},S._change=function(t){var i=e(t.target).val().trim(),n=i?this._parseInputDate(i):null;return this._setValue(n,0),t.stopImmediatePropagation(),!1},S._getOptions=function(t){return t=e.extend(!0,{},_,t&&t.icons&&"feather"===t.icons.type?{icons:y}:{},t)},S._hasTimeZone=function(){return void 0!==i.tz&&void 0!==this._options.timeZone&&null!==this._options.timeZone&&""!==this._options.timeZone},S._isEnabled=function(t){if("string"!=typeof t||t.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(t){case"y":return-1!==this.actualFormat.indexOf("Y");case"M":return-1!==this.actualFormat.indexOf("M");case"d":return-1!==this.actualFormat.toLowerCase().indexOf("d");case"h":case"H":return-1!==this.actualFormat.toLowerCase().indexOf("h");case"m":return-1!==this.actualFormat.indexOf("m");case"s":return-1!==this.actualFormat.indexOf("s");case"a":case"A":return-1!==this.actualFormat.toLowerCase().indexOf("a");default:return!1}},S._hasTime=function(){return this._isEnabled("h")||this._isEnabled("m")||this._isEnabled("s")},S._hasDate=function(){return this._isEnabled("y")||this._isEnabled("M")||this._isEnabled("d")},S._dataToOptions=function(){var t=this._element.data(),i={};return t.dateOptions&&t.dateOptions instanceof Object&&(i=e.extend(!0,i,t.dateOptions)),e.each(this._options,(function(e){var n="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[n]?i[e]=t[n]:delete i[e]})),i},S._format=function(){return this._options.format||"YYYY-MM-DD HH:mm"},S._areSameDates=function(t,e){var n=this._format();return t&&e&&(t.isSame(e)||i(t.format(n),n).isSame(i(e.format(n),n)))},S._notifyEvent=function(t){if(t.type===v.Event.CHANGE){if(this._notifyChangeEventContext=this._notifyChangeEventContext||0,this._notifyChangeEventContext++,t.date&&this._areSameDates(t.date,t.oldDate)||!t.isClear&&!t.date&&!t.oldDate||this._notifyChangeEventContext>1)return void(this._notifyChangeEventContext=void 0);this._handlePromptTimeIfNeeded(t)}this._element.trigger(t),this._notifyChangeEventContext=void 0},S._handlePromptTimeIfNeeded=function(t){if(this._options.promptTimeOnDateChange){if(!t.oldDate&&this._options.useCurrent)return;if(t.oldDate&&t.date&&(t.oldDate.format("YYYY-MM-DD")===t.date.format("YYYY-MM-DD")||t.oldDate.format("YYYY-MM-DD")!==t.date.format("YYYY-MM-DD")&&t.oldDate.format("HH:mm:ss")!==t.date.format("HH:mm:ss")))return;var e=this;clearTimeout(this._currentPromptTimeTimeout),this._currentPromptTimeTimeout=setTimeout((function(){e.widget&&e.widget.find('[data-action="togglePicker"]').click()}),this._options.promptTimeOnDateChangeTransitionDelay)}},S._viewUpdate=function(t){"y"===t&&(t="YYYY"),this._notifyEvent({type:v.Event.UPDATE,change:t,viewDate:this._viewDate.clone()})},S._showMode=function(t){this.widget&&(t&&(this.currentViewMode=Math.max(this.MinViewModeNumber,Math.min(3,this.currentViewMode+t))),this.widget.find(".datepicker > div").hide().filter(".datepicker-"+h[this.currentViewMode].CLASS_NAME).show())},S._isInDisabledDates=function(t){return!0===this._options.disabledDates[t.format("YYYY-MM-DD")]},S._isInEnabledDates=function(t){return!0===this._options.enabledDates[t.format("YYYY-MM-DD")]},S._isInDisabledHours=function(t){return!0===this._options.disabledHours[t.format("H")]},S._isInEnabledHours=function(t){return!0===this._options.enabledHours[t.format("H")]},S._isValid=function(t,i){if(!t||!t.isValid())return!1;if(this._options.disabledDates&&"d"===i&&this._isInDisabledDates(t))return!1;if(this._options.enabledDates&&"d"===i&&!this._isInEnabledDates(t))return!1;if(this._options.minDate&&t.isBefore(this._options.minDate,i))return!1;if(this._options.maxDate&&t.isAfter(this._options.maxDate,i))return!1;if(this._options.daysOfWeekDisabled&&"d"===i&&-1!==this._options.daysOfWeekDisabled.indexOf(t.day()))return!1;if(this._options.disabledHours&&("h"===i||"m"===i||"s"===i)&&this._isInDisabledHours(t))return!1;if(this._options.enabledHours&&("h"===i||"m"===i||"s"===i)&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&("h"===i||"m"===i||"s"===i)){var n=!1;if(e.each(this._options.disabledTimeIntervals,(function(){if(t.isBetween(this[0],this[1]))return n=!0,!1})),n)return!1}return!0},S._parseInputDate=function(t,e){var n=(void 0===e?{}:e).isPickerShow,a=void 0!==n&&n;return void 0===this._options.parseInputDate||a?i.isMoment(t)||(t=this.getMoment(t)):t=this._options.parseInputDate(t),t},S._keydown=function(t){var e,i,n,a,r=null,o=[],s={},l=t.which;for(e in m[l]="p",m)m.hasOwnProperty(e)&&"p"===m[e]&&(o.push(e),parseInt(e,10)!==l&&(s[e]=!0));for(e in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(e)&&"function"==typeof this._options.keyBinds[e]&&(n=e.split(" ")).length===o.length&&f[l]===n[n.length-1]){for(a=!0,i=n.length-2;i>=0;i--)if(!(f[n[i]]in s)){a=!1;break}if(a){r=this._options.keyBinds[e];break}}r&&r.call(this)&&(t.stopPropagation(),t.preventDefault())},S._keyup=function(t){m[t.which]="r",g[t.which]&&(g[t.which]=!1,t.stopPropagation(),t.preventDefault())},S._indexGivenDates=function(t){var i={},n=this;return e.each(t,(function(){var t=n._parseInputDate(this);t.isValid()&&(i[t.format("YYYY-MM-DD")]=!0)})),!!Object.keys(i).length&&i},S._indexGivenHours=function(t){var i={};return e.each(t,(function(){i[this]=!0})),!!Object.keys(i).length&&i},S._initFormatting=function(){var t=this._options.format||"L LT",e=this;this.actualFormat=t.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,(function(t){return(e.isInitFormatting&&null===e._options.date?e.getMoment():e._dates[0]).localeData().longDateFormat(t)||t})),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(t)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat),this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1,this._isEnabled("y")&&(this.MinViewModeNumber=2),this._isEnabled("M")&&(this.MinViewModeNumber=1),this._isEnabled("d")&&(this.MinViewModeNumber=0),this.currentViewMode=Math.max(this.MinViewModeNumber,this.currentViewMode),this.unset||this._setValue(this._dates[0],0)},S._getLastPickedDate=function(){var t=this._dates[this._getLastPickedDateIndex()];return!t&&this._options.allowMultidate&&(t=i(new Date)),t},S._getLastPickedDateIndex=function(){return this._dates.length-1},S.getMoment=function(t){var e;return e=null==t?i().clone().locale(this._options.locale):this._hasTimeZone()?i.tz(t,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):i(t,this.parseFormats,this._options.locale,this._options.useStrict),this._hasTimeZone()&&e.tz(this._options.timeZone),e},S.toggle=function(){return this.widget?this.hide():this.show()},S.readonly=function(t){if(0===arguments.length)return this._options.readonly;if("boolean"!=typeof t)throw new TypeError("readonly() expects a boolean parameter");this._options.readonly=t,void 0!==this.input&&this.input.prop("readonly",this._options.readonly),this.widget&&(this.hide(),this.show())},S.ignoreReadonly=function(t){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly() expects a boolean parameter");this._options.ignoreReadonly=t},S.options=function(t){if(0===arguments.length)return e.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");e.extend(!0,this._options,t);var i=this,n=Object.keys(this._options).sort(b);e.each(n,(function(t,e){var n=i._options[e];if(void 0!==i[e]){if(i.isInit&&"date"===e)return i.hasInitDate=!0,void(i.initDate=n);i[e](n)}}))},S.date=function(t,e){if(e=e||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[e].clone();if(!(null===t||"string"==typeof t||i.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");"string"==typeof t&&n(t)&&(t=new Date(t)),this._setValue(null===t?null:this._parseInputDate(t),e)},S.updateOnlyThroughDateOption=function(t){if("boolean"!=typeof t)throw new TypeError("updateOnlyThroughDateOption() expects a boolean parameter");this._options.updateOnlyThroughDateOption=t},S.format=function(t){if(0===arguments.length)return this._options.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);this._options.format=t,this.actualFormat&&this._initFormatting()},S.timeZone=function(t){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=t},S.dayViewHeaderFormat=function(t){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=t},S.extraFormats=function(t){if(0===arguments.length)return this._options.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=t,this.parseFormats&&this._initFormatting()},S.disabledDates=function(t){if(0===arguments.length)return this._options.disabledDates?e.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t),this._options.enabledDates=!1,this._update()},S.enabledDates=function(t){if(0===arguments.length)return this._options.enabledDates?e.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t),this._options.disabledDates=!1,this._update()},S.daysOfWeekDisabled=function(t){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=t.reduce((function(t,e){return(e=parseInt(e,10))>6||e<0||isNaN(e)||-1===t.indexOf(e)&&t.push(e),t}),[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var e=0;e<this._dates.length;e++){for(var i=0;!this._isValid(this._dates[e],"d");){if(this._dates[e].add(1,"d"),31===i)throw"Tried 31 times to find a valid date";i++}this._setValue(this._dates[e],e)}this._update()},S.maxDate=function(t){if(0===arguments.length)return this._options.maxDate?this._options.maxDate.clone():this._options.maxDate;if("boolean"==typeof t&&!1===t)return this._options.maxDate=!1,this._update(),!0;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=this.getMoment()));var e=this._parseInputDate(t);if(!e.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+t);if(this._options.minDate&&e.isBefore(this._options.minDate))throw new TypeError("maxDate() date parameter is before this.options.minDate: "+e.format(this.actualFormat));this._options.maxDate=e;for(var i=0;i<this._dates.length;i++)this._options.useCurrent&&!this._options.keepInvalid&&this._dates[i].isAfter(t)&&this._setValue(this._options.maxDate,i);this._viewDate.isAfter(e)&&(this._viewDate=e.clone().subtract(this._options.stepping,"m")),this._update()},S.minDate=function(t){if(0===arguments.length)return this._options.minDate?this._options.minDate.clone():this._options.minDate;if("boolean"==typeof t&&!1===t)return this._options.minDate=!1,this._update(),!0;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=this.getMoment()));var e=this._parseInputDate(t);if(!e.isValid())throw new TypeError("minDate() Could not parse date parameter: "+t);if(this._options.maxDate&&e.isAfter(this._options.maxDate))throw new TypeError("minDate() date parameter is after this.options.maxDate: "+e.format(this.actualFormat));this._options.minDate=e;for(var i=0;i<this._dates.length;i++)this._options.useCurrent&&!this._options.keepInvalid&&this._dates[i].isBefore(t)&&this._setValue(this._options.minDate,i);this._viewDate.isBefore(e)&&(this._viewDate=e.clone().add(this._options.stepping,"m")),this._update()},S.defaultDate=function(t){if(0===arguments.length)return this._options.defaultDate?this._options.defaultDate.clone():this._options.defaultDate;if(!t)return this._options.defaultDate=!1,!0;"string"==typeof t&&(t="now"===t||"moment"===t?this.getMoment():this.getMoment(t));var e=this._parseInputDate(t);if(!e.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+t);if(!this._isValid(e))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");this._options.defaultDate=e,(this._options.defaultDate&&this._options.inline||void 0!==this.input&&""===this.input.val().trim())&&this._setValue(this._options.defaultDate,0)},S.locale=function(t){if(0===arguments.length)return this._options.locale;if(!i.localeData(t))throw new TypeError("locale() locale "+t+" is not loaded from moment locales!");this._options.locale=t;for(var e=0;e<this._dates.length;e++)this._dates[e].locale(this._options.locale);this._viewDate.locale(this._options.locale),this.actualFormat&&this._initFormatting(),this.widget&&(this.hide(),this.show())},S.stepping=function(t){if(0===arguments.length)return this._options.stepping;t=parseInt(t,10),(isNaN(t)||t<1)&&(t=1),this._options.stepping=t},S.useCurrent=function(t){var e=["year","month","day","hour","minute"];if(0===arguments.length)return this._options.useCurrent;if("boolean"!=typeof t&&"string"!=typeof t)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof t&&-1===e.indexOf(t.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+e.join(", "));this._options.useCurrent=t},S.collapse=function(t){if(0===arguments.length)return this._options.collapse;if("boolean"!=typeof t)throw new TypeError("collapse() expects a boolean parameter");if(this._options.collapse===t)return!0;this._options.collapse=t,this.widget&&(this.hide(),this.show())},S.icons=function(t){if(0===arguments.length)return e.extend({},this._options.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");e.extend(this._options.icons,t),this.widget&&(this.hide(),this.show())},S.tooltips=function(t){if(0===arguments.length)return e.extend({},this._options.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");e.extend(this._options.tooltips,t),this.widget&&(this.hide(),this.show())},S.useStrict=function(t){if(0===arguments.length)return this._options.useStrict;if("boolean"!=typeof t)throw new TypeError("useStrict() expects a boolean parameter");this._options.useStrict=t},S.sideBySide=function(t){if(0===arguments.length)return this._options.sideBySide;if("boolean"!=typeof t)throw new TypeError("sideBySide() expects a boolean parameter");this._options.sideBySide=t,this.widget&&(this.hide(),this.show())},S.viewMode=function(t){if(0===arguments.length)return this._options.viewMode;if("string"!=typeof t)throw new TypeError("viewMode() expects a string parameter");if(-1===v.ViewModes.indexOf(t))throw new TypeError("viewMode() parameter must be one of ("+v.ViewModes.join(", ")+") value");this._options.viewMode=t,this.currentViewMode=Math.max(v.ViewModes.indexOf(t)-1,this.MinViewModeNumber),this._showMode()},S.calendarWeeks=function(t){if(0===arguments.length)return this._options.calendarWeeks;if("boolean"!=typeof t)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");this._options.calendarWeeks=t,this._update()},S.buttons=function(t){if(0===arguments.length)return e.extend({},this._options.buttons);if(!(t instanceof Object))throw new TypeError("buttons() expects parameter to be an Object");if(e.extend(this._options.buttons,t),"boolean"!=typeof this._options.buttons.showToday)throw new TypeError("buttons.showToday expects a boolean parameter");if("boolean"!=typeof this._options.buttons.showClear)throw new TypeError("buttons.showClear expects a boolean parameter");if("boolean"!=typeof this._options.buttons.showClose)throw new TypeError("buttons.showClose expects a boolean parameter");this.widget&&(this.hide(),this.show())},S.keepOpen=function(t){if(0===arguments.length)return this._options.keepOpen;if("boolean"!=typeof t)throw new TypeError("keepOpen() expects a boolean parameter");this._options.keepOpen=t},S.focusOnShow=function(t){if(0===arguments.length)return this._options.focusOnShow;if("boolean"!=typeof t)throw new TypeError("focusOnShow() expects a boolean parameter");this._options.focusOnShow=t},S.inline=function(t){if(0===arguments.length)return this._options.inline;if("boolean"!=typeof t)throw new TypeError("inline() expects a boolean parameter");this._options.inline=t},S.clear=function(){this._setValue(null)},S.keyBinds=function(t){if(0===arguments.length)return this._options.keyBinds;this._options.keyBinds=t},S.debug=function(t){if("boolean"!=typeof t)throw new TypeError("debug() expects a boolean parameter");this._options.debug=t},S.allowInputToggle=function(t){if(0===arguments.length)return this._options.allowInputToggle;if("boolean"!=typeof t)throw new TypeError("allowInputToggle() expects a boolean parameter");this._options.allowInputToggle=t},S.keepInvalid=function(t){if(0===arguments.length)return this._options.keepInvalid;if("boolean"!=typeof t)throw new TypeError("keepInvalid() expects a boolean parameter");this._options.keepInvalid=t},S.datepickerInput=function(t){if(0===arguments.length)return this._options.datepickerInput;if("string"!=typeof t)throw new TypeError("datepickerInput() expects a string parameter");this._options.datepickerInput=t},S.parseInputDate=function(t){if(0===arguments.length)return this._options.parseInputDate;if("function"!=typeof t)throw new TypeError("parseInputDate() should be as function");this._options.parseInputDate=t},S.disabledTimeIntervals=function(t){if(0===arguments.length)return this._options.disabledTimeIntervals?e.extend({},this._options.disabledTimeIntervals):this._options.disabledTimeIntervals;if(!t)return this._options.disabledTimeIntervals=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");this._options.disabledTimeIntervals=t,this._update()},S.disabledHours=function(t){if(0===arguments.length)return this._options.disabledHours?e.extend({},this._options.disabledHours):this._options.disabledHours;if(!t)return this._options.disabledHours=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(this._options.disabledHours=this._indexGivenHours(t),this._options.enabledHours=!1,this._options.useCurrent&&!this._options.keepInvalid)for(var i=0;i<this._dates.length;i++){for(var n=0;!this._isValid(this._dates[i],"h");){if(this._dates[i].add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}this._setValue(this._dates[i],i)}this._update()},S.enabledHours=function(t){if(0===arguments.length)return this._options.enabledHours?e.extend({},this._options.enabledHours):this._options.enabledHours;if(!t)return this._options.enabledHours=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(this._options.enabledHours=this._indexGivenHours(t),this._options.disabledHours=!1,this._options.useCurrent&&!this._options.keepInvalid)for(var i=0;i<this._dates.length;i++){for(var n=0;!this._isValid(this._dates[i],"h");){if(this._dates[i].add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}this._setValue(this._dates[i],i)}this._update()},S.viewDate=function(t){if(0===arguments.length)return this._viewDate.clone();if(!t)return this._viewDate=(this._dates[0]||this.getMoment()).clone(),!0;if(!("string"==typeof t||i.isMoment(t)||t instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");this._viewDate=this._parseInputDate(t),this._update(),this._viewUpdate(h[this.currentViewMode]&&h[this.currentViewMode].NAV_FUNCTION)},S._fillDate=function(){},S._useFeatherIcons=function(){return"feather"===this._options.icons.type},S.allowMultidate=function(t){if("boolean"!=typeof t)throw new TypeError("allowMultidate() expects a boolean parameter");this._options.allowMultidate=t},S.multidateSeparator=function(t){if(0===arguments.length)return this._options.multidateSeparator;if("string"!=typeof t)throw new TypeError("multidateSeparator expects a string parameter");this._options.multidateSeparator=t},x=v,k=[{key:"NAME",get:function(){return r}},{key:"DATA_KEY",get:function(){return o}},{key:"EVENT_KEY",get:function(){return s}},{key:"DATA_API_KEY",get:function(){return l}},{key:"DatePickerModes",get:function(){return h}},{key:"ViewModes",get:function(){return p}},{key:"Event",get:function(){return d}},{key:"Selector",get:function(){return c}},{key:"Default",get:function(){return _},set:function(t){_=t}},{key:"ClassName",get:function(){return u}}],(w=null)&&t(x.prototype,w),k&&t(x,k),v}()}(jQuery,moment);!function(t){var i=t.fn[e.NAME],n=["top","bottom","auto"],a=["left","right","auto"],r=["default","top","bottom"],o=function(i){var n,a=i.data("target");return a||(a=i.attr("href")||"",a=/^#[a-z]/i.test(a)?a:null),0===(n=t(a)).length?i:(n.data(e.DATA_KEY)||t.extend({},n.data(),t(this).data()),n)},s=function(i){var o,s;function l(t,e){var n;return(n=i.call(this,t,e)||this)._init(),n}s=i,(o=l).prototype=Object.create(s.prototype),o.prototype.constructor=o,o.__proto__=s;var c=l.prototype;return c._init=function(){if(this._element.hasClass("input-group")){var t=this._element.find(".datepickerbutton");0===t.length?this.component=this._element.find('[data-toggle="datetimepicker"]'):this.component=t}},c._iconTag=function(e){return"undefined"!=typeof feather&&this._useFeatherIcons()&&feather.icons[e]?t("<span>").html(feather.icons[e].toSvg()):t("<span>").addClass(e)},c._getDatePickerTemplate=function(){var e=t("<thead>").append(t("<tr>").append(t("<th>").addClass("prev").attr("data-action","previous").append(this._iconTag(this._options.icons.previous))).append(t("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",this._options.calendarWeeks?"6":"5")).append(t("<th>").addClass("next").attr("data-action","next").append(this._iconTag(this._options.icons.next)))),i=t("<tbody>").append(t("<tr>").append(t("<td>").attr("colspan",this._options.calendarWeeks?"8":"7")));return[t("<div>").addClass("datepicker-days").append(t("<table>").addClass("table table-sm").append(e).append(t("<tbody>"))),t("<div>").addClass("datepicker-months").append(t("<table>").addClass("table-condensed").append(e.clone()).append(i.clone())),t("<div>").addClass("datepicker-years").append(t("<table>").addClass("table-condensed").append(e.clone()).append(i.clone())),t("<div>").addClass("datepicker-decades").append(t("<table>").addClass("table-condensed").append(e.clone()).append(i.clone()))]},c._getTimePickerMainTemplate=function(){var e=t("<tr>"),i=t("<tr>"),n=t("<tr>");return this._isEnabled("h")&&(e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(this._iconTag(this._options.icons.up)))),i.append(t("<td>").append(t("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:this._options.tooltips.pickHour}).attr("data-action","showHours"))),n.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(this._iconTag(this._options.icons.down))))),this._isEnabled("m")&&(this._isEnabled("h")&&(e.append(t("<td>").addClass("separator")),i.append(t("<td>").addClass("separator").html(":")),n.append(t("<td>").addClass("separator"))),e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(this._iconTag(this._options.icons.up)))),i.append(t("<td>").append(t("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:this._options.tooltips.pickMinute}).attr("data-action","showMinutes"))),n.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(this._iconTag(this._options.icons.down))))),this._isEnabled("s")&&(this._isEnabled("m")&&(e.append(t("<td>").addClass("separator")),i.append(t("<td>").addClass("separator").html(":")),n.append(t("<td>").addClass("separator"))),e.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(this._iconTag(this._options.icons.up)))),i.append(t("<td>").append(t("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:this._options.tooltips.pickSecond}).attr("data-action","showSeconds"))),n.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(this._iconTag(this._options.icons.down))))),this.use24Hours||(e.append(t("<td>").addClass("separator")),i.append(t("<td>").append(t("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:this._options.tooltips.togglePeriod}))),n.append(t("<td>").addClass("separator"))),t("<div>").addClass("timepicker-picker").append(t("<table>").addClass("table-condensed").append([e,i,n]))},c._getTimePickerTemplate=function(){var e=t("<div>").addClass("timepicker-hours").append(t("<table>").addClass("table-condensed")),i=t("<div>").addClass("timepicker-minutes").append(t("<table>").addClass("table-condensed")),n=t("<div>").addClass("timepicker-seconds").append(t("<table>").addClass("table-condensed")),a=[this._getTimePickerMainTemplate()];return this._isEnabled("h")&&a.push(e),this._isEnabled("m")&&a.push(i),this._isEnabled("s")&&a.push(n),a},c._getToolbar=function(){var e,i,n=[];(this._options.buttons.showToday&&n.push(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1","data-action":"today",title:this._options.tooltips.today}).append(this._iconTag(this._options.icons.today)))),!this._options.sideBySide&&this._options.collapse&&this._hasDate()&&this._hasTime())&&("times"===this._options.viewMode?(e=this._options.tooltips.selectDate,i=this._options.icons.date):(e=this._options.tooltips.selectTime,i=this._options.icons.time),n.push(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1","data-action":"togglePicker",title:e}).append(this._iconTag(i)))));return this._options.buttons.showClear&&n.push(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1","data-action":"clear",title:this._options.tooltips.clear}).append(this._iconTag(this._options.icons.clear)))),this._options.buttons.showClose&&n.push(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1","data-action":"close",title:this._options.tooltips.close}).append(this._iconTag(this._options.icons.close)))),0===n.length?"":t("<table>").addClass("table-condensed").append(t("<tbody>").append(t("<tr>").append(n)))},c._getTemplate=function(){var e=t("<div>").addClass(("bootstrap-datetimepicker-widget dropdown-menu "+(this._options.calendarWeeks?"tempusdominus-bootstrap-datetimepicker-widget-with-calendar-weeks":"")+" "+(this._useFeatherIcons()?"tempusdominus-bootstrap-datetimepicker-widget-with-feather-icons":"")+" ").trim()),i=t("<div>").addClass("datepicker").append(this._getDatePickerTemplate()),n=t("<div>").addClass("timepicker").append(this._getTimePickerTemplate()),a=t("<ul>").addClass("list-unstyled"),r=t("<li>").addClass(("picker-switch"+(this._options.collapse?" accordion-toggle":"")+" "+(this._useFeatherIcons()?"picker-switch-with-feathers-icons":"")).trim()).append(this._getToolbar());return this._options.inline&&e.removeClass("dropdown-menu"),this.use24Hours&&e.addClass("usetwentyfour"),(void 0!==this.input&&this.input.prop("readonly")||this._options.readonly)&&e.addClass("bootstrap-datetimepicker-widget-readonly"),this._isEnabled("s")&&!this.use24Hours&&e.addClass("wider"),this._options.sideBySide&&this._hasDate()&&this._hasTime()?(e.addClass("timepicker-sbs"),"top"===this._options.toolbarPlacement&&e.append(r),e.append(t("<div>").addClass("row").append(i.addClass("col-md-6")).append(n.addClass("col-md-6"))),"bottom"!==this._options.toolbarPlacement&&"default"!==this._options.toolbarPlacement||e.append(r),e):("top"===this._options.toolbarPlacement&&a.append(r),this._hasDate()&&a.append(t("<li>").addClass(this._options.collapse&&this._hasTime()?"collapse":"").addClass(this._options.collapse&&this._hasTime()&&"times"===this._options.viewMode?"":"show").append(i)),"default"===this._options.toolbarPlacement&&a.append(r),this._hasTime()&&a.append(t("<li>").addClass(this._options.collapse&&this._hasDate()?"collapse":"").addClass(this._options.collapse&&this._hasDate()&&"times"===this._options.viewMode?"show":"").append(n)),"bottom"===this._options.toolbarPlacement&&a.append(r),e.append(a))},c._place=function(e){var i,n=e&&e.data&&e.data.picker||this,a=n._options.widgetPositioning.vertical,r=n._options.widgetPositioning.horizontal,o=(n.component&&n.component.length?n.component:n._element).position(),s=(n.component&&n.component.length?n.component:n._element).offset();if(n._options.widgetParent)i=n._options.widgetParent.append(n.widget);else if(n._element.is("input"))i=n._element.after(n.widget).parent();else{if(n._options.inline)return void(i=n._element.append(n.widget));i=n._element,n._element.children().first().after(n.widget)}if("auto"===a&&(a=s.top+1.5*n.widget.height()>=t(window).height()+t(window).scrollTop()&&n.widget.height()+n._element.outerHeight()<s.top?"top":"bottom"),"auto"===r&&(r=i.width()<s.left+n.widget.outerWidth()/2&&s.left+n.widget.outerWidth()>t(window).width()?"right":"left"),"top"===a?n.widget.addClass("top").removeClass("bottom"):n.widget.addClass("bottom").removeClass("top"),"right"===r?n.widget.addClass("float-right"):n.widget.removeClass("float-right"),"relative"!==i.css("position")&&(i=i.parents().filter((function(){return"relative"===t(this).css("position")})).first()),0===i.length)throw new Error("datetimepicker component should be placed within a relative positioned container");n.widget.css({top:"top"===a?"auto":o.top+n._element.outerHeight()+"px",bottom:"top"===a?i.outerHeight()-(i===n._element?0:o.top)+"px":"auto",left:"left"===r?(i===n._element?0:o.left)+"px":"auto",right:"left"===r?"auto":i.outerWidth()-n._element.outerWidth()-(i===n._element?0:o.left)+"px"})},c._fillDow=function(){var e=t("<tr>"),i=this._viewDate.clone().startOf("w").startOf("d");for(!0===this._options.calendarWeeks&&e.append(t("<th>").addClass("cw").text("#"));i.isBefore(this._viewDate.clone().endOf("w"));)e.append(t("<th>").addClass("dow").text(i.format("dd"))),i.add(1,"d");this.widget.find(".datepicker-days thead").append(e)},c._fillMonths=function(){for(var e=[],i=this._viewDate.clone().startOf("y").startOf("d");i.isSame(this._viewDate,"y");)e.push(t("<span>").attr("data-action","selectMonth").addClass("month").text(i.format("MMM"))),i.add(1,"M");this.widget.find(".datepicker-months td").empty().append(e)},c._updateMonths=function(){var e=this.widget.find(".datepicker-months"),i=e.find("th"),n=e.find("tbody").find("span"),a=this,r=this._getLastPickedDate();i.eq(0).find("span").attr("title",this._options.tooltips.prevYear),i.eq(1).attr("title",this._options.tooltips.selectYear),i.eq(2).find("span").attr("title",this._options.tooltips.nextYear),e.find(".disabled").removeClass("disabled"),this._isValid(this._viewDate.clone().subtract(1,"y"),"y")||i.eq(0).addClass("disabled"),i.eq(1).text(this._viewDate.year()),this._isValid(this._viewDate.clone().add(1,"y"),"y")||i.eq(2).addClass("disabled"),n.removeClass("active"),r&&r.isSame(this._viewDate,"y")&&!this.unset&&n.eq(r.month()).addClass("active"),n.each((function(e){a._isValid(a._viewDate.clone().month(e),"M")||t(this).addClass("disabled")}))},c._getStartEndYear=function(t,e){var i=t/10,n=Math.floor(e/t)*t;return[n,n+9*i,Math.floor(e/i)*i]},c._updateYears=function(){var t=this.widget.find(".datepicker-years"),e=t.find("th"),i=this._getStartEndYear(10,this._viewDate.year()),n=this._viewDate.clone().year(i[0]),a=this._viewDate.clone().year(i[1]),r="";for(e.eq(0).find("span").attr("title",this._options.tooltips.prevDecade),e.eq(1).attr("title",this._options.tooltips.selectDecade),e.eq(2).find("span").attr("title",this._options.tooltips.nextDecade),t.find(".disabled").removeClass("disabled"),this._options.minDate&&this._options.minDate.isAfter(n,"y")&&e.eq(0).addClass("disabled"),e.eq(1).text(n.year()+"-"+a.year()),this._options.maxDate&&this._options.maxDate.isBefore(a,"y")&&e.eq(2).addClass("disabled"),r+='<span data-action="selectYear" class="year old'+(this._isValid(n,"y")?"":" disabled")+'">'+(n.year()-1)+"</span>";!n.isAfter(a,"y");)r+='<span data-action="selectYear" class="year'+(n.isSame(this._getLastPickedDate(),"y")&&!this.unset?" active":"")+(this._isValid(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");r+='<span data-action="selectYear" class="year old'+(this._isValid(n,"y")?"":" disabled")+'">'+n.year()+"</span>",t.find("td").html(r)},c._updateDecades=function(){var t,e=this.widget.find(".datepicker-decades"),i=e.find("th"),n=this._getStartEndYear(100,this._viewDate.year()),a=this._viewDate.clone().year(n[0]),r=this._viewDate.clone().year(n[1]),o=this._getLastPickedDate(),s=!1,l=!1,c="";for(i.eq(0).find("span").attr("title",this._options.tooltips.prevCentury),i.eq(2).find("span").attr("title",this._options.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(0===a.year()||this._options.minDate&&this._options.minDate.isAfter(a,"y"))&&i.eq(0).addClass("disabled"),i.eq(1).text(a.year()+"-"+r.year()),this._options.maxDate&&this._options.maxDate.isBefore(r,"y")&&i.eq(2).addClass("disabled"),a.year()-10<0?c+="<span>&nbsp;</span>":c+='<span data-action="selectDecade" class="decade old" data-selection="'+(a.year()+6)+'">'+(a.year()-10)+"</span>";!a.isAfter(r,"y");)t=a.year()+11,s=this._options.minDate&&this._options.minDate.isAfter(a,"y")&&this._options.minDate.year()<=t,l=this._options.maxDate&&this._options.maxDate.isAfter(a,"y")&&this._options.maxDate.year()<=t,c+='<span data-action="selectDecade" class="decade'+(o&&o.isAfter(a)&&o.year()<=t?" active":"")+(this._isValid(a,"y")||s||l?"":" disabled")+'" data-selection="'+(a.year()+6)+'">'+a.year()+"</span>",a.add(10,"y");c+='<span data-action="selectDecade" class="decade old" data-selection="'+(a.year()+6)+'">'+a.year()+"</span>",e.find("td").html(c)},c._fillDate=function(){i.prototype._fillDate.call(this);var e,n,a,r,o=this.widget.find(".datepicker-days"),s=o.find("th"),l=[];if(this._hasDate()){for(s.eq(0).find("span").attr("title",this._options.tooltips.prevMonth),s.eq(1).attr("title",this._options.tooltips.selectMonth),s.eq(2).find("span").attr("title",this._options.tooltips.nextMonth),o.find(".disabled").removeClass("disabled"),s.eq(1).text(this._viewDate.format(this._options.dayViewHeaderFormat)),this._isValid(this._viewDate.clone().subtract(1,"M"),"M")||s.eq(0).addClass("disabled"),this._isValid(this._viewDate.clone().add(1,"M"),"M")||s.eq(2).addClass("disabled"),e=this._viewDate.clone().startOf("M").startOf("w").startOf("d"),r=0;r<42;r++){if(0===e.weekday()&&(n=t("<tr>"),this._options.calendarWeeks&&n.append('<td class="cw">'+e.week()+"</td>"),l.push(n)),a="",e.isBefore(this._viewDate,"M")&&(a+=" old"),e.isAfter(this._viewDate,"M")&&(a+=" new"),this._options.allowMultidate){var c=this._datesFormatted.indexOf(e.format("YYYY-MM-DD"));-1!==c&&e.isSame(this._datesFormatted[c],"d")&&!this.unset&&(a+=" active")}else e.isSame(this._getLastPickedDate(),"d")&&!this.unset&&(a+=" active");this._isValid(e,"d")||(a+=" disabled"),e.isSame(this.getMoment(),"d")&&(a+=" today"),0!==e.day()&&6!==e.day()||(a+=" weekend"),n.append('<td data-action="selectDay" data-day="'+e.format("L")+'" class="day'+a+'">'+e.date()+"</td>"),e.add(1,"d")}t("body").addClass("tempusdominus-bootstrap-datetimepicker-widget-day-click"),t("body").append('<div class="tempusdominus-bootstrap-datetimepicker-widget-day-click-glass-panel"></div>'),o.find("tbody").empty().append(l),t("body").find(".tempusdominus-bootstrap-datetimepicker-widget-day-click-glass-panel").remove(),t("body").removeClass("tempusdominus-bootstrap-datetimepicker-widget-day-click"),this._updateMonths(),this._updateYears(),this._updateDecades()}},c._fillHours=function(){var e=this.widget.find(".timepicker-hours table"),i=this._viewDate.clone().startOf("d"),n=[],a=t("<tr>");for(this._viewDate.hour()>11&&!this.use24Hours&&i.hour(12);i.isSame(this._viewDate,"d")&&(this.use24Hours||this._viewDate.hour()<12&&i.hour()<12||this._viewDate.hour()>11);)i.hour()%4==0&&(a=t("<tr>"),n.push(a)),a.append('<td data-action="selectHour" class="hour'+(this._isValid(i,"h")?"":" disabled")+'">'+i.format(this.use24Hours?"HH":"hh")+"</td>"),i.add(1,"h");e.empty().append(n)},c._fillMinutes=function(){for(var e=this.widget.find(".timepicker-minutes table"),i=this._viewDate.clone().startOf("h"),n=[],a=1===this._options.stepping?5:this._options.stepping,r=t("<tr>");this._viewDate.isSame(i,"h");)i.minute()%(4*a)==0&&(r=t("<tr>"),n.push(r)),r.append('<td data-action="selectMinute" class="minute'+(this._isValid(i,"m")?"":" disabled")+'">'+i.format("mm")+"</td>"),i.add(a,"m");e.empty().append(n)},c._fillSeconds=function(){for(var e=this.widget.find(".timepicker-seconds table"),i=this._viewDate.clone().startOf("m"),n=[],a=t("<tr>");this._viewDate.isSame(i,"m");)i.second()%20==0&&(a=t("<tr>"),n.push(a)),a.append('<td data-action="selectSecond" class="second'+(this._isValid(i,"s")?"":" disabled")+'">'+i.format("ss")+"</td>"),i.add(5,"s");e.empty().append(n)},c._fillTime=function(){var t,e,i=this.widget.find(".timepicker span[data-time-component]"),n=this._getLastPickedDate();this.use24Hours||(t=this.widget.find(".timepicker [data-action=togglePeriod]"),e=n?n.clone().add(n.hours()>=12?-12:12,"h"):void 0,n&&t.text(n.format("A")),this._isValid(e,"h")?t.removeClass("disabled"):t.addClass("disabled")),n&&i.filter("[data-time-component=hours]").text(n.format(this.use24Hours?"HH":"hh")),n&&i.filter("[data-time-component=minutes]").text(n.format("mm")),n&&i.filter("[data-time-component=seconds]").text(n.format("ss")),this._fillHours(),this._fillMinutes(),this._fillSeconds()},c._doAction=function(i,n){var a=this._getLastPickedDate();if(t(i.currentTarget).is(".disabled"))return!1;switch(n=n||t(i.currentTarget).data("action")){case"next":var r=e.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(e.DatePickerModes[this.currentViewMode].NAV_STEP,r),this._fillDate(),this._viewUpdate(r);break;case"previous":var o=e.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(e.DatePickerModes[this.currentViewMode].NAV_STEP,o),this._fillDate(),this._viewUpdate(o);break;case"pickerSwitch":this._showMode(1);break;case"selectMonth":var s=t(i.target).closest("tbody").find("span").index(t(i.target));this._viewDate.month(s),this.currentViewMode===this.MinViewModeNumber?(this._setValue(a.clone().year(this._viewDate.year()).month(this._viewDate.month()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("M");break;case"selectYear":var l=parseInt(t(i.target).text(),10)||0;this._viewDate.year(l),this.currentViewMode===this.MinViewModeNumber?(this._setValue(a.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDecade":var c=parseInt(t(i.target).data("selection"),10)||0;this._viewDate.year(c),this.currentViewMode===this.MinViewModeNumber?(this._setValue(a.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDay":var u=this._viewDate.clone();t(i.target).is(".old")&&u.subtract(1,"M"),t(i.target).is(".new")&&u.add(1,"M");var d=u.date(parseInt(t(i.target).text(),10)),h=0;this._options.allowMultidate?-1!==(h=this._datesFormatted.indexOf(d.format("YYYY-MM-DD")))?this._setValue(null,h):this._setValue(d,this._getLastPickedDateIndex()+1):this._setValue(d,this._getLastPickedDateIndex()),this._hasTime()||this._options.keepOpen||this._options.inline||this._options.allowMultidate||this.hide();break;case"incrementHours":if(!a)break;var f=a.clone().add(1,"h");this._isValid(f,"h")&&(this._getLastPickedDateIndex()<0&&this.date(f),this._setValue(f,this._getLastPickedDateIndex()));break;case"incrementMinutes":if(!a)break;var p=a.clone().add(this._options.stepping,"m");this._isValid(p,"m")&&(this._getLastPickedDateIndex()<0&&this.date(p),this._setValue(p,this._getLastPickedDateIndex()));break;case"incrementSeconds":if(!a)break;var m=a.clone().add(1,"s");this._isValid(m,"s")&&(this._getLastPickedDateIndex()<0&&this.date(m),this._setValue(m,this._getLastPickedDateIndex()));break;case"decrementHours":if(!a)break;var g=a.clone().subtract(1,"h");this._isValid(g,"h")&&(this._getLastPickedDateIndex()<0&&this.date(g),this._setValue(g,this._getLastPickedDateIndex()));break;case"decrementMinutes":if(!a)break;var v=a.clone().subtract(this._options.stepping,"m");this._isValid(v,"m")&&(this._getLastPickedDateIndex()<0&&this.date(v),this._setValue(v,this._getLastPickedDateIndex()));break;case"decrementSeconds":if(!a)break;var y=a.clone().subtract(1,"s");this._isValid(y,"s")&&(this._getLastPickedDateIndex()<0&&this.date(y),this._setValue(y,this._getLastPickedDateIndex()));break;case"togglePeriod":this._setValue(a.clone().add(a.hours()>=12?-12:12,"h"),this._getLastPickedDateIndex());break;case"togglePicker":var b,_,x=t(i.target),w=x.closest("a"),k=x.closest("ul"),S=k.find(".show"),M=k.find(".collapse:not(.show)"),L=x.is("span")?x:x.find("span");if(S&&S.length){if((b=S.data("collapse"))&&b.transitioning)return!0;S.collapse?(S.collapse("hide"),M.collapse("show")):(S.removeClass("show"),M.addClass("show")),this._useFeatherIcons()?(w.toggleClass(this._options.icons.time+" "+this._options.icons.date),_=w.hasClass(this._options.icons.time)?this._options.icons.date:this._options.icons.time,w.html(this._iconTag(_))):L.toggleClass(this._options.icons.time+" "+this._options.icons.date),(this._useFeatherIcons()?w.hasClass(this._options.icons.date):L.hasClass(this._options.icons.date))?w.attr("title",this._options.tooltips.selectDate):w.attr("title",this._options.tooltips.selectTime)}break;case"showPicker":this.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),this.widget.find(".timepicker .timepicker-picker").show();break;case"showHours":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-hours").show();break;case"showMinutes":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-minutes").show();break;case"showSeconds":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-seconds").show();break;case"selectHour":var T=parseInt(t(i.target).text(),10);this.use24Hours||(a.hours()>=12?12!==T&&(T+=12):12===T&&(T=0)),this._setValue(a.clone().hours(T),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("m")||this._options.keepOpen||this._options.inline?this._doAction(i,"showPicker"):this.hide();break;case"selectMinute":this._setValue(a.clone().minutes(parseInt(t(i.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("s")||this._options.keepOpen||this._options.inline?this._doAction(i,"showPicker"):this.hide();break;case"selectSecond":this._setValue(a.clone().seconds(parseInt(t(i.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._options.keepOpen||this._options.inline?this._doAction(i,"showPicker"):this.hide();break;case"clear":this.clear();break;case"close":this.hide();break;case"today":var C=this.getMoment();this._isValid(C,"d")&&this._setValue(C,this._getLastPickedDateIndex())}return!1},c.hide=function(){var i=!1;if(this.widget&&(this.widget.find(".collapse").each((function(){var e=t(this).data("collapse");return!e||!e.transitioning||(i=!0,!1)})),!i)){this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this.widget.hide(),t(window).off("resize",this._place),this.widget.off("click","[data-action]"),this.widget.off("mousedown",!1),this.widget.remove(),this.widget=!1,void 0!==this.input&&void 0!==this.input.val()&&0!==this.input.val().trim().length&&this._setValue(this._parseInputDate(this.input.val().trim(),{isPickerShow:!1}),0);var n=this._getLastPickedDate();this._notifyEvent({type:e.Event.HIDE,date:this.unset?null:n?n.clone():void 0}),void 0!==this.input&&this.input.blur(),this._viewDate=n?n.clone():this.getMoment()}},c.show=function(){var i,n=!1;if(void 0!==this.input){if(this.input.prop("disabled")||!this._options.ignoreReadonly&&this.input.prop("readonly")||this.widget)return;void 0!==this.input.val()&&0!==this.input.val().trim().length?this._setValue(this._parseInputDate(this.input.val().trim(),{isPickerShow:!0}),0):n=!0}else n=!0;n&&this.unset&&this._options.useCurrent&&(i=this.getMoment(),"string"==typeof this._options.useCurrent&&(i={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}}[this._options.useCurrent](i)),this._setValue(i,0)),this.widget=this._getTemplate(),this._fillDow(),this._fillMonths(),this.widget.find(".timepicker-hours").hide(),this.widget.find(".timepicker-minutes").hide(),this.widget.find(".timepicker-seconds").hide(),this._update(),this._showMode(),t(window).on("resize",{picker:this},this._place),this.widget.on("click","[data-action]",t.proxy(this._doAction,this)),this.widget.on("mousedown",!1),this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this._place(),this.widget.show(),void 0!==this.input&&this._options.focusOnShow&&!this.input.is(":focus")&&this.input.focus(),this._notifyEvent({type:e.Event.SHOW})},c.destroy=function(){this.hide(),this._element.removeData(e.DATA_KEY),this._element.removeData("date")},c.disable=function(){this.hide(),this.component&&this.component.hasClass("btn")&&this.component.addClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!0)},c.enable=function(){this.component&&this.component.hasClass("btn")&&this.component.removeClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!1)},c.toolbarPlacement=function(t){if(0===arguments.length)return this._options.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===r.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+r.join(", ")+") value");this._options.toolbarPlacement=t,this.widget&&(this.hide(),this.show())},c.widgetPositioning=function(e){if(0===arguments.length)return t.extend({},this._options.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===a.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+a.join(", ")+")");this._options.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===n.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+n.join(", ")+")");this._options.widgetPositioning.vertical=e.vertical}this._update()},c.widgetParent=function(e){if(0===arguments.length)return this._options.widgetParent;if("string"==typeof e&&(e=t(e)),null!==e&&"string"!=typeof e&&!(e instanceof t))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");this._options.widgetParent=e,this.widget&&(this.hide(),this.show())},c.setMultiDate=function(t){var e=this._options.format;this.clear();for(var i=0;i<t.length;i++){var n=moment(t[i],e);this._setValue(n,i)}},l._jQueryHandleThis=function(i,n,a){var r=t(i).data(e.DATA_KEY);if("object"==typeof n&&t.extend({},e.Default,n),r||(r=new l(t(i),n),t(i).data(e.DATA_KEY,r)),"string"==typeof n){if(void 0===r[n])throw new Error('No method named "'+n+'"');if(void 0===a)return r[n]();"date"===n&&(r.isDateUpdateThroughDateOptionFromClientCode=!0);var o=r[n](a);return r.isDateUpdateThroughDateOptionFromClientCode=!1,o}},l._jQueryInterface=function(t,e){return 1===this.length?l._jQueryHandleThis(this[0],t,e):this.each((function(){l._jQueryHandleThis(this,t,e)}))},l}(e);t(document).on(e.Event.CLICK_DATA_API,e.Selector.DATA_TOGGLE,(function(){var i=t(this),n=o(i),a=n.data(e.DATA_KEY);0!==n.length&&(a._options.allowInputToggle&&i.is('input[data-toggle="datetimepicker"]')||s._jQueryInterface.call(n,"toggle"))})).on(e.Event.CHANGE,"."+e.ClassName.INPUT,(function(e){var i=o(t(this));0===i.length||e.isInit||s._jQueryInterface.call(i,"_change",e)})).on(e.Event.BLUR,"."+e.ClassName.INPUT,(function(i){var n=o(t(this)),a=n.data(e.DATA_KEY);0!==n.length&&(a._options.debug||window.debug||s._jQueryInterface.call(n,"hide",i))})).on(e.Event.KEYDOWN,"."+e.ClassName.INPUT,(function(e){var i=o(t(this));0!==i.length&&s._jQueryInterface.call(i,"_keydown",e)})).on(e.Event.KEYUP,"."+e.ClassName.INPUT,(function(e){var i=o(t(this));0!==i.length&&s._jQueryInterface.call(i,"_keyup",e)})).on(e.Event.FOCUS,"."+e.ClassName.INPUT,(function(i){var n=o(t(this)),a=n.data(e.DATA_KEY);0!==n.length&&a._options.allowInputToggle&&s._jQueryInterface.call(n,"show",i)})),t.fn[e.NAME]=s._jQueryInterface,t.fn[e.NAME].Constructor=s,t.fn[e.NAME].noConflict=function(){return t.fn[e.NAME]=i,s._jQueryInterface}}(jQuery)}(),$.fn.datetimepicker.Constructor.Default=$.extend({},$.fn.datetimepicker.Constructor.Default,{icons:{time:"ki ki-clock",date:"ki ki-calendar",up:"ki ki-arrow-up",down:"ki ki-arrow-down",previous:"ki ki-arrow-back",next:"ki ki-arrow-next",today:"ki ki-calendar-today",clear:"ki ki-close",close:"ki ki-close"}}),function(t,e,i){"use strict";var n=function(e,i){this.widget="",this.$element=t(e),this.defaultTime=i.defaultTime,this.disableFocus=i.disableFocus,this.disableMousewheel=i.disableMousewheel,this.isOpen=i.isOpen,this.minuteStep=i.minuteStep,this.modalBackdrop=i.modalBackdrop,this.orientation=i.orientation,this.secondStep=i.secondStep,this.snapToStep=i.snapToStep,this.showInputs=i.showInputs,this.showMeridian=i.showMeridian,this.showSeconds=i.showSeconds,this.template=i.template,this.appendWidgetTo=i.appendWidgetTo,this.showWidgetOnAddonClick=i.showWidgetOnAddonClick,this.icons=i.icons,this.maxHours=i.maxHours,this.explicitMode=i.explicitMode,this.handleDocumentClick=function(t){var e=t.data.scope;e.$element.parent().find(t.target).length||e.$widget.is(t.target)||e.$widget.find(t.target).length||e.hideWidget()},this._init()};n.prototype={constructor:n,_init:function(){var e=this;this.showWidgetOnAddonClick&&this.$element.parent().hasClass("input-group")&&this.$element.parent().hasClass("bootstrap-timepicker")?(this.$element.parent(".input-group.bootstrap-timepicker").find(".input-group-addon").on({"click.timepicker":t.proxy(this.showWidget,this)}),this.$element.on({"focus.timepicker":t.proxy(this.highlightUnit,this),"click.timepicker":t.proxy(this.highlightUnit,this),"keydown.timepicker":t.proxy(this.elementKeydown,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)})):this.template?this.$element.on({"focus.timepicker":t.proxy(this.showWidget,this),"click.timepicker":t.proxy(this.showWidget,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)}):this.$element.on({"focus.timepicker":t.proxy(this.highlightUnit,this),"click.timepicker":t.proxy(this.highlightUnit,this),"keydown.timepicker":t.proxy(this.elementKeydown,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)}),!1!==this.template?this.$widget=t(this.getTemplate()).on("click",t.proxy(this.widgetClick,this)):this.$widget=!1,this.showInputs&&!1!==this.$widget&&this.$widget.find("input").each((function(){t(this).on({"click.timepicker":function(){t(this).select()},"keydown.timepicker":t.proxy(e.widgetKeydown,e),"keyup.timepicker":t.proxy(e.widgetKeyup,e)})})),this.setDefaultTime(this.defaultTime)},blurElement:function(){this.highlightedUnit=null,this.updateFromElementVal()},clear:function(){this.hour="",this.minute="",this.second="",this.meridian="",this.$element.val("")},decrementHour:function(){if(this.showMeridian)if(1===this.hour)this.hour=12;else{if(12===this.hour)return this.hour--,this.toggleMeridian();if(0===this.hour)return this.hour=11,this.toggleMeridian();this.hour--}else this.hour<=0?this.hour=this.maxHours-1:this.hour--},decrementMinute:function(t){var e;0>(e=t?this.minute-t:this.minute-this.minuteStep)?(this.decrementHour(),this.minute=e+60):this.minute=e},decrementSecond:function(){var t=this.second-this.secondStep;0>t?(this.decrementMinute(!0),this.second=t+60):this.second=t},elementKeydown:function(t){switch(t.which){case 9:if(t.shiftKey){if("hour"===this.highlightedUnit){this.hideWidget();break}this.highlightPrevUnit()}else{if(this.showMeridian&&"meridian"===this.highlightedUnit||this.showSeconds&&"second"===this.highlightedUnit||!this.showMeridian&&!this.showSeconds&&"minute"===this.highlightedUnit){this.hideWidget();break}this.highlightNextUnit()}t.preventDefault(),this.updateFromElementVal();break;case 27:this.updateFromElementVal();break;case 37:t.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:switch(t.preventDefault(),this.highlightedUnit){case"hour":this.incrementHour(),this.highlightHour();break;case"minute":this.incrementMinute(),this.highlightMinute();break;case"second":this.incrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update();break;case 39:t.preventDefault(),this.highlightNextUnit(),this.updateFromElementVal();break;case 40:switch(t.preventDefault(),this.highlightedUnit){case"hour":this.decrementHour(),this.highlightHour();break;case"minute":this.decrementMinute(),this.highlightMinute();break;case"second":this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update()}},getCursorPosition:function(){var t=this.$element.get(0);if("selectionStart"in t)return t.selectionStart;if(i.selection){t.focus();var e=i.selection.createRange(),n=i.selection.createRange().text.length;return e.moveStart("character",-t.value.length),e.text.length-n}},getTemplate:function(){var t,e,i,n,a,r;switch(this.showInputs?(e='<input type="text" class="bootstrap-timepicker-hour" maxlength="2"/>',i='<input type="text" class="bootstrap-timepicker-minute" maxlength="2"/>',n='<input type="text" class="bootstrap-timepicker-second" maxlength="2"/>',a='<input type="text" class="bootstrap-timepicker-meridian" maxlength="2"/>'):(e='<span class="bootstrap-timepicker-hour"></span>',i='<span class="bootstrap-timepicker-minute"></span>',n='<span class="bootstrap-timepicker-second"></span>',a='<span class="bootstrap-timepicker-meridian"></span>'),r='<table><tr><td><a href="#" data-action="incrementHour"><span class="'+this.icons.up+'"></span></a></td><td class="separator">&nbsp;</td><td><a href="#" data-action="incrementMinute"><span class="'+this.icons.up+'"></span></a></td>'+(this.showSeconds?'<td class="separator">&nbsp;</td><td><a href="#" data-action="incrementSecond"><span class="'+this.icons.up+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td class="meridian-column"><a href="#" data-action="toggleMeridian"><span class="'+this.icons.up+'"></span></a></td>':"")+"</tr><tr><td>"+e+'</td> <td class="separator">:</td><td>'+i+"</td> "+(this.showSeconds?'<td class="separator">:</td><td>'+n+"</td>":"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td>'+a+"</td>":"")+'</tr><tr><td><a href="#" data-action="decrementHour"><span class="'+this.icons.down+'"></span></a></td><td class="separator"></td><td><a href="#" data-action="decrementMinute"><span class="'+this.icons.down+'"></span></a></td>'+(this.showSeconds?'<td class="separator">&nbsp;</td><td><a href="#" data-action="decrementSecond"><span class="'+this.icons.down+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td><a href="#" data-action="toggleMeridian"><span class="'+this.icons.down+'"></span></a></td>':"")+"</tr></table>",this.template){case"modal":t='<div class="bootstrap-timepicker-widget modal hide fade in" data-backdrop="'+(this.modalBackdrop?"true":"false")+'"><div class="modal-header"><a href="#" class="close" data-dismiss="modal">&times;</a><h3>Pick a Time</h3></div><div class="modal-content">'+r+'</div><div class="modal-footer"><a href="#" class="btn btn-primary" data-dismiss="modal">OK</a></div></div>';break;case"dropdown":t='<div class="bootstrap-timepicker-widget dropdown-menu">'+r+"</div>"}return t},getTime:function(){return""===this.hour?"":this.hour+":"+(1===this.minute.toString().length?"0"+this.minute:this.minute)+(this.showSeconds?":"+(1===this.second.toString().length?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:"")},hideWidget:function(){!1!==this.isOpen&&(this.$element.trigger({type:"hide.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),"modal"===this.template&&this.$widget.modal?this.$widget.modal("hide"):this.$widget.removeClass("open"),t(i).off("mousedown.timepicker, touchend.timepicker",this.handleDocumentClick),this.isOpen=!1,this.$widget.detach())},highlightUnit:function(){this.position=this.getCursorPosition(),this.position>=0&&this.position<=2?this.highlightHour():this.position>=3&&this.position<=5?this.highlightMinute():this.position>=6&&this.position<=8?this.showSeconds?this.highlightSecond():this.highlightMeridian():this.position>=9&&this.position<=11&&this.highlightMeridian()},highlightNextUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":this.showSeconds?this.highlightSecond():this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"second":this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}},highlightPrevUnit:function(){switch(this.highlightedUnit){case"hour":this.showMeridian?this.highlightMeridian():this.showSeconds?this.highlightSecond():this.highlightMinute();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":this.showSeconds?this.highlightSecond():this.highlightMinute()}},highlightHour:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="hour",t.setSelectionRange&&setTimeout((function(){e.hour<10?t.setSelectionRange(0,1):t.setSelectionRange(0,2)}),0)},highlightMinute:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="minute",t.setSelectionRange&&setTimeout((function(){e.hour<10?t.setSelectionRange(2,4):t.setSelectionRange(3,5)}),0)},highlightSecond:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="second",t.setSelectionRange&&setTimeout((function(){e.hour<10?t.setSelectionRange(5,7):t.setSelectionRange(6,8)}),0)},highlightMeridian:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="meridian",t.setSelectionRange&&(this.showSeconds?setTimeout((function(){e.hour<10?t.setSelectionRange(8,10):t.setSelectionRange(9,11)}),0):setTimeout((function(){e.hour<10?t.setSelectionRange(5,7):t.setSelectionRange(6,8)}),0))},incrementHour:function(){if(this.showMeridian){if(11===this.hour)return this.hour++,this.toggleMeridian();12===this.hour&&(this.hour=0)}return this.hour===this.maxHours-1?void(this.hour=0):void this.hour++},incrementMinute:function(t){var e;(e=t?this.minute+t:this.minute+this.minuteStep-this.minute%this.minuteStep)>59?(this.incrementHour(),this.minute=e-60):this.minute=e},incrementSecond:function(){var t=this.second+this.secondStep-this.second%this.secondStep;t>59?(this.incrementMinute(!0),this.second=t-60):this.second=t},mousewheel:function(e){if(!this.disableMousewheel){e.preventDefault(),e.stopPropagation();var i=e.originalEvent.wheelDelta||-e.originalEvent.detail,n=null;switch("mousewheel"===e.type?n=-1*e.originalEvent.wheelDelta:"DOMMouseScroll"===e.type&&(n=40*e.originalEvent.detail),n&&(e.preventDefault(),t(this).scrollTop(n+t(this).scrollTop())),this.highlightedUnit){case"minute":i>0?this.incrementMinute():this.decrementMinute(),this.highlightMinute();break;case"second":i>0?this.incrementSecond():this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian();break;default:i>0?this.incrementHour():this.decrementHour(),this.highlightHour()}return!1}},changeToNearestStep:function(t,e){return t%e==0?t:Math.round(t%e/e)?(t+(e-t%e))%60:t-t%e},place:function(){if(!this.isInline){var i=this.$widget.outerWidth(),n=this.$widget.outerHeight(),a=t(e).width(),r=t(e).height(),o=t(e).scrollTop(),s=parseInt(this.$element.parents().filter((function(){return"auto"!==t(this).css("z-index")})).first().css("z-index"),10)+10,l=this.component?this.component.parent().offset():this.$element.offset(),c=this.component?this.component.outerHeight(!0):this.$element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.$element.outerWidth(!1),d=l.left,h=l.top;this.$widget.removeClass("timepicker-orient-top timepicker-orient-bottom timepicker-orient-right timepicker-orient-left"),"auto"!==this.orientation.x?(this.$widget.addClass("timepicker-orient-"+this.orientation.x),"right"===this.orientation.x&&(d-=i-u)):(this.$widget.addClass("timepicker-orient-left"),l.left<0?d-=l.left-10:l.left+i>a&&(d=a-i-10));var f,p,m=this.orientation.y;"auto"===m&&(f=-o+l.top-n,p=o+r-(l.top+c+n),m=Math.max(f,p)===p?"top":"bottom"),this.$widget.addClass("timepicker-orient-"+m),"top"===m?h+=c:h-=n+parseInt(this.$widget.css("padding-top"),10),this.$widget.css({top:h,left:d,zIndex:s})}},remove:function(){t("document").off(".timepicker"),this.$widget&&this.$widget.remove(),delete this.$element.data().timepicker},setDefaultTime:function(t){if(this.$element.val())this.updateFromElementVal();else if("current"===t){var e=new Date,i=e.getHours(),n=e.getMinutes(),a=e.getSeconds(),r="AM";0!==a&&(60===(a=Math.ceil(e.getSeconds()/this.secondStep)*this.secondStep)&&(n+=1,a=0)),0!==n&&(60===(n=Math.ceil(e.getMinutes()/this.minuteStep)*this.minuteStep)&&(i+=1,n=0)),this.showMeridian&&(0===i?i=12:i>=12?(i>12&&(i-=12),r="PM"):r="AM"),this.hour=i,this.minute=n,this.second=a,this.meridian=r,this.update()}else!1===t?(this.hour=0,this.minute=0,this.second=0,this.meridian="AM"):this.setTime(t)},setTime:function(t,e){if(t){var i,n,a,r,o,s;if("object"==typeof t&&t.getMonth)a=t.getHours(),r=t.getMinutes(),o=t.getSeconds(),this.showMeridian&&(s="AM",a>12&&(s="PM",a%=12),12===a&&(s="PM"));else{if((i=(/a/i.test(t)?1:0)+(/p/i.test(t)?2:0))>2)return void this.clear();if(a=(n=t.replace(/[^0-9\:]/g,"").split(":"))[0]?n[0].toString():n.toString(),this.explicitMode&&a.length>2&&a.length%2!=0)return void this.clear();r=n[1]?n[1].toString():"",o=n[2]?n[2].toString():"",a.length>4&&(o=a.slice(-2),a=a.slice(0,-2)),a.length>2&&(r=a.slice(-2),a=a.slice(0,-2)),r.length>2&&(o=r.slice(-2),r=r.slice(0,-2)),a=parseInt(a,10),r=parseInt(r,10),o=parseInt(o,10),isNaN(a)&&(a=0),isNaN(r)&&(r=0),isNaN(o)&&(o=0),o>59&&(o=59),r>59&&(r=59),a>=this.maxHours&&(a=this.maxHours-1),this.showMeridian?(a>12&&(i=2,a-=12),i||(i=1),0===a&&(a=12),s=1===i?"AM":"PM"):12>a&&2===i?a+=12:a>=this.maxHours?a=this.maxHours-1:(0>a||12===a&&1===i)&&(a=0)}this.hour=a,this.snapToStep?(this.minute=this.changeToNearestStep(r,this.minuteStep),this.second=this.changeToNearestStep(o,this.secondStep)):(this.minute=r,this.second=o),this.meridian=s,this.update(e)}else this.clear()},showWidget:function(){this.isOpen||this.$element.is(":disabled")||(this.$widget.appendTo(this.appendWidgetTo),t(i).on("mousedown.timepicker, touchend.timepicker",{scope:this},this.handleDocumentClick),this.$element.trigger({type:"show.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.place(),this.disableFocus&&this.$element.blur(),""===this.hour&&(this.defaultTime?this.setDefaultTime(this.defaultTime):this.setTime("0:0:0")),"modal"===this.template&&this.$widget.modal?this.$widget.modal("show").on("hidden",t.proxy(this.hideWidget,this)):!1===this.isOpen&&this.$widget.addClass("open"),this.isOpen=!0)},toggleMeridian:function(){this.meridian="AM"===this.meridian?"PM":"AM"},update:function(t){this.updateElement(),t||this.updateWidget(),this.$element.trigger({type:"changeTime.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}})},updateElement:function(){this.$element.val(this.getTime()).change()},updateFromElementVal:function(){this.setTime(this.$element.val())},updateWidget:function(){if(!1!==this.$widget){var t=this.hour,e=1===this.minute.toString().length?"0"+this.minute:this.minute,i=1===this.second.toString().length?"0"+this.second:this.second;this.showInputs?(this.$widget.find("input.bootstrap-timepicker-hour").val(t),this.$widget.find("input.bootstrap-timepicker-minute").val(e),this.showSeconds&&this.$widget.find("input.bootstrap-timepicker-second").val(i),this.showMeridian&&this.$widget.find("input.bootstrap-timepicker-meridian").val(this.meridian)):(this.$widget.find("span.bootstrap-timepicker-hour").text(t),this.$widget.find("span.bootstrap-timepicker-minute").text(e),this.showSeconds&&this.$widget.find("span.bootstrap-timepicker-second").text(i),this.showMeridian&&this.$widget.find("span.bootstrap-timepicker-meridian").text(this.meridian))}},updateFromWidgetInputs:function(){if(!1!==this.$widget){var t=this.$widget.find("input.bootstrap-timepicker-hour").val()+":"+this.$widget.find("input.bootstrap-timepicker-minute").val()+(this.showSeconds?":"+this.$widget.find("input.bootstrap-timepicker-second").val():"")+(this.showMeridian?this.$widget.find("input.bootstrap-timepicker-meridian").val():"");this.setTime(t,!0)}},widgetClick:function(e){e.stopPropagation(),e.preventDefault();var i=t(e.target),n=i.closest("a").data("action");n&&this[n](),this.update(),i.is("input")&&i.get(0).setSelectionRange(0,2)},widgetKeydown:function(e){var i=t(e.target),n=i.attr("class").replace("bootstrap-timepicker-","");switch(e.which){case 9:if(e.shiftKey){if("hour"===n)return this.hideWidget()}else if(this.showMeridian&&"meridian"===n||this.showSeconds&&"second"===n||!this.showMeridian&&!this.showSeconds&&"minute"===n)return this.hideWidget();break;case 27:this.hideWidget();break;case 38:switch(e.preventDefault(),n){case"hour":this.incrementHour();break;case"minute":this.incrementMinute();break;case"second":this.incrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),i.get(0).setSelectionRange(0,2);break;case 40:switch(e.preventDefault(),n){case"hour":this.decrementHour();break;case"minute":this.decrementMinute();break;case"second":this.decrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),i.get(0).setSelectionRange(0,2)}},widgetKeyup:function(t){(65===t.which||77===t.which||80===t.which||46===t.which||8===t.which||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105)&&this.updateFromWidgetInputs()}},t.fn.timepicker=function(e){var i=Array.apply(null,arguments);return i.shift(),this.each((function(){var a=t(this),r=a.data("timepicker"),o="object"==typeof e&&e;r||a.data("timepicker",r=new n(this,t.extend({},t.fn.timepicker.defaults,o,t(this).data()))),"string"==typeof e&&r[e].apply(r,i)}))},t.fn.timepicker.defaults={defaultTime:"current",disableFocus:!1,disableMousewheel:!1,isOpen:!1,minuteStep:15,modalBackdrop:!1,orientation:{x:"auto",y:"auto"},secondStep:15,snapToStep:!1,showSeconds:!1,showInputs:!0,showMeridian:!0,template:"dropdown",appendWidgetTo:"body",showWidgetOnAddonClick:!0,icons:{up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},maxHours:24,explicitMode:!1},t.fn.timepicker.Constructor=n,t(i).on("focus.timepicker.data-api click.timepicker.data-api",'[data-provide="timepicker"]',(function(e){var i=t(this);i.data("timepicker")||(e.preventDefault(),i.timepicker())}))}(jQuery,window,document),$.fn.timepicker.defaults=$.extend(!0,{},$.fn.timepicker.defaults,{icons:{up:"ki ki-arrow-up",down:"ki ki-arrow-down"}}),
/**
* @version: 3.1
* @author: Dan Grossman http://www.dangrossman.info/
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
* @website: http://www.daterangepicker.com/
*/
function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery"],(function(t,i){return i.fn||(i.fn={}),"function"!=typeof t&&t.hasOwnProperty("default")&&(t=t.default),e(t,i)}));else if("object"==typeof module&&module.exports){var i="undefined"!=typeof window?window.jQuery:void 0;i||(i=require("jquery")).fn||(i.fn={});var n="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=e(n,i)}else t.daterangepicker=e(t.moment,t.jQuery)}(this,(function(t,e){var i=function(i,n,a){if(this.parentEl="body",this.element=e(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof n&&null!==n||(n={}),"string"==typeof(n=e.extend(this.element.data(),n)).template||n.template instanceof e||(n.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=n.parentEl&&e(n.parentEl).length?e(n.parentEl):e(this.parentEl),this.container=e(n.template).appendTo(this.parentEl),"object"==typeof n.locale&&("string"==typeof n.locale.direction&&(this.locale.direction=n.locale.direction),"string"==typeof n.locale.format&&(this.locale.format=n.locale.format),"string"==typeof n.locale.separator&&(this.locale.separator=n.locale.separator),"object"==typeof n.locale.daysOfWeek&&(this.locale.daysOfWeek=n.locale.daysOfWeek.slice()),"object"==typeof n.locale.monthNames&&(this.locale.monthNames=n.locale.monthNames.slice()),"number"==typeof n.locale.firstDay&&(this.locale.firstDay=n.locale.firstDay),"string"==typeof n.locale.applyLabel&&(this.locale.applyLabel=n.locale.applyLabel),"string"==typeof n.locale.cancelLabel&&(this.locale.cancelLabel=n.locale.cancelLabel),"string"==typeof n.locale.weekLabel&&(this.locale.weekLabel=n.locale.weekLabel),"string"==typeof n.locale.customRangeLabel)){(f=document.createElement("textarea")).innerHTML=n.locale.customRangeLabel;var r=f.value;this.locale.customRangeLabel=r}if(this.container.addClass(this.locale.direction),"string"==typeof n.startDate&&(this.startDate=t(n.startDate,this.locale.format)),"string"==typeof n.endDate&&(this.endDate=t(n.endDate,this.locale.format)),"string"==typeof n.minDate&&(this.minDate=t(n.minDate,this.locale.format)),"string"==typeof n.maxDate&&(this.maxDate=t(n.maxDate,this.locale.format)),"object"==typeof n.startDate&&(this.startDate=t(n.startDate)),"object"==typeof n.endDate&&(this.endDate=t(n.endDate)),"object"==typeof n.minDate&&(this.minDate=t(n.minDate)),"object"==typeof n.maxDate&&(this.maxDate=t(n.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof n.applyButtonClasses&&(this.applyButtonClasses=n.applyButtonClasses),"string"==typeof n.applyClass&&(this.applyButtonClasses=n.applyClass),"string"==typeof n.cancelButtonClasses&&(this.cancelButtonClasses=n.cancelButtonClasses),"string"==typeof n.cancelClass&&(this.cancelButtonClasses=n.cancelClass),"object"==typeof n.maxSpan&&(this.maxSpan=n.maxSpan),"object"==typeof n.dateLimit&&(this.maxSpan=n.dateLimit),"string"==typeof n.opens&&(this.opens=n.opens),"string"==typeof n.drops&&(this.drops=n.drops),"boolean"==typeof n.showWeekNumbers&&(this.showWeekNumbers=n.showWeekNumbers),"boolean"==typeof n.showISOWeekNumbers&&(this.showISOWeekNumbers=n.showISOWeekNumbers),"string"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses),"object"==typeof n.buttonClasses&&(this.buttonClasses=n.buttonClasses.join(" ")),"boolean"==typeof n.showDropdowns&&(this.showDropdowns=n.showDropdowns),"number"==typeof n.minYear&&(this.minYear=n.minYear),"number"==typeof n.maxYear&&(this.maxYear=n.maxYear),"boolean"==typeof n.showCustomRangeLabel&&(this.showCustomRangeLabel=n.showCustomRangeLabel),"boolean"==typeof n.singleDatePicker&&(this.singleDatePicker=n.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof n.timePicker&&(this.timePicker=n.timePicker),"boolean"==typeof n.timePickerSeconds&&(this.timePickerSeconds=n.timePickerSeconds),"number"==typeof n.timePickerIncrement&&(this.timePickerIncrement=n.timePickerIncrement),"boolean"==typeof n.timePicker24Hour&&(this.timePicker24Hour=n.timePicker24Hour),"boolean"==typeof n.autoApply&&(this.autoApply=n.autoApply),"boolean"==typeof n.autoUpdateInput&&(this.autoUpdateInput=n.autoUpdateInput),"boolean"==typeof n.linkedCalendars&&(this.linkedCalendars=n.linkedCalendars),"function"==typeof n.isInvalidDate&&(this.isInvalidDate=n.isInvalidDate),"function"==typeof n.isCustomDate&&(this.isCustomDate=n.isCustomDate),"boolean"==typeof n.alwaysShowCalendars&&(this.alwaysShowCalendars=n.alwaysShowCalendars),0!=this.locale.firstDay)for(var o=this.locale.firstDay;o>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),o--;var s,l,c;if(void 0===n.startDate&&void 0===n.endDate&&e(this.element).is(":text")){var u=e(this.element).val(),d=u.split(this.locale.separator);s=l=null,2==d.length?(s=t(d[0],this.locale.format),l=t(d[1],this.locale.format)):this.singleDatePicker&&""!==u&&(s=t(u,this.locale.format),l=t(u,this.locale.format)),null!==s&&null!==l&&(this.setStartDate(s),this.setEndDate(l))}if("object"==typeof n.ranges){for(c in n.ranges){s="string"==typeof n.ranges[c][0]?t(n.ranges[c][0],this.locale.format):t(n.ranges[c][0]),l="string"==typeof n.ranges[c][1]?t(n.ranges[c][1],this.locale.format):t(n.ranges[c][1]),this.minDate&&s.isBefore(this.minDate)&&(s=this.minDate.clone());var h=this.maxDate;if(this.maxSpan&&h&&s.clone().add(this.maxSpan).isAfter(h)&&(h=s.clone().add(this.maxSpan)),h&&l.isAfter(h)&&(l=h.clone()),!(this.minDate&&l.isBefore(this.minDate,this.timepicker?"minute":"day")||h&&s.isAfter(h,this.timepicker?"minute":"day"))){var f;(f=document.createElement("textarea")).innerHTML=c;r=f.value;this.ranges[r]=[s,l]}}var p="<ul>";for(c in this.ranges)p+='<li data-range-key="'+c+'">'+c+"</li>";this.showCustomRangeLabel&&(p+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),p+="</ul>",this.container.find(".ranges").prepend(p)}"function"==typeof a&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof n.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(void 0===n.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",e.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",e.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",e.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",e.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",e.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",e.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",e.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",e.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",e.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":e.proxy(this.show,this),"focus.daterangepicker":e.proxy(this.show,this),"keyup.daterangepicker":e.proxy(this.elementChanged,this),"keydown.daterangepicker":e.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",e.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",e.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(e){"string"==typeof e&&(this.startDate=t(e,this.locale.format)),"object"==typeof e&&(this.startDate=t(e)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(e){"string"==typeof e&&(this.endDate=t(e,this.locale.format)),"object"==typeof e&&(this.endDate=t(e)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,i,n;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(e)&&(e=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),i=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(n=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===n&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(i),this.rightCalendar.month.hour(t).minute(e).second(i)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(i){var n,a=(n="left"==i?this.leftCalendar:this.rightCalendar).month.month(),r=n.month.year(),o=n.month.hour(),s=n.month.minute(),l=n.month.second(),c=t([r,a]).daysInMonth(),u=t([r,a,1]),d=t([r,a,c]),h=t(u).subtract(1,"month").month(),f=t(u).subtract(1,"month").year(),p=t([f,h]).daysInMonth(),m=u.day();(n=[]).firstDay=u,n.lastDay=d;for(var g=0;g<6;g++)n[g]=[];var v=p-m+this.locale.firstDay+1;v>p&&(v-=7),m==this.locale.firstDay&&(v=p-6);for(var y=t([f,h,v,12,s,l]),b=(g=0,0),_=0;g<42;g++,b++,y=t(y).add(24,"hour"))g>0&&b%7==0&&(b=0,_++),n[_][b]=y.clone().hour(o).minute(s).second(l),y.hour(12),this.minDate&&n[_][b].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&n[_][b].isBefore(this.minDate)&&"left"==i&&(n[_][b]=this.minDate.clone()),this.maxDate&&n[_][b].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&n[_][b].isAfter(this.maxDate)&&"right"==i&&(n[_][b]=this.maxDate.clone());"left"==i?this.leftCalendar.calendar=n:this.rightCalendar.calendar=n;var x="left"==i?this.minDate:this.startDate,w=this.maxDate,k=("left"==i?this.startDate:this.endDate,this.locale.direction,'<table class="table-condensed">');k+="<thead>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+="<th></th>"),x&&!x.isBefore(n.firstDay)||this.linkedCalendars&&"left"!=i?k+="<th></th>":k+='<th class="prev available"><span></span></th>';var S=this.locale.monthNames[n[1][1].month()]+n[1][1].format(" YYYY");if(this.showDropdowns){for(var M=n[1][1].month(),L=n[1][1].year(),T=w&&w.year()||this.maxYear,C=x&&x.year()||this.minYear,A=L==C,D=L==T,E='<select class="monthselect">',O=0;O<12;O++)(!A||x&&O>=x.month())&&(!D||w&&O<=w.month())?E+="<option value='"+O+"'"+(O===M?" selected='selected'":"")+">"+this.locale.monthNames[O]+"</option>":E+="<option value='"+O+"'"+(O===M?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[O]+"</option>";E+="</select>";for(var P='<select class="yearselect">',Y=C;Y<=T;Y++)P+='<option value="'+Y+'"'+(Y===L?' selected="selected"':"")+">"+Y+"</option>";S=E+(P+="</select>")}if(k+='<th colspan="5" class="month">'+S+"</th>",w&&!w.isAfter(n.lastDay)||this.linkedCalendars&&"right"!=i&&!this.singleDatePicker?k+="<th></th>":k+='<th class="next available"><span></span></th>',k+="</tr>",k+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(k+='<th class="week">'+this.locale.weekLabel+"</th>"),e.each(this.locale.daysOfWeek,(function(t,e){k+="<th>"+e+"</th>"})),k+="</tr>",k+="</thead>",k+="<tbody>",null==this.endDate&&this.maxSpan){var I=this.startDate.clone().add(this.maxSpan).endOf("day");w&&!I.isBefore(w)||(w=I)}for(_=0;_<6;_++){k+="<tr>",this.showWeekNumbers?k+='<td class="week">'+n[_][0].week()+"</td>":this.showISOWeekNumbers&&(k+='<td class="week">'+n[_][0].isoWeek()+"</td>");for(b=0;b<7;b++){var N=[];n[_][b].isSame(new Date,"day")&&N.push("today"),n[_][b].isoWeekday()>5&&N.push("weekend"),n[_][b].month()!=n[1][1].month()&&N.push("off","ends"),this.minDate&&n[_][b].isBefore(this.minDate,"day")&&N.push("off","disabled"),w&&n[_][b].isAfter(w,"day")&&N.push("off","disabled"),this.isInvalidDate(n[_][b])&&N.push("off","disabled"),n[_][b].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&N.push("active","start-date"),null!=this.endDate&&n[_][b].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&N.push("active","end-date"),null!=this.endDate&&n[_][b]>this.startDate&&n[_][b]<this.endDate&&N.push("in-range");var H=this.isCustomDate(n[_][b]);!1!==H&&("string"==typeof H?N.push(H):Array.prototype.push.apply(N,H));var j="",F=!1;for(g=0;g<N.length;g++)j+=N[g]+" ","disabled"==N[g]&&(F=!0);F||(j+="available"),k+='<td class="'+j.replace(/^\s+|\s+$/g,"")+'" data-title="r'+_+"c"+b+'">'+n[_][b].date()+"</td>"}k+="</tr>"}k+="</tbody>",k+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(k)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,i,n,a=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)||(a=this.startDate.clone().add(this.maxSpan)),"left"==t)i=this.startDate.clone(),n=this.minDate;else if("right"==t){i=this.endDate.clone(),n=this.startDate;var r=this.container.find(".drp-calendar.right .calendar-time");if(""!=r.html()&&(i.hour(isNaN(i.hour())?r.find(".hourselect option:selected").val():i.hour()),i.minute(isNaN(i.minute())?r.find(".minuteselect option:selected").val():i.minute()),i.second(isNaN(i.second())?r.find(".secondselect option:selected").val():i.second()),!this.timePicker24Hour)){var o=r.find(".ampmselect option:selected").val();"PM"===o&&i.hour()<12&&i.hour(i.hour()+12),"AM"===o&&12===i.hour()&&i.hour(0)}i.isBefore(this.startDate)&&(i=this.startDate.clone()),a&&i.isAfter(a)&&(i=a.clone())}e='<select class="hourselect">';for(var s=this.timePicker24Hour?0:1,l=this.timePicker24Hour?23:12,c=s;c<=l;c++){var u=c;this.timePicker24Hour||(u=i.hour()>=12?12==c?12:c+12:12==c?0:c);var d=i.clone().hour(u),h=!1;n&&d.minute(59).isBefore(n)&&(h=!0),a&&d.minute(0).isAfter(a)&&(h=!0),u!=i.hour()||h?e+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>":'<option value="'+c+'">'+c+"</option>":e+='<option value="'+c+'" selected="selected">'+c+"</option>"}e+="</select> ",e+=': <select class="minuteselect">';for(c=0;c<60;c+=this.timePickerIncrement){var f=c<10?"0"+c:c;d=i.clone().minute(c),h=!1;n&&d.second(59).isBefore(n)&&(h=!0),a&&d.second(0).isAfter(a)&&(h=!0),i.minute()!=c||h?e+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":e+='<option value="'+c+'" selected="selected">'+f+"</option>"}if(e+="</select> ",this.timePickerSeconds){e+=': <select class="secondselect">';for(c=0;c<60;c++){f=c<10?"0"+c:c,d=i.clone().second(c),h=!1;n&&d.isBefore(n)&&(h=!0),a&&d.isAfter(a)&&(h=!0),i.second()!=c||h?e+=h?'<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>":'<option value="'+c+'">'+f+"</option>":e+='<option value="'+c+'" selected="selected">'+f+"</option>"}e+="</select> "}if(!this.timePicker24Hour){e+='<select class="ampmselect">';var p="",m="";n&&i.clone().hour(12).minute(0).second(0).isBefore(n)&&(p=' disabled="disabled" class="disabled"'),a&&i.clone().hour(0).minute(0).second(0).isAfter(a)&&(m=' disabled="disabled" class="disabled"'),i.hour()>=12?e+='<option value="AM"'+p+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>":e+='<option value="AM" selected="selected"'+p+'>AM</option><option value="PM"'+m+">PM</option>",e+="</select>"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var t,i={top:0,left:0},n=this.drops,a=e(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},a=this.parentEl[0].clientWidth+this.parentEl.offset().left),n){case"auto":(t=this.element.offset().top+this.element.outerHeight()-i.top)+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(t=this.element.offset().top-this.container.outerHeight()-i.top,n="up");break;case"up":t=this.element.offset().top-this.container.outerHeight()-i.top;break;default:t=this.element.offset().top+this.element.outerHeight()-i.top}this.container.css({top:0,left:0,right:"auto"});var r=this.container.outerWidth();if(this.container.toggleClass("drop-up","up"==n),"left"==this.opens){var o=a-this.element.offset().left-this.element.outerWidth();r+o>e(window).width()?this.container.css({top:t,right:"auto",left:9}):this.container.css({top:t,right:o,left:"auto"})}else if("center"==this.opens){(s=this.element.offset().left-i.left+this.element.outerWidth()/2-r/2)<0?this.container.css({top:t,right:"auto",left:9}):s+r>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:s,right:"auto"})}else{var s;(s=this.element.offset().left-i.left)+r>e(window).width()?this.container.css({top:t,left:"auto",right:0}):this.container.css({top:t,left:s,right:"auto"})}},show:function(t){this.isShowing||(this._outsideClickProxy=e.proxy((function(t){this.outsideClick(t)}),this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy((function(t){this.move(t)}),this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var i=e(t.target);"focusin"==t.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),a=i.substr(3,1),r=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][a]:this.rightCalendar.calendar[n][a],o=this.leftCalendar,s=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each((function(t,i){if(!e(i).hasClass("week")){var n=e(i).attr("data-title"),a=n.substr(1,1),c=n.substr(3,1),u=e(i).parents(".drp-calendar").hasClass("left")?o.calendar[a][c]:s.calendar[a][c];u.isAfter(l)&&u.isBefore(r)||u.isSame(r,"day")?e(i).addClass("in-range"):e(i).removeClass("in-range")}}))}},clickDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),a=i.substr(3,1),r=e(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[n][a]:this.rightCalendar.calendar[n][a];if(this.endDate||r.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".left .ampmselect").val())&&o<12&&(o+=12),"AM"===c&&12===o&&(o=0);var s=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var l=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;r=r.clone().hour(o).minute(s).second(l)}this.endDate=null,this.setStartDate(r.clone())}else if(!this.endDate&&r.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var c;o=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(c=this.container.find(".right .ampmselect").val())&&o<12&&(o+=12),"AM"===c&&12===o&&(o=0);s=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(s)&&(s=parseInt(this.container.find(".right .minuteselect option:last").val(),10));l=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;r=r.clone().hour(o).minute(s).second(l)}this.setEndDate(r.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var i in this.ranges){if(this.timePicker){var n=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(n)==this.ranges[i][0].format(n)&&this.endDate.format(n)==this.ranges[i][1].format(n)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var i=e(t.target).closest(".drp-calendar").hasClass("left"),n=i?"left":"right",a=this.container.find(".drp-calendar."+n),r=parseInt(a.find(".monthselect").val(),10),o=a.find(".yearselect").val();i||(o<this.startDate.year()||o==this.startDate.year()&&r<this.startDate.month())&&(r=this.startDate.month(),o=this.startDate.year()),this.minDate&&(o<this.minDate.year()||o==this.minDate.year()&&r<this.minDate.month())&&(r=this.minDate.month(),o=this.minDate.year()),this.maxDate&&(o>this.maxDate.year()||o==this.maxDate.year()&&r>this.maxDate.month())&&(r=this.maxDate.month(),o=this.maxDate.year()),i?(this.leftCalendar.month.month(r).year(o),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(r).year(o),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var i=e(t.target).closest(".drp-calendar"),n=i.hasClass("left"),a=parseInt(i.find(".hourselect").val(),10),r=parseInt(i.find(".minuteselect").val(),10);isNaN(r)&&(r=parseInt(i.find(".minuteselect option:last").val(),10));var o=this.timePickerSeconds?parseInt(i.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var s=i.find(".ampmselect").val();"PM"===s&&a<12&&(a+=12),"AM"===s&&12===a&&(a=0)}if(n){var l=this.startDate.clone();l.hour(a),l.minute(r),l.second(o),this.setStartDate(l),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==l.format("YYYY-MM-DD")&&this.endDate.isBefore(l)&&this.setEndDate(l.clone())}else if(this.endDate){var c=this.endDate.clone();c.hour(a),c.minute(r),c.second(o),this.setEndDate(c)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var e=this.element.val().split(this.locale.separator),i=null,n=null;2===e.length&&(i=t(e[0],this.locale.format),n=t(e[1],this.locale.format)),(this.singleDatePicker||null===i||null===n)&&(n=i=t(this.element.val(),this.locale.format)),i.isValid()&&n.isValid()&&(this.setStartDate(i),this.setEndDate(n),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},e.fn.daterangepicker=function(t,n){var a=e.extend(!0,{},e.fn.daterangepicker.defaultOptions,t);return this.each((function(){var t=e(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,a,n))})),this},i})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){"use strict";var e=0;t.fn.TouchSpin=function(i){var n={min:0,max:100,initval:"",replacementval:"",firstclickvalueifempty:null,step:1,decimals:0,stepinterval:100,forcestepdivisibility:"round",stepintervaldelay:500,verticalbuttons:!1,verticalup:"+",verticaldown:"-",verticalupclass:"",verticaldownclass:"",prefix:"",postfix:"",prefix_extraclass:"",postfix_extraclass:"",booster:!0,boostat:10,maxboostedstep:!1,mousewheel:!0,buttondown_class:"btn btn-primary",buttonup_class:"btn btn-primary",buttondown_txt:"-",buttonup_txt:"+",callback_before_calculation:function(t){return t},callback_after_calculation:function(t){return t}},a={min:"min",max:"max",initval:"init-val",replacementval:"replacement-val",firstclickvalueifempty:"first-click-value-if-empty",step:"step",decimals:"decimals",stepinterval:"step-interval",verticalbuttons:"vertical-buttons",verticalupclass:"vertical-up-class",verticaldownclass:"vertical-down-class",forcestepdivisibility:"force-step-divisibility",stepintervaldelay:"step-interval-delay",prefix:"prefix",postfix:"postfix",prefix_extraclass:"prefix-extra-class",postfix_extraclass:"postfix-extra-class",booster:"booster",boostat:"boostat",maxboostedstep:"max-boosted-step",mousewheel:"mouse-wheel",buttondown_class:"button-down-class",buttonup_class:"button-up-class",buttondown_txt:"button-down-txt",buttonup_txt:"button-up-txt"};return this.each((function(){var r,o,s,l,c,u,d,h,f,p,m=t(this),g=m.data(),v=0,y=!1;function b(){""===r.prefix&&(o=c.prefix.detach()),""===r.postfix&&(s=c.postfix.detach())}function _(){var t,e,i;""!==(t=r.callback_before_calculation(m.val()))?r.decimals>0&&"."===t||(e=parseFloat(t),isNaN(e)&&(e=""!==r.replacementval?r.replacementval:0),i=e,e.toString()!==t&&(i=e),null!==r.min&&e<r.min&&(i=r.min),null!==r.max&&e>r.max&&(i=r.max),i=function(t){switch(r.forcestepdivisibility){case"round":return(Math.round(t/r.step)*r.step).toFixed(r.decimals);case"floor":return(Math.floor(t/r.step)*r.step).toFixed(r.decimals);case"ceil":return(Math.ceil(t/r.step)*r.step).toFixed(r.decimals);default:return t.toFixed(r.decimals)}}(i),Number(t).toString()!==i.toString()&&(m.val(i),m.trigger("change"))):""!==r.replacementval&&(m.val(r.replacementval),m.trigger("change"))}function x(){if(r.booster){var t=Math.pow(2,Math.floor(v/r.boostat))*r.step;return r.maxboostedstep&&t>r.maxboostedstep&&(t=r.maxboostedstep,u=Math.round(u/t)*t),Math.max(r.step,t)}return r.step}function w(){return"number"==typeof r.firstclickvalueifempty?r.firstclickvalueifempty:(r.min+r.max)/2}function k(){_();var t,e=u=parseFloat(r.callback_before_calculation(c.input.val()));isNaN(u)?u=w():(t=x(),u+=t),null!==r.max&&u>r.max&&(u=r.max,m.trigger("touchspin.on.max"),T()),c.input.val(r.callback_after_calculation(Number(u).toFixed(r.decimals))),e!==u&&m.trigger("change")}function S(){_();var t,e=u=parseFloat(r.callback_before_calculation(c.input.val()));isNaN(u)?u=w():(t=x(),u-=t),null!==r.min&&u<r.min&&(u=r.min,m.trigger("touchspin.on.min"),T()),c.input.val(r.callback_after_calculation(Number(u).toFixed(r.decimals))),e!==u&&m.trigger("change")}function M(){T(),v=0,y="down",m.trigger("touchspin.on.startspin"),m.trigger("touchspin.on.startdownspin"),f=setTimeout((function(){d=setInterval((function(){v++,S()}),r.stepinterval)}),r.stepintervaldelay)}function L(){T(),v=0,y="up",m.trigger("touchspin.on.startspin"),m.trigger("touchspin.on.startupspin"),p=setTimeout((function(){h=setInterval((function(){v++,k()}),r.stepinterval)}),r.stepintervaldelay)}function T(){switch(clearTimeout(f),clearTimeout(p),clearInterval(d),clearInterval(h),y){case"up":m.trigger("touchspin.on.stopupspin"),m.trigger("touchspin.on.stopspin");break;case"down":m.trigger("touchspin.on.stopdownspin"),m.trigger("touchspin.on.stopspin")}v=0,y=!1}!function(){if(m.data("alreadyinitialized"))return;if(m.data("alreadyinitialized",!0),e+=1,m.data("spinnerid",e),!m.is("input"))return void console.log("Must be an input.");r=t.extend({},n,g,(u={},t.each(a,(function(t,e){var i="bts-"+e;m.is("[data-"+i+"]")&&(u[t]=m.data(i))})),u),i),""!==r.initval&&""===m.val()&&m.val(r.initval),_(),function(){var e=m.val(),i=m.parent();""!==e&&(e=r.callback_after_calculation(Number(e).toFixed(r.decimals)));m.data("initvalue",e).val(e),m.addClass("form-control"),i.hasClass("input-group")?function(e){e.addClass("bootstrap-touchspin");var i,n,a=m.prev(),o=m.next(),s='<span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix input-group-prepend bootstrap-touchspin-injected"><span class="input-group-text">'+r.prefix+"</span></span>",c='<span class="input-group-addon input-group-append bootstrap-touchspin-postfix input-group-append bootstrap-touchspin-injected"><span class="input-group-text">'+r.postfix+"</span></span>";a.hasClass("input-group-btn")||a.hasClass("input-group-prepend")?(i='<button class="'+r.buttondown_class+' bootstrap-touchspin-down bootstrap-touchspin-injected" type="button">'+r.buttondown_txt+"</button>",a.append(i)):(i='<span class="input-group-btn input-group-prepend bootstrap-touchspin-injected"><button class="'+r.buttondown_class+' bootstrap-touchspin-down" type="button">'+r.buttondown_txt+"</button></span>",t(i).insertBefore(m));o.hasClass("input-group-btn")||o.hasClass("input-group-append")?(n='<button class="'+r.buttonup_class+' bootstrap-touchspin-up bootstrap-touchspin-injected" type="button">'+r.buttonup_txt+"</button>",o.prepend(n)):(n='<span class="input-group-btn input-group-append bootstrap-touchspin-injected"><button class="'+r.buttonup_class+' bootstrap-touchspin-up" type="button">'+r.buttonup_txt+"</button></span>",t(n).insertAfter(m));t(s).insertBefore(m),t(c).insertAfter(m),l=e}(i):function(){var e,i="";m.hasClass("input-sm")&&(i="input-group-sm");m.hasClass("input-lg")&&(i="input-group-lg");e=r.verticalbuttons?'<div class="input-group '+i+' bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix"><span class="input-group-text">'+r.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+r.postfix+'</span></span><span class="input-group-btn-vertical"><button class="'+r.buttondown_class+" bootstrap-touchspin-up "+r.verticalupclass+'" type="button">'+r.verticalup+'</button><button class="'+r.buttonup_class+" bootstrap-touchspin-down "+r.verticaldownclass+'" type="button">'+r.verticaldown+"</button></span></div>":'<div class="input-group bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-btn input-group-prepend"><button class="'+r.buttondown_class+' bootstrap-touchspin-down" type="button">'+r.buttondown_txt+'</button></span><span class="input-group-addon bootstrap-touchspin-prefix input-group-prepend"><span class="input-group-text">'+r.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix input-group-append"><span class="input-group-text">'+r.postfix+'</span></span><span class="input-group-btn input-group-append"><button class="'+r.buttonup_class+' bootstrap-touchspin-up" type="button">'+r.buttonup_txt+"</button></span></div>";l=t(e).insertBefore(m),t(".bootstrap-touchspin-prefix",l).after(m),m.hasClass("input-sm")?l.addClass("input-group-sm"):m.hasClass("input-lg")&&l.addClass("input-group-lg")}()}(),c={down:t(".bootstrap-touchspin-down",l),up:t(".bootstrap-touchspin-up",l),input:t("input",l),prefix:t(".bootstrap-touchspin-prefix",l).addClass(r.prefix_extraclass),postfix:t(".bootstrap-touchspin-postfix",l).addClass(r.postfix_extraclass)},b(),m.on("keydown.touchspin",(function(t){var e=t.keyCode||t.which;38===e?("up"!==y&&(k(),L()),t.preventDefault()):40===e&&("down"!==y&&(S(),M()),t.preventDefault())})),m.on("keyup.touchspin",(function(t){var e=t.keyCode||t.which;(38===e||40===e)&&T()})),m.on("blur.touchspin",(function(){_(),m.val(r.callback_after_calculation(m.val()))})),c.down.on("keydown",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("down"!==y&&(S(),M()),t.preventDefault())})),c.down.on("keyup.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||T()})),c.up.on("keydown.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||("up"!==y&&(k(),L()),t.preventDefault())})),c.up.on("keyup.touchspin",(function(t){var e=t.keyCode||t.which;32!==e&&13!==e||T()})),c.down.on("mousedown.touchspin",(function(t){c.down.off("touchstart.touchspin"),m.is(":disabled")||(S(),M(),t.preventDefault(),t.stopPropagation())})),c.down.on("touchstart.touchspin",(function(t){c.down.off("mousedown.touchspin"),m.is(":disabled")||(S(),M(),t.preventDefault(),t.stopPropagation())})),c.up.on("mousedown.touchspin",(function(t){c.up.off("touchstart.touchspin"),m.is(":disabled")||(k(),L(),t.preventDefault(),t.stopPropagation())})),c.up.on("touchstart.touchspin",(function(t){c.up.off("mousedown.touchspin"),m.is(":disabled")||(k(),L(),t.preventDefault(),t.stopPropagation())})),c.up.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",(function(t){y&&(t.stopPropagation(),T())})),c.down.on("mouseup.touchspin mouseout.touchspin touchleave.touchspin touchend.touchspin touchcancel.touchspin",(function(t){y&&(t.stopPropagation(),T())})),c.down.on("mousemove.touchspin touchmove.touchspin",(function(t){y&&(t.stopPropagation(),t.preventDefault())})),c.up.on("mousemove.touchspin touchmove.touchspin",(function(t){y&&(t.stopPropagation(),t.preventDefault())})),m.on("mousewheel.touchspin DOMMouseScroll.touchspin",(function(t){if(r.mousewheel&&m.is(":focus")){var e=t.originalEvent.wheelDelta||-t.originalEvent.deltaY||-t.originalEvent.detail;t.stopPropagation(),t.preventDefault(),e<0?S():k()}})),m.on("touchspin.destroy",(function(){var e;e=m.parent(),T(),m.off(".touchspin"),e.hasClass("bootstrap-touchspin-injected")?(m.siblings().remove(),m.unwrap()):(t(".bootstrap-touchspin-injected",e).remove(),e.removeClass("bootstrap-touchspin")),m.data("alreadyinitialized",!1)})),m.on("touchspin.uponce",(function(){T(),k()})),m.on("touchspin.downonce",(function(){T(),S()})),m.on("touchspin.startupspin",(function(){L()})),m.on("touchspin.startdownspin",(function(){M()})),m.on("touchspin.stopspin",(function(){T()})),m.on("touchspin.updatesettings",(function(e,i){!function(e){(function(e){r=t.extend({},r,e),e.postfix&&(0===m.parent().find(".bootstrap-touchspin-postfix").length&&s.insertAfter(m),m.parent().find(".bootstrap-touchspin-postfix .input-group-text").text(e.postfix)),e.prefix&&(0===m.parent().find(".bootstrap-touchspin-prefix").length&&o.insertBefore(m),m.parent().find(".bootstrap-touchspin-prefix .input-group-text").text(e.prefix)),b()})(e),_();var i=c.input.val();""!==i&&(i=Number(r.callback_before_calculation(c.input.val())),c.input.val(r.callback_after_calculation(Number(i).toFixed(r.decimals))))}(i)}));var u}()}))}})),function(t){"use strict";t.event.special.destroyed||(t.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}),t.fn.extend({maxlength:function(e,i){var n=t("body");function a(t){var e=t.charCodeAt();return e?e<128?1:e<2048?2:3:0}function r(t){return t.split("").map(a).concat(0).reduce((function(t,e){return t+e}))}function o(t){var i=t.val();i=e.twoCharLinebreak?i.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"):i.replace(/(?:\r\n|\r|\n)/g,"\n");var n=0;return n=e.utf8?r(i):i.length,"file"===t.prop("type")&&""!==t.val()&&(n-=12),n}function s(t,e){return e-o(t)}function l(t,e){e.css({display:"block"}),t.trigger("maxlength.shown")}function c(t,i,n){var a="";return e.message?a="function"==typeof e.message?e.message(t,i):e.message.replace("%charsTyped%",n).replace("%charsRemaining%",i-n).replace("%charsTotal%",i):(e.preText&&(a+=e.preText),e.showCharsTyped?a+=n:a+=i-n,e.showMaxLength&&(a+=e.separator+i),e.postText&&(a+=e.postText)),a}function u(t,i,n,a){var r,s,u,d;a&&(a.html(c(i.val(),n,n-t)),t>0?(r=i,s=e.threshold,u=n,d=!0,!e.alwaysShow&&u-o(r)>s&&(d=!1),d?l(i,a.removeClass(e.limitReachedClass).addClass(e.warningClass)):function(t,i){e.alwaysShow||(i.css({display:"none"}),t.trigger("maxlength.hidden"))}(i,a)):l(i,a.removeClass(e.warningClass).addClass(e.limitReachedClass))),e.customMaxAttribute&&(t<0?i.addClass("overmax"):i.removeClass("overmax"))}function d(i,n){var a=function(e){var i=e[0];return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():{width:i.offsetWidth,height:i.offsetHeight},e.offset())}(i);if("function"!==t.type(e.placement))if(t.isPlainObject(e.placement))!function(i,n){if(i&&n){var a={};t.each(["top","bottom","left","right","position"],(function(t,i){var n=e.placement[i];void 0!==n&&(a[i]=n)})),n.css(a)}}(e.placement,n);else{var r=i.outerWidth(),o=n.outerWidth(),s=n.width(),l=n.height();switch(e.appendToParent&&(a.top-=i.parent().offset().top,a.left-=i.parent().offset().left),e.placement){case"bottom":n.css({top:a.top+a.height,left:a.left+a.width/2-s/2});break;case"top":n.css({top:a.top-l,left:a.left+a.width/2-s/2});break;case"left":n.css({top:a.top+a.height/2-l/2,left:a.left-s});break;case"right":n.css({top:a.top+a.height/2-l/2,left:a.left+a.width});break;case"bottom-right":n.css({top:a.top+a.height,left:a.left+a.width});break;case"top-right":n.css({top:a.top-l,left:a.left+r});break;case"top-left":n.css({top:a.top-l,left:a.left-o});break;case"bottom-left":n.css({top:a.top+i.outerHeight(),left:a.left-o});break;case"centered-right":n.css({top:a.top+l/2,left:a.left+r-o-3});break;case"bottom-right-inside":n.css({top:a.top+a.height,left:a.left+a.width-o});break;case"top-right-inside":n.css({top:a.top-l,left:a.left+r-o});break;case"top-left-inside":n.css({top:a.top-l,left:a.left});break;case"bottom-left-inside":n.css({top:a.top+i.outerHeight(),left:a.left})}}else e.placement(i,n,a)}function h(t){var i=t.attr("maxlength")||e.customMaxAttribute;if(e.customMaxAttribute&&!e.allowOverMax){var n=t.attr(e.customMaxAttribute);(!i||n<i)&&(i=n)}return i||(i=t.attr("size")),i}return t.isFunction(e)&&!i&&(i=e,e={}),e=t.extend({showOnReady:!1,alwaysShow:!0,threshold:0,warningClass:"small form-text text-muted",limitReachedClass:"small form-text text-danger",separator:" / ",preText:"",postText:"",showMaxLength:!0,placement:"bottom-right-inside",message:null,showCharsTyped:!0,validate:!1,utf8:!1,appendToParent:!1,twoCharLinebreak:!0,customMaxAttribute:null,allowOverMax:!1,zIndex:1099},e),this.each((function(){var i,o,l=t(this);function f(){var a=c(l.val(),i,"0");i=h(l),o||(o=t('<span class="bootstrap-maxlength"></span>').css({display:"none",position:"absolute",whiteSpace:"nowrap",zIndex:e.zIndex}).html(a)),l.is("textarea")&&(l.data("maxlenghtsizex",l.outerWidth()),l.data("maxlenghtsizey",l.outerHeight()),l.mouseup((function(){l.outerWidth()===l.data("maxlenghtsizex")&&l.outerHeight()===l.data("maxlenghtsizey")||d(l,o),l.data("maxlenghtsizex",l.outerWidth()),l.data("maxlenghtsizey",l.outerHeight())}))),e.appendToParent?(l.parent().append(o),l.parent().css("position","relative")):n.append(o),u(s(l,h(l)),l,i,o),d(l,o)}t(window).resize((function(){o&&d(l,o)})),e.showOnReady?l.ready((function(){f()})):l.focus((function(){f()})),l.on("maxlength.reposition",(function(){d(l,o)})),l.on("destroyed",(function(){o&&o.remove()})),l.on("blur",(function(){o&&!e.showOnReady&&o.remove()})),l.on("input",(function(){var t=h(l),n=s(l,t),c=!0;return e.validate&&n<0?(!function(t,i){var n=t.val();if(e.twoCharLinebreak&&"\n"===(n=n.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"))[n.length-1]&&(i-=n.length%2),e.utf8){for(var o=n.split("").map(a),s=0,l=r(n)-i;s<l;s+=o.pop());i-=i-o.length}t.val(n.substr(0,i))}(l,t),c=!1):u(n,l,i,o),("bottom-right-inside"===e.placement||"top-right-inside"===e.placement||"function"==typeof e.placement||e.message&&"function"==typeof e.message)&&d(l,o),c}))}))}})}(jQuery),function(t){"use strict";var e=function(t,e){this.init("multiselectsplitter",t,e)};e.DEFAULTS={selectSize:null,maxSelectSize:null,clearOnFirstChange:!1,onlySameGroup:!1,groupCounter:!1,maximumSelected:null,afterInitialize:null,maximumAlert:function(t){alert("Only "+t+" values can be selected")},createFirstSelect:function(t,e){return"<option>"+t+"</option>"},createSecondSelect:function(t,e){return"<option>"+t+"</option>"},template:'<div class="row" data-multiselectsplitter-wrapper-selector><div class="col-xs-6 col-sm-6"><select class="form-control" data-multiselectsplitter-firstselect-selector></select></div> \x3c!-- Add the extra clearfix for only the required viewport --\x3e<div class="col-xs-6 col-sm-6"><select class="form-control" data-multiselectsplitter-secondselect-selector></select></div></div>'},e.prototype.init=function(i,n,a){var r=this;r.type=i,r.last$ElementSelected=[],r.initialized=!1,r.$element=t(n),r.$element.hide(),r.options=t.extend({},e.DEFAULTS,a),r.$element.after(r.options.template),r.$wrapper=r.$element.next("div[data-multiselectsplitter-wrapper-selector]"),r.$firstSelect=t("select[data-multiselectsplitter-firstselect-selector]",r.$wrapper),r.$secondSelect=t("select[data-multiselectsplitter-secondselect-selector]",r.$wrapper);var o=0,s=0;if(0!=r.$element.find("optgroup").length){r.$element.find("optgroup").each((function(){var e=t(this).attr("label"),i=t(r.options.createFirstSelect(e,r.$element));i.val(e),i.attr("data-current-label",i.text()),r.$firstSelect.append(i);var n=t(this).find("option").length;n>s&&(s=n),o++}));var l=Math.max(o,s);l=Math.min(l,10),r.options.selectSize?l=r.options.selectSize:r.options.maxSelectSize&&(l=Math.min(l,r.options.maxSelectSize)),r.$firstSelect.attr("size",l),r.$secondSelect.attr("size",l),r.$element.attr("multiple")&&r.$secondSelect.attr("multiple","multiple"),r.$element.is(":disabled")&&r.disable(),r.$firstSelect.on("change",t.proxy(r.updateParentCategory,r)),r.$secondSelect.on("click change",t.proxy(r.updateChildCategory,r)),r.update=function(){if(!(r.$element.find("option").length<1)){var t,e=r.$element.find("option:selected:first");t=e.length?e.parent().attr("label"):r.$element.find("option:first").parent().attr("label"),r.$firstSelect.find('option[value="'+t+'"]').prop("selected",!0),r.$firstSelect.trigger("change")}},r.update(),r.initialized=!0,r.options.afterInitialize&&r.options.afterInitialize(r.$firstSelect,r.$secondSelect)}},e.prototype.disable=function(){this.$secondSelect.prop("disabled",!0),this.$firstSelect.prop("disabled",!0)},e.prototype.enable=function(){this.$secondSelect.prop("disabled",!1),this.$firstSelect.prop("disabled",!1)},e.prototype.createSecondSelect=function(){var e=this;e.$secondSelect.empty(),t.each(e.$element.find('optgroup[label="'+e.$firstSelect.val()+'"] option'),(function(i,n){var a=t(this).val(),r=t(this).text(),o=t(e.options.createSecondSelect(r,e.$firstSelect));o.val(a),t.each(e.$element.find("option:selected"),(function(e,i){t(i).val()==a&&o.prop("selected",!0)})),e.$secondSelect.append(o)}))},e.prototype.updateParentCategory=function(){var t=this;t.last$ElementSelected=t.$element.find("option:selected"),t.options.clearOnFirstChange&&t.initialized&&t.$element.find("option:selected").prop("selected",!1),t.createSecondSelect(),t.checkSelected(),t.updateCounter()},e.prototype.updateCounter=function(){var e=this;e.$element.attr("multiple")&&e.options.groupCounter&&t.each(e.$firstSelect.find("option"),(function(i,n){var a=t(n).val(),r=t(n).data("currentLabel"),o=e.$element.find('optgroup[label="'+a+'"] option:selected').length;o>0&&(r+=" ("+o+")"),t(n).html(r)}))},e.prototype.checkSelected=function(){var e=this;if(e.$element.attr("multiple")&&e.options.maximumSelected){var i;if(!((i="function"==typeof e.options.maximumSelected?e.options.maximumSelected(e.$firstSelect,e.$secondSelect):e.options.maximumSelected)<1))if(e.$element.find("option:selected").length>i){e.$firstSelect.find("option:selected").prop("selected",!1),e.$secondSelect.find("option:selected").prop("selected",!1),e.initialized?(e.$element.find("option:selected").prop("selected",!1),e.last$ElementSelected.prop("selected",!0)):t.each(e.$element.find("option:selected"),(function(e,n){e>i-1&&t(n).prop("selected",!1)}));var n=e.last$ElementSelected.first().parent().attr("label");e.$firstSelect.find('option[value="'+n+'"]').prop("selected",!0),e.createSecondSelect(),e.options.maximumAlert(i)}}},e.prototype.basicUpdateChildCategory=function(e,i){var n=this;n.last$ElementSelected=n.$element.find("option:selected");var a=n.$secondSelect.val();t.isArray(a)||(a=[a]);var r=n.$firstSelect.val(),o=!1;n.$element.attr("multiple")?n.options.onlySameGroup?t.each(n.$element.find("option:selected"),(function(e,i){if(t(i).parent().attr("label")!=r)return o=!0,!1})):i||(o=!0):o=!0,o?n.$element.find("option:selected").prop("selected",!1):t.each(n.$element.find("option:selected"),(function(e,i){r==t(i).parent().attr("label")&&-1==t.inArray(t(i).val(),a)&&t(i).prop("selected",!1)})),t.each(a,(function(t,e){n.$element.find('option[value="'+e+'"]').prop("selected",!0)})),n.checkSelected(),n.updateCounter(),n.$element.trigger("change")},e.prototype.updateChildCategory=function(e){"change"==e.type?this.timeOut=setTimeout(t.proxy((function(){this.basicUpdateChildCategory(e,e.ctrlKey)}),this),10):"click"==e.type&&(clearTimeout(this.timeOut),this.basicUpdateChildCategory(e,e.ctrlKey))},e.prototype.destroy=function(){this.$wrapper.remove(),this.$element.removeData(this.type),this.$element.show()},t.fn.multiselectsplitter=function(i){return this.each((function(){var n=t(this),a=n.data("multiselectsplitter"),r="object"==typeof i&&i;(a||"destroy"!=i)&&(a||n.data("multiselectsplitter",a=new e(this,r)),"string"==typeof i&&a[i]())}))},t.fn.multiselectsplitter.Constructor=e,t.fn.multiselectsplitter.VERSION="1.0.1"}(jQuery),
/*!
 * Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select)
 *
 * Copyright 2012-2020 SnapAppointments, LLC
 * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
 */
function(t,e){void 0===t&&void 0!==window&&(t=window),"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t)})):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(t.jQuery)}(this,(function(t){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n={"*":["class","dir","id","lang","role","tabindex","style",/^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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},a=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(e,n){var o=e.nodeName.toLowerCase();if(-1!==t.inArray(o,n))return-1===t.inArray(o,i)||Boolean(e.nodeValue.match(a)||e.nodeValue.match(r));for(var s=t(n).filter((function(t,e){return e instanceof RegExp})),l=0,c=s.length;l<c;l++)if(o.match(s[l]))return!0;return!1}function s(t,e,i){if(i&&"function"==typeof i)return i(t);for(var n=Object.keys(e),a=0,r=t.length;a<r;a++)for(var s=t[a].querySelectorAll("*"),l=0,c=s.length;l<c;l++){var u=s[l],d=u.nodeName.toLowerCase();if(-1!==n.indexOf(d))for(var h=[].slice.call(u.attributes),f=[].concat(e["*"]||[],e[d]||[]),p=0,m=h.length;p<m;p++){var g=h[p];o(g,f)||u.removeAttribute(g.nodeName)}else u.parentNode.removeChild(u)}}"classList"in document.createElement("_")||function(e){if("Element"in e){var i="classList",n=e.Element.prototype,a=Object,r=function(){var e=t(this);return{add:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.addClass(t)},remove:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.removeClass(t)},toggle:function(t,i){return e.toggleClass(t,i)},contains:function(t){return e.hasClass(t)}}};if(a.defineProperty){var o={get:r,enumerable:!0,configurable:!0};try{a.defineProperty(n,i,o)}catch(t){void 0!==t.number&&-2146823252!==t.number||(o.enumerable=!1,a.defineProperty(n,i,o))}}else a.prototype.__defineGetter__&&n.__defineGetter__(i,r)}}(window);var l,c,u,d=document.createElement("_");if(d.classList.add("c1","c2"),!d.classList.contains("c2")){var h=DOMTokenList.prototype.add,f=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,h.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,f.bind(this))}}if(d.classList.toggle("c3",!1),d.classList.contains("c3")){var p=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:p.call(this,t)}}function m(t,e){var i,n=t.selectedOptions,a=[];if(e){for(var r=0,o=n.length;r<o;r++)(i=n[r]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||a.push(i);return a}return n}function g(t,e){for(var i,n=[],a=e||t.selectedOptions,r=0,o=a.length;r<o;r++)(i=a[r]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||n.push(i.value);return t.multiple?n:n.length?n[0]:null}d=null,String.prototype.startsWith||(l=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),c={}.toString,u=function(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==c.call(t))throw new TypeError;var i=e.length,n=String(t),a=n.length,r=arguments.length>1?arguments[1]:void 0,o=r?Number(r):0;o!=o&&(o=0);var s=Math.min(Math.max(o,0),i);if(a+s>i)return!1;for(var l=-1;++l<a;)if(e.charCodeAt(s+l)!=n.charCodeAt(l))return!1;return!0},l?l(String.prototype,"startsWith",{value:u,configurable:!0,writable:!0}):String.prototype.startsWith=u),Object.keys||(Object.keys=function(t,e,i){for(e in i=[],t)i.hasOwnProperty.call(t,e)&&i.push(e);return i}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var v={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,i){return i&&!v.useDefault&&t(e).data("selected",!0),v._set.apply(this,arguments)};var y=null,b=function(){try{return new Event("change"),!0}catch(t){return!1}}();function _(t,e,i,n){for(var a=["display","subtext","tokens"],r=!1,o=0;o<a.length;o++){var s=a[o],l=t[s];if(l&&(l=l.toString(),"display"===s&&(l=l.replace(/<[^>]+>/g,"")),n&&(l=L(l)),l=l.toUpperCase(),r="contains"===i?l.indexOf(e)>=0:l.startsWith(e)))break}return r}function x(t){return parseInt(t,10)||0}t.fn.triggerNative=function(t){var e,i=this[0];i.dispatchEvent?(b?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),i.dispatchEvent(e)):i.fireEvent?((e=document.createEventObject()).eventType=t,i.fireEvent("on"+t,e)):this.trigger(t)};var w={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},k=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function M(t){return w[t]}function L(t){return(t=t.toString())&&t.replace(k,M).replace(S,"")}var T=function(t){var e=function(e){return t[e]},i="(?:"+Object.keys(t).join("|")+")",n=RegExp(i),a=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(a,e):t}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"}),C={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},A=27,D=13,E=32,O=9,P=38,Y=40,I={success:!1,major:"3"};try{I.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),I.major=I.full[0],I.success=!0}catch(t){}var N=0,H=".bs.select",j={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},F={MENU:"."+j.MENU},R={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode(" "),fragment:document.createDocumentFragment()};R.noResults=R.li.cloneNode(!1),R.noResults.className="no-results",R.a.setAttribute("role","option"),R.a.className="dropdown-item",R.subtext.className="text-muted",R.text=R.span.cloneNode(!1),R.text.className="text",R.checkMark=R.span.cloneNode(!1);var z=new RegExp(P+"|"+Y),$=new RegExp("^"+O+"$|"+A),B={li:function(t,e,i){var n=R.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?n.appendChild(t):n.innerHTML=t),void 0!==e&&""!==e&&(n.className=e),null!=i&&n.classList.add("optgroup-"+i),n},a:function(t,e,i){var n=R.a.cloneNode(!0);return t&&(11===t.nodeType?n.appendChild(t):n.insertAdjacentHTML("beforeend",t)),void 0!==e&&""!==e&&n.classList.add.apply(n.classList,e.split(/\s+/)),i&&n.setAttribute("style",i),n},text:function(t,e){var i,n,a=R.text.cloneNode(!1);if(t.content)a.innerHTML=t.content;else{if(a.textContent=t.text,t.icon){var r=R.whitespace.cloneNode(!1);(n=(!0===e?R.i:R.span).cloneNode(!1)).className=this.options.iconBase+" "+t.icon,R.fragment.appendChild(n),R.fragment.appendChild(r)}t.subtext&&((i=R.subtext.cloneNode(!1)).textContent=t.subtext,a.appendChild(i))}if(!0===e)for(;a.childNodes.length>0;)R.fragment.appendChild(a.childNodes[0]);else R.fragment.appendChild(a);return R.fragment},label:function(t){var e,i,n=R.text.cloneNode(!1);if(n.innerHTML=t.display,t.icon){var a=R.whitespace.cloneNode(!1);(i=R.span.cloneNode(!1)).className=this.options.iconBase+" "+t.icon,R.fragment.appendChild(i),R.fragment.appendChild(a)}return t.subtext&&((e=R.subtext.cloneNode(!1)).textContent=t.subtext,n.appendChild(e)),R.fragment.appendChild(n),R.fragment}};function W(t,e){t.length||(R.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+T(e)+'"'),this.$menuInner[0].firstChild.appendChild(R.noResults))}var V=function(e,i){var n=this;v.useDefault||(t.valHooks.select.set=v._set,v.useDefault=!0),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){n.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var a=this.options.windowPadding;"number"==typeof a&&(this.options.windowPadding=[a,a,a,a]),this.val=V.prototype.val,this.render=V.prototype.render,this.refresh=V.prototype.refresh,this.setStyle=V.prototype.setStyle,this.selectAll=V.prototype.selectAll,this.deselectAll=V.prototype.deselectAll,this.destroy=V.prototype.destroy,this.remove=V.prototype.remove,this.show=V.prototype.show,this.hide=V.prototype.hide,this.init()};function q(i){var n,a=arguments,r=i;if([].shift.apply(a),!I.success){try{I.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(t){V.BootstrapVersion?I.full=V.BootstrapVersion.split(" ")[0].split("."):(I.full=[I.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",t))}I.major=I.full[0],I.success=!0}if("4"===I.major){var o=[];V.DEFAULTS.style===j.BUTTONCLASS&&o.push({name:"style",className:"BUTTONCLASS"}),V.DEFAULTS.iconBase===j.ICONBASE&&o.push({name:"iconBase",className:"ICONBASE"}),V.DEFAULTS.tickIcon===j.TICKICON&&o.push({name:"tickIcon",className:"TICKICON"}),j.DIVIDER="dropdown-divider",j.SHOW="show",j.BUTTONCLASS="btn-light",j.POPOVERHEADER="popover-header",j.ICONBASE="",j.TICKICON="bs-ok-default";for(var s=0;s<o.length;s++){i=o[s];V.DEFAULTS[i.name]=j[i.className]}}var l=this.each((function(){var i=t(this);if(i.is("select")){var o=i.data("selectpicker"),s="object"==typeof r&&r;if(o){if(s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o.options[l]=s[l])}else{var c=i.data();for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&-1!==t.inArray(u,e)&&delete c[u];var d=t.extend({},V.DEFAULTS,t.fn.selectpicker.defaults||{},c,s);d.template=t.extend({},V.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},c.template,s.template),i.data("selectpicker",o=new V(this,d))}"string"==typeof r&&(n=o[r]instanceof Function?o[r].apply(o,a):o.options[r])}}));return void 0!==n?n:l}V.VERSION="1.13.18",V.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:j.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:j.ICONBASE,tickIcon:j.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:n},V.prototype={constructor:V,init:function(){var t=this,e=this.$element.attr("id"),i=this.$element[0],n=i.form;N++,this.selectId="bs-select-"+N,i.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),i.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),n&&null===i.form&&(n.id||(n.id="form-"+this.selectId),i.setAttribute("form",n.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(F.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),i.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(j.MENURIGHT),void 0!==e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide.bs.select",(function(){if(t.isVirtual()){var e=t.$menuInner[0],i=e.firstChild.cloneNode(!1);e.replaceChild(i,e.firstChild),e.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide.bs.select",e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden.bs.select",e)},"show.bs.dropdown":function(e){t.$element.trigger("show.bs.select",e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown.bs.select",e)}}),i.hasAttribute("required")&&this.$element.on("invalid.bs.select",(function(){t.$button[0].classList.add("bs-invalid"),t.$element.on("shown.bs.select.invalid",(function(){t.$element.val(t.$element.val()).off("shown.bs.select.invalid")})).on("rendered.bs.select",(function(){this.validity.valid&&t.$button[0].classList.remove("bs-invalid"),t.$element.off("rendered.bs.select")})),t.$button.on("blur.bs.select",(function(){t.$element.trigger("focus").trigger("blur"),t.$button.off("blur.bs.select")}))})),setTimeout((function(){t.buildList(),t.$element.trigger("loaded.bs.select")}))},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",i=this.multiple?' aria-multiselectable="true"':"",n="",a=this.autofocus?" autofocus":"";I.major<4&&this.$element.parent().hasClass("input-group")&&(n=" input-group-btn");var r,o="",s="",l="",c="";return this.options.header&&(o='<div class="'+j.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>"),this.options.liveSearch&&(s='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+T(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(l='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+j.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+j.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(c='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+j.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),r='<div class="dropdown bootstrap-select'+e+n+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+a+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===I.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+j.MENU+" "+("4"===I.major?"":j.SHOW)+'">'+o+s+l+'<div class="inner '+j.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+i+'><ul class="'+j.MENU+" inner "+("4"===I.major?j.SHOW:"")+'" role="presentation"></ul></div>'+c+"</div></div>",t(r)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],i=!0;"divider"===e.type?(i=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(i=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,e.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=t)),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(e,i,n){var a,r,o=this,l=0,c=[];if(this.selectpicker.isSearching=e,this.selectpicker.current=e?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),i)if(n)l=this.$menuInner[0].scrollTop;else if(!o.multiple){var u=o.$element[0],d=(u.options[u.selectedIndex]||{}).liIndex;if("number"==typeof d&&!1!==o.options.size){var h=o.selectpicker.main.data[d],f=h&&h.position;f&&(l=f-(o.sizeInfo.menuInnerHeight+o.sizeInfo.liHeight)/2)}}function p(t,i){var n,l,u,d,h,f,p,m,g,v,y=o.selectpicker.current.elements.length,b=[],_=!0,x=o.isVirtual();o.selectpicker.view.scrollTop=t,n=Math.ceil(o.sizeInfo.menuInnerHeight/o.sizeInfo.liHeight*1.5),l=Math.round(y/n)||1;for(var w=0;w<l;w++){var k=(w+1)*n;if(w===l-1&&(k=y),b[w]=[w*n+(w?1:0),k],!y)break;void 0===h&&t-1<=o.selectpicker.current.data[k-1].position-o.sizeInfo.menuInnerHeight&&(h=w)}if(void 0===h&&(h=0),f=[o.selectpicker.view.position0,o.selectpicker.view.position1],u=Math.max(0,h-1),d=Math.min(l-1,h+1),o.selectpicker.view.position0=!1===x?0:Math.max(0,b[u][0])||0,o.selectpicker.view.position1=!1===x?y:Math.min(y,b[d][1])||0,p=f[0]!==o.selectpicker.view.position0||f[1]!==o.selectpicker.view.position1,void 0!==o.activeIndex&&(r=o.selectpicker.main.elements[o.prevActiveIndex],c=o.selectpicker.main.elements[o.activeIndex],a=o.selectpicker.main.elements[o.selectedIndex],i&&(o.activeIndex!==o.selectedIndex&&o.defocusItem(c),o.activeIndex=void 0),o.activeIndex&&o.activeIndex!==o.selectedIndex&&o.defocusItem(a)),void 0!==o.prevActiveIndex&&o.prevActiveIndex!==o.activeIndex&&o.prevActiveIndex!==o.selectedIndex&&o.defocusItem(r),(i||p)&&(m=o.selectpicker.view.visibleElements?o.selectpicker.view.visibleElements.slice():[],o.selectpicker.view.visibleElements=!1===x?o.selectpicker.current.elements:o.selectpicker.current.elements.slice(o.selectpicker.view.position0,o.selectpicker.view.position1),o.setOptionStatus(),(e||!1===x&&i)&&(g=m,v=o.selectpicker.view.visibleElements,_=!(g.length===v.length&&g.every((function(t,e){return t===v[e]})))),(i||!0===x)&&_)){var S,M,L=o.$menuInner[0],T=document.createDocumentFragment(),C=L.firstChild.cloneNode(!1),A=o.selectpicker.view.visibleElements,D=[];L.replaceChild(C,L.firstChild);w=0;for(var E=A.length;w<E;w++){var O,P,Y=A[w];o.options.sanitize&&(O=Y.lastChild)&&(P=o.selectpicker.current.data[w+o.selectpicker.view.position0])&&P.content&&!P.sanitized&&(D.push(O),P.sanitized=!0),T.appendChild(Y)}if(o.options.sanitize&&D.length&&s(D,o.options.whiteList,o.options.sanitizeFn),!0===x?(S=0===o.selectpicker.view.position0?0:o.selectpicker.current.data[o.selectpicker.view.position0-1].position,M=o.selectpicker.view.position1>y-1?0:o.selectpicker.current.data[y-1].position-o.selectpicker.current.data[o.selectpicker.view.position1-1].position,L.firstChild.style.marginTop=S+"px",L.firstChild.style.marginBottom=M+"px"):(L.firstChild.style.marginTop=0,L.firstChild.style.marginBottom=0),L.firstChild.appendChild(T),!0===x&&o.sizeInfo.hasScrollBar){var I=L.firstChild.offsetWidth;if(i&&I<o.sizeInfo.menuInnerInnerWidth&&o.sizeInfo.totalMenuWidth>o.sizeInfo.selectWidth)L.firstChild.style.minWidth=o.sizeInfo.menuInnerInnerWidth+"px";else if(I>o.sizeInfo.menuInnerInnerWidth){o.$menu[0].style.minWidth=0;var N=L.firstChild.offsetWidth;N>o.sizeInfo.menuInnerInnerWidth&&(o.sizeInfo.menuInnerInnerWidth=N,L.firstChild.style.minWidth=o.sizeInfo.menuInnerInnerWidth+"px"),o.$menu[0].style.minWidth=""}}}if(o.prevActiveIndex=o.activeIndex,o.options.liveSearch){if(e&&i){var H,j=0;o.selectpicker.view.canHighlight[j]||(j=1+o.selectpicker.view.canHighlight.slice(1).indexOf(!0)),H=o.selectpicker.view.visibleElements[j],o.defocusItem(o.selectpicker.view.currentActive),o.activeIndex=(o.selectpicker.current.data[j]||{}).index,o.focusItem(H)}}else o.$menuInner.trigger("focus")}p(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(t,e){o.noScroll||p(this.scrollTop,e),o.noScroll=!1})),t(window).off("resize.bs.select."+this.selectId+".createView").on("resize.bs.select."+this.selectId+".createView",(function(){o.$newElement.hasClass(j.SHOW)&&p(o.$menuInner[0].scrollTop)}))},focusItem:function(t,e,i){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var n=t.firstChild;n&&(n.setAttribute("aria-setsize",this.selectpicker.view.size),n.setAttribute("aria-posinset",e.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",n.id),t.classList.add("active"),n.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=this,e=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),e=!0;var i=this.$element[0],n=!1,a=!this.selectpicker.view.titleOption.parentNode,r=i.selectedIndex,o=i.options[r],s=window.performance&&window.performance.getEntriesByType("navigation"),l=s&&s.length?"back_forward"!==s[0].type:2!==window.performance.navigation.type;a&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",n=!o||0===r&&!1===o.defaultSelected&&void 0===this.$element.data("selected")),(a||0!==this.selectpicker.view.titleOption.index)&&i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),n&&l?i.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){t.selectpicker.view.displayedValue!==i.value&&t.render()}))}return e},buildData:function(){var t=':not([hidden]):not([data-hidden="true"])',e=[],i=0,n=this.setPlaceholder()?1:0;this.options.hideDisabled&&(t+=":not(:disabled)");var a=this.$element[0].querySelectorAll("select > *"+t);function r(t){var i=e[e.length-1];i&&"divider"===i.type&&(i.optID||t.optID)||((t=t||{}).type="divider",e.push(t))}function o(t,i){if((i=i||{}).divider="true"===t.getAttribute("data-divider"),i.divider)r({optID:i.optID});else{var n=e.length,a=t.style.cssText,o=a?T(a):"",s=(t.className||"")+(i.optgroupClass||"");i.optID&&(s="opt "+s),i.optionClass=s.trim(),i.inlineStyle=o,i.text=t.textContent,i.content=t.getAttribute("data-content"),i.tokens=t.getAttribute("data-tokens"),i.subtext=t.getAttribute("data-subtext"),i.icon=t.getAttribute("data-icon"),t.liIndex=n,i.display=i.content||i.text,i.type="option",i.index=n,i.option=t,i.selected=!!t.selected,i.disabled=i.disabled||!!t.disabled,e.push(i)}}function s(a,s){var l=s[a],c=!(a-1<n)&&s[a-1],u=s[a+1],d=l.querySelectorAll("option"+t);if(d.length){var h,f,p={display:T(l.label),subtext:l.getAttribute("data-subtext"),icon:l.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(l.className||"")};i++,c&&r({optID:i}),p.optID=i,e.push(p);for(var m=0,g=d.length;m<g;m++){var v=d[m];0===m&&(f=(h=e.length-1)+g),o(v,{headerIndex:h,lastIndex:f,optID:p.optID,optgroupClass:p.optgroupClass,disabled:l.disabled})}u&&r({optID:i})}}for(var l=a.length,c=n;c<l;c++){var u=a[c];"OPTGROUP"!==u.tagName?o(u,{}):s(c,a)}this.selectpicker.main.data=this.selectpicker.current.data=e},buildList:function(){var t=this,e=this.selectpicker.main.data,i=[],n=0;function a(e){var a,r=0;switch(e.type){case"divider":a=B.li(!1,j.DIVIDER,e.optID?e.optID+"div":void 0);break;case"option":(a=B.li(B.a(B.text.call(t,e),e.optionClass,e.inlineStyle),"",e.optID)).firstChild&&(a.firstChild.id=t.selectId+"-"+e.index);break;case"optgroup-label":a=B.li(B.label.call(t,e),"dropdown-header"+e.optgroupClass,e.optID)}e.element=a,i.push(a),e.display&&(r+=e.display.length),e.subtext&&(r+=e.subtext.length),e.icon&&(r+=1),r>n&&(n=r,t.selectpicker.view.widestOption=i[i.length-1])}!t.options.showTick&&!t.multiple||R.checkMark.parentNode||(R.checkMark.className=this.options.iconBase+" "+t.options.tickIcon+" check-mark",R.a.appendChild(R.checkMark));for(var r=e.length,o=0;o<r;o++){a(e[o])}this.selectpicker.main.elements=this.selectpicker.current.elements=i},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t,e,i=this,n=this.$element[0],a=this.setPlaceholder()&&0===n.selectedIndex,r=m(n,this.options.hideDisabled),o=r.length,l=this.$button[0],c=l.querySelector(".filter-option-inner-inner"),u=document.createTextNode(this.options.multipleSeparator),d=R.fragment.cloneNode(!1),h=!1;if(l.classList.toggle("bs-placeholder",i.multiple?!o:!g(n,r)),i.multiple||1!==r.length||(i.selectpicker.view.displayedValue=g(n,r)),"static"===this.options.selectedTextFormat)d=B.text.call(this,{text:this.options.title},!0);else if((t=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&o>1)&&(t=(e=this.options.selectedTextFormat.split(">")).length>1&&o>e[1]||1===e.length&&o>=2),!1===t){if(!a){for(var f=0;f<o&&f<50;f++){var p=r[f],v=this.selectpicker.main.data[p.liIndex],y={};this.multiple&&f>0&&d.appendChild(u.cloneNode(!1)),p.title?y.text=p.title:v&&(v.content&&i.options.showContent?(y.content=v.content.toString(),h=!0):(i.options.showIcon&&(y.icon=v.icon),i.options.showSubtext&&!i.multiple&&v.subtext&&(y.subtext=" "+v.subtext),y.text=p.textContent.trim())),d.appendChild(B.text.call(this,y,!0))}o>49&&d.appendChild(document.createTextNode("..."))}}else{var b=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(b+=":not(:disabled)");var _=this.$element[0].querySelectorAll("select > option"+b+", optgroup"+b+" option"+b).length,x="function"==typeof this.options.countSelectedText?this.options.countSelectedText(o,_):this.options.countSelectedText;d=B.text.call(this,{text:x.replace("{0}",o.toString()).replace("{1}",_.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),d.childNodes.length||(d=B.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),l.title=d.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&h&&s([d],i.options.whiteList,i.options.sanitizeFn),c.innerHTML="",c.appendChild(d),I.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var w=l.querySelector(".filter-expand"),k=c.cloneNode(!0);k.className="filter-expand",w?l.replaceChild(k,w):l.appendChild(k)}this.$element.trigger("rendered.bs.select")},setStyle:function(t,e){var i,n=this.$button[0],a=this.$newElement[0],r=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),I.major<4&&(a.classList.add("bs3"),a.parentNode.classList&&a.parentNode.classList.contains("input-group")&&(a.previousElementSibling||a.nextElementSibling)&&(a.previousElementSibling||a.nextElementSibling).classList.contains("input-group-addon")&&a.classList.add("bs3-has-addon")),i=t?t.trim():r,"add"==e?i&&n.classList.add.apply(n.classList,i.split(" ")):"remove"==e?i&&n.classList.remove.apply(n.classList,i.split(" ")):(r&&n.classList.remove.apply(n.classList,r.split(" ")),i&&n.classList.add.apply(n.classList,i.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var i,n=R.div.cloneNode(!1),a=R.div.cloneNode(!1),r=R.div.cloneNode(!1),o=document.createElement("ul"),s=R.li.cloneNode(!1),l=R.li.cloneNode(!1),c=R.a.cloneNode(!1),u=R.span.cloneNode(!1),d=this.options.header&&this.$menu.find("."+j.POPOVERHEADER).length>0?this.$menu.find("."+j.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?R.div.cloneNode(!1):null,f=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,u.className="text",c.className="dropdown-item "+(m?m.className:""),n.className=this.$menu[0].parentNode.className+" "+j.SHOW,n.style.width=0,"auto"===this.options.width&&(a.style.minWidth=0),a.className=j.MENU+" "+j.SHOW,r.className="inner "+j.SHOW,o.className=j.MENU+" inner "+("4"===I.major?j.SHOW:""),s.className=j.DIVIDER,l.className="dropdown-header",u.appendChild(document.createTextNode("​")),this.selectpicker.current.data.length)for(var g=0;g<this.selectpicker.current.data.length;g++){var v=this.selectpicker.current.data[g];if("option"===v.type){i=v.element;break}}else i=R.li.cloneNode(!1),c.appendChild(u),i.appendChild(c);if(l.appendChild(u.cloneNode(!0)),this.selectpicker.view.widestOption&&o.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),o.appendChild(i),o.appendChild(s),o.appendChild(l),d&&a.appendChild(d),h){var y=document.createElement("input");h.className="bs-searchbox",y.className="form-control",h.appendChild(y),a.appendChild(h)}f&&a.appendChild(f),r.appendChild(o),a.appendChild(r),p&&a.appendChild(p),n.appendChild(a),document.body.appendChild(n);var b,_=i.offsetHeight,w=l?l.offsetHeight:0,k=d?d.offsetHeight:0,S=h?h.offsetHeight:0,M=f?f.offsetHeight:0,L=p?p.offsetHeight:0,T=t(s).outerHeight(!0),C=!!window.getComputedStyle&&window.getComputedStyle(a),A=a.offsetWidth,D=C?null:t(a),E={vert:x(C?C.paddingTop:D.css("paddingTop"))+x(C?C.paddingBottom:D.css("paddingBottom"))+x(C?C.borderTopWidth:D.css("borderTopWidth"))+x(C?C.borderBottomWidth:D.css("borderBottomWidth")),horiz:x(C?C.paddingLeft:D.css("paddingLeft"))+x(C?C.paddingRight:D.css("paddingRight"))+x(C?C.borderLeftWidth:D.css("borderLeftWidth"))+x(C?C.borderRightWidth:D.css("borderRightWidth"))},O={vert:E.vert+x(C?C.marginTop:D.css("marginTop"))+x(C?C.marginBottom:D.css("marginBottom"))+2,horiz:E.horiz+x(C?C.marginLeft:D.css("marginLeft"))+x(C?C.marginRight:D.css("marginRight"))+2};r.style.overflowY="scroll",b=a.offsetWidth-A,document.body.removeChild(n),this.sizeInfo.liHeight=_,this.sizeInfo.dropdownHeaderHeight=w,this.sizeInfo.headerHeight=k,this.sizeInfo.searchHeight=S,this.sizeInfo.actionsHeight=M,this.sizeInfo.doneButtonHeight=L,this.sizeInfo.dividerHeight=T,this.sizeInfo.menuPadding=E,this.sizeInfo.menuExtras=O,this.sizeInfo.menuWidth=A,this.sizeInfo.menuInnerInnerWidth=A-E.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=b,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,i=this,n=t(window),a=i.$newElement.offset(),r=t(i.options.container);i.options.container&&r.length&&!r.is("body")?((e=r.offset()).top+=parseInt(r.css("borderTopWidth")),e.left+=parseInt(r.css("borderLeftWidth"))):e={top:0,left:0};var o=i.options.windowPadding;this.sizeInfo.selectOffsetTop=a.top-e.top-n.scrollTop(),this.sizeInfo.selectOffsetBot=n.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-o[2],this.sizeInfo.selectOffsetLeft=a.left-e.left-n.scrollLeft(),this.sizeInfo.selectOffsetRight=n.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-o[1],this.sizeInfo.selectOffsetTop-=o[0],this.sizeInfo.selectOffsetLeft-=o[3]},setMenuSize:function(t){this.getSelectPosition();var e,i,n,a,r,o,s,l,c=this.sizeInfo.selectWidth,u=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,h=this.sizeInfo.searchHeight,f=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,v=0;if(this.options.dropupAuto&&(s=u*this.selectpicker.current.elements.length+g.vert,l=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(j.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)a=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=a+d+h+f+p,o=Math.max(a-g.vert,0),this.$newElement.hasClass(j.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),r=i,e=i-d-h-f-p-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var y=0;y<this.options.size;y++)"divider"===this.selectpicker.current.data[y].type&&v++;e=(i=u*this.options.size+v*m+g.vert)-g.vert,r=i+d+h+f+p,n=o=""}this.$menu.css({"max-height":r+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":o+"px"}),this.sizeInfo.menuInnerHeight=Math.max(e,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(j.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i=this,n=t(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",(function(){return i.setMenuSize()})),"auto"===this.options.size?n.off("resize.bs.select."+this.selectId+".setMenuSize scroll"+".bs.select."+this.selectId+".setMenuSize").on("resize.bs.select."+this.selectId+".setMenuSize scroll"+".bs.select."+this.selectId+".setMenuSize",(function(){return i.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&n.off("resize.bs.select."+this.selectId+".setMenuSize scroll"+".bs.select."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame((function(){t.$menu.css("min-width","0"),t.$element.on("loaded.bs.select",(function(){t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),i=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,i),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var e,i,n,a=this,r=t(this.options.container),o=function(o){var s={},l=a.options.display||!!t.fn.dropdown.Constructor.Default&&t.fn.dropdown.Constructor.Default.display;a.$bsContainer.addClass(o.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(j.DROPUP,o.hasClass(j.DROPUP)),e=o.offset(),r.is("body")?i={top:0,left:0}:((i=r.offset()).top+=parseInt(r.css("borderTopWidth"))-r.scrollTop(),i.left+=parseInt(r.css("borderLeftWidth"))-r.scrollLeft()),n=o.hasClass(j.DROPUP)?0:o[0].offsetHeight,(I.major<4||"static"===l)&&(s.top=e.top-i.top+n,s.left=e.left-i.left),s.width=o[0].offsetWidth,a.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",(function(){a.isDisabled()||(o(a.$newElement),a.$bsContainer.appendTo(a.options.container).toggleClass(j.SHOW,!a.$button.hasClass(j.SHOW)).append(a.$menu))})),t(window).off("resize.bs.select."+this.selectId+" scroll"+".bs.select."+this.selectId).on("resize.bs.select."+this.selectId+" scroll"+".bs.select."+this.selectId,(function(){a.$newElement.hasClass(j.SHOW)&&o(a.$newElement)})),this.$element.on("hide.bs.select",(function(){a.$menu.data("height",a.$menu.height()),a.$bsContainer.detach()}))},setOptionStatus:function(t){var e=this;if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var i=0;i<e.selectpicker.view.visibleElements.length;i++){var n=e.selectpicker.current.data[i+e.selectpicker.view.position0],a=n.option;a&&(!0!==t&&e.setDisabled(n.index,n.disabled),e.setSelected(n.index,a.selected))}},setSelected:function(t,e){var i,n,a=this.selectpicker.main.elements[t],r=this.selectpicker.main.data[t],o=void 0!==this.activeIndex,s=this.activeIndex===t||e&&!this.multiple&&!o;r.selected=e,n=a.firstChild,e&&(this.selectedIndex=t),a.classList.toggle("selected",e),s?(this.focusItem(a,r),this.selectpicker.view.currentActive=a,this.activeIndex=t):this.defocusItem(a),n&&(n.classList.toggle("selected",e),e?n.setAttribute("aria-selected",!0):this.multiple?n.setAttribute("aria-selected",!1):n.removeAttribute("aria-selected")),s||o||!e||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i))},setDisabled:function(t,e){var i,n=this.selectpicker.main.elements[t];this.selectpicker.main.data[t].disabled=e,i=n.firstChild,n.classList.toggle(j.DISABLED,e),i&&("4"===I.major&&i.classList.toggle(j.DISABLED,e),e?(i.setAttribute("aria-disabled",e),i.setAttribute("tabindex",-1)):(i.removeAttribute("aria-disabled"),i.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(j.DISABLED),this.$button.addClass(j.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(j.DISABLED)&&(this.$newElement[0].classList.remove(j.DISABLED),this.$button.removeClass(j.DISABLED).attr("aria-disabled",!1))},clickListener:function(){var e=this,i=t(document);function n(){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$menuInner.trigger("focus")}function a(){e.dropdown&&e.dropdown._popper&&e.dropdown._popper.state.isCreated?n():requestAnimationFrame(a)}i.data("spaceSelect",!1),this.$button.on("keyup",(function(t){/(32)/.test(t.keyCode.toString(10))&&i.data("spaceSelect")&&(t.preventDefault(),i.data("spaceSelect",!1))})),this.$newElement.on("show.bs.dropdown",(function(){I.major>3&&!e.dropdown&&(e.dropdown=e.$button.data("bs.dropdown"),e.dropdown._menu=e.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){e.$newElement.hasClass(j.SHOW)||e.setSize()})),this.$element.on("shown.bs.select",(function(){e.$menuInner[0].scrollTop!==e.selectpicker.view.scrollTop&&(e.$menuInner[0].scrollTop=e.selectpicker.view.scrollTop),I.major>3?requestAnimationFrame(a):n()})),this.$menuInner.on("mouseenter","li a",(function(t){var i=this.parentElement,n=e.isVirtual()?e.selectpicker.view.position0:0,a=Array.prototype.indexOf.call(i.parentElement.children,i),r=e.selectpicker.current.data[a+n];e.focusItem(i,r,!0)})),this.$menuInner.on("click","li a",(function(i,n){var a=t(this),r=e.$element[0],o=e.isVirtual()?e.selectpicker.view.position0:0,s=e.selectpicker.current.data[a.parent().index()+o],l=s.index,c=g(r),u=r.selectedIndex,d=r.options[u],h=!0;if(e.multiple&&1!==e.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!a.parent().hasClass(j.DISABLED)){var f=s.option,p=t(f),v=f.selected,b=p.parent("optgroup"),_=b.find("option"),x=e.options.maxOptions,w=b.data("maxOptions")||!1;if(l===e.activeIndex&&(n=!0),n||(e.prevActiveIndex=e.activeIndex,e.activeIndex=void 0),e.multiple){if(f.selected=!v,e.setSelected(l,!v),e.focusedParent.focus(),!1!==x||!1!==w){var k=x<m(r).length,S=w<b.find("option:selected").length;if(x&&k||w&&S)if(x&&1==x)r.selectedIndex=-1,f.selected=!0,e.setOptionStatus(!0);else if(w&&1==w){for(var M=0;M<_.length;M++){var L=_[M];L.selected=!1,e.setSelected(L.liIndex,!1)}f.selected=!0,e.setSelected(l,!0)}else{var T="string"==typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,C="function"==typeof T?T(x,w):T,A=C[0].replace("{n}",x),D=C[1].replace("{n}",w),E=t('<div class="notify"></div>');C[2]&&(A=A.replace("{var}",C[2][x>1?0:1]),D=D.replace("{var}",C[2][w>1?0:1])),f.selected=!1,e.$menu.append(E),x&&k&&(E.append(t("<div>"+A+"</div>")),h=!1,e.$element.trigger("maxReached.bs.select")),w&&S&&(E.append(t("<div>"+D+"</div>")),h=!1,e.$element.trigger("maxReachedGrp.bs.select")),setTimeout((function(){e.setSelected(l,!1)}),10),E[0].classList.add("fadeOut"),setTimeout((function(){E.remove()}),1050)}}}else d&&(d.selected=!1),f.selected=!0,e.setSelected(l,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.trigger("focus"):e.options.liveSearch&&e.$searchbox.trigger("focus"),h&&(e.multiple||u!==r.selectedIndex)&&(y=[f.index,p.prop("selected"),c],e.$element.triggerNative("change"))}})),this.$menu.on("click","li."+j.DISABLED+" a, ."+j.POPOVERHEADER+", ."+j.POPOVERHEADER+" :not(.close)",(function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),e.options.liveSearch&&!t(i.target).hasClass("close")?e.$searchbox.trigger("focus"):e.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus")})),this.$menu.on("click","."+j.POPOVERHEADER+" .close",(function(){e.$button.trigger("click")})),this.$searchbox.on("click",(function(t){t.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(i){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus"),i.preventDefault(),i.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()})),this.$button.on("focus.bs.select",(function(t){var i=e.$element[0].getAttribute("tabindex");void 0!==i&&t.originalEvent&&t.originalEvent.isTrusted&&(this.setAttribute("tabindex",i),e.$element[0].setAttribute("tabindex",-1),e.selectpicker.view.tabindex=i)})).on("blur.bs.select",(function(t){void 0!==e.selectpicker.view.tabindex&&t.originalEvent&&t.originalEvent.isTrusted&&(e.$element[0].setAttribute("tabindex",e.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),e.selectpicker.view.tabindex=void 0)})),this.$element.on("change.bs.select",(function(){e.render(),e.$element.trigger("changed.bs.select",y),y=null})).on("focus.bs.select",(function(){e.options.mobile||e.$button[0].focus()}))},liveSearchListener:function(){var t=this;this.$button.on("click.bs.dropdown.data-api",(function(){t.$searchbox.val()&&(t.$searchbox.val(""),t.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(t){t.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var e=t.$searchbox[0].value;if(t.selectpicker.search.elements=[],t.selectpicker.search.data=[],e){var i=[],n=e.toUpperCase(),a={},r=[],o=t._searchStyle(),s=t.options.liveSearchNormalize;s&&(n=L(n));for(var l=0;l<t.selectpicker.main.data.length;l++){var c=t.selectpicker.main.data[l];a[l]||(a[l]=_(c,n,o,s)),a[l]&&void 0!==c.headerIndex&&-1===r.indexOf(c.headerIndex)&&(c.headerIndex>0&&(a[c.headerIndex-1]=!0,r.push(c.headerIndex-1)),a[c.headerIndex]=!0,r.push(c.headerIndex),a[c.lastIndex+1]=!0),a[l]&&"optgroup-label"!==c.type&&r.push(l)}l=0;for(var u=r.length;l<u;l++){var d=r[l],h=r[l-1],f=(c=t.selectpicker.main.data[d],t.selectpicker.main.data[h]);("divider"!==c.type||"divider"===c.type&&f&&"divider"!==f.type&&u-1!==l)&&(t.selectpicker.search.data.push(c),i.push(t.selectpicker.main.elements[d]))}t.activeIndex=void 0,t.noScroll=!0,t.$menuInner.scrollTop(0),t.selectpicker.search.elements=i,t.createView(!0),W.call(t,i,e)}else t.selectpicker.search.previousValue&&(t.$menuInner.scrollTop(0),t.createView(!1));t.selectpicker.search.previousValue=e}))},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){var e=this.$element[0];if(void 0!==t){var i=g(e);if(y=[null,null,i],this.$element.val(t).trigger("changed.bs.select",y),this.$newElement.hasClass(j.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var n=(e.options[e.selectedIndex]||{}).liIndex;"number"==typeof n&&(this.setSelected(this.selectedIndex,!1),this.setSelected(n,!0))}return this.render(),y=null,this.$element}return this.$element.val()},changeAll:function(t){if(this.multiple){void 0===t&&(t=!0);var e=this.$element[0],i=0,n=0,a=g(e);e.classList.add("bs-select-hidden");for(var r=0,o=this.selectpicker.current.data,s=o.length;r<s;r++){var l=o[r],c=l.option;c&&!l.disabled&&"divider"!==l.type&&(l.selected&&i++,c.selected=t,!0===t&&n++)}e.classList.remove("bs-select-hidden"),i!==n&&(this.setOptionStatus(),y=[null,null,a],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var i,n,a,r,o,s=t(this),l=s.hasClass("dropdown-toggle"),c=(l?s.closest(".dropdown"):s.closest(F.MENU)).data("this"),u=c.findLis(),d=!1,h=e.which===O&&!l&&!c.options.selectOnTab,f=z.test(e.which)||h,p=c.$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(e.which>=112&&e.which<=123))if(!(n=c.$newElement.hasClass(j.SHOW))&&(f||e.which>=48&&e.which<=57||e.which>=96&&e.which<=105||e.which>=65&&e.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(e.which===A&&n&&(e.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),f){if(!u.length)return;-1!==(i=(a=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(a.parentElement.children,a):-1)&&c.defocusItem(a),e.which===P?(-1!==i&&i--,i+m<0&&(i+=u.length),c.selectpicker.view.canHighlight[i+m]||-1===(i=c.selectpicker.view.canHighlight.slice(0,i+m).lastIndexOf(!0)-m)&&(i=u.length-1)):(e.which===Y||h)&&(++i+m>=c.selectpicker.view.canHighlight.length&&(i=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[i+m]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+m+1).indexOf(!0))),e.preventDefault();var g=m+i;e.which===P?0===m&&i===u.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):d=(o=(r=c.selectpicker.current.data[g]).position-r.height)<p:(e.which===Y||h)&&(i===c.selectpicker.view.firstHighlightIndex?(c.$menuInner[0].scrollTop=0,g=c.selectpicker.view.firstHighlightIndex):d=(o=(r=c.selectpicker.current.data[g]).position-c.sizeInfo.menuInnerHeight)>p),a=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(a),c.selectpicker.view.currentActive=a,d&&(c.$menuInner[0].scrollTop=o),c.options.liveSearch?c.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!$.test(e.which)||e.which===E&&c.selectpicker.keydown.keyHistory){var v,y,b=[];e.preventDefault(),c.selectpicker.keydown.keyHistory+=C[e.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),y=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var x=0;x<c.selectpicker.current.data.length;x++){var w=c.selectpicker.current.data[x];_(w,y,"startsWith",!0)&&c.selectpicker.view.canHighlight[x]&&b.push(w.index)}if(b.length){var k=0;u.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(k=b.indexOf(c.activeIndex))||k===b.length-1?k=0:k++),v=b[k],p-(r=c.selectpicker.main.data[v]).position>0?(o=r.position-r.height,d=!0):(o=r.position-c.sizeInfo.menuInnerHeight,d=r.position>p+c.sizeInfo.menuInnerHeight),a=c.selectpicker.main.elements[v],c.activeIndex=b[k],c.focusItem(a),a&&a.firstChild.focus(),d&&(c.$menuInner[0].scrollTop=o),s.trigger("focus")}}n&&(e.which===E&&!c.selectpicker.keydown.keyHistory||e.which===D||e.which===O&&c.options.selectOnTab)&&(e.which!==E&&e.preventDefault(),c.options.liveSearch&&e.which===E||(c.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),c.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(H).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),t(window).off(".bs.select."+this.selectId)}};var U=t.fn.selectpicker;function X(){if(t.fn.dropdown){var e=t.fn.dropdown.Constructor._dataApiKeydownHandler||t.fn.dropdown.Constructor.prototype.keydown;return e.apply(this,arguments)}}t.fn.selectpicker=q,t.fn.selectpicker.Constructor=V,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=U,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',X).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",X).on("keydown.bs.select",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',V.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(t){t.stopPropagation()})),t(window).on("load.bs.select.data-api",(function(){t(".selectpicker").each((function(){var e=t(this);q.call(e,e.data())}))}))}(t)})),function(){var t=[].slice;!function(e,i){"use strict";var n;n=function(){function t(t,n){var a,r;null==n&&(n={}),this.$element=e(t),this.options=e.extend({},e.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),inverse:this.$element.data("inverse"),radioAllOff:this.$element.data("radio-all-off"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),handleWidth:this.$element.data("handle-width"),labelWidth:this.$element.data("label-width"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class")},n),this.$wrapper=e("<div>",{class:(r=this,function(){var t;return(t=[""+r.options.baseClass].concat(r._getClasses(r.options.wrapperClass))).push(r.options.state?r.options.baseClass+"-on":r.options.baseClass+"-off"),null!=r.options.size&&t.push(r.options.baseClass+"-"+r.options.size),r.options.disabled&&t.push(r.options.baseClass+"-disabled"),r.options.readonly&&t.push(r.options.baseClass+"-readonly"),r.options.indeterminate&&t.push(r.options.baseClass+"-indeterminate"),r.options.inverse&&t.push(r.options.baseClass+"-inverse"),r.$element.attr("id")&&t.push(r.options.baseClass+"-id-"+r.$element.attr("id")),t.join(" ")})()}),this.$container=e("<div>",{class:this.options.baseClass+"-container"}),this.$on=e("<span>",{html:this.options.onText,class:this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor}),this.$off=e("<span>",{html:this.options.offText,class:this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor}),this.$label=e("<span>",{html:this.options.labelText,class:this.options.baseClass+"-label"}),this.$element.on("init.bootstrapSwitch",function(e){return function(){return e.options.onInit.apply(t,arguments)}}(this)),this.$element.on("switchChange.bootstrapSwitch",function(e){return function(){return e.options.onSwitchChange.apply(t,arguments)}}(this)),this.$container=this.$element.wrap(this.$container).parent(),this.$wrapper=this.$container.wrap(this.$wrapper).parent(),this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off),this.options.indeterminate&&this.$element.prop("indeterminate",!0),a=i.setInterval(function(t){return function(){if(t.$wrapper.is(":visible"))return t._width(),t._containerPosition(null,(function(){if(t.options.animate)return t.$wrapper.addClass(t.options.baseClass+"-animate")})),i.clearInterval(a)}}(this),50),this._elementHandlers(),this._handleHandlers(),this._labelHandlers(),this._formHandler(),this._externalLabelHandler(),this.$element.trigger("init.bootstrapSwitch")}return t.prototype._constructor=t,t.prototype.state=function(t,e){return void 0===t?this.options.state:(this.options.disabled||this.options.readonly||this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")||(this.options.indeterminate&&this.indeterminate(!1),t=!!t,this.$element.prop("checked",t).trigger("change.bootstrapSwitch",e)),this.$element)},t.prototype.toggleState=function(t){return this.options.disabled||this.options.readonly?this.$element:this.options.indeterminate?(this.indeterminate(!1),this.state(!0)):this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",t)},t.prototype.size=function(t){return void 0===t?this.options.size:(null!=this.options.size&&this.$wrapper.removeClass(this.options.baseClass+"-"+this.options.size),t&&this.$wrapper.addClass(this.options.baseClass+"-"+t),this._width(),this._containerPosition(),this.options.size=t,this.$element)},t.prototype.animate=function(t){return void 0===t?this.options.animate:(t=!!t)===this.options.animate?this.$element:this.toggleAnimate()},t.prototype.toggleAnimate=function(){return this.options.animate=!this.options.animate,this.$wrapper.toggleClass(this.options.baseClass+"-animate"),this.$element},t.prototype.disabled=function(t){return void 0===t?this.options.disabled:(t=!!t)===this.options.disabled?this.$element:this.toggleDisabled()},t.prototype.toggleDisabled=function(){return this.options.disabled=!this.options.disabled,this.$element.prop("disabled",this.options.disabled),this.$wrapper.toggleClass(this.options.baseClass+"-disabled"),this.$element},t.prototype.readonly=function(t){return void 0===t?this.options.readonly:(t=!!t)===this.options.readonly?this.$element:this.toggleReadonly()},t.prototype.toggleReadonly=function(){return this.options.readonly=!this.options.readonly,this.$element.prop("readonly",this.options.readonly),this.$wrapper.toggleClass(this.options.baseClass+"-readonly"),this.$element},t.prototype.indeterminate=function(t){return void 0===t?this.options.indeterminate:(t=!!t)===this.options.indeterminate?this.$element:this.toggleIndeterminate()},t.prototype.toggleIndeterminate=function(){return this.options.indeterminate=!this.options.indeterminate,this.$element.prop("indeterminate",this.options.indeterminate),this.$wrapper.toggleClass(this.options.baseClass+"-indeterminate"),this._containerPosition(),this.$element},t.prototype.inverse=function(t){return void 0===t?this.options.inverse:(t=!!t)===this.options.inverse?this.$element:this.toggleInverse()},t.prototype.toggleInverse=function(){var t,e;return this.$wrapper.toggleClass(this.options.baseClass+"-inverse"),e=this.$on.clone(!0),t=this.$off.clone(!0),this.$on.replaceWith(t),this.$off.replaceWith(e),this.$on=t,this.$off=e,this.options.inverse=!this.options.inverse,this.$element},t.prototype.onColor=function(t){var e;return e=this.options.onColor,void 0===t?e:(null!=e&&this.$on.removeClass(this.options.baseClass+"-"+e),this.$on.addClass(this.options.baseClass+"-"+t),this.options.onColor=t,this.$element)},t.prototype.offColor=function(t){var e;return e=this.options.offColor,void 0===t?e:(null!=e&&this.$off.removeClass(this.options.baseClass+"-"+e),this.$off.addClass(this.options.baseClass+"-"+t),this.options.offColor=t,this.$element)},t.prototype.onText=function(t){return void 0===t?this.options.onText:(this.$on.html(t),this._width(),this._containerPosition(),this.options.onText=t,this.$element)},t.prototype.offText=function(t){return void 0===t?this.options.offText:(this.$off.html(t),this._width(),this._containerPosition(),this.options.offText=t,this.$element)},t.prototype.labelText=function(t){return void 0===t?this.options.labelText:(this.$label.html(t),this._width(),this.options.labelText=t,this.$element)},t.prototype.handleWidth=function(t){return void 0===t?this.options.handleWidth:(this.options.handleWidth=t,this._width(),this._containerPosition(),this.$element)},t.prototype.labelWidth=function(t){return void 0===t?this.options.labelWidth:(this.options.labelWidth=t,this._width(),this._containerPosition(),this.$element)},t.prototype.baseClass=function(t){return this.options.baseClass},t.prototype.wrapperClass=function(t){return void 0===t?this.options.wrapperClass:(t||(t=e.fn.bootstrapSwitch.defaults.wrapperClass),this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" ")),this.$wrapper.addClass(this._getClasses(t).join(" ")),this.options.wrapperClass=t,this.$element)},t.prototype.radioAllOff=function(t){return void 0===t?this.options.radioAllOff:((t=!!t)===this.options.radioAllOff||(this.options.radioAllOff=t),this.$element)},t.prototype.onInit=function(t){return void 0===t?this.options.onInit:(t||(t=e.fn.bootstrapSwitch.defaults.onInit),this.options.onInit=t,this.$element)},t.prototype.onSwitchChange=function(t){return void 0===t?this.options.onSwitchChange:(t||(t=e.fn.bootstrapSwitch.defaults.onSwitchChange),this.options.onSwitchChange=t,this.$element)},t.prototype.destroy=function(){var t;return(t=this.$element.closest("form")).length&&t.off("reset.bootstrapSwitch").removeData("bootstrap-switch"),this.$container.children().not(this.$element).remove(),this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch"),this.$element},t.prototype._width=function(){var t,e,i;return(t=this.$on.add(this.$off)).add(this.$label).css("width",""),e="auto"===this.options.handleWidth?Math.max(this.$on.width(),this.$off.width()):this.options.handleWidth,t.width(e),this.$label.width((i=this,function(t,n){return"auto"!==i.options.labelWidth?i.options.labelWidth:n<e?e:n})),this._handleWidth=this.$on.outerWidth(),this._labelWidth=this.$label.outerWidth(),this.$container.width(2*this._handleWidth+this._labelWidth),this.$wrapper.width(this._handleWidth+this._labelWidth)},t.prototype._containerPosition=function(t,e){var i;if(null==t&&(t=this.options.state),this.$container.css("margin-left",(i=this,function(){var e;return e=[0,"-"+i._handleWidth+"px"],i.options.indeterminate?"-"+i._handleWidth/2+"px":t?i.options.inverse?e[1]:e[0]:i.options.inverse?e[0]:e[1]})),e)return setTimeout((function(){return e()}),50)},t.prototype._elementHandlers=function(){return this.$element.on({"change.bootstrapSwitch":(t=this,function(i,n){var a;if(i.preventDefault(),i.stopImmediatePropagation(),a=t.$element.is(":checked"),t._containerPosition(a),a!==t.options.state)return t.options.state=a,t.$wrapper.toggleClass(t.options.baseClass+"-off").toggleClass(t.options.baseClass+"-on"),n||t.$element.is(":radio")&&e("[name='"+t.$element.attr("name")+"']").not(t.$element).prop("checked",!1).trigger("change.bootstrapSwitch",!0),t.$element.trigger("switchChange.bootstrapSwitch",[a])}),"focus.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.addClass(t.options.baseClass+"-focused")}}(this),"blur.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.removeClass(t.options.baseClass+"-focused")}}(this),"keydown.bootstrapSwitch":function(t){return function(e){if(e.which&&!t.options.disabled&&!t.options.readonly)switch(e.which){case 37:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!1);case 39:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!0)}}}(this)});var t},t.prototype._handleHandlers=function(){var t;return this.$on.on("click.bootstrapSwitch",(t=this,function(e){return e.preventDefault(),e.stopPropagation(),t.state(!1),t.$element.trigger("focus.bootstrapSwitch")})),this.$off.on("click.bootstrapSwitch",function(t){return function(e){return e.preventDefault(),e.stopPropagation(),t.state(!0),t.$element.trigger("focus.bootstrapSwitch")}}(this))},t.prototype._labelHandlers=function(){return this.$label.on({"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":(t=this,function(e){if(!(t._dragStart||t.options.disabled||t.options.readonly))return e.preventDefault(),e.stopPropagation(),t._dragStart=(e.pageX||e.originalEvent.touches[0].pageX)-parseInt(t.$container.css("margin-left"),10),t.options.animate&&t.$wrapper.removeClass(t.options.baseClass+"-animate"),t.$element.trigger("focus.bootstrapSwitch")}),"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(t){return function(e){var i;if(null!=t._dragStart&&(e.preventDefault(),!((i=(e.pageX||e.originalEvent.touches[0].pageX)-t._dragStart)<-t._handleWidth||i>0)))return t._dragEnd=i,t.$container.css("margin-left",t._dragEnd+"px")}}(this),"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(t){return function(e){var i;if(t._dragStart)return e.preventDefault(),t.options.animate&&t.$wrapper.addClass(t.options.baseClass+"-animate"),t._dragEnd?(i=t._dragEnd>-t._handleWidth/2,t._dragEnd=!1,t.state(t.options.inverse?!i:i)):t.state(!t.options.state),t._dragStart=!1}}(this),"mouseleave.bootstrapSwitch":function(t){return function(e){return t.$label.trigger("mouseup.bootstrapSwitch")}}(this)});var t},t.prototype._externalLabelHandler=function(){var t,e;return(t=this.$element.closest("label")).on("click",(e=this,function(i){if(i.preventDefault(),i.stopImmediatePropagation(),i.target===t[0])return e.toggleState()}))},t.prototype._formHandler=function(){var t;if(!(t=this.$element.closest("form")).data("bootstrap-switch"))return t.on("reset.bootstrapSwitch",(function(){return i.setTimeout((function(){return t.find("input").filter((function(){return e(this).data("bootstrap-switch")})).each((function(){return e(this).bootstrapSwitch("state",this.checked)}))}),1)})).data("bootstrap-switch",!0)},t.prototype._getClasses=function(t){var i,n,a,r;if(!e.isArray(t))return[this.options.baseClass+"-"+t];for(n=[],a=0,r=t.length;a<r;a++)i=t[a],n.push(this.options.baseClass+"-"+i);return n},t}(),e.fn.bootstrapSwitch=function(){var i,a,r;return a=arguments[0],i=2<=arguments.length?t.call(arguments,1):[],r=this,this.each((function(){var t,o;if((o=(t=e(this)).data("bootstrap-switch"))||t.data("bootstrap-switch",o=new n(this,a)),"string"==typeof a)return r=o[a].apply(o,i)})),r},e.fn.bootstrapSwitch.Constructor=n,e.fn.bootstrapSwitch.defaults={state:!0,size:null,animate:!0,disabled:!1,readonly:!1,indeterminate:!1,inverse:!1,radioAllOff:!1,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp;",handleWidth:"auto",labelWidth:"auto",baseClass:"bootstrap-switch",wrapperClass:"wrapper",onInit:function(){},onSwitchChange:function(){}}}(window.jQuery,window)}.call(this),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var i;return function(){
/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
 */
var t,i,n;e&&e.requirejs||(e?i=e:e={},function(e){var a,r,o,s,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/;function m(t,e){return h.call(t,e)}function g(t,e){var i,n,a,r,o,s,l,c,d,h,f,m=e&&e.split("/"),g=u.map,v=g&&g["*"]||{};if(t){for(o=(t=t.split("/")).length-1,u.nodeIdCompat&&p.test(t[o])&&(t[o]=t[o].replace(p,"")),"."===t[0].charAt(0)&&m&&(t=m.slice(0,m.length-1).concat(t)),d=0;d<t.length;d++)if("."===(f=t[d]))t.splice(d,1),d-=1;else if(".."===f){if(0===d||1===d&&".."===t[2]||".."===t[d-1])continue;d>0&&(t.splice(d-1,2),d-=2)}t=t.join("/")}if((m||v)&&g){for(d=(i=t.split("/")).length;d>0;d-=1){if(n=i.slice(0,d).join("/"),m)for(h=m.length;h>0;h-=1)if((a=g[m.slice(0,h).join("/")])&&(a=a[n])){r=a,s=d;break}if(r)break;!l&&v&&v[n]&&(l=v[n],c=d)}!r&&l&&(r=l,s=c),r&&(i.splice(0,s,r),t=i.join("/"))}return t}function v(t,i){return function(){var n=f.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),r.apply(e,n.concat([t,i]))}}function y(t){return function(e){l[t]=e}}function b(t){if(m(c,t)){var i=c[t];delete c[t],d[t]=!0,a.apply(e,i)}if(!m(l,t)&&!m(d,t))throw new Error("No "+t);return l[t]}function _(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function x(t){return t?_(t):[]}function w(t){return function(){return u&&u.config&&u.config[t]||{}}}o=function(t,e){var i,n,a=_(t),r=a[0],o=e[1];return t=a[1],r&&(i=b(r=g(r,o))),r?t=i&&i.normalize?i.normalize(t,(n=o,function(t){return g(t,n)})):g(t,o):(r=(a=_(t=g(t,o)))[0],t=a[1],r&&(i=b(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:i}},s={require:function(t){return v(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:w(t)}}},a=function(t,i,n,a){var r,u,h,f,p,g,_,w=[],k=typeof n;if(g=x(a=a||t),"undefined"===k||"function"===k){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if("require"===(u=(f=o(i[p],g)).f))w[p]=s.require(t);else if("exports"===u)w[p]=s.exports(t),_=!0;else if("module"===u)r=w[p]=s.module(t);else if(m(l,u)||m(c,u)||m(d,u))w[p]=b(u);else{if(!f.p)throw new Error(t+" missing "+u);f.p.load(f.n,v(a,!0),y(u),{}),w[p]=l[u]}h=n?n.apply(l[t],w):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:h===e&&_||(l[t]=h))}else t&&(l[t]=n)},t=i=r=function(t,i,n,l,c){if("string"==typeof t)return s[t]?s[t](i):b(o(t,x(i)).f);if(!t.splice){if((u=t).deps&&r(u.deps,u.callback),!i)return;i.splice?(t=i,i=n,n=null):t=e}return i=i||function(){},"function"==typeof n&&(n=l,l=c),l?a(e,t,i,n):setTimeout((function(){a(e,t,i,n)}),4),r},r.config=function(t){return r(t)},t._defined=l,(n=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),m(l,t)||m(c,t)||(c[t]=[t,e,i])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=n)}(),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function i(t){var e=t.prototype,i=[];for(var n in e){"function"==typeof e[n]&&("constructor"!==n&&i.push(n))}return i}e.Extend=function(t,e){var i={}.hasOwnProperty;function n(){this.constructor=t}for(var a in e)i.call(e,a)&&(t[a]=e[a]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},e.Decorate=function(t,e){var n=i(e),a=i(t);function r(){var i=Array.prototype.unshift,n=e.prototype.constructor.length,a=t.prototype.constructor;n>0&&(i.call(arguments,t.prototype.constructor),a=e.prototype.constructor),a.apply(this,arguments)}e.displayName=t.displayName,r.prototype=new function(){this.constructor=r};for(var o=0;o<a.length;o++){var s=a[o];r.prototype[s]=t.prototype[s]}for(var l=function(t){var i=function(){};t in r.prototype&&(i=r.prototype[t]);var n=e.prototype[t];return function(){var t=Array.prototype.unshift;return t.call(arguments,i),n.apply(this,arguments)}},c=0;c<n.length;c++){var u=n[c];r.prototype[u]=l(u)}return r};var n=function(){this.listeners={}};n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},e.Observable=n,e.generateChars=function(t){for(var e="",i=0;i<t;i++){e+=Math.floor(36*Math.random()).toString(36)}return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var a=0;a<i.length;a++){var r=i[a];(r=r.substring(0,1).toLowerCase()+r.substring(1))in n||(n[r]={}),a==i.length-1&&(n[r]=t[e]),n=n[r]}delete t[e]}}return t},e.hasScroll=function(e,i){var n=t(i),a=i.style.overflowX,r=i.style.overflowY;return(a!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===a||"scroll"===r||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.appendMany=function(e,i){if("1.7"===t.fn.jquery.substr(0,3)){var n=t();t.map(i,(function(t){n=n.add(t)})),i=n}e.append(i)},e.__cache={};var a=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++a),e=a.toString())),e},e.StoreData=function(t,i,n){var a=e.GetUniqueElementId(t);e.__cache[a]||(e.__cache[a]={}),e.__cache[a][i]=n},e.GetData=function(i,n){var a=e.GetUniqueElementId(i);return n?e.__cache[a]&&null!=e.__cache[a][n]?e.__cache[a][n]:t(i).data(n):e.__cache[a]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),a=this.options.get("translations").get(e.message);n.append(i(a(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],a=this.option(n);e.push(a)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var a=t.map(n,(function(t){return t.id.toString()}));i.$results.find(".select2-results__option[aria-selected]").each((function(){var i=t(this),n=e.GetData(this,"data"),r=""+n.id;null!=n.element&&n.element.selected||null==n.element&&t.inArray(r,a)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")}))}))},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},i=this.option(e);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.className="select2-results__option";var a={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var o in(null!=i.element&&r.call(i.element,":disabled")||null==i.element&&i.disabled)&&(delete a["aria-selected"],a["aria-disabled"]="true"),null==i.id&&delete a["aria-selected"],null!=i._resultId&&(n.id=i._resultId),i.title&&(n.title=i.title),i.children&&(a.role="group",a["aria-label"]=i.text,delete a["aria-selected"]),a){var s=a[o];n.setAttribute(o,s)}if(i.children){var l=t(n),c=document.createElement("strong");c.className="select2-results__group";t(c);this.template(i,c);for(var u=[],d=0;d<i.children.length;d++){var h=i.children[d],f=this.option(h);u.push(f)}var p=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(u),l.append(c),l.append(p)}else this.template(i,n);return e.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var a=this,r=i.id+"-results";this.$results.attr("id",r),i.on("results:all",(function(t){a.clear(),a.append(t.data),i.isOpen()&&(a.setClasses(),a.highlightFirstItem())})),i.on("results:append",(function(t){a.append(t.data),i.isOpen()&&a.setClasses()})),i.on("query",(function(t){a.hideMessages(),a.showLoading(t)})),i.on("select",(function(){i.isOpen()&&(a.setClasses(),a.options.get("scrollAfterSelect")&&a.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(a.setClasses(),a.options.get("scrollAfterSelect")&&a.highlightFirstItem())})),i.on("open",(function(){a.$results.attr("aria-expanded","true"),a.$results.attr("aria-hidden","false"),a.setClasses(),a.ensureHighlightVisible()})),i.on("close",(function(){a.$results.attr("aria-expanded","false"),a.$results.attr("aria-hidden","true"),a.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var t=a.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),i.on("results:select",(function(){var t=a.getHighlightedResults();if(0!==t.length){var i=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?a.trigger("close",{}):a.trigger("select",{data:i})}})),i.on("results:previous",(function(){var t=a.getHighlightedResults(),e=a.$results.find("[aria-selected]"),i=e.index(t);if(!(i<=0)){var n=i-1;0===t.length&&(n=0);var r=e.eq(n);r.trigger("mouseenter");var o=a.$results.offset().top,s=r.offset().top,l=a.$results.scrollTop()+(s-o);0===n?a.$results.scrollTop(0):s-o<0&&a.$results.scrollTop(l)}})),i.on("results:next",(function(){var t=a.getHighlightedResults(),e=a.$results.find("[aria-selected]"),i=e.index(t)+1;if(!(i>=e.length)){var n=e.eq(i);n.trigger("mouseenter");var r=a.$results.offset().top+a.$results.outerHeight(!1),o=n.offset().top+n.outerHeight(!1),s=a.$results.scrollTop()+o-r;0===i?a.$results.scrollTop(0):o>r&&a.$results.scrollTop(s)}})),i.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),i.on("results:message",(function(t){a.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=a.$results.scrollTop(),i=a.$results.get(0).scrollHeight-e+t.deltaY,n=t.deltaY>0&&e-t.deltaY<=0,r=t.deltaY<0&&i<=a.$results.height();n?(a.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):r&&(a.$results.scrollTop(a.$results.get(0).scrollHeight-a.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(i){var n=t(this),r=e.GetData(this,"data");"true"!==n.attr("aria-selected")?a.trigger("select",{originalEvent:i,data:r}):a.options.get("multiple")?a.trigger("unselect",{originalEvent:i,data:r}):a.trigger("close",{})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(i){var n=e.GetData(this,"data");a.getHighlightedResults().removeClass("select2-results__option--highlighted"),a.trigger("results:focus",{data:n,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),i=this.$results.offset().top,n=t.offset().top,a=this.$results.scrollTop()+(n-i),r=n-i;a-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(a)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),a=this.options.get("escapeMarkup"),r=n(e,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=a(r):t(i).append(r)},i})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var i=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i,i},n.prototype.bind=function(t,e){var n=this,a=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",a),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(i){t(document.body).on("mousedown.select2."+i.id,(function(i){var n=t(i.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=n[0]&&e.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function a(){a.__super__.constructor.apply(this,arguments)}return i.Extend(a,e),a.prototype.render=function(){var t=a.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},a.prototype.bind=function(t,e){var i=this;a.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||i.$selection.trigger("focus")}))},a.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},a.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},a.prototype.selectionContainer=function(){return t("<span></span>")},a.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n);var a=e.title||e.text;a?i.attr("title",a):i.removeAttr("title")}else this.clear()},a})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,a){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){r.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!r.isDisabled()){var n=t(this).parent(),a=i.GetData(n[0],"data");r.trigger("unselect",{originalEvent:e,data:a})}}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var a=t[n],r=this.selectionContainer(),o=this.display(a,r);r.append(o);var s=a.title||a.text;s&&r.attr("title",s),i.StoreData(r[0],"data",a),e.push(r)}var l=this.$selection.find(".select2-selection__rendered");i.appendMany(l,e)}},n})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||i)return t.call(this,e);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,i){function n(){}return n.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var a=i.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:a};if(this.trigger("clear",o),o.prevented)this.$element.val(r);else{for(var s=0;s<a.length;s++)if(o={data:a[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){if(e.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var a=this.options.get("translations").get("removeAllItems"),r=t('<span class="select2-selection__clear" title="'+a()+'">&times;</span>');i.StoreData(r[0],"data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=i,this.$search=i.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(t,n,a){var r=this,o=n.id+"-results";t.call(this,n,a),n.on("open",(function(){r.$search.attr("aria-controls",o),r.$search.trigger("focus")})),n.on("close",(function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),n.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),n.on("disable",(function(){r.$search.prop("disabled",!0)})),n.on("focus",(function(t){r.$search.trigger("focus")})),n.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){r.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){r._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===r.$search.val()){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var a=e.GetData(n[0],"data");r.searchRemoveChoice(a),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){r.$search.val()&&t.stopPropagation()}));var s=document.documentMode,l=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){l?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(l&&"input"===t.type)r.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&r.handleSearch(t)}}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";""!==this.$search.attr("placeholder")?t=this.$selection.find(".select2-selection__rendered").width():t=.75*(this.$search.val().length+1)+"em";this.$search.css("width",t)},n})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var a=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==t.inArray(e,r)){i=i||{};var n=t.Event("select2:"+e,{params:i});a.$element.trigger(n),-1!==t.inArray(e,o)&&(i.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return n+=t.generateChars(4),null!=i.id?n+="-"+i.id.toString():n+="-"+t.generateChars(4),n},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each((function(){var t=i(this),a=n.item(t);e.push(a)})),t(e)},n.prototype.select=function(t){var e=this;if(t.selected=!0,i(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var a=[];(t=[t]).push.apply(t,n);for(var r=0;r<t.length;r++){var o=t[r].id;-1===i.inArray(o,a)&&a.push(o)}e.$element.val(a),e.$element.trigger("input").trigger("change")}));else{var n=t.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,i(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var a=[],r=0;r<n.length;r++){var o=n[r].id;o!==t.id&&-1===i.inArray(o,a)&&a.push(o)}e.$element.val(a),e.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(t,e){var i=this;this.container=t,t.on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},n.prototype.query=function(t,e){var n=[],a=this;this.$element.children().each((function(){var e=i(this);if(e.is("option")||e.is("optgroup")){var r=a.item(e),o=a.matches(t,r);null!==o&&n.push(o)}})),e({results:n})},n.prototype.addOptions=function(t){e.appendMany(this.$element,t)},n.prototype.option=function(t){var n;t.children?(n=document.createElement("optgroup")).label=t.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=t.text:n.innerText=t.text,void 0!==t.id&&(n.value=t.id),t.disabled&&(n.disabled=!0),t.selected&&(n.selected=!0),t.title&&(n.title=t.title);var a=i(n),r=this._normalizeItem(t);return r.element=n,e.StoreData(n,"data",r),a},n.prototype.item=function(t){var n={};if(null!=(n=e.GetData(t[0],"data")))return n;if(t.is("option"))n={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){n={text:t.prop("label"),children:[],title:t.prop("title")};for(var a=t.children("option"),r=[],o=0;o<a.length;o++){var s=i(a[o]),l=this.item(s);r.push(l)}n.children=r}return(n=this._normalizeItem(n)).element=t[0],e.StoreData(t[0],"data",n),n},n.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t});return null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){var n=this,a=this.$element.find("option"),r=a.map((function(){return n.item(i(this)).id})).get(),o=[];function s(t){return function(){return i(this).val()==t.id}}for(var l=0;l<t.length;l++){var c=this._normalizeItem(t[l]);if(i.inArray(c.id,r)>=0){var u=a.filter(s(c)),d=this.item(u),h=i.extend(!0,{},c,d),f=this.option(h);u.replaceWith(f)}else{var p=this.option(c);if(c.children){var m=this.convertToOptions(c.children);e.appendMany(p,m)}o.push(p)}}return o},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var a=i.ajax(t);return a.then(e),a.fail(n),a}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){var n=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var a=i.extend({type:"GET"},this.ajaxOptions);function r(){var r=a.transport(a,(function(a){var r=n.processResults(a,t);n.options.get("debug")&&window.console&&console.error&&(r&&r.results&&i.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(r)}),(function(){(!("status"in r)||0!==r.status&&"0"!==r.status)&&n.trigger("results:message",{message:"errorLoading"})}));n._request=r}"function"==typeof a.url&&(a.url=a.url.call(this.$element,t)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},n})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,i,n){var a=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,i,n),t.isArray(a))for(var s=0;s<a.length;s++){var l=a[s],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return e.prototype.query=function(t,e,i){var n=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(a,r){for(var o=a.results,s=0;s<o.length;s++){var l=o[s],c=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!r&&(a.data=o,void i(a))}if(r)return!0;var u=n.createTag(e);if(null!=u){var d=n.option(u);d.attr("data-select2-tag",!0),n.addOptions([d]),n.insertTag(o,u)}a.results=o,i(a)})):t.call(this,e,i)},e.prototype.createTag=function(e,i){var n=t.trim(i.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var a=this;i.term=i.term||"";var r=this.tokenizer(i,this.options,(function(e){var i=a._normalizeItem(e);if(!a.$element.find("option").filter((function(){return t(this).val()===i.id})).length){var n=a.option(i);n.attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([n])}!function(t){a.trigger("select",{data:t})}(i)}));r.term!==i.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),i.term=r.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,a){for(var r=n.get("tokenSeparators")||[],o=i.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<o.length;){var c=o[s];if(-1!==t.inArray(c,r)){var u=o.substr(0,s),d=l(t.extend({},i,{term:u}));null!=d?(a(d),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(){n._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected((function(){t.call(n,e,i)}))},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current((function(t){var n=null!=t?t.length:0;i.maximumSelectionLength>0&&n>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function i(){}return i.prototype.render=function(e){var i=e.call(this),n=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(e,i,n){var a=this,r=i.id+"-results";e.call(this,i,n),this.$search.on("keydown",(function(t){a.trigger("keypress",t),a._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){a.handleSearch(t)})),i.on("open",(function(){a.$search.attr("tabindex",0),a.$search.attr("aria-controls",r),a.$search.trigger("focus"),window.setTimeout((function(){a.$search.trigger("focus")}),0)})),i.on("close",(function(){a.$search.attr("tabindex",-1),a.$search.removeAttr("aria-controls"),a.$search.removeAttr("aria-activedescendant"),a.$search.val(""),a.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||a.$search.trigger("focus")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(a.showSearch(t)?a.$searchContainer.removeClass("select2-search--hide"):a.$searchContainer.addClass("select2-search--hide"))})),i.on("results:focus",(function(t){t.data._resultId?a.$search.attr("aria-activedescendant",t.data._resultId):a.$search.removeAttr("aria-activedescendant")}))},i.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.showSearch=function(t,e){return!0},i})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var a=e[n];this.placeholder.id===a.id&&i.splice(n,1)}return i},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",(function(t){n.lastParams=t,n.loading=!0})),e.on("query:append",(function(t){n.lastParams=t,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=t(n.get("dropdownParent")||document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var i=this;e.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,n){var a=this,r="scroll.select2."+n.id,o="resize.select2."+n.id,s="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(r,(function(i){var n=e.GetData(this,"select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(r+" "+o+" "+s,(function(t){a._positionDropdown(),a._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var a="scroll.select2."+n.id,r="resize.select2."+n.id,o="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(a),t(window).off(a+" "+r+" "+o)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),a=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),u=l<r.top-s,d=c>r.bottom+s,h={left:r.left,top:o.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(t.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),h.top-=p.top,h.left-=p.left,i||n||(a="below"),d||!u||i?!u&&d&&i&&(a="below"):a="above",("above"==a||i&&"below"!==a)&&(h.top=o.top-p.top-s),null!=a&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+a),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+a)),this.$dropdownContainer.css(h)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var i=0,n=0;n<e.length;n++){var a=e[n];a.children?i+=t(a.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}return e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var a=this.getHighlightedResults();if(!(a.length<1)){var r=t.GetData(a[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,i,n,a,r,o,s,l,c,u,d,h,f,p,m,g,v,y,b,_,x,w,k,S,M,L,T,C){function A(){this.reset()}return A.prototype.apply=function(u){if(null==(u=t.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=p:null!=u.data?u.dataAdapter=f:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null!=u.query){var d=e(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var C=e(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,C)}}if(null==u.resultsAdapter&&(u.resultsAdapter=i,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,w)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,L))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=_;else{var A=c.Decorate(_,x);u.dropdownAdapter=A}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,T)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var D=e(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=a:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var E=e(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,E)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var O=[],P=0;P<u.language.length;P++){var Y=u.language[P];-1===O.indexOf(Y)&&O.push(Y)}return u.language=O,u.translations=this._processTranslations(u.language,u.debug),u},A.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return d[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function i(n,a){if(""===t.trim(n.term))return a;if(a.children&&a.children.length>0){for(var r=t.extend(!0,{},a),o=a.children.length-1;o>=0;o--){null==i(n,a.children[o])&&r.children.splice(o,1)}return r.children.length>0?r:i(n,r)}var s=e(a.text).toUpperCase(),l=e(n.term).toUpperCase();return s.indexOf(l)>-1?a:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},A.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,a=e.prop("lang"),r=e.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(a),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r));return t.language=o,t},A.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var i;i=t.isArray(e)?e:[e];for(var n=[],a=0;a<i.length;a++)if(n.push(i[a]),"string"==typeof i[a]&&i[a].indexOf("-")>0){var r=i[a].split("-")[0];n.push(r)}return n},A.prototype._processTranslations=function(e,i){for(var n=new u,a=0;a<e.length;a++){var r=new u,o=e[a];if("string"==typeof o)try{r=u.loadPath(o)}catch(t){try{o=this.defaults.amdLanguageBase+o,r=u.loadPath(o)}catch(t){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else r=t.isPlainObject(o)?new u(o):o;n.extend(r)}return n},A.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i;var a=c._convertData(n);t.extend(!0,this.defaults,a)},new A})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,i,n){function a(e,a){if(this.options=e,null!=a&&this.fromElement(a),null!=a&&(this.options=i.applyFromElement(this.options,a)),this.options=i.apply(this.options),a&&a.is("input")){var r=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,r)}}return a.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var a={};function r(t,e){return e.toUpperCase()}for(var o=0;o<t[0].attributes.length;o++){var s=t[0].attributes[o].name,l="data-";if(s.substr(0,l.length)==l){var c=s.substring(l.length),u=n.GetData(t[0],c);a[c.replace(/-([a-z])/g,r)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(a=e.extend(!0,{},t[0].dataset,a));var d=e.extend(!0,{},n.GetData(t[0]),a);for(var h in d=n._convertData(d))e.inArray(h,i)>-1||(e.isPlainObject(this.options[h])?e.extend(this.options[h],d[h]):this.options[h]=d[h]);return this},a.prototype.get=function(t){return this.options[t]},a.prototype.set=function(t,e){this.options[t]=e},a})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,i,n){var a=function(t,n){null!=i.GetData(t[0],"select2")&&i.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),a.__super__.constructor.call(this);var r=t.attr("tabindex")||0;i.StoreData(t[0],"old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var u=this.options.get("resultsAdapter");this.results=new u(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){d.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(t[0],"select2",this),t.data("select2",this)};return i.Extend(a,i.Observable),a.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},a.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},a.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var a=t.outerWidth(!1);return a<=0?"auto":a+"px"}if("style"==e){var r=t.attr("style");if("string"!=typeof r)return null;for(var o=r.split(";"),s=0,l=o.length;s<l;s+=1){var c=o[s].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==e?window.getComputedStyle(t[0]).width:e},a.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},a.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e((function(e){t._syncA(),t._syncS(null,e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},a.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},a.prototype._registerSelectionEvents=function(){var e=this,i=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,a){-1===t.inArray(n,i)&&e.trigger(n,a)}))},a.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},a.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},a.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&e.altKey?(t.close(e),e.preventDefault()):i===n.ENTER?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},a.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},a.prototype._isChangeMutation=function(e,i){var n=!1,a=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(i)if(i.addedNodes&&i.addedNodes.length>0)for(var r=0;r<i.addedNodes.length;r++){i.addedNodes[r].selected&&(n=!0)}else i.removedNodes&&i.removedNodes.length>0?n=!0:t.isArray(i)&&t.each(i,(function(t,e){if(a._isChangeMutation(t,e))return n=!0,!1}));else n=!0;return n}},a.prototype._syncSubtree=function(t,e){var i=this._isChangeMutation(t,e),n=this;i&&this.dataAdapter.current((function(t){n.trigger("selection:update",{data:t})}))},a.prototype.trigger=function(t,e){var i=a.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in n){var r=n[t],o={prevented:!1,name:t,args:e};if(i.call(this,r,o),o.prevented)return void(e.prevented=!0)}i.call(this,t,e)},a.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},a.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},a.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},a.prototype.isEnabled=function(){return!this.isDisabled()},a.prototype.isDisabled=function(){return this.options.get("disabled")},a.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},a.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},a.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},a.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},a.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},a.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var i=e[0];t.isArray(i)&&(i=t.map(i,(function(t){return t.toString()}))),this.$element.val(i).trigger("input").trigger("change")},a.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},a.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),i.StoreData(e[0],"element",this.$element),e},a})),e.define("select2/compat/utils",["jquery"],(function(t){return{syncCssClasses:function(e,i,n){var a,r,o=[];(a=t.trim(e.attr("class")))&&t((a=""+a).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&o.push(this)})),(a=t.trim(i.attr("class")))&&t((a=""+a).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)})),e.attr("class",o.join(" "))}}})),e.define("select2/compat/containerCss",["jquery","./utils"],(function(t,e){function i(t){return null}function n(){}return n.prototype.render=function(n){var a=n.call(this),r=this.options.get("containerCssClass")||"";t.isFunction(r)&&(r=r(this.$element));var o=this.options.get("adaptContainerCssClass");if(o=o||i,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var s=o;o=function(t){var e=s(t);return null!=e?e+" "+t:t}}var l=this.options.get("containerCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(a,this.$element,o),a.css(l),a.addClass(r),a},n})),e.define("select2/compat/dropdownCss",["jquery","./utils"],(function(t,e){function i(t){return null}function n(){}return n.prototype.render=function(n){var a=n.call(this),r=this.options.get("dropdownCssClass")||"";t.isFunction(r)&&(r=r(this.$element));var o=this.options.get("adaptDropdownCssClass");if(o=o||i,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var s=o;o=function(t){var e=s(t);return null!=e?e+" "+t:t}}var l=this.options.get("dropdownCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(a,this.$element,o),a.css(l),a.addClass(r),a},n})),e.define("select2/compat/initSelection",["jquery"],(function(t){function e(t,e,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=i.get("initSelection"),this._isInitialized=!1,t.call(this,e,i)}return e.prototype.current=function(e,i){var n=this;this._isInitialized?e.call(this,i):this.initSelection.call(null,this.$element,(function(e){n._isInitialized=!0,t.isArray(e)||(e=[e]),i(e)}))},e})),e.define("select2/compat/inputData",["jquery","../utils"],(function(t,e){function i(t,e,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===e.prop("type")&&i.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),t.call(this,e,i)}return i.prototype.current=function(e,i){function n(e,i){var a=[];return e.selected||-1!==t.inArray(e.id,i)?(e.selected=!0,a.push(e)):e.selected=!1,e.children&&a.push.apply(a,n(e.children,i)),a}for(var a=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r];a.push.apply(a,n(o,this.$element.val().split(this._valueSeparator)))}i(a)},i.prototype.select=function(e,i){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+i.id,this.$element.val(n),this.$element.trigger("input").trigger("change")}else this.current((function(e){t.map(e,(function(t){t.selected=!1}))})),this.$element.val(i.id),this.$element.trigger("input").trigger("change")},i.prototype.unselect=function(t,e){var i=this;e.selected=!1,this.current((function(t){for(var n=[],a=0;a<t.length;a++){var r=t[a];e.id!=r.id&&n.push(r.id)}i.$element.val(n.join(i._valueSeparator)),i.$element.trigger("input").trigger("change")}))},i.prototype.query=function(t,e,i){for(var n=[],a=0;a<this._currentData.length;a++){var r=this._currentData[a],o=this.matches(e,r);null!==o&&n.push(o)}i({results:n})},i.prototype.addOptions=function(i,n){var a=t.map(n,(function(t){return e.GetData(t[0],"data")}));this._currentData.push.apply(this._currentData,a)},i})),e.define("select2/compat/matcher",["jquery"],(function(t){return function(e){return function(i,n){var a=t.extend(!0,{},n);if(null==i.term||""===t.trim(i.term))return a;if(n.children){for(var r=n.children.length-1;r>=0;r--){var o=n.children[r];e(i.term,o.text,o)||a.children.splice(r,1)}if(a.children.length>0)return a}return e(i.term,n.text,n)?a:null}}})),e.define("select2/compat/query",[],(function(){function t(t,e,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.callback=i,this.options.get("query").call(null,e)},t})),e.define("select2/dropdown/attachContainer",[],(function(){function t(t,e,i){t.call(this,e,i)}return t.prototype.position=function(t,e,i){i.find(".dropdown-wrapper").append(e),e.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},t})),e.define("select2/dropdown/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(t){t.stopPropagation()}))},t})),e.define("select2/selection/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(t){t.stopPropagation()}))},t})),
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */
i=function(t){var e,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],r=Array.prototype.slice;if(t.event.fixHooks)for(var o=n.length;o;)t.event.fixHooks[n[--o]]=t.event.mouseHooks;var s=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=a.length;e;)this.addEventListener(a[--e],l,!1);else this.onmousewheel=l;t.data(this,"mousewheel-line-height",s.getLineHeight(this)),t.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=a.length;e;)this.removeEventListener(a[--e],l,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var a=n||window.event,o=r.call(arguments,1),l=0,d=0,h=0,f=0,p=0,m=0;if((n=t.event.fix(a)).type="mousewheel","detail"in a&&(h=-1*a.detail),"wheelDelta"in a&&(h=a.wheelDelta),"wheelDeltaY"in a&&(h=a.wheelDeltaY),"wheelDeltaX"in a&&(d=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(d=-1*h,h=0),l=0===h?d:h,"deltaY"in a&&(l=h=-1*a.deltaY),"deltaX"in a&&(d=a.deltaX,0===h&&(l=-1*d)),0!==h||0!==d){if(1===a.deltaMode){var g=t.data(this,"mousewheel-line-height");l*=g,h*=g,d*=g}else if(2===a.deltaMode){var v=t.data(this,"mousewheel-page-height");l*=v,h*=v,d*=v}if(f=Math.max(Math.abs(h),Math.abs(d)),(!i||f<i)&&(i=f,u(a,f)&&(i/=40)),u(a,f)&&(l/=40,d/=40,h/=40),l=Math[l>=1?"floor":"ceil"](l/i),d=Math[d>=1?"floor":"ceil"](d/i),h=Math[h>=1?"floor":"ceil"](h/i),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=n.clientX-y.left,m=n.clientY-y.top}return n.deltaX=d,n.deltaY=h,n.deltaFactor=i,n.offsetX=p,n.offsetY=m,n.deltaMode=0,o.unshift(n,l,d,h),e&&clearTimeout(e),e=setTimeout(c,200),(t.event.dispatch||t.event.handle).apply(this,o)}}function c(){i=null}function u(t,e){return s.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(t),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,i,n,a){if(null==t.fn.select2){var r=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"==typeof e){var n,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=a.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,o)})),t.inArray(e,r)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})),function(t){"undefined"!=typeof jQuery&&jQuery||"function"!=typeof define||!define.amd?"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?t(jQuery,document,window,navigator):t(require("jquery"),document,window,navigator):define(["jquery"],(function(e){return t(e,document,window,navigator)}))}((function(t,e,i,n,a){"use strict";var r,o,s=0,l=(r=n.userAgent,o=/msie\s\d+/i,r.search(o)>0&&o.exec(r).toString().split(" ")[1]<9&&(t("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(t){var e=this,i=[].slice;if("function"!=typeof e)throw new TypeError;var n=i.call(arguments,1),a=function(){if(this instanceof a){var r=function(){};r.prototype=e.prototype;var o=new r,s=e.apply(o,n.concat(i.call(arguments)));return Object(s)===s?s:o}return e.apply(t,n.concat(i.call(arguments)))};return a}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i;if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),a=n.length>>>0;if(0===a)return-1;var r=+e||0;if(Math.abs(r)===1/0&&(r=0),r>=a)return-1;for(i=Math.max(r>=0?r:a-Math.abs(r),0);i<a;){if(i in n&&n[i]===t)return i;i++}return-1});var c=function(n,r,o){this.VERSION="2.3.1",this.input=n,this.plugin_count=o,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,r=r||{},this.$cache={win:t(i),body:t(e.body),input:t(n),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var s,l,c,u=this.$cache.input,d=u.prop("value");for(c in s={skin:"flat",type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==u[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",u[0]),(l={skin:u.data("skin"),type:u.data("type"),min:u.data("min"),max:u.data("max"),from:u.data("from"),to:u.data("to"),step:u.data("step"),min_interval:u.data("minInterval"),max_interval:u.data("maxInterval"),drag_interval:u.data("dragInterval"),values:u.data("values"),from_fixed:u.data("fromFixed"),from_min:u.data("fromMin"),from_max:u.data("fromMax"),from_shadow:u.data("fromShadow"),to_fixed:u.data("toFixed"),to_min:u.data("toMin"),to_max:u.data("toMax"),to_shadow:u.data("toShadow"),prettify_enabled:u.data("prettifyEnabled"),prettify_separator:u.data("prettifySeparator"),force_edges:u.data("forceEdges"),keyboard:u.data("keyboard"),grid:u.data("grid"),grid_margin:u.data("gridMargin"),grid_num:u.data("gridNum"),grid_snap:u.data("gridSnap"),hide_min_max:u.data("hideMinMax"),hide_from_to:u.data("hideFromTo"),prefix:u.data("prefix"),postfix:u.data("postfix"),max_postfix:u.data("maxPostfix"),decorate_both:u.data("decorateBoth"),values_separator:u.data("valuesSeparator"),input_values_separator:u.data("inputValuesSeparator"),disable:u.data("disable"),block:u.data("block"),extra_classes:u.data("extraClasses")}).values=l.values&&l.values.split(","),l)l.hasOwnProperty(c)&&(l[c]!==a&&""!==l[c]||delete l[c]);d!==a&&""!==d&&((d=d.split(l.input_values_separator||r.input_values_separator||";"))[0]&&d[0]==+d[0]&&(d[0]=+d[0]),d[1]&&d[1]==+d[1]&&(d[1]=+d[1]),r&&r.values&&r.values.length?(s.from=d[0]&&r.values.indexOf(d[0]),s.to=d[1]&&r.values.indexOf(d[1])):(s.from=d[0]&&+d[0],s.to=d[1]&&+d[1])),t.extend(s,r),t.extend(s,l),this.options=s,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};c.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var t='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,e=this.options.max,i=this.options.from,n=this.options.to;i>t&&n===e?this.$cache.s_from.addClass("type_last"):n<e&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),l&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),l&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){var e,i;this.target||(e=(i="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,e+=i.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:e}))},pointerMove:function(t){if(this.dragging){var e=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=e-this.coords.x_gap,this.calc()}},pointerUp:function(e){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,l&&t("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(t.contains(this.$cache.cont[0],e.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(e,i){i.preventDefault();var n=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&("both"===e&&this.setTempMinInterval(),e||(e=this.target||"from"),this.current_plugin=this.plugin_count,this.target=e,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=n-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(e),l&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,i=(this.options.max-this.options.min)/100;i=this.options.step/i,t?e+=i:e-=i,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*e),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),e=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=e,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(e,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var e=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,e=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,e=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(e)),this.target){case"base":var i=(this.options.max-this.options.min)/100,n=(this.result.from-this.options.min)/i,a=(this.result.to-this.options.min)/i;this.coords.p_single_real=this.toFixed(n),this.coords.p_from_real=this.toFixed(n),this.coords.p_to_real=this.toFixed(a),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(e),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(e),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(e),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;e=this.toFixed(e+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(e)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(e)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var r=this.convertToRealPercent(e),o=this.result.from_percent,s=this.result.to_percent-o,l=s/2,c=r-l,u=r+l;c<0&&(u=(c=0)+s),u>100&&(c=(u=100)-s),this.coords.p_from_real=this.calcWithStep(c),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(u),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return e<0?e=0:e>t&&(e=t),e},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){return"single"===this.options.type?"single":t>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var t,e,i,n,a,r=this.options.values.length,o=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)r?(t=this.decorate(o[this.result.from]),this.$cache.single.html(t)):(n=this._prettify(this.result.from),t=this.decorate(n,this.result.from),this.$cache.single.html(t)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{r?(this.options.decorate_both?(t=this.decorate(o[this.result.from]),t+=this.options.values_separator,t+=this.decorate(o[this.result.to])):t=this.decorate(o[this.result.from]+this.options.values_separator+o[this.result.to]),e=this.decorate(o[this.result.from]),i=this.decorate(o[this.result.to]),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(i)):(n=this._prettify(this.result.from),a=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(n,this.result.from),t+=this.options.values_separator,t+=this.decorate(a,this.result.to)):t=this.decorate(n+this.options.values_separator+a,this.result.to),e=this.decorate(n,this.result.from),i=this.decorate(a,this.result.to),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(i)),this.calcLabels();var s=Math.min(this.labels.p_single_left,this.labels.p_from_left),l=this.labels.p_single_left+this.labels.p_single_fake,c=this.labels.p_to_left+this.labels.p_to_fake,u=Math.max(l,c);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",u=c):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",u=Math.max(l,c))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),s<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",u>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var t,e,i,n,a=this.options,r=this.$cache,o="number"==typeof a.from_min&&!isNaN(a.from_min),s="number"==typeof a.from_max&&!isNaN(a.from_max),l="number"==typeof a.to_min&&!isNaN(a.to_min),c="number"==typeof a.to_max&&!isNaN(a.to_max);"single"===a.type?a.from_shadow&&(o||s)?(t=this.convertToPercent(o?a.from_min:a.min),e=this.convertToPercent(s?a.from_max:a.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,r.shad_single[0].style.display="block",r.shad_single[0].style.left=t+"%",r.shad_single[0].style.width=e+"%"):r.shad_single[0].style.display="none":(a.from_shadow&&(o||s)?(t=this.convertToPercent(o?a.from_min:a.min),e=this.convertToPercent(s?a.from_max:a.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,r.shad_from[0].style.display="block",r.shad_from[0].style.left=t+"%",r.shad_from[0].style.width=e+"%"):r.shad_from[0].style.display="none",a.to_shadow&&(l||c)?(i=this.convertToPercent(l?a.to_min:a.min),n=this.convertToPercent(c?a.to_max:a.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),n=this.toFixed(n-this.coords.p_handle/100*n),i+=this.coords.p_handle/2,r.shad_to[0].style.display="block",r.shad_to[0].style.left=i+"%",r.shad_to[0].style.width=n+"%"):r.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,e){var i,n=this.options.max-this.options.min,a=n/100;return n?(i=(e?t:t-this.options.min)/a,this.toFixed(i)):(this.no_diapason=!0,0)},convertToValue:function(t){var e,i,n=this.options.min,a=this.options.max,r=n.toString().split(".")[1],o=a.toString().split(".")[1],s=0,l=0;if(0===t)return this.options.min;if(100===t)return this.options.max;r&&(s=e=r.length),o&&(s=i=o.length),e&&i&&(s=e>=i?e:i),n<0&&(n=+(n+(l=Math.abs(n))).toFixed(s),a=+(a+l).toFixed(s));var c,u=(a-n)/100*t+n,d=this.options.step.toString().split(".")[1];return d?u=+u.toFixed(d.length):(u/=this.options.step,u=+(u*=this.options.step).toFixed(0)),l&&(u-=l),(c=d?+u.toFixed(d.length):this.toFixed(u))<this.options.min?c=this.options.min:c>this.options.max&&(c=this.options.max),c},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return e>100&&(e=100),100===t&&(e=100),this.toFixed(e)},checkMinInterval:function(t,e,i){var n,a,r=this.options;return r.min_interval?(n=this.convertToValue(t),a=this.convertToValue(e),"from"===i?a-n<r.min_interval&&(n=a-r.min_interval):n-a<r.min_interval&&(n=a+r.min_interval),this.convertToPercent(n)):t},checkMaxInterval:function(t,e,i){var n,a,r=this.options;return r.max_interval?(n=this.convertToValue(t),a=this.convertToValue(e),"from"===i?a-n>r.max_interval&&(n=a-r.max_interval):n-a>r.max_interval&&(n=a+r.max_interval),this.convertToPercent(n)):t},checkDiapason:function(t,e,i){var n=this.convertToValue(t),a=this.options;return"number"!=typeof e&&(e=a.min),"number"!=typeof i&&(i=a.max),n<e&&(n=e),n>i&&(n=i),this.convertToPercent(n)},toFixed:function(t){return+(t=t.toFixed(20))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,e){return this.options.force_edges?(t<0?t=0:t>100-e&&(t=100-e),this.toFixed(t)):this.toFixed(t)},validate:function(){var t,e,i=this.options,n=this.result,a=i.values,r=a.length;if("string"==typeof i.min&&(i.min=+i.min),"string"==typeof i.max&&(i.max=+i.max),"string"==typeof i.from&&(i.from=+i.from),"string"==typeof i.to&&(i.to=+i.to),"string"==typeof i.step&&(i.step=+i.step),"string"==typeof i.from_min&&(i.from_min=+i.from_min),"string"==typeof i.from_max&&(i.from_max=+i.from_max),"string"==typeof i.to_min&&(i.to_min=+i.to_min),"string"==typeof i.to_max&&(i.to_max=+i.to_max),"string"==typeof i.grid_num&&(i.grid_num=+i.grid_num),i.max<i.min&&(i.max=i.min),r)for(i.p_values=[],i.min=0,i.max=r-1,i.step=1,i.grid_num=i.max,i.grid_snap=!0,e=0;e<r;e++)t=+a[e],isNaN(t)?t=a[e]:(a[e]=t,t=this._prettify(t)),i.p_values.push(t);("number"!=typeof i.from||isNaN(i.from))&&(i.from=i.min),("number"!=typeof i.to||isNaN(i.to))&&(i.to=i.max),"single"===i.type?(i.from<i.min&&(i.from=i.min),i.from>i.max&&(i.from=i.max)):(i.from<i.min&&(i.from=i.min),i.from>i.max&&(i.from=i.max),i.to<i.min&&(i.to=i.min),i.to>i.max&&(i.to=i.max),this.update_check.from&&(this.update_check.from!==i.from&&i.from>i.to&&(i.from=i.to),this.update_check.to!==i.to&&i.to<i.from&&(i.to=i.from)),i.from>i.to&&(i.from=i.to),i.to<i.from&&(i.to=i.from)),("number"!=typeof i.step||isNaN(i.step)||!i.step||i.step<0)&&(i.step=1),"number"==typeof i.from_min&&i.from<i.from_min&&(i.from=i.from_min),"number"==typeof i.from_max&&i.from>i.from_max&&(i.from=i.from_max),"number"==typeof i.to_min&&i.to<i.to_min&&(i.to=i.to_min),"number"==typeof i.to_max&&i.from>i.to_max&&(i.to=i.to_max),n&&(n.min!==i.min&&(n.min=i.min),n.max!==i.max&&(n.max=i.max),(n.from<n.min||n.from>n.max)&&(n.from=i.from),(n.to<n.min||n.to>n.max)&&(n.to=i.to)),("number"!=typeof i.min_interval||isNaN(i.min_interval)||!i.min_interval||i.min_interval<0)&&(i.min_interval=0),("number"!=typeof i.max_interval||isNaN(i.max_interval)||!i.max_interval||i.max_interval<0)&&(i.max_interval=0),i.min_interval&&i.min_interval>i.max-i.min&&(i.min_interval=i.max-i.min),i.max_interval&&i.max_interval>i.max-i.min&&(i.max_interval=i.max-i.min)},decorate:function(t,e){var i="",n=this.options;return n.prefix&&(i+=n.prefix),i+=t,n.max_postfix&&(n.values.length&&t===n.p_values[n.max]||e===n.max)&&(i+=n.max_postfix,n.postfix&&(i+=" ")),n.postfix&&(i+=n.postfix),i},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e,i,n,a,r,o=this.options,s=o.max-o.min,l=o.grid_num,c=0,u=4,d="";for(this.calcGridMargin(),o.grid_snap&&(l=s/o.step),l>50&&(l=50),i=this.toFixed(100/l),l>4&&(u=3),l>7&&(u=2),l>14&&(u=1),l>28&&(u=0),t=0;t<l+1;t++){for(n=u,(c=this.toFixed(i*t))>100&&(c=100),this.coords.big[t]=c,a=(c-i*(t-1))/(n+1),e=1;e<=n&&0!==c;e++)d+='<span class="irs-grid-pol small" style="left: '+this.toFixed(c-a*e)+'%"></span>';d+='<span class="irs-grid-pol" style="left: '+c+'%"></span>',r=this.convertToValue(c),d+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+c+'%">'+(r=o.values.length?o.p_values[r]:this._prettify(r))+"</span>"}this.coords.big_num=Math.ceil(l+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(d),this.cacheGridLabels()}},cacheGridLabels:function(){var t,e,i=this.coords.big_num;for(e=0;e<i;e++)t=this.$cache.grid.find(".js-grid-text-"+e),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,e,i=[],n=[],a=this.coords.big_num;for(t=0;t<a;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),i[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),n[t]=this.toFixed(i[t]+this.coords.big_p[t]);for(this.options.force_edges&&(i[0]<-this.coords.grid_gap&&(i[0]=-this.coords.grid_gap,n[0]=this.toFixed(i[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),n[a-1]>100+this.coords.grid_gap&&(n[a-1]=100+this.coords.grid_gap,i[a-1]=this.toFixed(n[a-1]-this.coords.big_p[a-1]),this.coords.big_x[a-1]=this.toFixed(this.coords.big_p[a-1]-this.coords.grid_gap))),this.calcGridCollision(2,i,n),this.calcGridCollision(4,i,n),t=0;t<a;t++)e=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(e.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,e,i){var n,a,r,o=this.coords.big_num;for(n=0;n<o&&!((a=n+t/2)>=o);n+=t)r=this.$cache.grid_labels[a][0],i[n]<=e[a]?r.style.visibility="visible":r.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(e){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=t.extend(this.options,e),this.validate(),this.updateResult(e),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},t.fn.ionRangeSlider=function(e){return this.each((function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new c(this,e,s++))}))},function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!i.requestAnimationFrame;++n)i.requestAnimationFrame=i[e[n]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[e[n]+"CancelAnimationFrame"]||i[e[n]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(e,n){var a=(new Date).getTime(),r=Math.max(0,16-(a-t)),o=i.setTimeout((function(){e(a+r)}),r);return t=a+r,o}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(t){clearTimeout(t)})}()})),
/*!
 * typeahead.js 0.11.1
 * https://github.com/twitter/typeahead.js
 * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
 */
function(t,e){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],(function(i){return t.Bloodhound=e(i)})):"object"==typeof exports?module.exports=e(require("jquery")):t.Bloodhound=e(jQuery)}(this,(function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,i){t.each(e,(function(t,e){return i(e,t)}))},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,(function(t,a){if(!(n=i.call(null,a,t,e)))return!1})),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,(function(t,a){if(n=i.call(null,a,t,e))return!1})),!!n):n},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){return t.isFunction(e)?e:function(){return String(e)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,i){var n,a;return function(){var r,o,s=this,l=arguments;return r=function(){n=null,i||(a=t.apply(s,l))},o=i&&!n,clearTimeout(n),n=setTimeout(r,e),o&&(a=t.apply(s,l)),a}},throttle:function(t,e){var i,n,a,r,o,s;return o=0,s=function(){o=new Date,a=null,r=t.apply(i,n)},function(){var l=new Date,c=e-(l-o);return i=this,n=arguments,c<=0?(clearTimeout(a),a=null,o=l,r=t.apply(i,n)):a||(a=setTimeout(s,c)),r}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),i="0.11.1",n=function(){"use strict";return{nonword:i,whitespace:t,obj:{nonword:n(i),whitespace:n(t)}};function t(t){return(t=e.toStr(t))?t.split(/\s+/):[]}function i(t){return(t=e.toStr(t))?t.split(/\W+/):[]}function n(t){return function(i){return i=e.isArray(i)?i:[].slice.call(arguments,0),function(n){var a=[];return e.each(i,(function(i){a=a.concat(t(e.toStr(n[i])))})),a}}}}(),a=function(){"use strict";function i(i){this.maxSize=e.isNumber(i)?i:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function n(){this.head=this.tail=null}function a(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(i.prototype,{set:function(t,e){var i,n=this.list.tail;this.size>=this.maxSize&&(this.list.remove(n),delete this.hash[n.key],this.size--),(i=this.hash[t])?(i.val=e,this.list.moveToFront(i)):(i=new a(t,e),this.list.add(i),this.hash[t]=i,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new n}}),e.mixin(n.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),i}(),r=function(){"use strict";var i;try{(i=window.localStorage).setItem("~~~","!"),i.removeItem("~~~")}catch(t){i=null}function n(t,n){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix)),this.ls=n||i,!this.ls&&this._noop()}return e.mixin(n.prototype,{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=e.noop},_safeSet:function(t,e){try{this.ls.setItem(t,e)}catch(t){"QuotaExceededError"===t.name&&(this.clear(),this._noop())}},get:function(t){return this.isExpired(t)&&this.remove(t),o(this.ls.getItem(this._prefix(t)))},set:function(t,i,n){return e.isNumber(n)?this._safeSet(this._ttlKey(t),r(a()+n)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),r(i))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var t,e=function(t){var e,n,a=[],r=i.length;for(e=0;e<r;e++)(n=i.key(e)).match(t)&&a.push(n.replace(t,""));return a}(this.keyMatcher);for(t=e.length;t--;)this.remove(e[t]);return this},isExpired:function(t){var i=o(this.ls.getItem(this._ttlKey(t)));return!!(e.isNumber(i)&&a()>i)}}),n;function a(){return(new Date).getTime()}function r(t){return JSON.stringify(e.isUndefined(t)?null:t)}function o(e){return t.parseJSON(e)}}(),o=function(){"use strict";var i=0,n={},r=6,o=new a(10);function s(t){t=t||{},this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=!1===t.cache?new a(0):o}return s.setMaxPendingRequests=function(t){r=t},s.resetCache=function(){o.reset()},e.mixin(s.prototype,{_fingerprint:function(e){return(e=e||{}).url+e.type+t.param(e.data||{})},_get:function(t,e){var a,o,s=this;function l(t){e(null,t),s._cache.set(a,t)}function c(){e(!0)}function u(){i--,delete n[a],s.onDeckRequestArgs&&(s._get.apply(s,s.onDeckRequestArgs),s.onDeckRequestArgs=null)}a=this._fingerprint(t),this.cancelled||a!==this.lastReq||((o=n[a])?o.done(l).fail(c):i<r?(i++,n[a]=this._send(t).done(l).fail(c).always(u)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,n){var a,r;n=n||t.noop,i=e.isString(i)?{url:i}:i||{},r=this._fingerprint(i),this.cancelled=!1,this.lastReq=r,(a=this._cache.get(r))?n(null,a):this._get(i,n)},cancel:function(){this.cancelled=!0}}),s}(),s=window.SearchIndex=function(){"use strict";function i(i){(i=i||{}).datumTokenizer&&i.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.identify=i.identify||e.stringify,this.datumTokenizer=i.datumTokenizer,this.queryTokenizer=i.queryTokenizer,this.reset()}return e.mixin(i.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var i=this;t=e.isArray(t)?t:[t],e.each(t,(function(t){var r,o;i.datums[r=i.identify(t)]=t,o=n(i.datumTokenizer(t)),e.each(o,(function(t){var e,n,o;for(e=i.trie,n=t.split("");o=n.shift();)(e=e.c[o]||(e.c[o]=a())).i.push(r)}))}))},get:function(t){var i=this;return e.map(t,(function(t){return i.datums[t]}))},search:function(t){var i,a,r=this;return i=n(this.queryTokenizer(t)),e.each(i,(function(t){var e,i,n,o;if(a&&0===a.length)return!1;for(e=r.trie,i=t.split("");e&&(n=i.shift());)e=e.c[n];if(!e||0!==i.length)return a=[],!1;o=e.i.slice(0),a=a?function(t,e){var i=0,n=0,a=[];t=t.sort(),e=e.sort();var r=t.length,o=e.length;for(;i<r&&n<o;)t[i]<e[n]?i++:(t[i]>e[n]||(a.push(t[i]),i++),n++);return a}(a,o):o})),a?e.map(function(t){for(var e={},i=[],n=0,a=t.length;n<a;n++)e[t[n]]||(e[t[n]]=!0,i.push(t[n]));return i}(a),(function(t){return r.datums[t]})):[]},all:function(){var t=[];for(var e in this.datums)t.push(this.datums[e]);return t},reset:function(){this.datums={},this.trie=a()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i;function n(t){return t=e.filter(t,(function(t){return!!t})),t=e.map(t,(function(t){return t.toLowerCase()}))}function a(){var t={i:[],c:{}};return t}}(),l=function(){"use strict";var t;function i(t){this.url=t.url,this.ttl=t.ttl,this.cache=t.cache,this.prepare=t.prepare,this.transform=t.transform,this.transport=t.transport,this.thumbprint=t.thumbprint,this.storage=new r(t.cacheKey)}return t={data:"data",protocol:"protocol",thumbprint:"thumbprint"},e.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(e){this.cache&&(this.storage.set(t.data,e,this.ttl),this.storage.set(t.protocol,location.protocol,this.ttl),this.storage.set(t.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var e,i={};return this.cache?(i.data=this.storage.get(t.data),i.protocol=this.storage.get(t.protocol),i.thumbprint=this.storage.get(t.thumbprint),e=i.thumbprint!==this.thumbprint||i.protocol!==location.protocol,i.data&&!e?i.data:null):null},fromNetwork:function(t){var e,i=this;t&&(e=this.prepare(this._settings()),this.transport(e).fail((function(){t(!0)})).done((function(e){t(null,i.transform(e))})))},clear:function(){return this.storage.clear(),this}}),i}(),c=function(){"use strict";function t(t){this.url=t.url,this.prepare=t.prepare,this.transform=t.transform,this.transport=new o({cache:t.cache,limiter:t.limiter,transport:t.transport})}return e.mixin(t.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(t,e){var i,n=this;if(e)return t=t||"",i=this.prepare(t,this._settings()),this.transport.get(i,(function(t,i){e(t?[]:n.transform(i))}))},cancelLastRequest:function(){this.transport.cancel()}}),t}(),u=function(){"use strict";return function(a){var r,o;return r={initialize:!0,identify:e.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},!(a=e.mixin(r,a||{})).datumTokenizer&&t.error("datumTokenizer is required"),!a.queryTokenizer&&t.error("queryTokenizer is required"),o=a.sorter,a.sorter=o?function(t){return t.sort(o)}:e.identity,a.local=e.isFunction(a.local)?a.local():a.local,a.prefetch=function(a){var r;if(!a)return null;return r={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:e.identity,transform:e.identity,transport:null},a=e.isString(a)?{url:a}:a,!(a=e.mixin(r,a)).url&&t.error("prefetch requires url to be set"),a.transform=a.filter||a.transform,a.cacheKey=a.cacheKey||a.url,a.thumbprint=i+a.thumbprint,a.transport=a.transport?n(a.transport):t.ajax,a}(a.prefetch),a.remote=function(i){var a;if(!i)return;return a={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:e.identity,transport:null},i=e.isString(i)?{url:i}:i,!(i=e.mixin(a,i)).url&&t.error("remote requires url to be set"),i.transform=i.filter||i.transform,i.prepare=function(t){var e,i,n;if(e=t.prepare,i=t.replace,n=t.wildcard,e)return e;e=i?a:t.wildcard?r:o;return e;function a(t,e){return e.url=i(e.url,t),e}function r(t,e){return e.url=e.url.replace(n,encodeURIComponent(t)),e}function o(t,e){return e}}(i),i.limiter=function(t){var i,n,a;i=t.limiter,n=t.rateLimitBy,a=t.rateLimitWait,i||(i=/^throttle$/i.test(n)?o(a):r(a));return i;function r(t){return function(i){return e.debounce(i,t)}}function o(t){return function(i){return e.throttle(i,t)}}}(i),i.transport=i.transport?n(i.transport):t.ajax,delete i.replace,delete i.wildcard,delete i.rateLimitBy,delete i.rateLimitWait,i}(a.remote),a};function n(i){return function(n){var a=t.Deferred();return i(n,(function(t){e.defer((function(){a.resolve(t)}))}),(function(t){e.defer((function(){a.reject(t)}))})),a}}}();return function(){"use strict";var i;function a(t){t=u(t),this.sorter=t.sorter,this.identify=t.identify,this.sufficient=t.sufficient,this.local=t.local,this.remote=t.remote?new c(t.remote):null,this.prefetch=t.prefetch?new l(t.prefetch):null,this.index=new s({identify:this.identify,datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer}),!1!==t.initialize&&this.initialize()}return i=window&&window.Bloodhound,a.noConflict=function(){return window&&(window.Bloodhound=i),a},a.tokenizers=n,e.mixin(a.prototype,{__ttAdapter:function(){var t=this;return this.remote?function(e,i,n){return t.search(e,i,n)}:function(e,i){return t.search(e,i)}},_loadPrefetch:function(){var e,i,n=this;return e=t.Deferred(),this.prefetch?(i=this.prefetch.fromCache())?(this.index.bootstrap(i),e.resolve()):this.prefetch.fromNetwork((function(t,i){if(t)return e.reject();n.add(i),n.prefetch.store(n.index.serialize()),e.resolve()})):e.resolve(),e.promise()},_initialize:function(){var t=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done((function(){t.add(t.local)})),this.initPromise},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){return this.index.add(t),this},get:function(t){return t=e.isArray(t)?t:[].slice.call(arguments),this.index.get(t)},search:function(t,i,n){var a,r=this;return a=this.sorter(this.index.search(t)),i(this.remote?a.slice():a),this.remote&&a.length<this.sufficient?this.remote.get(t,(function(t){var i=[];e.each(t,(function(t){!e.some(a,(function(e){return r.identify(t)===r.identify(e)}))&&i.push(t)})),n&&n(i)})):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return o.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),a}()})),function(t,e){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],(function(t){return e(t)})):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,(function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,i){t.each(e,(function(t,e){return i(e,t)}))},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,(function(t,a){if(!(n=i.call(null,a,t,e)))return!1})),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,(function(t,a){if(n=i.call(null,a,t,e))return!1})),!!n):n},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){return t.isFunction(e)?e:function(){return String(e)}},defer:function(t){setTimeout(t,0)},debounce:function(t,e,i){var n,a;return function(){var r,o,s=this,l=arguments;return r=function(){n=null,i||(a=t.apply(s,l))},o=i&&!n,clearTimeout(n),n=setTimeout(r,e),o&&(a=t.apply(s,l)),a}},throttle:function(t,e){var i,n,a,r,o,s;return o=0,s=function(){o=new Date,a=null,r=t.apply(i,n)},function(){var l=new Date,c=e-(l-o);return i=this,n=arguments,c<=0?(clearTimeout(a),a=null,o=l,r=t.apply(i,n)):a||(a=setTimeout(s,c)),r}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),i=function(){"use strict";var t={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return function(r){var o,s;return s=e.mixin({},t,r),{css:(o={css:a(),classes:s,html:i(s),selectors:n(s)}).css,html:o.html,classes:o.classes,selectors:o.selectors,mixin:function(t){e.mixin(t,o)}}};function i(t){return{wrapper:'<span class="'+t.wrapper+'"></span>',menu:'<div class="'+t.menu+'"></div>'}}function n(t){var i={};return e.each(t,(function(t,e){i[e]="."+t})),i}function a(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}}(),n=function(){"use strict";var i;function n(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return"typeahead:",i={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(n.prototype,{_trigger:function(e,i){var n;return n=t.Event("typeahead:"+e),(i=i||[]).unshift(n),this.$el.trigger.apply(this.$el,i),n},before:function(t){var e;return e=[].slice.call(arguments,1),this._trigger("before"+t,e).isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=i[t])&&this._trigger(e,[].slice.call(arguments,1))}}),n}(),a=function(){"use strict";var t=/\s+/,e=function(){var t;t=window.setImmediate?function(t){setImmediate((function(){t()}))}:function(t){setTimeout((function(){t()}),0)};return t}();return{onSync:function(t,e,n){return i.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return i.call(this,"async",t,e,n)},off:function(e){var i;if(!this._callbacks)return this;e=e.split(t);for(;i=e.shift();)delete this._callbacks[i];return this},trigger:function(i){var a,r,o,s,l;if(!this._callbacks)return this;i=i.split(t),o=[].slice.call(arguments,1);for(;(a=i.shift())&&(r=this._callbacks[a]);)s=n(r.sync,this,[a].concat(o)),l=n(r.async,this,[a].concat(o)),s()&&e(l);return this}};function i(e,i,n,a){var r;if(!n)return this;for(i=i.split(t),n=a?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,a):n,this._callbacks=this._callbacks||{};r=i.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][e].push(n);return this}function n(t,e,i){return function(){for(var n,a=0,r=t.length;!n&&a<r;a+=1)n=!1===t[a].apply(e,i);return!n}}}(),r=function(t){"use strict";var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(n){var a;(n=e.mixin({},i,n)).node&&n.pattern&&(n.pattern=e.isArray(n.pattern)?n.pattern:[n.pattern],a=function(t,i,n){for(var a,r=[],o=0,s=t.length;o<s;o++)r.push(e.escapeRegExChars(t[o]));return a=n?"\\b("+r.join("|")+")\\b":"("+r.join("|")+")",i?new RegExp(a):new RegExp(a,"i")}(n.pattern,n.caseSensitive,n.wordsOnly),function t(e,i){for(var n,a=0;a<e.childNodes.length;a++)3===(n=e.childNodes[a]).nodeType?a+=i(n)?1:0:t(n,i)}(n.node,(function(e){var i,r,o;(i=a.exec(e.data))&&(o=t.createElement(n.tagName),n.className&&(o.className=n.className),(r=e.splitText(i.index)).splitText(i[0].length),o.appendChild(r.cloneNode(!0)),e.parentNode.replaceChild(o,r));return!!i})))}}(window.document),o=function(){"use strict";var i;function n(i,n){var a;(i=i||{}).input||t.error("input is missing"),n.mixin(this),this.$hint=t(i.hint),this.$input=t(i.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=(a=this.$input,t('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:a.css("font-family"),fontSize:a.css("font-size"),fontStyle:a.css("font-style"),fontVariant:a.css("font-variant"),fontWeight:a.css("font-weight"),wordSpacing:a.css("word-spacing"),letterSpacing:a.css("letter-spacing"),textIndent:a.css("text-indent"),textRendering:a.css("text-rendering"),textTransform:a.css("text-transform")}).insertAfter(a)),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=e.noop)}return i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},n.normalizeQuery=function(t){return e.toStr(t).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},e.mixin(n.prototype,a,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(t,e){var i;switch(t){case"up":case"down":i=!r(e);break;default:i=!1}i&&e.preventDefault()},_shouldTrigger:function(t,e){var i;switch(t){case"tab":i=!r(e);break;default:i=!0}return i},_checkLanguageDirection:function(){var t=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==t&&(this.dir=t,this.$hint.attr("dir",t),this.trigger("langDirChanged",t))},_setQuery:function(t,e){var i,a;a=!!(i=function(t,e){return n.normalizeQuery(t)===n.normalizeQuery(e)}(t,this.query))&&this.query.length!==t.length,this.query=t,e||i?!e&&a&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var t,n,a,r,o=this;return t=e.bind(this._onBlur,this),n=e.bind(this._onFocus,this),a=e.bind(this._onKeydown,this),r=e.bind(this._onInput,this),this.$input.on("blur.tt",t).on("focus.tt",n).on("keydown.tt",a),!e.isMsie()||e.isMsie()>9?this.$input.on("input.tt",r):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",(function(t){i[t.which||t.keyCode]||e.defer(e.bind(o._onInput,o,t))})),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(t,e){this.setInputValue(t),this._setQuery(t,e)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(t){this.$input.val(t),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,i;i=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),!(""!==t&&i&&!this.hasOverflow())&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,i,n;return t=this.$input.val().length,i=this.$input[0].selectionStart,e.isNumber(i)?i===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=t("<div>")}}),n;function r(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}}(),s=function(){"use strict";var i,n;function o(i,a){var r;(i=i||{}).templates=i.templates||{},i.templates.notFound=i.templates.notFound||i.templates.empty,i.source||t.error("missing source"),i.node||t.error("missing node"),i.name&&(r=i.name,!/^[_a-zA-Z0-9-]+$/.test(r))&&t.error("invalid dataset name: "+i.name),a.mixin(this),this.highlight=!!i.highlight,this.name=i.name||n(),this.limit=i.limit||5,this.displayFn=function(t){return t=t||e.stringify,e.isFunction(t)?t:i;function i(e){return e[t]}}(i.display||i.displayKey),this.templates=function(i,n){return{notFound:i.notFound&&e.templatify(i.notFound),pending:i.pending&&e.templatify(i.pending),header:i.header&&e.templatify(i.header),footer:i.footer&&e.templatify(i.footer),suggestion:i.suggestion||a};function a(e){return t("<div>").text(n(e))}}(i.templates,this.displayFn),this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source,this.async=e.isUndefined(i.async)?this.source.length>2:!!i.async,this._resetLastSuggestion(),this.$el=t(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}return i={val:"tt-selectable-display",obj:"tt-selectable-object"},n=e.getIdGenerator(),o.extractData=function(e){var n=t(e);return n.data(i.obj)?{val:n.data(i.val)||"",obj:n.data(i.obj)||null}:null},e.mixin(o.prototype,a,{_overwrite:function(t,e){(e=e||[]).length?this._renderSuggestions(t,e):this.async&&this.templates.pending?this._renderPending(t):!this.async&&this.templates.notFound?this._renderNotFound(t):this._empty(),this.trigger("rendered",this.name,e,!1)},_append:function(t,e){(e=e||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(t,e):e.length?this._renderSuggestions(t,e):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(t),this.trigger("rendered",this.name,e,!0)},_renderSuggestions:function(t,e){var i;i=this._getSuggestionsFragment(t,e),this.$lastSuggestion=i.children().last(),this.$el.html(i).prepend(this._getHeader(t,e)).append(this._getFooter(t,e))},_appendSuggestions:function(t,e){var i,n;n=(i=this._getSuggestionsFragment(t,e)).children().last(),this.$lastSuggestion.after(i),this.$lastSuggestion=n},_renderPending:function(t){var e=this.templates.pending;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))},_renderNotFound:function(t){var e=this.templates.notFound;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(n,a){var o,s=this;return o=document.createDocumentFragment(),e.each(a,(function(e){var a,r;r=s._injectQuery(n,e),a=t(s.templates.suggestion(r)).data(i.obj,e).data(i.val,s.displayFn(e)).addClass(s.classes.suggestion+" "+s.classes.selectable),o.appendChild(a[0])})),this.highlight&&r({className:this.classes.highlight,node:o,pattern:n}),t(o)},_getFooter:function(t,e){return this.templates.footer?this.templates.footer({query:t,suggestions:e,dataset:this.name}):null},_getHeader:function(t,e){return this.templates.header?this.templates.header({query:t,suggestions:e,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=t()},_injectQuery:function(t,i){return e.isObject(i)?e.mixin({_query:t},i):i},update:function(e){var i=this,n=!1,a=!1,r=0;function o(t){a||(a=!0,t=(t||[]).slice(0,i.limit),r=t.length,i._overwrite(e,t),r<i.limit&&i.async&&i.trigger("asyncRequested",e))}this.cancel(),this.cancel=function(){n=!0,i.cancel=t.noop,i.async&&i.trigger("asyncCanceled",e)},this.source(e,o,(function(a){a=a||[],!n&&r<i.limit&&(i.cancel=t.noop,r+=a.length,i._append(e,a.slice(0,i.limit-r)),i.async&&i.trigger("asyncReceived",e))})),!a&&o([])},cancel:t.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=t("<div>")}}),o}(),l=function(){"use strict";function i(i,n){var a=this;(i=i||{}).node||t.error("node is required"),n.mixin(this),this.$node=t(i.node),this.query=null,this.datasets=e.map(i.datasets,(function(e){var i=a.$node.find(e.node).first();return e.node=i.length?i:t("<div>").appendTo(a.$node),new s(e,n)}))}return e.mixin(i.prototype,a,{_onSelectableClick:function(e){this.trigger("selectableClicked",t(e.currentTarget))},_onRendered:function(t,e,i,n){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",e,i,n)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return e.every(this.datasets,(function(t){return t.isEmpty()}))},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var t=this.getActiveSelectable();t&&t.removeClass(this.classes.cursor)},_ensureVisible:function(t){var e,i,n,a;i=(e=t.position().top)+t.outerHeight(!0),n=this.$node.scrollTop(),a=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),e<0?this.$node.scrollTop(n+e):a<i&&this.$node.scrollTop(n+(i-a))},bind:function(){var t,i=this;return t=e.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,t),e.each(this.datasets,(function(t){t.onSync("asyncRequested",i._propagate,i).onSync("asyncCanceled",i._propagate,i).onSync("asyncReceived",i._propagate,i).onSync("rendered",i._onRendered,i).onSync("cleared",i._onCleared,i)})),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(t){this.$node.attr("dir",t)},selectableRelativeToCursor:function(t){var e,i,n;return i=this.getActiveSelectable(),e=this._getSelectables(),-1===(n=(n=((n=(i?e.index(i):-1)+t)+1)%(e.length+1)-1)<-1?e.length-1:n)?null:e.eq(n)},setCursor:function(t){this._removeCursor(),(t=t&&t.first())&&(t.addClass(this.classes.cursor),this._ensureVisible(t))},getSelectableData:function(t){return t&&t.length?s.extractData(t):null},getActiveSelectable:function(){var t=this._getSelectables().filter(this.selectors.cursor).first();return t.length?t:null},getTopSelectable:function(){var t=this._getSelectables().first();return t.length?t:null},update:function(t){var i=t!==this.query;return i&&(this.query=t,e.each(this.datasets,(function(e){e.update(t)}))),i},empty:function(){e.each(this.datasets,(function(t){t.clear()})),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){this.$node.off(".tt"),this.$node=t("<div>"),e.each(this.datasets,(function(t){t.destroy()}))}}),i}(),c=function(){"use strict";var t=l.prototype;function i(){l.apply(this,[].slice.call(arguments,0))}return e.mixin(i.prototype,l.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),t.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),t.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),t._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(e){return this.$node.css("ltr"===e?this.css.ltr:this.css.rtl),t.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),i}(),u=function(){"use strict";function i(i,a){var r,o,s,l,c,u,d,h,f,p,m;(i=i||{}).input||t.error("missing input"),i.menu||t.error("missing menu"),i.eventBus||t.error("missing event bus"),a.mixin(this),this.eventBus=i.eventBus,this.minLength=e.isNumber(i.minLength)?i.minLength:1,this.input=i.input,this.menu=i.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),r=n(this,"activate","open","_onFocused"),o=n(this,"deactivate","_onBlurred"),s=n(this,"isActive","isOpen","_onEnterKeyed"),l=n(this,"isActive","isOpen","_onTabKeyed"),c=n(this,"isActive","_onEscKeyed"),u=n(this,"isActive","open","_onUpKeyed"),d=n(this,"isActive","open","_onDownKeyed"),h=n(this,"isActive","isOpen","_onLeftKeyed"),f=n(this,"isActive","isOpen","_onRightKeyed"),p=n(this,"_openIfActive","_onQueryChanged"),m=n(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",r,this).onSync("blurred",o,this).onSync("enterKeyed",s,this).onSync("tabKeyed",l,this).onSync("escKeyed",c,this).onSync("upKeyed",u,this).onSync("downKeyed",d,this).onSync("leftKeyed",h,this).onSync("rightKeyed",f,this).onSync("queryChanged",p,this).onSync("whitespaceChanged",m,this).onSync("langDirChanged",this._onLangDirChanged,this)}return e.mixin(i.prototype,{_hacks:function(){var i,n;i=this.input.$input||t("<div>"),n=this.menu.$node||t("<div>"),i.on("blur.tt",(function(t){var a,r,o;a=document.activeElement,r=n.is(a),o=n.has(a).length>0,e.isMsie()&&(r||o)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer((function(){i.focus()})))})),n.on("mousedown.tt",(function(t){t.preventDefault()}))},_onSelectableClicked:function(t,e){this.select(e)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(t,e,i,n){this._updateHint(),this.eventBus.trigger("render",i,n,e)},_onAsyncRequested:function(t,e,i){this.eventBus.trigger("asyncrequest",i,e)},_onAsyncCanceled:function(t,e,i){this.eventBus.trigger("asynccancel",i,e)},_onAsyncReceived:function(t,e,i){this.eventBus.trigger("asyncreceive",i,e)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(t,e){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&e.preventDefault()},_onTabKeyed:function(t,e){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&e.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&e.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(t,e){this._minLengthMet(e)?this.menu.update(e):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(t,e){this.dir!==e&&(this.dir=e,this.menu.setLanguageDirection(e))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(t){return(t=e.isString(t)?t:this.input.getQuery()||"").length>=this.minLength},_updateHint:function(){var t,i,n,a,r,s;t=this.menu.getTopSelectable(),i=this.menu.getSelectableData(t),n=this.input.getInputValue(),!i||e.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(a=o.normalizeQuery(n),r=e.escapeRegExChars(a),(s=new RegExp("^(?:"+r+")(.+$)","i").exec(i.val))&&this.input.setHint(n+s[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(t){this.input.setQuery(e.toStr(t))},getVal:function(){return this.input.getQuery()},select:function(t){var e=this.menu.getSelectableData(t);return!(!e||this.eventBus.before("select",e.obj))&&(this.input.setQuery(e.val,!0),this.eventBus.trigger("select",e.obj),this.close(),!0)},autocomplete:function(t){var e,i;return e=this.input.getQuery(),!(!((i=this.menu.getSelectableData(t))&&e!==i.val)||this.eventBus.before("autocomplete",i.obj))&&(this.input.setQuery(i.val),this.eventBus.trigger("autocomplete",i.obj),!0)},moveCursor:function(t){var e,i,n,a;return e=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(t),a=(n=this.menu.getSelectableData(i))?n.obj:null,!(this._minLengthMet()&&this.menu.update(e))&&!this.eventBus.before("cursorchange",a)&&(this.menu.setCursor(i),n?this.input.setInputValue(n.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",a),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),i;function n(t){var i=[].slice.call(arguments,1);return function(){var n=[].slice.call(arguments);e.each(i,(function(e){return t[e].apply(t,n)}))}}}();!function(){"use strict";var a,r,s;function d(e,i){e.each((function(){var e,n=t(this);(e=n.data(r.typeahead))&&i(e,n)}))}function h(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css((i=t,{backgroundAttachment:i.css("background-attachment"),backgroundClip:i.css("background-clip"),backgroundColor:i.css("background-color"),backgroundImage:i.css("background-image"),backgroundOrigin:i.css("background-origin"),backgroundPosition:i.css("background-position"),backgroundRepeat:i.css("background-repeat"),backgroundSize:i.css("background-size")})).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1});var i}function f(t,e){t.data(r.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(t){}return t}function p(i){var n;return(n=e.isJQuery(i)||e.isElement(i)?t(i).first():[]).length?n:null}a=t.fn.typeahead,r={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},s={initialize:function(a,s){var d;return s=e.isArray(s)?s:[].slice.call(arguments,1),d=i((a=a||{}).classNames),this.each(m);function m(){var i,m,g,v,y,b,_,x,w,k,S;e.each(s,(function(t){t.highlight=!!a.highlight})),i=t(this),m=t(d.html.wrapper),g=p(a.hint),v=p(a.menu),y=!1!==a.hint&&!g,b=!1!==a.menu&&!v,y&&(g=h(i,d)),b&&(v=t(d.html.menu).css(d.css.menu)),g&&g.val(""),i=f(i,d),(y||b)&&(m.css(d.css.wrapper),i.css(y?d.css.input:d.css.inputWithNoHint),i.wrap(m).parent().prepend(y?g:null).append(b?v:null)),S=b?c:l,_=new n({el:i}),x=new o({hint:g,input:i},d),w=new S({node:v,datasets:s},d),k=new u({input:x,menu:w,eventBus:_,minLength:a.minLength},d),i.data(r.www,d),i.data(r.typeahead,k)}},isEnabled:function(){var t;return d(this.first(),(function(e){t=e.isEnabled()})),t},enable:function(){return d(this,(function(t){t.enable()})),this},disable:function(){return d(this,(function(t){t.disable()})),this},isActive:function(){var t;return d(this.first(),(function(e){t=e.isActive()})),t},activate:function(){return d(this,(function(t){t.activate()})),this},deactivate:function(){return d(this,(function(t){t.deactivate()})),this},isOpen:function(){var t;return d(this.first(),(function(e){t=e.isOpen()})),t},open:function(){return d(this,(function(t){t.open()})),this},close:function(){return d(this,(function(t){t.close()})),this},select:function(e){var i=!1,n=t(e);return d(this.first(),(function(t){i=t.select(n)})),i},autocomplete:function(e){var i=!1,n=t(e);return d(this.first(),(function(t){i=t.autocomplete(n)})),i},moveCursor:function(t){var e=!1;return d(this.first(),(function(i){e=i.moveCursor(t)})),e},val:function(t){var e;return arguments.length?(d(this,(function(e){e.setVal(t)})),this):(d(this.first(),(function(t){e=t.getVal()})),e)},destroy:function(){return d(this,(function(t,i){!function(t){var i,n;i=t.data(r.www),n=t.parent().filter(i.selectors.wrapper),e.each(t.data(r.attrs),(function(i,n){e.isUndefined(i)?t.removeAttr(n):t.attr(n,i)})),t.removeData(r.typeahead).removeData(r.www).removeData(r.attr).removeClass(i.classes.input),n.length&&(t.detach().insertAfter(n),n.remove())}(i),t.destroy()})),this}},t.fn.typeahead=function(t){return s[t]?s[t].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=a,this}}()})),
/**!

 @license
 handlebars v4.7.6

Copyright (C) 2011-2019 by Yehuda Katz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

*/
function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Handlebars=e():t.Handlebars=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=t,i.c=e,i.p="",i(0)}([function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0;var a=n(i(2)),r=n(i(45)),o=i(46),s=i(51),l=n(i(52)),c=n(i(49)),u=n(i(44)),d=a.default.create;function h(){var t=d();return t.compile=function(e,i){return s.compile(e,i,t)},t.precompile=function(e,i){return s.precompile(e,i,t)},t.AST=r.default,t.Compiler=s.Compiler,t.JavaScriptCompiler=l.default,t.Parser=o.parser,t.parse=o.parse,t.parseWithoutProcessing=o.parseWithoutProcessing,t}var f=h();f.create=h,u.default(f),f.Visitor=c.default,f.default=f,e.default=f,t.exports=e.default},function(t,e){"use strict";e.default=function(t){return t&&t.__esModule?t:{default:t}},e.__esModule=!0},function(t,e,i){"use strict";var n=i(3).default,a=i(1).default;e.__esModule=!0;var r=n(i(4)),o=a(i(37)),s=a(i(6)),l=n(i(5)),c=n(i(38)),u=a(i(44));function d(){var t=new r.HandlebarsEnvironment;return l.extend(t,r),t.SafeString=o.default,t.Exception=s.default,t.Utils=l,t.escapeExpression=l.escapeExpression,t.VM=c,t.template=function(e){return c.template(e,t)},t}var h=d();h.create=d,u.default(h),h.default=h,e.default=h,t.exports=e.default},function(t,e){"use strict";e.default=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e},e.__esModule=!0},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0,e.HandlebarsEnvironment=d;var a=i(5),r=n(i(6)),o=i(10),s=i(30),l=n(i(32)),c=i(33);e.VERSION="4.7.6";e.COMPILER_REVISION=8;e.LAST_COMPATIBLE_COMPILER_REVISION=7;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function d(t,e,i){this.helpers=t||{},this.partials=e||{},this.decorators=i||{},o.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:l.default,log:l.default.log,registerHelper:function(t,e){if(a.toString.call(t)===u){if(e)throw new r.default("Arg not supported with multiple helpers");a.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(a.toString.call(t)===u)a.extend(this.partials,t);else{if(void 0===e)throw new r.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(a.toString.call(t)===u){if(e)throw new r.default("Arg not supported with multiple decorators");a.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var h=l.default.log;e.log=h,e.createFrame=a.createFrame,e.logger=l.default},function(t,e){"use strict";e.__esModule=!0,e.extend=o,e.indexOf=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}if(!a.test(t))return t;return t.replace(n,r)},e.isEmpty=function(t){return!t&&0!==t||!(!c(t)||0!==t.length)},e.createFrame=function(t){var e=o({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},n=/[&<>"'`=]/g,a=/[&<>"'`=]/;function r(t){return i[t]}function o(t){for(var e=1;e<arguments.length;e++)for(var i in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],i)&&(t[i]=arguments[e][i]);return t}var s=Object.prototype.toString;e.toString=s;var l=function(t){return"function"==typeof t};l(/x/)&&(e.isFunction=l=function(t){return"function"==typeof t&&"[object Function]"===s.call(t)}),e.isFunction=l;var c=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===s.call(t)};e.isArray=c},function(t,e,i){"use strict";var n=i(7).default;e.__esModule=!0;var a=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(t,e){var i=e&&e.loc,o=void 0,s=void 0,l=void 0,c=void 0;i&&(o=i.start.line,s=i.end.line,l=i.start.column,c=i.end.column,t+=" - "+o+":"+l);for(var u=Error.prototype.constructor.call(this,t),d=0;d<a.length;d++)this[a[d]]=u[a[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=o,this.endLineNumber=s,n?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(t){}}r.prototype=new Error,e.default=r,t.exports=e.default},function(t,e,i){t.exports={default:i(8),__esModule:!0}},function(t,e,i){var n=i(9);t.exports=function(t,e,i){return n.setDesc(t,e,i)}},function(t,e){var i=Object;t.exports={create:i.create,getProto:i.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:i.getOwnPropertyDescriptor,setDesc:i.defineProperty,setDescs:i.defineProperties,getKeys:i.keys,getNames:i.getOwnPropertyNames,getSymbols:i.getOwnPropertySymbols,each:[].forEach}},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0,e.registerDefaultHelpers=function(t){a.default(t),r.default(t),o.default(t),s.default(t),l.default(t),c.default(t),u.default(t)},e.moveHelperToHooks=function(t,e,i){t.helpers[e]&&(t.hooks[e]=t.helpers[e],i||delete t.helpers[e])};var a=n(i(11)),r=n(i(12)),o=n(i(25)),s=n(i(26)),l=n(i(27)),c=n(i(28)),u=n(i(29))},function(t,e,i){"use strict";e.__esModule=!0;var n=i(5);e.default=function(t){t.registerHelper("blockHelperMissing",(function(e,i){var a=i.inverse,r=i.fn;if(!0===e)return r(this);if(!1===e||null==e)return a(this);if(n.isArray(e))return e.length>0?(i.ids&&(i.ids=[i.name]),t.helpers.each(e,i)):a(this);if(i.data&&i.ids){var o=n.createFrame(i.data);o.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:o}}return r(e,i)}))},t.exports=e.default},function(t,e,i){(function(n){"use strict";var a=i(13).default,r=i(1).default;e.__esModule=!0;var o=i(5),s=r(i(6));e.default=function(t){t.registerHelper("each",(function(t,e){if(!e)throw new s.default("Must pass iterator to #each");var i,r=e.fn,l=e.inverse,c=0,u="",d=void 0,h=void 0;function f(e,i,n){d&&(d.key=e,d.index=i,d.first=0===i,d.last=!!n,h&&(d.contextPath=h+e)),u+=r(t[e],{data:d,blockParams:o.blockParams([t[e],e],[h+e,null])})}if(e.data&&e.ids&&(h=o.appendContextPath(e.data.contextPath,e.ids[0])+"."),o.isFunction(t)&&(t=t.call(this)),e.data&&(d=o.createFrame(e.data)),t&&"object"==typeof t)if(o.isArray(t))for(var p=t.length;c<p;c++)c in t&&f(c,c,c===t.length-1);else if(n.Symbol&&t[n.Symbol.iterator]){for(var m=[],g=t[n.Symbol.iterator](),v=g.next();!v.done;v=g.next())m.push(v.value);for(p=(t=m).length;c<p;c++)f(c,c,c===t.length-1)}else i=void 0,a(t).forEach((function(t){void 0!==i&&f(i,c-1),i=t,c++})),void 0!==i&&f(i,c-1,!0);return 0===c&&(u=l(this)),u}))},t.exports=e.default}).call(e,function(){return this}())},function(t,e,i){t.exports={default:i(14),__esModule:!0}},function(t,e,i){i(15),t.exports=i(21).Object.keys},function(t,e,i){var n=i(16);i(18)("keys",(function(t){return function(e){return t(n(e))}}))},function(t,e,i){var n=i(17);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,i){var n=i(19),a=i(21),r=i(24);t.exports=function(t,e){var i=(a.Object||{})[t]||Object[t],o={};o[t]=e(i),n(n.S+n.F*r((function(){i(1)})),"Object",o)}},function(t,e,i){var n=i(20),a=i(21),r=i(22),o=function(t,e,i){var s,l,c,u=t&o.F,d=t&o.G,h=t&o.S,f=t&o.P,p=t&o.B,m=t&o.W,g=d?a:a[e]||(a[e]={}),v=d?n:h?n[e]:(n[e]||{}).prototype;for(s in d&&(i=e),i)(l=!u&&v&&s in v)&&s in g||(c=l?v[s]:i[s],g[s]=d&&"function"!=typeof v[s]?i[s]:p&&l?r(c,n):m&&v[s]==c?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e.prototype=t.prototype,e}(c):f&&"function"==typeof c?r(Function.call,c):c,f&&((g.prototype||(g.prototype={}))[s]=c))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,t.exports=o},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(23);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,a){return t.call(e,i,n,a)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0;var a=n(i(6));e.default=function(t){t.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0;var a=i(5),r=n(i(6));e.default=function(t){t.registerHelper("if",(function(t,e){if(2!=arguments.length)throw new r.default("#if requires exactly one argument");return a.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||a.isEmpty(t)?e.inverse(this):e.fn(this)})),t.registerHelper("unless",(function(e,i){if(2!=arguments.length)throw new r.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:i.inverse,inverse:i.fn,hash:i.hash})}))},t.exports=e.default},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",(function(){for(var e=[void 0],i=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)e.push(arguments[n]);var a=1;null!=i.hash.level?a=i.hash.level:i.data&&null!=i.data.level&&(a=i.data.level),e[0]=a,t.log.apply(t,e)}))},t.exports=e.default},function(t,e){"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",(function(t,e,i){return t?i.lookupProperty(t,e):t}))},t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0;var a=i(5),r=n(i(6));e.default=function(t){t.registerHelper("with",(function(t,e){if(2!=arguments.length)throw new r.default("#with requires exactly one argument");a.isFunction(t)&&(t=t.call(this));var i=e.fn;if(a.isEmpty(t))return e.inverse(this);var n=e.data;return e.data&&e.ids&&((n=a.createFrame(e.data)).contextPath=a.appendContextPath(e.data.contextPath,e.ids[0])),i(t,{data:n,blockParams:a.blockParams([t],[n&&n.contextPath])})}))},t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0,e.registerDefaultDecorators=function(t){a.default(t)};var a=n(i(31))},function(t,e,i){"use strict";e.__esModule=!0;var n=i(5);e.default=function(t){t.registerDecorator("inline",(function(t,e,i,a){var r=t;return e.partials||(e.partials={},r=function(a,r){var o=i.partials;i.partials=n.extend({},o,e.partials);var s=t(a,r);return i.partials=o,s}),e.partials[a.args[0]]=a.fn,r}))},t.exports=e.default},function(t,e,i){"use strict";e.__esModule=!0;var n=i(5),a={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=n.indexOf(a.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=a.lookupLevel(t),"undefined"!=typeof console&&a.lookupLevel(a.level)<=t){var e=a.methodMap[t];console[e]||(e="log");for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];console[e].apply(console,n)}}};e.default=a,t.exports=e.default},function(t,e,i){"use strict";var n=i(34).default,a=i(13).default,r=i(3).default;e.__esModule=!0,e.createProtoAccessControl=function(t){var e=n(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var i=n(null);return i.__proto__=!1,{properties:{whitelist:o.createNewLookupObject(i,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:o.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,i){return c("function"==typeof t?e.methods:e.properties,i)},e.resetLoggedProperties=function(){a(l).forEach((function(t){delete l[t]}))};var o=i(36),s=r(i(32)),l=n(null);function c(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(function(t){!0!==l[t]&&(l[t]=!0,s.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(e),!1)}},function(t,e,i){t.exports={default:i(35),__esModule:!0}},function(t,e,i){var n=i(9);t.exports=function(t,e){return n.create(t,e)}},function(t,e,i){"use strict";var n=i(34).default;e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return a.extend.apply(void 0,[n(null)].concat(e))};var a=i(5)},function(t,e){"use strict";function i(t){this.string=t}e.__esModule=!0,i.prototype.toString=i.prototype.toHTML=function(){return""+this.string},e.default=i,t.exports=e.default},function(t,e,i){"use strict";var n=i(39).default,a=i(13).default,r=i(3).default,o=i(1).default;e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,i=c.COMPILER_REVISION;if(e>=c.LAST_COMPATIBLE_COMPILER_REVISION&&e<=c.COMPILER_REVISION)return;if(e<c.LAST_COMPATIBLE_COMPILER_REVISION){var n=c.REVISION_CHANGES[i],a=c.REVISION_CHANGES[e];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+a+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")},e.template=function(t,e){if(!e)throw new l.default("No environment passed to template");if(!t||!t.main)throw new l.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var i=t.compiler&&7===t.compiler[0];var r={strict:function(t,e,i){if(!t||!(e in t))throw new l.default('"'+e+'" not defined in '+t,{loc:i});return t[e]},lookupProperty:function(t,e){var i=t[e];return null==i||Object.prototype.hasOwnProperty.call(t,e)||h.resultIsAllowed(i,r.protoAccessControl,e)?i:void 0},lookup:function(t,e){for(var i=t.length,n=0;n<i;n++){if(null!=(t[n]&&r.lookupProperty(t[n],e)))return t[n][e]}},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:s.escapeExpression,invokePartial:function(i,n,a){a.hash&&(n=s.extend({},n,a.hash),a.ids&&(a.ids[0]=!0)),i=e.VM.resolvePartial.call(this,i,n,a);var r=s.extend({},a,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),o=e.VM.invokePartial.call(this,i,n,r);if(null==o&&e.compile&&(a.partials[a.name]=e.compile(i,t.compilerOptions,e),o=a.partials[a.name](n,r)),null!=o){if(a.indent){for(var c=o.split("\n"),u=0,d=c.length;u<d&&(c[u]||u+1!==d);u++)c[u]=a.indent+c[u];o=c.join("\n")}return o}throw new l.default("The partial "+a.name+" could not be compiled when running in runtime-only mode")},fn:function(e){var i=t[e];return i.decorator=t[e+"_d"],i},programs:[],program:function(t,e,i,n,a){var r=this.programs[t],o=this.fn(t);return e||a||n||i?r=f(this,t,o,e,i,n,a):r||(r=this.programs[t]=f(this,t,o)),r},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var i=t||e;return t&&e&&t!==e&&(i=s.extend({},e,t)),i},nullContext:n({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=i.data;o._setup(i),!i.partial&&t.useData&&(n=m(e,n));var a=void 0,s=t.useBlockParams?[]:void 0;function l(e){return""+t.main(r,e,r.helpers,r.partials,n,s,a)}return t.useDepths&&(a=i.depths?e!=i.depths[0]?[e].concat(i.depths):i.depths:[e]),(l=g(t.main,l,r,i.depths||[],n,s))(e,i)}return o.isTop=!0,o._setup=function(n){if(n.partial)r.protoAccessControl=n.protoAccessControl,r.helpers=n.helpers,r.partials=n.partials,r.decorators=n.decorators,r.hooks=n.hooks;else{var o=s.extend({},e.helpers,n.helpers);!function(t,e){a(t).forEach((function(i){var n=t[i];t[i]=function(t,e){var i=e.lookupProperty;return d.wrapHelper(t,(function(t){return s.extend({lookupProperty:i},t)}))}(n,e)}))}(o,r),r.helpers=o,t.usePartial&&(r.partials=r.mergeIfNeeded(n.partials,e.partials)),(t.usePartial||t.useDecorators)&&(r.decorators=s.extend({},e.decorators,n.decorators)),r.hooks={},r.protoAccessControl=h.createProtoAccessControl(n);var l=n.allowCallsToHelperMissing||i;u.moveHelperToHooks(r,"helperMissing",l),u.moveHelperToHooks(r,"blockHelperMissing",l)}},o._child=function(e,i,n,a){if(t.useBlockParams&&!n)throw new l.default("must pass block params");if(t.useDepths&&!a)throw new l.default("must pass parent depths");return f(r,e,t[e],i,0,n,a)},o},e.wrapProgram=f,e.resolvePartial=function(t,e,i){t?t.call||i.name||(i.name=t,t=i.partials[t]):t="@partial-block"===i.name?i.data["partial-block"]:i.partials[i.name];return t},e.invokePartial=function(t,e,i){var n=i.data&&i.data["partial-block"];i.partial=!0,i.ids&&(i.data.contextPath=i.ids[0]||i.data.contextPath);var a=void 0;i.fn&&i.fn!==p&&function(){i.data=c.createFrame(i.data);var t=i.fn;a=i.data["partial-block"]=function(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return i.data=c.createFrame(i.data),i.data["partial-block"]=n,t(e,i)},t.partials&&(i.partials=s.extend({},i.partials,t.partials))}();void 0===t&&a&&(t=a);if(void 0===t)throw new l.default("The partial "+i.name+" could not be found");if(t instanceof Function)return t(e,i)},e.noop=p;var s=r(i(5)),l=o(i(6)),c=i(4),u=i(10),d=i(43),h=i(33);function f(t,e,i,n,a,r,o){function s(e){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o;return!o||e==o[0]||e===t.nullContext&&null===o[0]||(s=[e].concat(o)),i(t,e,t.helpers,t.partials,a.data||n,r&&[a.blockParams].concat(r),s)}return(s=g(i,s,t,o,n,r)).program=e,s.depth=o?o.length:0,s.blockParams=a||0,s}function p(){return""}function m(t,e){return e&&"root"in e||((e=e?c.createFrame(e):{}).root=t),e}function g(t,e,i,n,a,r){if(t.decorator){var o={};e=t.decorator(e,o,i,n&&n[0],a,r,n),s.extend(e,o)}return e}},function(t,e,i){t.exports={default:i(40),__esModule:!0}},function(t,e,i){i(41),t.exports=i(21).Object.seal},function(t,e,i){var n=i(42);i(18)("seal",(function(t){return function(e){return t&&n(e)?t(e):e}}))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){"use strict";e.__esModule=!0,e.wrapHelper=function(t,e){if("function"!=typeof t)return t;return function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)}}},function(t,e){(function(i){"use strict";e.__esModule=!0,e.default=function(t){var e=void 0!==i?i:window,n=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=n),t}},t.exports=e.default}).call(e,function(){return this}())},function(t,e){"use strict";e.__esModule=!0;var i={helpers:{helperExpression:function(t){return"SubExpression"===t.type||("MustacheStatement"===t.type||"BlockStatement"===t.type)&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return 1===t.parts.length&&!i.helpers.scopedId(t)&&!t.depth}}};e.default=i,t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default,a=i(3).default;e.__esModule=!0,e.parseWithoutProcessing=u,e.parse=function(t,e){var i=u(t,e);return new o.default(e).accept(i)};var r=n(i(47)),o=n(i(48)),s=a(i(50)),l=i(5);e.parser=r.default;var c={};function u(t,e){return"Program"===t.type?t:(r.default.yy=c,c.locInfo=function(t){return new c.SourceLocation(e&&e.srcName,t)},r.default.parse(t))}l.extend(c,s)},function(t,e){"use strict";e.__esModule=!0;var i=function(){var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(t,e,i,n,a,r,o){var s=r.length-1;switch(a){case 1:return r[s-1];case 2:this.$=n.prepareProgram(r[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=r[s];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(r[s]),strip:n.stripFlags(r[s],r[s]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:r[s],value:r[s],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(r[s-2],r[s-1],r[s],this._$);break;case 12:this.$={path:r[s-3],params:r[s-2],hash:r[s-1]};break;case 13:this.$=n.prepareBlock(r[s-3],r[s-2],r[s-1],r[s],!1,this._$);break;case 14:this.$=n.prepareBlock(r[s-3],r[s-2],r[s-1],r[s],!0,this._$);break;case 15:this.$={open:r[s-5],path:r[s-4],params:r[s-3],hash:r[s-2],blockParams:r[s-1],strip:n.stripFlags(r[s-5],r[s])};break;case 16:case 17:this.$={path:r[s-4],params:r[s-3],hash:r[s-2],blockParams:r[s-1],strip:n.stripFlags(r[s-5],r[s])};break;case 18:this.$={strip:n.stripFlags(r[s-1],r[s-1]),program:r[s]};break;case 19:var l=n.prepareBlock(r[s-2],r[s-1],r[s],r[s],!1,this._$),c=n.prepareProgram([l],r[s-1].loc);c.chained=!0,this.$={strip:r[s-2].strip,program:c,chain:!0};break;case 20:this.$=r[s];break;case 21:this.$={path:r[s-1],strip:n.stripFlags(r[s-2],r[s])};break;case 22:case 23:this.$=n.prepareMustache(r[s-3],r[s-2],r[s-1],r[s-4],n.stripFlags(r[s-4],r[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:r[s-3],params:r[s-2],hash:r[s-1],indent:"",strip:n.stripFlags(r[s-4],r[s]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(r[s-2],r[s-1],r[s],this._$);break;case 26:this.$={path:r[s-3],params:r[s-2],hash:r[s-1],strip:n.stripFlags(r[s-4],r[s])};break;case 27:case 28:this.$=r[s];break;case 29:this.$={type:"SubExpression",path:r[s-3],params:r[s-2],hash:r[s-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:r[s],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(r[s-2]),value:r[s],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(r[s-1]);break;case 33:case 34:this.$=r[s];break;case 35:this.$={type:"StringLiteral",value:r[s],original:r[s],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(r[s]),original:Number(r[s]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===r[s],original:"true"===r[s],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 40:case 41:this.$=r[s];break;case 42:this.$=n.preparePath(!0,r[s],this._$);break;case 43:this.$=n.preparePath(!1,r[s],this._$);break;case 44:r[s-2].push({part:n.id(r[s]),original:r[s],separator:r[s-1]}),this.$=r[s-2];break;case 45:this.$=[{part:n.id(r[s]),original:r[s]}];break;case 46:this.$=[];break;case 47:r[s-1].push(r[s]);break;case 48:this.$=[];break;case 49:r[s-1].push(r[s]);break;case 50:this.$=[];break;case 51:r[s-1].push(r[s]);break;case 58:this.$=[];break;case 59:r[s-1].push(r[s]);break;case 64:this.$=[];break;case 65:r[s-1].push(r[s]);break;case 70:this.$=[];break;case 71:r[s-1].push(r[s]);break;case 78:this.$=[];break;case 79:r[s-1].push(r[s]);break;case 82:this.$=[];break;case 83:r[s-1].push(r[s]);break;case 86:this.$=[];break;case 87:r[s-1].push(r[s]);break;case 90:this.$=[];break;case 91:r[s-1].push(r[s]);break;case 94:this.$=[];break;case 95:r[s-1].push(r[s]);break;case 98:this.$=[r[s]];break;case 99:r[s-1].push(r[s]);break;case 100:this.$=[r[s]];break;case 101:r[s-1].push(r[s])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,i=[0],n=[null],a=[],r=this.table,o="",s=0,l=0,c=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;a.push(u);var d=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,f,p,m,g,v,y,b,_,x,w={};;){if(p=i[i.length-1],this.defaultActions[p]?m=this.defaultActions[p]:(null==h&&(x=void 0,"number"!=typeof(x=e.lexer.lex()||1)&&(x=e.symbols_[x]||x),h=x),m=r[p]&&r[p][h]),void 0===m||!m.length||!m[0]){var k="";if(!c){for(v in _=[],r[p])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:u,expected:_})}}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+h);switch(m[0]){case 1:i.push(h),n.push(this.lexer.yytext),a.push(this.lexer.yylloc),i.push(m[1]),h=null,f?(h=f,f=null):(l=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,u=this.lexer.yylloc,c>0&&c--);break;case 2:if(y=this.productions_[m[1]][1],w.$=n[n.length-y],w._$={first_line:a[a.length-(y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(y||1)].first_column,last_column:a[a.length-1].last_column},d&&(w._$.range=[a[a.length-(y||1)].range[0],a[a.length-1].range[1]]),void 0!==(g=this.performAction.call(w,o,l,s,this.yy,m[1],n,a)))return g;y&&(i=i.slice(0,-1*y*2),n=n.slice(0,-1*y),a=a.slice(0,-1*y)),i.push(this.productions_[m[1]][0]),n.push(w.$),a.push(w._$),b=r[i[i.length-2]][i[i.length-1]],i.push(b);break;case 3:return!0}}return!0}},e=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,i,n,a;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length&&(!(i=this._input.match(this.rules[r[o]]))||e&&!(i[0].length>e[0].length)||(e=i,n=o,this.options.flex));o++);return e?((a=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,r[n],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,i,n){function a(t,i){return e.yytext=e.yytext.substring(t,e.yyleng-i+t)}switch(i){case 0:if("\\\\"===e.yytext.slice(-2)?(a(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(a(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(a(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return e.yytext=a(1,2).replace(/\\"/g,'"'),80;case 32:return e.yytext=a(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return t}();function i(){this.yy={}}return t.lexer=e,i.prototype=t,t.Parser=i,new i}();e.default=i,t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0;var a=n(i(49));function r(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=t}function o(t,e,i){void 0===e&&(e=t.length);var n=t[e-1],a=t[e-2];return n?"ContentStatement"===n.type?(a||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:i}function s(t,e,i){void 0===e&&(e=-1);var n=t[e+1],a=t[e+2];return n?"ContentStatement"===n.type?(a||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:i}function l(t,e,i){var n=t[null==e?0:e+1];if(n&&"ContentStatement"===n.type&&(i||!n.rightStripped)){var a=n.value;n.value=n.value.replace(i?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==a}}function c(t,e,i){var n=t[null==e?t.length-1:e-1];if(n&&"ContentStatement"===n.type&&(i||!n.leftStripped)){var a=n.value;return n.value=n.value.replace(i?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==a,n.leftStripped}}r.prototype=new a.default,r.prototype.Program=function(t){var e=!this.options.ignoreStandalone,i=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,a=0,r=n.length;a<r;a++){var u=n[a],d=this.accept(u);if(d){var h=o(n,a,i),f=s(n,a,i),p=d.openStandalone&&h,m=d.closeStandalone&&f,g=d.inlineStandalone&&h&&f;d.close&&l(n,a,!0),d.open&&c(n,a,!0),e&&g&&(l(n,a),c(n,a)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(n[a-1].original)[1])),e&&p&&(l((u.program||u.inverse).body),c(n,a)),e&&m&&(l(n,a),c((u.inverse||u.program).body))}}return t},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,i=t.program&&t.inverse,n=i,a=i;if(i&&i.chained)for(n=i.body[0].program;a.chained;)a=a.body[a.body.length-1].program;var r={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:s(e.body),closeStandalone:o((n||e).body)};if(t.openStrip.close&&l(e.body,null,!0),i){var u=t.inverseStrip;u.open&&c(e.body,null,!0),u.close&&l(n.body,null,!0),t.closeStrip.open&&c(a.body,null,!0),!this.options.ignoreStandalone&&o(e.body)&&s(n.body)&&(c(e.body),l(n.body))}else t.closeStrip.open&&c(e.body,null,!0);return r},r.prototype.Decorator=r.prototype.MustacheStatement=function(t){return t.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}},e.default=r,t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0;var a=n(i(6));function r(){this.parents=[]}function o(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function s(t){o.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function l(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}r.prototype={constructor:r,mutating:!1,acceptKey:function(t,e){var i=this.accept(t[e]);if(this.mutating){if(i&&!r.prototype[i.type])throw new a.default('Unexpected node type "'+i.type+'" found when accepting '+e+" on "+t.type);t[e]=i}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new a.default(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,i=t.length;e<i;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,i--)},accept:function(t){if(t){if(!this[t.type])throw new a.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);return this.current=this.parents.shift(),!this.mutating||e?e:!1!==e?t:void 0}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:o,Decorator:o,BlockStatement:s,DecoratorBlock:s,PartialStatement:l,PartialBlockStatement:function(t){l.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:o,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},e.default=r,t.exports=e.default},function(t,e,i){"use strict";var n=i(1).default;e.__esModule=!0,e.SourceLocation=function(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}},e.id=function(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t},e.stripFlags=function(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}},e.stripComment=function(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},e.preparePath=function(t,e,i){i=this.locInfo(i);for(var n=t?"@":"",r=[],o=0,s=0,l=e.length;s<l;s++){var c=e[s].part,u=e[s].original!==c;if(n+=(e[s].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)r.push(c);else{if(r.length>0)throw new a.default("Invalid path: "+n,{loc:i});".."===c&&o++}}return{type:"PathExpression",data:t,depth:o,parts:r,original:n,loc:i}},e.prepareMustache=function(t,e,i,n,a,r){var o=n.charAt(3)||n.charAt(2),s="{"!==o&&"&"!==o;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:t,params:e,hash:i,escaped:s,strip:a,loc:this.locInfo(r)}},e.prepareRawBlock=function(t,e,i,n){r(t,i),n=this.locInfo(n);var a={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},e.prepareBlock=function(t,e,i,n,o,s){n&&n.path&&r(t,n);var l=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,u=void 0;if(i){if(l)throw new a.default("Unexpected inverse block on decorator",i);i.chain&&(i.program.body[0].closeStrip=n.strip),u=i.strip,c=i.program}o&&(o=c,c=e,e=o);return{type:l?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:u,closeStrip:n&&n.strip,loc:this.locInfo(s)}},e.prepareProgram=function(t,e){if(!e&&t.length){var i=t[0].loc,n=t[t.length-1].loc;i&&n&&(e={source:i.source,start:{line:i.start.line,column:i.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}},e.preparePartialBlock=function(t,e,i,n){return r(t,i),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:i&&i.strip,loc:this.locInfo(n)}};var a=n(i(6));function r(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var i={loc:t.path.loc};throw new a.default(t.path.original+" doesn't match "+e,i)}}},function(t,e,i){"use strict";var n=i(34).default,a=i(1).default;e.__esModule=!0,e.Compiler=c,e.precompile=function(t,e,i){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0);e.compat&&(e.useDepths=!0);var n=i.parse(t,e),a=(new i.Compiler).compile(n,e);return(new i.JavaScriptCompiler).compile(a,e)},e.compile=function(t,e,i){void 0===e&&(e={});if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new r.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=o.extend({},e))||(e.data=!0);e.compat&&(e.useDepths=!0);var n=void 0;function a(){var n=i.parse(t,e),a=(new i.Compiler).compile(n,e),r=(new i.JavaScriptCompiler).compile(a,e,void 0,!0);return i.template(r)}function s(t,e){return n||(n=a()),n.call(this,t,e)}return s._setup=function(t){return n||(n=a()),n._setup(t)},s._child=function(t,e,i,r){return n||(n=a()),n._child(t,e,i,r)},s};var r=a(i(6)),o=i(5),s=a(i(45)),l=[].slice;function c(){}function u(t,e){if(t===e)return!0;if(o.isArray(t)&&o.isArray(e)&&t.length===e.length){for(var i=0;i<t.length;i++)if(!u(t[i],e[i]))return!1;return!0}}function d(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}c.prototype={compiler:c,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return!1;for(var i=0;i<e;i++){var n=this.opcodes[i],a=t.opcodes[i];if(n.opcode!==a.opcode||!u(n.args,a.args))return!1}e=this.children.length;for(i=0;i<e;i++)if(!this.children[i].equals(t.children[i]))return!1;return!0},guid:0,compile:function(t,e){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=e,this.stringParams=e.stringParams,this.trackIds=e.trackIds,e.blockParams=e.blockParams||[],e.knownHelpers=o.extend(n(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},e.knownHelpers),this.accept(t)},compileProgram:function(t){var e=(new this.compiler).compile(t,this.options),i=this.guid++;return this.usePartial=this.usePartial||e.usePartial,this.children[i]=e,this.useDepths=this.useDepths||e.useDepths,i},accept:function(t){if(!this[t.type])throw new r.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var e=this[t.type](t);return this.sourceNode.shift(),e},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var e=t.body,i=e.length,n=0;n<i;n++)this.accept(e[n]);return this.options.blockParams.shift(),this.isSimple=1===i,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){d(t);var e=t.program,i=t.inverse;e=e&&this.compileProgram(e),i=i&&this.compileProgram(i);var n=this.classifySexpr(t);"helper"===n?this.helperSexpr(t,e,i):"simple"===n?(this.simpleSexpr(t),this.opcode("pushProgram",e),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,e,i),this.opcode("pushProgram",e),this.opcode("pushProgram",i),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var e=t.program&&this.compileProgram(t.program),i=this.setupFullMustacheParams(t,e,void 0),n=t.path;this.useDecorators=!0,this.opcode("registerDecorator",i.length,n.original)},PartialStatement:function(t){this.usePartial=!0;var e=t.program;e&&(e=this.compileProgram(t.program));var i=t.params;if(i.length>1)throw new r.default("Unsupported number of partial arguments: "+i.length,t);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var n=t.name.original,a="SubExpression"===t.name.type;a&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0);var o=t.indent||"";this.options.preventIndent&&o&&(this.opcode("appendContent",o),o=""),this.opcode("invokePartial",a,n,o),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){d(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,i){var n=t.path,a=n.parts[0],r=null!=e||null!=i;this.opcode("getContext",n.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",i),n.strict=!0,this.accept(n),this.opcode("invokeAmbiguous",a,r)},simpleSexpr:function(t){var e=t.path;e.strict=!0,this.accept(e),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,i){var n=this.setupFullMustacheParams(t,e,i),a=t.path,o=a.parts[0];if(this.options.knownHelpers[o])this.opcode("invokeKnownHelper",n.length,o);else{if(this.options.knownHelpersOnly)throw new r.default("You specified knownHelpersOnly, but used the unknown helper "+o,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",n.length,a.original,s.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],i=s.default.helpers.scopedId(t),n=!t.depth&&!i&&this.blockParamIndex(e);n?this.opcode("lookupBlockParam",n,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,i):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,i=0,n=e.length;for(this.opcode("pushHash");i<n;i++)this.pushParam(e[i].value);for(;i--;)this.opcode("assignToHash",e[i].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var e=s.default.helpers.simpleId(t.path),i=e&&!!this.blockParamIndex(t.path.parts[0]),n=!i&&s.default.helpers.helperExpression(t),a=!i&&(n||e);if(a&&!n){var r=t.path.parts[0],o=this.options;o.knownHelpers[r]?n=!0:o.knownHelpersOnly&&(a=!1)}return n?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var e=0,i=t.length;e<i;e++)this.pushParam(t[e])},pushParam:function(t){var e=null!=t.value?t.value:t.original||"";if(this.stringParams)e.replace&&(e=e.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",e,t.type),"SubExpression"===t.type&&this.accept(t);else{if(this.trackIds){var i=void 0;if(!t.parts||s.default.helpers.scopedId(t)||t.depth||(i=this.blockParamIndex(t.parts[0])),i){var n=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",i,n)}else(e=t.original||e).replace&&(e=e.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,e)}this.accept(t)}},setupFullMustacheParams:function(t,e,i,n){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",e),this.opcode("pushProgram",i),t.hash?this.accept(t.hash):this.opcode("emptyHash",n),a},blockParamIndex:function(t){for(var e=0,i=this.options.blockParams.length;e<i;e++){var n=this.options.blockParams[e],a=n&&o.indexOf(n,t);if(n&&a>=0)return[e,a]}}}},function(t,e,i){"use strict";var n=i(13).default,a=i(1).default;e.__esModule=!0;var r=i(4),o=a(i(6)),s=i(5),l=a(i(53));function c(t){this.value=t}function u(){}u.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),'(depths, "',t,'")']},compilerInfo:function(){var t=r.COMPILER_REVISION;return[t,r.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,i){return s.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:i?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,i,n){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var a=t.opcodes,r=void 0,s=void 0,l=void 0,c=void 0;for(l=0,c=a.length;l<c;l++)r=a[l],this.source.currentLocation=r.loc,s=s||r.loc,this[r.opcode].apply(this,r.args);if(this.source.currentLocation=s,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(n);if(this.isChild)return u;var d={compiler:this.compilerInfo(),main:u};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var h=this.context,f=h.programs,p=h.decorators;for(l=0,c=f.length;l<c;l++)f[l]&&(d[l]=f[l],p[l]&&(d[l+"_d"]=p[l],d.useDecorators=!0));return this.environment.usePartial&&(d.usePartial=!0),this.options.data&&(d.useData=!0),this.useDepths&&(d.useDepths=!0),this.useBlockParams&&(d.useBlockParams=!0),this.options.compat&&(d.compat=!0),n?d.compilerOptions=this.options:(d.compiler=JSON.stringify(d.compiler),this.source.currentLocation={start:{line:1,column:0}},d=this.objectLiteral(d),e.srcName?(d=d.toStringWithSourceMap({file:e.destName})).map=d.map&&d.map.toString():d=d.toString()),d},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(t){var e=this,i="",a=this.stackVars.concat(this.registers.list);a.length>0&&(i+=", "+a.join(", "));var r=0;n(this.aliases).forEach((function(t){var n=e.aliases[t];n.children&&n.referenceCount>1&&(i+=", alias"+ ++r+"="+t,n.children[0]="alias"+r)})),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var s=this.mergeSource(i);return t?(o.push(s),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),") {\n  ",s,"}"])},mergeSource:function(t){var e=this.environment.isSimple,i=!this.forceBuffer,n=void 0,a=void 0,r=void 0,o=void 0;return this.source.each((function(t){t.appendToBuffer?(r?t.prepend("  + "):r=t,o=t):(r&&(a?r.prepend("buffer += "):n=!0,o.add(";"),r=o=void 0),a=!0,e||(i=!1))})),i?r?(r.prepend("return "),o.add(";")):a||this.source.push('return "";'):(t+=", buffer = "+(n?"":this.initializeBuffer()),r?(r.prepend("return buffer + "),o.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n      lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    }\n    ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(t,0,i);var n=this.popStack();i.splice(1,0,n),this.push(this.source.functionCall(e,"call",i))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var i=this.topStack();e.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack((function(t){return[" != null ? ",t,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,i,n){var a=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[a++])),this.resolvePath("context",t,a,e,i)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,i){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,i)},resolvePath:function(t,e,i,n,a){var r=this;if(this.options.strict||this.options.assumeObjects)this.push(function(t,e,i,n){var a=e.popStack(),r=0,o=i.length;t&&o--;for(;r<o;r++)a=e.nameLookup(a,i[r],n);return t?[e.aliasable("container.strict"),"(",a,", ",e.quotedString(i[r]),", ",JSON.stringify(e.source.currentLocation)," )"]:a}(this.options.strict&&a,this,e,t));else for(var o=e.length;i<o;i++)this.replaceStack((function(a){var o=r.nameLookup(a,e[i],t);return n?[" && ",o]:[" != null ? ",o," : ",a]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,e){this.pushContext(),this.pushString(e),"SubExpression"!==e&&("string"==typeof t?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){null!=t?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,e){var i=this.nameLookup("decorators",e,"decorator"),n=this.setupHelperArgs(e,t);this.decorators.push(["fn = ",this.decorators.functionCall(i,"",["fn","props","container",n])," || fn;"])},invokeHelper:function(t,e,i){var n=this.popStack(),a=this.setupHelper(t,e),r=[];i&&r.push(a.name),r.push(n),this.options.strict||r.push(this.aliasable("container.hooks.helperMissing"));var o=["(",this.itemsSeparatedBy(r,"||"),")"],s=this.source.functionCall(o,"call",a.callParams);this.push(s)},itemsSeparatedBy:function(t,e){var i=[];i.push(t[0]);for(var n=1;n<t.length;n++)i.push(e,t[n]);return i},invokeKnownHelper:function(t,e){var i=this.setupHelper(t,e);this.push(this.source.functionCall(i.name,"call",i.callParams))},invokeAmbiguous:function(t,e){this.useRegister("helper");var i=this.popStack();this.emptyHash();var n=this.setupHelper(0,t,e),a=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",t,"helper")," || ",i,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",n.callParams)," : helper))"])},invokePartial:function(t,e,i){var n=[],a=this.setupParams(e,1,n);t&&(e=this.popStack(),delete a.name),i&&(a.indent=JSON.stringify(i)),a.helpers="helpers",a.partials="partials",a.decorators="container.decorators",t?n.unshift(e):n.unshift(this.nameLookup("partials",e,"partial")),this.options.compat&&(a.depths="depths"),a=this.objectLiteral(a),n.push(a),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(t){var e=this.popStack(),i=void 0,n=void 0,a=void 0;this.trackIds&&(a=this.popStack()),this.stringParams&&(n=this.popStack(),i=this.popStack());var r=this.hash;i&&(r.contexts[t]=i),n&&(r.types[t]=n),a&&(r.ids[t]=a),r.values[t]=e},pushId:function(t,e,i){"BlockParam"===t?this.pushStackLiteral("blockParams["+e[0]+"].path["+e[1]+"]"+(i?" + "+JSON.stringify("."+i):"")):"PathExpression"===t?this.pushString(e):"SubExpression"===t?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(t,e){for(var i=t.children,n=void 0,a=void 0,r=0,o=i.length;r<o;r++){n=i[r],a=new this.compiler;var s=this.matchExistingProgram(n);if(null==s){this.context.programs.push("");var l=this.context.programs.length;n.index=l,n.name="program"+l,this.context.programs[l]=a.compile(n,e,this.context,!this.precompile),this.context.decorators[l]=a.decorators,this.context.environments[l]=n,this.useDepths=this.useDepths||a.useDepths,this.useBlockParams=this.useBlockParams||a.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams}else n.index=s.index,n.name="program"+s.index,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams}},matchExistingProgram:function(t){for(var e=0,i=this.context.environments.length;e<i;e++){var n=this.context.environments[e];if(n&&n.equals(t))return n}},programExpression:function(t){var e=this.environment.children[t],i=[e.index,"data",e.blockParams];return(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths"),"container.program("+i.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof c||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new c(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var e=["("],i=void 0,n=void 0,a=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var r=this.popStack(!0);if(r instanceof c)e=["(",i=[r.value]],a=!0;else{n=!0;var s=this.incrStack();e=["((",this.push(s)," = ",r,")"],i=this.topStack()}var l=t.call(this,i);a||this.popStack(),n&&this.stackSlot--,this.push(e.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,i=t.length;e<i;e++){var n=t[e];if(n instanceof c)this.compileStack.push(n);else{var a=this.incrStack();this.pushSource([a," = ",n,";"]),this.compileStack.push(a)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var e=this.isInline(),i=(e?this.inlineStack:this.compileStack).pop();if(!t&&i instanceof c)return i.value;if(!e){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return i},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,e=t[t.length-1];return e instanceof c?e.value:e},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var e=this.aliases[t];return e?(e.referenceCount++,e):((e=this.aliases[t]=this.source.wrap(t)).aliasable=!0,e.referenceCount=1,e)},setupHelper:function(t,e,i){var n=[];return{params:n,paramsInit:this.setupHelperArgs(e,t,n,i),name:this.nameLookup("helpers",e,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(t,e,i){var n={},a=[],r=[],o=[],s=!i,l=void 0;s&&(i=[]),n.name=this.quotedString(t),n.hash=this.popStack(),this.trackIds&&(n.hashIds=this.popStack()),this.stringParams&&(n.hashTypes=this.popStack(),n.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(n.fn=u||"container.noop",n.inverse=c||"container.noop");for(var d=e;d--;)l=this.popStack(),i[d]=l,this.trackIds&&(o[d]=this.popStack()),this.stringParams&&(r[d]=this.popStack(),a[d]=this.popStack());return s&&(n.args=this.source.generateArray(i)),this.trackIds&&(n.ids=this.source.generateArray(o)),this.stringParams&&(n.types=this.source.generateArray(r),n.contexts=this.source.generateArray(a)),this.options.data&&(n.data="data"),this.useBlockParams&&(n.blockParams="blockParams"),n},setupHelperArgs:function(t,e,i,n){var a=this.setupParams(t,e,i);return a.loc=JSON.stringify(this.source.currentLocation),a=this.objectLiteral(a),n?(this.useRegister("options"),i.push("options"),["options=",a]):i?(i.push(a),""):a}},function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),e=u.RESERVED_WORDS={},i=0,n=t.length;i<n;i++)e[t[i]]=!0}(),u.isValidJavaScriptVariableName=function(t){return!u.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)},e.default=u,t.exports=e.default},function(t,e,i){"use strict";var n=i(13).default;e.__esModule=!0;var a=i(5),r=void 0;try{}catch(t){}function o(t,e,i){if(a.isArray(t)){for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.wrap(t[r],i));return n}return"boolean"==typeof t||"number"==typeof t?t+"":t}function s(t){this.srcFile=t,this.source=[]}r||((r=function(t,e,i,n){this.src="",n&&this.add(n)}).prototype={add:function(t){a.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){a.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),s.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,e){this.source.unshift(this.wrap(t,e))},push:function(t,e){this.source.push(this.wrap(t,e))},merge:function(){var t=this.empty();return this.each((function(e){t.add(["  ",e,"\n"])})),t},each:function(t){for(var e=0,i=this.source.length;e<i;e++)t(this.source[e])},empty:function(){var t=this.currentLocation||{start:{}};return new r(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var e=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return t instanceof r?t:(t=o(t,this,e),new r(e.start.line,e.start.column,this.srcFile,t))},functionCall:function(t,e,i){return i=this.generateList(i),this.wrap([t,e?"."+e+"(":"(",i,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var e=this,i=[];n(t).forEach((function(n){var a=o(t[n],e);"undefined"!==a&&i.push([e.quotedString(n),":",a])}));var a=this.generateList(i);return a.prepend("{"),a.add("}"),a},generateList:function(t){for(var e=this.empty(),i=0,n=t.length;i<n;i++)i&&e.add(","),e.add(o(t[i],this));return e},generateArray:function(t){var e=this.generateList(t);return e.prepend("["),e.add("]"),e}},e.default=s,t.exports=e.default}])})),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],e);else{var i="object"==typeof exports?e(require("jquery")):e(t.jQuery);for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(window,(function(__WEBPACK_EXTERNAL_MODULE__8__){return modules=[function(t){t.exports=JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"CONTROL":17,"KEY_229":229}')},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(9);var n=i(10),a=m(i(12)),r=m(i(13)),o=i(17),s=i(3),l=i(2),c=i(4),u=i(5),d=i(11),h=m(i(18)),f=m(i(19));function p(t){return(p="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)}function m(t){return t&&t.__esModule?t:{default:t}}var g=r.default.document,v="_inputmask_opts";function y(t,e,i){if(!(this instanceof y))return new y(t,e,i);this.dependencyLib=a.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==i&&("[object Object]"===Object.prototype.toString.call(t)?e=t:(e=e||{},t&&(e.alias=t)),this.opts=a.default.extend(!0,{},this.defaults,e),this.noMasksCache=e&&void 0!==e.definitions,this.userOptions=e||{},b(this.opts.alias,e,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipKeyPressEvent=!1,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.originalPlaceholder=void 0,this.isComposing=!1}function b(t,e,i){var n=y.prototype.aliases[t];return n?(n.alias&&b(n.alias,void 0,i),a.default.extend(!0,i,n),a.default.extend(!0,i,e),!0):(null===i.mask&&(i.mask=t),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:f.default,definitions:h.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(t){var e=this;return"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:t).forEach((function(t,i){var s=a.default.extend(!0,{},e.opts);if(function(t,e,i,n){function o(e,a){var o=""===n?e:n+"-"+e;null!==(a=void 0!==a?a:t.getAttribute(o))&&("string"==typeof a&&(0===e.indexOf("on")?a=r.default[a]:"false"===a?a=!1:"true"===a&&(a=!0)),i[e]=a)}if(!0===e.importDataAttributes){var s,l,c,u,d=t.getAttribute(n);if(d&&""!==d&&(d=d.replace(/'/g,'"'),l=JSON.parse("{"+d+"}")),l)for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}for(s in o("alias",c),i.alias&&b(i.alias,i,e),e){if(l)for(u in c=void 0,l)if(u.toLowerCase()===s.toLowerCase()){c=l[u];break}o(s,c)}}return a.default.extend(!0,e,i),"rtl"!==t.dir&&!e.rightAlign||(t.style.textAlign="right"),"rtl"!==t.dir&&!e.numericInput||(t.dir="ltr",t.removeAttribute("dir"),e.isRTL=!0),Object.keys(i).length}(t,s,a.default.extend(!0,{},e.userOptions),e.dataAttribute)){var l=(0,o.generateMaskSet)(s,e.noMasksCache);void 0!==l&&(void 0!==t.inputmask&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new y(void 0,void 0,!0),t.inputmask.opts=s,t.inputmask.noMasksCache=e.noMasksCache,t.inputmask.userOptions=a.default.extend(!0,{},e.userOptions),t.inputmask.el=t,t.inputmask.$el=(0,a.default)(t),t.inputmask.maskset=l,a.default.data(t,v,e.userOptions),n.mask.call(t.inputmask))}})),t&&t[0]&&t[0].inputmask||this},option:function(t,e){return"string"==typeof t?this.opts[t]:"object"===p(t)?(a.default.extend(this.userOptions,t),this.el&&!0!==e&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){if(this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==t){var e=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");u.checkVal.call(this,void 0,!1,!1,e),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,l.getBuffer.call(this),0,this.opts)}return u.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){a.default.data(this.el,v,null);var t=this.opts.autoUnmask?(0,u.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);t!==l.getBufferTemplate.call(this).join("")?this._valueSet(t,this.opts.autoUnmask):this._valueSet(""),d.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):g.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),l.getBufferTemplate.call(this).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),c.isComplete.call(this,l.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var t=s.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(e){return e.mask!==t||(t=e,!1)})),t}return this.maskset.metadata},isValid:function(t){if(this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),t){var e=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");u.checkVal.call(this,void 0,!0,!1,e)}else t=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");for(var i=l.getBuffer.call(this),n=l.determineLastRequiredPosition.call(this),a=i.length-1;n<a&&!l.isMask.call(this,a);a--);return i.splice(n,a+1-n),c.isComplete.call(this,i)&&t===(this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join(""))},format:function(t,e){this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache);var i=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");u.checkVal.call(this,void 0,!0,!1,i);var n=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");return e?{value:n,metadata:this.getmetadata()}:n},setValue:function(t){this.el&&(0,a.default)(this.el).trigger("setvalue",[t])},analyseMask:o.analyseMask},y.extendDefaults=function(t){a.default.extend(!0,y.prototype.defaults,t)},y.extendDefinitions=function(t){a.default.extend(!0,y.prototype.definitions,t)},y.extendAliases=function(t){a.default.extend(!0,y.prototype.aliases,t)},y.format=function(t,e,i){return y(e).format(t,i)},y.unmask=function(t,e){return y(e).unmaskedvalue(t)},y.isValid=function(t,e){return y(e).isValid(t)},y.remove=function(t){"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:t).forEach((function(t){t.inputmask&&t.inputmask.remove()}))},y.setValue=function(t,e){"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:t).forEach((function(t){t.inputmask?t.inputmask.setValue(e):(0,a.default)(t).trigger("setvalue",[e])}))},y.dependencyLib=a.default,r.default.Inputmask=y;var _=y;e.default=_},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.caret=function(t,e,i,n,a){var r,o=this.opts;if(void 0===e)return"selectionStart"in t&&"selectionEnd"in t?(e=t.selectionStart,i=t.selectionEnd):window.getSelection?(r=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==t&&r.commonAncestorContainer!==t||(e=r.startOffset,i=r.endOffset):document.selection&&document.selection.createRange&&(r=document.selection.createRange(),e=0-r.duplicate().moveStart("character",-t.inputmask._valueGet().length),i=e+r.text.length),{begin:n?e:c.call(this,e),end:n?i:c.call(this,i)};if(Array.isArray(e)&&(i=this.isRTL?e[0]:e[1],e=this.isRTL?e[1]:e[0]),void 0!==e.begin&&(i=this.isRTL?e.begin:e.end,e=this.isRTL?e.end:e.begin),"number"==typeof e){e=n?e:c.call(this,e),i="number"==typeof(i=n?i:c.call(this,i))?i:e;var s=parseInt(((t.ownerDocument.defaultView||window).getComputedStyle?(t.ownerDocument.defaultView||window).getComputedStyle(t,null):t.currentStyle).fontSize)*i;if(t.scrollLeft=s>t.scrollWidth?s:0,t.inputmask.caretPos={begin:e,end:i},o.insertModeVisual&&!1===o.insertMode&&e===i&&(a||i++),t===(t.inputmask.shadowRoot||document).activeElement)if("setSelectionRange"in t)t.setSelectionRange(e,i);else if(window.getSelection){if(r=document.createRange(),void 0===t.firstChild||null===t.firstChild){var l=document.createTextNode("");t.appendChild(l)}r.setStart(t.firstChild,e<t.inputmask._valueGet().length?e:t.inputmask._valueGet().length),r.setEnd(t.firstChild,i<t.inputmask._valueGet().length?i:t.inputmask._valueGet().length),r.collapse(!0);var u=window.getSelection();u.removeAllRanges(),u.addRange(r)}else t.createTextRange&&((r=t.createTextRange()).collapse(!0),r.moveEnd("character",i),r.moveStart("character",e),r.select())}},e.determineLastRequiredPosition=function(t){var e,i,r=this.maskset,s=this.dependencyLib,l=n.getMaskTemplate.call(this,!0,o.call(this),!0,!0),c=l.length,u=o.call(this),d={},h=r.validPositions[u],f=void 0!==h?h.locator.slice():void 0;for(e=u+1;e<l.length;e++)i=n.getTestTemplate.call(this,e,f,e-1),f=i.locator.slice(),d[e]=s.extend(!0,{},i);var p=h&&void 0!==h.alternation?h.locator[h.alternation]:void 0;for(e=c-1;u<e&&((i=d[e]).match.optionality||i.match.optionalQuantifier&&i.match.newBlockMarker||p&&(p!==d[e].locator[h.alternation]&&1!=i.match.static||!0===i.match.static&&i.locator[h.alternation]&&a.checkAlternationMatch.call(this,i.locator[h.alternation].toString().split(","),p.toString().split(","))&&""!==n.getTests.call(this,e)[0].def))&&l[e]===n.getPlaceholder.call(this,e,i.match);e--)c--;return t?{l:c,def:d[c]?d[c].match:void 0}:c},e.determineNewCaretPosition=function(t,e){var i=this,a=this.maskset,c=this.opts;if(e&&(i.isRTL?t.end=t.begin:t.begin=t.end),t.begin===t.end){switch(c.positionCaretOnClick){case"none":break;case"select":t={begin:0,end:r.call(i).length};break;case"ignore":t.end=t.begin=l.call(i,o.call(i));break;case"radixFocus":if(function(t){if(""!==c.radixPoint&&0!==c.digits){var e=a.validPositions;if(void 0===e[t]||e[t].input===n.getPlaceholder.call(i,t)){if(t<l.call(i,-1))return!0;var o=r.call(i).indexOf(c.radixPoint);if(-1!==o){for(var s in e)if(e[s]&&o<s&&e[s].input!==n.getPlaceholder.call(i,s))return!1;return!0}}}return!1}(t.begin)){var u=r.call(i).join("").indexOf(c.radixPoint);t.end=t.begin=c.numericInput?l.call(i,u):u;break}default:var d=t.begin,h=o.call(i,d,!0),f=l.call(i,-1!==h||s.call(i,0)?h:-1);if(d<=f)t.end=t.begin=s.call(i,d,!1,!0)?d:l.call(i,d);else{var p=a.validPositions[h],m=n.getTestTemplate.call(i,f,p?p.match.locator:void 0,p),g=n.getPlaceholder.call(i,f,m.match);if(""!==g&&r.call(i)[f]!==g&&!0!==m.match.optionalQuantifier&&!0!==m.match.newBlockMarker||!s.call(i,f,c.keepStatic,!0)&&m.match.def===g){var v=l.call(i,f);(v<=d||d===f)&&(f=v)}t.end=t.begin=f}}return t}},e.getBuffer=r,e.getBufferTemplate=function(){var t=this.maskset;return void 0===t._buffer&&(t._buffer=n.getMaskTemplate.call(this,!1,1),void 0===t.buffer&&(t.buffer=t._buffer.slice())),t._buffer},e.getLastValidPosition=o,e.isMask=s,e.resetMaskSet=function(t){var e=this.maskset;e.buffer=void 0,!0!==t&&(e.validPositions={},e.p=0)},e.seekNext=l,e.seekPrevious=function(t,e){var i=t-1;if(t<=0)return 0;for(;0<i&&(!0===e&&(!0!==n.getTest.call(this,i).match.newBlockMarker||!s.call(this,i,void 0,!0))||!0!==e&&!s.call(this,i,void 0,!0));)i--;return i},e.translatePosition=c;var n=i(3),a=i(4);i(10);function r(t){var e=this.maskset;return void 0!==e.buffer&&!0!==t||(e.buffer=n.getMaskTemplate.call(this,!0,o.call(this),!0),void 0===e._buffer&&(e._buffer=e.buffer.slice())),e.buffer}function o(t,e,i){var n=this.maskset,a=-1,r=-1,o=i||n.validPositions;for(var s in void 0===t&&(t=-1),o){var l=parseInt(s);o[l]&&(e||!0!==o[l].generatedInput)&&(l<=t&&(a=l),t<=l&&(r=l))}return-1===a||a==t?r:-1==r||t-a<r-t?a:r}function s(t,e,i){var a=this.maskset,r=n.getTestTemplate.call(this,t).match;if(""===r.def&&(r=n.getTest.call(this,t).match),!0!==r.static)return r.fn;if(!0===i&&void 0!==a.validPositions[t]&&!0!==a.validPositions[t].generatedInput)return!0;if(!0!==e&&-1<t){if(i){var o=n.getTests.call(this,t);return o.length>1+(""===o[o.length-1].match.def?1:0)}var s=n.determineTestTemplate.call(this,t,n.getTests.call(this,t)),l=n.getPlaceholder.call(this,t,s.match);return s.match.def!==l}return!1}function l(t,e,i){void 0===i&&(i=!0);for(var a=t+1;""!==n.getTest.call(this,a).match.def&&(!0===e&&(!0!==n.getTest.call(this,a).match.newBlockMarker||!s.call(this,a,void 0,!0))||!0!==e&&!s.call(this,a,void 0,i));)a++;return a}function c(t){var e=this.opts,i=this.el;return!this.isRTL||"number"!=typeof t||e.greedy&&""===e.placeholder||!i||(t=this._valueGet().length-t),t}},function(t,e,i){"use strict";function n(t,e){var i=(null!=t.alternation?t.mloc[a(t)]:t.locator).join("");if(""!==i)for(;i.length<e;)i+="0";return i}function a(t){var e=t.locator[t.alternation];return"string"==typeof e&&0<e.length&&(e=e.split(",")[0]),void 0!==e?e.toString():""}function r(t,e,i){var n=this.opts,a=this.maskset;if(void 0!==(e=e||l.call(this,t).match).placeholder||!0===i)return"function"==typeof e.placeholder?e.placeholder(n):e.placeholder;if(!0!==e.static)return n.placeholder.charAt(t%n.placeholder.length);if(-1<t&&void 0===a.validPositions[t]){var r,o=c.call(this,t),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var u=0;u<o.length;u++)if(""!==o[u].match.def&&!0!==o[u].match.optionality&&!0!==o[u].match.optionalQuantifier&&(!0===o[u].match.static||void 0===r||!1!==o[u].match.fn.test(r.match.def,a,t,!0,n))&&(s.push(o[u]),!0===o[u].match.static&&(r=o[u]),1<s.length&&/[0-9a-bA-Z]/.test(s[0].match.def)))return n.placeholder.charAt(t%n.placeholder.length)}return e.def}function o(t,e,i){return this.maskset.validPositions[t]||s.call(this,t,c.call(this,t,e?e.slice():e,i))}function s(t,e){var i=this.opts;t=0<t?t-1:0;for(var a,r,o,s=n(l.call(this,t)),c=0;c<e.length;c++){var u=e[c];a=n(u,s.length);var d=Math.abs(a-s);(void 0===r||""!==a&&d<r||o&&!i.greedy&&o.match.optionality&&"master"===o.match.newBlockMarker&&(!u.match.optionality||!u.match.newBlockMarker)||o&&o.match.optionalQuantifier&&!u.match.optionalQuantifier)&&(r=d,o=u)}return o}function l(t,e){var i=this.maskset;return i.validPositions[t]?i.validPositions[t]:(e||c.call(this,t))[0]}function c(t,e,i){var n,a=this,r=this.dependencyLib,o=this.maskset,l=this.opts,c=this.el,u=o.maskToken,d=e?i:0,h=e?e.slice():[0],f=[],p=!1,m=e?e.join(""):"";function g(e,i,a,r){function s(a,r,u){function h(t,e){var i=0===e.matches.indexOf(t);return i||e.matches.every((function(n,a){return!0===n.isQuantifier?i=h(t,e.matches[a-1]):Object.prototype.hasOwnProperty.call(n,"matches")&&(i=h(t,n)),!i})),i}function v(t,e,i){var n,a;if((o.tests[t]||o.validPositions[t])&&(o.tests[t]||[o.validPositions[t]]).every((function(t,r){if(t.mloc[e])return n=t,!1;var o=void 0!==i?i:t.alternation,s=void 0!==t.locator[o]?t.locator[o].toString().indexOf(e):-1;return(void 0===a||s<a)&&-1!==s&&(n=t,a=s),!0})),n){var r=n.locator[n.alternation];return(n.mloc[e]||n.mloc[r]||n.locator).slice((void 0!==i?i:n.alternation)+1)}return void 0!==i?v(t,e):void 0}function y(t,e){function i(t){for(var e,i=[],n=-1,a=0,r=t.length;a<r;a++)if("-"===t.charAt(a))for(e=t.charCodeAt(a+1);++n<e;)i.push(String.fromCharCode(n));else n=t.charCodeAt(a),i.push(t.charAt(a));return i.join("")}return t.match.def===e.match.nativeDef||!(!(l.regex||t.match.fn instanceof RegExp&&e.match.fn instanceof RegExp)||!0===t.match.static||!0===e.match.static)&&-1!==i(e.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(i(t.match.fn.toString().replace(/[[\]/]/g,"")))}function b(t,e){var i=t.alternation,n=void 0===e||i===e.alternation&&-1===t.locator[i].toString().indexOf(e.locator[i]);if(!n&&i>e.alternation)for(var a=e.alternation;a<i;a++)if(t.locator[a]!==e.locator[a]){i=a,n=!0;break}if(n){t.mloc=t.mloc||{};var r=t.locator[i];if(void 0!==r){if("string"==typeof r&&(r=r.split(",")[0]),void 0===t.mloc[r]&&(t.mloc[r]=t.locator.slice()),void 0!==e){for(var o in e.mloc)"string"==typeof o&&(o=o.split(",")[0]),void 0===t.mloc[o]&&(t.mloc[o]=e.mloc[o]);t.locator[i]=Object.keys(t.mloc).join(",")}return!0}t.alternation=void 0}return!1}function _(t,e){if(t.locator.length!==e.locator.length)return!1;for(var i=t.alternation+1;i<t.locator.length;i++)if(t.locator[i]!==e.locator[i])return!1;return!0}if(d>t+l._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+o.mask;if(d===t&&void 0===a.matches)return f.push({match:a,locator:r.reverse(),cd:m,mloc:{}}),!0;if(void 0!==a.matches){if(a.isGroup&&u!==a){if(a=s(e.matches[e.matches.indexOf(a)+1],r,u))return!0}else if(a.isOptional){var x=a,w=f.length;if(a=g(a,i,r,u)){if(f.forEach((function(t,e){w<=e&&(t.match.optionality=!0)})),n=f[f.length-1].match,void 0!==u||!h(n,x))return!0;p=!0,d=t}}else if(a.isAlternator){var k,S=a,M=[],L=f.slice(),T=r.length,C=0<i.length?i.shift():-1;if(-1===C||"string"==typeof C){var A,D=d,E=i.slice(),O=[];if("string"==typeof C)O=C.split(",");else for(A=0;A<S.matches.length;A++)O.push(A.toString());if(void 0!==o.excludes[t]){for(var P=O.slice(),Y=0,I=o.excludes[t].length;Y<I;Y++){var N=o.excludes[t][Y].toString().split(":");r.length==N[1]&&O.splice(O.indexOf(N[0]),1)}0===O.length&&(delete o.excludes[t],O=P)}(!0===l.keepStatic||isFinite(parseInt(l.keepStatic))&&D>=l.keepStatic)&&(O=O.slice(0,1));for(var H=!1,j=0;j<O.length;j++){A=parseInt(O[j]),f=[],i="string"==typeof C&&v(d,A,T)||E.slice(),S.matches[A]&&s(S.matches[A],[A].concat(r),u)?a=!0:0===j&&(H=!0),k=f.slice(),d=D,f=[];for(var F=0;F<k.length;F++){var R=k[F],z=!1;R.match.jit=R.match.jit||H,R.alternation=R.alternation||T,b(R);for(var $=0;$<M.length;$++){var B=M[$];if("string"!=typeof C||void 0!==R.alternation&&O.includes(R.locator[R.alternation].toString())){if(R.match.nativeDef===B.match.nativeDef){z=!0,b(B,R);break}if(y(R,B)){b(R,B)&&(z=!0,M.splice(M.indexOf(B),0,R));break}if(y(B,R)){b(B,R);break}if(X=B,!0===(U=R).match.static&&!0!==X.match.static&&X.match.fn.test(U.match.def,o,t,!1,l,!1)){_(R,B)||void 0!==c.inputmask.userOptions.keepStatic?b(R,B)&&(z=!0,M.splice(M.indexOf(B),0,R)):l.keepStatic=!0;break}}}z||M.push(R)}}f=L.concat(M),d=t,p=0<f.length,a=0<M.length,i=E.slice()}else a=s(S.matches[C]||e.matches[C],[C].concat(r),u);if(a)return!0}else if(a.isQuantifier&&u!==e.matches[e.matches.indexOf(a)-1])for(var W=a,V=0<i.length?i.shift():0;V<(isNaN(W.quantifier.max)?V+1:W.quantifier.max)&&d<=t;V++){var q=e.matches[e.matches.indexOf(W)-1];if(a=s(q,[V].concat(r),q)){if((n=f[f.length-1].match).optionalQuantifier=V>=W.quantifier.min,n.jit=(V||1)*q.matches.indexOf(n)>=W.quantifier.jit,n.optionalQuantifier&&h(n,q)){p=!0,d=t;break}return n.jit&&(o.jitOffset[t]=q.matches.length-q.matches.indexOf(n)),!0}}else if(a=g(a,i,r,u))return!0}else d++;var U,X}for(var u=0<i.length?i.shift():0;u<e.matches.length;u++)if(!0!==e.matches[u].isQuantifier){var h=s(e.matches[u],[u].concat(a),r);if(h&&d===t)return h;if(t<d)break}}if(-1<t&&(void 0===a.maxLength||t<a.maxLength)){if(void 0===e){for(var v,y=t-1;void 0===(v=o.validPositions[y]||o.tests[y])&&-1<y;)y--;void 0!==v&&-1<y&&(h=function(t,e){var i,n=[];return Array.isArray(e)||(e=[e]),0<e.length&&(void 0===e[0].alternation||!0===l.keepStatic?0===(n=s.call(a,t,e.slice()).locator.slice()).length&&(n=e[0].locator.slice()):e.forEach((function(t){""!==t.def&&(0===n.length?(i=t.alternation,n=t.locator.slice()):t.locator[i]&&-1===n[i].toString().indexOf(t.locator[i])&&(n[i]+=","+t.locator[i]))}))),n}(y,v),m=h.join(""),d=y)}if(o.tests[t]&&o.tests[t][0].cd===m)return o.tests[t];for(var b=h.shift();b<u.length;b++){if(g(u[b],h,[b])&&d===t||t<d)break}}return 0!==f.length&&!p||f.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:m}),void 0!==e&&o.tests[t]?r.extend(!0,[],f):(o.tests[t]=r.extend(!0,[],f),o.tests[t])}Object.defineProperty(e,"__esModule",{value:!0}),e.determineTestTemplate=s,e.getDecisionTaker=a,e.getMaskTemplate=function(t,e,i,n,a){var l=this.opts,u=this.maskset,d=l.greedy;a&&(l.greedy=!1),e=e||0;var h,f,p,m,g=[],v=0;do{if(!0===t&&u.validPositions[v])f=(p=a&&!0===u.validPositions[v].match.optionality&&void 0===u.validPositions[v+1]&&(!0===u.validPositions[v].generatedInput||u.validPositions[v].input==l.skipOptionalPartCharacter&&0<v)?s.call(this,v,c.call(this,v,h,v-1)):u.validPositions[v]).match,h=p.locator.slice(),g.push(!0===i?p.input:!1===i?f.nativeDef:r.call(this,v,f));else{f=(p=o.call(this,v,h,v-1)).match,h=p.locator.slice();var y=!0!==n&&(!1!==l.jitMasking?l.jitMasking:f.jit);(m=m&&f.static&&f.def!==l.groupSeparator&&null===f.fn||u.validPositions[v-1]&&f.static&&f.def!==l.groupSeparator&&null===f.fn)||!1===y||void 0===y||"number"==typeof y&&isFinite(y)&&v<y?g.push(!1===i?f.nativeDef:r.call(this,v,f)):m=!1}v++}while((void 0===this.maxLength||v<this.maxLength)&&(!0!==f.static||""!==f.def)||v<e);return""===g[g.length-1]&&g.pop(),!1===i&&void 0!==u.maskLength||(u.maskLength=v-1),l.greedy=d,g},e.getPlaceholder=r,e.getTest=l,e.getTests=c,e.getTestTemplate=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.alternate=l,e.checkAlternationMatch=function(t,e,i){for(var n,a=this.opts.greedy?e:e.slice(0,1),r=!1,o=void 0!==i?i.split(","):[],s=0;s<o.length;s++)-1!==(n=t.indexOf(o[s]))&&t.splice(n,1);for(var l=0;l<t.length;l++)if(a.includes(t[l])){r=!0;break}return r},e.isComplete=u,e.isValid=d,e.refreshFromBuffer=f,e.revalidateMask=m,e.handleRemove=function(t,e,i,n,s){var c=this.maskset,u=this.opts;if((u.numericInput||this.isRTL)&&(e===r.default.BACKSPACE?e=r.default.DELETE:e===r.default.DELETE&&(e=r.default.BACKSPACE),this.isRTL)){var d=i.end;i.end=i.begin,i.begin=d}var h,f=o.getLastValidPosition.call(this,void 0,!0);if(i.end>=o.getBuffer.call(this).length&&f>=i.end&&(i.end=f+1),e===r.default.BACKSPACE?i.end-i.begin<1&&(i.begin=o.seekPrevious.call(this,i.begin)):e===r.default.DELETE&&i.begin===i.end&&(i.end=o.isMask.call(this,i.end,!0,!0)?i.end+1:o.seekNext.call(this,i.end)+1),!1!==(h=m.call(this,i))){if(!0!==n&&!1!==u.keepStatic||null!==u.regex&&-1!==a.getTest.call(this,i.begin).match.def.indexOf("|")){var p=l.call(this,!0);if(p){var g=void 0!==p.caret?p.caret:p.pos?o.seekNext.call(this,p.pos.begin?p.pos.begin:p.pos):o.getLastValidPosition.call(this,-1,!0);(e!==r.default.DELETE||i.begin>g)&&i.begin}}!0!==n&&(c.p=e===r.default.DELETE?i.begin+h:i.begin)}};var n,a=i(3),r=(n=i(0))&&n.__esModule?n:{default:n},o=i(2),s=i(6);function l(t,e,i,n,r,s){var c,u,h,f,p,m,g,v,y,b,_,x=this.dependencyLib,w=this.opts,k=this.maskset,S=x.extend(!0,{},k.validPositions),M=x.extend(!0,{},k.tests),L=!1,T=!1,C=void 0!==r?r:o.getLastValidPosition.call(this);if(s&&(b=s.begin,_=s.end,s.begin>s.end&&(b=s.end,_=s.begin)),-1===C&&void 0===r)c=0,u=(f=a.getTest.call(this,c)).alternation;else for(;0<=C;C--)if((h=k.validPositions[C])&&void 0!==h.alternation){if(f&&f.locator[h.alternation]!==h.locator[h.alternation])break;c=C,u=k.validPositions[c].alternation,f=h}if(void 0!==u){g=parseInt(c),k.excludes[g]=k.excludes[g]||[],!0!==t&&k.excludes[g].push((0,a.getDecisionTaker)(f)+":"+f.alternation);var A=[],D=-1;for(p=g;p<o.getLastValidPosition.call(this,void 0,!0)+1;p++)-1===D&&t<=p&&void 0!==e&&(A.push(e),D=A.length-1),(m=k.validPositions[p])&&!0!==m.generatedInput&&(void 0===s||p<b||_<=p)&&A.push(m.input),delete k.validPositions[p];for(-1===D&&void 0!==e&&(A.push(e),D=A.length-1);void 0!==k.excludes[g]&&k.excludes[g].length<10;){for(k.tests={},o.resetMaskSet.call(this,!0),L=!0,p=0;p<A.length&&(v=L.caret||o.getLastValidPosition.call(this,void 0,!0)+1,y=A[p],L=d.call(this,v,y,!1,n,!0));p++)p===D&&(T=L),1==t&&L&&(T={caretPos:p});if(L)break;if(o.resetMaskSet.call(this),f=a.getTest.call(this,g),k.validPositions=x.extend(!0,{},S),k.tests=x.extend(!0,{},M),!k.excludes[g]){T=l.call(this,t,e,i,n,g-1,s);break}var E=(0,a.getDecisionTaker)(f);if(-1!==k.excludes[g].indexOf(E+":"+f.alternation)){T=l.call(this,t,e,i,n,g-1,s);break}for(k.excludes[g].push(E+":"+f.alternation),p=g;p<o.getLastValidPosition.call(this,void 0,!0)+1;p++)delete k.validPositions[p]}}return T&&!1===w.keepStatic||delete k.excludes[g],T}function c(t,e,i){var n=this.opts,a=this.maskset;switch(n.casing||e.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break;case"title":var o=a.validPositions[i-1];t=0===i||o&&o.input===String.fromCharCode(r.default.SPACE)?t.toUpperCase():t.toLowerCase();break;default:if("function"==typeof n.casing){var s=Array.prototype.slice.call(arguments);s.push(a.validPositions),t=n.casing.apply(this,s)}}return t}function u(t){var e=this.opts,i=this.maskset;if("function"==typeof e.isComplete)return e.isComplete(t,e);if("*"!==e.repeat){var n=!1,r=o.determineLastRequiredPosition.call(this,!0),s=o.seekPrevious.call(this,r.l);if(void 0===r.def||r.def.newBlockMarker||r.def.optionality||r.def.optionalQuantifier){n=!0;for(var l=0;l<=s;l++){var c=a.getTestTemplate.call(this,l).match;if(!0!==c.static&&void 0===i.validPositions[l]&&!0!==c.optionality&&!0!==c.optionalQuantifier||!0===c.static&&t[l]!==a.getPlaceholder.call(this,l,c)){n=!1;break}}}return n}}function d(t,e,i,n,r,s,h){var g=this,v=this.dependencyLib,y=this.opts,b=g.el,_=g.maskset;function x(t){return g.isRTL?1<t.begin-t.end||t.begin-t.end==1:1<t.end-t.begin||t.end-t.begin==1}i=!0===i;var w=t;function k(t){if(void 0!==t){if(void 0!==t.remove&&(Array.isArray(t.remove)||(t.remove=[t.remove]),t.remove.sort((function(t,e){return e.pos-t.pos})).forEach((function(t){m.call(g,{begin:t,end:t+1})})),t.remove=void 0),void 0!==t.insert&&(Array.isArray(t.insert)||(t.insert=[t.insert]),t.insert.sort((function(t,e){return t.pos-e.pos})).forEach((function(t){""!==t.c&&d.call(g,t.pos,t.c,void 0===t.strict||t.strict,void 0!==t.fromIsValid?t.fromIsValid:n)})),t.insert=void 0),t.refreshFromBuffer&&t.buffer){var e=t.refreshFromBuffer;f.call(g,!0===e?e:e.start,e.end,t.buffer),t.refreshFromBuffer=void 0}void 0!==t.rewritePosition&&(w=t.rewritePosition,t=!0)}return t}function S(e,i,r){var s=!1;return a.getTests.call(g,e).every((function(l,u){var d=l.match;if(o.getBuffer.call(g,!0),!1===(s=null!=d.fn?d.fn.test(i,_,e,r,y,x(t)):(i===d.def||i===y.skipOptionalPartCharacter)&&""!==d.def&&{c:a.getPlaceholder.call(g,e,d,!0)||d.def,pos:e}))return!0;var h=void 0!==s.c?s.c:i,f=e;return h=h===y.skipOptionalPartCharacter&&!0===d.static?a.getPlaceholder.call(g,e,d,!0)||d.def:h,!0!==(s=k(s))&&void 0!==s.pos&&s.pos!==e&&(f=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c||!1===m.call(g,t,v.extend({},l,{input:c.call(g,h,d,f)}),n,f)&&(s=!1),!1})),s}void 0!==t.begin&&(w=g.isRTL?t.end:t.begin);var M=!0,L=v.extend(!0,{},_.validPositions);if(!1===y.keepStatic&&void 0!==_.excludes[w]&&!0!==r&&!0!==n)for(var T=w;T<(g.isRTL?t.begin:t.end);T++)void 0!==_.excludes[T]&&(_.excludes[T]=void 0,delete _.tests[T]);if("function"==typeof y.preValidation&&!0!==n&&!0!==s&&(M=k(M=y.preValidation.call(b,o.getBuffer.call(g),w,e,x(t),y,_,t,i||r))),!0===M){if(void 0===g.maxLength||w<g.maxLength){if(M=S(w,e,i),(!i||!0===n)&&!1===M&&!0!==s){var C=_.validPositions[w];if(!C||!0!==C.match.static||C.match.def!==e&&e!==y.skipOptionalPartCharacter){if(y.insertMode||void 0===_.validPositions[o.seekNext.call(g,w)]||t.end>w){var A=!1;if(_.jitOffset[w]&&void 0===_.validPositions[o.seekNext.call(g,w)]&&(!1!==(M=d.call(g,w+_.jitOffset[w],e,!0))&&(!0!==r&&(M.caret=w),A=!0)),t.end>w&&(_.validPositions[w]=void 0),!A&&!o.isMask.call(g,w,y.keepStatic&&0===w))for(var D=w+1,E=o.seekNext.call(g,w,!1,0!==w);D<=E;D++)if(!1!==(M=S(D,e,i))){M=p.call(g,w,void 0!==M.pos?M.pos:D)||M,w=D;break}}}else M={caret:o.seekNext.call(g,w)}}}else M=!1;!1!==M||!y.keepStatic||!u.call(g,o.getBuffer.call(g))&&0!==w||i||!0===r?x(t)&&_.tests[w]&&1<_.tests[w].length&&y.keepStatic&&!i&&!0!==r&&(M=l.call(g,!0)):M=l.call(g,w,e,i,n,void 0,t),!0===M&&(M={pos:w})}if("function"==typeof y.postValidation&&!0!==n&&!0!==s){var O=y.postValidation.call(b,o.getBuffer.call(g,!0),void 0!==t.begin?g.isRTL?t.end:t.begin:t,e,M,y,_,i,h);void 0!==O&&(M=!0===O?M:O)}return M&&void 0===M.pos&&(M.pos=w),!1===M||!0===s?(o.resetMaskSet.call(g,!0),_.validPositions=v.extend(!0,{},L)):p.call(g,void 0,w,!0),k(M)}function h(t,e,i){for(var n=this.maskset,r=!1,o=a.getTests.call(this,t),s=0;s<o.length;s++){if(o[s].match&&(!(o[s].match.nativeDef!==e.match[i.shiftPositions?"def":"nativeDef"]||i.shiftPositions&&e.match.static)||o[s].match.nativeDef===e.match.nativeDef)){r=!0;break}if(o[s].match&&o[s].match.def===e.match.nativeDef){r=void 0;break}}return!1===r&&void 0!==n.jitOffset[t]&&(r=h.call(this,t+n.jitOffset[t],e,i)),r}function f(t,e,i){var n,a,r=this.maskset,l=this.opts,c=this.dependencyLib,u=this.el,d=l.skipOptionalPartCharacter,h=this.isRTL?i.slice().reverse():i;if(l.skipOptionalPartCharacter="",!0===t)o.resetMaskSet.call(this),r.tests={},t=0,e=i.length,a=o.determineNewCaretPosition.call(this,{begin:0,end:0},!1).begin;else{for(n=t;n<e;n++)delete r.validPositions[n];a=t}var f=new c.Event("keypress");for(n=t;n<e;n++){f.which=h[n].toString().charCodeAt(0),this.ignorable=!1;var p=s.EventHandlers.keypressEvent.call(u,f,!0,!1,!1,a);!1!==p&&(a=p.forwardPosition)}l.skipOptionalPartCharacter=d}function p(t,e,i){var n=this.maskset,r=this.dependencyLib;if(void 0===t)for(t=e-1;0<t&&!n.validPositions[t];t--);for(var s=t;s<e;s++)if(void 0===n.validPositions[s]&&!o.isMask.call(this,s,!0)){if(0==s?a.getTest.call(this,s):n.validPositions[s-1]){var l=a.getTests.call(this,s).slice();""===l[l.length-1].match.def&&l.pop();var c,u=a.determineTestTemplate.call(this,s,l);if(u&&(!0!==u.match.jit||"master"===u.match.newBlockMarker&&(c=n.validPositions[s+1])&&!0===c.match.optionalQuantifier)&&((u=r.extend({},u,{input:a.getPlaceholder.call(this,s,u.match,!0)||u.match.def})).generatedInput=!0,m.call(this,s,u,!0),!0!==i)){var h=n.validPositions[e].input;return n.validPositions[e]=void 0,d.call(this,e,h,!0,!0)}}}}function m(t,e,i,n){var r=this.maskset,s=this.opts,l=this.dependencyLib;function c(t,e,i){var n=e[t];if(void 0===n||!0!==n.match.static||!0===n.match.optionality||void 0!==e[0]&&void 0!==e[0].alternation)return!1;var a=i.begin<=t-1?e[t-1]&&!0===e[t-1].match.static&&e[t-1]:e[t-1],r=i.end>t+1?e[t+1]&&!0===e[t+1].match.static&&e[t+1]:e[t+1];return a&&r}var u=0,f=void 0!==t.begin?t.begin:t,p=void 0!==t.end?t.end:t;if(t.begin>t.end&&(f=t.end,p=t.begin),n=void 0!==n?n:f,f!==p||s.insertMode&&void 0!==r.validPositions[n]&&void 0===i||void 0===e){var m,g=l.extend(!0,{},r.validPositions),v=o.getLastValidPosition.call(this,void 0,!0);for(r.p=f,m=v;f<=m;m--)delete r.validPositions[m],void 0===e&&delete r.tests[m+1];var y,b,_=!0,x=n,w=x;for(e&&(r.validPositions[n]=l.extend(!0,{},e),w++,x++),m=e?p:p-1;m<=v;m++){if(void 0!==(y=g[m])&&!0!==y.generatedInput&&(p<=m||f<=m&&c(m,g,{begin:f,end:p}))){for(;""!==a.getTest.call(this,w).match.def;){if(!1!==(b=h.call(this,w,y,s))||"+"===y.match.def){"+"===y.match.def&&o.getBuffer.call(this,!0);var k=d.call(this,w,y.input,"+"!==y.match.def,"+"!==y.match.def);if(_=!1!==k,x=(k.pos||w)+1,!_&&b)break}else _=!1;if(_){void 0===e&&y.match.static&&m===t.begin&&u++;break}if(!_&&w>r.maskLength)break;w++}""==a.getTest.call(this,w).match.def&&(_=!1),w=x}if(!_)break}if(!_)return r.validPositions=l.extend(!0,{},g),o.resetMaskSet.call(this,!0),!1}else e&&a.getTest.call(this,n).match.cd===e.match.cd&&(r.validPositions[n]=l.extend(!0,{},e));return o.resetMaskSet.call(this,!0),u}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyInputValue=u,e.clearOptionalTail=d,e.checkVal=h,e.HandleNativePlaceholder=function(t,e){var i=t?t.inputmask:this;if(l.ie){if(t.inputmask._valueGet()!==e&&(t.placeholder!==e||""===t.placeholder)){var n=o.getBuffer.call(i).slice(),a=t.inputmask._valueGet();if(a!==e){var r=o.getLastValidPosition.call(i);-1===r&&a===o.getBufferTemplate.call(i).join("")?n=[]:-1!==r&&d.call(i,n),f(t,n)}}}else t.placeholder!==e&&(t.placeholder=e,""===t.placeholder&&t.removeAttribute("placeholder"))},e.unmaskedvalue=function(t){var e=t?t.inputmask:this,i=e.opts,n=e.maskset;if(t){if(void 0===t.inputmask)return t.value;t.inputmask&&t.inputmask.refreshValue&&u(t,t.inputmask._valueGet(!0))}var a=[],r=n.validPositions;for(var s in r)r[s]&&r[s].match&&(1!=r[s].match.static||Array.isArray(n.metadata)&&!0!==r[s].generatedInput)&&a.push(r[s].input);var l=0===a.length?"":(e.isRTL?a.reverse():a).join("");if("function"==typeof i.onUnMask){var c=(e.isRTL?o.getBuffer.call(e).slice().reverse():o.getBuffer.call(e)).join("");l=i.onUnMask.call(e,c,l,i)}return l},e.writeBuffer=f;var n,a=(n=i(0))&&n.__esModule?n:{default:n},r=i(3),o=i(2),s=i(4),l=i(7),c=i(6);function u(t,e){var i=t?t.inputmask:this,n=i.opts;t.inputmask.refreshValue=!1,"function"==typeof n.onBeforeMask&&(e=n.onBeforeMask.call(i,e,n)||e),h(t,!0,!1,e=e.toString().split("")),i.undoValue=o.getBuffer.call(i).join(""),(n.clearMaskOnLostFocus||n.clearIncomplete)&&t.inputmask._valueGet()===o.getBufferTemplate.call(i).join("")&&-1===o.getLastValidPosition.call(i)&&t.inputmask._valueSet("")}function d(t){t.length=0;for(var e,i=r.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(e=i.shift());)t.push(e);return t}function h(t,e,i,n,a){var l=t?t.inputmask:this,u=l.maskset,d=l.opts,h=l.dependencyLib,p=n.slice(),m="",g=-1,v=void 0,y=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter="",o.resetMaskSet.call(l),u.tests={},g=d.radixPoint?o.determineNewCaretPosition.call(l,{begin:0,end:0}).begin:0,u.p=g,l.caretPos={begin:g};var b=[],_=l.caretPos;if(p.forEach((function(e,n){if(void 0!==e)if(void 0===u.validPositions[n]&&p[n]===r.getPlaceholder.call(l,n)&&o.isMask.call(l,n,!0)&&!1===s.isValid.call(l,n,p[n],!0,void 0,void 0,!0))u.p++;else{var a=new h.Event("_checkval");a.which=e.toString().charCodeAt(0),m+=e;var d=o.getLastValidPosition.call(l,void 0,!0);!function(t,e){for(var i=r.getMaskTemplate.call(l,!0,0).slice(t,o.seekNext.call(l,t)).join("").replace(/'/g,""),n=i.indexOf(e);0<n&&" "===i[n-1];)n--;var a=0===n&&!o.isMask.call(l,t)&&(r.getTest.call(l,t).match.nativeDef===e.charAt(0)||!0===r.getTest.call(l,t).match.static&&r.getTest.call(l,t).match.nativeDef==="'"+e.charAt(0)||" "===r.getTest.call(l,t).match.nativeDef&&(r.getTest.call(l,t+1).match.nativeDef===e.charAt(0)||!0===r.getTest.call(l,t+1).match.static&&r.getTest.call(l,t+1).match.nativeDef==="'"+e.charAt(0)));if(!a&&0<n&&!o.isMask.call(l,t,!1,!0)){var s=o.seekNext.call(l,t);l.caretPos.begin<s&&(l.caretPos={begin:s})}return a}(g,m)?(v=c.EventHandlers.keypressEvent.call(t||l,a,!0,!1,i,l.caretPos.begin))&&(g=l.caretPos.begin+1,m=""):v=c.EventHandlers.keypressEvent.call(t||l,a,!0,!1,i,d+1),v?(void 0!==v.pos&&u.validPositions[v.pos]&&!0===u.validPositions[v.pos].match.static&&void 0===u.validPositions[v.pos].alternation&&(b.push(v.pos),l.isRTL||(v.forwardPosition=v.pos+1)),f.call(l,void 0,o.getBuffer.call(l),v.forwardPosition,a,!1),l.caretPos={begin:v.forwardPosition,end:v.forwardPosition},_=l.caretPos):l.caretPos=_}})),0<b.length){var x,w,k=o.seekNext.call(l,-1,void 0,!1);if(!s.isComplete.call(l,o.getBuffer.call(l))&&b.length<=k||s.isComplete.call(l,o.getBuffer.call(l))&&0<b.length&&b.length!==k&&0===b[0])for(var S=k;void 0!==(x=b.shift());){var M=new h.Event("_checkval");if((w=u.validPositions[x]).generatedInput=!0,M.which=w.input.charCodeAt(0),(v=c.EventHandlers.keypressEvent.call(t,M,!0,!1,i,S))&&void 0!==v.pos&&v.pos!==x&&u.validPositions[v.pos]&&!0===u.validPositions[v.pos].match.static)b.push(v.pos);else if(!v)break;S++}}e&&f.call(l,t,o.getBuffer.call(l),v?v.forwardPosition:l.caretPos.begin,a||new h.Event("checkval"),a&&"input"===a.type&&l.undoValue!==o.getBuffer.call(l).join("")),d.skipOptionalPartCharacter=y}function f(t,e,i,n,r){var l=t?t.inputmask:this,c=l.opts,u=l.dependencyLib;if(n&&"function"==typeof c.onBeforeWrite){var d=c.onBeforeWrite.call(l,n,e,i,c);if(d){if(d.refreshFromBuffer){var h=d.refreshFromBuffer;s.refreshFromBuffer.call(l,!0===h?h:h.start,h.end,d.buffer||e),e=o.getBuffer.call(l,!0)}void 0!==i&&(i=void 0!==d.caret?d.caret:i)}}if(void 0!==t&&(t.inputmask._valueSet(e.join("")),void 0===i||void 0!==n&&"blur"===n.type||o.caret.call(l,t,i,void 0,void 0,void 0!==n&&"keydown"===n.type&&(n.keyCode===a.default.DELETE||n.keyCode===a.default.BACKSPACE)),!0===r)){var f=u(t),p=t.inputmask._valueGet();t.inputmask.skipInputEvent=!0,f.trigger("input"),setTimeout((function(){p===o.getBufferTemplate.call(l).join("")?f.trigger("cleared"):!0===s.isComplete.call(l,e)&&f.trigger("complete")}),0)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventHandlers=void 0;var n,a=i(2),r=(n=i(0))&&n.__esModule?n:{default:n},o=i(7),s=i(4),l=i(5),c=i(3);var u={keydownEvent:function(t){var e=this.inputmask,i=e.opts,n=e.dependencyLib,u=e.maskset,d=this,h=n(d),f=t.keyCode,p=a.caret.call(e,d),m=i.onKeyDown.call(this,t,a.getBuffer.call(e),p,i);if(void 0!==m)return m;if(f===r.default.BACKSPACE||f===r.default.DELETE||o.iphone&&f===r.default.BACKSPACE_SAFARI||t.ctrlKey&&f===r.default.X&&!("oncut"in d))t.preventDefault(),s.handleRemove.call(e,d,f,p),(0,l.writeBuffer)(d,a.getBuffer.call(e,!0),u.p,t,d.inputmask._valueGet()!==a.getBuffer.call(e).join(""));else if(f===r.default.END||f===r.default.PAGE_DOWN){t.preventDefault();var g=a.seekNext.call(e,a.getLastValidPosition.call(e));a.caret.call(e,d,t.shiftKey?p.begin:g,g,!0)}else f===r.default.HOME&&!t.shiftKey||f===r.default.PAGE_UP?(t.preventDefault(),a.caret.call(e,d,0,t.shiftKey?p.begin:0,!0)):(i.undoOnEscape&&f===r.default.ESCAPE||90===f&&t.ctrlKey)&&!0!==t.altKey?((0,l.checkVal)(d,!0,!1,e.undoValue.split("")),h.trigger("click")):!0===i.tabThrough&&f===r.default.TAB?!0===t.shiftKey?(p.end=a.seekPrevious.call(e,p.end,!0),!0===c.getTest.call(e,p.end-1).match.static&&p.end--,p.begin=a.seekPrevious.call(e,p.end,!0),0<=p.begin&&0<p.end&&(t.preventDefault(),a.caret.call(e,d,p.begin,p.end))):(p.begin=a.seekNext.call(e,p.begin,!0),p.end=a.seekNext.call(e,p.begin,!0),p.end<u.maskLength&&p.end--,p.begin<=u.maskLength&&(t.preventDefault(),a.caret.call(e,d,p.begin,p.end))):t.shiftKey||i.insertModeVisual&&!1===i.insertMode&&(f===r.default.RIGHT?setTimeout((function(){var t=a.caret.call(e,d);a.caret.call(e,d,t.begin)}),0):f===r.default.LEFT&&setTimeout((function(){var t=a.translatePosition.call(e,d.inputmask.caretPos.begin);a.translatePosition.call(e,d.inputmask.caretPos.end);e.isRTL?a.caret.call(e,d,t+(t===u.maskLength?0:1)):a.caret.call(e,d,t-(0===t?0:1))}),0));e.ignorable=i.ignorables.includes(f)},keypressEvent:function(t,e,i,n,o){var c=this.inputmask||this,u=c.opts,d=c.dependencyLib,h=c.maskset,f=c.el,p=d(f),m=t.which||t.charCode||t.keyCode;if(!(!0===e||t.ctrlKey&&t.altKey)&&(t.ctrlKey||t.metaKey||c.ignorable))return m===r.default.ENTER&&c.undoValue!==a.getBuffer.call(c).join("")&&(c.undoValue=a.getBuffer.call(c).join(""),setTimeout((function(){p.trigger("change")}),0)),c.skipInputEvent=!0,!0;if(m){44!==m&&46!==m||3!==t.location||""===u.radixPoint||(m=u.radixPoint.charCodeAt(0));var g,v=e?{begin:o,end:o}:a.caret.call(c,f),y=String.fromCharCode(m);h.writeOutBuffer=!0;var b=s.isValid.call(c,v,y,n,void 0,void 0,void 0,e);if(!1!==b&&(a.resetMaskSet.call(c,!0),g=void 0!==b.caret?b.caret:a.seekNext.call(c,b.pos.begin?b.pos.begin:b.pos),h.p=g),g=u.numericInput&&void 0===b.caret?a.seekPrevious.call(c,g):g,!1!==i&&(setTimeout((function(){u.onKeyValidation.call(f,m,b)}),0),h.writeOutBuffer&&!1!==b)){var _=a.getBuffer.call(c);(0,l.writeBuffer)(f,_,g,t,!0!==e)}if(t.preventDefault(),e)return!1!==b&&(b.forwardPosition=g),b}},keyupEvent:function(t){var e=this.inputmask;!e.isComposing||t.keyCode!==r.default.KEY_229&&t.keyCode!==r.default.ENTER||e.$el.trigger("input")},pasteEvent:function(t){var e,i=this.inputmask,n=i.opts,r=i._valueGet(!0),o=a.caret.call(i,this);i.isRTL&&(e=o.end,o.end=o.begin,o.begin=e);var s=r.substr(0,o.begin),c=r.substr(o.end,r.length);if(s==(i.isRTL?a.getBufferTemplate.call(i).slice().reverse():a.getBufferTemplate.call(i)).slice(0,o.begin).join("")&&(s=""),c==(i.isRTL?a.getBufferTemplate.call(i).slice().reverse():a.getBufferTemplate.call(i)).slice(o.end).join("")&&(c=""),window.clipboardData&&window.clipboardData.getData)r=s+window.clipboardData.getData("Text")+c;else{if(!t.clipboardData||!t.clipboardData.getData)return!0;r=s+t.clipboardData.getData("text/plain")+c}var u=r;if("function"==typeof n.onBeforePaste){if(!1===(u=n.onBeforePaste.call(i,r,n)))return t.preventDefault();u=u||r}return(0,l.checkVal)(this,!0,!1,u.toString().split(""),t),t.preventDefault()},inputFallBackEvent:function(t){var e=this.inputmask,i=e.opts,n=e.dependencyLib;var s=this,d=s.inputmask._valueGet(!0),h=(e.isRTL?a.getBuffer.call(e).slice().reverse():a.getBuffer.call(e)).join(""),f=a.caret.call(e,s,void 0,void 0,!0);if(h!==d){var p=function(t,n,r){for(var o,s,l,u=t.substr(0,r.begin).split(""),d=t.substr(r.begin).split(""),h=n.substr(0,r.begin).split(""),f=n.substr(r.begin).split(""),p=u.length>=h.length?u.length:h.length,m=d.length>=f.length?d.length:f.length,g="",v=[];u.length<p;)u.push("~");for(;h.length<p;)h.push("~");for(;d.length<m;)d.unshift("~");for(;f.length<m;)f.unshift("~");var y=u.concat(d),b=h.concat(f);for(s=0,o=y.length;s<o;s++)switch(l=c.getPlaceholder.call(e,a.translatePosition.call(e,s)),g){case"insertText":b[s-1]===y[s]&&r.begin==y.length-1&&v.push(y[s]),s=o;break;case"insertReplacementText":case"deleteContentBackward":"~"===y[s]?r.end++:s=o;break;default:y[s]!==b[s]&&("~"!==y[s+1]&&y[s+1]!==l&&void 0!==y[s+1]||(b[s]!==l||"~"!==b[s+1])&&"~"!==b[s]?"~"===b[s+1]&&b[s]===y[s+1]?(g="insertText",v.push(y[s]),r.begin--,r.end--):y[s]!==l&&"~"!==y[s]&&("~"===y[s+1]||b[s]!==y[s]&&b[s+1]===y[s+1])?(g="insertReplacementText",v.push(y[s]),r.begin--):"~"===y[s]?(g="deleteContentBackward",!a.isMask.call(e,a.translatePosition.call(e,s),!0)&&b[s]!==i.radixPoint||r.end++):s=o:(g="insertText",v.push(y[s]),r.begin--,r.end--))}return{action:g,data:v,caret:r}}(d=function(t,i,n){if(o.iemobile){var r=i.replace(a.getBuffer.call(e).join(""),"");if(1===r.length){var s=i.split("");s.splice(n.begin,0,r),i=s.join("")}}return i}(0,d,f),h,f);switch((s.inputmask.shadowRoot||document).activeElement!==s&&s.focus(),(0,l.writeBuffer)(s,a.getBuffer.call(e)),a.caret.call(e,s,f.begin,f.end,!0),p.action){case"insertText":case"insertReplacementText":p.data.forEach((function(t,i){var a=new n.Event("keypress");a.which=t.charCodeAt(0),e.ignorable=!1,u.keypressEvent.call(s,a)})),setTimeout((function(){e.$el.trigger("keyup")}),0);break;case"deleteContentBackward":var m=new n.Event("keydown");m.keyCode=r.default.BACKSPACE,u.keydownEvent.call(s,m);break;default:(0,l.applyInputValue)(s,d)}t.preventDefault()}},compositionendEvent:function(t){var e=this.inputmask;e.isComposing=!1,e.$el.trigger("input")},setValueEvent:function(t,e,i){var n=this.inputmask,r=t&&t.detail?t.detail[0]:e;void 0===r&&(r=this.inputmask._valueGet(!0)),(0,l.applyInputValue)(this,r),(t.detail&&void 0!==t.detail[1]||void 0!==i)&&a.caret.call(n,this,t.detail?t.detail[1]:i)},focusEvent:function(t){var e=this.inputmask,i=e.opts,n=this.inputmask._valueGet();i.showMaskOnFocus&&n!==a.getBuffer.call(e).join("")&&(0,l.writeBuffer)(this,a.getBuffer.call(e),a.seekNext.call(e,a.getLastValidPosition.call(e))),!0!==i.positionCaretOnTab||!1!==e.mouseEnter||s.isComplete.call(e,a.getBuffer.call(e))&&-1!==a.getLastValidPosition.call(e)||u.clickEvent.apply(this,[t,!0]),e.undoValue=a.getBuffer.call(e).join("")},invalidEvent:function(t){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var t=this.inputmask,e=t.opts;t.mouseEnter=!1,e.clearMaskOnLostFocus&&(this.inputmask.shadowRoot||document).activeElement!==this&&(0,l.HandleNativePlaceholder)(this,t.originalPlaceholder)},clickEvent:function(t,e){var i=this.inputmask;if((this.inputmask.shadowRoot||document).activeElement===this){var n=a.determineNewCaretPosition.call(i,a.caret.call(i,this),e);void 0!==n&&a.caret.call(i,this,n)}},cutEvent:function(t){var e=this.inputmask,i=e.maskset,n=a.caret.call(e,this),o=window.clipboardData||t.clipboardData,c=e.isRTL?a.getBuffer.call(e).slice(n.end,n.begin):a.getBuffer.call(e).slice(n.begin,n.end);o.setData("text",e.isRTL?c.reverse().join(""):c.join("")),document.execCommand&&document.execCommand("copy"),s.handleRemove.call(e,this,r.default.DELETE,n),(0,l.writeBuffer)(this,a.getBuffer.call(e),i.p,t,e.undoValue!==a.getBuffer.call(e).join(""))},blurEvent:function(t){var e=this.inputmask,i=e.opts,n=(0,e.dependencyLib)(this);if(this.inputmask){(0,l.HandleNativePlaceholder)(this,e.originalPlaceholder);var r=this.inputmask._valueGet(),o=a.getBuffer.call(e).slice();""!==r&&(i.clearMaskOnLostFocus&&(-1===a.getLastValidPosition.call(e)&&r===a.getBufferTemplate.call(e).join("")?o=[]:l.clearOptionalTail.call(e,o)),!1===s.isComplete.call(e,o)&&(setTimeout((function(){n.trigger("incomplete")}),0),i.clearIncomplete&&(a.resetMaskSet.call(e),o=i.clearMaskOnLostFocus?[]:a.getBufferTemplate.call(e).slice())),(0,l.writeBuffer)(this,o,void 0,t)),e.undoValue!==a.getBuffer.call(e).join("")&&(e.undoValue=a.getBuffer.call(e).join(""),n.trigger("change"))}},mouseenterEvent:function(){var t=this.inputmask,e=t.opts;t.mouseEnter=!0,(this.inputmask.shadowRoot||document).activeElement!==this&&(null==t.originalPlaceholder&&this.placeholder!==t.originalPlaceholder&&(t.originalPlaceholder=this.placeholder),e.showMaskOnHover&&(0,l.HandleNativePlaceholder)(this,(t.isRTL?a.getBufferTemplate.call(t).slice().reverse():a.getBufferTemplate.call(t)).join("")))},submitEvent:function(){var t=this.inputmask,e=t.opts;t.undoValue!==a.getBuffer.call(t).join("")&&t.$el.trigger("change"),e.clearMaskOnLostFocus&&-1===a.getLastValidPosition.call(t)&&t._valueGet&&t._valueGet()===a.getBufferTemplate.call(t).join("")&&t._valueSet(""),e.clearIncomplete&&!1===s.isComplete.call(t,a.getBuffer.call(t))&&t._valueSet(""),e.removeMaskOnSubmit&&(t._valueSet(t.unmaskedvalue(),!0),setTimeout((function(){(0,l.writeBuffer)(t.el,a.getBuffer.call(t))}),0))},resetEvent:function(){var t=this.inputmask;t.refreshValue=!0,setTimeout((function(){(0,l.applyInputValue)(t.el,t._valueGet(!0))}),0)}};e.EventHandlers=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.iphone=e.iemobile=e.mobile=e.ie=e.ua=void 0;var n=window.navigator&&window.navigator.userAgent||"",a=0<n.indexOf("MSIE ")||0<n.indexOf("Trident/"),r="ontouchstart"in window,o=/iemobile/i.test(n),s=/iphone/i.test(n)&&!o;e.iphone=s,e.iemobile=o,e.mobile=r,e.ie=a,e.ua=n},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(t,e,i){"use strict";function n(t){return(n="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)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===n("test".__proto__)?function(t){return t.__proto__}:function(t){return t.constructor.prototype})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mask=function(){var t=this,e=this.opts,i=this.el,n=this.dependencyLib;s.EventRuler.off(i);var d=function(e,i){"textarea"!==e.tagName.toLowerCase()&&i.ignorables.push(a.default.ENTER);var l=e.getAttribute("type"),c="input"===e.tagName.toLowerCase()&&i.supportsInputType.includes(l)||e.isContentEditable||"textarea"===e.tagName.toLowerCase();if(!c)if("input"===e.tagName.toLowerCase()){var u=document.createElement("input");u.setAttribute("type",l),c="text"===u.type,u=null}else c="partial";return!1!==c?function(e){var a,l;function c(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==r.getLastValidPosition.call(t)||!0!==i.nullable?(this.inputmask.shadowRoot||document.activeElement)===this&&i.clearMaskOnLostFocus?(t.isRTL?o.clearOptionalTail.call(t,r.getBuffer.call(t).slice()).reverse():o.clearOptionalTail.call(t,r.getBuffer.call(t).slice())).join(""):a.call(this):"":a.call(this)}function u(t){l.call(this,t),this.inputmask&&(0,o.applyInputValue)(this,t)}if(!e.inputmask.__valueGet){if(!0!==i.noValuePatching){if(Object.getOwnPropertyDescriptor){var d=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):void 0;d&&d.get&&d.set?(a=d.get,l=d.set,Object.defineProperty(e,"value",{get:c,set:u,configurable:!0})):"input"!==e.tagName.toLowerCase()&&(a=function(){return this.textContent},l=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:c,set:u,configurable:!0}))}else document.__lookupGetter__&&e.__lookupGetter__("value")&&(a=e.__lookupGetter__("value"),l=e.__lookupSetter__("value"),e.__defineGetter__("value",c),e.__defineSetter__("value",u));e.inputmask.__valueGet=a,e.inputmask.__valueSet=l}e.inputmask._valueGet=function(e){return t.isRTL&&!0!==e?a.call(this.el).split("").reverse().join(""):a.call(this.el)},e.inputmask._valueSet=function(e,i){l.call(this.el,null==e?"":!0!==i&&t.isRTL?e.split("").reverse().join(""):e)},void 0===a&&(a=function(){return this.value},l=function(t){this.value=t},function(e){if(n.valHooks&&(void 0===n.valHooks[e]||!0!==n.valHooks[e].inputmaskpatch)){var a=n.valHooks[e]&&n.valHooks[e].get?n.valHooks[e].get:function(t){return t.value},s=n.valHooks[e]&&n.valHooks[e].set?n.valHooks[e].set:function(t,e){return t.value=e,t};n.valHooks[e]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var n=a(e);return-1!==r.getLastValidPosition.call(t,void 0,void 0,e.inputmask.maskset.validPositions)||!0!==i.nullable?n:""}return a(e)},set:function(t,e){var i=s(t,e);return t.inputmask&&(0,o.applyInputValue)(t,e),i},inputmaskpatch:!0}}}(e.type),function(e){s.EventRuler.on(e,"mouseenter",(function(){var e=this.inputmask._valueGet(!0);e!==(t.isRTL?r.getBuffer.call(t).reverse():r.getBuffer.call(t)).join("")&&(0,o.applyInputValue)(this,e)}))}(e))}}(e):e.inputmask=void 0,c}(i,e);if(!1!==d){t.originalPlaceholder=i.placeholder,t.maxLength=void 0!==i?i.maxLength:void 0,-1===t.maxLength&&(t.maxLength=void 0),"inputMode"in i&&null===i.getAttribute("inputmode")&&(i.inputMode=e.inputmode,i.setAttribute("inputmode",e.inputmode)),!0===d&&(e.showMaskOnFocus=e.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(i.autocomplete),l.iphone&&(e.insertModeVisual=!1),s.EventRuler.on(i,"submit",u.EventHandlers.submitEvent),s.EventRuler.on(i,"reset",u.EventHandlers.resetEvent),s.EventRuler.on(i,"blur",u.EventHandlers.blurEvent),s.EventRuler.on(i,"focus",u.EventHandlers.focusEvent),s.EventRuler.on(i,"invalid",u.EventHandlers.invalidEvent),s.EventRuler.on(i,"click",u.EventHandlers.clickEvent),s.EventRuler.on(i,"mouseleave",u.EventHandlers.mouseleaveEvent),s.EventRuler.on(i,"mouseenter",u.EventHandlers.mouseenterEvent),s.EventRuler.on(i,"paste",u.EventHandlers.pasteEvent),s.EventRuler.on(i,"cut",u.EventHandlers.cutEvent),s.EventRuler.on(i,"complete",e.oncomplete),s.EventRuler.on(i,"incomplete",e.onincomplete),s.EventRuler.on(i,"cleared",e.oncleared),!0!==e.inputEventOnly&&(s.EventRuler.on(i,"keydown",u.EventHandlers.keydownEvent),s.EventRuler.on(i,"keypress",u.EventHandlers.keypressEvent),s.EventRuler.on(i,"keyup",u.EventHandlers.keyupEvent)),(l.mobile||e.inputEventOnly)&&i.removeAttribute("maxLength"),s.EventRuler.on(i,"input",u.EventHandlers.inputFallBackEvent),s.EventRuler.on(i,"compositionend",u.EventHandlers.compositionendEvent)),s.EventRuler.on(i,"setvalue",u.EventHandlers.setValueEvent),t.undoValue=r.getBufferTemplate.call(t).join("");var h=(i.inputmask.shadowRoot||document).activeElement;if(""!==i.inputmask._valueGet(!0)||!1===e.clearMaskOnLostFocus||h===i){(0,o.applyInputValue)(i,i.inputmask._valueGet(!0),e);var f=r.getBuffer.call(t).slice();!1===c.isComplete.call(t,f)&&e.clearIncomplete&&r.resetMaskSet.call(t),e.clearMaskOnLostFocus&&h!==i&&(-1===r.getLastValidPosition.call(t)?f=[]:o.clearOptionalTail.call(t,f)),(!1===e.clearMaskOnLostFocus||e.showMaskOnFocus&&h===i||""!==i.inputmask._valueGet(!0))&&(0,o.writeBuffer)(i,f),h===i&&r.caret.call(t,i,r.seekNext.call(t,r.getLastValidPosition.call(t)))}}},i(9);var n,a=(n=i(0))&&n.__esModule?n:{default:n},r=i(2),o=i(5),s=i(11),l=i(7),c=i(4),u=i(6)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventRuler=void 0;var n=s(i(1)),a=s(i(0)),r=i(2),o=i(5);function s(t){return t&&t.__esModule?t:{default:t}}var l={on:function(t,e,i){var s=t.inputmask.dependencyLib,l=function(e){e.originalEvent&&(e=e.originalEvent||e,arguments[0]=e);var s,l=this,c=l.inputmask,u=c?c.opts:void 0,d=c.dependencyLib;if(void 0===c&&"FORM"!==this.nodeName){var h=d.data(l,"_inputmask_opts");d(l).off(),h&&new n.default(h).mask(l)}else{if("setvalue"===e.type||"FORM"===this.nodeName||!(l.disabled||l.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||!1===u.tabThrough&&e.keyCode===a.default.TAB))){switch(e.type){case"input":if(!0===c.skipInputEvent||e.inputType&&"insertCompositionText"===e.inputType)return c.skipInputEvent=!1,e.preventDefault();break;case"keydown":c.skipKeyPressEvent=!1,c.skipInputEvent=c.isComposing=e.keyCode===a.default.KEY_229;break;case"keyup":case"compositionend":c.isComposing&&(c.skipInputEvent=!1);break;case"keypress":if(!0===c.skipKeyPressEvent)return e.preventDefault();c.skipKeyPressEvent=!0;break;case"click":case"focus":return c.validationEvent?(c.validationEvent=!1,t.blur(),(0,o.HandleNativePlaceholder)(t,(c.isRTL?r.getBufferTemplate.call(c).slice().reverse():r.getBufferTemplate.call(c)).join("")),setTimeout((function(){t.focus()}),3e3)):(s=arguments,setTimeout((function(){t.inputmask&&i.apply(l,s)}),0)),!1}var f=i.apply(l,arguments);return!1===f&&(e.preventDefault(),e.stopPropagation()),f}e.preventDefault()}};t.inputmask.events[e]=t.inputmask.events[e]||[],t.inputmask.events[e].push(l),["submit","reset"].includes(e)?null!==t.form&&s(t.form).on(e,l.bind(t)):s(t).on(e,l)},off:function(t,e){if(t.inputmask&&t.inputmask.events){var i=t.inputmask.dependencyLib,n=t.inputmask.events;for(var a in e&&((n=[])[e]=t.inputmask.events[e]),n){for(var r=n[a];0<r.length;){var o=r.pop();["submit","reset"].includes(a)?null!==t.form&&i(t.form).off(a,o):i(t).off(a,o)}delete t.inputmask.events[a]}}}};e.EventRuler=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,a=(n=i(8))&&n.__esModule?n:{default:n};if(void 0===a.default)throw"jQuery not loaded!";var r=a.default;e.default=r},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default="undefined"!=typeof window?window:new(eval("require('jsdom').JSDOM"))("").window;exports.default=_default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},function(t,e,i){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i(16),i(20),i(21),i(22);var a=((n=i(1))&&n.__esModule?n:{default:n}).default;e.default=a},function(t,e,i){"use strict";var n,a=(n=i(1))&&n.__esModule?n:{default:n};a.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var r=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function o(t,e,i,n,a){return t=-1<i-1&&"."!==e.buffer[i-1]?(t=e.buffer[i-1]+t,-1<i-2&&"."!==e.buffer[i-2]?e.buffer[i-2]+t:"0"+t):"00"+t,r.test(t)}a.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i[i[i]].j[j[j]].k[k[k]].l[l[l]]",definitions:{i:{validator:o},j:{validator:o},k:{validator:o},l:{validator:o}},onUnMask:function(t,e,i){return t},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(t,e){return(t=t.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9１-９A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(t,e,i){return t},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(t,e,i,n,a,r,o){return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(t.join(""))}}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateMaskSet=function(t,e){function i(t,i,n){var r,o,s=!1;if(null!==t&&""!==t||(t=(s=null!==n.regex)?(t=n.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(s=!0,".*")),1===t.length&&!1===n.greedy&&0!==n.repeat&&(n.placeholder=""),0<n.repeat||"*"===n.repeat||"+"===n.repeat){var l="*"===n.repeat?0:"+"===n.repeat?1:n.repeat;t=n.groupmarker[0]+t+n.groupmarker[1]+n.quantifiermarker[0]+l+","+n.repeat+n.quantifiermarker[1]}return o=s?"regex_"+n.regex:n.numericInput?t.split("").reverse().join(""):t,!1!==n.keepStatic&&(o="ks_"+o),void 0===Inputmask.prototype.masksCache[o]||!0===e?(r={mask:t,maskToken:Inputmask.prototype.analyseMask(t,s,n),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:i,maskLength:void 0,jitOffset:{}},!0!==e&&(Inputmask.prototype.masksCache[o]=r,r=a.default.extend(!0,{},Inputmask.prototype.masksCache[o]))):r=a.default.extend(!0,{},Inputmask.prototype.masksCache[o]),r}if("function"==typeof t.mask&&(t.mask=t.mask(t)),Array.isArray(t.mask)){if(1<t.mask.length){null===t.keepStatic&&(t.keepStatic=!0);var n=t.groupmarker[0];return(t.isRTL?t.mask.reverse():t.mask).forEach((function(e){1<n.length&&(n+=t.groupmarker[1]+t.alternatormarker+t.groupmarker[0]),void 0!==e.mask&&"function"!=typeof e.mask?n+=e.mask:n+=e})),i(n+=t.groupmarker[1],t.mask,t)}t.mask=t.mask.pop()}return null===t.keepStatic&&(t.keepStatic=!1),t.mask&&void 0!==t.mask.mask&&"function"!=typeof t.mask.mask?i(t.mask.mask,t.mask,t):i(t.mask,t.mask,t)},e.analyseMask=function(t,e,i){var n,a,r,o,s,l,c=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,u=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,d=!1,h=new g,f=[],p=[],m=!1;function g(t,e,i,n){this.matches=[],this.openGroup=t||!1,this.alternatorGroup=!1,this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function v(t,n,a){a=void 0!==a?a:t.matches.length;var r=t.matches[a-1];if(e)0===n.indexOf("[")||d&&/\\d|\\s|\\w]/i.test(n)||"."===n?t.matches.splice(a++,0,{fn:new RegExp(n,i.casing?"i":""),static:!1,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==n,casing:null,def:n,placeholder:void 0,nativeDef:n}):(d&&(n=n[n.length-1]),n.split("").forEach((function(e,n){r=t.matches[a-1],t.matches.splice(a++,0,{fn:/[a-z]/i.test(i.staticDefinitionSymbol||e)?new RegExp("["+(i.staticDefinitionSymbol||e)+"]",i.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==e&&!0!==r.static,casing:null,def:i.staticDefinitionSymbol||e,placeholder:void 0!==i.staticDefinitionSymbol?e:void 0,nativeDef:(d?"'":"")+e})}))),d=!1;else{var o=i.definitions&&i.definitions[n]||i.usePrototypeDefinitions&&Inputmask.prototype.definitions[n];o&&!d?t.matches.splice(a++,0,{fn:o.validator?"string"==typeof o.validator?new RegExp(o.validator,i.casing?"i":""):new function(){this.test=o.validator}:new RegExp("."),static:o.static||!1,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==(o.definitionSymbol||n),casing:o.casing,def:o.definitionSymbol||n,placeholder:o.placeholder,nativeDef:n,generated:o.generated}):(t.matches.splice(a++,0,{fn:/[a-z]/i.test(i.staticDefinitionSymbol||n)?new RegExp("["+(i.staticDefinitionSymbol||n)+"]",i.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==n&&!0!==r.static,casing:null,def:i.staticDefinitionSymbol||n,placeholder:void 0!==i.staticDefinitionSymbol?n:void 0,nativeDef:(d?"'":"")+n}),d=!1)}}function y(){if(0<f.length){if(v(o=f[f.length-1],a),o.isAlternator){s=f.pop();for(var t=0;t<s.matches.length;t++)s.matches[t].isGroup&&(s.matches[t].isGroup=!1);0<f.length?(o=f[f.length-1]).matches.push(s):h.matches.push(s)}}else v(h,a)}function b(t){var e=new g(!0);return e.openGroup=!1,e.matches=t,e}function _(){if((r=f.pop()).openGroup=!1,void 0!==r)if(0<f.length){if((o=f[f.length-1]).matches.push(r),o.isAlternator){s=f.pop();for(var t=0;t<s.matches.length;t++)s.matches[t].isGroup=!1,s.matches[t].alternatorGroup=!1;0<f.length?(o=f[f.length-1]).matches.push(s):h.matches.push(s)}}else h.matches.push(r);else y()}function x(t){var e=t.pop();return e.isQuantifier&&(e=b([t.pop(),e])),e}for(e&&(i.optionalmarker[0]=void 0,i.optionalmarker[1]=void 0);n=e?u.exec(t):c.exec(t);){if(a=n[0],e)switch(a.charAt(0)){case"?":a="{0,1}";break;case"+":case"*":a="{"+a+"}";break;case"|":if(0===f.length){var w=b(h.matches);w.openGroup=!0,f.push(w),h.matches=[],m=!0}}if(d)y();else switch(a.charAt(0)){case"$":case"^":e||y();break;case"(?=":case"(?!":case"(?<=":case"(?<!":break;case i.escapeChar:d=!0,e&&y();break;case i.optionalmarker[1]:case i.groupmarker[1]:_();break;case i.optionalmarker[0]:f.push(new g(!1,!0));break;case i.groupmarker[0]:f.push(new g(!0));break;case i.quantifiermarker[0]:var k=new g(!1,!1,!0),S=(a=a.replace(/[{}]/g,"")).split("|"),M=S[0].split(","),L=isNaN(M[0])?M[0]:parseInt(M[0]),T=1===M.length?L:isNaN(M[1])?M[1]:parseInt(M[1]);"*"!==L&&"+"!==L||(L="*"===T?0:1),k.quantifier={min:L,max:T,jit:S[1]};var C=0<f.length?f[f.length-1].matches:h.matches;if((n=C.pop()).isAlternator){C.push(n),C=n.matches;var A=new g(!0),D=C.pop();C.push(A),C=A.matches,n=D}n.isGroup||(n=b([n])),C.push(n),C.push(k);break;case i.alternatormarker:if(0<f.length){var E=(o=f[f.length-1]).matches[o.matches.length-1];l=o.openGroup&&(void 0===E.matches||!1===E.isGroup&&!1===E.isAlternator)?f.pop():x(o.matches)}else l=x(h.matches);if(l.isAlternator)f.push(l);else if(l.alternatorGroup?(s=f.pop(),l.alternatorGroup=!1):s=new g(!1,!1,!1,!0),s.matches.push(l),f.push(s),l.openGroup){l.openGroup=!1;var O=new g(!0);O.alternatorGroup=!0,f.push(O)}break;default:y()}}for(m&&_();0<f.length;)r=f.pop(),h.matches.push(r);return 0<h.matches.length&&(function t(n){n&&n.matches&&n.matches.forEach((function(a,r){var o=n.matches[r+1];(void 0===o||void 0===o.matches||!1===o.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,e||(v(a,i.groupmarker[0],0),!0!==a.openGroup&&v(a,i.groupmarker[1]))),t(a)}))}(h),p.push(h)),(i.numericInput||i.isRTL)&&function t(e){for(var n in e.matches=e.matches.reverse(),e.matches)if(Object.prototype.hasOwnProperty.call(e.matches,n)){var a=parseInt(n);if(e.matches[n].isQuantifier&&e.matches[a+1]&&e.matches[a+1].isGroup){var r=e.matches[n];e.matches.splice(n,1),e.matches.splice(a+1,0,r)}void 0!==e.matches[n].matches?e.matches[n]=t(e.matches[n]):e.matches[n]=((o=e.matches[n])===i.optionalmarker[0]?o=i.optionalmarker[1]:o===i.optionalmarker[1]?o=i.optionalmarker[0]:o===i.groupmarker[0]?o=i.groupmarker[1]:o===i.groupmarker[1]&&(o=i.groupmarker[0]),o)}var o;return e}(p[0]),p};var n,a=(n=i(12))&&n.__esModule?n:{default:n}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={9:{validator:"[0-9０-９]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9０-９A-Za-zА-яЁёÀ-ÿµ]"}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(t,e){return"function"==typeof e.onBeforeMask?e.onBeforeMask.call(this,t,e):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[8,9,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0}},function(t,e,i){"use strict";var n=s(i(1)),a=s(i(0)),r=s(i(14));function o(t){return(o="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)}function s(t){return t&&t.__esModule?t:{default:t}}var l=n.default.dependencyLib,c=(new Date).getFullYear(),u={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return m(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return m(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return m(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return m(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return m(Date.prototype.getHours.call(this),2)}],hx:[function(t){return"[0-9]{".concat(t,"}")},Date.prototype.setHours,"hours",function(t){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return m(Date.prototype.getHours.call(this),2)}],Hx:[function(t){return"[0-9]{".concat(t,"}")},Date.prototype.setHours,"hours",function(t){return function(){return m(Date.prototype.getHours.call(this),t)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return m(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return m(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return m(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return m(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},d={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function h(t){var e=new RegExp("\\d+$").exec(t[0]);if(e&&void 0!==e[0]){var i=u[t[0][0]+"x"].slice("");return i[0]=i[0](e[0]),i[3]=i[3](e[0]),i}if(u[t[0]])return u[t[0]]}function f(t){if(!t.tokenizer){var e=[],i=[];for(var n in u)if(/\.*x$/.test(n)){var a=n[0]+"\\d+";-1===i.indexOf(a)&&i.push(a)}else-1===e.indexOf(n[0])&&e.push(n[0]);t.tokenizer="("+(0<i.length?i.join("|")+"|":"")+e.join("+|")+")+?|.",t.tokenizer=new RegExp(t.tokenizer,"g")}return t.tokenizer}function p(t,e,i,n){var a,o,s="";for(f(i).lastIndex=0;a=f(i).exec(t);)if(void 0===e)if(o=h(a))s+="("+o[0]+")";else switch(a[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=(0,r.default)(a[0])}else if(o=h(a))if(!0!==n&&o[3]){s+=o[3].call(e.date)}else o[2]?s+=e["raw"+o[2]]:s+=a[0];else s+=a[0];return s}function m(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}function g(t,e,i){var n,a,r,s={date:new Date(1,0,1)},l=t;function c(t,e,i){t[n]=e.replace(/[^0-9]/g,"0"),t["raw"+n]=e,void 0!==r&&r.call(t.date,"month"==n?parseInt(t[n])-1:t[n])}if("string"==typeof l){for(f(i).lastIndex=0;a=f(i).exec(e);){var d=new RegExp("\\d+$").exec(a[0]),h=d?a[0][0]+"x":a[0],p=void 0;if(d){var m=f(i).lastIndex,g=y(a.index,i);f(i).lastIndex=m,p=l.slice(0,l.indexOf(g.nextMatch[0]))}else p=l.slice(0,h.length);Object.prototype.hasOwnProperty.call(u,h)&&(n=u[h][2],r=u[h][1],c(s,p)),l=l.slice(p.length)}return s}if(l&&"object"===o(l)&&Object.prototype.hasOwnProperty.call(l,"date"))return l}function v(t,e){return p(e.inputFormat,{date:t},e)}function y(t,e){var i,n,a=0,r=0;for(f(e).lastIndex=0;n=f(e).exec(e.inputFormat);){var o=new RegExp("\\d+$").exec(n[0]);if(t<=(a+=r=o?parseInt(o[0]):n[0].length)){i=n,n=f(e).exec(e.inputFormat);break}}return{targetMatchIndex:a-r,nextMatch:n,targetMatch:i}}n.default.extendAliases({datetime:{mask:function(t){return t.numericInput=!1,u.S=t.i18n.ordinalSuffix.join("|"),t.inputFormat=d[t.inputFormat]||t.inputFormat,t.displayFormat=d[t.displayFormat]||t.displayFormat||t.inputFormat,t.outputFormat=d[t.outputFormat]||t.outputFormat||t.inputFormat,t.placeholder=""!==t.placeholder?t.placeholder:t.inputFormat.replace(/[[\]]/,""),t.regex=p(t.inputFormat,void 0,t),t.min=g(t.min,t.inputFormat,t),t.max=g(t.max,t.inputFormat,t),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(t,e,i,n,a,r,o,s){if(s)return!0;if(isNaN(i)&&t[e]!==i){var l=y(e,a);if(l.nextMatch&&l.nextMatch[0]===i&&1<l.targetMatch[0].length){var c=u[l.targetMatch[0]][0];if(new RegExp(c).test("0"+t[e-1]))return t[e]=t[e-1],t[e-1]="0",{fuzzy:!0,buffer:t,refreshFromBuffer:{start:e-1,end:e+1},pos:e+1}}}return!0},postValidation:function(t,e,i,n,a,r,o,s){if(o)return!0;var l,d;if(!1===n)return(l=y(e+1,a)).targetMatch&&l.targetMatchIndex===e&&1<l.targetMatch[0].length&&void 0!==u[l.targetMatch[0]]&&(d=u[l.targetMatch[0]][0],new RegExp(d).test("0"+i))?{insert:[{pos:e,c:"0"},{pos:e+1,c:i}],pos:e+1}:n;if(n.fuzzy&&(t=n.buffer,e=n.pos),(l=y(e,a)).targetMatch&&l.targetMatch[0]&&void 0!==u[l.targetMatch[0]]){d=u[l.targetMatch[0]][0];var h=t.slice(l.targetMatchIndex,l.targetMatchIndex+l.targetMatch[0].length);!1===new RegExp(d).test(h.join(""))&&2===l.targetMatch[0].length&&r.validPositions[l.targetMatchIndex]&&r.validPositions[l.targetMatchIndex+1]&&(r.validPositions[l.targetMatchIndex+1].input="0")}var f=n,m=g(t.join(""),a.inputFormat,a);return f&&m.date.getTime()==m.date.getTime()&&(f=function(t,e,i){if(t.year!==t.rawyear){var n=c.toString(),a=t.rawyear.replace(/[^0-9]/g,""),r=n.slice(0,a.length),o=n.slice(a.length);if(2===a.length&&a===r){var s=new Date(c,t.month-1,t.day);t.day==s.getDate()&&(!i.max||i.max.date.getTime()>=s.getTime())&&(t.date.setFullYear(c),t.year=n,e.insert=[{pos:e.pos+1,c:o[0]},{pos:e.pos+2,c:o[1]}])}}return e}(m,f,a),f=function(t,e,i){if(!isFinite(t.rawday)||"29"==t.day&&!isFinite(t.rawyear)||new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day)return e;if("29"==t.day){var n=y(e.pos,i);if("yyyy"===n.targetMatch[0]&&e.pos-n.targetMatchIndex==2)return e.remove=e.pos+1,e}return!1}(m,f,a),f=function(t,e,i,n,a){if(!e)return e;if(i.min){if(t.rawyear){var r,o=t.rawyear.replace(/[^0-9]/g,""),s=i.min.year.substr(0,o.length);if(o<s){var l=y(e.pos,i);if(o=t.rawyear.substr(0,e.pos-l.targetMatchIndex+1),(s=i.min.year.substr(0,o.length))<=o)return e.remove=l.targetMatchIndex+o.length,e;if(o="yyyy"===l.targetMatch[0]?t.rawyear.substr(1,1):t.rawyear.substr(0,1),s=i.min.year.substr(2,1),r=i.max?i.max.year.substr(2,1):o,1===o.length&&s<=o<=r&&!0!==a)return"yyyy"===l.targetMatch[0]?(e.insert=[{pos:e.pos+1,c:o,strict:!0}],e.caret=e.pos+2,n.validPositions[e.pos].input=i.min.year[1]):(e.insert=[{pos:e.pos+1,c:i.min.year[1],strict:!0},{pos:e.pos+2,c:o,strict:!0}],e.caret=e.pos+3,n.validPositions[e.pos].input=i.min.year[0]),e;e=!1}}e&&t.year&&t.year===t.rawyear&&i.min.date.getTime()==i.min.date.getTime()&&(e=i.min.date.getTime()<=t.date.getTime())}return e&&i.max&&i.max.date.getTime()==i.max.date.getTime()&&(e=i.max.date.getTime()>=t.date.getTime()),e}(m,f,a,r,s)),e&&f&&n.pos!==e?{buffer:p(a.inputFormat,m,a).split(""),refreshFromBuffer:{start:e,end:n.pos}}:f},onKeyDown:function(t,e,i,n){t.ctrlKey&&t.keyCode===a.default.RIGHT&&(this.inputmask._valueSet(v(new Date,n)),l(this).trigger("setvalue"))},onUnMask:function(t,e,i){return e?p(i.outputFormat,g(t,i.inputFormat,i),i,!0):e},casing:function(t,e,i,n){return 0==e.nativeDef.indexOf("[ap]")?t.toLowerCase():0==e.nativeDef.indexOf("[AP]")?t.toUpperCase():t},onBeforeMask:function(t,e){return"[object Date]"===Object.prototype.toString.call(t)&&(t=v(t,e)),t},insertMode:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric"}})},function(t,e,i){"use strict";var n=o(i(1)),a=o(i(0)),r=o(i(14));function o(t){return t&&t.__esModule?t:{default:t}}var s=n.default.dependencyLib;function l(t,e){for(var i="",a=0;a<t.length;a++)n.default.prototype.definitions[t.charAt(a)]||e.definitions[t.charAt(a)]||e.optionalmarker[0]===t.charAt(a)||e.optionalmarker[1]===t.charAt(a)||e.quantifiermarker[0]===t.charAt(a)||e.quantifiermarker[1]===t.charAt(a)||e.groupmarker[0]===t.charAt(a)||e.groupmarker[1]===t.charAt(a)||e.alternatormarker===t.charAt(a)?i+="\\"+t.charAt(a):i+=t.charAt(a);return i}function c(t,e,i,n){if(0<t.length&&0<e&&(!i.digitsOptional||n)){var a=t.indexOf(i.radixPoint),r=!1;i.negationSymbol.back===t[t.length-1]&&(r=!0,t.length--),-1===a&&(t.push(i.radixPoint),a=t.length-1);for(var o=1;o<=e;o++)isFinite(t[a+o])||(t[a+o]="0")}return r&&t.push(i.negationSymbol.back),t}function u(t,e){var i=0;if("+"===t){for(i in e.validPositions);i=parseInt(i)}for(var n in e.tests)if(i<=(n=parseInt(n)))for(var a=0,r=e.tests[n].length;a<r;a++)if((void 0===e.validPositions[n]||"-"===t)&&e.tests[n][a].match.def===t)return n+(void 0!==e.validPositions[n]&&"-"!==t?1:0);return i}function d(t,e){var i=-1;for(var n in e.validPositions){var a=e.validPositions[n];if(a&&a.match.def===t){i=parseInt(n);break}}return i}function h(t,e,i,n,a){var r=e.buffer?e.buffer.indexOf(a.radixPoint):-1,o=-1!==r&&new RegExp("[0-9１-９]").test(t);return a._radixDance&&o&&null==e.validPositions[r]?{insert:{pos:r===i?r+1:r,c:a.radixPoint},pos:i}:o}n.default.extendAliases({numeric:{mask:function(t){t.repeat=0,t.groupSeparator===t.radixPoint&&t.digits&&"0"!==t.digits&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=void 0),1<t.placeholder.length&&(t.placeholder=t.placeholder.charAt(0)),"radixFocus"===t.positionCaretOnClick&&""===t.placeholder&&(t.positionCaretOnClick="lvp");var e="0",i=t.radixPoint;!0===t.numericInput&&void 0===t.__financeInput?(e="1",t.positionCaretOnClick="radixFocus"===t.positionCaretOnClick?"lvp":t.positionCaretOnClick,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t._radixDance=!1,i=","===t.radixPoint?"?":"!",""!==t.radixPoint&&void 0===t.definitions[i]&&(t.definitions[i]={},t.definitions[i].validator="["+t.radixPoint+"]",t.definitions[i].placeholder=t.radixPoint,t.definitions[i].static=!0,t.definitions[i].generated=!0)):(t.__financeInput=!1,t.numericInput=!0);var n,a="[+]";if(a+=l(t.prefix,t),""!==t.groupSeparator?(void 0===t.definitions[t.groupSeparator]&&(t.definitions[t.groupSeparator]={},t.definitions[t.groupSeparator].validator="["+t.groupSeparator+"]",t.definitions[t.groupSeparator].placeholder=t.groupSeparator,t.definitions[t.groupSeparator].static=!0,t.definitions[t.groupSeparator].generated=!0),a+=t._mask(t)):a+="9{+}",void 0!==t.digits&&0!==t.digits){var o=t.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?a+=i+e+"{"+t.digits+"}":(isNaN(t.digits)||0<parseInt(t.digits))&&(t.digitsOptional?(n=a+i+e+"{0,"+t.digits+"}",t.keepStatic=!0):a+=i+e+"{"+t.digits+"}")}return a+=l(t.suffix,t),a+="[-]",n&&(a=[n+l(t.suffix,t)+"[-]",a]),t.greedy=!1,function(t){void 0===t.parseMinMaxOptions&&(null!==t.min&&(t.min=t.min.toString().replace(new RegExp((0,r.default)(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.min=t.min.replace(t.radixPoint,".")),t.min=isFinite(t.min)?parseFloat(t.min):NaN,isNaN(t.min)&&(t.min=Number.MIN_VALUE)),null!==t.max&&(t.max=t.max.toString().replace(new RegExp((0,r.default)(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.max=t.max.replace(t.radixPoint,".")),t.max=isFinite(t.max)?parseFloat(t.max):NaN,isNaN(t.max)&&(t.max=Number.MAX_VALUE)),t.parseMinMaxOptions="done")}(t),a},_mask:function(t){return"("+t.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"numeric",shortcuts:{k:"000",m:"000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",definitions:{0:{validator:h},1:{validator:h,definitionSymbol:"9"},"+":{validator:function(t,e,i,n,a){return a.allowMinus&&("-"===t||t===a.negationSymbol.front)}},"-":{validator:function(t,e,i,n,a){return a.allowMinus&&t===a.negationSymbol.back}}},preValidation:function(t,e,i,n,a,r,o,s){if(!1!==a.__financeInput&&i===a.radixPoint)return!1;var l;if(l=a.shortcuts&&a.shortcuts[i]){if(1<l.length)for(var c=[],h=0;h<l.length;h++)c.push({pos:e+h,c:l[h],strict:!1});return{insert:c}}var f=t.indexOf(a.radixPoint),p=e;if(e=function(t,e,i,n,a){return a._radixDance&&a.numericInput&&e!==a.negationSymbol.back&&t<=i&&(0<i||e==a.radixPoint)&&(void 0===n.validPositions[t-1]||n.validPositions[t-1].input!==a.negationSymbol.back)&&(t-=1),t}(e,i,f,r,a),"-"===i||i===a.negationSymbol.front){if(!0!==a.allowMinus)return!1;var m=!1,g=d("+",r),v=d("-",r);return-1!==g&&(m=[g,v]),!1!==m?{remove:m,caret:p-a.negationSymbol.front.length}:{insert:[{pos:u("+",r),c:a.negationSymbol.front,fromIsValid:!0},{pos:u("-",r),c:a.negationSymbol.back,fromIsValid:void 0}],caret:p+a.negationSymbol.back.length}}if(i===a.groupSeparator)return{caret:p};if(s)return!0;if(-1!==f&&!0===a._radixDance&&!1===n&&i===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||0<parseInt(a.digits))&&f!==e)return{caret:a._radixDance&&e===f-1?f+1:f};if(!1===a.__financeInput)if(n){if(a.digitsOptional)return{rewritePosition:o.end};if(!a.digitsOptional){if(o.begin>f&&o.end<=f)return i===a.radixPoint?{insert:{pos:f+1,c:"0",fromIsValid:!0},rewritePosition:f}:{rewritePosition:f+1};if(o.begin<f)return{rewritePosition:o.begin-1}}}else if(!a.showMaskOnHover&&!a.showMaskOnFocus&&!a.digitsOptional&&0<a.digits&&""===this.inputmask.__valueGet.call(this))return{rewritePosition:f};return{rewritePosition:e}},postValidation:function(t,e,i,n,a,r,o){if(!1===n)return n;if(o)return!0;if(null!==a.min||null!==a.max){var l=a.onUnMask(t.slice().reverse().join(""),void 0,s.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&l<a.min&&(l.toString().length>a.min.toString().length||l<0))return!1;if(null!==a.max&&l>a.max)return!!a.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:c(a.max.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}return n},onUnMask:function(t,e,i){if(""===e&&!0===i.nullable)return e;var n=t.replace(i.prefix,"");return n=(n=n.replace(i.suffix,"")).replace(new RegExp((0,r.default)(i.groupSeparator),"g"),""),""!==i.placeholder.charAt(0)&&(n=n.replace(new RegExp(i.placeholder.charAt(0),"g"),"0")),i.unmaskAsNumber?(""!==i.radixPoint&&-1!==n.indexOf(i.radixPoint)&&(n=n.replace(r.default.call(this,i.radixPoint),".")),n=(n=n.replace(new RegExp("^"+(0,r.default)(i.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(i.negationSymbol.back)+"$"),""),Number(n)):n},isComplete:function(t,e){var i=(e.numericInput?t.slice().reverse():t).join("");return i=(i=(i=(i=(i=i.replace(new RegExp("^"+(0,r.default)(e.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(e.negationSymbol.back)+"$"),"")).replace(e.prefix,"")).replace(e.suffix,"")).replace(new RegExp((0,r.default)(e.groupSeparator)+"([0-9]{3})","g"),"$1"),","===e.radixPoint&&(i=i.replace((0,r.default)(e.radixPoint),".")),isFinite(i)},onBeforeMask:function(t,e){var i=e.radixPoint||",";isFinite(e.digits)&&(e.digits=parseInt(e.digits)),"number"!=typeof t&&"number"!==e.inputType||""===i||(t=t.toString().replace(".",i));var n="-"===t.charAt(0)||t.charAt(0)===e.negationSymbol.front,a=t.split(i),o=a[0].replace(/[^\-0-9]/g,""),s=1<a.length?a[1].replace(/[^0-9]/g,""):"",l=1<a.length;t=o+(""!==s?i+s:s);var u=0;if(""!==i&&(u=e.digitsOptional?e.digits<s.length?e.digits:s.length:e.digits,""!==s||!e.digitsOptional)){var d=Math.pow(10,u||1);t=t.replace((0,r.default)(i),"."),isNaN(parseFloat(t))||(t=(e.roundingFN(parseFloat(t)*d)/d).toFixed(u)),t=t.toString().replace(".",i)}if(0===e.digits&&-1!==t.indexOf(i)&&(t=t.substring(0,t.indexOf(i))),null!==e.min||null!==e.max){var h=t.toString().replace(i,".");null!==e.min&&h<e.min?t=e.min.toString().replace(".",i):null!==e.max&&h>e.max&&(t=e.max.toString().replace(".",i))}return n&&"-"!==t.charAt(0)&&(t="-"+t),c(t.toString().split(""),u,e,l).join("")},onBeforeWrite:function(t,e,i,n){function a(t,e){if(!1!==n.__financeInput||e){var i=t.indexOf(n.radixPoint);-1!==i&&t.splice(i,1)}if(""!==n.groupSeparator)for(;-1!==(i=t.indexOf(n.groupSeparator));)t.splice(i,1);return t}var o,l=function(t,e){var i=new RegExp("(^"+(""!==e.negationSymbol.front?(0,r.default)(e.negationSymbol.front)+"?":"")+(0,r.default)(e.prefix)+")(.*)("+(0,r.default)(e.suffix)+(""!=e.negationSymbol.back?(0,r.default)(e.negationSymbol.back)+"?":"")+"$)").exec(t.slice().reverse().join("")),n=i?i[2]:"",a=!1;return n&&(n=n.split(e.radixPoint.charAt(0))[0],a=new RegExp("^[0"+e.groupSeparator+"]*").exec(n)),!(!a||!(1<a[0].length||0<a[0].length&&a[0].length<n.length))&&a}(e,n);if(l)for(var u=e.join("").lastIndexOf(l[0].split("").reverse().join(""))-(l[0]==l.input?0:1),d=l[0]==l.input?1:0,h=l[0].length-d;0<h;h--)delete this.maskset.validPositions[u+h],delete e[u+h];if(t)switch(t.type){case"blur":case"checkval":if(null!==n.min){var f=n.onUnMask(e.slice().reverse().join(""),void 0,s.extend({},n,{unmaskAsNumber:!0}));if(null!==n.min&&f<n.min)return{refreshFromBuffer:!0,buffer:c(n.min.toString().replace(".",n.radixPoint).split(""),n.digits,n).reverse()}}if(e[e.length-1]===n.negationSymbol.front){var p=new RegExp("(^"+(""!=n.negationSymbol.front?(0,r.default)(n.negationSymbol.front)+"?":"")+(0,r.default)(n.prefix)+")(.*)("+(0,r.default)(n.suffix)+(""!=n.negationSymbol.back?(0,r.default)(n.negationSymbol.back)+"?":"")+"$)").exec(a(e.slice(),!0).reverse().join(""));0==(p?p[2]:"")&&(o={refreshFromBuffer:!0,buffer:[0]})}else""!==n.radixPoint&&e[0]===n.radixPoint&&(o&&o.buffer?o.buffer.shift():(e.shift(),o={refreshFromBuffer:!0,buffer:a(e)}));if(n.enforceDigitsOnBlur){var m=(o=o||{})&&o.buffer||e.slice().reverse();o.refreshFromBuffer=!0,o.buffer=c(m,n.digits,n,!0).reverse()}}return o},onKeyDown:function(t,e,i,n){var r,o=s(this);if(t.ctrlKey)switch(t.keyCode){case a.default.UP:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(n.step)),o.trigger("setvalue"),!1;case a.default.DOWN:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(n.step)),o.trigger("setvalue"),!1}if(!t.shiftKey&&(t.keyCode===a.default.DELETE||t.keyCode===a.default.BACKSPACE||t.keyCode===a.default.BACKSPACE_SAFARI)&&i.begin!==e.length){if(e[t.keyCode===a.default.DELETE?i.begin-1:i.end]===n.negationSymbol.front)return r=e.slice().reverse(),""!==n.negationSymbol.front&&r.shift(),""!==n.negationSymbol.back&&r.pop(),o.trigger("setvalue",[r.join(""),i.begin]),!1;if(!0===n._radixDance){var l=e.indexOf(n.radixPoint);if(n.digitsOptional){if(0===l)return(r=e.slice().reverse()).pop(),o.trigger("setvalue",[r.join(""),i.begin>=r.length?r.length:i.begin]),!1}else if(-1!==l&&(i.begin<l||i.end<l||t.keyCode===a.default.DELETE&&i.begin===l))return i.begin!==i.end||t.keyCode!==a.default.BACKSPACE&&t.keyCode!==a.default.BACKSPACE_SAFARI||i.begin++,(r=e.slice().reverse()).splice(r.length-i.begin,i.begin-i.end+1),r=c(r,n.digits,n).join(""),o.trigger("setvalue",[r,i.begin>=r.length?l+1:i.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(t){return"("+t.groupSeparator+"99){*|1}("+t.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},function(t,e,i){"use strict";var n=h(i(13)),a=h(i(1));function r(t){return(r="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)}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,d(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)})(t)}function l(t,e,i){return(l=c()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var a=new(Function.bind.apply(t,n));return i&&u(a,i.prototype),a}).apply(null,arguments)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t){return t&&t.__esModule?t:{default:t}}var f=n.default.document;if(f&&f.head&&f.head.attachShadow&&n.default.customElements&&void 0===n.default.customElements.get("input-mask")){var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(r,t);var e,i,n=(e=r,i=c(),function(){var t,n=d(e);if(i){var a=d(this).constructor;t=Reflect.construct(n,arguments,a)}else t=n.apply(this,arguments);return o(this,t)});function r(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=(t=n.call(this)).getAttributeNames(),i=t.attachShadow({mode:"closed"}),o=f.createElement("input");for(var s in o.type="text",i.appendChild(o),e)Object.prototype.hasOwnProperty.call(e,s)&&o.setAttribute(e[s],t.getAttribute(e[s]));var l=new a.default;return l.dataAttribute="",l.mask(o),o.inputmask.shadowRoot=i,t}return r}(s(HTMLElement));n.default.customElements.define("input-mask",p)}},function(t,e,i){"use strict";var n=o(i(8)),a=o(i(1));function r(t){return(r="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)}function o(t){return t&&t.__esModule?t:{default:t}}void 0===n.default.fn.inputmask&&(n.default.fn.inputmask=function(t,e){var i,o=this[0];if(void 0===e&&(e={}),"string"==typeof t)switch(t){case"unmaskedvalue":return o&&o.inputmask?o.inputmask.unmaskedvalue():(0,n.default)(o).val();case"remove":return this.each((function(){this.inputmask&&this.inputmask.remove()}));case"getemptymask":return o&&o.inputmask?o.inputmask.getemptymask():"";case"hasMaskedValue":return!(!o||!o.inputmask)&&o.inputmask.hasMaskedValue();case"isComplete":return!o||!o.inputmask||o.inputmask.isComplete();case"getmetadata":return o&&o.inputmask?o.inputmask.getmetadata():void 0;case"setvalue":a.default.setValue(o,e);break;case"option":if("string"!=typeof e)return this.each((function(){if(void 0!==this.inputmask)return this.inputmask.option(e)}));if(o&&void 0!==o.inputmask)return o.inputmask.option(e);break;default:return e.alias=t,i=new a.default(e),this.each((function(){i.mask(this)}))}else{if(Array.isArray(t))return e.alias=t,i=new a.default(e),this.each((function(){i.mask(this)}));if("object"==r(t))return i=new a.default(t),void 0===t.mask&&void 0===t.alias?this.each((function(){if(void 0!==this.inputmask)return this.inputmask.option(t);i.mask(this)})):this.each((function(){i.mask(this)}));if(void 0===t)return this.each((function(){(i=new a.default(e)).mask(this)}))}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,a=(n=i(15))&&n.__esModule?n:{default:n};i(23);var r=a.default;e.default=r}],installedModules={},__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(t,e,i){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.t=function(t,e){if(1&e&&(t=__webpack_require__(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(__webpack_require__.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)__webpack_require__.d(i,n,function(e){return t[e]}.bind(null,n));return i},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,"a",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=24);function __webpack_require__(t){if(installedModules[t])return installedModules[t].exports;var e=installedModules[t]={i:t,l:!1,exports:{}};return modules[t].call(e.exports,e,e.exports,__webpack_require__),e.l=!0,e.exports}var modules,installedModules})),
/*! nouislider - 14.6.3 - 11/19/2020 */
function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():window.noUiSlider=t()}((function(){"use strict";var t="14.6.3";function e(t){t.parentElement.removeChild(t)}function i(t){return null!=t}function n(t){t.preventDefault()}function a(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function r(t,e,i){i>0&&(c(t,e),setTimeout((function(){u(t,e)}),i))}function o(t){return Math.max(Math.min(t,100),0)}function s(t){return Array.isArray(t)?t:[t]}function l(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function c(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function u(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function d(t){var e=void 0!==window.pageXOffset,i="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:i?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:i?t.documentElement.scrollTop:t.body.scrollTop}}function h(t,e){return 100/(e-t)}function f(t,e,i){return 100*e/(t[i+1]-t[i])}function p(t,e){for(var i=1;t>=e[i];)i+=1;return i}function m(t,e,i){if(i>=t.slice(-1)[0])return 100;var n=p(i,t),a=t[n-1],r=t[n],o=e[n-1],s=e[n];return o+function(t,e){return f(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}([a,r],i)/h(o,s)}function g(t,e,i,n){if(100===n)return n;var a=p(n,t),r=t[a-1],o=t[a];return i?n-r>(o-r)/2?o:r:e[a-1]?t[a-1]+function(t,e){return Math.round(t/e)*e}(n-t[a-1],e[a-1]):n}function v(t,e,i){var n;if("number"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("noUiSlider (14.6.3): 'range' contains invalid value.");if(!a(n="min"===t?0:"max"===t?100:parseFloat(t))||!a(e[0]))throw new Error("noUiSlider (14.6.3): 'range' value isn't numeric.");i.xPct.push(n),i.xVal.push(e[0]),n?i.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(i.xSteps[0]=e[1]),i.xHighestCompleteStep.push(0)}function y(t,e,i){if(e)if(i.xVal[t]!==i.xVal[t+1]){i.xSteps[t]=f([i.xVal[t],i.xVal[t+1]],e,0)/h(i.xPct[t],i.xPct[t+1]);var n=(i.xVal[t+1]-i.xVal[t])/i.xNumSteps[t],a=Math.ceil(Number(n.toFixed(3))-1),r=i.xVal[t]+i.xNumSteps[t]*a;i.xHighestCompleteStep[t]=r}else i.xSteps[t]=i.xHighestCompleteStep[t]=i.xVal[t]}function b(t,e,i){var n;this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var a=[];for(n in t)t.hasOwnProperty(n)&&a.push([t[n],n]);for(a.length&&"object"==typeof a[0][0]?a.sort((function(t,e){return t[0][0]-e[0][0]})):a.sort((function(t,e){return t[0]-e[0]})),n=0;n<a.length;n++)v(a[n][1],a[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)y(n,this.xNumSteps[n],this)}b.prototype.getDistance=function(t){var e,i=[];for(e=0;e<this.xNumSteps.length-1;e++){var n=this.xNumSteps[e];if(n&&t/n%1!=0)throw new Error("noUiSlider (14.6.3): 'limit', 'margin' and 'padding' of "+this.xPct[e]+"% range must be divisible by step.");i[e]=f(this.xVal,t,e)}return i},b.prototype.getAbsoluteDistance=function(t,e,i){var n,a=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[a+1];)a++;else t===this.xPct[this.xPct.length-1]&&(a=this.xPct.length-2);i||t!==this.xPct[a+1]||a++;var r=1,o=e[a],s=0,l=0,c=0,u=0;for(n=i?(t-this.xPct[a])/(this.xPct[a+1]-this.xPct[a]):(this.xPct[a+1]-t)/(this.xPct[a+1]-this.xPct[a]);o>0;)s=this.xPct[a+1+u]-this.xPct[a+u],e[a+u]*r+100-100*n>100?(l=s*n,r=(o-100*n)/e[a+u],n=1):(l=e[a+u]*s/100*r,r=0),i?(c-=l,this.xPct.length+u>=1&&u--):(c+=l,this.xPct.length-u>=1&&u++),o=e[a+u]*r;return t+c},b.prototype.toStepping=function(t){return t=m(this.xVal,this.xPct,t)},b.prototype.fromStepping=function(t){return function(t,e,i){if(i>=100)return t.slice(-1)[0];var n=p(i,e),a=t[n-1],r=t[n],o=e[n-1];return function(t,e){return e*(t[1]-t[0])/100+t[0]}([a,r],(i-o)*h(o,e[n]))}(this.xVal,this.xPct,t)},b.prototype.getStep=function(t){return t=g(this.xPct,this.xSteps,this.snap,t)},b.prototype.getDefaultStep=function(t,e,i){var n=p(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/i},b.prototype.getNearbySteps=function(t){var e=p(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e],step:this.xNumSteps[e],highestStep:this.xHighestCompleteStep[e]}}},b.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(l);return Math.max.apply(null,t)},b.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var _={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number},x={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},w=".__tooltips",k=".__aria";function S(t){if(function(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}(t))return!0;throw new Error("noUiSlider (14.6.3): 'format' requires 'to' and 'from' methods.")}function M(t,e){if(!a(e))throw new Error("noUiSlider (14.6.3): 'step' is not numeric.");t.singleStep=e}function L(t,e){if(!a(e))throw new Error("noUiSlider (14.6.3): 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function T(t,e){if(!a(e))throw new Error("noUiSlider (14.6.3): 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function C(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (14.6.3): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (14.6.3): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider (14.6.3): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new b(e,t.snap,t.singleStep)}function A(t,e){if(e=s(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (14.6.3): 'start' option is incorrect.");t.handles=e.length,t.start=e}function D(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (14.6.3): 'snap' option must be a boolean.")}function E(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (14.6.3): 'animate' option must be a boolean.")}function O(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (14.6.3): 'animationDuration' option must be a number.")}function P(t,e){var i,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(i=1;i<t.handles;i++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider (14.6.3): 'connect' option doesn't match handle count.");n=e}t.connect=n}function Y(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider (14.6.3): 'orientation' option is invalid.")}}function I(t,e){if(!a(e))throw new Error("noUiSlider (14.6.3): 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function N(t,e){if(!a(e))throw new Error("noUiSlider (14.6.3): 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider (14.6.3): 'limit' option is only supported on linear sliders with 2 or more handles.")}function H(t,e){var i;if(!a(e)&&!Array.isArray(e))throw new Error("noUiSlider (14.6.3): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!a(e[0])&&!a(e[1]))throw new Error("noUiSlider (14.6.3): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],i=0;i<t.spectrum.xNumSteps.length-1;i++)if(t.padding[0][i]<0||t.padding[1][i]<0)throw new Error("noUiSlider (14.6.3): 'padding' option must be a positive number(s).");var n=e[0]+e[1],r=t.spectrum.xVal[0];if(n/(t.spectrum.xVal[t.spectrum.xVal.length-1]-r)>1)throw new Error("noUiSlider (14.6.3): 'padding' option must not exceed 100% of the range.")}}function j(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (14.6.3): 'direction' option was not recognized.")}}function F(t,e){if("string"!=typeof e)throw new Error("noUiSlider (14.6.3): 'behaviour' must be a string containing options.");var i=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,a=e.indexOf("fixed")>=0,r=e.indexOf("snap")>=0,o=e.indexOf("hover")>=0,s=e.indexOf("unconstrained")>=0;if(a){if(2!==t.handles)throw new Error("noUiSlider (14.6.3): 'fixed' behaviour must be used with 2 handles");I(t,t.start[1]-t.start[0])}if(s&&(t.margin||t.limit))throw new Error("noUiSlider (14.6.3): 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:i||r,drag:n,fixed:a,snap:r,hover:o,unconstrained:s}}function R(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var i=0;i<t.handles;i++)t.tooltips.push(!0)}else{if(t.tooltips=s(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider (14.6.3): must pass a formatter for all handles.");t.tooltips.forEach((function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider (14.6.3): 'tooltips' must be passed a formatter or 'false'.")}))}}function z(t,e){t.ariaFormat=e,S(e)}function $(t,e){t.format=e,S(e)}function B(t,e){if(t.keyboardSupport=e,"boolean"!=typeof e)throw new Error("noUiSlider (14.6.3): 'keyboardSupport' option must be a boolean.")}function W(t,e){t.documentElement=e}function V(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider (14.6.3): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function q(t,e){if("object"!=typeof e)throw new Error("noUiSlider (14.6.3): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix)for(var i in t.cssClasses={},e)e.hasOwnProperty(i)&&(t.cssClasses[i]=t.cssPrefix+e[i]);else t.cssClasses=e}function U(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:_,format:_},n={step:{r:!1,t:M},keyboardPageMultiplier:{r:!1,t:L},keyboardDefaultStep:{r:!1,t:T},start:{r:!0,t:A},connect:{r:!0,t:P},direction:{r:!0,t:j},snap:{r:!1,t:D},animate:{r:!1,t:E},animationDuration:{r:!1,t:O},range:{r:!0,t:C},orientation:{r:!1,t:Y},margin:{r:!1,t:I},limit:{r:!1,t:N},padding:{r:!1,t:H},behaviour:{r:!0,t:F},ariaFormat:{r:!1,t:z},format:{r:!1,t:$},tooltips:{r:!1,t:R},keyboardSupport:{r:!0,t:B},documentElement:{r:!1,t:W},cssPrefix:{r:!0,t:V},cssClasses:{r:!0,t:q}},a={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:x,keyboardPageMultiplier:5,keyboardDefaultStep:10};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(n).forEach((function(r){if(!i(t[r])&&void 0===a[r]){if(n[r].r)throw new Error("noUiSlider (14.6.3): '"+r+"' is required.");return!0}n[r].t(e,i(t[r])?t[r]:a[r])})),e.pips=t.pips;var r=document.createElement("div"),o=void 0!==r.style.msTransform,s=void 0!==r.style.transform;e.transformRule=s?"transform":o?"msTransform":"webkitTransform";return e.style=[["left","top"],["right","bottom"]][e.dir][e.ort],e}function X(t,i,a){var l,h,f,p,m,g,v,y,b=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},_=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),x=t,S=i.spectrum,M=[],L=[],T=[],C=0,A={},D=t.ownerDocument,E=i.documentElement||D.documentElement,O=D.body,P="rtl"===D.dir||1===i.ort?0:100;function Y(t,e){var i=D.createElement("div");return e&&c(i,e),t.appendChild(i),i}function I(t,e){var n=Y(t,i.cssClasses.origin),a=Y(n,i.cssClasses.handle);return Y(a,i.cssClasses.touchArea),a.setAttribute("data-handle",e),i.keyboardSupport&&(a.setAttribute("tabindex","0"),a.addEventListener("keydown",(function(t){return function(t,e){if(j()||F(e))return!1;var n=["Left","Right"],a=["Down","Up"],r=["PageDown","PageUp"],o=["Home","End"];i.dir&&!i.ort?n.reverse():i.ort&&!i.dir&&(a.reverse(),r.reverse());var s,l=t.key.replace("Arrow",""),c=l===r[0],u=l===r[1],d=l===a[0]||l===n[0]||c,h=l===a[1]||l===n[1]||u,f=l===o[0],p=l===o[1];if(!(d||h||f||p))return!0;if(t.preventDefault(),h||d){var m=i.keyboardPageMultiplier,g=d?0:1,v=pt(e)[g];if(null===v)return!1;!1===v&&(v=S.getDefaultStep(L[e],d,i.keyboardDefaultStep)),(u||c)&&(v*=m),v=Math.max(v,1e-7),v*=d?-1:1,s=M[e]+v}else s=p?i.spectrum.xVal[i.spectrum.xVal.length-1]:i.spectrum.xVal[0];return ct(e,S.toStepping(s),!0,!0),nt("slide",e),nt("update",e),nt("change",e),nt("set",e),!1}(t,e)}))),a.setAttribute("role","slider"),a.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===e?c(a,i.cssClasses.handleLower):e===i.handles-1&&c(a,i.cssClasses.handleUpper),n}function N(t,e){return!!e&&Y(t,i.cssClasses.connect)}function H(t,e){return!!i.tooltips[e]&&Y(t.firstChild,i.cssClasses.tooltip)}function j(){return x.hasAttribute("disabled")}function F(t){return h[t].hasAttribute("disabled")}function R(){m&&(it("update"+w),m.forEach((function(t){t&&e(t)})),m=null)}function z(){R(),m=h.map(H),et("update"+w,(function(t,e,n){if(m[e]){var a=t[e];!0!==i.tooltips[e]&&(a=i.tooltips[e].to(n[e])),m[e].innerHTML=a}}))}function $(t,e,n){var a=D.createElement("div"),r=[];r[0]=i.cssClasses.valueNormal,r[1]=i.cssClasses.valueLarge,r[2]=i.cssClasses.valueSub;var o=[];o[0]=i.cssClasses.markerNormal,o[1]=i.cssClasses.markerLarge,o[2]=i.cssClasses.markerSub;var s=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],l=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];function u(t,e){var n=e===i.cssClasses.value,a=n?r:o;return e+" "+(n?s:l)[i.ort]+" "+a[t]}return c(a,i.cssClasses.pips),c(a,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach((function(r){!function(t,r,o){if(-1!==(o=e?e(r,o):o)){var s=Y(a,!1);s.className=u(o,i.cssClasses.marker),s.style[i.style]=t+"%",o>0&&((s=Y(a,!1)).className=u(o,i.cssClasses.value),s.setAttribute("data-value",r),s.style[i.style]=t+"%",s.innerHTML=n.to(r))}}(r,t[r][0],t[r][1])})),a}function B(){p&&(e(p),p=null)}function W(t){B();var e=t.mode,i=t.density||1,n=t.filter||!1,a=function(t,e,i){if("range"===t||"steps"===t)return S.xVal;if("count"===t){if(e<2)throw new Error("noUiSlider (14.6.3): 'values' (>= 2) required for mode 'count'.");var n=e-1,a=100/n;for(e=[];n--;)e[n]=n*a;e.push(100),t="positions"}return"positions"===t?e.map((function(t){return S.fromStepping(i?S.getStep(t):t)})):"values"===t?i?e.map((function(t){return S.fromStepping(S.getStep(S.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1),r=function(t,e,i){var n,a={},r=S.xVal[0],o=S.xVal[S.xVal.length-1],s=!1,l=!1,c=0;return n=i.slice().sort((function(t,e){return t-e})),(i=n.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==r&&(i.unshift(r),s=!0),i[i.length-1]!==o&&(i.push(o),l=!0),i.forEach((function(n,r){var o,u,d,h,f,p,m,g,v,y,b=n,_=i[r+1],x="steps"===e;if(x&&(o=S.xNumSteps[r]),o||(o=_-b),!1!==b)for(void 0===_&&(_=b),o=Math.max(o,1e-7),u=b;u<=_;u=(u+o).toFixed(7)/1){for(g=(f=(h=S.toStepping(u))-c)/t,y=f/(v=Math.round(g)),d=1;d<=v;d+=1)a[(p=c+d*y).toFixed(5)]=[S.fromStepping(p),0];m=i.indexOf(u)>-1?1:x?2:0,!r&&s&&u!==_&&(m=0),u===_&&l||(a[h.toFixed(5)]=[u,m]),c=h}})),a}(i,e,a),o=t.format||{to:Math.round};return p=x.appendChild($(r,n,o))}function V(){var t=l.getBoundingClientRect(),e="offset"+["Width","Height"][i.ort];return 0===i.ort?t.width||l[e]:t.height||l[e]}function q(t,e,n,a){var r=function(r){return!!(r=function(t,e,i){var n,a,r=0===t.type.indexOf("touch"),o=0===t.type.indexOf("mouse"),s=0===t.type.indexOf("pointer");0===t.type.indexOf("MSPointer")&&(s=!0);if("mousedown"===t.type&&!t.buttons&&!t.touches)return!1;if(r){var l=function(t){return t.target===i||i.contains(t.target)||t.target.shadowRoot&&t.target.shadowRoot.contains(i)};if("touchstart"===t.type){var c=Array.prototype.filter.call(t.touches,l);if(c.length>1)return!1;n=c[0].pageX,a=c[0].pageY}else{var u=Array.prototype.find.call(t.changedTouches,l);if(!u)return!1;n=u.pageX,a=u.pageY}}e=e||d(D),(o||s)&&(n=t.clientX+e.x,a=t.clientY+e.y);return t.pageOffset=e,t.points=[n,a],t.cursor=o||s,t}(r,a.pageOffset,a.target||e))&&(!(j()&&!a.doNotReject)&&(o=x,s=i.cssClasses.tap,!((o.classList?o.classList.contains(s):new RegExp("\\b"+s+"\\b").test(o.className))&&!a.doNotReject)&&(!(t===b.start&&void 0!==r.buttons&&r.buttons>1)&&((!a.hover||!r.buttons)&&(_||r.preventDefault(),r.calcPoint=r.points[i.ort],void n(r,a))))));var o,s},o=[];return t.split(" ").forEach((function(t){e.addEventListener(t,r,!!_&&{passive:!0}),o.push([t,r])})),o}function X(t){var e,n,a,r,s,c,u=100*(t-(e=l,n=i.ort,a=e.getBoundingClientRect(),r=e.ownerDocument,s=r.documentElement,c=d(r),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(c.x=0),n?a.top+c.y-s.clientTop:a.left+c.x-s.clientLeft))/V();return u=o(u),i.dir?100-u:u}function G(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&Z(t,e)}function K(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return Z(t,e);var n=(i.dir?-1:1)*(t.calcPoint-e.startCalcPoint);ot(n>0,100*n/e.baseSize,e.locations,e.handleNumbers)}function Z(t,e){e.handle&&(u(e.handle,i.cssClasses.active),C-=1),e.listeners.forEach((function(t){E.removeEventListener(t[0],t[1])})),0===C&&(u(x,i.cssClasses.drag),lt(),t.cursor&&(O.style.cursor="",O.removeEventListener("selectstart",n))),e.handleNumbers.forEach((function(t){nt("change",t),nt("set",t),nt("end",t)}))}function J(t,e){if(e.handleNumbers.some(F))return!1;var a;1===e.handleNumbers.length&&(a=h[e.handleNumbers[0]].children[0],C+=1,c(a,i.cssClasses.active));t.stopPropagation();var r=[],o=q(b.move,E,K,{target:t.target,handle:a,listeners:r,startCalcPoint:t.calcPoint,baseSize:V(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:L.slice()}),s=q(b.end,E,Z,{target:t.target,handle:a,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),l=q("mouseout",E,G,{target:t.target,handle:a,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers});r.push.apply(r,o.concat(s,l)),t.cursor&&(O.style.cursor=getComputedStyle(t.target).cursor,h.length>1&&c(x,i.cssClasses.drag),O.addEventListener("selectstart",n,!1)),e.handleNumbers.forEach((function(t){nt("start",t)}))}function Q(t){t.stopPropagation();var e=X(t.calcPoint),n=function(t){var e=100,i=!1;return h.forEach((function(n,a){if(!F(a)){var r=L[a],o=Math.abs(r-t);(o<e||o<=e&&t>r||100===o&&100===e)&&(i=a,e=o)}})),i}(e);if(!1===n)return!1;i.events.snap||r(x,i.cssClasses.tap,i.animationDuration),ct(n,e,!0,!0),lt(),nt("slide",n,!0),nt("update",n,!0),nt("change",n,!0),nt("set",n,!0),i.events.snap&&J(t,{handleNumbers:[n]})}function tt(t){var e=X(t.calcPoint),i=S.getStep(e),n=S.fromStepping(i);Object.keys(A).forEach((function(t){"hover"===t.split(".")[0]&&A[t].forEach((function(t){t.call(g,n)}))}))}function et(t,e){A[t]=A[t]||[],A[t].push(e),"update"===t.split(".")[0]&&h.forEach((function(t,e){nt("update",e)}))}function it(t){var e=t&&t.split(".")[0],i=e?t.substring(e.length):t;Object.keys(A).forEach((function(t){var n=t.split(".")[0],a=t.substring(n.length);e&&e!==n||i&&i!==a||function(t){return t===k||t===w}(a)&&i!==a||delete A[t]}))}function nt(t,e,n){Object.keys(A).forEach((function(a){var r=a.split(".")[0];t===r&&A[a].forEach((function(t){t.call(g,M.map(i.format.to),e,M.slice(),n||!1,L.slice(),g)}))}))}function at(t,e,n,a,r,s){var l;return h.length>1&&!i.events.unconstrained&&(a&&e>0&&(l=S.getAbsoluteDistance(t[e-1],i.margin,0),n=Math.max(n,l)),r&&e<h.length-1&&(l=S.getAbsoluteDistance(t[e+1],i.margin,1),n=Math.min(n,l))),h.length>1&&i.limit&&(a&&e>0&&(l=S.getAbsoluteDistance(t[e-1],i.limit,0),n=Math.min(n,l)),r&&e<h.length-1&&(l=S.getAbsoluteDistance(t[e+1],i.limit,1),n=Math.max(n,l))),i.padding&&(0===e&&(l=S.getAbsoluteDistance(0,i.padding[0],0),n=Math.max(n,l)),e===h.length-1&&(l=S.getAbsoluteDistance(100,i.padding[1],1),n=Math.min(n,l))),!((n=o(n=S.getStep(n)))===t[e]&&!s)&&n}function rt(t,e){var n=i.ort;return(n?e:t)+", "+(n?t:e)}function ot(t,e,i,n){var a=i.slice(),r=[!t,t],o=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach((function(t,i){var n=at(a,t,a[t]+e,r[i],o[i],!1);!1===n?e=0:(e=n-a[t],a[t]=n)})):r=o=[!0];var s=!1;n.forEach((function(t,n){s=ct(t,i[t]+e,r[n],o[n])||s})),s&&n.forEach((function(t){nt("update",t),nt("slide",t)}))}function st(t,e){return i.dir?100-t-e:t}function lt(){T.forEach((function(t){var e=L[t]>50?-1:1,i=3+(h.length+e*t);h[t].style.zIndex=i}))}function ct(t,e,n,a,r){return r||(e=at(L,t,e,n,a,!1)),!1!==e&&(function(t,e){L[t]=e,M[t]=S.fromStepping(e);var n="translate("+rt(10*(st(e,0)-P)+"%","0")+")";h[t].style[i.transformRule]=n,ut(t),ut(t+1)}(t,e),!0)}function ut(t){if(f[t]){var e=0,n=100;0!==t&&(e=L[t-1]),t!==f.length-1&&(n=L[t]);var a=n-e,r="translate("+rt(st(e,a)+"%","0")+")",o="scale("+rt(a/100,"1")+")";f[t].style[i.transformRule]=r+" "+o}}function dt(t,e){return null===t||!1===t||void 0===t?L[e]:("number"==typeof t&&(t=String(t)),t=i.format.from(t),!1===(t=S.toStepping(t))||isNaN(t)?L[e]:t)}function ht(t,e,n){var a=s(t),o=void 0===L[0];e=void 0===e||!!e,i.animate&&!o&&r(x,i.cssClasses.tap,i.animationDuration),T.forEach((function(t){ct(t,dt(a[t],t),!0,!1,n)}));for(var l=1===T.length?0:1;l<T.length;++l)T.forEach((function(t){ct(t,L[t],!0,!0,n)}));lt(),T.forEach((function(t){nt("update",t),null!==a[t]&&e&&nt("set",t)}))}function ft(){var t=M.map(i.format.to);return 1===t.length?t[0]:t}function pt(t){var e=L[t],n=S.getNearbySteps(e),a=M[t],r=n.thisStep.step,o=null;if(i.snap)return[a-n.stepBefore.startValue||null,n.stepAfter.startValue-a||null];!1!==r&&a+r>n.stepAfter.startValue&&(r=n.stepAfter.startValue-a),o=a>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&a-n.stepBefore.highestStep,100===e?r=null:0===e&&(o=null);var s=S.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,r]}return c(v=x,i.cssClasses.target),0===i.dir?c(v,i.cssClasses.ltr):c(v,i.cssClasses.rtl),0===i.ort?c(v,i.cssClasses.horizontal):c(v,i.cssClasses.vertical),c(v,"rtl"===getComputedStyle(v).direction?i.cssClasses.textDirectionRtl:i.cssClasses.textDirectionLtr),l=Y(v,i.cssClasses.base),function(t,e){var n=Y(e,i.cssClasses.connects);h=[],(f=[]).push(N(n,t[0]));for(var a=0;a<i.handles;a++)h.push(I(e,a)),T[a]=a,f.push(N(n,t[a+1]))}(i.connect,l),(y=i.events).fixed||h.forEach((function(t,e){q(b.start,t.children[0],J,{handleNumbers:[e]})})),y.tap&&q(b.start,l,Q,{}),y.hover&&q(b.move,l,tt,{hover:!0}),y.drag&&f.forEach((function(t,e){if(!1!==t&&0!==e&&e!==f.length-1){var n=h[e-1],a=h[e],r=[t];c(t,i.cssClasses.draggable),y.fixed&&(r.push(n.children[0]),r.push(a.children[0])),r.forEach((function(t){q(b.start,t,J,{handles:[n,a],handleNumbers:[e-1,e]})}))}})),ht(i.start),i.pips&&W(i.pips),i.tooltips&&z(),it("update"+k),et("update"+k,(function(t,e,n,a,r){T.forEach((function(t){var e=h[t],a=at(L,t,0,!0,!0,!0),o=at(L,t,100,!0,!0,!0),s=r[t],l=i.ariaFormat.to(n[t]);a=S.fromStepping(a).toFixed(1),o=S.fromStepping(o).toFixed(1),s=S.fromStepping(s).toFixed(1),e.children[0].setAttribute("aria-valuemin",a),e.children[0].setAttribute("aria-valuemax",o),e.children[0].setAttribute("aria-valuenow",s),e.children[0].setAttribute("aria-valuetext",l)}))})),g={destroy:function(){for(var t in it(k),it(w),i.cssClasses)i.cssClasses.hasOwnProperty(t)&&u(x,i.cssClasses[t]);for(;x.firstChild;)x.removeChild(x.firstChild);delete x.noUiSlider},steps:function(){return T.map(pt)},on:et,off:it,get:ft,set:ht,setHandle:function(t,e,i,n){if(!((t=Number(t))>=0&&t<T.length))throw new Error("noUiSlider (14.6.3): invalid handle number, got: "+t);ct(t,dt(e,t),!0,!0,n),nt("update",t),i&&nt("set",t)},reset:function(t){ht(i.start,t)},__moveHandles:function(t,e,i){ot(t,e,L,i)},options:a,updateOptions:function(t,e){var n=ft(),r=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];r.forEach((function(e){void 0!==t[e]&&(a[e]=t[e])}));var o=U(a);r.forEach((function(e){void 0!==t[e]&&(i[e]=o[e])})),S=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips?W(i.pips):B(),i.tooltips?z():R(),L=[],ht(t.start||n,e)},target:x,removePips:B,removeTooltips:R,getTooltips:function(){return m},getOrigins:function(){return h},pips:W}}return{__spectrum:b,version:t,cssClasses:x,create:function(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider (14.6.3): create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider (14.6.3): Slider was already initialized.");var i=X(t,U(e),e);return t.noUiSlider=i,i}}})),
/*!
	autosize 4.0.2
	license: MIT
	http://www.jacklmoore.com/autosize
*/
function(t,e){if("function"==typeof define&&define.amd)define(["module","exports"],e);else if("undefined"!=typeof exports)e(module,exports);else{var i={exports:{}};e(i,i.exports),t.autosize=i.exports}}(this,(function(t,e){"use strict";var i,n,a="function"==typeof Map?new Map:(i=[],n=[],{has:function(t){return i.indexOf(t)>-1},get:function(t){return n[i.indexOf(t)]},set:function(t,e){-1===i.indexOf(t)&&(i.push(t),n.push(e))},delete:function(t){var e=i.indexOf(t);e>-1&&(i.splice(e,1),n.splice(e,1))}}),r=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){r=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function o(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!a.has(t)){var e,i=null,n=null,o=null,s=function(){t.clientWidth!==n&&d()},l=function(e){window.removeEventListener("resize",s,!1),t.removeEventListener("input",d,!1),t.removeEventListener("keyup",d,!1),t.removeEventListener("autosize:destroy",l,!1),t.removeEventListener("autosize:update",d,!1),Object.keys(e).forEach((function(i){t.style[i]=e[i]})),a.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",l,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),t.addEventListener("input",d,!1),t.addEventListener("autosize:update",d,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",a.set(t,{destroy:l,update:d}),"vertical"===(e=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),i="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(i)&&(i=0),d()}function c(e){var i=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=i,t.style.overflowY=e}function u(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),a=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+i+"px",n=t.clientWidth,e.forEach((function(t){t.node.scrollTop=t.scrollTop})),a&&(document.documentElement.scrollTop=a)}}function d(){u();var e=Math.round(parseFloat(t.style.height)),i=window.getComputedStyle(t,null),n="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):t.offsetHeight;if(n<e?"hidden"===i.overflowY&&(c("scroll"),u(),n="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==i.overflowY&&(c("hidden"),u(),n="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),o!==n){o=n;var a=r("autosize:resized");try{t.dispatchEvent(a)}catch(t){}}}}function s(t){var e=a.get(t);e&&e.destroy()}function l(t){var e=a.get(t);e&&e.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(t){return t}).destroy=function(t){return t},c.update=function(t){return t}):((c=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return o(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],s),t},c.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],l),t}),e.default=c,t.exports=e.default})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,(function(){return i={},t.m=e=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var i=t.hasAttribute("readonly");i||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),i||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),a=document.createRange();a.selectNodeContents(t),n.removeAllRanges(),n.addRange(a),e=n.toString()}return e}},function(t,e){function i(){}i.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function a(){n.off(t,a),e.apply(i,arguments)}return a._=e,this.on(t,a,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,a=i.length;n<a;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],a=[];if(n&&e)for(var r=0,o=n.length;r<o;r++)n[r].fn!==e&&n[r].fn._!==e&&a.push(n[r]);return a.length?i[t]=a:delete i[t],this}},t.exports=i,t.exports.TinyEmitter=i},function(t,e,i){var n=i(3),a=i(4);t.exports=function(t,e,i){if(!t&&!e&&!i)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(i))throw new TypeError("Third argument must be a Function");if(n.node(t))return h=e,f=i,(d=t).addEventListener(h,f),{destroy:function(){d.removeEventListener(h,f)}};if(n.nodeList(t))return l=t,c=e,u=i,Array.prototype.forEach.call(l,(function(t){t.addEventListener(c,u)})),{destroy:function(){Array.prototype.forEach.call(l,(function(t){t.removeEventListener(c,u)}))}};if(n.string(t))return r=t,o=e,s=i,a(document.body,r,o,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var r,o,s,l,c,u,d,h,f}},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var i=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,i){var n=i(5);function a(t,e,i,a,r){var o=function(t,e,i,a){return function(i){i.delegateTarget=n(i.target,e),i.delegateTarget&&a.call(t,i)}}.apply(this,arguments);return t.addEventListener(i,o,r),{destroy:function(){t.removeEventListener(i,o,r)}}}t.exports=function(t,e,i,n,r){return"function"==typeof t.addEventListener?a.apply(null,arguments):"function"==typeof i?a.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return a(t,e,i,n,r)})))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},function(t,e,i){"use strict";i.r(e);var n=i(0),a=i.n(n),r="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};function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),this.resolveOptions(t),this.initSelection()}var l=(function(t,e,i){e&&o(t.prototype,e)}(s,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=a()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=a()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(t){var e=0<arguments.length&&void 0!==t?t:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),s),c=i(1),u=i.n(c),d=i(2),h=i.n(d),f="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};function p(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var m=(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(g,u.a),function(t,e,i){e&&p(t.prototype,e),i&&p(t,i)}(g,[{key:"resolveOptions",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=h()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return v("action",t)}},{key:"defaultTarget",value:function(t){var e=v("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return v("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(t){var e=0<arguments.length&&void 0!==t?t:["copy","cut"],i="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return i.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),g);function g(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return i.resolveOptions(e),i.listenClick(t),i}function v(t,e){var i="data-clipboard-"+t;if(e.hasAttribute(i))return e.getAttribute(i)}e.default=m}],t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,i){if(1&i&&(e=t(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var a in e)t.d(n,a,function(t){return e[t]}.bind(null,a));return n},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=6).default;function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var e,i}));var Emitter=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};var e=this._callbacks[t];if(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];var r,o=_createForOfIteratorHelper(e);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.apply(this,n)}}catch(t){o.e(t)}finally{o.f()}}return this}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var i=this._callbacks[t];if(!i)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var n=0;n<i.length;n++){var a=i[n];if(a===e){i.splice(n,1);break}}return this}}]),t}(),Dropzone=function(t){_inherits(i,Emitter);var e=_createSuper(i);function i(t,n){var a,r,o;if(_classCallCheck(this,i),(a=e.call(this)).element=t,a.version=i.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");i.instances.push(_assertThisInitialized(a)),a.element.dropzone=_assertThisInitialized(a);var s=null!=(o=i.optionsForElement(a.element))?o:{};if(a.options=i.extend({},a.defaultOptions,s,null!=n?n:{}),a.options.forceFallback||!i.isBrowserSupported())return _possibleConstructorReturn(a,a.options.fallback.call(_assertThisInitialized(a)));if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(t){return a.options.renameFilename.call(_assertThisInitialized(a),t.name,t)}),"string"==typeof a.options.method&&(a.options.method=a.options.method.toUpperCase()),(r=a.getExistingFallback())&&r.parentNode&&r.parentNode.removeChild(r),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=i.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=i.getElements(a.options.clickable,"clickable")),a.init(),a}return _createClass(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=Emitter,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(t,e,i){if(i)return{dzuuid:i.file.upload.uuid,dzchunkindex:i.index,dztotalfilesize:i.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:i.file.upload.totalChunkCount,dzchunkbyteoffset:i.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t;this.element.className="".concat(this.element.className," dz-browser-not-supported");var e,n=_createForOfIteratorHelper(this.element.getElementsByTagName("div"));try{for(n.s();!(e=n.n()).done;){var a=e.value;if(/(^| )dz-message($| )/.test(a.className)){t=a,a.className="dz-message";break}}}catch(t){n.e(t)}finally{n.f()}t||(t=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var r=t.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,i,n){var a={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},r=t.width/t.height;null==e&&null==i?(e=a.srcWidth,i=a.srcHeight):null==e?e=i*r:null==i&&(i=e/r);var o=(e=Math.min(e,a.srcWidth))/(i=Math.min(i,a.srcHeight));if(a.srcWidth>e||a.srcHeight>i)if("crop"===n)r>o?(a.srcHeight=t.height,a.srcWidth=a.srcHeight*o):(a.srcWidth=t.width,a.srcHeight=a.srcWidth/o);else{if("contain"!==n)throw new Error("Unknown resizeMethod '".concat(n,"'"));r>o?i=e/r:e=i*r}return a.srcX=(t.width-a.srcWidth)/2,a.srcY=(t.height-a.srcHeight)/2,a.trgWidth=e,a.trgHeight=i,a},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Check</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Error</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=i.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);var n,a=_createForOfIteratorHelper(t.previewElement.querySelectorAll("[data-dz-name]"));try{for(a.s();!(n=a.n()).done;){var r=n.value;r.textContent=t.name}}catch(t){a.e(t)}finally{a.f()}var o,s=_createForOfIteratorHelper(t.previewElement.querySelectorAll("[data-dz-size]"));try{for(s.s();!(o=s.n()).done;)(r=o.value).innerHTML=this.filesize(t.size)}catch(t){s.e(t)}finally{s.f()}this.options.addRemoveLinks&&(t._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),t.previewElement.appendChild(t._removeLink));var l,c=function(n){return n.preventDefault(),n.stopPropagation(),t.status===i.UPLOADING?i.confirm(e.options.dictCancelUploadConfirmation,(function(){return e.removeFile(t)})):e.options.dictRemoveFileConfirmation?i.confirm(e.options.dictRemoveFileConfirmation,(function(){return e.removeFile(t)})):e.removeFile(t)},u=_createForOfIteratorHelper(t.previewElement.querySelectorAll("[data-dz-remove]"));try{for(u.s();!(l=u.n()).done;){l.value.addEventListener("click",c)}}catch(t){u.e(t)}finally{u.f()}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");var i,n=_createForOfIteratorHelper(t.previewElement.querySelectorAll("[data-dz-thumbnail]"));try{for(n.s();!(i=n.n()).done;){var a=i.value;a.alt=t.name,a.src=e}}catch(t){n.e(t)}finally{n.f()}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"string"!=typeof e&&e.error&&(e=e.error);var i,n=_createForOfIteratorHelper(t.previewElement.querySelectorAll("[data-dz-errormessage]"));try{for(n.s();!(i=n.n()).done;){i.value.textContent=e}}catch(t){n.e(t)}finally{n.f()}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,i){if(t.previewElement){var n,a=_createForOfIteratorHelper(t.previewElement.querySelectorAll("[data-dz-uploadprogress]"));try{for(a.s();!(n=a.n()).done;){var r=n.value;"PROGRESS"===r.nodeName?r.value=e:r.style.width="".concat(e,"%")}}catch(t){a.e(t)}finally{a.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var a=0,r=i;a<r.length;a++){var o=r[a];for(var s in o){var l=o[s];t[s]=l}}return t}}]),_createClass(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===i.UPLOADING||t.status===i.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(i.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){!function e(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",i.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",(function(){var i=t.hiddenFileInput.files;if(i.length){var n,a=_createForOfIteratorHelper(i);try{for(a.s();!(n=a.n()).done;){var r=n.value;t.addFile(r)}}catch(t){a.e(t)}finally{a.f()}}return t.emit("addedfiles",i),e()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;var e,n=_createForOfIteratorHelper(this.events);try{for(n.s();!(e=n.n()).done;){var a=e.value;this.on(a,this.options[a])}}catch(t){n.e(t)}finally{n.f()}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return t.updateTotalUploadProgress()})),this.on("canceled",(function(e){return t.emit("complete",e)})),this.on("complete",(function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout((function(){return t.emit("queuecomplete")}),0)}));var r=function(t){if(function(t){if(t.dataTransfer.types)for(var e=0;e<t.dataTransfer.types.length;e++)if("Files"===t.dataTransfer.types[e])return!0;return!1}(t))return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return r(e),t.emit("dragenter",e)},dragover:function(e){var i;try{i=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy",r(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return r(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach((function(e){return t.listeners.push({element:e,events:{click:function(n){return(e!==t.element||n.target===t.element||i.elementInside(n.target,t.element.querySelector(".dz-message")))&&t.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t,e=0,i=0;if(this.getActiveFiles().length){var n,a=_createForOfIteratorHelper(this.getActiveFiles());try{for(a.s();!(n=a.n()).done;){var r=n.value;e+=r.upload.bytesSent,i+=r.upload.total}}catch(t){a.e(t)}finally{a.f()}t=100*e/i}else t=100;return this.emit("totaluploadprogress",t,i,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(t,"]"):"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e;if(t=this.getExistingFallback())return t;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>".concat(this.options.dictFallbackText,"</p>")),n+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var a=i.createElement(n);return"FORM"!==this.element.tagName?(e=i.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(a):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:a}},{key:"getExistingFallback",value:function(){for(var t=function(t){var e,i=_createForOfIteratorHelper(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;if(/(^| )fallback($| )/.test(n.className))return n}}catch(t){i.e(t)}finally{i.f()}},e=0,i=["div","form"];e<i.length;e++){var n,a=i[e];if(n=t(this.element.getElementsByTagName(a)))return n}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var i in t.events){var n=t.events[i];e.push(t.element.addEventListener(i,n,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var i in t.events){var n=t.events[i];e.push(t.element.removeEventListener(i,n,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,i="b";if(t>0){for(var n=["tb","gb","mb","kb","b"],a=0;a<n.length;a++){var r=n[a];if(t>=Math.pow(this.options.filesizeBase,4-a)/10){e=t/Math.pow(this.options.filesizeBase,4-a),i=r;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[i])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],i=0;i<t.dataTransfer.files.length;i++)e[i]=t.dataTransfer.files[i];if(e.length){var n=t.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(e)}this.emit("addedfiles",e)}}},{key:"paste",value:function(t){if(null!=__guard__(null!=t?t.clipboardData:void 0,(function(t){return t.items}))){this.emit("paste",t);var e=t.clipboardData.items;return e.length?this._addFilesFromItems(e):void 0}}},{key:"handleFiles",value:function(t){var e,i=_createForOfIteratorHelper(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.addFile(n)}}catch(t){i.e(t)}finally{i.f()}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){var i,n=[],a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var r,o=i.value;null!=o.webkitGetAsEntry&&(r=o.webkitGetAsEntry())?r.isFile?n.push(e.addFile(o.getAsFile())):r.isDirectory?n.push(e._addFilesFromDirectory(r,r.name)):n.push(void 0):null!=o.getAsFile&&(null==o.kind||"file"===o.kind)?n.push(e.addFile(o.getAsFile())):n.push(void 0)}}catch(t){a.e(t)}finally{a.f()}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var i=this,n=t.createReader(),a=function(t){return __guardMethod__(console,"log",(function(e){return e.log(t)}))};return function t(){return n.readEntries((function(n){if(n.length>0){var a,r=_createForOfIteratorHelper(n);try{for(r.s();!(a=r.n()).done;){var o=a.value;o.isFile?o.file((function(t){if(!i.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(e,"/").concat(t.name),i.addFile(t)})):o.isDirectory&&i._addFilesFromDirectory(o,"".concat(e,"/").concat(o.name))}}catch(t){r.e(t)}finally{r.f()}t()}return null}),a)}()}},{key:"accept",value:function(t,e){this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;t.upload={uuid:i.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=i.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(i){i?(t.accepted=!1,e._errorProcessing([t],i)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){var e,i=_createForOfIteratorHelper(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;this.enqueueFile(n)}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==i.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(i){return t.emit("thumbnail",e,i),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===i.UPLOADING&&this.cancelUpload(t),this.files=without(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);var e,n=_createForOfIteratorHelper(this.files.slice());try{for(n.s();!(e=n.n()).done;){var a=e.value;(a.status!==i.UPLOADING||t)&&this.removeFile(a)}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"resizeImage",value:function(t,e,n,a,r){var o=this;return this.createThumbnail(t,e,n,a,!0,(function(e,n){if(null==n)return r(t);var a=o.options.resizeMimeType;null==a&&(a=t.type);var s=n.toDataURL(a,o.options.resizeQuality);return"image/jpeg"!==a&&"image/jpg"!==a||(s=ExifRestore.restore(t.dataURL,s)),r(i.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(t,e,i,n,a,r){var o=this,s=new FileReader;s.onload=function(){t.dataURL=s.result,"image/svg+xml"!==t.type?o.createThumbnailFromUrl(t,e,i,n,a,r):null!=r&&r(s.result)},s.readAsDataURL(t)}},{key:"displayExistingFile",value:function(t,e,i,n){var a=this,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",t),this.emit("complete",t),r){var o=function(e){a.emit("thumbnail",t,e),i&&i()};t.dataURL=e,this.createThumbnailFromUrl(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,o,n)}else this.emit("thumbnail",t,e),i&&i()}},{key:"createThumbnailFromUrl",value:function(t,e,i,n,a,r,o){var s=this,l=document.createElement("img");return o&&(l.crossOrigin=o),a="from-image"!=getComputedStyle(document.body).imageOrientation&&a,l.onload=function(){var o=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&a&&(o=function(t){return EXIF.getData(l,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),o((function(a){t.width=l.width,t.height=l.height;var o=s.options.resize.call(s,t,e,i,n),c=document.createElement("canvas"),u=c.getContext("2d");switch(c.width=o.trgWidth,c.height=o.trgHeight,a>4&&(c.width=o.trgHeight,c.height=o.trgWidth),a){case 2:u.translate(c.width,0),u.scale(-1,1);break;case 3:u.translate(c.width,c.height),u.rotate(Math.PI);break;case 4:u.translate(0,c.height),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-c.width);break;case 7:u.rotate(.5*Math.PI),u.translate(c.height,-c.width),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-c.height,0)}drawImageIOSFix(u,l,null!=o.srcX?o.srcX:0,null!=o.srcY?o.srcY:0,o.srcWidth,o.srcHeight,null!=o.trgX?o.trgX:0,null!=o.trgY?o.trgY:0,o.trgWidth,o.trgHeight);var d=c.toDataURL("image/png");if(null!=r)return r(d,c)}))},null!=r&&(l.onerror=r),l.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,i=e;if(!(e>=t)){var n=this.getQueuedFiles();if(n.length>0){if(this.options.uploadMultiple)return this.processFiles(n.slice(0,t-e));for(;i<t;){if(!n.length)return;this.processFile(n.shift()),i++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;a.processing=!0,a.status=i.UPLOADING,this.emit("processing",a)}}catch(t){n.e(t)}finally{n.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===i.UPLOADING){var e,n=this._getFilesWithXhr(t.xhr),a=_createForOfIteratorHelper(n);try{for(a.s();!(e=a.n()).done;){e.value.status=i.CANCELED}}catch(t){a.e(t)}finally{a.f()}void 0!==t.xhr&&t.xhr.abort();var r,o=_createForOfIteratorHelper(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;this.emit("canceled",s)}}catch(t){o.e(t)}finally{o.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else t.status!==i.ADDED&&t.status!==i.QUEUED||(t.status=i.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t.apply(this,i)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(n){if(e.options.chunking){var a=n[0];t[0].upload.chunked=e.options.chunking&&(e.options.forceChunking||a.size>e.options.chunkSize),t[0].upload.totalChunkCount=Math.ceil(a.size/e.options.chunkSize)}if(t[0].upload.chunked){var r=t[0],o=n[0];r.upload.chunks=[];var s=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*e.options.chunkSize,s=Math.min(a+e.options.chunkSize,o.size),l={name:e._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,s):o.slice(a,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:l,status:i.UPLOADING,progress:0,retries:0},e._uploadData(t,[l])}};if(r.upload.finishedChunkUpload=function(n){var a=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var o=0;o<r.upload.totalChunkCount;o++){if(void 0===r.upload.chunks[o])return s();r.upload.chunks[o].status!==i.SUCCESS&&(a=!1)}a&&e.options.chunksUploaded(r,(function(){e._finished(t,"",null)}))},e.options.parallelChunkUploads)for(var l=0;l<r.upload.totalChunkCount;l++)s();else s()}else{for(var c=[],u=0;u<t.length;u++)c[u]={name:e._getParamName(u),data:n[u],filename:t[u].upload.filename};e._uploadData(t,c)}}))}},{key:"_getChunk",value:function(t,e){for(var i=0;i<t.upload.totalChunkCount;i++)if(void 0!==t.upload.chunks[i]&&t.upload.chunks[i].xhr===e)return t.upload.chunks[i]}},{key:"_uploadData",value:function(t,e){var n,a=this,r=new XMLHttpRequest,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n()).done;){n.value.xhr=r}}catch(t){o.e(t)}finally{o.f()}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=r);var s=this.resolveOption(this.options.method,t),l=this.resolveOption(this.options.url,t);r.open(s,l,!0),r.timeout=this.resolveOption(this.options.timeout,t),r.withCredentials=!!this.options.withCredentials,r.onload=function(e){a._finishedUploading(t,r,e)},r.ontimeout=function(){a._handleUploadError(t,r,"Request timedout after ".concat(a.options.timeout/1e3," seconds"))},r.onerror=function(){a._handleUploadError(t,r)},(null!=r.upload?r.upload:r).onprogress=function(e){return a._updateFilesUploadProgress(t,r,e)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&i.extend(c,this.options.headers),c){var d=c[u];d&&r.setRequestHeader(u,d)}var h=new FormData;if(this.options.params){var f=this.options.params;for(var p in"function"==typeof f&&(f=f.call(this,t,r,t[0].upload.chunked?this._getChunk(t[0],r):null)),f){var m=f[p];if(Array.isArray(m))for(var g=0;g<m.length;g++)h.append(p,m[g]);else h.append(p,m)}}var v,y=_createForOfIteratorHelper(t);try{for(y.s();!(v=y.n()).done;){var b=v.value;this.emit("sending",b,r,h)}}catch(t){y.e(t)}finally{y.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",t,r,h),this._addFormElementData(h);for(var _=0;_<e.length;_++){var x=e[_];h.append(x.name,x.data,x.filename)}this.submitRequest(r,h,t)}},{key:"_transformFiles",value:function(t,e){for(var i=this,n=[],a=0,r=function(r){i.options.transformFile.call(i,t[r],(function(i){n[r]=i,++a===t.length&&e(n)}))},o=0;o<t.length;o++)r(o)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName){var e,i=_createForOfIteratorHelper(this.element.querySelectorAll("input, textarea, select, button"));try{for(i.s();!(e=i.n()).done;){var n=e.value,a=n.getAttribute("name"),r=n.getAttribute("type");if(r&&(r=r.toLowerCase()),null!=a)if("SELECT"===n.tagName&&n.hasAttribute("multiple")){var o,s=_createForOfIteratorHelper(n.options);try{for(s.s();!(o=s.n()).done;){var l=o.value;l.selected&&t.append(a,l.value)}}catch(t){s.e(t)}finally{s.f()}}else(!r||"checkbox"!==r&&"radio"!==r||n.checked)&&t.append(a,n.value)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"_updateFilesUploadProgress",value:function(t,e,i){var n;if(void 0!==i){if(n=100*i.loaded/i.total,t[0].upload.chunked){var a=t[0],r=this._getChunk(a,e);r.progress=n,r.total=i.total,r.bytesSent=i.loaded;a.upload.progress=0,a.upload.total=0,a.upload.bytesSent=0;for(var o=0;o<a.upload.totalChunkCount;o++)void 0!==a.upload.chunks[o]&&void 0!==a.upload.chunks[o].progress&&(a.upload.progress+=a.upload.chunks[o].progress,a.upload.total+=a.upload.chunks[o].total,a.upload.bytesSent+=a.upload.chunks[o].bytesSent);a.upload.progress=a.upload.progress/a.upload.totalChunkCount}else{var s,l=_createForOfIteratorHelper(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;c.upload.progress=n,c.upload.total=i.total,c.upload.bytesSent=i.loaded}}catch(t){l.e(t)}finally{l.f()}}var u,d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;this.emit("uploadprogress",h,h.upload.progress,h.upload.bytesSent)}}catch(t){d.e(t)}finally{d.f()}}else{var f=!0;n=100;var p,m=_createForOfIteratorHelper(t);try{for(m.s();!(p=m.n()).done;){var g=p.value;100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(f=!1),g.upload.progress=n,g.upload.bytesSent=g.upload.total}}catch(t){m.e(t)}finally{m.f()}if(f)return;var v,y=_createForOfIteratorHelper(t);try{for(y.s();!(v=y.n()).done;){var b=v.value;this.emit("uploadprogress",b,n,b.upload.bytesSent)}}catch(t){y.e(t)}finally{y.f()}}}},{key:"_finishedUploading",value:function(t,e,n){var a;if(t[0].status!==i.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(a=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{a=JSON.parse(a)}catch(t){n=t,a="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e)):this._finished(t,a,n):this._handleUploadError(t,e,a)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==i.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var a=this._getChunk(t[0],e);if(a.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[a.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,i){t.send(e)}},{key:"_finished",value:function(t,e,n){var a,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;){var o=a.value;o.status=i.SUCCESS,this.emit("success",o,e,n),this.emit("complete",o)}}catch(t){r.e(t)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){var a,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;){var o=a.value;o.status=i.ERROR,this.emit("error",o,e,n),this.emit("complete",o)}}catch(t){r.e(t)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),i}();Dropzone.initClass(),Dropzone.version="5.7.2",Dropzone.options={},Dropzone.optionsForElement=function(t){return t.getAttribute("id")?Dropzone.options[camelize(t.getAttribute("id"))]:void 0},Dropzone.instances=[],Dropzone.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},Dropzone.autoDiscover=!0,Dropzone.discover=function(){var t;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){var i,n=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var r=i.value;/(^| )dropzone($| )/.test(r.className)?n.push(t.push(r)):n.push(void 0)}}catch(t){a.e(t)}finally{a.f()}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){var e,i=[],n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;!1!==Dropzone.optionsForElement(a)?i.push(new Dropzone(a)):i.push(void 0)}}catch(t){n.e(t)}finally{n.f()}return i}()},Dropzone.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],Dropzone.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){var e,i=_createForOfIteratorHelper(Dropzone.blacklistedBrowsers);try{for(i.s();!(e=i.n()).done;){e.value.test(navigator.userAgent)&&(t=!1)}}catch(t){i.e(t)}finally{i.f()}}else t=!1;else t=!1;return t},Dropzone.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),i=t.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(e.length),a=new Uint8Array(n),r=0,o=e.length,s=0<=o;s?r<=o:r>=o;s?r++:r--)a[r]=e.charCodeAt(r);return new Blob([n],{type:i})};var without=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},camelize=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};Dropzone.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},Dropzone.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},Dropzone.getElement=function(t,e){var i;if("string"==typeof t?i=document.querySelector(t):null!=t.nodeType&&(i=t),null==i)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector or a plain HTML element."));return i},Dropzone.getElements=function(t,e){var i,n;if(t instanceof Array){n=[];try{var a,r=_createForOfIteratorHelper(t);try{for(r.s();!(a=r.n()).done;)i=a.value,n.push(this.getElement(i,e))}catch(t){r.e(t)}finally{r.f()}}catch(t){n=null}}else if("string"==typeof t){n=[];var o,s=_createForOfIteratorHelper(document.querySelectorAll(t));try{for(s.s();!(o=s.n()).done;)i=o.value,n.push(i)}catch(t){s.e(t)}finally{s.f()}}else null!=t.nodeType&&(n=[t]);if(null==n||!n.length)throw new Error("Invalid `".concat(e,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return n},Dropzone.confirm=function(t,e,i){return window.confirm(t)?e():null!=i?i():void 0},Dropzone.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");var i,n=t.type,a=n.replace(/\/.*$/,""),r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;if("."===(o=o.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(o.toLowerCase(),t.name.length-o.length))return!0}else if(/\/\*$/.test(o)){if(a===o.replace(/\/.*$/,""))return!0}else if(n===o)return!0}}catch(t){r.e(t)}finally{r.f()}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each((function(){return new Dropzone(this,t)}))}),"undefined"!=typeof module&&null!==module?module.exports=Dropzone:window.Dropzone=Dropzone,Dropzone.ADDED="added",Dropzone.QUEUED="queued",Dropzone.ACCEPTED=Dropzone.QUEUED,Dropzone.UPLOADING="uploading",Dropzone.PROCESSING=Dropzone.UPLOADING,Dropzone.CANCELED="canceled",Dropzone.ERROR="error",Dropzone.SUCCESS="success";var detectVerticalSquash=function(t){t.naturalWidth;var e=t.naturalHeight,i=document.createElement("canvas");i.width=1,i.height=e;var n=i.getContext("2d");n.drawImage(t,0,0);for(var a=n.getImageData(1,0,1,e).data,r=0,o=e,s=e;s>r;){0===a[4*(s-1)+3]?o=s:r=s,s=o+r>>1}var l=s/e;return 0===l?1:l},drawImageIOSFix=function(t,e,i,n,a,r,o,s,l,c){var u=detectVerticalSquash(e);return t.drawImage(e,i,n,a,r,o,s,l,c/u)},ExifRestore=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",i=void 0,n=void 0,a="",r=void 0,o=void 0,s=void 0,l="",c=0;r=(i=t[c++])>>2,o=(3&i)<<4|(n=t[c++])>>4,s=(15&n)<<2|(a=t[c++])>>6,l=63&a,isNaN(n)?s=l=64:isNaN(a)&&(l=64),e=e+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),i=n=a="",r=o=s=l="",c<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var i=this.decode64(t.replace("data:image/jpeg;base64,","")),n=this.slice2Segments(i),a=this.exifManipulation(e,n);return"data:image/jpeg;base64,".concat(this.encode64(a))}},{key:"exifManipulation",value:function(t,e){var i=this.getExifArray(e),n=this.insertExif(t,i);return new Uint8Array(n)}},{key:"getExifArray",value:function(t){for(var e=void 0,i=0;i<t.length;){if(255===(e=t[i])[0]&225===e[1])return e;i++}return[]}},{key:"insertExif",value:function(t,e){var i=t.replace("data:image/jpeg;base64,",""),n=this.decode64(i),a=n.indexOf(255,3),r=n.slice(0,a),o=n.slice(a),s=r;return s=(s=s.concat(e)).concat(o)}},{key:"slice2Segments",value:function(t){for(var e=0,i=[];;){if(255===t[e]&218===t[e+1])break;if(255===t[e]&216===t[e+1])e+=2;else{var n=e+(256*t[e+2]+t[e+3])+2,a=t.slice(e,n);i.push(a),e=n}if(e>t.length)break}return i}},{key:"decode64",value:function(t){var e=void 0,i=void 0,n="",a=void 0,r=void 0,o="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(s++))<<2|(a=this.KEY_STR.indexOf(t.charAt(s++)))>>4,i=(15&a)<<4|(r=this.KEY_STR.indexOf(t.charAt(s++)))>>2,n=(3&r)<<6|(o=this.KEY_STR.indexOf(t.charAt(s++))),l.push(e),64!==r&&l.push(i),64!==o&&l.push(n),e=i=n="",a=r=o="",s<t.length;);return l}}]),t}();ExifRestore.initClass();var contentLoaded=function(t,e){var i=!1,n=!0,a=t.document,r=a.documentElement,o=a.addEventListener?"addEventListener":"attachEvent",s=a.addEventListener?"removeEventListener":"detachEvent",l=a.addEventListener?"":"on",c=function n(r){if("readystatechange"!==r.type||"complete"===a.readyState)return("load"===r.type?t:a)[s](l+r.type,n,!1),!i&&(i=!0)?e.call(t,r.type||r):void 0};if("complete"!==a.readyState){if(a.createEventObject&&r.doScroll){try{n=!t.frameElement}catch(t){}n&&function t(){try{r.doScroll("left")}catch(e){return void setTimeout(t,50)}return c("poll")}()}return a[o](l+"DOMContentLoaded",c,!1),a[o](l+"readystatechange",c,!1),t[o](l+"load",c,!1)}};function __guard__(t,e){return null!=t?e(t):void 0}function __guardMethod__(t,e,i){return null!=t&&"function"==typeof t[e]?i(t,e):void 0}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}Dropzone._autoDiscoverFunction=function(){if(Dropzone.autoDiscover)return Dropzone.discover()},contentLoaded(window,Dropzone._autoDiscoverFunction),Dropzone.autoDiscover=!1,
/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=109)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(17),a=i(18),r=i(19),o=i(45),s=i(46),l=i(47),c=i(48),u=i(49),d=i(12),h=i(32),f=i(33),p=i(31),m=i(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:n.default,Format:a.default,Leaf:r.default,Embed:c.default,Scroll:o.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};e.default=g},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){var i=this;return e="[Parchment] "+e,(i=t.call(this,e)||this).message=e,i.name=i.constructor.name,i}return a(e,t),e}(Error);e.ParchmentError=r;var o,s={},l={},c={},u={};function d(t,e){var i;if(void 0===e&&(e=o.ANY),"string"==typeof t)i=u[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)i=u.text;else if("number"==typeof t)t&o.LEVEL&o.BLOCK?i=u.block:t&o.LEVEL&o.INLINE&&(i=u.inline);else if(t instanceof HTMLElement){var n=(t.getAttribute("class")||"").split(/\s+/);for(var a in n)if(i=l[n[a]])break;i=i||c[t.tagName]}return null==i?null:e&o.LEVEL&i.scope&&e&o.TYPE&i.scope?i:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(o=e.Scope||(e.Scope={})),e.create=function(t,e){var i=d(t);if(null==i)throw new r("Unable to create "+t+" blot");var n=i,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:n.create(e);return new n(a,e)},e.find=function t(i,n){return void 0===n&&(n=!1),null==i?null:null!=i[e.DATA_KEY]?i[e.DATA_KEY].blot:n?t(i.parentNode,n):null},e.query=d,e.register=function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(e.length>1)return e.map((function(e){return t(e)}));var n=e[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"==typeof n.keyName)s[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var a=Array.isArray(n.tagName)?n.tagName:[n.tagName];a.forEach((function(t){null!=c[t]&&null!=n.className||(c[t]=n)}))}return n}},function(t,e,i){var n=i(51),a=i(11),r=i(3),o=i(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var i={};return 0===t.length?this:(i.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i))},l.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var i={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(i.attributes=e),this.push(i)},l.prototype.push=function(t){var e=this.ops.length,i=this.ops[e-1];if(t=r(!0,{},t),"object"==typeof i){if("number"==typeof t.delete&&"number"==typeof i.delete)return this.ops[e-1]={delete:i.delete+t.delete},this;if("number"==typeof i.delete&&null!=t.insert&&(e-=1,"object"!=typeof(i=this.ops[e-1])))return this.ops.unshift(t),this;if(a(t.attributes,i.attributes)){if("string"==typeof t.insert&&"string"==typeof i.insert)return this.ops[e-1]={insert:i.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof i.retain)return this.ops[e-1]={retain:i.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],i=[];return this.forEach((function(n){(t(n)?e:i).push(n)})),[e,i]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+o.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+o.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var i=[],n=o.iterator(this.ops),a=0;a<e&&n.hasNext();){var r;a<t?r=n.next(t-a):(r=n.next(e-a),i.push(r)),a+=o.length(r)}return new l(i)},l.prototype.compose=function(t){var e=o.iterator(this.ops),i=o.iterator(t.ops),n=[],r=i.peek();if(null!=r&&"number"==typeof r.retain&&null==r.attributes){for(var s=r.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),n.push(e.next());r.retain-s>0&&i.next(r.retain-s)}for(var c=new l(n);e.hasNext()||i.hasNext();)if("insert"===i.peekType())c.push(i.next());else if("delete"===e.peekType())c.push(e.next());else{var u=Math.min(e.peekLength(),i.peekLength()),d=e.next(u),h=i.next(u);if("number"==typeof h.retain){var f={};"number"==typeof d.retain?f.retain=u:f.insert=d.insert;var p=o.attributes.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(p&&(f.attributes=p),c.push(f),!i.hasNext()&&a(c.ops[c.ops.length-1],f)){var m=new l(e.rest());return c.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&c.push(h)}return c.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var i=[this,t].map((function(e){return e.map((function(i){if(null!=i.insert)return"string"==typeof i.insert?i.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),r=new l,c=n(i[0],i[1],e),u=o.iterator(this.ops),d=o.iterator(t.ops);return c.forEach((function(t){for(var e=t[1].length;e>0;){var i=0;switch(t[0]){case n.INSERT:i=Math.min(d.peekLength(),e),r.push(d.next(i));break;case n.DELETE:i=Math.min(e,u.peekLength()),u.next(i),r.delete(i);break;case n.EQUAL:i=Math.min(u.peekLength(),d.peekLength(),e);var s=u.next(i),l=d.next(i);a(s.insert,l.insert)?r.retain(i,o.attributes.diff(s.attributes,l.attributes)):r.push(l).delete(i)}e-=i}})),r.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var i=o.iterator(this.ops),n=new l,a=0;i.hasNext();){if("insert"!==i.peekType())return;var r=i.peek(),s=o.length(r)-i.peekLength(),c="string"==typeof r.insert?r.insert.indexOf(e,s)-s:-1;if(c<0)n.push(i.next());else if(c>0)n.push(i.next(c));else{if(!1===t(n,i.next(1).attributes||{},a))return;a+=1,n=new l}}n.length()>0&&t(n,{},a)},l.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var i=o.iterator(this.ops),n=o.iterator(t.ops),a=new l;i.hasNext()||n.hasNext();)if("insert"!==i.peekType()||!e&&"insert"===n.peekType())if("insert"===n.peekType())a.push(n.next());else{var r=Math.min(i.peekLength(),n.peekLength()),s=i.next(r),c=n.next(r);if(s.delete)continue;c.delete?a.push(c):a.retain(r,o.attributes.transform(s.attributes,c.attributes,e))}else a.retain(o.length(i.next()));return a.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var i=o.iterator(this.ops),n=0;i.hasNext()&&n<=t;){var a=i.peekLength(),r=i.peekType();i.next(),"delete"!==r?("insert"===r&&(n<t||!e)&&(t+=a),n+=a):t-=Math.min(a,t-n)}return t},t.exports=l},function(t,e){"use strict";var i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},s=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var e,a=i.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&i.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!r)return!1;for(e in t);return void 0===e||i.call(t,e)},l=function(t,e){a&&"__proto__"===e.name?a(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},c=function(t,e){if("__proto__"===e){if(!i.call(t,e))return;if(r)return r(t,e).value}return t[e]};t.exports=function t(){var e,i,n,a,r,u,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<f;++h)if(null!=(e=arguments[h]))for(i in e)n=c(d,i),d!==(a=c(e,i))&&(p&&a&&(s(a)||(r=o(a)))?(r?(r=!1,u=n&&o(n)?n:[]):u=n&&s(n)?n:{},l(d,{name:i,newValue:t(p,u,a)})):void 0!==a&&l(d,{name:i,newValue:a}));return d}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=d(i(3)),o=d(i(2)),s=d(i(0)),l=d(i(16)),c=d(i(6)),u=d(i(7));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),n(e,[{key:"attach",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new o.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var i=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=i&&this.attributes.attribute(i,e)}},{key:"formatAt",value:function(t,e,i,n){this.format(i,n)}},{key:"insertAt",value:function(t,i,n){if("string"==typeof i&&i.endsWith("\n")){var r=s.default.create(g.blotName);this.parent.insertBefore(r,0===t?this:this.next),r.insertAt(0,i.slice(0,-1))}else a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,i,n)}}]),e}(s.default.Embed);m.scope=s.default.Scope.BLOCK_BLOT;var g=function(t){function e(t){h(this,e);var i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.cache={},i}return p(e,t),n(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),v(e))}),new o.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(t,i){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,i),this.cache={}}},{key:"formatAt",value:function(t,i,n,r){i<=0||(s.default.query(n,s.default.Scope.BLOCK)?t+i===this.length()&&this.format(n,r):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(i,this.length()-t-1),n,r),this.cache={})}},{key:"insertAt",value:function(t,i,n){if(null!=n)return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,i,n);if(0!==i.length){var r=i.split("\n"),o=r.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var s=this;r.reduce((function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length}),t+o.length)}}},{key:"insertBefore",value:function(t,i){var n=this.children.head;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,i),n instanceof l.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,i){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,i),this.cache={}}},{key:"optimize",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i&&(0===t||t>=this.length()-1)){var n=this.clone();return 0===t?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var r=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,i);return this.cache={},r}}]),e}(s.default.Block);function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,r.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:v(t.parent,e))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,s.default.Embed,u.default],e.bubbleFormats=v,e.BlockEmbed=m,e.default=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var n="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},a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();i(50);var o=g(i(2)),s=g(i(14)),l=g(i(8)),c=g(i(9)),u=g(i(0)),d=i(15),h=g(d),f=g(i(3)),p=g(i(10)),m=g(i(34));function g(t){return t&&t.__esModule?t:{default:t}}function v(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill"),_=function(){function t(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,t),this.options=x(e,n),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var a=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t){t===l.default.events.TEXT_CHANGE&&i.root.classList.toggle("ql-blank",i.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(t,e){var n=i.selection.lastRange,a=n&&0===n.length?n.index:void 0;w.call(i,(function(){return i.editor.update(null,e,a)}),t)}));var r=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+a+"<p><br></p></div>");this.setContents(r),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return r(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),p.default.level(t)}},{key:"find",value:function(t){return t.__quill||u.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&b.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var a=t.attrName||t.blotName;"string"==typeof a?this.register("formats/"+a,t,e):Object.keys(t).forEach((function(n){i.register(n,t[n],e)}))}else null==this.imports[t]||n||b.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?u.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),r(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var i=t;(t=document.createElement("div")).classList.add(i)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,i){var n=this,r=k(t,e,i),o=a(r,4);return t=o[0],e=o[1],i=o[3],w.call(this,(function(){return n.editor.deleteText(t,e)}),i,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var n=i.getSelection(!0),a=new o.default;if(null==n)return a;if(u.default.query(t,u.default.Scope.BLOCK))a=i.editor.formatLine(n.index,n.length,v({},t,e));else{if(0===n.length)return i.selection.format(t,e),a;a=i.editor.formatText(n.index,n.length,v({},t,e))}return i.setSelection(n,l.default.sources.SILENT),a}),n)}},{key:"formatLine",value:function(t,e,i,n,r){var o,s=this,l=k(t,e,i,n,r),c=a(l,4);return t=c[0],e=c[1],o=c[2],r=c[3],w.call(this,(function(){return s.editor.formatLine(t,e,o)}),r,t,0)}},{key:"formatText",value:function(t,e,i,n,r){var o,s=this,l=k(t,e,i,n,r),c=a(l,4);return t=c[0],e=c[1],o=c[2],r=c[3],w.call(this,(function(){return s.editor.formatText(t,e,o)}),r,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=void 0;i="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var n=this.container.getBoundingClientRect();return{bottom:i.bottom-n.top,height:i.height,left:i.left-n.left,right:i.right-n.left,top:i.top-n.top,width:i.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,i=k(t,e),n=a(i,2);return t=n[0],e=n[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,i=k(t,e),n=a(i,2);return t=n[0],e=n[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,i,n){var a=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return w.call(this,(function(){return a.editor.insertEmbed(e,i,n)}),r,e)}},{key:"insertText",value:function(t,e,i,n,r){var o,s=this,l=k(t,0,i,n,r),c=a(l,4);return t=c[0],o=c[2],r=c[3],w.call(this,(function(){return s.editor.insertText(t,e,o)}),r,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,i){this.clipboard.dangerouslyPasteHTML(t,e,i)}},{key:"removeFormat",value:function(t,e,i){var n=this,r=k(t,e,i),o=a(r,4);return t=o[0],e=o[1],i=o[3],w.call(this,(function(){return n.editor.removeFormat(t,e)}),i,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){t=new o.default(t);var i=e.getLength(),n=e.editor.deleteText(0,i),a=e.editor.applyDelta(t),r=a.ops[a.ops.length-1];return null!=r&&"string"==typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),a.delete(1)),n.compose(a)}),i)}},{key:"setSelection",value:function(e,i,n){if(null==e)this.selection.setRange(null,i||t.sources.API);else{var r=k(e,i,n),o=a(r,4);e=o[0],i=o[1],n=o[3],this.selection.setRange(new d.Range(e,i),n),n!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,i=(new o.default).insert(t);return this.setContents(i,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return t=new o.default(t),e.editor.applyDelta(t,i)}),i,!0)}}]),t}();function x(t,e){if((e=(0,f.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==_.DEFAULTS.theme){if(e.theme=_.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=m.default;var i=(0,f.default)(!0,{},e.theme.DEFAULTS);[i,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var n=Object.keys(i.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var i=_.import("modules/"+e);return null==i?b.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=i.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,f.default)(!0,{},_.DEFAULTS,{modules:n},i,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,i){return e.modules[i]&&(t[i]=e.modules[i]),t}),{}),e}function w(t,e,i,n){if(this.options.strict&&!this.isEnabled()&&e===l.default.sources.USER)return new o.default;var a=null==i?null:this.getSelection(),r=this.editor.delta,s=t();if(null!=a&&(!0===i&&(i=a.index),null==n?a=S(a,s,e):0!==n&&(a=S(a,i,n,e)),this.setSelection(a,l.default.sources.SILENT)),s.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,s,r,e];if((c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT)(u=this.emitter).emit.apply(u,d)}return s}function k(t,e,i,a,r){var o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(r=a,a=i,i=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(r=a,a=i,i=e,e=0),"object"===(void 0===i?"undefined":n(i))?(o=i,r=a):"string"==typeof i&&(null!=a?o[i]=a:r=i),[t,e,o,r=r||l.default.sources.API]}function S(t,e,i,n){if(null==t)return null;var r=void 0,s=void 0;if(e instanceof o.default){var c=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,n!==l.default.sources.USER)})),u=a(c,2);r=u[0],s=u[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&n===l.default.sources.USER?t:i>=0?t+i:Math.max(e,t+i)})),f=a(h,2);r=f[0],s=f[1]}return new d.Range(r,s-r)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=l.default.events,_.sources=l.default.sources,_.version="1.3.7",_.imports={delta:o.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},e.expandConfig=x,e.overload=k,e.default=_},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=s(i(7)),o=s(i(0));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"formatAt",value:function(t,i,n,r){if(e.compare(this.statics.blotName,n)<0&&o.default.query(n,o.default.Scope.BLOT)){var s=this.isolate(t,i);r&&s.wrap(n,r)}else a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,i,n,r)}},{key:"optimize",value:function(t){if(a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}}],[{key:"compare",value:function(t,i){var n=e.order.indexOf(t),a=e.order.indexOf(i);return n>=0||a>=0?n-a:t===i?0:t<i?-1:1}}]),e}(o.default.Inline);u.allowedChildren=[u,o.default.Embed,r.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=i(0);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((n=a)&&n.__esModule?n:{default:n}).default.Text);e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=o(i(54));function o(t){return t&&t.__esModule?t:{default:t}}var s=(0,o(i(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var i;t.__quill&&t.__quill.emitter&&(i=t.__quill.emitter).handleDOM.apply(i,e)}))}))}));var l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"emit",value:function(){s.log.apply(s,arguments),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(this.listeners[t.type]||[]).forEach((function(e){var n=e.node,a=e.handler;(t.target===n||n.contains(t.target))&&a.apply(void 0,[t].concat(i))}))}},{key:"listenDOM",value:function(t,e,i){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:i})}}]),e}(r.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},e.default=l},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.quill=e,this.options=i};a.DEFAULTS={},e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=["error","warn","log","info"],a="warn";function r(t){if(n.indexOf(t)<=n.indexOf(a)){for(var e,i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];(e=console)[t].apply(e,r)}}function o(t){return n.reduce((function(e,i){return e[i]=r.bind(console,i,t),e}),{})}r.level=o.level=function(t){a=t},e.default=o},function(t,e,i){var n=Array.prototype.slice,a=i(52),r=i(53),o=t.exports=function(t,e,i){return i||(i={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?i.strict?t===e:t==e:function(t,e,i){var c,u;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(r(t))return!!r(e)&&(t=n.call(t),e=n.call(e),o(t,e,i));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(c=0;c<t.length;c++)if(t[c]!==e[c])return!1;return!0}try{var d=a(t),h=a(e)}catch(t){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),c=d.length-1;c>=0;c--)if(d[c]!=h[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!o(t[u],e[u],i))return!1;return typeof t==typeof e}(t,e,i))};function s(t){return null==t}function l(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),a=function(){function t(t,e,i){void 0===i&&(i={}),this.attrName=t,this.keyName=e;var a=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=i.scope?this.scope=i.scope&n.Scope.LEVEL|a:this.scope=n.Scope.ATTRIBUTE,null!=i.whitelist&&(this.whitelist=i.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=n.query(t,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=d(i(2)),s=d(i(0)),l=d(i(4)),c=d(i(6)),u=d(i(7));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),e}(c.default);m.blotName="code",m.tagName="CODE";var g=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),a(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,i){return e.insert(i).insert("\n",t.formats())}),new o.default)}},{key:"format",value:function(t,i){if(t!==this.statics.blotName||!i){var a=this.descendant(u.default,this.length()-1),o=n(a,1)[0];null!=o&&o.deleteAt(o.length()-1,1),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i)}}},{key:"formatAt",value:function(t,i,n,a){if(0!==i&&null!=s.default.query(n,s.default.Scope.BLOCK)&&(n!==this.statics.blotName||a!==this.statics.formats(this.domNode))){var r=this.newlineIndex(t);if(!(r<0||r>=t+i)){var o=this.newlineIndex(t,!0)+1,l=r-o+1,c=this.isolate(o,l),u=c.next;c.format(n,a),u instanceof e&&u.formatAt(0,t-o+i-l,n,a)}}}},{key:"insertAt",value:function(t,e,i){if(null==i){var a=this.descendant(u.default,t),r=n(a,2),o=r[0],s=r[1];o.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var i=this.domNode.textContent.slice(t).indexOf("\n");return i>-1?t+i:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===i.statics.formats(i.domNode)&&(i.optimize(t),i.moveChildren(this),i.remove())}},{key:"replace",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var i=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return i.setAttribute("spellcheck",!1),i}},{key:"formats",value:function(){return!0}}]),e}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",e.Code=m,e.default=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="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},a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=v(i(2)),s=v(i(20)),l=v(i(0)),c=v(i(13)),u=v(i(24)),d=i(4),h=v(d),f=v(i(16)),p=v(i(21)),m=v(i(11)),g=v(i(3));function v(t){return t&&t.__esModule?t:{default:t}}var y=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return r(t,[{key:"applyDelta",value:function(t){var e=this,i=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var i=(0,p.default)(e.attributes);return delete i.image,t.insert({image:e.attributes.image},i)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,p.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var n=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(n,e.attributes)}return t.push(e)}),new o.default)}(t)).reduce((function(t,o){var c=o.retain||o.delete||o.insert.length||1,u=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var f=o.insert;f.endsWith("\n")&&i&&(i=!1,f=f.slice(0,-1)),t>=r&&!f.endsWith("\n")&&(i=!0),e.scroll.insertAt(t,f);var p=e.scroll.line(t),m=a(p,2),v=m[0],y=m[1],b=(0,g.default)({},(0,d.bubbleFormats)(v));if(v instanceof h.default){var _=v.descendant(l.default.Leaf,y),x=a(_,1)[0];b=(0,g.default)(b,(0,d.bubbleFormats)(x))}u=s.default.attributes.diff(b,u)||{}}else if("object"===n(o.insert)){var w=Object.keys(o.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,o.insert[w])}r+=c}return Object.keys(u).forEach((function(i){e.scroll.formatAt(t,c,i,u[i])})),t+c}),0),t.reduce((function(t,i){return"number"==typeof i.delete?(e.scroll.deleteAt(t,i.delete),t):t+(i.retain||i.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new o.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(a){if(null==i.scroll.whitelist||i.scroll.whitelist[a]){var r=i.scroll.lines(t,Math.max(e,1)),o=e;r.forEach((function(e){var r=e.length();if(e instanceof c.default){var s=t-e.offset(i.scroll),l=e.newlineIndex(s+o)-s+1;e.formatAt(s,l,a,n[a])}else e.format(a,n[a]);o-=r}))}})),this.scroll.optimize(),this.update((new o.default).retain(t).retain(e,(0,p.default)(n)))}},{key:"formatText",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(a){i.scroll.formatAt(t,e,a,n[a])})),this.update((new o.default).retain(t).retain(e,(0,p.default)(n)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new o.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[],n=[];0===e?this.scroll.path(t).forEach((function(t){var e=a(t,1)[0];e instanceof h.default?i.push(e):e instanceof l.default.Leaf&&n.push(e)})):(i=this.scroll.lines(t,e),n=this.scroll.descendants(l.default.Leaf,t,e));var r=[i,n].map((function(t){if(0===t.length)return{};for(var e=(0,d.bubbleFormats)(t.shift());Object.keys(e).length>0;){var i=t.shift();if(null==i)return e;e=_((0,d.bubbleFormats)(i),e)}return e}));return g.default.apply(g.default,r)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"==typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,i){return this.scroll.insertAt(t,e,i),this.update((new o.default).retain(t).insert(function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},e,i)))}},{key:"insertText",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(n).forEach((function(a){i.scroll.formatAt(t,e.length,a,n[a])})),this.update((new o.default).retain(t).insert(e,(0,p.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof f.default)}},{key:"removeFormat",value:function(t,e){var i=this.getText(t,e),n=this.scroll.line(t+e),r=a(n,2),s=r[0],l=r[1],u=0,d=new o.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+u-1).insert("\n"));var h=this.getContents(t,e+u).diff((new o.default).insert(i).concat(d)),f=(new o.default).retain(t).concat(h);return this.applyDelta(f)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(y)&&l.default.find(e[0].target)){var a=l.default.find(e[0].target),r=(0,d.bubbleFormats)(a),s=a.offset(this.scroll),c=e[0].oldValue.replace(u.default.CONTENTS,""),h=(new o.default).insert(c),f=(new o.default).insert(a.value()),p=(new o.default).retain(s).concat(h.diff(f,i));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,r):t.push(e)}),new o.default),this.delta=n.compose(t)}else this.delta=this.getDelta(),t&&(0,m.default)(n.compose(t),this.delta)||(t=n.diff(this.delta,i));return t}}]),t}();function _(t,e){return Object.keys(e).reduce((function(i,n){return null==t[n]||(e[n]===t[n]?i[n]=e[n]:Array.isArray(e[n])?e[n].indexOf(t[n])<0&&(i[n]=e[n].concat([t[n]])):i[n]=[e[n],t[n]]),i}),{})}e.default=b},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=c(i(0)),o=c(i(21)),s=c(i(11)),l=c(i(8));function c(t){return t&&t.__esModule?t:{default:t}}function u(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=(0,c(i(10)).default)("quill:selection"),f=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,t),this.index=e,this.length=i},p=function(){function t(e,i){var n=this;d(this,t),this.emitter=i,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.TEXT_CHANGE&&e.length()>0&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var t=n.getNativeRange();null!=t&&t.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var i=e.range,a=i.startNode,r=i.startOffset,o=i.endNode,s=i.endOffset;n.setNativeRange(a,r,o,s)}})),this.update(l.default.sources.SILENT)}return a(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var i=this.getNativeRange();if(null!=i&&i.native.collapsed&&!r.default.query(t,r.default.Scope.BLOCK)){if(i.start.node!==this.cursor.textNode){var n=r.default.find(i.start.node,!1);if(null==n)return;if(n instanceof r.default.Leaf){var a=n.split(i.start.offset);n.parent.insertBefore(this.cursor,a)}else n.insertBefore(this.cursor,i.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.scroll.length();t=Math.min(t,i-1),e=Math.min(t+e,i-1)-t;var a=void 0,r=this.scroll.leaf(t),o=n(r,2),s=o[0],l=o[1];if(null==s)return null;var c=s.position(l,!0),u=n(c,2);a=u[0],l=u[1];var d=document.createRange();if(e>0){d.setStart(a,l);var h=this.scroll.leaf(t+e),f=n(h,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=n(p,2);return a=m[0],l=m[1],d.setEnd(a,l),d.getBoundingClientRect()}var g="left",v=void 0;return a instanceof Text?(l<a.data.length?(d.setStart(a,l),d.setEnd(a,l+1)):(d.setStart(a,l-1),d.setEnd(a,l),g="right"),v=d.getBoundingClientRect()):(v=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var i=this.normalizeNative(e);return h.info("getNativeRange",i),i}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,i=[[t.start.node,t.start.offset]];t.native.collapsed||i.push([t.end.node,t.end.offset]);var a=i.map((function(t){var i=n(t,2),a=i[0],o=i[1],s=r.default.find(a,!0),l=s.offset(e.scroll);return 0===o?l:s instanceof r.default.Container?l+s.length():l+s.index(a,o)})),o=Math.min(Math.max.apply(Math,u(a)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(u(a)));return new f(s,o-s)}},{key:"normalizeNative",value:function(t){if(!m(this.root,t.startContainer)||!t.collapsed&&!m(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,i=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>i)e=e.childNodes[i],i=0;else{if(e.childNodes.length!==i)break;i=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=i})),e}},{key:"rangeToNative",value:function(t){var e=this,i=t.collapsed?[t.index]:[t.index,t.index+t.length],a=[],r=this.scroll.length();return i.forEach((function(t,i){t=Math.min(r-1,t);var o,s=e.scroll.leaf(t),l=n(s,2),c=l[0],u=l[1],d=c.position(u,0!==i),h=n(d,2);o=h[0],u=h[1],a.push(o,u)})),a.length<2&&(a=a.concat(a)),a}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var i=this.getBounds(e.index,e.length);if(null!=i){var a=this.scroll.length()-1,r=this.scroll.line(Math.min(e.index,a)),o=n(r,1)[0],s=o;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,a));s=n(l,1)[0]}if(null!=o&&null!=s){var c=t.getBoundingClientRect();i.top<c.top?t.scrollTop-=c.top-i.top:i.bottom>c.bottom&&(t.scrollTop+=i.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,i,n),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=i.parentNode){var r=document.getSelection();if(null!=r)if(null!=t){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||a||t!==o.startContainer||e!==o.startOffset||i!==o.endContainer||n!==o.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==i.tagName&&(n=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(i,n),r.removeAllRanges(),r.addRange(s)}}else r.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof e&&(i=e,e=!1),h.info("setRange",t),null!=t){var n=this.rangeToNative(t);this.setNativeRange.apply(this,u(n).concat([e]))}else this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.lastRange,i=this.getRange(),a=n(i,2),r=a[0],c=a[1];if(this.lastRange=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,h=[l.default.events.SELECTION_CHANGE,(0,o.default)(this.lastRange),(0,o.default)(e),t];if((u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(h)),t!==l.default.sources.SILENT)(d=this.emitter).emit.apply(d,h)}}}]),t}();function m(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=f,e.default=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(0);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"insertInto",value:function(t,i){0===t.children.length?r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((n=o)&&n.__esModule?n:{default:n}).default.Embed);c.blotName="break",c.tagName="BR",e.default=c},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(44),o=i(30),s=i(1),l=function(t){function e(e){var i=t.call(this,e)||this;return i.build(),i}return a(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var i=c(e);t.insertBefore(i,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,i){t.deleteAt(e,i)}))},e.prototype.descendant=function(t,i){var n=this.children.find(i),a=n[0],r=n[1];return null==t.blotName&&t(a)||null!=t.blotName&&a instanceof t?[a,r]:a instanceof e?a.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,i,n){void 0===i&&(i=0),void 0===n&&(n=Number.MAX_VALUE);var a=[],r=n;return this.children.forEachAt(i,n,(function(i,n,o){(null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t)&&a.push(i),i instanceof e&&(a=a.concat(i.descendants(t,n,r))),r-=o})),a},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,i,n){this.children.forEachAt(t,e,(function(t,e,a){t.formatAt(e,a,i,n)}))},e.prototype.insertAt=function(t,e,i){var n=this.children.find(t),a=n[0],r=n[1];if(a)a.insertAt(r,e,i);else{var o=null==i?s.create("text",e):s.create(e,i);this.appendChild(o)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(i){t.insertBefore(i,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var i=s.create(this.statics.defaultChild);this.appendChild(i),i.optimize(e)}else this.remove()},e.prototype.path=function(t,i){void 0===i&&(i=!1);var n=this.children.find(t,i),a=n[0],r=n[1],o=[[this,t]];return a instanceof e?o.concat(a.path(r,i)):(null!=a&&o.push([a,r]),o)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(i){i instanceof e&&i.moveChildren(this),t.prototype.replace.call(this,i)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var i=this.clone();return this.parent.insertBefore(i,this.next),this.children.forEachAt(t,this.length(),(function(t,n,a){t=t.split(n,e),i.appendChild(t)})),i},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var i=this,n=[],a=[];t.forEach((function(t){t.target===i.domNode&&"childList"===t.type&&(n.push.apply(n,t.addedNodes),a.push.apply(a,t.removedNodes))})),a.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==i.domNode||e.detach())}})),n.filter((function(t){return t.parentNode==i.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var n=c(t);n.next==e&&null!=n.next||(null!=n.parent&&n.parent.removeChild(i),i.insertBefore(n,e||void 0))}))},e}(o.default);function c(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(i){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=l},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(12),o=i(31),s=i(17),l=i(1),c=function(t){function e(e){var i=t.call(this,e)||this;return i.attributes=new o.default(i.domNode),i}return a(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var i=l.query(t);i instanceof r.default?this.attributes.attribute(i,e):e&&(null==i||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,i){var n=t.prototype.replaceWith.call(this,e,i);return this.attributes.copy(n),n},e.prototype.update=function(e,i){var n=this;t.prototype.update.call(this,e,i),e.some((function(t){return t.target===n.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(i,n){var a=t.prototype.wrap.call(this,i,n);return a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},e}(s.default);e.default=c},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(30),o=i(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var i=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(i+=1),[this.parent.domNode,i]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=s},function(t,e,i){var n=i(11),a=i(3),r={attributes:{compose:function(t,e,i){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=a(!0,{},e);for(var r in i||(n=Object.keys(n).reduce((function(t,e){return null!=n[e]&&(t[e]=n[e]),t}),{})),t)void 0!==t[r]&&void 0===e[r]&&(n[r]=t[r]);return Object.keys(n).length>0?n:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var i=Object.keys(t).concat(Object.keys(e)).reduce((function(i,a){return n(t[a],e[a])||(i[a]=void 0===e[a]?null:e[a]),i}),{});return Object.keys(i).length>0?i:void 0},transform:function(t,e,i){if("object"!=typeof t)return e;if("object"==typeof e){if(!i)return e;var n=Object.keys(e).reduce((function(i,n){return void 0===t[n]&&(i[n]=e[n]),i}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(t){return new o(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};function o(t){this.ops=t,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var i=this.offset,n=r.length(e);if(t>=n-i?(t=n-i,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var a={};return e.attributes&&(a.attributes=e.attributes),"number"==typeof e.retain?a.retain=t:"string"==typeof e.insert?a.insert=e.insert.substr(i,t):a.insert=e.insert,a}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,i=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[i].concat(n)}return[]},t.exports=r},function(t,e){var i=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var e,i,n;try{e=Map}catch(t){e=function(){}}try{i=Set}catch(t){i=function(){}}try{n=Promise}catch(t){n=function(){}}function a(r,s,l,c,u){"object"==typeof s&&(l=s.depth,c=s.prototype,u=s.includeNonEnumerable,s=s.circular);var d=[],h=[],f="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function r(l,p){if(null===l)return null;if(0===p)return l;var m,g;if("object"!=typeof l)return l;if(t(l,e))m=new e;else if(t(l,i))m=new i;else if(t(l,n))m=new n((function(t,e){l.then((function(e){t(r(e,p-1))}),(function(t){e(r(t,p-1))}))}));else if(a.__isArray(l))m=[];else if(a.__isRegExp(l))m=new RegExp(l.source,o(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(a.__isDate(l))m=new Date(l.getTime());else{if(f&&Buffer.isBuffer(l))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(m),m;t(l,Error)?m=Object.create(l):void 0===c?(g=Object.getPrototypeOf(l),m=Object.create(g)):(m=Object.create(c),g=c)}if(s){var v=d.indexOf(l);if(-1!=v)return h[v];d.push(l),h.push(m)}for(var y in t(l,e)&&l.forEach((function(t,e){var i=r(e,p-1),n=r(t,p-1);m.set(i,n)})),t(l,i)&&l.forEach((function(t){var e=r(t,p-1);m.add(e)})),l){var b;g&&(b=Object.getOwnPropertyDescriptor(g,y)),b&&null==b.set||(m[y]=r(l[y],p-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(y=0;y<_.length;y++){var x=_[y];(!(k=Object.getOwnPropertyDescriptor(l,x))||k.enumerable||u)&&(m[x]=r(l[x],p-1),k.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(u){var w=Object.getOwnPropertyNames(l);for(y=0;y<w.length;y++){var k,S=w[y];(k=Object.getOwnPropertyDescriptor(l,S))&&k.enumerable||(m[S]=r(l[S],p-1),Object.defineProperty(m,S,{enumerable:!1}))}}return m}(r,l)}function r(t){return Object.prototype.toString.call(t)}function o(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return a.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},a.__objToStr=r,a.__isDate=function(t){return"object"==typeof t&&"[object Date]"===r(t)},a.__isArray=function(t){return"object"==typeof t&&"[object Array]"===r(t)},a.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===r(t)},a.__getRegExpFlags=o,a}();"object"==typeof t&&t.exports&&(t.exports=i)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=f(i(0)),s=f(i(8)),l=i(4),c=f(l),u=f(i(16)),d=f(i(13)),h=f(i(25));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return t instanceof c.default||t instanceof l.BlockEmbed}var m=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.emitter=i.emitter,Array.isArray(i.whitelist)&&(n.whitelist=i.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,i){var a=this.line(t),o=n(a,2),s=o[0],c=o[1],h=this.line(t+i),f=n(h,1)[0];if(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,i),null!=f&&s!==f&&c>0){if(s instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof u.default?null:f.children.head;s.moveChildren(f,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,i,n,a){(null==this.whitelist||this.whitelist[n])&&(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,i,n,a),this.optimize())}},{key:"insertAt",value:function(t,i,n){if(null==n||null==this.whitelist||this.whitelist[i]){if(t>=this.length())if(null==n||null==o.default.query(i,o.default.Scope.BLOCK)){var a=o.default.create(this.statics.defaultChild);this.appendChild(a),null==n&&i.endsWith("\n")&&(i=i.slice(0,-1)),a.insertAt(0,i,n)}else{var s=o.default.create(i,n);this.appendChild(s)}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,i,n);this.optimize()}}},{key:"insertBefore",value:function(t,i){if(t.statics.scope===o.default.Scope.INLINE_BLOT){var n=o.default.create(this.statics.defaultChild);n.appendChild(t),t=n}r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,i)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(p,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=function t(e,i,n){var a=[],r=n;return e.children.forEachAt(i,n,(function(e,i,n){p(e)?a.push(e):e instanceof o.default.Container&&(a=a.concat(t(e,i,r))),r-=n})),a};return i(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,i),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,i))}},{key:"path",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var i=s.default.sources.USER;"string"==typeof t&&(i=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,i,t),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,i,t)}}}]),e}(o.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,h.default],e.default=m},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var n="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},a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=m(i(21)),s=m(i(11)),l=m(i(3)),c=m(i(2)),u=m(i(20)),d=m(i(0)),h=m(i(5)),f=m(i(10)),p=m(i(9));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var v=(0,f.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.bindings={},Object.keys(n.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&n.options.bindings[e]&&n.addBinding(n.options.bindings[e])})),n.addBinding({key:e.keys.ENTER,shiftKey:null},S),n.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},x),n.addBinding({key:e.keys.DELETE},{collapsed:!0},w)):(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},x),n.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},w)),n.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},k),n.addBinding({key:e.keys.DELETE},{collapsed:!1},k),n.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},x),n.listen(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,null,[{key:"match",value:function(t,e){return e=T(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(i){return!!e[i]!==t[i]&&null!==e[i]}))&&e.key===(t.which||t.keyCode)}}]),r(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=T(t);if(null==n||null==n.key)return v.warn("Attempted to add invalid keyboard binding",n);"function"==typeof e&&(e={handler:e}),"function"==typeof i&&(i={handler:i}),n=(0,l.default)(n,e,i),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(i){if(!i.defaultPrevented){var r=i.which||i.keyCode,o=(t.bindings[r]||[]).filter((function(t){return e.match(i,t)}));if(0!==o.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var c=t.quill.getLine(l.index),u=a(c,2),h=u[0],f=u[1],p=t.quill.getLeaf(l.index),m=a(p,2),g=m[0],v=m[1],y=0===l.length?[g,v]:t.quill.getLeaf(l.index+l.length),b=a(y,2),_=b[0],x=b[1],w=g instanceof d.default.Text?g.value().slice(0,v):"",k=_ instanceof d.default.Text?_.value().slice(x):"",S={collapsed:0===l.length,empty:0===l.length&&h.length()<=1,format:t.quill.getFormat(l),offset:f,prefix:w,suffix:k};o.some((function(e){if(null!=e.collapsed&&e.collapsed!==S.collapsed)return!1;if(null!=e.empty&&e.empty!==S.empty)return!1;if(null!=e.offset&&e.offset!==S.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==S.format[t]})))return!1}else if("object"===n(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=S.format[t]:!1===e.format[t]?null==S.format[t]:(0,s.default)(e.format[t],S.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(S.prefix))&&(!(null!=e.suffix&&!e.suffix.test(S.suffix))&&!0!==e.handler.call(t,l,S))}))&&i.preventDefault()}}}}))}}]),e}(p.default);function _(t,e){var i,n=t===b.keys.LEFT?"prefix":"suffix";return g(i={key:t,shiftKey:e,altKey:null},n,/^$/),g(i,"handler",(function(i){var n=i.index;t===b.keys.RIGHT&&(n+=i.length+1);var r=this.quill.getLeaf(n);return!(a(r,1)[0]instanceof d.default.Embed)||(t===b.keys.LEFT?e?this.quill.setSelection(i.index-1,i.length+1,h.default.sources.USER):this.quill.setSelection(i.index-1,h.default.sources.USER):e?this.quill.setSelection(i.index,i.length+1,h.default.sources.USER):this.quill.setSelection(i.index+i.length+1,h.default.sources.USER),!1)})),i}function x(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var i=this.quill.getLine(t.index),n=a(i,1)[0],r={};if(0===e.offset){var o=this.quill.getLine(t.index-1),s=a(o,1)[0];if(null!=s&&s.length()>1){var l=n.formats(),c=this.quill.getFormat(t.index-1,1);r=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-d,d,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index-d,d,r,h.default.sources.USER),this.quill.focus()}}function w(t,e){var i=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-i)){var n={},r=0,o=this.quill.getLine(t.index),s=a(o,1)[0];if(e.offset>=s.length()-1){var l=this.quill.getLine(t.index+1),c=a(l,1)[0];if(c){var d=s.formats(),f=this.quill.getFormat(t.index,1);n=u.default.attributes.diff(d,f)||{},r=c.length()}}this.quill.deleteText(t.index,i,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index+r-1,i,n,h.default.sources.USER)}}function k(t){var e=this.quill.getLines(t),i={};if(e.length>1){var n=e[0].formats(),a=e[e.length-1].formats();i=u.default.attributes.diff(a,n)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index,1,i,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function S(t,e){var i=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var n=Object.keys(e.format).reduce((function(t,i){return d.default.query(i,d.default.Scope.BLOCK)&&!Array.isArray(e.format[i])&&(t[i]=e.format[i]),t}),{});this.quill.insertText(t.index,"\n",n,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==n[t]&&(Array.isArray(e.format[t])||"link"!==t&&i.quill.format(t,e.format[t],h.default.sources.USER))}))}function M(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var i=d.default.query("code-block"),n=e.index,r=e.length,o=this.quill.scroll.descendant(i,n),s=a(o,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),f=l.newlineIndex(c,!0)+1,p=l.newlineIndex(u+c+r),m=l.domNode.textContent.slice(f,p).split("\n");c=0,m.forEach((function(e,a){t?(l.insertAt(f+c,i.TAB),c+=i.TAB.length,0===a?n+=i.TAB.length:r+=i.TAB.length):e.startsWith(i.TAB)&&(l.deleteAt(f+c,i.TAB.length),c-=i.TAB.length,0===a?n-=i.TAB.length:r-=i.TAB.length),c+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(n,r,h.default.sources.SILENT)}}}}function L(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,i){this.quill.format(t,!i.format[t],h.default.sources.USER)}}}function T(t){if("string"==typeof t||"number"==typeof t)return T({key:t});if("object"===(void 0===t?"undefined":n(t))&&(t=(0,o.default)(t,!1)),"string"==typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[y]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:L("bold"),italic:L("italic"),underline:L("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new c.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),i=a(e,2),n=i[0],r=i[1],o=(0,l.default)({},n.formats(),{list:"checked"}),s=(new c.default).retain(t.index).insert("\n",o).retain(n.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var i=this.quill.getLine(t.index),n=a(i,2),r=n[0],o=n[1],s=(new c.default).retain(t.index).insert("\n",e.format).retain(r.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var i=e.prefix.length,n=this.quill.getLine(t.index),r=a(n,2),o=r[0],s=r[1];if(s>i)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(t.index-s).delete(i+1).retain(o.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-i,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),i=a(e,2),n=i[0],r=i[1],o=(new c.default).retain(t.index+n.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,h.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=y},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=l(i(0)),s=l(i(7));function l(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.selection=i,n.textNode=document.createTextNode(e.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,null,[{key:"value",value:function(){}}]),r(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,i){if(0!==this._length)return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i);for(var n=this,r=0;null!=n&&n.statics.scope!==o.default.Scope.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=e.CONTENTS.length,n.optimize(),n.formatAt(r,e.CONTENTS.length,t,i),this._length=0)}},{key:"index",value:function(t,i){return t===this.textNode?0:a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,i)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,i=this.selection.getNativeRange(),a=void 0,r=void 0,l=void 0;if(null!=i&&i.start.node===t&&i.end.node===t){var c=[t,i.start.offset,i.end.offset];a=c[0],r=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof s.default?(a=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(o.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var d=[r,l].map((function(t){return Math.max(0,Math.min(a.data.length,t-1))})),h=n(d,2);return r=h[0],l=h[1],{startNode:a,startOffset:r,endNode:a,endOffset:l}}}}},{key:"update",value:function(t,e){var i=this;if(t.some((function(t){return"characterData"===t.type&&t.target===i.textNode}))){var n=this.restore();n&&(e.range=n)}}},{key:"value",value:function(){return""}}]),e}(o.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(i(0)),a=i(4),r=o(a);function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.default.Container);c.allowedChildren=[r.default,a.BlockEmbed,c],e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(0),s=(n=o)&&n.__esModule?n:{default:n};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"value",value:function(t){var i=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return i.startsWith("rgb(")?(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+i.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):i}}]),e}(s.default.Attributor.Style),d=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),h=new u("color","color",{scope:s.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=d,e.ColorStyle=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"format",value:function(t,i){if(t!==this.statics.blotName||!i)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i);i=this.constructor.sanitize(i),this.domNode.setAttribute("href",i)}}],[{key:"create",value:function(t){var i=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),i.setAttribute("href",t),i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target","_blank"),i}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return u(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((n=o)&&n.__esModule?n:{default:n}).default);function u(t,e){var i=document.createElement("a");i.href=t;var n=i.href.slice(0,i.href.indexOf(":"));return e.indexOf(n)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=c,e.sanitize=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="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},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=s(i(23)),o=s(i(107));function s(t){return t&&t.__esModule?t:{default:t}}var l=0;function c(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var u=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){i.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case r.default.keys.ENTER:i.togglePicker();break;case r.default.keys.ESCAPE:i.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return a(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),t.hasAttribute("value")&&i.setAttribute("data-value",t.getAttribute("value")),t.textContent&&i.setAttribute("data-label",t.textContent),i.addEventListener("click",(function(){e.selectItem(i,!0)})),i.addEventListener("keydown",(function(t){switch(t.keyCode){case r.default.keys.ENTER:e.selectItem(i,!0),t.preventDefault();break;case r.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),i}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=o.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(i){var n=t.buildItem(i);e.appendChild(n),!0===i.selected&&t.selectItem(n)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");if(t!==i&&(null!=i&&i.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":n(Event))){var a=document.createEvent("Event");a.initEvent("change",!0,!0),this.select.dispatchEvent(a)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var i=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),t}();e.default=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=v(i(0)),a=v(i(5)),r=i(4),o=v(r),s=v(i(16)),l=v(i(25)),c=v(i(24)),u=v(i(35)),d=v(i(6)),h=v(i(22)),f=v(i(7)),p=v(i(55)),m=v(i(42)),g=v(i(23));function v(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":o.default,"blots/block/embed":r.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),n.default.register(o.default,s.default,c.default,d.default,h.default,f.default),e.default=a.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),a=function(){function t(t){this.domNode=t,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return n.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,i,a){var r=this.isolate(t,e);if(null!=n.query(i,n.Scope.BLOT)&&a)r.wrap(i,a);else if(null!=n.query(i,n.Scope.ATTRIBUTE)){var o=n.create(this.statics.scope);r.wrap(o),o.format(i,a)}},t.prototype.insertAt=function(t,e,i){var a=null==i?n.create("text",e):n.create(e,i),r=this.split(t);this.parent.insertBefore(a,r)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var i=null;t.children.insertBefore(this,e),null!=e&&(i=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==i||t.domNode.insertBefore(this.domNode,i),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var i=this.split(t);return i.split(e),i},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var i="string"==typeof t?n.create(t,e):t;return i.replace(this),i},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var i="string"==typeof t?n.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(i,this.next),i.appendChild(this),i},t.blotName="abstract",t}();e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(12),a=i(32),r=i(33),o=i(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=n.default.keys(this.domNode),i=a.default.keys(this.domNode),s=r.default.keys(this.domNode);e.concat(i).concat(s).forEach((function(e){var i=o.query(e,o.Scope.ATTRIBUTE);i instanceof n.default&&(t.attributes[i.attrName]=i)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(i){var n=e.attributes[i].value(e.domNode);t.format(i,n)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,i){return e[i]=t.attributes[i].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(r(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(i(12).default);e.default=o},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function r(t){var e=t.split("-"),i=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+i}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i(12).default);e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var a=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=i,this.modules={}}return n(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();a.DEFAULTS={modules:{}},a.themes={default:a},e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=s(i(0)),o=s(i(7));function s(t){return t&&t.__esModule?t:{default:t}}var l="\ufeff",c=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.contentNode=document.createElement("span"),i.contentNode.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach((function(t){i.contentNode.appendChild(t)})),i.leftGuard=document.createTextNode(l),i.rightGuard=document.createTextNode(l),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(i.contentNode),i.domNode.appendChild(i.rightGuard),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"index",value:function(t,i){return t===this.leftGuard?0:t===this.rightGuard?1:a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,i)}},{key:"restore",value:function(t){var e=void 0,i=void 0,n=t.data.split(l).join("");if(t===this.leftGuard)if(this.prev instanceof o.default){var a=this.prev.length();this.prev.insertAt(a,n),e={startNode:this.prev.domNode,startOffset:a+n.length}}else i=document.createTextNode(n),this.parent.insertBefore(r.default.create(i),this),e={startNode:i,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(i=document.createTextNode(n),this.parent.insertBefore(r.default.create(i),this.next),e={startNode:i,startOffset:n.length}));return t.data=l,e}},{key:"update",value:function(t,e){var i=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===i.leftGuard||t.target===i.rightGuard)){var n=i.restore(t.target);n&&(e.range=n)}}))}}]),e}(r.default.Embed);e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n};var o={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new r.default.Attributor.Attribute("align","align",o),l=new r.default.Attributor.Class("align","ql-align",o),c=new r.default.Attributor.Style("align","text-align",o);e.AlignAttribute=s,e.AlignClass=l,e.AlignStyle=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n},o=i(26);var s=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n};var o={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},s=new r.default.Attributor.Attribute("direction","dir",o),l=new r.default.Attributor.Class("direction","ql-direction",o),c=new r.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=s,e.DirectionClass=l,e.DirectionStyle=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(0),s=(n=o)&&n.__esModule?n:{default:n};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new s.default.Attributor.Class("font","ql-font",u),h=new(function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"value",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(s.default.Attributor.Style))("font","font-family",u);e.FontStyle=h,e.FontClass=d},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var n,a=i(0),r=(n=a)&&n.__esModule?n:{default:n};var o=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=s},function(t,e,i){"use strict";t.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=o(i(0)),r=o(i(5));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(r.default.events.EDITOR_CHANGE,(function(t,e,i,a){t!==r.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&a!==r.default.sources.USER?n.transform(e):n.record(e,i))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var i=this.stack[t].pop();this.stack[e].push(i),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i[t],r.default.sources.USER),this.ignoreChange=!1;var n=l(i[t]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var i=this.quill.getContents().diff(e),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var a=this.stack.undo.pop();i=i.compose(a.undo),t=a.redo.compose(t)}else this.lastRecorded=n;this.stack.undo.push({redo:t,undo:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(o(i(9)).default);function l(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),i=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=a.default.query(t,a.default.Scope.BLOCK)})))}(t)&&(i-=1),i}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=p(i(3)),o=p(i(2)),s=p(i(8)),l=p(i(23)),c=p(i(34)),u=p(i(59)),d=p(i(60)),h=p(i(28)),f=p(i(61));function p(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_=[!1,"serif","monospace"],x=["1","2","3",!1],w=["small",!1,"large","huge"],k=function(t){function e(t,i){m(this,e);var n=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return t.emitter.listenDOM("click",document.body,(function e(i){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==n.tooltip||n.tooltip.root.contains(i.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(t){t.container.contains(i.target)||t.close()}))})),n}return v(e,t),n(e,[{key:"addModule",value:function(t){var i=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(i),i}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(i){if(i.startsWith("ql-")&&(i=i.slice("ql-".length),null!=e[i]))if("direction"===i)t.innerHTML=e[i][""]+e[i].rtl;else if("string"==typeof e[i])t.innerHTML=e[i];else{var n=t.value||"";null!=n&&e[i][n]&&(t.innerHTML=e[i][n])}}))}))}},{key:"buildPickers",value:function(t,e){var i=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&M(t,y),new d.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var i=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&M(t,b,"background"===i?"#ffffff":"#000000"),new u.default(t,e[i])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?M(t,_):t.classList.contains("ql-header")?M(t,x):t.classList.contains("ql-size")&&M(t,w)),new h.default(t)}));this.quill.on(s.default.events.EDITOR_CHANGE,(function(){i.pickers.forEach((function(t){t.update()}))}))}}]),e}(c.default);k.DEFAULTS=(0,r.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var i=new FileReader;i.onload=function(i){var n=t.quill.getSelection(!0);t.quill.updateContents((new o.default).retain(n.index).delete(n.length).insert({image:i.target.result}),s.default.sources.USER),t.quill.setSelection(n.index+1,s.default.sources.SILENT),e.value=""},i.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var S=function(t){function e(t,i){m(this,e);var n=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return v(e,t),n(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){l.default.match(e,"enter")?(t.save(),e.preventDefault()):l.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,s.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=function(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(e)return(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0";if(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/";return t}(t);case"formula":if(!t)break;var i=this.quill.getSelection(!0);if(null!=i){var n=i.index+i.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",s.default.sources.USER),this.quill.setSelection(n+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(f.default);function M(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var n=document.createElement("option");e===i?n.setAttribute("selected","selected"):n.setAttribute("value",e),t.appendChild(n)}))}e.BaseTooltip=S,e.default=k},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,i=this.iterator();e=i();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,i=this.head;null!=i;){if(i===t)return e;e+=i.length(),i=i.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var i,n=this.iterator();i=n();){var a=i.length();if(t<a||e&&t===a&&(null==i.next||0!==i.next.length()))return[i,t];t-=a}return[null,0]},t.prototype.forEach=function(t){for(var e,i=this.iterator();e=i();)t(e)},t.prototype.forEachAt=function(t,e,i){if(!(e<=0))for(var n,a=this.find(t),r=a[0],o=t-a[1],s=this.iterator(r);(n=s())&&o<t+e;){var l=n.length();t>o?i(n,t-o,Math.min(e,o+l-t)):i(n,0,Math.min(l,t+e-o)),o+=l}},t.prototype.map=function(t){return this.reduce((function(e,i){return e.push(t(i)),e}),[])},t.prototype.reduce=function(t,e){for(var i,n=this.iterator();i=n();)e=t(e,i);return e},t}();e.default=n},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(17),o=i(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(t){function e(e){var i=t.call(this,e)||this;return i.scroll=i,i.observer=new MutationObserver((function(t){i.update(t)})),i.observer.observe(i.domNode,s),i.attach(),i}return a(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,i){this.update(),0===e&&i===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,i)},e.prototype.formatAt=function(e,i,n,a){this.update(),t.prototype.formatAt.call(this,e,i,n,a)},e.prototype.insertAt=function(e,i,n){this.update(),t.prototype.insertAt.call(this,e,i,n)},e.prototype.optimize=function(e,i){var n=this;void 0===e&&(e=[]),void 0===i&&(i={}),t.prototype.optimize.call(this,i);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&s(t.parent))},l=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof r.default&&t.children.forEach(l),t.optimize(i))},c=e,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);s(e,!1),e instanceof r.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),a=(c=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,i){var n=this;void 0===i&&(i={}),(e=e||this.observer.takeRecords()).map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==n&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],i)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,i),this.optimize(e,i)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(r.default);e.default=l},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(18),o=i(1);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.formats=function(i){if(i.tagName!==e.tagName)return t.formats.call(this,i)},e.prototype.format=function(i,n){var a=this;i!==this.statics.blotName||n?t.prototype.format.call(this,i,n):(this.children.forEach((function(t){t instanceof r.default||(t=t.wrap(e.blotName,!0)),a.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,i,n,a){null!=this.formats()[n]||o.query(n,o.Scope.ATTRIBUTE)?this.isolate(e,i).format(n,a):t.prototype.formatAt.call(this,e,i,n,a)},e.prototype.optimize=function(i){t.prototype.optimize.call(this,i);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var a=this.next;a instanceof e&&a.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var i in t)if(t[i]!==e[i])return!1;return!0}(n,a.formats())&&(a.moveChildren(this),a.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(r.default);e.default=s},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(18),o=i(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.formats=function(i){var n=o.query(e.blotName).tagName;if(i.tagName!==n)return t.formats.call(this,i)},e.prototype.format=function(i,n){null!=o.query(i,o.Scope.BLOCK)&&(i!==this.statics.blotName||n?t.prototype.format.call(this,i,n):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,i,n,a){null!=o.query(n,o.Scope.BLOCK)?this.format(n,a):t.prototype.formatAt.call(this,e,i,n,a)},e.prototype.insertAt=function(e,i,n){if(null==n||null!=o.query(i,o.Scope.INLINE))t.prototype.insertAt.call(this,e,i,n);else{var a=this.split(e),r=o.create(i,n);a.parent.insertBefore(r,a)}},e.prototype.update=function(e,i){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,i)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(r.default);e.default=s},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.formats=function(t){},e.prototype.format=function(e,i){t.prototype.formatAt.call(this,0,this.length(),e,i)},e.prototype.formatAt=function(e,i,n,a){0===e&&i===this.length()?this.format(n,a):t.prototype.formatAt.call(this,e,i,n,a)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i(19).default);e.default=r},function(t,e,i){"use strict";var n,a=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(19),o=i(1),s=function(t){function e(e){var i=t.call(this,e)||this;return i.text=i.statics.value(i.domNode),i}return a(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,i,n){null==n?(this.text=this.text.slice(0,e)+i+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,i,n)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(i){t.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var i=o.create(this.domNode.splitText(t));return this.parent.insertBefore(i,this.next),this.text=this.statics.value(this.domNode),i},e.prototype.update=function(t,e){var i=this;t.some((function(t){return"characterData"===t.type&&t.target===i.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(r.default);e.default=s},function(t,e,i){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:a.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var n=i.indexOf(t,e);return-1!==n&&n===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,i=Object(this),n=i.length>>>0,a=arguments[1],r=0;r<n;r++)if(e=i[r],t.call(a,e,r,i))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var i=-1;function n(t,e,l){if(t==e)return t?[[0,t]]:[];(l<0||t.length<l)&&(l=null);var u=r(t,e),d=t.substring(0,u);u=o(t=t.substring(u),e=e.substring(u));var h=t.substring(t.length-u),f=function(t,e){var s;if(!t)return[[1,e]];if(!e)return[[i,t]];var l=t.length>e.length?t:e,c=t.length>e.length?e:t,u=l.indexOf(c);if(-1!=u)return s=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],t.length>e.length&&(s[0][0]=s[2][0]=i),s;if(1==c.length)return[[i,t],[1,e]];var d=function(t,e){var i=t.length>e.length?t:e,n=t.length>e.length?e:t;if(i.length<4||2*n.length<i.length)return null;function a(t,e,i){for(var n,a,s,l,c=t.substring(i,i+Math.floor(t.length/4)),u=-1,d="";-1!=(u=e.indexOf(c,u+1));){var h=r(t.substring(i),e.substring(u)),f=o(t.substring(0,i),e.substring(0,u));d.length<f+h&&(d=e.substring(u-f,u)+e.substring(u,u+h),n=t.substring(0,i-f),a=t.substring(i+h),s=e.substring(0,u-f),l=e.substring(u+h))}return 2*d.length>=t.length?[n,a,s,l,d]:null}var s,l,c,u,d,h=a(i,n,Math.ceil(i.length/4)),f=a(i,n,Math.ceil(i.length/2));if(!h&&!f)return null;s=f?h&&h[4].length>f[4].length?h:f:h;t.length>e.length?(l=s[0],c=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],l=s[2],c=s[3]);var p=s[4];return[l,c,u,d,p]}(t,e);if(d){var h=d[0],f=d[1],p=d[2],m=d[3],g=d[4],v=n(h,p),y=n(f,m);return v.concat([[0,g]],y)}return function(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),s=o,l=2*o,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[s+1]=0,u[s+1]=0;for(var h=n-r,f=h%2!=0,p=0,m=0,g=0,v=0,y=0;y<o;y++){for(var b=-y+p;b<=y-m;b+=2){for(var _=s+b,x=(L=b==-y||b!=y&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-b;L<n&&x<r&&t.charAt(L)==e.charAt(x);)L++,x++;if(c[_]=L,L>n)m+=2;else if(x>r)p+=2;else if(f){if((S=s+h-b)>=0&&S<l&&-1!=u[S])if(L>=(k=n-u[S]))return a(t,e,L,x)}}for(var w=-y+g;w<=y-v;w+=2){for(var k,S=s+w,M=(k=w==-y||w!=y&&u[S-1]<u[S+1]?u[S+1]:u[S-1]+1)-w;k<n&&M<r&&t.charAt(n-k-1)==e.charAt(r-M-1);)k++,M++;if(u[S]=k,k>n)v+=2;else if(M>r)g+=2;else if(!f){if((_=s+h-w)>=0&&_<l&&-1!=c[_]){var L;x=s+(L=c[_])-_;if(L>=(k=n-k))return a(t,e,L,x)}}}}return[[i,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return d&&f.unshift([0,d]),h&&f.push([0,h]),s(f),null!=l&&(f=function(t,e){var n=function(t,e){if(0===e)return[0,t];for(var n=0,a=0;a<t.length;a++){var r=t[a];if(r[0]===i||0===r[0]){var o=n+r[1].length;if(e===o)return[a+1,t];if(e<o){t=t.slice();var s=e-n,l=[r[0],r[1].slice(0,s)],c=[r[0],r[1].slice(s)];return t.splice(a,1,l,c),[a+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}(t,e),a=n[1],r=n[0],o=a[r],s=a[r+1];if(null==o)return t;if(0!==o[0])return t;if(null!=s&&o[1]+s[1]===s[1]+o[1])return a.splice(r,2,s,o),c(a,r,2);if(null!=s&&0===s[1].indexOf(o[1])){a.splice(r,2,[s[0],o[1]],[0,o[1]]);var l=s[1].slice(o[1].length);return l.length>0&&a.splice(r+2,0,[s[0],l]),c(a,r,3)}return t}(f,l)),f=function(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},r=2;r<t.length;r+=1)0===t[r-2][0]&&a(t[r-2][1])&&t[r-1][0]===i&&n(t[r-1][1])&&1===t[r][0]&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;var o=[];for(r=0;r<t.length;r+=1)t[r][1].length>0&&o.push(t[r]);return o}(f)}function a(t,e,i,a){var r=t.substring(0,i),o=e.substring(0,a),s=t.substring(i),l=e.substring(a),c=n(r,o),u=n(s,l);return c.concat(u)}function r(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var i=0,n=Math.min(t.length,e.length),a=n,r=0;i<a;)t.substring(r,a)==e.substring(r,a)?r=i=a:n=a,a=Math.floor((n-i)/2+i);return a}function o(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var i=0,n=Math.min(t.length,e.length),a=n,r=0;i<a;)t.substring(t.length-a,t.length-r)==e.substring(e.length-a,e.length-r)?r=i=a:n=a,a=Math.floor((n-i)/2+i);return a}function s(t){t.push([0,""]);for(var e,n=0,a=0,l=0,c="",u="";n<t.length;)switch(t[n][0]){case 1:l++,u+=t[n][1],n++;break;case i:a++,c+=t[n][1],n++;break;case 0:a+l>1?(0!==a&&0!==l&&(0!==(e=r(u,c))&&(n-a-l>0&&0==t[n-a-l-1][0]?t[n-a-l-1][1]+=u.substring(0,e):(t.splice(0,0,[0,u.substring(0,e)]),n++),u=u.substring(e),c=c.substring(e)),0!==(e=o(u,c))&&(t[n][1]=u.substring(u.length-e)+t[n][1],u=u.substring(0,u.length-e),c=c.substring(0,c.length-e))),0===a?t.splice(n-l,a+l,[1,u]):0===l?t.splice(n-a,a+l,[i,c]):t.splice(n-a-l,a+l,[i,c],[1,u]),n=n-a-l+(a?1:0)+(l?1:0)+1):0!==n&&0==t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,l=0,a=0,c="",u=""}""===t[t.length-1][1]&&t.pop();var d=!1;for(n=1;n<t.length-1;)0==t[n-1][0]&&0==t[n+1][0]&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),d=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),d=!0)),n++;d&&s(t)}var l=n;function c(t,e,i){for(var n=e+i-1;n>=0&&n>=e-1;n--)if(n+1<t.length){var a=t[n],r=t[n+1];a[0]===r[1]&&t.splice(n,2,[a[0],a[1]+r[1]])}return t}l.INSERT=1,l.DELETE=i,l.EQUAL=0,t.exports=l},function(t,e){function i(t){var e=[];for(var i in t)e.push(i);return e}(t.exports="function"==typeof Object.keys?Object.keys:i).shim=i},function(t,e){var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function a(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=i?n:a).supported=n,e.unsupported=a},function(t,e){"use strict";var i=Object.prototype.hasOwnProperty,n="~";function a(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),o.prototype.eventNames=function(){var t,e,a=[];if(0===this._eventsCount)return a;for(e in t=this._events)i.call(t,e)&&a.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(t)):a},o.prototype.listeners=function(t,e){var i=n?n+t:t,a=this._events[i];if(e)return!!a;if(!a)return[];if(a.fn)return[a.fn];for(var r=0,o=a.length,s=new Array(o);r<o;r++)s[r]=a[r].fn;return s},o.prototype.emit=function(t,e,i,a,r,o){var s=n?n+t:t;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,i),!0;case 4:return u.fn.call(u.context,e,i,a),!0;case 5:return u.fn.call(u.context,e,i,a,r),!0;case 6:return u.fn.call(u.context,e,i,a,r,o),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,i);break;case 4:u[c].fn.call(u[c].context,e,i,a);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},o.prototype.on=function(t,e,i){var a=new r(e,i||this),o=n?n+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],a]:this._events[o].push(a):(this._events[o]=a,this._eventsCount++),this},o.prototype.once=function(t,e,i){var a=new r(e,i||this,!0),o=n?n+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],a]:this._events[o].push(a):(this._events[o]=a,this._eventsCount++),this},o.prototype.removeListener=function(t,e,i,r){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return 0==--this._eventsCount?this._events=new a:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||r&&!s.once||i&&s.context!==i||(0==--this._eventsCount?this._events=new a:delete this._events[o]);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==e||r&&!s[l].once||i&&s[l].context!==i)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new a:delete this._events[o]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new a:delete this._events[e])):(this._events=new a,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=n,o.EventEmitter=o,void 0!==t&&(t.exports=o)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var n="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},a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=b(i(3)),s=b(i(2)),l=b(i(0)),c=b(i(5)),u=b(i(10)),d=b(i(9)),h=i(36),f=i(37),p=b(i(13)),m=i(26),g=i(38),v=i(39),y=i(40);function b(t){return t&&t.__esModule?t:{default:t}}function _(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var x=(0,u.default)("quill:clipboard"),w="__ql-matcher",k=[[Node.TEXT_NODE,H],[Node.TEXT_NODE,I],["br",function(t,e){A(e,"\n")||e.insert("\n");return e}],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(t,e){var i={},n=t.style||{};n.fontStyle&&"italic"===C(t).fontStyle&&(i.italic=!0);n.fontWeight&&(C(t).fontWeight.startsWith("bold")||parseInt(C(t).fontWeight)>=700)&&(i.bold=!0);Object.keys(i).length>0&&(e=T(e,i));parseFloat(n.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e));return e}],["li",function(t,e){var i=l.default.query(t);if(null==i||"list-item"!==i.blotName||!A(e,"\n"))return e;var n=-1,a=t.parentNode;for(;!a.classList.contains("ql-clipboard");)"list"===(l.default.query(a)||{}).blotName&&(n+=1),a=a.parentNode;return n<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:n}))}],["b",O.bind(O,"bold")],["i",O.bind(O,"italic")],["style",function(){return new s.default}]],S=[h.AlignAttribute,g.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),M=[h.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),L=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],k.concat(n.options.matchers).forEach((function(t){var e=a(t,2),r=e[0],o=e[1];(i.matchVisual||o!==N)&&n.addMatcher(r,o)})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[p.default.blotName]){var i=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(i,_({},p.default.blotName,e[p.default.blotName]))}var n=this.prepareMatching(),r=a(n,2),o=r[0],l=r[1],c=E(this.container,o,l);return A(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),x.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,c.default.sources.SILENT);else{var n=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(n),i),this.quill.setSelection(t+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var i=this.quill.getSelection(),n=(new s.default).retain(i.index),a=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){n=n.concat(e.convert()).delete(i.length),e.quill.updateContents(n,c.default.sources.USER),e.quill.setSelection(n.length()-i.length,c.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=a,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],i=[];return this.matchers.forEach((function(n){var r=a(n,2),o=r[0],s=r[1];switch(o){case Node.TEXT_NODE:i.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(o),(function(t){t[w]=t[w]||[],t[w].push(s)}))}})),[e,i]}}]),e}(d.default);function T(t,e,i){return"object"===(void 0===e?"undefined":n(e))?Object.keys(e).reduce((function(t,i){return T(t,i,e[i])}),t):t.reduce((function(t,n){return n.attributes&&n.attributes[e]?t.push(n):t.insert(n.insert,(0,o.default)({},_({},e,i),n.attributes))}),new s.default)}function C(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function A(t,e){for(var i="",n=t.ops.length-1;n>=0&&i.length<e.length;--n){var a=t.ops[n];if("string"!=typeof a.insert)break;i=a.insert+i}return i.slice(-1*e.length)===e}function D(t){if(0===t.childNodes.length)return!1;var e=C(t);return["block","list-item"].indexOf(e.display)>-1}function E(t,e,i){return t.nodeType===t.TEXT_NODE?i.reduce((function(e,i){return i(t,e)}),new s.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(n,a){var r=E(a,e,i);return a.nodeType===t.ELEMENT_NODE&&(r=e.reduce((function(t,e){return e(a,t)}),r),r=(a[w]||[]).reduce((function(t,e){return e(a,t)}),r)),n.concat(r)}),new s.default):new s.default}function O(t,e,i){return T(i,t,!0)}function P(t,e){var i=l.default.Attributor.Attribute.keys(t),n=l.default.Attributor.Class.keys(t),a=l.default.Attributor.Style.keys(t),r={};return i.concat(n).concat(a).forEach((function(e){var i=l.default.query(e,l.default.Scope.ATTRIBUTE);null!=i&&(r[i.attrName]=i.value(t),r[i.attrName])||(null==(i=S[e])||i.attrName!==e&&i.keyName!==e||(r[i.attrName]=i.value(t)||void 0),null==(i=M[e])||i.attrName!==e&&i.keyName!==e||(i=M[e],r[i.attrName]=i.value(t)||void 0))})),Object.keys(r).length>0&&(e=T(e,r)),e}function Y(t,e){var i=l.default.query(t);if(null==i)return e;if(i.prototype instanceof l.default.Embed){var n={},a=i.value(t);null!=a&&(n[i.blotName]=a,e=(new s.default).insert(n,i.formats(t)))}else"function"==typeof i.formats&&(e=T(e,i.blotName,i.formats(t)));return e}function I(t,e){return A(e,"\n")||(D(t)||e.length()>0&&t.nextSibling&&D(t.nextSibling))&&e.insert("\n"),e}function N(t,e){if(D(t)&&null!=t.nextElementSibling&&!A(e,"\n\n")){var i=t.offsetHeight+parseFloat(C(t).marginTop)+parseFloat(C(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*i&&e.insert("\n")}return e}function H(t,e){var i=t.data;if("O:P"===t.parentNode.tagName)return e.insert(i.trim());if(0===i.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!C(t.parentNode).whiteSpace.startsWith("pre")){var n=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};i=(i=i.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==t.previousSibling&&D(t.parentNode)||null!=t.previousSibling&&D(t.previousSibling))&&(i=i.replace(/^\s+/,n.bind(n,!1))),(null==t.nextSibling&&D(t.parentNode)||null!=t.nextSibling&&D(t.nextSibling))&&(i=i.replace(/\s+$/,n.bind(n,!1)))}return e.insert(i)}L.DEFAULTS={matchers:[],matchVisual:!0},e.default=L,e.matchAttributor=P,e.matchBlot=Y,e.matchNewline=I,e.matchSpacing=N,e.matchText=H},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((n=o)&&n.__esModule?n:{default:n}).default);c.blotName="bold",c.tagName=["STRONG","B"],e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=u(i(2)),o=u(i(0)),s=u(i(5)),l=u(i(10)),c=u(i(9));function u(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=(0,l.default)("quill:toolbar"),f=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a,r=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));if(Array.isArray(r.options.container)){var o=document.createElement("div");m(o,r.options.container),t.container.parentNode.insertBefore(o,t.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach((function(t){r.addHandler(t,r.options.handlers[t])})),[].forEach.call(r.container.querySelectorAll("button, select"),(function(t){r.attach(t)})),r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.SELECTION_CHANGE&&r.update(e)})),r.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var t=r.quill.selection.getRange(),e=n(t,1)[0];r.update(e)})),r):(a=h.error("Container required for toolbar",r.options),d(r,a))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,i=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(i){if(i=i.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[i]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[i])return void h.warn("ignoring attaching to disabled format",i,t);if(null==o.default.query(i))return void h.warn("ignoring attaching to nonexistent format",i,t)}var a="SELECT"===t.tagName?"change":"click";t.addEventListener(a,(function(a){var l=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var c=t.options[t.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),a.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),d=n(u,1)[0];if(null!=e.handlers[i])e.handlers[i].call(e,l);else if(o.default.query(i).prototype instanceof o.default.Embed){if(!(l=prompt("Enter "+i)))return;e.quill.updateContents((new r.default).retain(d.index).delete(d.length).insert(function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},i,l)),s.default.sources.USER)}else e.quill.format(i,l,s.default.sources.USER);e.update(d)})),this.controls.push([i,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(i){var a=n(i,2),r=a[0],o=a[1];if("SELECT"===o.tagName){var s=void 0;if(null==t)s=null;else if(null==e[r])s=o.querySelector("option[selected]");else if(!Array.isArray(e[r])){var l=e[r];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=o.querySelector('option[value="'+l+'"]')}null==s?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var c=e[r]===o.getAttribute("value")||null!=e[r]&&e[r].toString()===o.getAttribute("value")||null==e[r]&&!o.getAttribute("value");o.classList.toggle("ql-active",c)}else o.classList.toggle("ql-active",null!=e[r])}))}}]),e}(c.default);function p(t,e,i){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+e),null!=i&&(n.value=i),t.appendChild(n)}function m(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var i=document.createElement("span");i.classList.add("ql-formats"),e.forEach((function(t){if("string"==typeof t)p(i,t);else{var e=Object.keys(t)[0],n=t[e];Array.isArray(n)?function(t,e,i){var n=document.createElement("select");n.classList.add("ql-"+e),i.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),n.appendChild(e)})),t.appendChild(n)}(i,e,n):p(i,e,n)}})),t.appendChild(i)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var i=this.quill.getFormat();Object.keys(i).forEach((function(e){null!=o.default.query(e,o.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",s.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),i=this.quill.getFormat(e),n=parseInt(i.indent||0);if("+1"===t||"-1"===t){var a="+1"===t?1:-1;"rtl"===i.direction&&(a*=-1),this.quill.format("indent",n+a,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),i=this.quill.getFormat(e);"check"===t?"checked"===i.list||"unchecked"===i.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",t,s.default.sources.USER)}}},e.default=f,e.addControls=m},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(28);var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.label.innerHTML=i,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"buildItem",value:function(t){var i=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return i.style.backgroundColor=t.getAttribute("value")||"",i}},{key:"selectItem",value:function(t,i){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,i);var n=this.label.querySelector(".ql-color-label"),a=t&&t.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=a:n.style.fill=a)}}]),e}(((n=o)&&n.__esModule?n:{default:n}).default);e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(28);var s=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=i[t.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"selectItem",value:function(t,i){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,i),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((n=o)&&n.__esModule?n:{default:n}).default);e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();var a=function(){function t(e,i){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=i||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,i=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=i+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),r=0;if(a.right>n.right&&(r=n.right-a.right,this.root.style.left=e+r+"px"),a.left<n.left&&(r=n.left-a.left,this.root.style.left=e+r+"px"),a.bottom>n.bottom){var o=a.bottom-a.top,s=t.bottom-t.top+o;this.root.style.top=i-s+"px",this.root.classList.add("ql-flip")}return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o=f(i(3)),s=f(i(8)),l=i(43),c=f(l),u=f(i(27)),d=i(15),h=f(i(41));function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(t){function e(t,i){p(this,e),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=v);var n=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.container.classList.add("ql-snow"),n}return g(e,t),r(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,i){t.handlers.link.call(t,!i.format.link)}))}}]),e}(c.default);y.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var i=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(i)&&0!==i.indexOf("mailto:")&&(i="mailto:"+i),this.quill.theme.tooltip.edit("link",i)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,i){p(this,e);var n=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.preview=n.root.querySelector("a.ql-preview"),n}return g(e,t),r(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var i=t.linkRange;t.restoreFocus(),t.quill.formatText(i,"link",!1,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(e,i,a){if(null!=e){if(0===e.length&&a===s.default.sources.USER){var r=t.quill.scroll.descendant(u.default,e.index),o=n(r,2),l=o[0],c=o[1];if(null!=l){t.linkRange=new d.Range(e.index-c,l.length());var h=u.default.formats(l.domNode);return t.preview.textContent=h,t.preview.setAttribute("href",h),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(l.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=y},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=I(i(29)),a=i(36),r=i(38),o=i(64),s=I(i(65)),l=I(i(66)),c=i(67),u=I(c),d=i(37),h=i(26),f=i(39),p=i(40),m=I(i(56)),g=I(i(68)),v=I(i(27)),y=I(i(69)),b=I(i(70)),_=I(i(71)),x=I(i(72)),w=I(i(73)),k=i(13),S=I(k),M=I(i(74)),L=I(i(75)),T=I(i(57)),C=I(i(41)),A=I(i(28)),D=I(i(59)),E=I(i(60)),O=I(i(61)),P=I(i(108)),Y=I(i(62));function I(t){return t&&t.__esModule?t:{default:t}}n.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),n.default.register({"formats/align":a.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":o.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":s.default,"formats/code-block":S.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":k.Code,"formats/italic":g.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":x.default,"formats/video":w.default,"formats/list/item":c.ListItem,"modules/formula":M.default,"modules/syntax":L.default,"modules/toolbar":T.default,"themes/bubble":P.default,"themes/snow":Y.default,"ui/icons":C.default,"ui/picker":A.default,"ui/icon-picker":E.default,"ui/color-picker":D.default,"ui/tooltip":O.default},!0),e.default=n.default},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(0),s=(n=o)&&n.__esModule?n:{default:n};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=new(function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"add",value:function(t,i){if("+1"===i||"-1"===i){var n=this.value(t)||0;i="+1"===i?n+1:n-1}return 0===i?(this.remove(t),!0):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,i)}},{key:"canAdd",value:function(t,i){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,i)||r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(i))}},{key:"value",value:function(t){return parseInt(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(s.default.Attributor.Class))("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=i(4);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((n=a)&&n.__esModule?n:{default:n}).default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(4);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((n=r)&&n.__esModule?n:{default:n}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=l(i(0)),o=l(i(4)),s=l(i(25));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),n(e,[{key:"format",value:function(t,i){t!==f.blotName||i?a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i):this.replaceWith(r.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,i){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,i),this):(this.parent.unwrap(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,i))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:a(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(o.default);h.blotName="list-item",h.tagName="LI";var f=function(t){function e(t){c(this,e);var i=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),n=function(e){if(e.target.parentNode===t){var n=i.statics.formats(t),a=r.default.find(e.target);"checked"===n?a.format("list","unchecked"):"unchecked"===n&&a.format("list","checked")}};return t.addEventListener("touchstart",n),t.addEventListener("mousedown",n),i}return d(e,t),n(e,null,[{key:"create",value:function(t){var i="ordered"===t?"OL":"UL",n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,i);return"checked"!==t&&"unchecked"!==t||n.setAttribute("data-checked","checked"===t),n}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,i=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t;var t,e,i}},{key:"insertBefore",value:function(t,i){if(t instanceof h)a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,i);else{var n=null==i?this.length():i.offset(this),r=this.split(n);r.parent.insertBefore(t,r)}}},{key:"optimize",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var i=this.next;null!=i&&i.prev===this&&i.statics.blotName===this.statics.blotName&&i.domNode.tagName===this.domNode.tagName&&i.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(i.moveChildren(this),i.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var i=r.default.create(this.statics.defaultChild);t.moveChildren(i),this.appendChild(i)}a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);f.blotName="list",f.scope=r.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[h],e.ListItem=h,e.default=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=i(56);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((n=a)&&n.__esModule?n:{default:n}).default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((n=o)&&n.__esModule?n:{default:n}).default);c.blotName="script",c.tagName=["SUB","SUP"],e.default=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=i(6);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((n=a)&&n.__esModule?n:{default:n}).default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=i(6);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((n=a)&&n.__esModule?n:{default:n}).default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(0),s=(n=o)&&n.__esModule?n:{default:n},l=i(27);function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=["alt","height","width"],h=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"format",value:function(t,i){d.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i)}}],[{key:"create",value:function(t){var i=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&i.setAttribute("src",this.sanitize(t)),i}},{key:"formats",value:function(t){return d.reduce((function(e,i){return t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},o=i(4),s=i(27),l=(n=s)&&n.__esModule?n:{default:n};function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var d=["height","width"],h=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"format",value:function(t,i){d.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,i)}}],[{key:"create",value:function(t){var i=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(t)),i}},{key:"formats",value:function(t){return d.reduce((function(e,i){return t.hasAttribute(i)&&(e[i]=t.getAttribute(i)),e}),{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=l(i(35)),o=l(i(5)),s=l(i(9));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),n(e,null,[{key:"create",value:function(t){var i=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",t)),i}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(r.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var f=function(t){function e(){c(this,e);var t=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return d(e,t),n(e,null,[{key:"register",value:function(){o.default.register(h,!0)}}]),e}(s.default);e.FormulaBlot=h,e.default=f},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),a=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},r=l(i(0)),o=l(i(5)),s=l(i(9));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),n(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(l(i(13)).default);h.className="ql-syntax";var f=new r.default.Attributor.Class("token","hljs",{scope:r.default.Scope.INLINE}),p=function(t){function e(t,i){c(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return n.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(a),a=setTimeout((function(){n.highlight(),a=null}),n.options.interval)})),n.highlight(),n}return d(e,t),n(e,null,[{key:"register",value:function(){o.default.register(f,!0),o.default.register(h,!0)}}]),n(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}(s.default);p.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=h,e.CodeToken=f,e.default=p},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var n=function t(e,i,n){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,i);if(void 0===a){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,i,n)}if("value"in a)return a.value;var o=a.get;return void 0!==o?o.call(n):void 0},a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=d(i(3)),o=d(i(8)),s=i(43),l=d(s),c=i(15),u=d(i(41));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(t){function e(t,i){h(this,e),null!=i.modules.toolbar&&null==i.modules.toolbar.container&&(i.modules.toolbar.container=m);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.container.classList.add("ql-bubble"),n}return p(e,t),a(e,[{key:"extendToolbar",value:function(t){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),u.default)}}]),e}(l.default);g.DEFAULTS=(0,r.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(t){function e(t,i){h(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return n.quill.on(o.default.events.EDITOR_CHANGE,(function(t,e,i,a){if(t===o.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&a===o.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var r=n.quill.getLines(e.index,e.length);if(1===r.length)n.position(n.quill.getBounds(e));else{var s=r[r.length-1],l=n.quill.getIndex(s),u=Math.min(s.length()-1,e.index+e.length-l),d=n.quill.getBounds(new c.Range(l,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return p(e,t),a(e,[{key:"listen",value:function(){var t=this;n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var i=n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),a=this.root.querySelector(".ql-tooltip-arrow");if(a.style.marginLeft="",0===i)return i;a.style.marginLeft=-1*i-a.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=v,e.default=g},function(t,e,i){t.exports=i(63)}]).default})),function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}function e(t){return(e="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)}
/*!
   * @overview es6-promise - a tiny implementation of Promises/A+.
   * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
   * @license   Licensed under MIT license
   *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
   * @version   v4.2.8+1e68dce6
   */var i;"".trim||(String.prototype.trim=function(){return this.replace(/^[\s﻿]+|[\s﻿]+$/g,"")}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),i=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var n=arguments[1],a=0;a<i;){var r=e[a];if(t.call(n,r,a,e))return a;a++}return-1},configurable:!0,writable:!0}),Array.prototype.includes||(Array.prototype.includes=function(t){return!!~this.indexOf(t)}),Array.prototype.some||(Array.prototype.some=function(t,e){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof t)throw new TypeError;for(var i=Object(this),n=i.length>>>0,a=0;a<n;a++)if(a in i&&t.call(e,i[a],a,i))return!0;return!1}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i[r]=a[r])}return i},writable:!0,configurable:!0}),t.prototype=window.Event.prototype,"function"!=typeof window.CustomEvent&&(window.CustomEvent=t),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}),document.execCommand("AutoUrlDetect",!1,!1),
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e=t.Element.prototype,i=Object,n=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e<i;e++)if(e in this&&this[e]===t)return e;return-1},r=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},o=function(t,e){if(""===e)throw new r("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new r("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},s=function(t){for(var e=n.call(t.getAttribute("class")||""),i=e?e.split(/\s+/):[],a=0,r=i.length;a<r;a++)this.push(i[a]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=s.prototype=[],c=function(){return new s(this)};if(r.prototype=Error.prototype,l.item=function(t){return this[t]||null},l.contains=function(t){return~o(this,t+"")},l.add=function(){var t,e=arguments,i=0,n=e.length,a=!1;do{t=e[i]+"",~o(this,t)||(this.push(t),a=!0)}while(++i<n);a&&this._updateClassName()},l.remove=function(){var t,e,i=arguments,n=0,a=i.length,r=!1;do{for(t=i[n]+"",e=o(this,t);~e;)this.splice(e,1),r=!0,e=o(this,t)}while(++n<a);r&&this._updateClassName()},l.toggle=function(t,e){var i=this.contains(t),n=i?!0!==e&&"remove":!1!==e&&"add";return n&&this[n](t),!0===e||!1===e?e:!i},l.replace=function(t,e){var i=o(t+"");~i&&(this.splice(i,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},i.defineProperty){var u={get:c,enumerable:!0,configurable:!0};try{i.defineProperty(e,"classList",u)}catch(t){void 0!==t.number&&-2146823252!==t.number||(u.enumerable=!1,i.defineProperty(e,"classList",u))}}else i.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var i,n=arguments.length;for(i=0;i<n;i++)t=arguments[i],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:i.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var i=this.toString().split(" "),n=i.indexOf(t+"");~n&&(i=i.slice(n),this.remove.apply(this,i),this.add(e),this.add.apply(this,i.slice(1)))}),t=null}()),i=function(){function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,a=void 0,r=void 0,o=function(t,e){f[n]=t,f[n+1]=e,2===(n+=2)&&(r?r(p):b())},s="undefined"!=typeof window?window:void 0,l=s||{},c=l.MutationObserver||l.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var t=setTimeout;return function(){return t(p,1)}}var f=new Array(1e3);function p(){for(var t=0;t<n;t+=2)(0,f[t])(f[t+1]),f[t]=void 0,f[t+1]=void 0;n=0}var m,g,v,y,b=void 0;function _(t,e){var i=this,n=new this.constructor(k);void 0===n[w]&&P(n);var a=i._state;if(a){var r=arguments[a-1];o((function(){return E(a,n,r,i._result)}))}else A(i,n,t,e);return n}function x(t){if(t&&"object"===e(t)&&t.constructor===this)return t;var i=new this(k);return M(i,t),i}u?b=function(){return process.nextTick(p)}:c?(g=0,v=new c(p),y=document.createTextNode(""),v.observe(y,{characterData:!0}),b=function(){y.data=g=++g%2}):d?((m=new MessageChannel).port1.onmessage=p,b=function(){return m.port2.postMessage(0)}):b=void 0===s&&"function"==typeof require?function(){try{var t=Function("return this")().require("vertx");return void 0!==(a=t.runOnLoop||t.runOnContext)?function(){a(p)}:h()}catch(t){return h()}}():h();var w=Math.random().toString(36).substring(2);function k(){}function S(e,i,n){i.constructor===e.constructor&&n===_&&i.constructor.resolve===x?function(t,e){1===e._state?T(t,e._result):2===e._state?C(t,e._result):A(e,void 0,(function(e){return M(t,e)}),(function(e){return C(t,e)}))}(e,i):void 0===n?T(e,i):t(n)?function(t,e,i){o((function(t){var n=!1,a=function(t,e,i,n){try{t.call(e,i,n)}catch(t){return t}}(i,e,(function(i){n||(n=!0,e!==i?M(t,i):T(t,i))}),(function(e){n||(n=!0,C(t,e))}),t._label);!n&&a&&(n=!0,C(t,a))}),t)}(e,i,n):T(e,i)}function M(t,i){if(t===i)C(t,new TypeError("You cannot resolve a promise with itself"));else if(r=e(a=i),null===a||"object"!==r&&"function"!==r)T(t,i);else{var n=void 0;try{n=i.then}catch(e){return void C(t,e)}S(t,i,n)}var a,r}function L(t){t._onerror&&t._onerror(t._result),D(t)}function T(t,e){void 0===t._state&&(t._result=e,t._state=1,0!==t._subscribers.length&&o(D,t))}function C(t,e){void 0===t._state&&(t._state=2,t._result=e,o(L,t))}function A(t,e,i,n){var a=t._subscribers,r=a.length;t._onerror=null,a[r]=e,a[r+1]=i,a[r+2]=n,0===r&&t._state&&o(D,t)}function D(t){var e=t._subscribers,i=t._state;if(0!==e.length){for(var n=void 0,a=void 0,r=t._result,o=0;o<e.length;o+=3)n=e[o],a=e[o+i],n?E(i,n,a,r):a(r);t._subscribers.length=0}}function E(e,i,n,a){var r=t(n),o=void 0,s=void 0,l=!0;if(r){try{o=n(a)}catch(t){l=!1,s=t}if(i===o)return void C(i,new TypeError("A promises callback cannot return that same promise."))}else o=a;void 0!==i._state||(r&&l?M(i,o):!1===l?C(i,s):1===e?T(i,o):2===e&&C(i,o))}var O=0;function P(t){t[w]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var Y=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(k),this.promise[w]||P(this.promise),i(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&T(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var i=this._instanceConstructor,n=i.resolve;if(n===x){var a=void 0,r=void 0,o=!1;try{a=t.then}catch(t){o=!0,r=t}if(a===_&&void 0!==t._state)this._settledAt(t._state,e,t._result);else if("function"!=typeof a)this._remaining--,this._result[e]=t;else if(i===I){var s=new i(k);o?C(s,r):S(s,t,a),this._willSettleAt(s,e)}else this._willSettleAt(new i((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,i){var n=this.promise;void 0===n._state&&(this._remaining--,2===t?C(n,i):this._result[e]=i),0===this._remaining&&T(n,this._result)},t.prototype._willSettleAt=function(t,e){var i=this;A(t,void 0,(function(t){return i._settledAt(1,e,t)}),(function(t){return i._settledAt(2,e,t)}))},t}(),I=function(){function e(t){this[w]=O++,this._result=this._state=void 0,this._subscribers=[],k!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e((function(e){M(t,e)}),(function(e){C(t,e)}))}catch(e){C(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var i=this.constructor;return t(e)?this.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))})):this.then(e,e)},e}();return I.prototype.then=_,I.all=function(t){return new Y(this,t).promise},I.race=function(t){var e=this;return i(t)?new e((function(i,n){for(var a=t.length,r=0;r<a;r++)e.resolve(t[r]).then(i,n)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},I.resolve=x,I.reject=function(t){var e=new this(k);return C(e,t),e},I._setScheduler=function(t){r=t},I._setAsap=function(t){o=t},I._asap=o,I.polyfill=function(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=I},I.Promise=I,I},window.Promise=i()})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Tagify=e()}(this,(function(){"use strict";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(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var i=function(t,e,i){return i?t==e:(""+t).toLowerCase()==(""+e).toLowerCase()};function n(t){var e=document.createElement("div");return t.replace(/\&#?[0-9a-z]+;/gi,(function(t){return e.innerHTML=t,e.innerText}))}function a(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/`|'/g,"&#039;")}function r(t){return t instanceof Array}function o(t){var e=Object.prototype.toString.call(t).split(" ")[1].slice(0,-1);return t===Object(t)&&"Array"!=e&&"Function"!=e&&"RegExp"!=e&&"HTMLUnknownElement"!=e}function s(t,e,i){function n(t,e){for(var i in e)if(e.hasOwnProperty(i)){if(o(e[i])){o(t[i])?n(t[i],e[i]):t[i]=Object.assign({},e[i]);continue}if(r(e[i])){t[i]=(r(t[i])?t[i]:[]).concat(e[i]);continue}t[i]=e[i]}}return t instanceof Object||(t={}),n(t,e),i&&n(t,i),t}function l(t){return String.prototype.normalize?"string"==typeof t?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:t}var c={init:function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("."+this.settings.classNames.dropdownWrapper)},show:function(t){var e,n,a,r=this,s=this.settings,l=window.getSelection(),c="mix"==s.mode&&!s.enforceWhitelist,u=!s.whitelist||!s.whitelist.length,d="manual"==s.dropdown.position;if(t=void 0===t?this.state.inputText:t,(!u||c||s.templates.dropdownItemNoMatch)&&!1!==s.dropdown.enable&&!this.state.isLoading){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems.call(this,t),t&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",t),s.templates.dropdownItemNoMatch&&(a=s.templates.dropdownItemNoMatch.call(this,{value:t}))),!a){if(this.suggestedListItems.length)t&&c&&!this.state.editing.scope&&!i(this.suggestedListItems[0].value,t)&&this.suggestedListItems.unshift({value:t});else{if(!t||!c||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide.call(this);this.suggestedListItems=[{value:t}]}n=""+(o(e=this.suggestedListItems[0])?e.value:e),s.autoComplete&&n&&0==n.indexOf(t)&&this.input.autocomplete.suggest.call(this,e)}this.dropdown.fill.call(this,a),s.dropdown.highlightFirst&&this.dropdown.highlightOption.call(this,this.DOM.dropdown.content.children[0]),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=t||!0,this.state.dropdown.query=t,this.state.selection={anchorOffset:l.anchorOffset,anchorNode:l.anchorNode},d||setTimeout((function(){r.dropdown.position.call(r),r.dropdown.render.call(r)})),setTimeout((function(){r.trigger("dropdown:show",r.DOM.dropdown)}))}},hide:function(t){var e=this,i=this.DOM,n=i.scope,a=i.dropdown,r="manual"==this.settings.dropdown.position&&!t;if(a&&document.body.contains(a)&&!r)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),a.parentNode.removeChild(a),setTimeout((function(){e.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",a),this},render:function(){var t,e,i=this,n=((e=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(e),t=e.clientHeight,e.parentNode.removeChild(e),t),a=this.settings;return this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(a.classNames.dropdownInital),this.dropdown.position.call(this,n),a.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout((function(){return i.DOM.dropdown.classList.remove(a.classNames.dropdownInital)}))),this},fill:function(t){var e;t="string"==typeof t?t:this.dropdown.createListHTML.call(this,t||this.suggestedListItems),this.DOM.dropdown.content.innerHTML=(e=t)?e.replace(/\>[\r\n ]+\</g,"><").replace(/(<.*?>)|\s+/g,(function(t,e){return e||" "})):""},refilter:function(t){t=t||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems.call(this,t),this.suggestedListItems.length?this.dropdown.fill.call(this):this.dropdown.hide.call(this),this.trigger("dropdown:updated",this.DOM.dropdown)},position:function(t){if("manual"!=this.settings.dropdown.position){var e,i,n,a,r,o,s,l=this.DOM.dropdown,c=document.documentElement.clientHeight,u=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>480?this.settings.dropdown.position:"all",d=this.DOM["input"==u?"input":"scope"];t=t||l.clientHeight,this.state.dropdown.visible&&("text"==u?(a=(i=this.getCaretGlobalPosition()).bottom,n=i.top,r=i.left,o="auto"):(s=function(t){for(var e=0,i=0;t;)e+=t.offsetLeft||0,i+=t.offsetTop||0,t=t.parentNode;return{left:e,top:i}}(this.settings.dropdown.appendTarget),n=(i=d.getBoundingClientRect()).top+2-s.top,a=i.bottom-1-s.top,r=i.left-s.left,o=i.width+"px"),n=Math.floor(n),a=Math.ceil(a),e=c-i.bottom<t,l.style.cssText="left:"+(r+window.pageXOffset)+"px; width:"+o+";"+(e?"top: "+(n+window.pageYOffset)+"px":"top: "+(a+window.pageYOffset)+"px"),l.setAttribute("placement",e?"top":"bottom"),l.setAttribute("position",u))}},events:{binding:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.dropdown.events.callbacks,i=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},n=t?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(window[n]("resize",i.position),window[n]("keydown",i.onKeyDown)),this.DOM.dropdown[n]("mouseover",i.onMouseOver),this.DOM.dropdown[n]("mouseleave",i.onMouseLeave),this.DOM.dropdown[n]("mousedown",i.onClick),this.DOM.dropdown.content[n]("scroll",i.onScroll)},callbacks:{onKeyDown:function(t){var e=this.DOM.dropdown.querySelector("."+this.settings.classNames.dropdownItemActive),i=e;switch(t.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":var n;t.preventDefault(),i&&(i=i[("ArrowUp"==t.key||"Up"==t.key?"previous":"next")+"ElementSibling"]),i||(i=(n=this.DOM.dropdown.content.children)["ArrowUp"==t.key||"Up"==t.key?n.length-1:0]),this.dropdown.highlightOption.call(this,i,!0);break;case"Escape":case"Esc":this.dropdown.hide.call(this);break;case"ArrowRight":if(this.state.actions.ArrowLeft)return;case"Tab":if("mix"!=this.settings.mode&&i&&!this.settings.autoComplete.rightKey&&!this.state.editing){t.preventDefault();var a=i.getAttribute("tagifySuggestionIdx"),r=a?this.suggestedListItems[+a]:"";return this.input.autocomplete.set.call(this,r.value||r),!1}return!0;case"Enter":t.preventDefault(),this.dropdown.selectOption.call(this,e);break;case"Backspace":if("mix"==this.settings.mode||this.state.editing.scope)return;var o=this.state.inputText.trim();""!=o&&8203!=o.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}},onMouseOver:function(t){var e=t.target.closest("."+this.settings.classNames.dropdownItem);e&&this.dropdown.highlightOption.call(this,e)},onMouseLeave:function(t){this.dropdown.highlightOption.call(this)},onClick:function(t){var e=this;if(0==t.button&&t.target!=this.DOM.dropdown){var i=t.target.closest("."+this.settings.classNames.dropdownItem);this.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),50),this.settings.hooks.suggestionClick(t,{tagify:this,suggestionElm:i}).then((function(){i&&e.dropdown.selectOption.call(e,i)})).catch((function(t){return t}))}},onScroll:function(t){var e=t.target,i=e.scrollTop/(e.scrollHeight-e.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(i)})}}},highlightOption:function(t,e){var i,n=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(n),this.state.ddItemElm.removeAttribute("aria-selected")),!t)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);i=this.suggestedListItems[this.getNodeIndex(t)],this.state.ddItemData=i,this.state.ddItemElm=t,t.classList.add(n),t.setAttribute("aria-selected",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,i),this.dropdown.position.call(this))},selectOption:function(t){var e=this,i=this.settings.dropdown,n=i.clearOnSelect,a=i.closeOnSelect;if(!t)return this.addTags(this.state.inputText,!0),void(a&&this.dropdown.hide.call(this));var r=t.getAttribute("tagifySuggestionIdx"),o=this.suggestedListItems[+r];if(this.trigger("dropdown:select",{data:o,elm:t}),r&&o){if(this.state.editing?this.onEditTagDone(null,s({__isValid:!0},o)):this.addTags([o],n),setTimeout((function(){e.DOM.input.focus(),e.toggleFocusClass(!0)})),a)return this.dropdown.hide.call(this);this.dropdown.refilter.call(this)}},selectAll:function(){return this.suggestedListItems.length=0,this.dropdown.hide.call(this),this.addTags(this.dropdown.filterListItems.call(this,""),!0),this},filterListItems:function(t,e){var i,n,a,r,s,c=this,u=this.settings,d=u.dropdown,h=(e=e||{},[]),f=u.whitelist,p=d.maxItems||1/0,m=d.searchKeys,g=0;if(!t||!m.length)return(u.duplicates?f:f.filter((function(t){return!c.isTagDuplicate(o(t)?t.value:t)}))).slice(0,p);function v(t,e){return e.toLowerCase().split(" ").every((function(e){return t.includes(e.toLowerCase())}))}for(s=d.caseSensitive?""+t:(""+t).toLowerCase();g<f.length&&(i=f[g]instanceof Object?f[g]:{value:f[g]},d.fuzzySearch&&!e.exact?(a=m.reduce((function(t,e){return t+" "+(i[e]||"")}),"").toLowerCase(),d.accentedSearch&&(a=l(a),s=l(s)),n=v(a,s)):n=m.some((function(t){var n=""+(i[t]||"");return d.accentedSearch&&(n=l(n),s=l(s)),d.caseSensitive||(n=n.toLowerCase()),e.exact?n==s:0==n.indexOf(s)})),r=!u.duplicates&&this.isTagDuplicate(o(i)?i.value:i),n&&!r&&p--&&h.push(i),0!=p);g++);return h},createListHTML:function(t){var e=this;return t.map((function(t,i){"string"!=typeof t&&"number"!=typeof t||(t={value:t});var n=e.settings.dropdown.mapValueTo,r=n?"function"==typeof n?n(t):t[n]:t.value;t.value=r&&"string"==typeof r?a(r):r;var o=e.settings.templates.dropdownItem.call(e,t);return o.replace(/\s*tagifySuggestionIdx=(["'])(.*?)\1/gim,"").replace(">",' tagifySuggestionIdx="'.concat(i,'">'))})).join("")}},u={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,keepInvalidTags:!1,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,editTags:{clicks:2,keepInvalid:!0},transformTag:function(){},trim:!0,mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:"tagify",input:"tagify__input",focus:"tagify--focus",tag:"tagify__tag",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",inputInvalid:"tagify__input--invalid",tagX:"tagify__tag__removeBtn",tagText:"tagify__tag-text",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownInital:"tagify__dropdown--initial",scopeLoading:"tagify--loading",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:function(){return Promise.resolve()},suggestionClick:function(){return Promise.resolve()}}},d={customBinding:function(){var t=this;this.customEventsList.forEach((function(e){t.on(e,t.settings.callbacks[e])}))},binding:function(){var t,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=this.events.callbacks,n=e?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!e)for(var a in this.state.mainEvents=e,e&&!this.listeners.main&&(this.DOM.input.addEventListener(this.isIE?"keydown":"input",i[this.isIE?"onInputIE":"onInput"].bind(this)),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),t=this.listeners.main=this.listeners.main||{focus:["input",i.onFocusBlur.bind(this)],blur:["input",i.onFocusBlur.bind(this)],keydown:["input",i.onKeydown.bind(this)],click:["scope",i.onClickScope.bind(this)],dblclick:["scope",i.onDoubleClickScope.bind(this)],paste:["input",i.onPaste.bind(this)]})("blur"!=a||e)&&this.DOM[t[a][0]][n](a,t[a][1])},callbacks:{onFocusBlur:function(t){var e=t.target?this.trim(t.target.textContent):"",i=this.settings,n=t.type,a=i.dropdown.enabled>=0,r={relatedTarget:t.relatedTarget},o=this.state.actions.selectOption&&(a||!i.dropdown.closeOnSelect),s=this.state.actions.addNew&&a,l=window.getSelection();if("blur"==n){if(t.relatedTarget===this.DOM.scope)return this.dropdown.hide.call(this),void this.DOM.input.focus();this.postUpdate(),this.triggerChangeEvent()}if(!o&&!s)if(this.state.hasFocus="focus"==n&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=i.mode){if("focus"==n)return this.trigger("focus",r),void(0===i.dropdown.enabled&&this.dropdown.show.call(this));"blur"==n&&(this.trigger("blur",r),this.loading(!1),("select"==this.settings.mode?!this.value.length||this.value[0].value!=e:e&&!this.state.actions.selectOption&&i.addTagOnBlur)&&this.addTags(e,!0)),this.DOM.input.removeAttribute("style"),this.dropdown.hide.call(this)}else"focus"==n?this.trigger("focus",r):"blur"==t.type&&(this.trigger("blur",r),this.loading(!1),this.dropdown.hide.call(this),this.state.dropdown.visible=void 0,this.state.selection={anchorOffset:l.anchorOffset,anchorNode:l.anchorNode},l.getRangeAt&&l.rangeCount&&(this.state.selection.range=l.getRangeAt(0)))},onKeydown:function(t){var e=this,i=this.trim(t.target.textContent);if(this.trigger("keydown",{originalEvent:this.cloneEvent(t)}),"mix"==this.settings.mode){switch(t.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var a,r=document.getSelection(),o="Delete"==t.key&&r.anchorOffset==(r.anchorNode.length||0),s=1==r.anchorNode.nodeType||!r.anchorOffset&&r.anchorNode.previousElementSibling,l=n(this.DOM.input.innerHTML),c=this.getTagElms();if("BR"==r.anchorNode.nodeName)return;if((o||s)&&1==r.anchorNode.nodeType?a=0==r.anchorOffset?o?c[0]:null:c[r.anchorOffset-1]:o?a=r.anchorNode.nextElementSibling:s&&(a=s),3==r.anchorNode.nodeType&&!r.anchorNode.nodeValue&&r.anchorNode.previousElementSibling&&t.preventDefault(),(s||o)&&!this.settings.backspace)return void t.preventDefault();if("Range"!=r.type&&a&&a.hasAttribute("readonly"))return void this.placeCaretAfterNode(function(t,e){for(e=e||"previous";t=t[e+"Sibling"];)if(3==t.nodeType)return t}(a));this.isFirefox&&1==r.anchorNode.nodeType&&0!=r.anchorOffset&&(this.removeTags(),this.placeCaretAfterNode(this.setRangeAtStartEnd())),setTimeout((function(){var t=document.getSelection(),i=n(e.DOM.input.innerHTML),a=t.anchorNode.previousElementSibling;if(i.length>=l.length&&a&&!a.hasAttribute("readonly")&&(e.removeTags(a),e.fixFirefoxLastTagNoCaret(),2==e.DOM.input.children.length&&"BR"==e.DOM.input.children[1].tagName))return e.DOM.input.innerHTML="",e.value.length=0,!0;e.value=[].map.call(c,(function(t,i){var n=e.tagData(t);if(t.parentNode||n.readonly)return n;e.trigger("remove",{tag:t,index:i,data:n})})).filter((function(t){return t}))}),50)}return!0}switch(t.key){case"Backspace":this.state.dropdown.visible&&"manual"!=this.settings.dropdown.position||""!=i&&8203!=i.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;t.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show.call(this);break;case"ArrowRight":var u=this.state.inputSuggestion||this.state.ddItemData;if(u&&this.settings.autoComplete.rightKey)return void this.addTags([u],!0);break;case"Tab":if(i&&t.preventDefault(),!i||"select"==this.settings.mode)return!0;case"Enter":if(this.state.dropdown.visible||229==t.keyCode)return;t.preventDefault(),setTimeout((function(){e.state.actions.selectOption||e.addTags(i,!0)}))}},onInput:function(t){if("mix"==this.settings.mode)return this.events.callbacks.onMixTagsInput.call(this,t);var e=this.input.normalize.call(this),i=e.length>=this.settings.dropdown.enabled,n={value:e,inputElm:this.DOM.input};n.isValid=this.validateTag({value:e}),this.trigger("input",n),this.state.inputText!=e&&(this.input.set.call(this,e,!1),-1!=e.search(this.settings.delimiters)?this.addTags(e)&&this.input.set.call(this):this.settings.dropdown.enabled>=0&&this.dropdown[i?"show":"hide"].call(this,e))},onMixTagsInput:function(t){var e,i,n,a,r,o,l,c,u=this,d=this.settings,h=this.value.length,f=this.getTagElms(),p=document.createDocumentFragment(),m=window.getSelection().getRangeAt(0),g=[].map.call(f,(function(t){return u.tagData(t).value}));if(this.value.slice().forEach((function(t){t.readonly&&!g.includes(t.value)&&p.appendChild(u.createTagElem(t))})),p.childNodes.length&&(m.insertNode(p),this.setRangeAtStartEnd(!1,p.lastChild)),f.length!=h)return this.value=[].map.call(this.getTagElms(),(function(t){return u.tagData(t)})),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&(o=window.getSelection()).rangeCount>0&&3==o.anchorNode.nodeType){if((m=o.getRangeAt(0).cloneRange()).collapse(!0),m.setStart(o.focusNode,0),n=(e=m.toString().slice(0,m.endOffset)).split(d.pattern).length-1,(i=e.match(d.pattern))&&(a=e.slice(e.lastIndexOf(i[i.length-1]))),a){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:a.match(d.pattern)[0],value:a.replace(d.pattern,"")},this.state.tag.baseOffset=o.baseOffset-this.state.tag.value.length,c=this.state.tag.value.match(d.delimiters))return this.state.tag.value=this.state.tag.value.replace(d.delimiters,""),this.state.tag.delimiters=c[0],this.addTags(this.state.tag.value,d.dropdown.clearOnSelect),void this.dropdown.hide.call(this);r=this.state.tag.value.length>=d.dropdown.enabled;try{l=(l=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&l.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(t){}(l||n<this.state.mixMode.matchedPatternCount)&&(r=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=n}setTimeout((function(){u.update({withoutChangeEvent:!0}),u.trigger("input",s({},u.state.tag,{textContent:u.DOM.input.textContent})),u.state.tag&&u.dropdown[r?"show":"hide"].call(u,u.state.tag.value)}),10)},onInputIE:function(t){var e=this;setTimeout((function(){e.events.callbacks.onInput.call(e,t)}))},onClickScope:function(t){var e=this.settings,i=t.target.closest("."+e.classNames.tag),n=+new Date-this.state.hasFocus;if(t.target!=this.DOM.scope){if(!t.target.classList.contains(e.classNames.tagX))return i?(this.trigger("click",{tag:i,index:this.getNodeIndex(i),data:this.tagData(i),originalEvent:this.cloneEvent(t)}),void(1!==e.editTags&&1!==e.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,t))):void(t.target==this.DOM.input&&("mix"==e.mode&&this.fixFirefoxLastTagNoCaret(),n>500)?this.state.dropdown.visible?this.dropdown.hide.call(this):0===e.dropdown.enabled&&"mix"!=e.mode&&this.dropdown.show.call(this):"select"==e.mode&&!this.state.dropdown.visible&&this.dropdown.show.call(this));this.removeTags(t.target.parentNode)}else this.state.hasFocus||this.DOM.input.focus()},onPaste:function(t){var e;t.preventDefault(),this.settings.readonly||(e=(t.clipboardData||window.clipboardData).getData("Text"),this.injectAtCaret(e,window.getSelection().getRangeAt(0)),"mix"!=this.settings.mode&&this.addTags(this.DOM.input.textContent,!0))},onEditTagInput:function(t,i){var n=t.closest("."+this.settings.classNames.tag),a=this.getNodeIndex(n),r=this.tagData(n),o=this.input.normalize.call(this,t),l=n.innerHTML!=n.__tagifyTagData.__originalHTML,c=this.validateTag(e({},this.settings.tagTextProp,o));l||!0!==t.originalIsValid||(c=!0),n.classList.toggle(this.settings.classNames.tagInvalid,!0!==c),r.__isValid=c,n.title=!0===c?r.title||r.value:c,o.length>=this.settings.dropdown.enabled&&(this.state.editing.value=o,this.dropdown.show.call(this,o)),this.trigger("edit:input",{tag:n,index:a,data:s({},this.value[a],{newValue:o}),originalEvent:this.cloneEvent(i)})},onEditTagFocus:function(t){this.state.editing={scope:t,input:t.querySelector("[contenteditable]")}},onEditTagBlur:function(t){var i;if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(t)){var n,a=this.settings,r=t.closest("."+a.classNames.tag),o=this.input.normalize.call(this,t),s=this.tagData(r).__originalData,l=r.innerHTML!=r.__tagifyTagData.__originalHTML,c=this.validateTag(e({},a.tagTextProp,o));if(o)if(l){if(n=this.getWhitelistItem(o)||(e(i={},a.tagTextProp,o),e(i,"value",o),i),a.transformTag.call(this,n,s),!0!==(c=this.validateTag(e({},a.tagTextProp,n[a.tagTextProp])))){if(this.trigger("invalid",{data:n,tag:r,message:c}),a.editTags.keepInvalid)return;a.keepInvalidTags?n.__isValid=c:n=s}this.onEditTagDone(r,n)}else this.onEditTagDone(r,s);else this.onEditTagDone(r)}},onEditTagkeydown:function(t,e){switch(this.trigger("edit:keydown",{originalEvent:this.cloneEvent(t)}),t.key){case"Esc":case"Escape":e.innerHTML=e.__tagifyTagData.__originalHTML;case"Enter":case"Tab":t.preventDefault(),t.target.blur()}},onDoubleClickScope:function(t){var e,i,n=t.target.closest("."+this.settings.classNames.tag),a=this.settings;n&&(e=n.classList.contains(this.settings.classNames.tagEditing),i=n.hasAttribute("readonly"),"select"==a.mode||a.readonly||e||i||!this.settings.editTags||this.editTag(n),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n)}))}}};function h(e,i){return e?e.previousElementSibling&&e.previousElementSibling.classList.contains("tagify")?(console.warn("Tagify: ","input element is already Tagified",e),this):(s(this,function(e){var i=document.createTextNode("");function n(t,e,n){n&&e.split(/\s+/g).forEach((function(e){return i[t+"EventListener"].call(i,e,n)}))}return{off:function(t,e){return n("remove",t,e),this},on:function(t,e){return e&&"function"==typeof e&&n("add",t,e),this},trigger:function(n,a){var r;if(n)if(e.settings.isJQueryPlugin)"remove"==n&&(n="removeTag"),jQuery(e.DOM.originalInput).triggerHandler(n,[a]);else{try{var o=s({},"object"===t(a)?a:{value:a});if(o.tagify=this,a instanceof Object)for(var l in a)a[l]instanceof HTMLElement&&(o[l]=a[l]);r=new CustomEvent(n,{detail:o})}catch(t){console.warn(t)}i.dispatchEvent(r)}}}}(this)),this.isFirefox="undefined"!=typeof InstallTrigger,this.isIE=window.document.documentMode,this.applySettings(e,i||{}),this.state={inputText:"",editing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(e),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),void(e.autofocus&&this.DOM.input.focus())):(console.warn("Tagify: ","input element not found",e),this)}return h.prototype={dropdown:c,TEXTS:{empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},DEFAULTS:u,customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch"],trim:function(t){return this.settings.trim&&t&&"string"==typeof t?t.trim():t},parseHTML:function(t){return(new DOMParser).parseFromString(t.trim(),"text/html").body.firstElementChild},templates:{wrapper:function(t,e){return'<tags class="'.concat(e.classNames.namespace," ").concat(e.mode?"".concat(e.classNames.namespace,"--").concat(e.mode):""," ").concat(t.className,'"\n                    ').concat(e.readonly?"readonly":"","\n                    ").concat(e.required?"required":"",'\n                    tabIndex="-1">\n            <span ').concat(e.readonly&&"mix"==e.mode?"":"contenteditable",' data-placeholder="').concat(e.placeholder||"&#8203;",'" aria-placeholder="').concat(e.placeholder||"",'"\n                class="').concat(e.classNames.input,'"\n                role="textbox"\n                aria-autocomplete="both"\n                aria-multiline="').concat("mix"==e.mode,'"></span>\n        </tags>')},tag:function(t){return'<tag title="'.concat(t.title||t.value,"\"\n                    contenteditable='false'\n                    spellcheck='false'\n                    tabIndex=\"-1\"\n                    class=\"").concat(this.settings.classNames.tag," ").concat(t.class?t.class:"",'"\n                    ').concat(this.getAttributes(t),">\n            <x title='' class=\"").concat(this.settings.classNames.tagX,"\" role='button' aria-label='remove tag'></x>\n            <div>\n                <span class=\"").concat(this.settings.classNames.tagText,'">').concat(t[this.settings.tagTextProp]||t.value,"</span>\n            </div>\n        </tag>")},dropdown:function(t){var e=t.dropdown,i="manual"==e.position,n="".concat(t.classNames.dropdown);return'<div class="'.concat(i?"":n," ").concat(e.classname,'" role="listbox" aria-labelledby="dropdown">\n                    <div class="').concat(t.classNames.dropdownWrapper,'"></div>\n                </div>')},dropdownItem:function(t){return"<div ".concat(this.getAttributes(t),"\n                    class='").concat(this.settings.classNames.dropdownItem," ").concat(t.class?t.class:"",'\'\n                    tabindex="0"\n                    role="option">').concat(t.value,"</div>")},dropdownItemNoMatch:null},parseTemplate:function(t,e){return t=this.settings.templates[t]||t,this.parseHTML(t.apply(this,e))},applySettings:function(t,e){this.DEFAULTS.templates=this.templates;var i=this.settings=s({},this.DEFAULTS,e);if(i.readonly=t.hasAttribute("readonly"),i.placeholder=t.getAttribute("placeholder")||i.placeholder||"",i.required=t.hasAttribute("required"),this.isIE&&(i.autoComplete=!1),["whitelist","blacklist"].forEach((function(e){var n=t.getAttribute("data-"+e);n&&(n=n.split(i.delimiters))instanceof Array&&(i[e]=n)})),"autoComplete"in e&&!o(e.autoComplete)&&(i.autoComplete=this.DEFAULTS.autoComplete,i.autoComplete.enabled=e.autoComplete),"mix"==i.mode&&(i.autoComplete.rightKey=!0,i.delimiters=e.delimiters||null),t.pattern)try{i.pattern=new RegExp(t.pattern)}catch(t){}if(this.settings.delimiters)try{i.delimiters=new RegExp(this.settings.delimiters,"g")}catch(t){}"select"==i.mode&&(i.dropdown.enabled=0),i.dropdown.appendTarget=e.dropdown&&e.dropdown.appendTarget?e.dropdown.appendTarget:document.body},getAttributes:function(t){if("[object Object]"!=Object.prototype.toString.call(t))return"";var e,i,n=Object.keys(t),a="";for(i=n.length;i--;)"class"!=(e=n[i])&&t.hasOwnProperty(e)&&void 0!==t[e]&&(a+=" "+e+(void 0!==t[e]?'="'.concat(t[e],'"'):""));return a},getCaretGlobalPosition:function(){var t=document.getSelection();if(t.rangeCount){var e,i,n=t.getRangeAt(0),a=n.startContainer,r=n.startOffset;if(r>0)return(i=document.createRange()).setStart(a,r-1),i.setEnd(a,r),{left:(e=i.getBoundingClientRect()).right,top:e.top,bottom:e.bottom};if(a.getBoundingClientRect)return a.getBoundingClientRect()}return{left:-9999,top:-9999}},getCSSVars:function(){var t=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:function(t){var e=t.value;return"s"==t.unit?1e3*e:e}(function(t){if(!t)return{};var e=(t=t.trim().split(" ")[0]).split(/\d+/g).filter((function(t){return t})).pop().trim();return{value:+t.split(e).filter((function(t){return t}))[0].trim(),unit:e}}(("tag-hide-transition",t.getPropertyValue("--tag-hide-transition"))))}},build:function(t){var e=this.DOM;this.settings.mixMode.integrated?(e.originalInput=null,e.scope=t,e.input=t):(e.originalInput=t,e.scope=this.parseTemplate("wrapper",[t,this.settings]),e.input=e.scope.querySelector("."+this.settings.classNames.input),t.parentNode.insertBefore(e.scope,t)),this.settings.dropdown.enabled>=0&&this.dropdown.init.call(this)},destroy:function(){this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.dropdown.hide.call(this,!0),clearTimeout(this.dropdownHide__bindEventsTimeout)},loadOriginalValues:function(t){var e,i=this.settings;if(t=t||(i.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value))if(this.removeAllTags(),"mix"==i.mode)this.parseMixTags(t.trim()),(e=this.DOM.input.lastChild)&&"BR"==e.tagName||this.DOM.input.insertAdjacentHTML("beforeend","<br>");else{try{JSON.parse(t)instanceof Array&&(t=JSON.parse(t))}catch(t){}this.addTags(t).forEach((function(t){return t&&t.classList.add(i.classNames.tagNoAnimation)}))}else this.postUpdate();this.state.lastOriginalValueReported=i.mixMode.integrated?"":this.DOM.originalInput.value,this.state.loadedOriginalValues=!0},cloneEvent:function(t){var e={};for(var i in t)e[i]=t[i];return e},loading:function(t){return this.state.isLoading=t,this.DOM.scope.classList[t?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading:function(t,e){return t&&t.classList[e?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass:function(t,e){"string"==typeof t&&this.DOM.scope.classList.toggle(t,e)},toggleFocusClass:function(t){this.toggleClass(this.settings.classNames.focus,!!t)},triggerChangeEvent:function(){if(!this.settings.mixMode.integrated){var t=this.DOM.originalInput,e=this.state.lastOriginalValueReported!==t.value,i=new CustomEvent("change",{bubbles:!0});e&&(this.state.lastOriginalValueReported=t.value,i.simulated=!0,t._valueTracker&&t._valueTracker.setValue(Math.random()),t.dispatchEvent(i),this.trigger("change",this.state.lastOriginalValueReported),t.value=this.state.lastOriginalValueReported)}},events:d,fixFirefoxLastTagNoCaret:function(){},placeCaretAfterNode:function(t){if(t){var e=t.nextSibling,i=window.getSelection(),n=i.getRangeAt(0);i.rangeCount&&(n.setStartBefore(e||t),n.setEndBefore(e||t),i.removeAllRanges(),i.addRange(n))}},insertAfterTag:function(t,e){if(e=e||this.settings.mixMode.insertAfterTag,t&&e)return e="string"==typeof e?document.createTextNode(e):e,t.appendChild(e),t.parentNode.insertBefore(e,t.nextSibling),e},editTag:function(t,e){var i=this;t=t||this.getLastTag(),e=e||{},this.dropdown.hide.call(this);var n=this.settings;function a(){return t.querySelector("."+n.classNames.tagText)}var r=a(),o=this.getNodeIndex(t),l=this.tagData(t),c=this.events.callbacks,u=this,d=!0;if(r){if(!(l instanceof Object&&"editable"in l)||l.editable)return r.setAttribute("contenteditable",!0),t.classList.add(n.classNames.tagEditing),this.tagData(t,{__originalData:s({},l),__originalHTML:t.innerHTML}),r.addEventListener("focus",c.onEditTagFocus.bind(this,t)),r.addEventListener("blur",(function(){setTimeout((function(){return c.onEditTagBlur.call(u,a())}))})),r.addEventListener("input",c.onEditTagInput.bind(this,r)),r.addEventListener("keydown",(function(e){return c.onEditTagkeydown.call(i,e,t)})),r.focus(),this.setRangeAtStartEnd(!1,r),e.skipValidation||(d=this.editTagToggleValidity(t,l.value)),r.originalIsValid=d,this.trigger("edit:start",{tag:t,index:o,data:l,isValid:d}),this}else console.warn("Cannot find element in Tag template: .",n.classNames.tagText)},editTagToggleValidity:function(t,e){var i,n=this.tagData(t);if(n)return i=!(!n.__isValid||1==n.__isValid),t.classList.toggle(this.settings.classNames.tagInvalid,i),n.__isValid;console.warn("tag has no data: ",t,n)},onEditTagDone:function(t,e){e=e||{};var i={tag:t=t||this.state.editing.scope,index:this.getNodeIndex(t),previousData:this.tagData(t),data:e};this.trigger("edit:beforeUpdate",i),this.state.editing=!1,delete e.__originalData,delete e.__originalHTML,t&&e[this.settings.tagTextProp]?(this.editTagToggleValidity(t),this.replaceTag(t,e)):t&&this.removeTags(t),this.trigger("edit:updated",i),this.dropdown.hide.call(this),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag:function(t,e){e&&e.value||(e=t.__tagifyTagData),e.__isValid&&1!=e.__isValid&&s(e,this.getInvalidTagAttrs(e,e.__isValid));var i=this.createTagElem(e);t.parentNode.replaceChild(i,t),this.updateValueByDOMTags()},updateValueByDOMTags:function(){var t=this;this.value.length=0,[].forEach.call(this.getTagElms(),(function(e){e.classList.contains(t.settings.classNames.tagNotAllowed)||t.value.push(t.tagData(e))})),this.update()},setRangeAtStartEnd:function(t,e){t="number"==typeof t?t:!!t,e=(e=e||this.DOM.input).lastChild||e;var i=document.getSelection();try{i.rangeCount>=1&&["Start","End"].forEach((function(n){return i.getRangeAt(0)["set"+n](e,t||e.length)}))}catch(t){console.warn("Tagify: ",t)}},injectAtCaret:function(t,e){if(e=e||this.state.selection.range)return"string"==typeof t&&(t=document.createTextNode(t)),e.deleteContents(),e.insertNode(t),this.setRangeAtStartEnd(!1,t),this.updateValueByDOMTags(),this.update(),this},input:{set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.settings.dropdown.closeOnSelect;this.state.inputText=t,e&&(this.DOM.input.innerHTML=t),!t&&i&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},validate:function(){var t=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!t),t},normalize:function(t){var e=t||this.DOM.input,i=[];e.childNodes.forEach((function(t){return 3==t.nodeType&&i.push(t.nodeValue)})),i=i.join("\n");try{i=i.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(t){}return i=i.replace(/\s/g," "),this.settings.trim&&(i=i.replace(/^\s+/,"")),i},autocomplete:{suggest:function(t){if(this.settings.autoComplete.enabled){"string"==typeof(t=t||{})&&(t={value:t});var e=t.value?""+t.value:"",i=e.substr(0,this.state.inputText.length).toLowerCase(),n=e.substring(this.state.inputText.length);e&&this.state.inputText&&i==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",n),this.state.inputSuggestion=t):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion)}},set:function(t){var e=this.DOM.input.getAttribute("data-suggest"),i=t||(e?this.state.inputText+e:null);return!!i&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+i)):(this.input.set.call(this,i),this.setRangeAtStartEnd()),this.input.autocomplete.suggest.call(this),this.dropdown.hide.call(this),!0)}}},getTagIdx:function(t){return this.value.findIndex((function(e){return e.value==t.value}))},getNodeIndex:function(t){var e=0;if(t)for(;t=t.previousElementSibling;)e++;return e},getTagElms:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=["."+this.settings.classNames.tag].concat(e).join(".");return[].slice.call(this.DOM.scope.querySelectorAll(n))},getLastTag:function(){var t=this.DOM.scope.querySelectorAll(".".concat(this.settings.classNames.tag,":not(.").concat(this.settings.classNames.tagHide,"):not([readonly])"));return t[t.length-1]},tagData:function(t,e,i){return t?(e&&(t.__tagifyTagData=i?e:s({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(console.warn("tag elment doesn't exist",t,e),e)},isTagDuplicate:function(t,e){var n=this,a=this.settings;return"select"!=a.mode&&this.value.reduce((function(r,o){return i(n.trim(""+t),o.value,e||a.dropdown.caseSensitive)?r+1:r}),0)},getTagIndexByValue:function(t){var e=this,n=[];return this.getTagElms().forEach((function(a,r){i(e.trim(a.textContent),t,e.settings.dropdown.caseSensitive)&&n.push(r)})),n},getTagElmByValue:function(t){var e=this.getTagIndexByValue(t)[0];return this.getTagElms()[e]},flashTag:function(t){var e=this;t&&(t.classList.add(this.settings.classNames.tagFlash),setTimeout((function(){t.classList.remove(e.settings.classNames.tagFlash)}),100))},isTagBlacklisted:function(t){return t=this.trim(t.toLowerCase()),this.settings.blacklist.filter((function(e){return(""+e).toLowerCase()==t})).length},isTagWhitelisted:function(t){return!!this.getWhitelistItem(t)},getWhitelistItem:function(t,e,n){e=e||"value";var a,r=this.settings,o=(n=n||r.whitelist,r.dropdown.caseSensitive);return n.some((function(n){var r="string"==typeof n?n:n[e];if(i(r,t,o))return a="string"==typeof n?{value:n}:n,!0})),a||"value"!=e||"value"==r.tagTextProp||(a=this.getWhitelistItem(t,r.tagTextProp,n)),a},validateTag:function(t){var e=this.settings,i="value"in t?"value":e.tagTextProp,n=this.trim(t[i]+"");return(t[i]+"").trim()?e.pattern&&e.pattern instanceof RegExp&&!e.pattern.test(n)?this.TEXTS.pattern:!e.duplicates&&this.isTagDuplicate(n,this.state.editing)?this.TEXTS.duplicate:!(this.isTagBlacklisted(n)||e.enforceWhitelist&&!this.isTagWhitelisted(n))||this.TEXTS.notAllowed:this.TEXTS.empty},getInvalidTagAttrs:function(t,e){return{"aria-invalid":!0,class:"".concat(t.class||""," ").concat(this.settings.classNames.tagNotAllowed).trim(),title:e}},hasMaxTags:function(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly:function(t){var e=this.settings;document.activeElement.blur(),e.readonly=t,this.DOM.scope[(t?"set":"remove")+"Attribute"]("readonly",!0),"mix"==e.mode&&(this.DOM.input.contentEditable=!t)},normalizeTags:function(t){var i=this,n=this.settings,a=n.whitelist,r=n.delimiters,o=n.mode,s=n.tagTextProp,l=n.enforceWhitelist,c=[],u=!!a&&a[0]instanceof Object,d=t instanceof Array,h=function(t){return(t+"").split(r).filter((function(t){return t})).map((function(t){return e({},s,i.trim(t))}))};if("number"==typeof t&&(t=t.toString()),"string"==typeof t){if(!t.trim())return[];t=h(t)}else if(d){var f;t=(f=[]).concat.apply(f,function(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t.map((function(t){return t.value?t:h(t)}))))}return u&&(t.forEach((function(t){var e=c.map((function(t){return t.value})),n=i.dropdown.filterListItems.call(i,t[s],{exact:!0}).filter((function(t){return!e.includes(t.value)})),a=n.length>1?i.getWhitelistItem(t[s],s,n):n[0];a&&a instanceof Object?c.push(a):"mix"==o||l||(null==t.value&&(t.value=t[s]),c.push(t))})),t=c),t},parseMixTags:function(t){var e=this,i=this.settings,n=i.mixTagsInterpolator,a=i.duplicates,r=i.transformTag,o=i.enforceWhitelist,s=i.maxTags,l=i.tagTextProp,c=[];return t=t.split(n[0]).map((function(t,i){var u,d,h,f=t.split(n[1]),p=f[0],m=c.length==s;try{if(p==+p)throw Error;d=JSON.parse(p)}catch(t){d=e.normalizeTags(p)[0]||{value:p}}if(m||!(f.length>1)||o&&!e.isTagWhitelisted(d.value)||!a&&e.isTagDuplicate(d.value)){if(t)return i?n[0]+t:t}else r.call(e,d),d[u=d[l]?l:"value"]=e.trim(d[u]),h=e.createTagElem(d),c.push(d),h.classList.add(e.settings.classNames.tagNoAnimation),f[0]=h.outerHTML,e.value.push(d);return f.join("")})).join(""),this.DOM.input.innerHTML=t,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize(),this.getTagElms().forEach((function(t,i){return e.tagData(t,c[i])})),this.update({withoutChangeEvent:!0}),t},replaceTextWithNode:function(t,e){if(this.state.tag||e){e=e||this.state.tag.prefix+this.state.tag.value;var i,n,a=window.getSelection(),r=a.anchorNode,o=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return r.splitText(a.anchorOffset-o),i=r.nodeValue.lastIndexOf(e),n=r.splitText(i),t&&r.parentNode.replaceChild(t,n),!0}},selectTag:function(t,e){if(!this.settings.enforceWhitelist||this.isTagWhitelisted(e.value))return this.input.set.call(this,e.value,!0),this.state.actions.selectOption&&setTimeout(this.setRangeAtStartEnd.bind(this)),this.getLastTag()?this.replaceTag(this.getLastTag(),e):this.appendTag(t),this.value[0]=e,this.trigger("add",{tag:t,data:e}),this.update(),[t]},addEmptyTag:function(t){var e=s({value:""},t||{}),i=this.createTagElem(e);this.tagData(i,e),this.appendTag(i),this.editTag(i,{skipValidation:!0})},addTags:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.settings.skipInvalid,a=[],r=this.settings;return t&&0!=t.length?(t=this.normalizeTags(t),"mix"==r.mode?this.addMixTags(t):("select"==r.mode&&(e=!1),this.DOM.input.removeAttribute("style"),t.forEach((function(t){var e,o={},l=Object.assign({},t,{value:t.value+""});if((t=Object.assign({},l)).__isValid=i.hasMaxTags()||i.validateTag(t),r.transformTag.call(i,t),!0!==t.__isValid){if(n)return;s(o,i.getInvalidTagAttrs(t,t.__isValid),{__preInvalidData:l}),t.__isValid==i.TEXTS.duplicate&&i.flashTag(i.getTagElmByValue(t.value))}if(t.readonly&&(o["aria-readonly"]=!0),e=i.createTagElem(s({},t,o)),a.push(e),"select"==r.mode)return i.selectTag(e,t);i.appendTag(e),t.__isValid&&!0===t.__isValid?(i.value.push(t),i.update(),i.trigger("add",{tag:e,index:i.value.length-1,data:t})):(i.trigger("invalid",{data:t,index:i.value.length,tag:e,message:t.__isValid}),r.keepInvalidTags||setTimeout((function(){return i.removeTags(e,!0)}),1e3)),i.dropdown.position.call(i)})),t.length&&e&&this.input.set.call(this),this.dropdown.refilter.call(this),a)):("select"==r.mode&&this.removeAllTags(),a)},addMixTags:function(t){var e,i=this,n=this.settings,a=this.state.tag.delimiters;return n.transformTag.call(this,t[0]),t[0].prefix=t[0].prefix||this.state.tag?this.state.tag.prefix:(n.pattern.source||n.pattern)[0],e=this.createTagElem(t[0]),this.replaceTextWithNode(e)||this.DOM.input.appendChild(e),setTimeout((function(){return e.classList.add(i.settings.classNames.tagNoAnimation)}),300),this.value.push(t[0]),this.update(),!a&&setTimeout((function(){var t=i.insertAfterTag(e)||e;i.placeCaretAfterNode(t)}),this.isFirefox?100:0),this.state.tag=null,this.trigger("add",s({},{tag:e},{data:t[0]})),e},appendTag:function(t){var e=this.DOM.scope.lastElementChild;e===this.DOM.input?this.DOM.scope.insertBefore(t,e):this.DOM.scope.appendChild(t)},createTagElem:function(t){var e,i=s({},t,{value:a(t.value+"")});return this.settings.readonly&&(t.readonly=!0),function(t){for(var e,i=document.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);e=i.nextNode();)e.textContent.trim()||e.parentNode.removeChild(e)}(e=this.parseTemplate("tag",[i])),this.tagData(e,t),e},reCheckInvalidTags:function(){var t=this,e=this.settings,i=".".concat(e.classNames.tag,".").concat(e.classNames.tagNotAllowed),n=this.DOM.scope.querySelectorAll(i);[].forEach.call(n,(function(e){var i=t.tagData(e),n=e.getAttribute("title")==t.TEXTS.duplicate,a=!0===t.validateTag(i);n&&a&&(i=i.__preInvalidData?i.__preInvalidData:{value:i.value},t.replaceTag(e,i))}))},removeTags:function(t,e,i){var n,a=this;t=t&&t instanceof HTMLElement?[t]:t instanceof Array?t:t?[t]:[this.getLastTag()],n=t.reduce((function(t,e){return e&&"string"==typeof e&&(e=a.getTagElmByValue(e)),e&&t.push({node:e,idx:a.getTagIdx(a.tagData(e)),data:a.tagData(e,{__removed:!0})}),t}),[]),i="number"==typeof i?i:this.CSSVars.tagHideTransition,"select"==this.settings.mode&&(i=0,this.input.set.call(this)),1==n.length&&n[0].node.classList.contains(this.settings.classNames.tagNotAllowed)&&(e=!0),n.length&&this.settings.hooks.beforeRemoveTag(n,{tagify:this}).then((function(){function t(t){t.node.parentNode&&(t.node.parentNode.removeChild(t.node),e?this.settings.keepInvalidTags&&this.trigger("remove",{tag:t.node,index:t.idx}):(this.trigger("remove",{tag:t.node,index:t.idx,data:t.data}),this.dropdown.refilter.call(this),this.dropdown.position.call(this),this.DOM.input.normalize(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()))}i&&i>10&&1==n.length?function(e){e.node.style.width=parseFloat(window.getComputedStyle(e.node).width)+"px",document.body.clientTop,e.node.classList.add(this.settings.classNames.tagHide),setTimeout(t.bind(this),i,e)}.call(a,n[0]):n.forEach(t.bind(a)),e||(n.forEach((function(t){var e=Object.assign({},t.data);delete e.__removed;var i=a.getTagIdx(e);i>-1&&a.value.splice(i,1)})),a.update())})).catch((function(t){}))},removeAllTags:function(){this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":Array.prototype.slice.call(this.getTagElms()).forEach((function(t){return t.parentNode.removeChild(t)})),this.dropdown.position.call(this),"select"==this.settings.mode&&this.input.set.call(this),this.update()},postUpdate:function(){var t=this.settings.classNames,e="mix"==this.settings.mode?this.settings.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value:this.value.length;this.toggleClass(t.hasMaxTags,this.value.length>=this.settings.maxTags),this.toggleClass(t.hasNoTags,!this.value.length),this.toggleClass(t.empty,!e)},update:function(t){var e,i,n=this.DOM.originalInput,a=(t||{}).withoutChangeEvent,r=(e=this.value,i=["__isValid","__removed"],e.map((function(t){var e={};for(var n in t)i.indexOf(n)<0&&(e[n]=t[n]);return e})));this.settings.mixMode.integrated||(n.value="mix"==this.settings.mode?this.getMixedTagsAsString(r):r.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(r):JSON.stringify(r):""),this.postUpdate(),!a&&this.state.loadedOriginalValues&&this.triggerChangeEvent()},getMixedTagsAsString:function(){var t="",e=this,i=this.settings.mixTagsInterpolator;return function n(a){a.childNodes.forEach((function(a){if(1==a.nodeType){if(a.classList.contains(e.settings.classNames.tag)&&e.tagData(a)){if(e.tagData(a).__removed)return;return void(t+=i[0]+JSON.stringify(a.__tagifyTagData)+i[1])}"BR"!=a.tagName||a.parentNode!=e.DOM.input&&1!=a.parentNode.childNodes.length?"DIV"!=a.tagName&&"P"!=a.tagName||(t+="\r\n",n(a)):t+="\r\n"}else t+=a.textContent}))}(this.DOM.input),t}},h.prototype.removeTag=h.prototype.removeTags,h})),
/*!
 * 
 * Super simple wysiwyg editor v0.8.18
 * https://summernote.org
 * 
 * 
 * Copyright 2013- Alan Hong. and other contributors
 * summernote may be freely distributed under the MIT license.
 * 
 * Date: 2020-05-20T16:47Z
 * 
 */
function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],e);else{var i="object"==typeof exports?e(require("jquery")):e(t.jQuery);for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(window,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=53)}({0:function(e,i){e.exports=t},1:function(t,e,i){"use strict";var n=i(0),a=i.n(n);function r(t){return(r="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)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(e,i,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.markup=e,this.children=i,this.options=n,this.callback=a}var e,i,n;return e=t,(i=[{key:"render",value:function(t){var e=a()(this.markup);if(this.options&&this.options.contents&&e.html(this.options.contents),this.options&&this.options.className&&e.addClass(this.options.className),this.options&&this.options.data&&a.a.each(this.options.data,(function(t,i){e.attr("data-"+t,i)})),this.options&&this.options.click&&e.on("click",this.options.click),this.children){var i=e.find(".note-children-container");this.children.forEach((function(t){t.render(i.length?i:e)}))}return this.callback&&this.callback(e,this.options),this.options&&this.options.callback&&this.options.callback(e),t&&t.append(e),e}}])&&o(e.prototype,i),n&&o(e,n),t}();e.a={create:function(t,e){return function(){var i="object"===r(arguments[1])?arguments[1]:arguments[0],n=Array.isArray(arguments[0])?arguments[0]:[];return i&&i.children&&(n=i.children),new s(t,n,i,e)}}}},2:function(t,e){(function(e){t.exports=e}).call(this,{})},3:function(t,e,i){"use strict";var n=i(0),a=i.n(n);a.a.summernote=a.a.summernote||{lang:{}},a.a.extend(a.a.summernote.lang,{"en-US":{font:{bold:"Bold",italic:"Italic",underline:"Underline",clear:"Remove Font Style",height:"Line Height",name:"Font Family",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",size:"Font Size",sizeunit:"Font Size Unit"},image:{image:"Picture",insert:"Insert Image",resizeFull:"Resize full",resizeHalf:"Resize half",resizeQuarter:"Resize quarter",resizeNone:"Original size",floatLeft:"Float Left",floatRight:"Float Right",floatNone:"Remove float",shapeRounded:"Shape: Rounded",shapeCircle:"Shape: Circle",shapeThumbnail:"Shape: Thumbnail",shapeNone:"Shape: None",dragImageHere:"Drag image or text here",dropImage:"Drop image or Text",selectFromFiles:"Select from files",maximumFileSize:"Maximum file size",maximumFileSizeError:"Maximum file size exceeded.",url:"Image URL",remove:"Remove Image",original:"Original"},video:{video:"Video",videoLink:"Video Link",insert:"Insert Video",url:"Video URL",providers:"(YouTube, Vimeo, Vine, Instagram, DailyMotion or Youku)"},link:{link:"Link",insert:"Insert Link",unlink:"Unlink",edit:"Edit",textToDisplay:"Text to display",url:"To what URL should this link go?",openInNewWindow:"Open in new window",useProtocol:"Use default protocol"},table:{table:"Table",addRowAbove:"Add row above",addRowBelow:"Add row below",addColLeft:"Add column left",addColRight:"Add column right",delRow:"Delete row",delCol:"Delete column",delTable:"Delete table"},hr:{insert:"Insert Horizontal Rule"},style:{style:"Style",p:"Normal",blockquote:"Quote",pre:"Code",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6"},lists:{unordered:"Unordered list",ordered:"Ordered list"},options:{help:"Help",fullscreen:"Full Screen",codeview:"Code View"},paragraph:{paragraph:"Paragraph",outdent:"Outdent",indent:"Indent",left:"Align left",center:"Align center",right:"Align right",justify:"Justify full"},color:{recent:"Recent Color",more:"More Color",background:"Background Color",foreground:"Text Color",transparent:"Transparent",setTransparent:"Set transparent",reset:"Reset",resetToDefault:"Reset to default",cpSelect:"Select"},shortcut:{shortcuts:"Keyboard shortcuts",close:"Close",textFormatting:"Text formatting",action:"Action",paragraphFormatting:"Paragraph formatting",documentStyle:"Document Style",extraKeys:"Extra keys"},help:{escape:"Escape",insertParagraph:"Insert Paragraph",undo:"Undo the last command",redo:"Redo the last command",tab:"Tab",untab:"Untab",bold:"Set a bold style",italic:"Set a italic style",underline:"Set a underline style",strikethrough:"Set a strikethrough style",removeFormat:"Clean a style",justifyLeft:"Set left align",justifyCenter:"Set center align",justifyRight:"Set right align",justifyFull:"Set full align",insertUnorderedList:"Toggle unordered list",insertOrderedList:"Toggle ordered list",outdent:"Outdent on current paragraph",indent:"Indent on current paragraph",formatPara:"Change current block's format as a paragraph(P tag)",formatH1:"Change current block's format as H1",formatH2:"Change current block's format as H2",formatH3:"Change current block's format as H3",formatH4:"Change current block's format as H4",formatH5:"Change current block's format as H5",formatH6:"Change current block's format as H6",insertHorizontalRule:"Insert horizontal rule","linkDialog.show":"Show Link Dialog"},history:{undo:"Undo",redo:"Redo"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"},output:{noSelection:"No Selection Made!"}}});var r="function"==typeof define&&i(2),o=["sans-serif","serif","monospace","cursive","fantasy"];function s(t){return-1===a.a.inArray(t.toLowerCase(),o)?"'".concat(t,"'"):t}var l,c=navigator.userAgent,u=/MSIE|Trident/i.test(c);if(u){var d=/MSIE (\d+[.]\d+)/.exec(c);d&&(l=parseFloat(d[1])),(d=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec(c))&&(l=parseFloat(d[1]))}var h=/Edge\/\d+/.test(c),f="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,p=u?"DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted":"input",m={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:u,isEdge:h,isFF:!h&&/firefox/i.test(c),isPhantom:/PhantomJS/i.test(c),isWebkit:!h&&/webkit/i.test(c),isChrome:!h&&/chrome/i.test(c),isSafari:!h&&/safari/i.test(c)&&!/chrome/i.test(c),browserVersion:l,jqueryVersion:parseFloat(a.a.fn.jquery),isSupportAmd:r,isSupportTouch:f,isFontInstalled:function(t){var e="Comic Sans MS"===t?"Courier New":"Comic Sans MS",i="mmmmmmmmmmwwwww",n=document.createElement("canvas").getContext("2d");n.font="200px '"+e+"'";var a=n.measureText(i).width;return n.font="200px "+s(t)+', "'+e+'"',a!==n.measureText(i).width},isW3CRangeSupport:!!document.createRange,inputEventName:p,genericFontFamilies:o,validFontName:s};var g=0;var v={eq:function(t){return function(e){return t===e}},eq2:function(t,e){return t===e},peq2:function(t){return function(e,i){return e[t]===i[t]}},ok:function(){return!0},fail:function(){return!1},self:function(t){return t},not:function(t){return function(){return!t.apply(t,arguments)}},and:function(t,e){return function(i){return t(i)&&e(i)}},invoke:function(t,e){return function(){return t[e].apply(t,arguments)}},resetUniqueId:function(){g=0},uniqueId:function(t){var e=++g+"";return t?t+e:e},rect2bnd:function(t){var e=a()(document);return{top:t.top+e.scrollTop(),left:t.left+e.scrollLeft(),width:t.right-t.left,height:t.bottom-t.top}},invertObject:function(t){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[t[i]]=i);return e},namespaceToCamel:function(t,e){return(e=e||"")+t.split(".").map((function(t){return t.substring(0,1).toUpperCase()+t.substring(1)})).join("")},debounce:function(t,e,i){var n;return function(){var a=this,r=arguments,o=function(){n=null,i||t.apply(a,r)},s=i&&!n;clearTimeout(n),n=setTimeout(o,e),s&&t.apply(a,r)}},isValidUrl:function(t){return/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(t)}};function y(t){return t[0]}function b(t){return t[t.length-1]}function _(t){return t.slice(1)}function x(t,e){if(t&&t.length&&e){if(t.indexOf)return-1!==t.indexOf(e);if(t.contains)return t.contains(e)}return!1}var w={head:y,last:b,initial:function(t){return t.slice(0,t.length-1)},tail:_,prev:function(t,e){if(t&&t.length&&e){var i=t.indexOf(e);return-1===i?null:t[i-1]}return null},next:function(t,e){if(t&&t.length&&e){var i=t.indexOf(e);return-1===i?null:t[i+1]}return null},find:function(t,e){for(var i=0,n=t.length;i<n;i++){var a=t[i];if(e(a))return a}},contains:x,all:function(t,e){for(var i=0,n=t.length;i<n;i++)if(!e(t[i]))return!1;return!0},sum:function(t,e){return e=e||v.self,t.reduce((function(t,i){return t+e(i)}),0)},from:function(t){for(var e=[],i=t.length,n=-1;++n<i;)e[n]=t[n];return e},isEmpty:function(t){return!t||!t.length},clusterBy:function(t,e){return t.length?_(t).reduce((function(t,i){var n=b(t);return e(b(n),i)?n[n.length]=i:t[t.length]=[i],t}),[[y(t)]]):[]},compact:function(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&e.push(t[i]);return e},unique:function(t){for(var e=[],i=0,n=t.length;i<n;i++)x(e,t[i])||e.push(t[i]);return e}},k=String.fromCharCode(160);function S(t){return t&&a()(t).hasClass("note-editable")}function M(t){return t=t.toUpperCase(),function(e){return e&&e.nodeName.toUpperCase()===t}}function L(t){return t&&3===t.nodeType}function T(t){return t&&/^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(t.nodeName.toUpperCase())}function C(t){return!S(t)&&(t&&/^DIV|^P|^LI|^H[1-7]/.test(t.nodeName.toUpperCase()))}var A=M("PRE"),D=M("LI");var E=M("TABLE"),O=M("DATA");function P(t){return!(j(t)||Y(t)||I(t)||C(t)||E(t)||H(t)||O(t))}function Y(t){return t&&/^UL|^OL/.test(t.nodeName.toUpperCase())}var I=M("HR");function N(t){return t&&/^TD|^TH/.test(t.nodeName.toUpperCase())}var H=M("BLOCKQUOTE");function j(t){return N(t)||H(t)||S(t)}var F=M("A");var R=M("BODY");var z=m.isMSIE&&m.browserVersion<11?"&nbsp;":"<br>";function $(t){return L(t)?t.nodeValue.length:t?t.childNodes.length:0}function B(t){var e=$(t);return 0===e||(!L(t)&&1===e&&t.innerHTML===z||!(!w.all(t.childNodes,L)||""!==t.innerHTML))}function W(t){T(t)||$(t)||(t.innerHTML=z)}function V(t,e){for(;t;){if(e(t))return t;if(S(t))break;t=t.parentNode}return null}function q(t,e){e=e||v.fail;var i=[];return V(t,(function(t){return S(t)||i.push(t),e(t)})),i}function U(t,e){e=e||v.fail;for(var i=[];t&&!e(t);)i.push(t),t=t.nextSibling;return i}function X(t,e){var i=e.nextSibling,n=e.parentNode;return i?n.insertBefore(t,i):n.appendChild(t),t}function G(t,e){return a.a.each(e,(function(e,i){t.appendChild(i)})),t}function K(t){return 0===t.offset}function Z(t){return t.offset===$(t.node)}function J(t){return K(t)||Z(t)}function Q(t,e){for(;t&&t!==e;){if(0!==et(t))return!1;t=t.parentNode}return!0}function tt(t,e){if(!e)return!1;for(;t&&t!==e;){if(et(t)!==$(t.parentNode)-1)return!1;t=t.parentNode}return!0}function et(t){for(var e=0;t=t.previousSibling;)e+=1;return e}function it(t){return!!(t&&t.childNodes&&t.childNodes.length)}function nt(t,e){var i,n;if(0===t.offset){if(S(t.node))return null;i=t.node.parentNode,n=et(t.node)}else it(t.node)?n=$(i=t.node.childNodes[t.offset-1]):(i=t.node,n=e?0:t.offset-1);return{node:i,offset:n}}function at(t,e){var i,n;if($(t.node)===t.offset){if(S(t.node))return null;var a=ot(t.node);a?(i=a,n=0):(i=t.node.parentNode,n=et(t.node)+1)}else it(t.node)?(i=t.node.childNodes[t.offset],n=0):(i=t.node,n=e?$(t.node):t.offset+1);return{node:i,offset:n}}function rt(t,e){var i,n;if(B(t.node))return{node:i=t.node.nextSibling,offset:n=0};if($(t.node)===t.offset){if(S(t.node))return null;var a=ot(t.node);a?(i=a,n=0):(i=t.node.parentNode,n=et(t.node)+1),S(i)&&(i=t.node.nextSibling,n=0)}else if(it(t.node)){if(n=0,B(i=t.node.childNodes[t.offset]))return null}else if(i=t.node,n=e?$(t.node):t.offset+1,B(i))return null;return{node:i,offset:n}}function ot(t){if(t.nextSibling&&t.parent===t.nextSibling.parent)return L(t.nextSibling)?t.nextSibling:ot(t.nextSibling)}function st(t,e){return t.node===e.node&&t.offset===e.offset}function lt(t,e){var i=e&&e.isSkipPaddingBlankHTML,n=e&&e.isNotSplitEdgePoint,a=e&&e.isDiscardEmptySplits;if(a&&(i=!0),J(t)&&(L(t.node)||n)){if(K(t))return t.node;if(Z(t))return t.node.nextSibling}if(L(t.node))return t.node.splitText(t.offset);var r=t.node.childNodes[t.offset],o=X(t.node.cloneNode(!1),t.node);return G(o,U(r)),i||(W(t.node),W(o)),a&&(B(t.node)&&dt(t.node),B(o))?(dt(o),t.node.nextSibling):o}function ct(t,e,i){var n=q(e.node,v.eq(t));return n.length?1===n.length?lt(e,i):n.reduce((function(t,n){return t===e.node&&(t=lt(e,i)),lt({node:n,offset:t?et(t):$(n)},i)})):null}function ut(t){return document.createElement(t)}function dt(t,e){if(t&&t.parentNode){if(t.removeNode)return t.removeNode(e);var i=t.parentNode;if(!e){for(var n=[],a=0,r=t.childNodes.length;a<r;a++)n.push(t.childNodes[a]);for(var o=0,s=n.length;o<s;o++)i.insertBefore(n[o],t)}i.removeChild(t)}}var ht=M("TEXTAREA");function ft(t,e){var i=ht(t[0])?t.val():t.html();return e?i.replace(/[\n\r]/g,""):i}var pt={NBSP_CHAR:k,ZERO_WIDTH_NBSP_CHAR:"\ufeff",blank:z,emptyPara:"<p>".concat(z,"</p>"),makePredByNodeName:M,isEditable:S,isControlSizing:function(t){return t&&a()(t).hasClass("note-control-sizing")},isText:L,isElement:function(t){return t&&1===t.nodeType},isVoid:T,isPara:C,isPurePara:function(t){return C(t)&&!D(t)},isHeading:function(t){return t&&/^H[1-7]/.test(t.nodeName.toUpperCase())},isInline:P,isBlock:v.not(P),isBodyInline:function(t){return P(t)&&!V(t,C)},isBody:R,isParaInline:function(t){return P(t)&&!!V(t,C)},isPre:A,isList:Y,isTable:E,isData:O,isCell:N,isBlockquote:H,isBodyContainer:j,isAnchor:F,isDiv:M("DIV"),isLi:D,isBR:M("BR"),isSpan:M("SPAN"),isB:M("B"),isU:M("U"),isS:M("S"),isI:M("I"),isImg:M("IMG"),isTextarea:ht,deepestChildIsEmpty:function(t){do{if(null===t.firstElementChild||""===t.firstElementChild.innerHTML)break}while(t=t.firstElementChild);return B(t)},isEmpty:B,isEmptyAnchor:v.and(F,B),isClosestSibling:function(t,e){return t.nextSibling===e||t.previousSibling===e},withClosestSiblings:function(t,e){e=e||v.ok;var i=[];return t.previousSibling&&e(t.previousSibling)&&i.push(t.previousSibling),i.push(t),t.nextSibling&&e(t.nextSibling)&&i.push(t.nextSibling),i},nodeLength:$,isLeftEdgePoint:K,isRightEdgePoint:Z,isEdgePoint:J,isLeftEdgeOf:Q,isRightEdgeOf:tt,isLeftEdgePointOf:function(t,e){return K(t)&&Q(t.node,e)},isRightEdgePointOf:function(t,e){return Z(t)&&tt(t.node,e)},prevPoint:nt,nextPoint:at,nextPointWithEmptyNode:rt,isSamePoint:st,isVisiblePoint:function(t){if(L(t.node)||!it(t.node)||B(t.node))return!0;var e=t.node.childNodes[t.offset-1],i=t.node.childNodes[t.offset];return!(e&&!T(e)||i&&!T(i))},prevPointUntil:function(t,e){for(;t;){if(e(t))return t;t=nt(t)}return null},nextPointUntil:function(t,e){for(;t;){if(e(t))return t;t=at(t)}return null},isCharPoint:function(t){if(!L(t.node))return!1;var e=t.node.nodeValue.charAt(t.offset-1);return e&&" "!==e&&e!==k},isSpacePoint:function(t){if(!L(t.node))return!1;var e=t.node.nodeValue.charAt(t.offset-1);return" "===e||e===k},walkPoint:function(t,e,i,n){for(var a=t;a&&(i(a),!st(a,e));){a=rt(a,n&&t.node!==a.node&&e.node!==a.node)}},ancestor:V,singleChildAncestor:function(t,e){for(t=t.parentNode;t&&1===$(t);){if(e(t))return t;if(S(t))break;t=t.parentNode}return null},listAncestor:q,lastAncestor:function(t,e){var i=q(t);return w.last(i.filter(e))},listNext:U,listPrev:function(t,e){e=e||v.fail;for(var i=[];t&&!e(t);)i.push(t),t=t.previousSibling;return i},listDescendant:function(t,e){var i=[];return e=e||v.ok,function n(a){t!==a&&e(a)&&i.push(a);for(var r=0,o=a.childNodes.length;r<o;r++)n(a.childNodes[r])}(t),i},commonAncestor:function(t,e){for(var i=q(t),n=e;n;n=n.parentNode)if(i.indexOf(n)>-1)return n;return null},wrap:function(t,e){var i=t.parentNode,n=a()("<"+e+">")[0];return i.insertBefore(n,t),n.appendChild(t),n},insertAfter:X,appendChildNodes:G,position:et,hasChildren:it,makeOffsetPath:function(t,e){return q(e,v.eq(t)).map(et).reverse()},fromOffsetPath:function(t,e){for(var i=t,n=0,a=e.length;n<a;n++)i=i.childNodes.length<=e[n]?i.childNodes[i.childNodes.length-1]:i.childNodes[e[n]];return i},splitTree:ct,splitPoint:function(t,e){var i,n,a=e?C:j,r=q(t.node,a),o=w.last(r)||t.node;a(o)?(i=r[r.length-2],n=o):n=(i=o).parentNode;var s=i&&ct(i,t,{isSkipPaddingBlankHTML:e,isNotSplitEdgePoint:e});return s||n!==t.node||(s=t.node.childNodes[t.offset]),{rightNode:s,container:n}},create:ut,createText:function(t){return document.createTextNode(t)},remove:dt,removeWhile:function(t,e){for(;t&&!S(t)&&e(t);){var i=t.parentNode;dt(t),t=i}},replace:function(t,e){if(t.nodeName.toUpperCase()===e.toUpperCase())return t;var i=ut(e);return t.style.cssText&&(i.style.cssText=t.style.cssText),G(i,w.from(t.childNodes)),X(i,t),dt(t),i},html:function(t,e){var i=ft(t);if(e){i=(i=i.replace(/<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g,(function(t,e,i){i=i.toUpperCase();var n=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(i)&&!!e,a=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(i);return t+(n||a?"\n":"")}))).trim()}return i},value:ft,posFromPlaceholder:function(t){var e=a()(t),i=e.offset(),n=e.outerHeight(!0);return{left:i.left,top:i.top+n}},attachEvents:function(t,e){Object.keys(e).forEach((function(i){t.on(i,e[i])}))},detachEvents:function(t,e){Object.keys(e).forEach((function(i){t.off(i,e[i])}))},isCustomStyleTag:function(t){return t&&!L(t)&&w.contains(t.classList,"note-styletag")}};function mt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var gt=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$note=e,this.memos={},this.modules={},this.layoutInfo={},this.options=a.a.extend(!0,{},i),a.a.summernote.ui=a.a.summernote.ui_template(this.options),this.ui=a.a.summernote.ui,this.initialize()}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){return this.layoutInfo=this.ui.createLayout(this.$note),this._initialize(),this.$note.hide(),this}},{key:"destroy",value:function(){this._destroy(),this.$note.removeData("summernote"),this.ui.removeLayout(this.$note,this.layoutInfo)}},{key:"reset",value:function(){var t=this.isDisabled();this.code(pt.emptyPara),this._destroy(),this._initialize(),t&&this.disable()}},{key:"_initialize",value:function(){var t=this;this.options.id=v.uniqueId(a.a.now()),this.options.container=this.options.container||this.layoutInfo.editor;var e=a.a.extend({},this.options.buttons);Object.keys(e).forEach((function(i){t.memo("button."+i,e[i])}));var i=a.a.extend({},this.options.modules,a.a.summernote.plugins||{});Object.keys(i).forEach((function(e){t.module(e,i[e],!0)})),Object.keys(this.modules).forEach((function(e){t.initializeModule(e)}))}},{key:"_destroy",value:function(){var t=this;Object.keys(this.modules).reverse().forEach((function(e){t.removeModule(e)})),Object.keys(this.memos).forEach((function(e){t.removeMemo(e)})),this.triggerEvent("destroy",this)}},{key:"code",value:function(t){var e=this.invoke("codeview.isActivated");if(void 0===t)return this.invoke("codeview.sync"),e?this.layoutInfo.codable.val():this.layoutInfo.editable.html();e?this.invoke("codeview.sync",t):this.layoutInfo.editable.html(t),this.$note.val(t),this.triggerEvent("change",t,this.layoutInfo.editable)}},{key:"isDisabled",value:function(){return"false"===this.layoutInfo.editable.attr("contenteditable")}},{key:"enable",value:function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1),this.options.editing=!0}},{key:"disable",value:function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.options.editing=!1,this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)}},{key:"triggerEvent",value:function(){var t=w.head(arguments),e=w.tail(w.from(arguments)),i=this.options.callbacks[v.namespaceToCamel(t,"on")];i&&i.apply(this.$note[0],e),this.$note.trigger("summernote."+t,e)}},{key:"initializeModule",value:function(t){var e=this.modules[t];e.shouldInitialize=e.shouldInitialize||v.ok,e.shouldInitialize()&&(e.initialize&&e.initialize(),e.events&&pt.attachEvents(this.$note,e.events))}},{key:"module",value:function(t,e,i){if(1===arguments.length)return this.modules[t];this.modules[t]=new e(this),i||this.initializeModule(t)}},{key:"removeModule",value:function(t){var e=this.modules[t];e.shouldInitialize()&&(e.events&&pt.detachEvents(this.$note,e.events),e.destroy&&e.destroy()),delete this.modules[t]}},{key:"memo",value:function(t,e){if(1===arguments.length)return this.memos[t];this.memos[t]=e}},{key:"removeMemo",value:function(t){this.memos[t]&&this.memos[t].destroy&&this.memos[t].destroy(),delete this.memos[t]}},{key:"createInvokeHandlerAndUpdateState",value:function(t,e){var i=this;return function(n){i.createInvokeHandler(t,e)(n),i.invoke("buttons.updateCurrentStyle")}}},{key:"createInvokeHandler",value:function(t,e){var i=this;return function(n){n.preventDefault();var r=a()(n.target);i.invoke(t,e||r.closest("[data-value]").data("value"),r)}}},{key:"invoke",value:function(){var t=w.head(arguments),e=w.tail(w.from(arguments)),i=t.split("."),n=i.length>1,a=n&&w.head(i),r=n?w.last(i):w.head(i),o=this.modules[a||"editor"];return!a&&this[r]?this[r].apply(this,e):o&&o[r]&&o.shouldInitialize()?o[r].apply(o,e):void 0}}])&&mt(e.prototype,i),n&&mt(e,n),t}();function vt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function yt(t,e){var i,n,a=t.parentElement(),r=document.body.createTextRange(),o=w.from(a.childNodes);for(i=0;i<o.length;i++)if(!pt.isText(o[i])){if(r.moveToElementText(o[i]),r.compareEndPoints("StartToStart",t)>=0)break;n=o[i]}if(0!==i&&pt.isText(o[i-1])){var s=document.body.createTextRange(),l=null;s.moveToElementText(n||a),s.collapse(!n),l=n?n.nextSibling:a.firstChild;var c=t.duplicate();c.setEndPoint("StartToStart",s);for(var u=c.text.replace(/[\r\n]/g,"").length;u>l.nodeValue.length&&l.nextSibling;)u-=l.nodeValue.length,l=l.nextSibling;l.nodeValue;e&&l.nextSibling&&pt.isText(l.nextSibling)&&u===l.nodeValue.length&&(u-=l.nodeValue.length,l=l.nextSibling),a=l,i=u}return{cont:a,offset:i}}function bt(t){var e=document.body.createTextRange(),i=function t(e,i){var n,a;if(pt.isText(e)){var r=pt.listPrev(e,v.not(pt.isText)),o=w.last(r).previousSibling;n=o||e.parentNode,i+=w.sum(w.tail(r),pt.nodeLength),a=!o}else{if(n=e.childNodes[i]||e,pt.isText(n))return t(n,0);i=0,a=!1}return{node:n,collapseToStart:a,offset:i}}(t.node,t.offset);return e.moveToElementText(i.node),e.collapse(i.collapseToStart),e.moveStart("character",i.offset),e}a.a.fn.extend({summernote:function(){var t=a.a.type(w.head(arguments)),e="string"===t,i="object"===t,n=a.a.extend({},a.a.summernote.options,i?w.head(arguments):{});n.langInfo=a.a.extend(!0,{},a.a.summernote.lang["en-US"],a.a.summernote.lang[n.lang]),n.icons=a.a.extend(!0,{},a.a.summernote.options.icons,n.icons),n.tooltip="auto"===n.tooltip?!m.isSupportTouch:n.tooltip,this.each((function(t,e){var i=a()(e);if(!i.data("summernote")){var r=new gt(i,n);i.data("summernote",r),i.data("summernote").triggerEvent("init",r.layoutInfo)}}));var r=this.first();if(r.length){var o=r.data("summernote");if(e)return o.invoke.apply(o,w.from(arguments));n.focus&&o.invoke("editor.focus")}return this}});var _t=function(){function t(e,i,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sc=e,this.so=i,this.ec=n,this.eo=a,this.isOnEditable=this.makeIsOn(pt.isEditable),this.isOnList=this.makeIsOn(pt.isList),this.isOnAnchor=this.makeIsOn(pt.isAnchor),this.isOnCell=this.makeIsOn(pt.isCell),this.isOnData=this.makeIsOn(pt.isData)}var e,i,n;return e=t,(i=[{key:"nativeRange",value:function(){if(m.isW3CRangeSupport){var t=document.createRange();return t.setStart(this.sc,this.so),t.setEnd(this.ec,this.eo),t}var e=bt({node:this.sc,offset:this.so});return e.setEndPoint("EndToEnd",bt({node:this.ec,offset:this.eo})),e}},{key:"getPoints",value:function(){return{sc:this.sc,so:this.so,ec:this.ec,eo:this.eo}}},{key:"getStartPoint",value:function(){return{node:this.sc,offset:this.so}}},{key:"getEndPoint",value:function(){return{node:this.ec,offset:this.eo}}},{key:"select",value:function(){var t=this.nativeRange();if(m.isW3CRangeSupport){var e=document.getSelection();e.rangeCount>0&&e.removeAllRanges(),e.addRange(t)}else t.select();return this}},{key:"scrollIntoView",value:function(t){var e=a()(t).height();return t.scrollTop+e<this.sc.offsetTop&&(t.scrollTop+=Math.abs(t.scrollTop+e-this.sc.offsetTop)),this}},{key:"normalize",value:function(){var e=function(t,e){if(!t)return t;if(pt.isVisiblePoint(t)&&(!pt.isEdgePoint(t)||pt.isRightEdgePoint(t)&&!e||pt.isLeftEdgePoint(t)&&e||pt.isRightEdgePoint(t)&&e&&pt.isVoid(t.node.nextSibling)||pt.isLeftEdgePoint(t)&&!e&&pt.isVoid(t.node.previousSibling)||pt.isBlock(t.node)&&pt.isEmpty(t.node)))return t;var i=pt.ancestor(t.node,pt.isBlock),n=!1;if(!n){var a=pt.prevPoint(t)||{node:null};n=(pt.isLeftEdgePointOf(t,i)||pt.isVoid(a.node))&&!e}var r=!1;if(!r){var o=pt.nextPoint(t)||{node:null};r=(pt.isRightEdgePointOf(t,i)||pt.isVoid(o.node))&&e}if(n||r){if(pt.isVisiblePoint(t))return t;e=!e}return(e?pt.nextPointUntil(pt.nextPoint(t),pt.isVisiblePoint):pt.prevPointUntil(pt.prevPoint(t),pt.isVisiblePoint))||t},i=e(this.getEndPoint(),!1),n=this.isCollapsed()?i:e(this.getStartPoint(),!0);return new t(n.node,n.offset,i.node,i.offset)}},{key:"nodes",value:function(t,e){t=t||v.ok;var i=e&&e.includeAncestor,n=e&&e.fullyContains,a=this.getStartPoint(),r=this.getEndPoint(),o=[],s=[];return pt.walkPoint(a,r,(function(e){var a;pt.isEditable(e.node)||(n?(pt.isLeftEdgePoint(e)&&s.push(e.node),pt.isRightEdgePoint(e)&&w.contains(s,e.node)&&(a=e.node)):a=i?pt.ancestor(e.node,t):e.node,a&&t(a)&&o.push(a))}),!0),w.unique(o)}},{key:"commonAncestor",value:function(){return pt.commonAncestor(this.sc,this.ec)}},{key:"expand",value:function(e){var i=pt.ancestor(this.sc,e),n=pt.ancestor(this.ec,e);if(!i&&!n)return new t(this.sc,this.so,this.ec,this.eo);var a=this.getPoints();return i&&(a.sc=i,a.so=0),n&&(a.ec=n,a.eo=pt.nodeLength(n)),new t(a.sc,a.so,a.ec,a.eo)}},{key:"collapse",value:function(e){return e?new t(this.sc,this.so,this.sc,this.so):new t(this.ec,this.eo,this.ec,this.eo)}},{key:"splitText",value:function(){var e=this.sc===this.ec,i=this.getPoints();return pt.isText(this.ec)&&!pt.isEdgePoint(this.getEndPoint())&&this.ec.splitText(this.eo),pt.isText(this.sc)&&!pt.isEdgePoint(this.getStartPoint())&&(i.sc=this.sc.splitText(this.so),i.so=0,e&&(i.ec=i.sc,i.eo=this.eo-this.so)),new t(i.sc,i.so,i.ec,i.eo)}},{key:"deleteContents",value:function(){if(this.isCollapsed())return this;var e=this.splitText(),i=e.nodes(null,{fullyContains:!0}),n=pt.prevPointUntil(e.getStartPoint(),(function(t){return!w.contains(i,t.node)})),r=[];return a.a.each(i,(function(t,e){var i=e.parentNode;n.node!==i&&1===pt.nodeLength(i)&&r.push(i),pt.remove(e,!1)})),a.a.each(r,(function(t,e){pt.remove(e,!1)})),new t(n.node,n.offset,n.node,n.offset).normalize()}},{key:"makeIsOn",value:function(t){return function(){var e=pt.ancestor(this.sc,t);return!!e&&e===pt.ancestor(this.ec,t)}}},{key:"isLeftEdgeOf",value:function(t){if(!pt.isLeftEdgePoint(this.getStartPoint()))return!1;var e=pt.ancestor(this.sc,t);return e&&pt.isLeftEdgeOf(this.sc,e)}},{key:"isCollapsed",value:function(){return this.sc===this.ec&&this.so===this.eo}},{key:"wrapBodyInlineWithPara",value:function(){if(pt.isBodyContainer(this.sc)&&pt.isEmpty(this.sc))return this.sc.innerHTML=pt.emptyPara,new t(this.sc.firstChild,0,this.sc.firstChild,0);var e,i=this.normalize();if(pt.isParaInline(this.sc)||pt.isPara(this.sc))return i;if(pt.isInline(i.sc)){var n=pt.listAncestor(i.sc,v.not(pt.isInline));e=w.last(n),pt.isInline(e)||(e=n[n.length-2]||i.sc.childNodes[i.so])}else e=i.sc.childNodes[i.so>0?i.so-1:0];if(e){var a=pt.listPrev(e,pt.isParaInline).reverse();if((a=a.concat(pt.listNext(e.nextSibling,pt.isParaInline))).length){var r=pt.wrap(w.head(a),"p");pt.appendChildNodes(r,w.tail(a))}}return this.normalize()}},{key:"insertNode",value:function(t){var e=this;(pt.isText(t)||pt.isInline(t))&&(e=this.wrapBodyInlineWithPara().deleteContents());var i=pt.splitPoint(e.getStartPoint(),pt.isInline(t));return i.rightNode?(i.rightNode.parentNode.insertBefore(t,i.rightNode),pt.isEmpty(i.rightNode)&&pt.isPara(t)&&i.rightNode.parentNode.removeChild(i.rightNode)):i.container.appendChild(t),t}},{key:"pasteHTML",value:function(t){t=a.a.trim(t);var e=a()("<div></div>").html(t)[0],i=w.from(e.childNodes),n=this,r=!1;return n.so>=0&&(i=i.reverse(),r=!0),i=i.map((function(t){return n.insertNode(t)})),r&&(i=i.reverse()),i}},{key:"toString",value:function(){var t=this.nativeRange();return m.isW3CRangeSupport?t.toString():t.text}},{key:"getWordRange",value:function(e){var i=this.getEndPoint();if(!pt.isCharPoint(i))return this;var n=pt.prevPointUntil(i,(function(t){return!pt.isCharPoint(t)}));return e&&(i=pt.nextPointUntil(i,(function(t){return!pt.isCharPoint(t)}))),new t(n.node,n.offset,i.node,i.offset)}},{key:"getWordsRange",value:function(e){var i=this.getEndPoint(),n=function(t){return!pt.isCharPoint(t)&&!pt.isSpacePoint(t)};if(n(i))return this;var a=pt.prevPointUntil(i,n);return e&&(i=pt.nextPointUntil(i,n)),new t(a.node,a.offset,i.node,i.offset)}},{key:"getWordsMatchRange",value:function(e){var i=this.getEndPoint(),n=pt.prevPointUntil(i,(function(n){if(!pt.isCharPoint(n)&&!pt.isSpacePoint(n))return!0;var a=new t(n.node,n.offset,i.node,i.offset),r=e.exec(a.toString());return r&&0===r.index})),a=new t(n.node,n.offset,i.node,i.offset),r=a.toString(),o=e.exec(r);return o&&o[0].length===r.length?a:null}},{key:"bookmark",value:function(t){return{s:{path:pt.makeOffsetPath(t,this.sc),offset:this.so},e:{path:pt.makeOffsetPath(t,this.ec),offset:this.eo}}}},{key:"paraBookmark",value:function(t){return{s:{path:w.tail(pt.makeOffsetPath(w.head(t),this.sc)),offset:this.so},e:{path:w.tail(pt.makeOffsetPath(w.last(t),this.ec)),offset:this.eo}}}},{key:"getClientRects",value:function(){return this.nativeRange().getClientRects()}}])&&vt(e.prototype,i),n&&vt(e,n),t}(),xt={create:function(t,e,i,n){if(4===arguments.length)return new _t(t,e,i,n);if(2===arguments.length)return new _t(t,e,i=t,n=e);var a=this.createFromSelection();if(!a&&1===arguments.length){var r=arguments[0];return pt.isEditable(r)&&(r=r.lastChild),this.createFromBodyElement(r,pt.emptyPara===arguments[0].innerHTML)}return a},createFromBodyElement:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.createFromNode(t);return i.collapse(e)},createFromSelection:function(){var t,e,i,n;if(m.isW3CRangeSupport){var a=document.getSelection();if(!a||0===a.rangeCount)return null;if(pt.isBody(a.anchorNode))return null;var r=a.getRangeAt(0);t=r.startContainer,e=r.startOffset,i=r.endContainer,n=r.endOffset}else{var o=document.selection.createRange(),s=o.duplicate();s.collapse(!1);var l=o;l.collapse(!0);var c=yt(l,!0),u=yt(s,!1);pt.isText(c.node)&&pt.isLeftEdgePoint(c)&&pt.isTextNode(u.node)&&pt.isRightEdgePoint(u)&&u.node.nextSibling===c.node&&(c=u),t=c.cont,e=c.offset,i=u.cont,n=u.offset}return new _t(t,e,i,n)},createFromNode:function(t){var e=t,i=0,n=t,a=pt.nodeLength(n);return pt.isVoid(e)&&(i=pt.listPrev(e).length-1,e=e.parentNode),pt.isBR(n)?(a=pt.listPrev(n).length-1,n=n.parentNode):pt.isVoid(n)&&(a=pt.listPrev(n).length,n=n.parentNode),this.create(e,i,n,a)},createFromNodeBefore:function(t){return this.createFromNode(t).collapse(!0)},createFromNodeAfter:function(t){return this.createFromNode(t).collapse()},createFromBookmark:function(t,e){var i=pt.fromOffsetPath(t,e.s.path),n=e.s.offset,a=pt.fromOffsetPath(t,e.e.path),r=e.e.offset;return new _t(i,n,a,r)},createFromParaBookmark:function(t,e){var i=t.s.offset,n=t.e.offset,a=pt.fromOffsetPath(w.head(e),t.s.path),r=pt.fromOffsetPath(w.last(e),t.e.path);return new _t(a,i,r,n)}},wt={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUM0:48,NUM1:49,NUM2:50,NUM3:51,NUM4:52,NUM5:53,NUM6:54,NUM7:55,NUM8:56,B:66,E:69,I:73,J:74,K:75,L:76,R:82,S:83,U:85,V:86,Y:89,Z:90,SLASH:191,LEFTBRACKET:219,BACKSLASH:220,RIGHTBRACKET:221,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34},kt={isEdit:function(t){return w.contains([wt.BACKSPACE,wt.TAB,wt.ENTER,wt.SPACE,wt.DELETE],t)},isMove:function(t){return w.contains([wt.LEFT,wt.UP,wt.RIGHT,wt.DOWN],t)},isNavigation:function(t){return w.contains([wt.HOME,wt.END,wt.PAGEUP,wt.PAGEDOWN],t)},nameFromCode:v.invertObject(wt),code:wt};function St(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Mt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.stack=[],this.stackOffset=-1,this.context=e,this.$editable=e.layoutInfo.editable,this.editable=this.$editable[0]}var e,i,n;return e=t,(i=[{key:"makeSnapshot",value:function(){var t=xt.create(this.editable);return{contents:this.$editable.html(),bookmark:t&&t.isOnEditable()?t.bookmark(this.editable):{s:{path:[],offset:0},e:{path:[],offset:0}}}}},{key:"applySnapshot",value:function(t){null!==t.contents&&this.$editable.html(t.contents),null!==t.bookmark&&xt.createFromBookmark(this.editable,t.bookmark).select()}},{key:"rewind",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset=0,this.applySnapshot(this.stack[this.stackOffset])}},{key:"commit",value:function(){this.stack=[],this.stackOffset=-1,this.recordUndo()}},{key:"reset",value:function(){this.stack=[],this.stackOffset=-1,this.$editable.html(""),this.recordUndo()}},{key:"undo",value:function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset>0&&(this.stackOffset--,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"redo",value:function(){this.stack.length-1>this.stackOffset&&(this.stackOffset++,this.applySnapshot(this.stack[this.stackOffset]))}},{key:"recordUndo",value:function(){this.stackOffset++,this.stack.length>this.stackOffset&&(this.stack=this.stack.slice(0,this.stackOffset)),this.stack.push(this.makeSnapshot()),this.stack.length>this.context.options.historyLimit&&(this.stack.shift(),this.stackOffset-=1)}}])&&St(e.prototype,i),n&&St(e,n),t}();function Lt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Tt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,(i=[{key:"jQueryCSS",value:function(t,e){if(m.jqueryVersion<1.9){var i={};return a.a.each(e,(function(e,n){i[n]=t.css(n)})),i}return t.css(e)}},{key:"fromNode",value:function(t){var e=this.jQueryCSS(t,["font-family","font-size","text-align","list-style-type","line-height"])||{},i=t[0].style.fontSize||e["font-size"];return e["font-size"]=parseInt(i,10),e["font-size-unit"]=i.match(/[a-z%]+$/),e}},{key:"stylePara",value:function(t,e){a.a.each(t.nodes(pt.isPara,{includeAncestor:!0}),(function(t,i){a()(i).css(e)}))}},{key:"styleNodes",value:function(t,e){t=t.splitText();var i=e&&e.nodeName||"SPAN",n=!(!e||!e.expandClosestSibling),r=!(!e||!e.onlyPartialContains);if(t.isCollapsed())return[t.insertNode(pt.create(i))];var o=pt.makePredByNodeName(i),s=t.nodes(pt.isText,{fullyContains:!0}).map((function(t){return pt.singleChildAncestor(t,o)||pt.wrap(t,i)}));if(n){if(r){var l=t.nodes();o=v.and(o,(function(t){return w.contains(l,t)}))}return s.map((function(t){var e=pt.withClosestSiblings(t,o),i=w.head(e),n=w.tail(e);return a.a.each(n,(function(t,e){pt.appendChildNodes(i,e.childNodes),pt.remove(e)})),w.head(e)}))}return s}},{key:"current",value:function(t){var e=a()(pt.isElement(t.sc)?t.sc:t.sc.parentNode),i=this.fromNode(e);try{i=a.a.extend(i,{"font-bold":document.queryCommandState("bold")?"bold":"normal","font-italic":document.queryCommandState("italic")?"italic":"normal","font-underline":document.queryCommandState("underline")?"underline":"normal","font-subscript":document.queryCommandState("subscript")?"subscript":"normal","font-superscript":document.queryCommandState("superscript")?"superscript":"normal","font-strikethrough":document.queryCommandState("strikethrough")?"strikethrough":"normal","font-family":document.queryCommandValue("fontname")||i["font-family"]})}catch(t){}if(t.isOnList()){var n=["circle","disc","disc-leading-zero","square"].indexOf(i["list-style-type"])>-1;i["list-style"]=n?"unordered":"ordered"}else i["list-style"]="none";var r=pt.ancestor(t.sc,pt.isPara);if(r&&r.style["line-height"])i["line-height"]=r.style.lineHeight;else{var o=parseInt(i["line-height"],10)/parseInt(i["font-size"],10);i["line-height"]=o.toFixed(1)}return i.anchor=t.isOnAnchor()&&pt.ancestor(t.sc,pt.isAnchor),i.ancestors=pt.listAncestor(t.sc,pt.isEditable),i.range=t,i}}])&&Lt(e.prototype,i),n&&Lt(e,n),t}();function Ct(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var At=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,(i=[{key:"insertOrderedList",value:function(t){this.toggleList("OL",t)}},{key:"insertUnorderedList",value:function(t){this.toggleList("UL",t)}},{key:"indent",value:function(t){var e=this,i=xt.create(t).wrapBodyInlineWithPara(),n=i.nodes(pt.isPara,{includeAncestor:!0}),r=w.clusterBy(n,v.peq2("parentNode"));a.a.each(r,(function(t,i){var n=w.head(i);if(pt.isLi(n)){var r=e.findList(n.previousSibling);r?i.map((function(t){return r.appendChild(t)})):(e.wrapList(i,n.parentNode.nodeName),i.map((function(t){return t.parentNode})).map((function(t){return e.appendToPrevious(t)})))}else a.a.each(i,(function(t,e){a()(e).css("marginLeft",(function(t,e){return(parseInt(e,10)||0)+25}))}))})),i.select()}},{key:"outdent",value:function(t){var e=this,i=xt.create(t).wrapBodyInlineWithPara(),n=i.nodes(pt.isPara,{includeAncestor:!0}),r=w.clusterBy(n,v.peq2("parentNode"));a.a.each(r,(function(t,i){var n=w.head(i);pt.isLi(n)?e.releaseList([i]):a.a.each(i,(function(t,e){a()(e).css("marginLeft",(function(t,e){return(e=parseInt(e,10)||0)>25?e-25:""}))}))})),i.select()}},{key:"toggleList",value:function(t,e){var i=this,n=xt.create(e).wrapBodyInlineWithPara(),r=n.nodes(pt.isPara,{includeAncestor:!0}),o=n.paraBookmark(r),s=w.clusterBy(r,v.peq2("parentNode"));if(w.find(r,pt.isPurePara)){var l=[];a.a.each(s,(function(e,n){l=l.concat(i.wrapList(n,t))})),r=l}else{var c=n.nodes(pt.isList,{includeAncestor:!0}).filter((function(e){return!a.a.nodeName(e,t)}));c.length?a.a.each(c,(function(e,i){pt.replace(i,t)})):r=this.releaseList(s,!0)}xt.createFromParaBookmark(o,r).select()}},{key:"wrapList",value:function(t,e){var i=w.head(t),n=w.last(t),a=pt.isList(i.previousSibling)&&i.previousSibling,r=pt.isList(n.nextSibling)&&n.nextSibling,o=a||pt.insertAfter(pt.create(e||"UL"),n);return t=t.map((function(t){return pt.isPurePara(t)?pt.replace(t,"LI"):t})),pt.appendChildNodes(o,t),r&&(pt.appendChildNodes(o,w.from(r.childNodes)),pt.remove(r)),t}},{key:"releaseList",value:function(t,e){var i=this,n=[];return a.a.each(t,(function(t,r){var o=w.head(r),s=w.last(r),l=e?pt.lastAncestor(o,pt.isList):o.parentNode,c=l.parentNode;if("LI"===l.parentNode.nodeName)r.map((function(t){var e=i.findNextSiblings(t);c.nextSibling?c.parentNode.insertBefore(t,c.nextSibling):c.parentNode.appendChild(t),e.length&&(i.wrapList(e,l.nodeName),t.appendChild(e[0].parentNode))})),0===l.children.length&&c.removeChild(l),0===c.childNodes.length&&c.parentNode.removeChild(c);else{var u=l.childNodes.length>1?pt.splitTree(l,{node:s.parentNode,offset:pt.position(s)+1},{isSkipPaddingBlankHTML:!0}):null,d=pt.splitTree(l,{node:o.parentNode,offset:pt.position(o)},{isSkipPaddingBlankHTML:!0});r=e?pt.listDescendant(d,pt.isLi):w.from(d.childNodes).filter(pt.isLi),!e&&pt.isList(l.parentNode)||(r=r.map((function(t){return pt.replace(t,"P")}))),a.a.each(w.from(r).reverse(),(function(t,e){pt.insertAfter(e,l)}));var h=w.compact([l,d,u]);a.a.each(h,(function(t,e){var i=[e].concat(pt.listDescendant(e,pt.isList));a.a.each(i.reverse(),(function(t,e){pt.nodeLength(e)||pt.remove(e,!0)}))}))}n=n.concat(r)})),n}},{key:"appendToPrevious",value:function(t){return t.previousSibling?pt.appendChildNodes(t.previousSibling,[t]):this.wrapList([t],"LI")}},{key:"findList",value:function(t){return t?w.find(t.children,(function(t){return["OL","UL"].indexOf(t.nodeName)>-1})):null}},{key:"findNextSiblings",value:function(t){for(var e=[];t.nextSibling;)e.push(t.nextSibling),t=t.nextSibling;return e}}])&&Ct(e.prototype,i),n&&Ct(e,n),t}();function Dt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Et=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bullet=new At,this.options=e.options}var e,i,n;return e=t,(i=[{key:"insertTab",value:function(t,e){var i=pt.createText(new Array(e+1).join(pt.NBSP_CHAR));(t=t.deleteContents()).insertNode(i,!0),(t=xt.create(i,e)).select()}},{key:"insertParagraph",value:function(t,e){e=(e=(e=e||xt.create(t)).deleteContents()).wrapBodyInlineWithPara();var i,n=pt.ancestor(e.sc,pt.isPara);if(n){if(pt.isLi(n)&&(pt.isEmpty(n)||pt.deepestChildIsEmpty(n)))return void this.bullet.toggleList(n.parentNode.nodeName);var r=null;if(1===this.options.blockquoteBreakingLevel?r=pt.ancestor(n,pt.isBlockquote):2===this.options.blockquoteBreakingLevel&&(r=pt.lastAncestor(n,pt.isBlockquote)),r){i=a()(pt.emptyPara)[0],pt.isRightEdgePoint(e.getStartPoint())&&pt.isBR(e.sc.nextSibling)&&a()(e.sc.nextSibling).remove();var o=pt.splitTree(r,e.getStartPoint(),{isDiscardEmptySplits:!0});o?o.parentNode.insertBefore(i,o):pt.insertAfter(i,r)}else{i=pt.splitTree(n,e.getStartPoint());var s=pt.listDescendant(n,pt.isEmptyAnchor);s=s.concat(pt.listDescendant(i,pt.isEmptyAnchor)),a.a.each(s,(function(t,e){pt.remove(e)})),(pt.isHeading(i)||pt.isPre(i)||pt.isCustomStyleTag(i))&&pt.isEmpty(i)&&(i=pt.replace(i,"p"))}}else{var l=e.sc.childNodes[e.so];i=a()(pt.emptyPara)[0],l?e.sc.insertBefore(i,l):e.sc.appendChild(i)}xt.create(i,0).normalize().select().scrollIntoView(t)}}])&&Dt(e.prototype,i),n&&Dt(e,n),t}();function Ot(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Pt=function t(e,i,n,a){var r={colPos:0,rowPos:0},o=[],s=[];function l(t,e,i,n,a,r,s){var l={baseRow:i,baseCell:n,isRowSpan:a,isColSpan:r,isVirtual:s};o[t]||(o[t]=[]),o[t][e]=l}function c(t,e,i,n){return{baseCell:t.baseCell,action:e,virtualTable:{rowIndex:i,cellIndex:n}}}function u(t,e){if(!o[t])return e;if(!o[t][e])return e;for(var i=e;o[t][i];)if(i++,!o[t][i])return i}function d(t,e){var i=u(t.rowIndex,e.cellIndex),n=e.colSpan>1,a=e.rowSpan>1,o=t.rowIndex===r.rowPos&&e.cellIndex===r.colPos;l(t.rowIndex,i,t,e,a,n,!1);var s=e.attributes.rowSpan?parseInt(e.attributes.rowSpan.value,10):0;if(s>1)for(var c=1;c<s;c++){var d=t.rowIndex+c;h(d,i,e,o),l(d,i,t,e,!0,n,!0)}var f=e.attributes.colSpan?parseInt(e.attributes.colSpan.value,10):0;if(f>1)for(var p=1;p<f;p++){var m=u(t.rowIndex,i+p);h(t.rowIndex,m,e,o),l(t.rowIndex,m,t,e,a,!0,!0)}}function h(t,e,i,n){t===r.rowPos&&r.colPos>=i.cellIndex&&i.cellIndex<=e&&!n&&r.colPos++}function f(e){switch(i){case t.where.Column:if(e.isColSpan)return t.resultAction.SubtractSpanCount;break;case t.where.Row:if(!e.isVirtual&&e.isRowSpan)return t.resultAction.AddCell;if(e.isRowSpan)return t.resultAction.SubtractSpanCount}return t.resultAction.RemoveCell}function p(e){switch(i){case t.where.Column:if(e.isColSpan)return t.resultAction.SumSpanCount;if(e.isRowSpan&&e.isVirtual)return t.resultAction.Ignore;break;case t.where.Row:if(e.isRowSpan)return t.resultAction.SumSpanCount;if(e.isColSpan&&e.isVirtual)return t.resultAction.Ignore}return t.resultAction.AddCell}this.getActionList=function(){for(var e=i===t.where.Row?r.rowPos:-1,a=i===t.where.Column?r.colPos:-1,l=0,u=!0;u;){var d=e>=0?e:l,h=a>=0?a:l,m=o[d];if(!m)return u=!1,s;var g=m[h];if(!g)return u=!1,s;var v=t.resultAction.Ignore;switch(n){case t.requestAction.Add:v=p(g);break;case t.requestAction.Delete:v=f(g)}s.push(c(g,v,d,h)),l++}return s},e&&e.tagName&&("td"===e.tagName.toLowerCase()||"th"===e.tagName.toLowerCase())&&(r.colPos=e.cellIndex,e.parentElement&&e.parentElement.tagName&&"tr"===e.parentElement.tagName.toLowerCase()&&(r.rowPos=e.parentElement.rowIndex)),function(){for(var t=a.rows,e=0;e<t.length;e++)for(var i=t[e].cells,n=0;n<i.length;n++)d(t[e],i[n])}()};Pt.where={Row:0,Column:1},Pt.requestAction={Add:0,Delete:1},Pt.resultAction={Ignore:0,SubtractSpanCount:1,RemoveCell:2,AddCell:3,SumSpanCount:4};var Yt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i,n;return e=t,(i=[{key:"tab",value:function(t,e){var i=pt.ancestor(t.commonAncestor(),pt.isCell),n=pt.ancestor(i,pt.isTable),a=pt.listDescendant(n,pt.isCell),r=w[e?"prev":"next"](a,i);r&&xt.create(r,0).select()}},{key:"addRow",value:function(t,e){for(var i=pt.ancestor(t.commonAncestor(),pt.isCell),n=a()(i).closest("tr"),r=this.recoverAttributes(n),o=a()("<tr"+r+"></tr>"),s=new Pt(i,Pt.where.Row,Pt.requestAction.Add,a()(n).closest("table")[0]).getActionList(),l=0;l<s.length;l++){var c=s[l],u=this.recoverAttributes(c.baseCell);switch(c.action){case Pt.resultAction.AddCell:o.append("<td"+u+">"+pt.blank+"</td>");break;case Pt.resultAction.SumSpanCount:if("top"===e&&(c.baseCell.parent?c.baseCell.closest("tr").rowIndex:0)<=n[0].rowIndex){var d=a()("<div></div>").append(a()("<td"+u+">"+pt.blank+"</td>").removeAttr("rowspan")).html();o.append(d);break}var h=parseInt(c.baseCell.rowSpan,10);h++,c.baseCell.setAttribute("rowSpan",h)}}if("top"===e)n.before(o);else{if(i.rowSpan>1){var f=n[0].rowIndex+(i.rowSpan-2);return void a()(a()(n).parent().find("tr")[f]).after(a()(o))}n.after(o)}}},{key:"addCol",value:function(t,e){var i=pt.ancestor(t.commonAncestor(),pt.isCell),n=a()(i).closest("tr");a()(n).siblings().push(n);for(var r=new Pt(i,Pt.where.Column,Pt.requestAction.Add,a()(n).closest("table")[0]).getActionList(),o=0;o<r.length;o++){var s=r[o],l=this.recoverAttributes(s.baseCell);switch(s.action){case Pt.resultAction.AddCell:"right"===e?a()(s.baseCell).after("<td"+l+">"+pt.blank+"</td>"):a()(s.baseCell).before("<td"+l+">"+pt.blank+"</td>");break;case Pt.resultAction.SumSpanCount:if("right"===e){var c=parseInt(s.baseCell.colSpan,10);c++,s.baseCell.setAttribute("colSpan",c)}else a()(s.baseCell).before("<td"+l+">"+pt.blank+"</td>")}}}},{key:"recoverAttributes",value:function(t){var e="";if(!t)return e;for(var i=t.attributes||[],n=0;n<i.length;n++)"id"!==i[n].name.toLowerCase()&&i[n].specified&&(e+=" "+i[n].name+"='"+i[n].value+"'");return e}},{key:"deleteRow",value:function(t){for(var e=pt.ancestor(t.commonAncestor(),pt.isCell),i=a()(e).closest("tr"),n=i.children("td, th").index(a()(e)),r=i[0].rowIndex,o=new Pt(e,Pt.where.Row,Pt.requestAction.Delete,a()(i).closest("table")[0]).getActionList(),s=0;s<o.length;s++)if(o[s]){var l=o[s].baseCell,c=o[s].virtualTable,u=l.rowSpan&&l.rowSpan>1,d=u?parseInt(l.rowSpan,10):0;switch(o[s].action){case Pt.resultAction.Ignore:continue;case Pt.resultAction.AddCell:var h=i.next("tr")[0];if(!h)continue;var f=i[0].cells[n];u&&(d>2?(d--,h.insertBefore(f,h.cells[n]),h.cells[n].setAttribute("rowSpan",d),h.cells[n].innerHTML=""):2===d&&(h.insertBefore(f,h.cells[n]),h.cells[n].removeAttribute("rowSpan"),h.cells[n].innerHTML=""));continue;case Pt.resultAction.SubtractSpanCount:u&&(d>2?(d--,l.setAttribute("rowSpan",d),c.rowIndex!==r&&l.cellIndex===n&&(l.innerHTML="")):2===d&&(l.removeAttribute("rowSpan"),c.rowIndex!==r&&l.cellIndex===n&&(l.innerHTML="")));continue;case Pt.resultAction.RemoveCell:continue}}i.remove()}},{key:"deleteCol",value:function(t){for(var e=pt.ancestor(t.commonAncestor(),pt.isCell),i=a()(e).closest("tr"),n=i.children("td, th").index(a()(e)),r=new Pt(e,Pt.where.Column,Pt.requestAction.Delete,a()(i).closest("table")[0]).getActionList(),o=0;o<r.length;o++)if(r[o])switch(r[o].action){case Pt.resultAction.Ignore:continue;case Pt.resultAction.SubtractSpanCount:var s=r[o].baseCell;if(s.colSpan&&s.colSpan>1){var l=s.colSpan?parseInt(s.colSpan,10):0;l>2?(l--,s.setAttribute("colSpan",l),s.cellIndex===n&&(s.innerHTML="")):2===l&&(s.removeAttribute("colSpan"),s.cellIndex===n&&(s.innerHTML=""))}continue;case Pt.resultAction.RemoveCell:pt.remove(r[o].baseCell,!0);continue}}},{key:"createTable",value:function(t,e,i){for(var n,r=[],o=0;o<t;o++)r.push("<td>"+pt.blank+"</td>");n=r.join("");for(var s,l=[],c=0;c<e;c++)l.push("<tr>"+n+"</tr>");s=l.join("");var u=a()("<table>"+s+"</table>");return i&&i.tableClassName&&u.addClass(i.tableClassName),u[0]}},{key:"deleteTable",value:function(t){var e=pt.ancestor(t.commonAncestor(),pt.isCell);a()(e).closest("table").remove()}}])&&Ot(e.prototype,i),n&&Ot(e,n),t}();function It(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Nt=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.editable=this.$editable[0],this.lastRange=null,this.snapshot=null,this.style=new Tt,this.table=new Yt,this.typing=new Et(e),this.bullet=new At,this.history=new Mt(e),this.context.memo("help.escape",this.lang.help.escape),this.context.memo("help.undo",this.lang.help.undo),this.context.memo("help.redo",this.lang.help.redo),this.context.memo("help.tab",this.lang.help.tab),this.context.memo("help.untab",this.lang.help.untab),this.context.memo("help.insertParagraph",this.lang.help.insertParagraph),this.context.memo("help.insertOrderedList",this.lang.help.insertOrderedList),this.context.memo("help.insertUnorderedList",this.lang.help.insertUnorderedList),this.context.memo("help.indent",this.lang.help.indent),this.context.memo("help.outdent",this.lang.help.outdent),this.context.memo("help.formatPara",this.lang.help.formatPara),this.context.memo("help.insertHorizontalRule",this.lang.help.insertHorizontalRule),this.context.memo("help.fontName",this.lang.help.fontName);for(var n=["bold","italic","underline","strikethrough","superscript","subscript","justifyLeft","justifyCenter","justifyRight","justifyFull","formatBlock","removeFormat","backColor"],r=0,o=n.length;r<o;r++)this[n[r]]=function(t){return function(e){i.beforeCommand(),document.execCommand(t,!1,e),i.afterCommand(!0)}}(n[r]),this.context.memo("help."+n[r],this.lang.help[n[r]]);this.fontName=this.wrapCommand((function(t){return i.fontStyling("font-family",m.validFontName(t))})),this.fontSize=this.wrapCommand((function(t){var e=i.currentStyle()["font-size-unit"];return i.fontStyling("font-size",t+e)})),this.fontSizeUnit=this.wrapCommand((function(t){var e=i.currentStyle()["font-size"];return i.fontStyling("font-size",e+t)}));for(var s=1;s<=6;s++)this["formatH"+s]=function(t){return function(){i.formatBlock("H"+t)}}(s),this.context.memo("help.formatH"+s,this.lang.help["formatH"+s]);this.insertParagraph=this.wrapCommand((function(){i.typing.insertParagraph(i.editable)})),this.insertOrderedList=this.wrapCommand((function(){i.bullet.insertOrderedList(i.editable)})),this.insertUnorderedList=this.wrapCommand((function(){i.bullet.insertUnorderedList(i.editable)})),this.indent=this.wrapCommand((function(){i.bullet.indent(i.editable)})),this.outdent=this.wrapCommand((function(){i.bullet.outdent(i.editable)})),this.insertNode=this.wrapCommand((function(t){i.isLimited(a()(t).text().length)||(i.getLastRange().insertNode(t),i.setLastRange(xt.createFromNodeAfter(t).select()))})),this.insertText=this.wrapCommand((function(t){if(!i.isLimited(t.length)){var e=i.getLastRange().insertNode(pt.createText(t));i.setLastRange(xt.create(e,pt.nodeLength(e)).select())}})),this.pasteHTML=this.wrapCommand((function(t){if(!i.isLimited(t.length)){t=i.context.invoke("codeview.purify",t);var e=i.getLastRange().pasteHTML(t);i.setLastRange(xt.createFromNodeAfter(w.last(e)).select())}})),this.formatBlock=this.wrapCommand((function(t,e){var n=i.options.callbacks.onApplyCustomStyle;n?n.call(i,e,i.context,i.onFormatBlock):i.onFormatBlock(t,e)})),this.insertHorizontalRule=this.wrapCommand((function(){var t=i.getLastRange().insertNode(pt.create("HR"));t.nextSibling&&i.setLastRange(xt.create(t.nextSibling,0).normalize().select())})),this.lineHeight=this.wrapCommand((function(t){i.style.stylePara(i.getLastRange(),{lineHeight:t})})),this.createLink=this.wrapCommand((function(t){var e=t.url,n=t.text,r=t.isNewWindow,o=t.checkProtocol,s=t.range||i.getLastRange(),l=n.length-s.toString().length;if(!(l>0&&i.isLimited(l))){var c=s.toString()!==n;"string"==typeof e&&(e=e.trim()),i.options.onCreateLink?e=i.options.onCreateLink(e):o&&(e=/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/.test(e)?e:i.options.defaultProtocol+e);var u=[];if(c){var d=(s=s.deleteContents()).insertNode(a()("<A>"+n+"</A>")[0]);u.push(d)}else u=i.style.styleNodes(s,{nodeName:"A",expandClosestSibling:!0,onlyPartialContains:!0});a.a.each(u,(function(t,i){a()(i).attr("href",e),r?a()(i).attr("target","_blank"):a()(i).removeAttr("target")})),i.setLastRange(i.createRangeFromList(u).select())}})),this.color=this.wrapCommand((function(t){var e=t.foreColor,i=t.backColor;e&&document.execCommand("foreColor",!1,e),i&&document.execCommand("backColor",!1,i)})),this.foreColor=this.wrapCommand((function(t){document.execCommand("foreColor",!1,t)})),this.insertTable=this.wrapCommand((function(t){var e=t.split("x");i.getLastRange().deleteContents().insertNode(i.table.createTable(e[0],e[1],i.options))})),this.removeMedia=this.wrapCommand((function(){var t=a()(i.restoreTarget()).parent();t.closest("figure").length?t.closest("figure").remove():t=a()(i.restoreTarget()).detach(),i.context.triggerEvent("media.delete",t,i.$editable)})),this.floatMe=this.wrapCommand((function(t){var e=a()(i.restoreTarget());e.toggleClass("note-float-left","left"===t),e.toggleClass("note-float-right","right"===t),e.css("float","none"===t?"":t)})),this.resize=this.wrapCommand((function(t){var e=a()(i.restoreTarget());0===(t=parseFloat(t))?e.css("width",""):e.css({width:100*t+"%",height:""})}))}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t=this;this.$editable.on("keydown",(function(e){if(e.keyCode===kt.code.ENTER&&t.context.triggerEvent("enter",e),t.context.triggerEvent("keydown",e),t.snapshot=t.history.makeSnapshot(),t.hasKeyShortCut=!1,e.isDefaultPrevented()||(t.options.shortcuts?t.hasKeyShortCut=t.handleKeyMap(e):t.preventDefaultEditableShortCuts(e)),t.isLimited(1,e)){var i=t.getLastRange();if(i.eo-i.so==0)return!1}t.setLastRange(),t.options.recordEveryKeystroke&&!1===t.hasKeyShortCut&&t.history.recordUndo()})).on("keyup",(function(e){t.setLastRange(),t.context.triggerEvent("keyup",e)})).on("focus",(function(e){t.setLastRange(),t.context.triggerEvent("focus",e)})).on("blur",(function(e){t.context.triggerEvent("blur",e)})).on("mousedown",(function(e){t.context.triggerEvent("mousedown",e)})).on("mouseup",(function(e){t.setLastRange(),t.history.recordUndo(),t.context.triggerEvent("mouseup",e)})).on("scroll",(function(e){t.context.triggerEvent("scroll",e)})).on("paste",(function(e){t.setLastRange(),t.context.triggerEvent("paste",e)})).on("input",(function(){t.isLimited(0)&&t.snapshot&&t.history.applySnapshot(t.snapshot)})),this.$editable.attr("spellcheck",this.options.spellCheck),this.$editable.attr("autocorrect",this.options.spellCheck),this.options.disableGrammar&&this.$editable.attr("data-gramm",!1),this.$editable.html(pt.html(this.$note)||pt.emptyPara),this.$editable.on(m.inputEventName,v.debounce((function(){t.context.triggerEvent("change",t.$editable.html(),t.$editable)}),10)),this.$editable.on("focusin",(function(e){t.context.triggerEvent("focusin",e)})).on("focusout",(function(e){t.context.triggerEvent("focusout",e)})),this.options.airMode?this.options.overrideContextMenu&&this.$editor.on("contextmenu",(function(e){return t.context.triggerEvent("contextmenu",e),!1})):(this.options.width&&this.$editor.outerWidth(this.options.width),this.options.height&&this.$editable.outerHeight(this.options.height),this.options.maxHeight&&this.$editable.css("max-height",this.options.maxHeight),this.options.minHeight&&this.$editable.css("min-height",this.options.minHeight)),this.history.recordUndo(),this.setLastRange()}},{key:"destroy",value:function(){this.$editable.off()}},{key:"handleKeyMap",value:function(t){var e=this.options.keyMap[m.isMac?"mac":"pc"],i=[];t.metaKey&&i.push("CMD"),t.ctrlKey&&!t.altKey&&i.push("CTRL"),t.shiftKey&&i.push("SHIFT");var n=kt.nameFromCode[t.keyCode];n&&i.push(n);var a=e[i.join("+")];if("TAB"!==n||this.options.tabDisable)if(a){if(!1!==this.context.invoke(a))return t.preventDefault(),!0}else kt.isEdit(t.keyCode)&&this.afterCommand();else this.afterCommand();return!1}},{key:"preventDefaultEditableShortCuts",value:function(t){(t.ctrlKey||t.metaKey)&&w.contains([66,73,85],t.keyCode)&&t.preventDefault()}},{key:"isLimited",value:function(t,e){return t=t||0,(void 0===e||!(kt.isMove(e.keyCode)||kt.isNavigation(e.keyCode)||e.ctrlKey||e.metaKey||w.contains([kt.code.BACKSPACE,kt.code.DELETE],e.keyCode)))&&this.options.maxTextLength>0&&this.$editable.text().length+t>this.options.maxTextLength}},{key:"createRange",value:function(){return this.focus(),this.setLastRange(),this.getLastRange()}},{key:"createRangeFromList",value:function(t){var e=xt.createFromNodeBefore(w.head(t)).getStartPoint(),i=xt.createFromNodeAfter(w.last(t)).getEndPoint();return xt.create(e.node,e.offset,i.node,i.offset)}},{key:"setLastRange",value:function(t){t?this.lastRange=t:(this.lastRange=xt.create(this.editable),0===a()(this.lastRange.sc).closest(".note-editable").length&&(this.lastRange=xt.createFromBodyElement(this.editable)))}},{key:"getLastRange",value:function(){return this.lastRange||this.setLastRange(),this.lastRange}},{key:"saveRange",value:function(t){t&&this.getLastRange().collapse().select()}},{key:"restoreRange",value:function(){this.lastRange&&(this.lastRange.select(),this.focus())}},{key:"saveTarget",value:function(t){this.$editable.data("target",t)}},{key:"clearTarget",value:function(){this.$editable.removeData("target")}},{key:"restoreTarget",value:function(){return this.$editable.data("target")}},{key:"currentStyle",value:function(){var t=xt.create();return t&&(t=t.normalize()),t?this.style.current(t):this.style.fromNode(this.$editable)}},{key:"styleFromNode",value:function(t){return this.style.fromNode(t)}},{key:"undo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.undo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"commit",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.commit(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"redo",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.redo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"beforeCommand",value:function(){this.context.triggerEvent("before.command",this.$editable.html()),document.execCommand("styleWithCSS",!1,this.options.styleWithCSS),this.focus()}},{key:"afterCommand",value:function(t){this.normalizeContent(),this.history.recordUndo(),t||this.context.triggerEvent("change",this.$editable.html(),this.$editable)}},{key:"tab",value:function(){var t=this.getLastRange();if(t.isCollapsed()&&t.isOnCell())this.table.tab(t);else{if(0===this.options.tabSize)return!1;this.isLimited(this.options.tabSize)||(this.beforeCommand(),this.typing.insertTab(t,this.options.tabSize),this.afterCommand())}}},{key:"untab",value:function(){var t=this.getLastRange();if(t.isCollapsed()&&t.isOnCell())this.table.tab(t,!0);else if(0===this.options.tabSize)return!1}},{key:"wrapCommand",value:function(t){return function(){this.beforeCommand(),t.apply(this,arguments),this.afterCommand()}}},{key:"insertImage",value:function(t,e){var i,n=this;return(i=t,a.a.Deferred((function(t){var e=a()("<img>");e.one("load",(function(){e.off("error abort"),t.resolve(e)})).one("error abort",(function(){e.off("load").detach(),t.reject(e)})).css({display:"none"}).appendTo(document.body).attr("src",i)})).promise()).then((function(t){n.beforeCommand(),"function"==typeof e?e(t):("string"==typeof e&&t.attr("data-filename",e),t.css("width",Math.min(n.$editable.width(),t.width()))),t.show(),n.getLastRange().insertNode(t[0]),n.setLastRange(xt.createFromNodeAfter(t[0]).select()),n.afterCommand()})).fail((function(t){n.context.triggerEvent("image.upload.error",t)}))}},{key:"insertImagesAsDataURL",value:function(t){var e=this;a.a.each(t,(function(t,i){var n=i.name;e.options.maximumImageFileSize&&e.options.maximumImageFileSize<i.size?e.context.triggerEvent("image.upload.error",e.lang.image.maximumFileSizeError):function(t){return a.a.Deferred((function(e){a.a.extend(new FileReader,{onload:function(t){var i=t.target.result;e.resolve(i)},onerror:function(t){e.reject(t)}}).readAsDataURL(t)})).promise()}(i).then((function(t){return e.insertImage(t,n)})).fail((function(){e.context.triggerEvent("image.upload.error")}))}))}},{key:"insertImagesOrCallback",value:function(t){this.options.callbacks.onImageUpload?this.context.triggerEvent("image.upload",t):this.insertImagesAsDataURL(t)}},{key:"getSelectedText",value:function(){var t=this.getLastRange();return t.isOnAnchor()&&(t=xt.createFromNode(pt.ancestor(t.sc,pt.isAnchor))),t.toString()}},{key:"onFormatBlock",value:function(t,e){if(document.execCommand("FormatBlock",!1,m.isMSIE?"<"+t+">":t),e&&e.length&&(e[0].tagName.toUpperCase()!==t.toUpperCase()&&(e=e.find(t)),e&&e.length)){var i=e[0].className||"";if(i){var n=this.createRange();a()([n.sc,n.ec]).closest(t).addClass(i)}}}},{key:"formatPara",value:function(){this.formatBlock("P")}},{key:"fontStyling",value:function(t,e){var i=this.getLastRange();if(""!==i){var n=this.style.styleNodes(i);if(this.$editor.find(".note-status-output").html(""),a()(n).css(t,e),i.isCollapsed()){var r=w.head(n);r&&!pt.nodeLength(r)&&(r.innerHTML=pt.ZERO_WIDTH_NBSP_CHAR,xt.createFromNode(r.firstChild).select(),this.setLastRange(),this.$editable.data("bogus",r))}else this.setLastRange(this.createRangeFromList(n).select())}else{var o=a.a.now();this.$editor.find(".note-status-output").html('<div id="note-status-output-'+o+'" class="alert alert-info">'+this.lang.output.noSelection+"</div>"),setTimeout((function(){a()("#note-status-output-"+o).remove()}),5e3)}}},{key:"unlink",value:function(){var t=this.getLastRange();if(t.isOnAnchor()){var e=pt.ancestor(t.sc,pt.isAnchor);(t=xt.createFromNode(e)).select(),this.setLastRange(),this.beforeCommand(),document.execCommand("unlink"),this.afterCommand()}}},{key:"getLinkInfo",value:function(){var t=this.getLastRange().expand(pt.isAnchor),e=a()(w.head(t.nodes(pt.isAnchor))),i={range:t,text:t.toString(),url:e.length?e.attr("href"):""};return e.length&&(i.isNewWindow="_blank"===e.attr("target")),i}},{key:"addRow",value:function(t){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.addRow(e,t),this.afterCommand())}},{key:"addCol",value:function(t){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.addCol(e,t),this.afterCommand())}},{key:"deleteRow",value:function(){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.deleteRow(t),this.afterCommand())}},{key:"deleteCol",value:function(){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.deleteCol(t),this.afterCommand())}},{key:"deleteTable",value:function(){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.deleteTable(t),this.afterCommand())}},{key:"resizeTo",value:function(t,e,i){var n;if(i){var a=t.y/t.x,r=e.data("ratio");n={width:r>a?t.x:t.y/r,height:r>a?t.x*r:t.y}}else n={width:t.x,height:t.y};e.css(n)}},{key:"hasFocus",value:function(){return this.$editable.is(":focus")}},{key:"focus",value:function(){this.hasFocus()||this.$editable.focus()}},{key:"isEmpty",value:function(){return pt.isEmpty(this.$editable[0])||pt.emptyPara===this.$editable.html()}},{key:"empty",value:function(){this.context.invoke("code",pt.emptyPara)}},{key:"normalizeContent",value:function(){this.$editable[0].normalize()}}])&&It(e.prototype,i),n&&It(e,n),t}();function Ht(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var jt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$editable=e.layoutInfo.editable}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){this.$editable.on("paste",this.pasteByEvent.bind(this))}},{key:"pasteByEvent",value:function(t){var e=this,i=t.originalEvent.clipboardData;if(i&&i.items&&i.items.length){var n=i.items.length>1?i.items[1]:w.head(i.items);"file"===n.kind&&-1!==n.type.indexOf("image/")?(this.context.invoke("editor.insertImagesOrCallback",[n.getAsFile()]),t.preventDefault()):"string"===n.kind&&this.context.invoke("editor.isLimited",i.getData("Text").length)&&t.preventDefault()}else if(window.clipboardData){var a=window.clipboardData.getData("text");this.context.invoke("editor.isLimited",a.length)&&t.preventDefault()}setTimeout((function(){e.context.invoke("editor.afterCommand")}),10)}}])&&Ht(e.prototype,i),n&&Ht(e,n),t}();function Ft(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Rt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$eventListener=a()(document),this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.options=e.options,this.lang=this.options.langInfo,this.documentEventHandlers={},this.$dropzone=a()(['<div class="note-dropzone">','<div class="note-dropzone-message"></div>',"</div>"].join("")).prependTo(this.$editor)}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){this.options.disableDragAndDrop?(this.documentEventHandlers.onDrop=function(t){t.preventDefault()},this.$eventListener=this.$dropzone,this.$eventListener.on("drop",this.documentEventHandlers.onDrop)):this.attachDragAndDropEvent()}},{key:"attachDragAndDropEvent",value:function(){var t=this,e=a()(),i=this.$dropzone.find(".note-dropzone-message");this.documentEventHandlers.onDragenter=function(n){var a=t.context.invoke("codeview.isActivated"),r=t.$editor.width()>0&&t.$editor.height()>0;a||e.length||!r||(t.$editor.addClass("dragover"),t.$dropzone.width(t.$editor.width()),t.$dropzone.height(t.$editor.height()),i.text(t.lang.image.dragImageHere)),e=e.add(n.target)},this.documentEventHandlers.onDragleave=function(i){(e=e.not(i.target)).length&&"BODY"!==i.target.nodeName||(e=a()(),t.$editor.removeClass("dragover"))},this.documentEventHandlers.onDrop=function(){e=a()(),t.$editor.removeClass("dragover")},this.$eventListener.on("dragenter",this.documentEventHandlers.onDragenter).on("dragleave",this.documentEventHandlers.onDragleave).on("drop",this.documentEventHandlers.onDrop),this.$dropzone.on("dragenter",(function(){t.$dropzone.addClass("hover"),i.text(t.lang.image.dropImage)})).on("dragleave",(function(){t.$dropzone.removeClass("hover"),i.text(t.lang.image.dragImageHere)})),this.$dropzone.on("drop",(function(e){var i=e.originalEvent.dataTransfer;e.preventDefault(),i&&i.files&&i.files.length?(t.$editable.focus(),t.context.invoke("editor.insertImagesOrCallback",i.files)):a.a.each(i.types,(function(e,n){if(!(n.toLowerCase().indexOf("_moz_")>-1)){var r=i.getData(n);n.toLowerCase().indexOf("text")>-1?t.context.invoke("editor.pasteHTML",r):a()(r).each((function(e,i){t.context.invoke("editor.insertNode",i)}))}}))})).on("dragover",!1)}},{key:"destroy",value:function(){var t=this;Object.keys(this.documentEventHandlers).forEach((function(e){t.$eventListener.off(e.substr(2).toLowerCase(),t.documentEventHandlers[e])})),this.documentEventHandlers={}}}])&&Ft(e.prototype,i),n&&Ft(e,n),t}();function zt(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,e){if(!t)return;if("string"==typeof t)return $t(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return $t(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,r=!0,o=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){o=!0,a=t},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw a}}}}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Bt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Wt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options,this.CodeMirrorConstructor=window.CodeMirror,this.options.codemirror.CodeMirrorConstructor&&(this.CodeMirrorConstructor=this.options.codemirror.CodeMirrorConstructor)}var e,i,n;return e=t,(i=[{key:"sync",value:function(t){var e=this.isActivated(),i=this.CodeMirrorConstructor;e&&(t?i?this.$codable.data("cmEditor").getDoc().setValue(t):this.$codable.val(t):i&&this.$codable.data("cmEditor").save())}},{key:"initialize",value:function(){var t=this;this.$codable.on("keyup",(function(e){e.keyCode===kt.code.ESCAPE&&t.deactivate()}))}},{key:"isActivated",value:function(){return this.$editor.hasClass("codeview")}},{key:"toggle",value:function(){this.isActivated()?this.deactivate():this.activate(),this.context.triggerEvent("codeview.toggled")}},{key:"purify",value:function(t){if(this.options.codeviewFilter&&(t=t.replace(this.options.codeviewFilterRegex,""),this.options.codeviewIframeFilter)){var e=this.options.codeviewIframeWhitelistSrc.concat(this.options.codeviewIframeWhitelistSrcBase);t=t.replace(/(<iframe.*?>.*?(?:<\/iframe>)?)/gi,(function(t){if(/<.+src(?==?('|"|\s)?)[\s\S]+src(?=('|"|\s)?)[^>]*?>/i.test(t))return"";var i,n=zt(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;if(new RegExp('src="(https?:)?//'+a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+'/(.+)"').test(t))return t}}catch(t){n.e(t)}finally{n.f()}return""}))}return t}},{key:"activate",value:function(){var t=this,e=this.CodeMirrorConstructor;if(this.$codable.val(pt.html(this.$editable,this.options.prettifyHtml)),this.$codable.height(this.$editable.height()),this.context.invoke("toolbar.updateCodeview",!0),this.context.invoke("airPopover.updateCodeview",!0),this.$editor.addClass("codeview"),this.$codable.focus(),e){var i=e.fromTextArea(this.$codable[0],this.options.codemirror);if(this.options.codemirror.tern){var n=new e.TernServer(this.options.codemirror.tern);i.ternServer=n,i.on("cursorActivity",(function(t){n.updateArgHints(t)}))}i.on("blur",(function(e){t.context.triggerEvent("blur.codeview",i.getValue(),e)})),i.on("change",(function(){t.context.triggerEvent("change.codeview",i.getValue(),i)})),i.setSize(null,this.$editable.outerHeight()),this.$codable.data("cmEditor",i)}else this.$codable.on("blur",(function(e){t.context.triggerEvent("blur.codeview",t.$codable.val(),e)})),this.$codable.on("input",(function(){t.context.triggerEvent("change.codeview",t.$codable.val(),t.$codable)}))}},{key:"deactivate",value:function(){if(this.CodeMirrorConstructor){var t=this.$codable.data("cmEditor");this.$codable.val(t.getValue()),t.toTextArea()}var e=this.purify(pt.value(this.$codable,this.options.prettifyHtml)||pt.emptyPara),i=this.$editable.html()!==e;this.$editable.html(e),this.$editable.height(this.options.height?this.$codable.height():"auto"),this.$editor.removeClass("codeview"),i&&this.context.triggerEvent("change",this.$editable.html(),this.$editable),this.$editable.focus(),this.context.invoke("toolbar.updateCodeview",!1),this.context.invoke("airPopover.updateCodeview",!1)}},{key:"destroy",value:function(){this.isActivated()&&this.deactivate()}}])&&Bt(e.prototype,i),n&&Bt(e,n),t}();function Vt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var qt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$document=a()(document),this.$statusbar=e.layoutInfo.statusbar,this.$editable=e.layoutInfo.editable,this.options=e.options}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t=this;this.options.airMode||this.options.disableResizeEditor?this.destroy():this.$statusbar.on("mousedown",(function(e){e.preventDefault(),e.stopPropagation();var i=t.$editable.offset().top-t.$document.scrollTop(),n=function(e){var n=e.clientY-(i+24);n=t.options.minheight>0?Math.max(n,t.options.minheight):n,n=t.options.maxHeight>0?Math.min(n,t.options.maxHeight):n,t.$editable.height(n)};t.$document.on("mousemove",n).one("mouseup",(function(){t.$document.off("mousemove",n)}))}))}},{key:"destroy",value:function(){this.$statusbar.off(),this.$statusbar.addClass("locked")}}])&&Vt(e.prototype,i),n&&Vt(e,n),t}();function Ut(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Xt=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.$window=a()(window),this.$scrollbar=a()("html, body"),this.onResize=function(){i.resizeTo({h:i.$window.height()-i.$toolbar.outerHeight()})}}var e,i,n;return e=t,(i=[{key:"resizeTo",value:function(t){this.$editable.css("height",t.h),this.$codable.css("height",t.h),this.$codable.data("cmeditor")&&this.$codable.data("cmeditor").setsize(null,t.h)}},{key:"toggle",value:function(){this.$editor.toggleClass("fullscreen"),this.isFullscreen()?(this.$editable.data("orgHeight",this.$editable.css("height")),this.$editable.data("orgMaxHeight",this.$editable.css("maxHeight")),this.$editable.css("maxHeight",""),this.$window.on("resize",this.onResize).trigger("resize"),this.$scrollbar.css("overflow","hidden")):(this.$window.off("resize",this.onResize),this.resizeTo({h:this.$editable.data("orgHeight")}),this.$editable.css("maxHeight",this.$editable.css("orgMaxHeight")),this.$scrollbar.css("overflow","visible")),this.context.invoke("toolbar.updateFullscreen",this.isFullscreen())}},{key:"isFullscreen",value:function(){return this.$editor.hasClass("fullscreen")}}])&&Ut(e.prototype,i),n&&Ut(e,n),t}();function Gt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Kt=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$document=a()(document),this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,this.lang=this.options.langInfo,this.events={"summernote.mousedown":function(t,e){i.update(e.target,e)&&e.preventDefault()},"summernote.keyup summernote.scroll summernote.change summernote.dialog.shown":function(){i.update()},"summernote.disable summernote.blur":function(){i.hide()},"summernote.codeview.toggled":function(){i.update()}}}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t=this;this.$handle=a()(['<div class="note-handle">','<div class="note-control-selection">','<div class="note-control-selection-bg"></div>','<div class="note-control-holder note-control-nw"></div>','<div class="note-control-holder note-control-ne"></div>','<div class="note-control-holder note-control-sw"></div>','<div class="',this.options.disableResizeImage?"note-control-holder":"note-control-sizing",' note-control-se"></div>',this.options.disableResizeImage?"":'<div class="note-control-selection-info"></div>',"</div>","</div>"].join("")).prependTo(this.$editingArea),this.$handle.on("mousedown",(function(e){if(pt.isControlSizing(e.target)){e.preventDefault(),e.stopPropagation();var i=t.$handle.find(".note-control-selection").data("target"),n=i.offset(),a=t.$document.scrollTop(),r=function(e){t.context.invoke("editor.resizeTo",{x:e.clientX-n.left,y:e.clientY-(n.top-a)},i,!e.shiftKey),t.update(i[0],e)};t.$document.on("mousemove",r).one("mouseup",(function(e){e.preventDefault(),t.$document.off("mousemove",r),t.context.invoke("editor.afterCommand")})),i.data("ratio")||i.data("ratio",i.height()/i.width())}})),this.$handle.on("wheel",(function(e){e.preventDefault(),t.update()}))}},{key:"destroy",value:function(){this.$handle.remove()}},{key:"update",value:function(t,e){if(this.context.isDisabled())return!1;var i=pt.isImg(t),n=this.$handle.find(".note-control-selection");if(this.context.invoke("imagePopover.update",t,e),i){var r=a()(t),o=r.position(),s={left:o.left+parseInt(r.css("marginLeft"),10),top:o.top+parseInt(r.css("marginTop"),10)},l={w:r.outerWidth(!1),h:r.outerHeight(!1)};n.css({display:"block",left:s.left,top:s.top,width:l.w,height:l.h}).data("target",r);var c=new Image;c.src=r.attr("src");var u=l.w+"x"+l.h+" ("+this.lang.image.original+": "+c.width+"x"+c.height+")";n.find(".note-control-selection-info").text(u),this.context.invoke("editor.saveTarget",t)}else this.hide();return i}},{key:"hide",value:function(){this.context.invoke("editor.clearTarget"),this.$handle.children().hide()}}])&&Gt(e.prototype,i),n&&Gt(e,n),t}();function Zt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Jt=/^([A-Za-z][A-Za-z0-9+-.]*\:[\/]{2}|tel:|mailto:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i,Qt=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.options=e.options,this.events={"summernote.keyup":function(t,e){e.isDefaultPrevented()||i.handleKeyup(e)},"summernote.keydown":function(t,e){i.handleKeydown(e)}}}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){this.lastWordRange=null}},{key:"destroy",value:function(){this.lastWordRange=null}},{key:"replace",value:function(){if(this.lastWordRange){var t=this.lastWordRange.toString(),e=t.match(Jt);if(e&&(e[1]||e[2])){var i=e[1]?t:"http://"+t,n=this.options.showDomainOnlyForAutolink?t.replace(/^(?:https?:\/\/)?(?:tel?:?)?(?:mailto?:?)?(?:www\.)?/i,"").split("/")[0]:t,r=a()("<a />").html(n).attr("href",i)[0];this.context.options.linkTargetBlank&&a()(r).attr("target","_blank"),this.lastWordRange.insertNode(r),this.lastWordRange=null,this.context.invoke("editor.focus")}}}},{key:"handleKeydown",value:function(t){if(w.contains([kt.code.ENTER,kt.code.SPACE],t.keyCode)){var e=this.context.invoke("editor.createRange").getWordRange();this.lastWordRange=e}}},{key:"handleKeyup",value:function(t){w.contains([kt.code.ENTER,kt.code.SPACE],t.keyCode)&&this.replace()}}])&&Zt(e.prototype,i),n&&Zt(e,n),t}();function te(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ee=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$note=e.layoutInfo.note,this.events={"summernote.change":function(){i.$note.val(e.invoke("code"))}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return pt.isTextarea(this.$note[0])}}])&&te(e.prototype,i),n&&te(e,n),t}();function ie(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ne=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.options=e.options.replace||{},this.keys=[kt.code.ENTER,kt.code.SPACE,kt.code.PERIOD,kt.code.COMMA,kt.code.SEMICOLON,kt.code.SLASH],this.previousKeydownCode=null,this.events={"summernote.keyup":function(t,e){e.isDefaultPrevented()||i.handleKeyup(e)},"summernote.keydown":function(t,e){i.handleKeydown(e)}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return!!this.options.match}},{key:"initialize",value:function(){this.lastWord=null}},{key:"destroy",value:function(){this.lastWord=null}},{key:"replace",value:function(){if(this.lastWord){var t=this,e=this.lastWord.toString();this.options.match(e,(function(e){if(e){var i="";if("string"==typeof e?i=pt.createText(e):e instanceof jQuery?i=e[0]:e instanceof Node&&(i=e),!i)return;t.lastWord.insertNode(i),t.lastWord=null,t.context.invoke("editor.focus")}}))}}},{key:"handleKeydown",value:function(t){if(this.previousKeydownCode&&w.contains(this.keys,this.previousKeydownCode))this.previousKeydownCode=t.keyCode;else{if(w.contains(this.keys,t.keyCode)){var e=this.context.invoke("editor.createRange").getWordRange();this.lastWord=e}this.previousKeydownCode=t.keyCode}}},{key:"handleKeyup",value:function(t){w.contains(this.keys,t.keyCode)&&this.replace()}}])&&ie(e.prototype,i),n&&ie(e,n),t}();function ae(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var re=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,!0===this.options.inheritPlaceholder&&(this.options.placeholder=this.context.$note.attr("placeholder")||this.options.placeholder),this.events={"summernote.init summernote.change":function(){i.update()},"summernote.codeview.toggled":function(){i.update()}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return!!this.options.placeholder}},{key:"initialize",value:function(){var t=this;this.$placeholder=a()('<div class="note-placeholder">'),this.$placeholder.on("click",(function(){t.context.invoke("focus")})).html(this.options.placeholder).prependTo(this.$editingArea),this.update()}},{key:"destroy",value:function(){this.$placeholder.remove()}},{key:"update",value:function(){var t=!this.context.invoke("codeview.isActivated")&&this.context.invoke("editor.isEmpty");this.$placeholder.toggle(t)}}])&&ae(e.prototype,i),n&&ae(e,n),t}();function oe(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var se=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ui=a.a.summernote.ui,this.context=e,this.$toolbar=e.layoutInfo.toolbar,this.options=e.options,this.lang=this.options.langInfo,this.invertedKeyMap=v.invertObject(this.options.keyMap[m.isMac?"mac":"pc"])}var e,i,n;return e=t,(i=[{key:"representShortcut",value:function(t){var e=this.invertedKeyMap[t];return this.options.shortcuts&&e?(m.isMac&&(e=e.replace("CMD","⌘").replace("SHIFT","⇧"))," ("+(e=e.replace("BACKSLASH","\\").replace("SLASH","/").replace("LEFTBRACKET","[").replace("RIGHTBRACKET","]"))+")"):""}},{key:"button",value:function(t){return!this.options.tooltip&&t.tooltip&&delete t.tooltip,t.container=this.options.container,this.ui.button(t)}},{key:"initialize",value:function(){this.addToolbarButtons(),this.addImagePopoverButtons(),this.addLinkPopoverButtons(),this.addTablePopoverButtons(),this.fontInstalledMap={}}},{key:"destroy",value:function(){delete this.fontInstalledMap}},{key:"isFontInstalled",value:function(t){return Object.prototype.hasOwnProperty.call(this.fontInstalledMap,t)||(this.fontInstalledMap[t]=m.isFontInstalled(t)||w.contains(this.options.fontNamesIgnoreCheck,t)),this.fontInstalledMap[t]}},{key:"isFontDeservedToAdd",value:function(t){return""!==(t=t.toLowerCase())&&this.isFontInstalled(t)&&-1===m.genericFontFamilies.indexOf(t)}},{key:"colorPalette",value:function(t,e,i,n){var r=this;return this.ui.buttonGroup({className:"note-color "+t,children:[this.button({className:"note-current-color-button",contents:this.ui.icon(this.options.icons.font+" note-recent-color"),tooltip:e,click:function(t){var e=a()(t.currentTarget);i&&n?r.context.invoke("editor.color",{backColor:e.attr("data-backColor"),foreColor:e.attr("data-foreColor")}):i?r.context.invoke("editor.color",{backColor:e.attr("data-backColor")}):n&&r.context.invoke("editor.color",{foreColor:e.attr("data-foreColor")})},callback:function(t){var e=t.find(".note-recent-color");i&&(e.css("background-color",r.options.colorButton.backColor),t.attr("data-backColor",r.options.colorButton.backColor)),n?(e.css("color",r.options.colorButton.foreColor),t.attr("data-foreColor",r.options.colorButton.foreColor)):e.css("color","transparent")}}),this.button({className:"dropdown-toggle",contents:this.ui.dropdownButtonContents("",this.options),tooltip:this.lang.color.more,data:{toggle:"dropdown"}}),this.ui.dropdown({items:(i?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.background+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="backColor" data-value="transparent">',this.lang.color.transparent,"</button>","</div>",'<div class="note-holder" data-event="backColor">\x3c!-- back colors --\x3e</div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="backColorPicker">',this.lang.color.cpSelect,"</button>",'<input type="color" id="backColorPicker" class="note-btn note-color-select-btn" value="'+this.options.colorButton.backColor+'" data-event="backColorPalette">',"</div>",'<div class="note-holder-custom" id="backColorPalette" data-event="backColor"></div>',"</div>"].join(""):"")+(n?['<div class="note-palette">','<div class="note-palette-title">'+this.lang.color.foreground+"</div>","<div>",'<button type="button" class="note-color-reset btn btn-light btn-default" data-event="removeFormat" data-value="foreColor">',this.lang.color.resetToDefault,"</button>","</div>",'<div class="note-holder" data-event="foreColor">\x3c!-- fore colors --\x3e</div>',"<div>",'<button type="button" class="note-color-select btn btn-light btn-default" data-event="openPalette" data-value="foreColorPicker">',this.lang.color.cpSelect,"</button>",'<input type="color" id="foreColorPicker" class="note-btn note-color-select-btn" value="'+this.options.colorButton.foreColor+'" data-event="foreColorPalette">',"</div>",'<div class="note-holder-custom" id="foreColorPalette" data-event="foreColor"></div>',"</div>"].join(""):""),callback:function(t){t.find(".note-holder").each((function(t,e){var i=a()(e);i.append(r.ui.palette({colors:r.options.colors,colorsName:r.options.colorsName,eventName:i.data("event"),container:r.options.container,tooltip:r.options.tooltip}).render())}));var e=[["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"]];t.find(".note-holder-custom").each((function(t,i){var n=a()(i);n.append(r.ui.palette({colors:e,colorsName:e,eventName:n.data("event"),container:r.options.container,tooltip:r.options.tooltip}).render())})),t.find("input[type=color]").each((function(e,i){a()(i).change((function(){var e=t.find("#"+a()(this).data("event")).find(".note-color-btn").first(),i=this.value.toUpperCase();e.css("background-color",i).attr("aria-label",i).attr("data-value",i).attr("data-original-title",i),e.click()}))}))},click:function(e){e.stopPropagation();var i=a()("."+t).find(".note-dropdown-menu"),n=a()(e.target),o=n.data("event"),s=n.attr("data-value");if("openPalette"===o){var l=i.find("#"+s),c=a()(i.find("#"+l.data("event")).find(".note-color-row")[0]),u=c.find(".note-color-btn").last().detach(),d=l.val();u.css("background-color",d).attr("aria-label",d).attr("data-value",d).attr("data-original-title",d),c.prepend(u),l.click()}else{if(w.contains(["backColor","foreColor"],o)){var h="backColor"===o?"background-color":"color",f=n.closest(".note-color").find(".note-recent-color"),p=n.closest(".note-color").find(".note-current-color-button");f.css(h,s),p.attr("data-"+o,s)}r.context.invoke("editor."+o,s)}}})]}).render()}},{key:"addToolbarButtons",value:function(){var t=this;this.context.memo("button.style",(function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.magic),t.options),tooltip:t.lang.style.style,data:{toggle:"dropdown"}}),t.ui.dropdown({className:"dropdown-style",items:t.options.styleTags,title:t.lang.style.style,template:function(e){"string"==typeof e&&(e={tag:e,title:Object.prototype.hasOwnProperty.call(t.lang.style,e)?t.lang.style[e]:e});var i=e.tag,n=e.title;return"<"+i+(e.style?' style="'+e.style+'" ':"")+(e.className?' class="'+e.className+'"':"")+">"+n+"</"+i+">"},click:t.context.createInvokeHandler("editor.formatBlock")})]).render()}));for(var e=function(e,i){var n=t.options.styleTags[e];t.context.memo("button.style."+n,(function(){return t.button({className:"note-btn-style-"+n,contents:'<div data-value="'+n+'">'+n.toUpperCase()+"</div>",tooltip:t.lang.style[n],click:t.context.createInvokeHandler("editor.formatBlock")}).render()}))},i=0,n=this.options.styleTags.length;i<n;i++)e(i);this.context.memo("button.bold",(function(){return t.button({className:"note-btn-bold",contents:t.ui.icon(t.options.icons.bold),tooltip:t.lang.font.bold+t.representShortcut("bold"),click:t.context.createInvokeHandlerAndUpdateState("editor.bold")}).render()})),this.context.memo("button.italic",(function(){return t.button({className:"note-btn-italic",contents:t.ui.icon(t.options.icons.italic),tooltip:t.lang.font.italic+t.representShortcut("italic"),click:t.context.createInvokeHandlerAndUpdateState("editor.italic")}).render()})),this.context.memo("button.underline",(function(){return t.button({className:"note-btn-underline",contents:t.ui.icon(t.options.icons.underline),tooltip:t.lang.font.underline+t.representShortcut("underline"),click:t.context.createInvokeHandlerAndUpdateState("editor.underline")}).render()})),this.context.memo("button.clear",(function(){return t.button({contents:t.ui.icon(t.options.icons.eraser),tooltip:t.lang.font.clear+t.representShortcut("removeFormat"),click:t.context.createInvokeHandler("editor.removeFormat")}).render()})),this.context.memo("button.strikethrough",(function(){return t.button({className:"note-btn-strikethrough",contents:t.ui.icon(t.options.icons.strikethrough),tooltip:t.lang.font.strikethrough+t.representShortcut("strikethrough"),click:t.context.createInvokeHandlerAndUpdateState("editor.strikethrough")}).render()})),this.context.memo("button.superscript",(function(){return t.button({className:"note-btn-superscript",contents:t.ui.icon(t.options.icons.superscript),tooltip:t.lang.font.superscript,click:t.context.createInvokeHandlerAndUpdateState("editor.superscript")}).render()})),this.context.memo("button.subscript",(function(){return t.button({className:"note-btn-subscript",contents:t.ui.icon(t.options.icons.subscript),tooltip:t.lang.font.subscript,click:t.context.createInvokeHandlerAndUpdateState("editor.subscript")}).render()})),this.context.memo("button.fontname",(function(){var e=t.context.invoke("editor.currentStyle");return t.options.addDefaultFonts&&a.a.each(e["font-family"].split(","),(function(e,i){i=i.trim().replace(/['"]+/g,""),t.isFontDeservedToAdd(i)&&-1===t.options.fontNames.indexOf(i)&&t.options.fontNames.push(i)})),t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontname"></span>',t.options),tooltip:t.lang.font.name,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontname",checkClassName:t.options.icons.menuCheck,items:t.options.fontNames.filter(t.isFontInstalled.bind(t)),title:t.lang.font.name,template:function(t){return'<span style="font-family: '+m.validFontName(t)+'">'+t+"</span>"},click:t.context.createInvokeHandlerAndUpdateState("editor.fontName")})]).render()})),this.context.memo("button.fontsize",(function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontsize"></span>',t.options),tooltip:t.lang.font.size,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontsize",checkClassName:t.options.icons.menuCheck,items:t.options.fontSizes,title:t.lang.font.size,click:t.context.createInvokeHandlerAndUpdateState("editor.fontSize")})]).render()})),this.context.memo("button.fontsizeunit",(function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontsizeunit"></span>',t.options),tooltip:t.lang.font.sizeunit,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontsizeunit",checkClassName:t.options.icons.menuCheck,items:t.options.fontSizeUnits,title:t.lang.font.sizeunit,click:t.context.createInvokeHandlerAndUpdateState("editor.fontSizeUnit")})]).render()})),this.context.memo("button.color",(function(){return t.colorPalette("note-color-all",t.lang.color.recent,!0,!0)})),this.context.memo("button.forecolor",(function(){return t.colorPalette("note-color-fore",t.lang.color.foreground,!1,!0)})),this.context.memo("button.backcolor",(function(){return t.colorPalette("note-color-back",t.lang.color.background,!0,!1)})),this.context.memo("button.ul",(function(){return t.button({contents:t.ui.icon(t.options.icons.unorderedlist),tooltip:t.lang.lists.unordered+t.representShortcut("insertUnorderedList"),click:t.context.createInvokeHandler("editor.insertUnorderedList")}).render()})),this.context.memo("button.ol",(function(){return t.button({contents:t.ui.icon(t.options.icons.orderedlist),tooltip:t.lang.lists.ordered+t.representShortcut("insertOrderedList"),click:t.context.createInvokeHandler("editor.insertOrderedList")}).render()}));var r=this.button({contents:this.ui.icon(this.options.icons.alignLeft),tooltip:this.lang.paragraph.left+this.representShortcut("justifyLeft"),click:this.context.createInvokeHandler("editor.justifyLeft")}),o=this.button({contents:this.ui.icon(this.options.icons.alignCenter),tooltip:this.lang.paragraph.center+this.representShortcut("justifyCenter"),click:this.context.createInvokeHandler("editor.justifyCenter")}),s=this.button({contents:this.ui.icon(this.options.icons.alignRight),tooltip:this.lang.paragraph.right+this.representShortcut("justifyRight"),click:this.context.createInvokeHandler("editor.justifyRight")}),l=this.button({contents:this.ui.icon(this.options.icons.alignJustify),tooltip:this.lang.paragraph.justify+this.representShortcut("justifyFull"),click:this.context.createInvokeHandler("editor.justifyFull")}),c=this.button({contents:this.ui.icon(this.options.icons.outdent),tooltip:this.lang.paragraph.outdent+this.representShortcut("outdent"),click:this.context.createInvokeHandler("editor.outdent")}),u=this.button({contents:this.ui.icon(this.options.icons.indent),tooltip:this.lang.paragraph.indent+this.representShortcut("indent"),click:this.context.createInvokeHandler("editor.indent")});this.context.memo("button.justifyLeft",v.invoke(r,"render")),this.context.memo("button.justifyCenter",v.invoke(o,"render")),this.context.memo("button.justifyRight",v.invoke(s,"render")),this.context.memo("button.justifyFull",v.invoke(l,"render")),this.context.memo("button.outdent",v.invoke(c,"render")),this.context.memo("button.indent",v.invoke(u,"render")),this.context.memo("button.paragraph",(function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.alignLeft),t.options),tooltip:t.lang.paragraph.paragraph,data:{toggle:"dropdown"}}),t.ui.dropdown([t.ui.buttonGroup({className:"note-align",children:[r,o,s,l]}),t.ui.buttonGroup({className:"note-list",children:[c,u]})])]).render()})),this.context.memo("button.height",(function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.textHeight),t.options),tooltip:t.lang.font.height,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({items:t.options.lineHeights,checkClassName:t.options.icons.menuCheck,className:"dropdown-line-height",title:t.lang.font.height,click:t.context.createInvokeHandler("editor.lineHeight")})]).render()})),this.context.memo("button.table",(function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.table),t.options),tooltip:t.lang.table.table,data:{toggle:"dropdown"}}),t.ui.dropdown({title:t.lang.table.table,className:"note-table",items:['<div class="note-dimension-picker">','<div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"></div>','<div class="note-dimension-picker-highlighted"></div>','<div class="note-dimension-picker-unhighlighted"></div>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(e){e.find(".note-dimension-picker-mousecatcher").css({width:t.options.insertTableMaxSize.col+"em",height:t.options.insertTableMaxSize.row+"em"}).mousedown(t.context.createInvokeHandler("editor.insertTable")).on("mousemove",t.tableMoveHandler.bind(t))}}).render()})),this.context.memo("button.link",(function(){return t.button({contents:t.ui.icon(t.options.icons.link),tooltip:t.lang.link.link+t.representShortcut("linkDialog.show"),click:t.context.createInvokeHandler("linkDialog.show")}).render()})),this.context.memo("button.picture",(function(){return t.button({contents:t.ui.icon(t.options.icons.picture),tooltip:t.lang.image.image,click:t.context.createInvokeHandler("imageDialog.show")}).render()})),this.context.memo("button.video",(function(){return t.button({contents:t.ui.icon(t.options.icons.video),tooltip:t.lang.video.video,click:t.context.createInvokeHandler("videoDialog.show")}).render()})),this.context.memo("button.hr",(function(){return t.button({contents:t.ui.icon(t.options.icons.minus),tooltip:t.lang.hr.insert+t.representShortcut("insertHorizontalRule"),click:t.context.createInvokeHandler("editor.insertHorizontalRule")}).render()})),this.context.memo("button.fullscreen",(function(){return t.button({className:"btn-fullscreen note-codeview-keep",contents:t.ui.icon(t.options.icons.arrowsAlt),tooltip:t.lang.options.fullscreen,click:t.context.createInvokeHandler("fullscreen.toggle")}).render()})),this.context.memo("button.codeview",(function(){return t.button({className:"btn-codeview note-codeview-keep",contents:t.ui.icon(t.options.icons.code),tooltip:t.lang.options.codeview,click:t.context.createInvokeHandler("codeview.toggle")}).render()})),this.context.memo("button.redo",(function(){return t.button({contents:t.ui.icon(t.options.icons.redo),tooltip:t.lang.history.redo+t.representShortcut("redo"),click:t.context.createInvokeHandler("editor.redo")}).render()})),this.context.memo("button.undo",(function(){return t.button({contents:t.ui.icon(t.options.icons.undo),tooltip:t.lang.history.undo+t.representShortcut("undo"),click:t.context.createInvokeHandler("editor.undo")}).render()})),this.context.memo("button.help",(function(){return t.button({contents:t.ui.icon(t.options.icons.question),tooltip:t.lang.options.help,click:t.context.createInvokeHandler("helpDialog.show")}).render()}))}},{key:"addImagePopoverButtons",value:function(){var t=this;this.context.memo("button.resizeFull",(function(){return t.button({contents:'<span class="note-fontsize-10">100%</span>',tooltip:t.lang.image.resizeFull,click:t.context.createInvokeHandler("editor.resize","1")}).render()})),this.context.memo("button.resizeHalf",(function(){return t.button({contents:'<span class="note-fontsize-10">50%</span>',tooltip:t.lang.image.resizeHalf,click:t.context.createInvokeHandler("editor.resize","0.5")}).render()})),this.context.memo("button.resizeQuarter",(function(){return t.button({contents:'<span class="note-fontsize-10">25%</span>',tooltip:t.lang.image.resizeQuarter,click:t.context.createInvokeHandler("editor.resize","0.25")}).render()})),this.context.memo("button.resizeNone",(function(){return t.button({contents:t.ui.icon(t.options.icons.rollback),tooltip:t.lang.image.resizeNone,click:t.context.createInvokeHandler("editor.resize","0")}).render()})),this.context.memo("button.floatLeft",(function(){return t.button({contents:t.ui.icon(t.options.icons.floatLeft),tooltip:t.lang.image.floatLeft,click:t.context.createInvokeHandler("editor.floatMe","left")}).render()})),this.context.memo("button.floatRight",(function(){return t.button({contents:t.ui.icon(t.options.icons.floatRight),tooltip:t.lang.image.floatRight,click:t.context.createInvokeHandler("editor.floatMe","right")}).render()})),this.context.memo("button.floatNone",(function(){return t.button({contents:t.ui.icon(t.options.icons.rollback),tooltip:t.lang.image.floatNone,click:t.context.createInvokeHandler("editor.floatMe","none")}).render()})),this.context.memo("button.removeMedia",(function(){return t.button({contents:t.ui.icon(t.options.icons.trash),tooltip:t.lang.image.remove,click:t.context.createInvokeHandler("editor.removeMedia")}).render()}))}},{key:"addLinkPopoverButtons",value:function(){var t=this;this.context.memo("button.linkDialogShow",(function(){return t.button({contents:t.ui.icon(t.options.icons.link),tooltip:t.lang.link.edit,click:t.context.createInvokeHandler("linkDialog.show")}).render()})),this.context.memo("button.unlink",(function(){return t.button({contents:t.ui.icon(t.options.icons.unlink),tooltip:t.lang.link.unlink,click:t.context.createInvokeHandler("editor.unlink")}).render()}))}},{key:"addTablePopoverButtons",value:function(){var t=this;this.context.memo("button.addRowUp",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.rowAbove),tooltip:t.lang.table.addRowAbove,click:t.context.createInvokeHandler("editor.addRow","top")}).render()})),this.context.memo("button.addRowDown",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.rowBelow),tooltip:t.lang.table.addRowBelow,click:t.context.createInvokeHandler("editor.addRow","bottom")}).render()})),this.context.memo("button.addColLeft",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.colBefore),tooltip:t.lang.table.addColLeft,click:t.context.createInvokeHandler("editor.addCol","left")}).render()})),this.context.memo("button.addColRight",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.colAfter),tooltip:t.lang.table.addColRight,click:t.context.createInvokeHandler("editor.addCol","right")}).render()})),this.context.memo("button.deleteRow",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.rowRemove),tooltip:t.lang.table.delRow,click:t.context.createInvokeHandler("editor.deleteRow")}).render()})),this.context.memo("button.deleteCol",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.colRemove),tooltip:t.lang.table.delCol,click:t.context.createInvokeHandler("editor.deleteCol")}).render()})),this.context.memo("button.deleteTable",(function(){return t.button({className:"btn-md",contents:t.ui.icon(t.options.icons.trash),tooltip:t.lang.table.delTable,click:t.context.createInvokeHandler("editor.deleteTable")}).render()}))}},{key:"build",value:function(t,e){for(var i=0,n=e.length;i<n;i++){for(var a=e[i],r=Array.isArray(a)?a[0]:a,o=Array.isArray(a)?1===a.length?[a[0]]:a[1]:[a],s=this.ui.buttonGroup({className:"note-"+r}).render(),l=0,c=o.length;l<c;l++){var u=this.context.memo("button."+o[l]);u&&s.append("function"==typeof u?u(this.context):u)}s.appendTo(t)}}},{key:"updateCurrentStyle",value:function(t){var e=this,i=t||this.$toolbar,n=this.context.invoke("editor.currentStyle");if(this.updateBtnStates(i,{".note-btn-bold":function(){return"bold"===n["font-bold"]},".note-btn-italic":function(){return"italic"===n["font-italic"]},".note-btn-underline":function(){return"underline"===n["font-underline"]},".note-btn-subscript":function(){return"subscript"===n["font-subscript"]},".note-btn-superscript":function(){return"superscript"===n["font-superscript"]},".note-btn-strikethrough":function(){return"strikethrough"===n["font-strikethrough"]}}),n["font-family"]){var r=n["font-family"].split(",").map((function(t){return t.replace(/[\'\"]/g,"").replace(/\s+$/,"").replace(/^\s+/,"")})),o=w.find(r,this.isFontInstalled.bind(this));i.find(".dropdown-fontname a").each((function(t,e){var i=a()(e),n=i.data("value")+""==o+"";i.toggleClass("checked",n)})),i.find(".note-current-fontname").text(o).css("font-family",o)}if(n["font-size"]){var s=n["font-size"];i.find(".dropdown-fontsize a").each((function(t,e){var i=a()(e),n=i.data("value")+""==s+"";i.toggleClass("checked",n)})),i.find(".note-current-fontsize").text(s);var l=n["font-size-unit"];i.find(".dropdown-fontsizeunit a").each((function(t,e){var i=a()(e),n=i.data("value")+""==l+"";i.toggleClass("checked",n)})),i.find(".note-current-fontsizeunit").text(l)}if(n["line-height"]){var c=n["line-height"];i.find(".dropdown-line-height li a").each((function(t,i){var n=a()(i).data("value")+""==c+"";e.className=n?"checked":""}))}}},{key:"updateBtnStates",value:function(t,e){var i=this;a.a.each(e,(function(e,n){i.ui.toggleBtnActive(t.find(e),n())}))}},{key:"tableMoveHandler",value:function(t){var e,i=a()(t.target.parentNode),n=i.next(),r=i.find(".note-dimension-picker-mousecatcher"),o=i.find(".note-dimension-picker-highlighted"),s=i.find(".note-dimension-picker-unhighlighted");if(void 0===t.offsetX){var l=a()(t.target).offset();e={x:t.pageX-l.left,y:t.pageY-l.top}}else e={x:t.offsetX,y:t.offsetY};var c=Math.ceil(e.x/18)||1,u=Math.ceil(e.y/18)||1;o.css({width:c+"em",height:u+"em"}),r.data("value",c+"x"+u),c>3&&c<this.options.insertTableMaxSize.col&&s.css({width:c+1+"em"}),u>3&&u<this.options.insertTableMaxSize.row&&s.css({height:u+1+"em"}),n.html(c+" x "+u)}}])&&oe(e.prototype,i),n&&oe(e,n),t}();function le(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ce=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.$window=a()(window),this.$document=a()(document),this.ui=a.a.summernote.ui,this.$note=e.layoutInfo.note,this.$editor=e.layoutInfo.editor,this.$toolbar=e.layoutInfo.toolbar,this.$editable=e.layoutInfo.editable,this.$statusbar=e.layoutInfo.statusbar,this.options=e.options,this.isFollowing=!1,this.followScroll=this.followScroll.bind(this)}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return!this.options.airMode}},{key:"initialize",value:function(){var t=this;this.options.toolbar=this.options.toolbar||[],this.options.toolbar.length?this.context.invoke("buttons.build",this.$toolbar,this.options.toolbar):this.$toolbar.hide(),this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.changeContainer(!1),this.$note.on("summernote.keyup summernote.mouseup summernote.change",(function(){t.context.invoke("buttons.updateCurrentStyle")})),this.context.invoke("buttons.updateCurrentStyle"),this.options.followingToolbar&&this.$window.on("scroll resize",this.followScroll)}},{key:"destroy",value:function(){this.$toolbar.children().remove(),this.options.followingToolbar&&this.$window.off("scroll resize",this.followScroll)}},{key:"followScroll",value:function(){if(this.$editor.hasClass("fullscreen"))return!1;var t=this.$editor.outerHeight(),e=this.$editor.width(),i=this.$toolbar.height(),n=this.$statusbar.height(),r=0;this.options.otherStaticBar&&(r=a()(this.options.otherStaticBar).outerHeight());var o=this.$document.scrollTop(),s=this.$editor.offset().top,l=s-r,c=s+t-r-i-n;!this.isFollowing&&o>l&&o<c-i?(this.isFollowing=!0,this.$editable.css({marginTop:this.$toolbar.outerHeight()}),this.$toolbar.css({position:"fixed",top:r,width:e,zIndex:1e3})):this.isFollowing&&(o<l||o>c)&&(this.isFollowing=!1,this.$toolbar.css({position:"relative",top:0,width:"100%",zIndex:"auto"}),this.$editable.css({marginTop:""}))}},{key:"changeContainer",value:function(t){t?this.$toolbar.prependTo(this.$editor):this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.options.followingToolbar&&this.followScroll()}},{key:"updateFullscreen",value:function(t){this.ui.toggleBtnActive(this.$toolbar.find(".btn-fullscreen"),t),this.changeContainer(t)}},{key:"updateCodeview",value:function(t){this.ui.toggleBtnActive(this.$toolbar.find(".btn-codeview"),t),t?this.deactivate():this.activate()}},{key:"activate",value:function(t){var e=this.$toolbar.find("button");t||(e=e.not(".note-codeview-keep")),this.ui.toggleBtn(e,!0)}},{key:"deactivate",value:function(t){var e=this.$toolbar.find("button");t||(e=e.not(".note-codeview-keep")),this.ui.toggleBtn(e,!1)}}])&&le(e.prototype,i),n&&le(e,n),t}();function ue(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var de=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.$body=a()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo,e.memo("help.linkDialog.show",this.options.langInfo.help["linkDialog.show"])}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t=this.options.dialogsInBody?this.$body:this.options.container,e=['<div class="form-group note-form-group">','<label for="note-dialog-link-txt-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.link.textToDisplay,"</label>"),'<input id="note-dialog-link-txt-'.concat(this.options.id,'" class="note-link-text form-control note-form-control note-input" type="text"/>'),"</div>",'<div class="form-group note-form-group">','<label for="note-dialog-link-url-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.link.url,"</label>"),'<input id="note-dialog-link-url-'.concat(this.options.id,'" class="note-link-url form-control note-form-control note-input" type="text" value="http://"/>'),"</div>",this.options.disableLinkTarget?"":a()("<div/>").append(this.ui.checkbox({className:"sn-checkbox-open-in-new-window",text:this.lang.link.openInNewWindow,checked:!0}).render()).html(),a()("<div/>").append(this.ui.checkbox({className:"sn-checkbox-use-protocol",text:this.lang.link.useProtocol,checked:!0}).render()).html()].join(""),i='<input type="button" href="#" class="'.concat("btn btn-primary note-btn note-btn-primary note-link-btn",'" value="').concat(this.lang.link.insert,'" disabled>');this.$dialog=this.ui.dialog({className:"link-dialog",title:this.lang.link.insert,fade:this.options.dialogsFade,body:e,footer:i}).render().appendTo(t)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(t,e){t.on("keypress",(function(t){t.keyCode===kt.code.ENTER&&(t.preventDefault(),e.trigger("click"))}))}},{key:"toggleLinkBtn",value:function(t,e,i){this.ui.toggleBtn(t,e.val()&&i.val())}},{key:"showLinkDialog",value:function(t){var e=this;return a.a.Deferred((function(i){var n=e.$dialog.find(".note-link-text"),a=e.$dialog.find(".note-link-url"),r=e.$dialog.find(".note-link-btn"),o=e.$dialog.find(".sn-checkbox-open-in-new-window input[type=checkbox]"),s=e.$dialog.find(".sn-checkbox-use-protocol input[type=checkbox]");e.ui.onDialogShown(e.$dialog,(function(){e.context.triggerEvent("dialog.shown"),!t.url&&v.isValidUrl(t.text)&&(t.url=t.text),n.on("input paste propertychange",(function(){t.text=n.val(),e.toggleLinkBtn(r,n,a)})).val(t.text),a.on("input paste propertychange",(function(){t.text||n.val(a.val()),e.toggleLinkBtn(r,n,a)})).val(t.url),m.isSupportTouch||a.trigger("focus"),e.toggleLinkBtn(r,n,a),e.bindEnterKey(a,r),e.bindEnterKey(n,r);var l=void 0!==t.isNewWindow?t.isNewWindow:e.context.options.linkTargetBlank;o.prop("checked",l);var c=!t.url&&e.context.options.useProtocol;s.prop("checked",c),r.one("click",(function(r){r.preventDefault(),i.resolve({range:t.range,url:a.val(),text:n.val(),isNewWindow:o.is(":checked"),checkProtocol:s.is(":checked")}),e.ui.hideDialog(e.$dialog)}))})),e.ui.onDialogHidden(e.$dialog,(function(){n.off(),a.off(),r.off(),"pending"===i.state()&&i.reject()})),e.ui.showDialog(e.$dialog)})).promise()}},{key:"show",value:function(){var t=this,e=this.context.invoke("editor.getLinkInfo");this.context.invoke("editor.saveRange"),this.showLinkDialog(e).then((function(e){t.context.invoke("editor.restoreRange"),t.context.invoke("editor.createLink",e)})).fail((function(){t.context.invoke("editor.restoreRange")}))}}])&&ue(e.prototype,i),n&&ue(e,n),t}();function he(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var fe=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.options=e.options,this.events={"summernote.keyup summernote.mouseup summernote.change summernote.scroll":function(){i.update()},"summernote.disable summernote.dialog.shown summernote.blur":function(){i.hide()}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return!w.isEmpty(this.options.popover.link)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-link-popover",callback:function(t){t.find(".popover-content,.note-popover-content").prepend('<span><a target="_blank"></a>&nbsp;</span>')}}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",t,this.options.popover.link),this.$popover.on("mousedown",(function(t){t.preventDefault()}))}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(){if(this.context.invoke("editor.hasFocus")){var t=this.context.invoke("editor.getLastRange");if(t.isCollapsed()&&t.isOnAnchor()){var e=pt.ancestor(t.sc,pt.isAnchor),i=a()(e).attr("href");this.$popover.find("a").attr("href",i).text(i);var n=pt.posFromPlaceholder(e),r=a()(this.options.container).offset();n.top-=r.top,n.left-=r.left,this.$popover.css({display:"block",left:n.left,top:n.top})}else this.hide()}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}])&&he(e.prototype,i),n&&he(e,n),t}();function pe(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var me=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.$body=a()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t="";if(this.options.maximumImageFileSize){var e=Math.floor(Math.log(this.options.maximumImageFileSize)/Math.log(1024)),i=1*(this.options.maximumImageFileSize/Math.pow(1024,e)).toFixed(2)+" "+" KMGTP"[e]+"B";t="<small>".concat(this.lang.image.maximumFileSize+" : "+i,"</small>")}var n=this.options.dialogsInBody?this.$body:this.options.container,a=['<div class="form-group note-form-group note-group-select-from-files">','<label for="note-dialog-image-file-'+this.options.id+'" class="note-form-label">'+this.lang.image.selectFromFiles+"</label>",'<input id="note-dialog-image-file-'+this.options.id+'" class="note-image-input form-control-file note-form-control note-input" ',' type="file" name="files" accept="image/*" multiple="multiple"/>',t,"</div>",'<div class="form-group note-group-image-url">','<label for="note-dialog-image-url-'+this.options.id+'" class="note-form-label">'+this.lang.image.url+"</label>",'<input id="note-dialog-image-url-'+this.options.id+'" class="note-image-url form-control note-form-control note-input" type="text"/>',"</div>"].join(""),r='<input type="button" href="#" class="'.concat("btn btn-primary note-btn note-btn-primary note-image-btn",'" value="').concat(this.lang.image.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.image.insert,fade:this.options.dialogsFade,body:a,footer:r}).render().appendTo(n)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(t,e){t.on("keypress",(function(t){t.keyCode===kt.code.ENTER&&(t.preventDefault(),e.trigger("click"))}))}},{key:"show",value:function(){var t=this;this.context.invoke("editor.saveRange"),this.showImageDialog().then((function(e){t.ui.hideDialog(t.$dialog),t.context.invoke("editor.restoreRange"),"string"==typeof e?t.options.callbacks.onImageLinkInsert?t.context.triggerEvent("image.link.insert",e):t.context.invoke("editor.insertImage",e):t.context.invoke("editor.insertImagesOrCallback",e)})).fail((function(){t.context.invoke("editor.restoreRange")}))}},{key:"showImageDialog",value:function(){var t=this;return a.a.Deferred((function(e){var i=t.$dialog.find(".note-image-input"),n=t.$dialog.find(".note-image-url"),a=t.$dialog.find(".note-image-btn");t.ui.onDialogShown(t.$dialog,(function(){t.context.triggerEvent("dialog.shown"),i.replaceWith(i.clone().on("change",(function(t){e.resolve(t.target.files||t.target.value)})).val("")),n.on("input paste propertychange",(function(){t.ui.toggleBtn(a,n.val())})).val(""),m.isSupportTouch||n.trigger("focus"),a.click((function(t){t.preventDefault(),e.resolve(n.val())})),t.bindEnterKey(n,a)})),t.ui.onDialogHidden(t.$dialog,(function(){i.off(),n.off(),a.off(),"pending"===e.state()&&e.reject()})),t.ui.showDialog(t.$dialog)}))}}])&&pe(e.prototype,i),n&&pe(e,n),t}();function ge(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ve=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.editable=e.layoutInfo.editable[0],this.options=e.options,this.events={"summernote.disable summernote.blur":function(){i.hide()}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return!w.isEmpty(this.options.popover.image)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-image-popover"}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",t,this.options.popover.image),this.$popover.on("mousedown",(function(t){t.preventDefault()}))}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(t,e){if(pt.isImg(t)){var i=a()(t).offset(),n=a()(this.options.container).offset(),r={};this.options.popatmouse?(r.left=e.pageX-20,r.top=e.pageY):r=i,r.top-=n.top,r.left-=n.left,this.$popover.css({display:"block",left:r.left,top:r.top})}else this.hide()}},{key:"hide",value:function(){this.$popover.hide()}}])&&ge(e.prototype,i),n&&ge(e,n),t}();function ye(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var be=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.options=e.options,this.events={"summernote.mousedown":function(t,e){i.update(e.target)},"summernote.keyup summernote.scroll summernote.change":function(){i.update()},"summernote.disable summernote.blur":function(){i.hide()}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return!w.isEmpty(this.options.popover.table)}},{key:"initialize",value:function(){this.$popover=this.ui.popover({className:"note-table-popover"}).render().appendTo(this.options.container);var t=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",t,this.options.popover.table),m.isFF&&document.execCommand("enableInlineTableEditing",!1,!1),this.$popover.on("mousedown",(function(t){t.preventDefault()}))}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(t){if(this.context.isDisabled())return!1;var e=pt.isCell(t);if(e){var i=pt.posFromPlaceholder(t),n=a()(this.options.container).offset();i.top-=n.top,i.left-=n.left,this.$popover.css({display:"block",left:i.left,top:i.top})}else this.hide();return e}},{key:"hide",value:function(){this.$popover.hide()}}])&&ye(e.prototype,i),n&&ye(e,n),t}();function _e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var xe=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.$body=a()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t=this.options.dialogsInBody?this.$body:this.options.container,e=['<div class="form-group note-form-group row-fluid">','<label for="note-dialog-video-url-'.concat(this.options.id,'" class="note-form-label">').concat(this.lang.video.url,' <small class="text-muted">').concat(this.lang.video.providers,"</small></label>"),'<input id="note-dialog-video-url-'.concat(this.options.id,'" class="note-video-url form-control note-form-control note-input" type="text"/>'),"</div>"].join(""),i='<input type="button" href="#" class="'.concat("btn btn-primary note-btn note-btn-primary note-video-btn",'" value="').concat(this.lang.video.insert,'" disabled>');this.$dialog=this.ui.dialog({title:this.lang.video.insert,fade:this.options.dialogsFade,body:e,footer:i}).render().appendTo(t)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"bindEnterKey",value:function(t,e){t.on("keypress",(function(t){t.keyCode===kt.code.ENTER&&(t.preventDefault(),e.trigger("click"))}))}},{key:"createVideoNode",value:function(t){var e,i=t.match(/\/\/(?:(?:www|m)\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?$/),n=t.match(/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/),r=t.match(/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/),o=t.match(/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/),s=t.match(/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/),l=t.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),c=t.match(/\/\/v\.qq\.com.*?vid=(.+)/),u=t.match(/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/),d=t.match(/^.+.(mp4|m4v)$/),h=t.match(/^.+.(ogg|ogv)$/),f=t.match(/^.+.(webm)$/),p=t.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/);if(i&&11===i[1].length){var m=i[1],g=0;if(void 0!==i[2]){var v=i[2].match(/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/);if(v)for(var y=[3600,60,1],b=0,_=y.length;b<_;b++)g+=void 0!==v[b+1]?y[b]*parseInt(v[b+1],10):0}e=a()("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+m+(g>0?"?start="+g:"")).attr("width","640").attr("height","360")}else if(n&&n[0].length)e=a()("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+n[1]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(r&&r[0].length)e=a()("<iframe>").attr("frameborder",0).attr("src",r[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(o&&o[3].length)e=a()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+o[3]).attr("width","640").attr("height","360");else if(s&&s[2].length)e=a()("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+s[2]).attr("width","640").attr("height","360");else if(l&&l[1].length)e=a()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+l[1]);else if(c&&c[1].length||u&&u[2].length){var x=c&&c[1].length?c[1]:u[2];e=a()("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","https://v.qq.com/txp/iframe/player.html?vid="+x+"&amp;auto=0")}else if(d||h||f)e=a()("<video controls>").attr("src",t).attr("width","640").attr("height","360");else{if(!p||!p[0].length)return!1;e=a()("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent(p[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true")}return e.addClass("note-video-clip"),e[0]}},{key:"show",value:function(){var t=this,e=this.context.invoke("editor.getSelectedText");this.context.invoke("editor.saveRange"),this.showVideoDialog(e).then((function(e){t.ui.hideDialog(t.$dialog),t.context.invoke("editor.restoreRange");var i=t.createVideoNode(e);i&&t.context.invoke("editor.insertNode",i)})).fail((function(){t.context.invoke("editor.restoreRange")}))}},{key:"showVideoDialog",value:function(){var t=this;return a.a.Deferred((function(e){var i=t.$dialog.find(".note-video-url"),n=t.$dialog.find(".note-video-btn");t.ui.onDialogShown(t.$dialog,(function(){t.context.triggerEvent("dialog.shown"),i.on("input paste propertychange",(function(){t.ui.toggleBtn(n,i.val())})),m.isSupportTouch||i.trigger("focus"),n.click((function(t){t.preventDefault(),e.resolve(i.val())})),t.bindEnterKey(i,n)})),t.ui.onDialogHidden(t.$dialog,(function(){i.off(),n.off(),"pending"===e.state()&&e.reject()})),t.ui.showDialog(t.$dialog)}))}}])&&_e(e.prototype,i),n&&_e(e,n),t}();function we(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var ke=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.$body=a()(document.body),this.$editor=e.layoutInfo.editor,this.options=e.options,this.lang=this.options.langInfo}var e,i,n;return e=t,(i=[{key:"initialize",value:function(){var t=this.options.dialogsInBody?this.$body:this.options.container,e=['<p class="text-center">','<a href="http://summernote.org/" target="_blank">Summernote 0.8.18</a> · ','<a href="https://github.com/summernote/summernote" target="_blank">Project</a> · ','<a href="https://github.com/summernote/summernote/issues" target="_blank">Issues</a>',"</p>"].join("");this.$dialog=this.ui.dialog({title:this.lang.options.help,fade:this.options.dialogsFade,body:this.createShortcutList(),footer:e,callback:function(t){t.find(".modal-body,.note-modal-body").css({"max-height":300,overflow:"scroll"})}}).render().appendTo(t)}},{key:"destroy",value:function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()}},{key:"createShortcutList",value:function(){var t=this,e=this.options.keyMap[m.isMac?"mac":"pc"];return Object.keys(e).map((function(i){var n=e[i],r=a()('<div><div class="help-list-item"></div></div>');return r.append(a()("<label><kbd>"+i+"</kdb></label>").css({width:180,"margin-right":10})).append(a()("<span/>").html(t.context.memo("help."+n)||n)),r.html()})).join("")}},{key:"showHelpDialog",value:function(){var t=this;return a.a.Deferred((function(e){t.ui.onDialogShown(t.$dialog,(function(){t.context.triggerEvent("dialog.shown"),e.resolve()})),t.ui.showDialog(t.$dialog)})).promise()}},{key:"show",value:function(){var t=this;this.context.invoke("editor.saveRange"),this.showHelpDialog().then((function(){t.context.invoke("editor.restoreRange")}))}}])&&we(e.prototype,i),n&&we(e,n),t}();function Se(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Me=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.options=e.options,this.hidable=!0,this.onContextmenu=!1,this.pageX=null,this.pageY=null,this.events={"summernote.contextmenu":function(t){i.options.editing&&(t.preventDefault(),t.stopPropagation(),i.onContextmenu=!0,i.update(!0))},"summernote.mousedown":function(t,e){i.pageX=e.pageX,i.pageY=e.pageY},"summernote.keyup summernote.mouseup summernote.scroll":function(t,e){i.options.editing&&!i.onContextmenu&&(i.pageX=e.pageX,i.pageY=e.pageY,i.update()),i.onContextmenu=!1},"summernote.disable summernote.change summernote.dialog.shown summernote.blur":function(){i.hide()},"summernote.focusout":function(){i.$popover.is(":active,:focus")||i.hide()}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return this.options.airMode&&!w.isEmpty(this.options.popover.air)}},{key:"initialize",value:function(){var t=this;this.$popover=this.ui.popover({className:"note-air-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content");this.context.invoke("buttons.build",e,this.options.popover.air),this.$popover.on("mousedown",(function(){t.hidable=!1})),this.$popover.on("mouseup",(function(){t.hidable=!0}))}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"update",value:function(t){var e=this.context.invoke("editor.currentStyle");if(!e.range||e.range.isCollapsed()&&!t)this.hide();else{var i={left:this.pageX,top:this.pageY},n=a()(this.options.container).offset();i.top-=n.top,i.left-=n.left,this.$popover.css({display:"block",left:Math.max(i.left,0)+-5,top:i.top+5}),this.context.invoke("buttons.updateCurrentStyle",this.$popover)}}},{key:"updateCodeview",value:function(t){this.ui.toggleBtnActive(this.$popover.find(".btn-codeview"),t),t&&this.hide()}},{key:"hide",value:function(){this.hidable&&this.$popover.hide()}}])&&Se(e.prototype,i),n&&Se(e,n),t}();function Le(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Te=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.ui=a.a.summernote.ui,this.$editable=e.layoutInfo.editable,this.options=e.options,this.hint=this.options.hint||[],this.direction=this.options.hintDirection||"bottom",this.hints=Array.isArray(this.hint)?this.hint:[this.hint],this.events={"summernote.keyup":function(t,e){e.isDefaultPrevented()||i.handleKeyup(e)},"summernote.keydown":function(t,e){i.handleKeydown(e)},"summernote.disable summernote.dialog.shown summernote.blur":function(){i.hide()}}}var e,i,n;return e=t,(i=[{key:"shouldInitialize",value:function(){return this.hints.length>0}},{key:"initialize",value:function(){var t=this;this.lastWordRange=null,this.matchingWord=null,this.$popover=this.ui.popover({className:"note-hint-popover",hideArrow:!0,direction:""}).render().appendTo(this.options.container),this.$popover.hide(),this.$content=this.$popover.find(".popover-content,.note-popover-content"),this.$content.on("click",".note-hint-item",(function(e){t.$content.find(".active").removeClass("active"),a()(e.currentTarget).addClass("active"),t.replace()})),this.$popover.on("mousedown",(function(t){t.preventDefault()}))}},{key:"destroy",value:function(){this.$popover.remove()}},{key:"selectItem",value:function(t){this.$content.find(".active").removeClass("active"),t.addClass("active"),this.$content[0].scrollTop=t[0].offsetTop-this.$content.innerHeight()/2}},{key:"moveDown",value:function(){var t=this.$content.find(".note-hint-item.active"),e=t.next();if(e.length)this.selectItem(e);else{var i=t.parent().next();i.length||(i=this.$content.find(".note-hint-group").first()),this.selectItem(i.find(".note-hint-item").first())}}},{key:"moveUp",value:function(){var t=this.$content.find(".note-hint-item.active"),e=t.prev();if(e.length)this.selectItem(e);else{var i=t.parent().prev();i.length||(i=this.$content.find(".note-hint-group").last()),this.selectItem(i.find(".note-hint-item").last())}}},{key:"replace",value:function(){var t=this.$content.find(".note-hint-item.active");if(t.length){var e=this.nodeFromItem(t);if(null!==this.matchingWord&&0===this.matchingWord.length)this.lastWordRange.so=this.lastWordRange.eo;else if(null!==this.matchingWord&&this.matchingWord.length>0&&!this.lastWordRange.isCollapsed()){var i=this.lastWordRange.eo-this.lastWordRange.so-this.matchingWord.length;i>0&&(this.lastWordRange.so+=i)}if(this.lastWordRange.insertNode(e),"next"===this.options.hintSelect){var n=document.createTextNode("");a()(e).after(n),xt.createFromNodeBefore(n).select()}else xt.createFromNodeAfter(e).select();this.lastWordRange=null,this.hide(),this.context.invoke("editor.focus")}}},{key:"nodeFromItem",value:function(t){var e=this.hints[t.data("index")],i=t.data("item"),n=e.content?e.content(i):i;return"string"==typeof n&&(n=pt.createText(n)),n}},{key:"createItemTemplates",value:function(t,e){var i=this.hints[t];return e.map((function(e){var n=a()('<div class="note-hint-item"/>');return n.append(i.template?i.template(e):e+""),n.data({index:t,item:e}),n}))}},{key:"handleKeydown",value:function(t){this.$popover.is(":visible")&&(t.keyCode===kt.code.ENTER?(t.preventDefault(),this.replace()):t.keyCode===kt.code.UP?(t.preventDefault(),this.moveUp()):t.keyCode===kt.code.DOWN&&(t.preventDefault(),this.moveDown()))}},{key:"searchKeyword",value:function(t,e,i){var n=this.hints[t];if(n&&n.match.test(e)&&n.search){var a=n.match.exec(e);this.matchingWord=a[0],n.search(a[1],i)}else i()}},{key:"createGroup",value:function(t,e){var i=this,n=a()('<div class="note-hint-group note-hint-group-'+t+'"></div>');return this.searchKeyword(t,e,(function(e){(e=e||[]).length&&(n.html(i.createItemTemplates(t,e)),i.show())})),n}},{key:"handleKeyup",value:function(t){var e=this;if(!w.contains([kt.code.ENTER,kt.code.UP,kt.code.DOWN],t.keyCode)){var i,n,r=this.context.invoke("editor.getLastRange");if("words"===this.options.hintMode){if(i=r.getWordsRange(r),n=i.toString(),this.hints.forEach((function(t){if(t.match.test(n))return i=r.getWordsMatchRange(t.match),!1})),!i)return void this.hide();n=i.toString()}else i=r.getWordRange(),n=i.toString();if(this.hints.length&&n){this.$content.empty();var o=v.rect2bnd(w.last(i.getClientRects())),s=a()(this.options.container).offset();o&&(o.top-=s.top,o.left-=s.left,this.$popover.hide(),this.lastWordRange=i,this.hints.forEach((function(t,i){t.match.test(n)&&e.createGroup(i,n).appendTo(e.$content)})),this.$content.find(".note-hint-item:first").addClass("active"),"top"===this.direction?this.$popover.css({left:o.left,top:o.top-this.$popover.outerHeight()-5}):this.$popover.css({left:o.left,top:o.top+o.height+5}))}else this.hide()}}},{key:"show",value:function(){this.$popover.show()}},{key:"hide",value:function(){this.$popover.hide()}}])&&Le(e.prototype,i),n&&Le(e,n),t}();a.a.summernote=a.a.extend(a.a.summernote,{version:"0.8.18",plugins:{},dom:pt,range:xt,lists:w,options:{langInfo:a.a.summernote.lang["en-US"],editing:!0,modules:{editor:Nt,clipboard:jt,dropzone:Rt,codeview:Wt,statusbar:qt,fullscreen:Xt,handle:Kt,hintPopover:Te,autoLink:Qt,autoSync:ee,autoReplace:ne,placeholder:re,buttons:se,toolbar:ce,linkDialog:de,linkPopover:fe,imageDialog:me,imagePopover:ve,tablePopover:be,videoDialog:xe,helpDialog:ke,airPopover:Me},buttons:{},lang:"en-US",followingToolbar:!1,toolbarPosition:"top",otherStaticBar:"",codeviewKeepButton:!1,toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["fontname",["fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture","video"]],["view",["fullscreen","codeview","help"]]],popatmouse:!0,popover:{image:[["resize",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]],["view",["fullscreen","codeview"]]]},airMode:!1,overrideContextMenu:!1,width:null,height:null,linkTargetBlank:!0,useProtocol:!0,defaultProtocol:"http://",focus:!1,tabDisabled:!1,tabSize:4,styleWithCSS:!1,shortcuts:!0,textareaAutoSync:!0,tooltip:"auto",container:null,maxTextLength:0,blockquoteBreakingLevel:2,spellCheck:!0,disableGrammar:!1,placeholder:null,inheritPlaceholder:!1,recordEveryKeystroke:!1,historyLimit:200,showDomainOnlyForAutolink:!1,hintMode:"word",hintSelect:"after",hintDirection:"bottom",styleTags:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Tahoma","Times New Roman","Verdana"],fontNamesIgnoreCheck:[],addDefaultFonts:!0,fontSizes:["8","9","10","11","12","14","18","24","36"],fontSizeUnits:["px","pt"],colors:[["#000000","#424242","#636363","#9C9C94","#CEC6CE","#EFEFEF","#F7F7F7","#FFFFFF"],["#FF0000","#FF9C00","#FFFF00","#00FF00","#00FFFF","#0000FF","#9C00FF","#FF00FF"],["#F7C6CE","#FFE7CE","#FFEFC6","#D6EFD6","#CEDEE7","#CEE7F7","#D6D6E7","#E7D6DE"],["#E79C9C","#FFC69C","#FFE79C","#B5D6A5","#A5C6CE","#9CC6EF","#B5A5D6","#D6A5BD"],["#E76363","#F7AD6B","#FFD663","#94BD7B","#73A5AD","#6BADDE","#8C7BC6","#C67BA5"],["#CE0000","#E79439","#EFC631","#6BA54A","#4A7B8C","#3984C6","#634AA5","#A54A7B"],["#9C0000","#B56308","#BD9400","#397B21","#104A5A","#085294","#311873","#731842"],["#630000","#7B3900","#846300","#295218","#083139","#003163","#21104A","#4A1031"]],colorsName:[["Black","Tundora","Dove Gray","Star Dust","Pale Slate","Gallery","Alabaster","White"],["Red","Orange Peel","Yellow","Green","Cyan","Blue","Electric Violet","Magenta"],["Azalea","Karry","Egg White","Zanah","Botticelli","Tropical Blue","Mischka","Twilight"],["Tonys Pink","Peach Orange","Cream Brulee","Sprout","Casper","Perano","Cold Purple","Careys Pink"],["Mandy","Rajah","Dandelion","Olivine","Gulf Stream","Viking","Blue Marguerite","Puce"],["Guardsman Red","Fire Bush","Golden Dream","Chelsea Cucumber","Smalt Blue","Boston Blue","Butterfly Bush","Cadillac"],["Sangria","Mai Tai","Buddha Gold","Forest Green","Eden","Venice Blue","Meteorite","Claret"],["Rosewood","Cinnamon","Olive","Parsley","Tiber","Midnight Blue","Valentino","Loulou"]],colorButton:{foreColor:"#000000",backColor:"#FFFF00"},lineHeights:["1.0","1.2","1.4","1.5","1.6","1.8","2.0","3.0"],tableClassName:"table table-bordered",insertTableMaxSize:{col:10,row:10},dialogsInBody:!1,dialogsFade:!1,maximumImageFileSize:null,callbacks:{onBeforeCommand:null,onBlur:null,onBlurCodeview:null,onChange:null,onChangeCodeview:null,onDialogShown:null,onEnter:null,onFocus:null,onImageLinkInsert:null,onImageUpload:null,onImageUploadError:null,onInit:null,onKeydown:null,onKeyup:null,onMousedown:null,onMouseup:null,onPaste:null,onScroll:null},codemirror:{mode:"text/html",htmlMode:!0,lineNumbers:!0},codeviewFilter:!1,codeviewFilterRegex:/<\/*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|ilayer|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|t(?:itle|extarea)|xml)[^>]*?>/gi,codeviewIframeFilter:!0,codeviewIframeWhitelistSrc:[],codeviewIframeWhitelistSrcBase:["www.youtube.com","www.youtube-nocookie.com","www.facebook.com","vine.co","instagram.com","player.vimeo.com","www.dailymotion.com","player.youku.com","v.qq.com"],keyMap:{pc:{ESC:"escape",ENTER:"insertParagraph","CTRL+Z":"undo","CTRL+Y":"redo",TAB:"tab","SHIFT+TAB":"untab","CTRL+B":"bold","CTRL+I":"italic","CTRL+U":"underline","CTRL+SHIFT+S":"strikethrough","CTRL+BACKSLASH":"removeFormat","CTRL+SHIFT+L":"justifyLeft","CTRL+SHIFT+E":"justifyCenter","CTRL+SHIFT+R":"justifyRight","CTRL+SHIFT+J":"justifyFull","CTRL+SHIFT+NUM7":"insertUnorderedList","CTRL+SHIFT+NUM8":"insertOrderedList","CTRL+LEFTBRACKET":"outdent","CTRL+RIGHTBRACKET":"indent","CTRL+NUM0":"formatPara","CTRL+NUM1":"formatH1","CTRL+NUM2":"formatH2","CTRL+NUM3":"formatH3","CTRL+NUM4":"formatH4","CTRL+NUM5":"formatH5","CTRL+NUM6":"formatH6","CTRL+ENTER":"insertHorizontalRule","CTRL+K":"linkDialog.show"},mac:{ESC:"escape",ENTER:"insertParagraph","CMD+Z":"undo","CMD+SHIFT+Z":"redo",TAB:"tab","SHIFT+TAB":"untab","CMD+B":"bold","CMD+I":"italic","CMD+U":"underline","CMD+SHIFT+S":"strikethrough","CMD+BACKSLASH":"removeFormat","CMD+SHIFT+L":"justifyLeft","CMD+SHIFT+E":"justifyCenter","CMD+SHIFT+R":"justifyRight","CMD+SHIFT+J":"justifyFull","CMD+SHIFT+NUM7":"insertUnorderedList","CMD+SHIFT+NUM8":"insertOrderedList","CMD+LEFTBRACKET":"outdent","CMD+RIGHTBRACKET":"indent","CMD+NUM0":"formatPara","CMD+NUM1":"formatH1","CMD+NUM2":"formatH2","CMD+NUM3":"formatH3","CMD+NUM4":"formatH4","CMD+NUM5":"formatH5","CMD+NUM6":"formatH6","CMD+ENTER":"insertHorizontalRule","CMD+K":"linkDialog.show"}},icons:{align:"note-icon-align",alignCenter:"note-icon-align-center",alignJustify:"note-icon-align-justify",alignLeft:"note-icon-align-left",alignRight:"note-icon-align-right",rowBelow:"note-icon-row-below",colBefore:"note-icon-col-before",colAfter:"note-icon-col-after",rowAbove:"note-icon-row-above",rowRemove:"note-icon-row-remove",colRemove:"note-icon-col-remove",indent:"note-icon-align-indent",outdent:"note-icon-align-outdent",arrowsAlt:"note-icon-arrows-alt",bold:"note-icon-bold",caret:"note-icon-caret",circle:"note-icon-circle",close:"note-icon-close",code:"note-icon-code",eraser:"note-icon-eraser",floatLeft:"note-icon-float-left",floatRight:"note-icon-float-right",font:"note-icon-font",frame:"note-icon-frame",italic:"note-icon-italic",link:"note-icon-link",unlink:"note-icon-chain-broken",magic:"note-icon-magic",menuCheck:"note-icon-menu-check",minus:"note-icon-minus",orderedlist:"note-icon-orderedlist",pencil:"note-icon-pencil",picture:"note-icon-picture",question:"note-icon-question",redo:"note-icon-redo",rollback:"note-icon-rollback",square:"note-icon-square",strikethrough:"note-icon-strikethrough",subscript:"note-icon-subscript",superscript:"note-icon-superscript",table:"note-icon-table",textHeight:"note-icon-text-height",trash:"note-icon-trash",underline:"note-icon-underline",undo:"note-icon-undo",unorderedlist:"note-icon-unorderedlist",video:"note-icon-video"}}})},5:function(t,e,i){},53:function(t,e,i){"use strict";i.r(e);var n=i(0),a=i.n(n),r=i(1);function o(t){return(o="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)}var s=r.a.create('<div class="note-editor note-frame card"/>'),l=r.a.create('<div class="note-toolbar card-header" role="toolbar"/>'),c=r.a.create('<div class="note-editing-area"/>'),u=r.a.create('<textarea class="note-codable" aria-multiline="true"/>'),d=r.a.create('<div class="note-editable card-block" contentEditable="true" role="textbox" aria-multiline="true"/>'),h=r.a.create(['<output class="note-status-output" role="status" aria-live="polite"></output>','<div class="note-statusbar" role="status">','<div class="note-resizebar" aria-label="Resize">','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>','<div class="note-icon-bar"></div>',"</div>","</div>"].join("")),f=r.a.create('<div class="note-editor note-airframe"/>'),p=r.a.create(['<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"></div>','<output class="note-status-output" role="status" aria-live="polite"></output>'].join("")),m=r.a.create('<div class="note-btn-group btn-group">'),g=r.a.create('<div class="note-dropdown-menu dropdown-menu" role="list">',(function(t,e){var i=Array.isArray(e.items)?e.items.map((function(t){var i="string"==typeof t?t:t.value||"",n=e.template?e.template(t):t,a="object"===o(t)?t.option:void 0;return'<a class="dropdown-item" href="#" '+('data-value="'+i+'"'+(void 0!==a?' data-option="'+a+'"':""))+' role="listitem" aria-label="'+i+'">'+n+"</a>"})).join(""):e.items;t.html(i).attr({"aria-label":e.title}),e&&e.codeviewKeepButton&&t.addClass("note-codeview-keep")})),v=function(t){return t},y=r.a.create('<div class="note-dropdown-menu dropdown-menu note-check" role="list">',(function(t,e){var i=Array.isArray(e.items)?e.items.map((function(t){var i="string"==typeof t?t:t.value||"",n=e.template?e.template(t):t;return'<a class="dropdown-item" href="#" data-value="'+i+'" role="listitem" aria-label="'+t+'">'+w(e.checkClassName)+" "+n+"</a>"})).join(""):e.items;t.html(i).attr({"aria-label":e.title}),e&&e.codeviewKeepButton&&t.addClass("note-codeview-keep")})),b=r.a.create('<div class="modal note-modal" aria-hidden="false" tabindex="-1" role="dialog"/>',(function(t,e){e.fade&&t.addClass("fade"),t.attr({"aria-label":e.title}),t.html(['<div class="modal-dialog">','<div class="modal-content">',e.title?'<div class="modal-header"><h4 class="modal-title">'+e.title+'</h4><button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true">&times;</button></div>':"",'<div class="modal-body">'+e.body+"</div>",e.footer?'<div class="modal-footer">'+e.footer+"</div>":"","</div>","</div>"].join(""))})),_=r.a.create(['<div class="note-popover popover in">','<div class="arrow"></div>','<div class="popover-content note-children-container"></div>',"</div>"].join(""),(function(t,e){var i=void 0!==e.direction?e.direction:"bottom";t.addClass(i),e.hideArrow&&t.find(".arrow").hide()})),x=r.a.create('<div class="form-check"></div>',(function(t,e){t.html(['<label class="form-check-label"'+(e.id?' for="note-'+e.id+'"':"")+">",'<input type="checkbox" class="form-check-input"'+(e.id?' id="note-'+e.id+'"':""),e.checked?" checked":"",' aria-label="'+(e.text?e.text:"")+'"',' aria-checked="'+(e.checked?"true":"false")+'"/>'," "+(e.text?e.text:"")+"</label>"].join(""))})),w=function(t,e){return"<"+(e=e||"i")+' class="'+t+'"></'+e+">"},k=function(t){return{editor:s,toolbar:l,editingArea:c,codable:u,editable:d,statusbar:h,airEditor:f,airEditable:p,buttonGroup:m,dropdown:g,dropdownButtonContents:v,dropdownCheck:y,dialog:b,popover:_,icon:w,checkbox:x,options:t,palette:function(e,i){return r.a.create('<div class="note-color-palette"/>',(function(e,i){for(var n=[],a=0,r=i.colors.length;a<r;a++){for(var o=i.eventName,s=i.colors[a],l=i.colorsName[a],c=[],u=0,d=s.length;u<d;u++){var h=s[u],f=l[u];c.push(['<button type="button" class="note-color-btn"','style="background-color:',h,'" ','data-event="',o,'" ','data-value="',h,'" ','title="',f,'" ','aria-label="',f,'" ','data-toggle="button" tabindex="-1"></button>'].join(""))}n.push('<div class="note-color-row">'+c.join("")+"</div>")}e.html(n.join("")),i.tooltip&&e.find(".note-color-btn").tooltip({container:i.container||t.container,trigger:"hover",placement:"bottom"})}))(e,i)},button:function(e,i){return r.a.create('<button type="button" class="note-btn btn btn-light btn-sm" tabindex="-1">',(function(e,i){i&&i.tooltip&&e.attr({title:i.tooltip,"aria-label":i.tooltip}).tooltip({container:i.container||t.container,trigger:"hover",placement:"bottom"}).on("click",(function(t){a()(t.currentTarget).tooltip("hide")})),i&&i.codeviewButton&&e.addClass("note-codeview-keep")}))(e,i)},toggleBtn:function(t,e){t.toggleClass("disabled",!e),t.attr("disabled",!e)},toggleBtnActive:function(t,e){t.toggleClass("active",e)},onDialogShown:function(t,e){t.one("shown.bs.modal",e)},onDialogHidden:function(t,e){t.one("hidden.bs.modal",e)},showDialog:function(t){t.modal("show")},hideDialog:function(t){t.modal("hide")},createLayout:function(e){var i=(t.airMode?f([c([u(),p()])]):"bottom"===t.toolbarPosition?s([c([u(),d()]),l(),h()]):s([l(),c([u(),d()]),h()])).render();return i.insertAfter(e),{note:e,editor:i,toolbar:i.find(".note-toolbar"),editingArea:i.find(".note-editing-area"),editable:i.find(".note-editable"),codable:i.find(".note-codable"),statusbar:i.find(".note-statusbar")}},removeLayout:function(t,e){t.html(e.editable.html()),e.editor.remove(),t.show()}}};i(3),i(5);a.a.summernote=a.a.extend(a.a.summernote,{ui_template:k,interface:"bs4"}),a.a.summernote.options.styleTags=["p",{title:"Blockquote",tag:"blockquote",className:"blockquote",value:"blockquote"},"pre","h1","h2","h3","h4","h5","h6"]}})})),function(t){var e=t.Markdown=function(t){switch(typeof t){case"undefined":this.dialect=e.dialects.Gruber;break;case"object":this.dialect=t;break;default:if(!(t in e.dialects))throw new Error("Unknown Markdown dialect '"+String(t)+"'");this.dialect=e.dialects[t]}this.em_state=[],this.strong_state=[],this.debug_indent=""};function i(){return"Markdown.mk_block( "+uneval(this.toString())+", "+uneval(this.trailing)+", "+uneval(this.lineNumber)+" )"}function n(){var t=require("util");return"Markdown.mk_block( "+t.inspect(this.toString())+", "+t.inspect(this.trailing)+", "+t.inspect(this.lineNumber)+" )"}t.parse=function(t,i){return new e(i).toTree(t)},t.toHTML=function(e,i,n){var a=t.toHTMLTree(e,i,n);return t.renderJsonML(a)},t.toHTMLTree=function(t,e,i){"string"==typeof t&&(t=this.parse(t,e));var n=d(t),a={};n&&n.references&&(a=n.references);var r=m(t,a,i);return g(r),r};var r=e.mk_block=function(t,e,a){1==arguments.length&&(e="\n\n");var r=new String(t);return r.trailing=e,r.inspect=n,r.toSource=i,null!=a&&(r.lineNumber=a),r};function o(t){for(var e=0,i=-1;-1!==(i=t.indexOf("\n",i+1));)e++;return e}function s(t,e){var i=t+"_state",n="strong"==t?"em_state":"strong_state";function a(t){this.len_after=t,this.name="close_"+e}return function(r,o){if(this[i][0]==e)return this[i].shift(),[r.length,new a(r.length-e.length)];var s=this[n].slice(),l=this[i].slice();this[i].unshift(e);var c=this.processInline(r.substr(e.length)),u=c[c.length-1];this[i].shift();return u instanceof a?(c.pop(),[r.length-u.len_after,[t].concat(c)]):(this[n]=s,this[i]=l,[e.length,e])}}e.prototype.split_blocks=function(t,e){t=t.replace(/(\r\n|\n|\r)/g,"\n");var i,n=/([\s\S]+?)($|\n#|\n(?:\s*\n|$)+)/g,a=[],s=1;for(null!=(i=/^(\s*\n)/.exec(t))&&(s+=o(i[0]),n.lastIndex=i[0].length);null!==(i=n.exec(t));)"\n#"==i[2]&&(i[2]="\n",n.lastIndex--),a.push(r(i[1],i[2],s)),s+=o(i[0]);return a},e.prototype.processBlock=function(t,e){var i=this.dialect.block,n=i.__order__;if("__call__"in i)return i.__call__.call(this,t,e);for(var a=0;a<n.length;a++){var r=i[n[a]].call(this,t,e);if(r)return(!c(r)||r.length>0&&!c(r[0]))&&this.debug(n[a],"didn't return a proper array"),r}return[]},e.prototype.processInline=function(t){return this.dialect.inline.__call__.call(this,String(t))},e.prototype.toTree=function(t,e){var i=t instanceof Array?t:this.split_blocks(t),n=this.tree;try{for(this.tree=e||this.tree||["markdown"];i.length;){var a=this.processBlock(i.shift(),i);a.length&&this.tree.push.apply(this.tree,a)}return this.tree}finally{e&&(this.tree=n)}},e.prototype.debug=function(){var t=Array.prototype.slice.call(arguments);t.unshift(this.debug_indent),"undefined"!=typeof print&&print.apply(print,t),"undefined"!=typeof console&&void 0!==console.log&&console.log.apply(null,t)},e.prototype.loop_re_over_block=function(t,e,i){for(var n,a=e.valueOf();a.length&&null!=(n=t.exec(a));)a=a.substr(n[0].length),i.call(this,n);return a},e.dialects={},e.dialects.Gruber={block:{atxHeader:function(t,e){var i=t.match(/^(#{1,6})\s*(.*?)\s*#*\s*(?:\n|$)/);if(i){var n=["header",{level:i[1].length}];return Array.prototype.push.apply(n,this.processInline(i[2])),i[0].length<t.length&&e.unshift(r(t.substr(i[0].length),t.trailing,t.lineNumber+2)),[n]}},setextHeader:function(t,e){var i=t.match(/^(.*)\n([-=])\2\2+(?:\n|$)/);if(i){var n=["header",{level:"="===i[2]?1:2},i[1]];return i[0].length<t.length&&e.unshift(r(t.substr(i[0].length),t.trailing,t.lineNumber+2)),[n]}},code:function(t,e){var i=[],n=/^(?: {0,3}\t| {4})(.*)\n?/;if(t.match(n)){t:for(;;){var a=this.loop_re_over_block(n,t.valueOf(),(function(t){i.push(t[1])}));if(a.length){e.unshift(r(a,t.trailing));break t}if(!e.length)break t;if(!e[0].match(n))break t;i.push(t.trailing.replace(/[^\n]/g,"").substring(2)),t=e.shift()}return[["code_block",i.join("\n")]]}},horizRule:function(t,e){var i=t.match(/^(?:([\s\S]*?)\n)?[ \t]*([-_*])(?:[ \t]*\2){2,}[ \t]*(?:\n([\s\S]*))?$/);if(i){var n=[["hr"]];return i[1]&&n.unshift.apply(n,this.processBlock(i[1],[])),i[3]&&e.unshift(r(i[3])),n}},lists:function(){var t="[*+-]|\\d+\\.",e=/[*+-]/,i=new RegExp("^( {0,3})([*+-]|\\d+\\.)[ \t]+"),n="(?: {0,3}\\t| {4})";function a(t,e,i,n){if(e)t.push(["para"].concat(i));else{var a=t[t.length-1]instanceof Array&&"para"==t[t.length-1][0]?t[t.length-1]:t;n&&t.length>1&&i.unshift(n);for(var r=0;r<i.length;r++){var o=i[r];"string"==typeof o&&a.length>1&&"string"==typeof a[a.length-1]?a[a.length-1]+=o:a.push(o)}}}function o(t,e){for(var i=new RegExp("^("+n+"{"+t+"}.*?\\n?)*$"),a=new RegExp("^"+n+"{"+t+"}","gm"),o=[];e.length>0&&i.exec(e[0]);){var s=e.shift(),l=s.replace(a,"");o.push(r(l,s.trailing,s.lineNumber))}return o}function s(t,e,i){var n=t.list,a=n[n.length-1];if(!(a[1]instanceof Array&&"para"==a[1][0]))if(e+1==i.length)a.push(["para"].concat(a.splice(1,a.length-1)));else{var r=a.pop();a.push(["para"].concat(a.splice(1,a.length-1)),r)}}return function(r,c){var u=r.match(i);if(u){for(var d,h,f,p=[],m=A(u),g=!1,v=[p[0].list];;){for(var y=r.split(/(?=\n)/),b="",_=0;_<y.length;_++){var x="",w=y[_].replace(/^\n/,(function(t){return x=t,""})),k=(f=p.length,new RegExp("(?:^("+n+"{0,"+f+"} {0,3})("+t+")\\s+)|(^"+n+"{0,"+(f-1)+"}[ ]{0,4})"));if(void 0!==(u=w.match(k))[1]){b.length&&(a(d,g,this.processInline(b),x),g=!1,b=""),u[1]=u[1].replace(/ {0,3}\t/g,"    ");var S=Math.floor(u[1].length/4)+1;if(S>p.length)m=A(u),d.push(m),d=m[1]=["listitem"];else{var M=!1;for(h=0;h<p.length;h++)if(p[h].indent==u[1]){m=p[h].list,p.splice(h+1,p.length-(h+1)),M=!0;break}M||(++S<=p.length?(p.splice(S,p.length-S),m=p[S-1].list):(m=A(u),d.push(m))),d=["listitem"],m.push(d)}x=""}w.length>u[0].length&&(b+=x+w.substr(u[0].length))}b.length&&(a(d,g,this.processInline(b),x),g=!1,b="");var L=o(p.length,c);L.length>0&&(l(p,s,this),d.push.apply(d,this.toTree(L,[])));var T=c[0]&&c[0].valueOf()||"";if(!T.match(i)&&!T.match(/^ /))break;r=c.shift();var C=this.dialect.block.horizRule(r,c);if(C){v.push.apply(v,C);break}l(p,s,this),g=!0}return v}function A(t){var i=e.exec(t[2])?["bulletlist"]:["numberlist"];return p.push({list:i,indent:t[1]}),i}}}(),blockquote:function(t,e){if(t.match(/^>/m)){var i=[];if(">"!=t[0]){for(var n=t.split(/\n/),a=[],o=t.lineNumber;n.length&&">"!=n[0][0];)a.push(n.shift()),o++;var s=r(a.join("\n"),"\n",t.lineNumber);i.push.apply(i,this.processBlock(s,[])),t=r(n.join("\n"),t.trailing,o)}for(;e.length&&">"==e[0][0];){var l=e.shift();t=r(t+t.trailing+l,l.trailing,t.lineNumber)}var c=t.replace(/^> ?/gm,""),h=(this.tree,this.toTree(c,["blockquote"])),f=d(h);return f&&f.references&&(delete f.references,u(f)&&h.splice(1,1)),i.push(h),i}},referenceDefn:function(t,e){var i=/^\s*\[(.*?)\]:\s*(\S+)(?:\s+(?:(['"])(.*?)\3|\((.*?)\)))?\n?/;if(t.match(i)){d(this.tree)||this.tree.splice(1,0,{});var n=d(this.tree);void 0===n.references&&(n.references={});var a=this.loop_re_over_block(i,t,(function(t){t[2]&&"<"==t[2][0]&&">"==t[2][t[2].length-1]&&(t[2]=t[2].substring(1,t[2].length-1));var e=n.references[t[1].toLowerCase()]={href:t[2]};void 0!==t[4]?e.title=t[4]:void 0!==t[5]&&(e.title=t[5])}));return a.length&&e.unshift(r(a,t.trailing)),[]}},para:function(t,e){return[["para"].concat(this.processInline(t))]}}},e.dialects.Gruber.inline={__oneElement__:function(t,e,i){var n,a;return e=e||this.dialect.inline.__patterns__,(n=new RegExp("([\\s\\S]*?)("+(e.source||e)+")").exec(t))?n[1]?[n[1].length,n[1]]:(n[2]in this.dialect.inline&&(a=this.dialect.inline[n[2]].call(this,t.substr(n.index),n,i||[])),a=a||[n[2].length,n[2]]):[t.length,t]},__call__:function(t,e){var i,n=[];function a(t){"string"==typeof t&&"string"==typeof n[n.length-1]?n[n.length-1]+=t:n.push(t)}for(;t.length>0;)i=this.dialect.inline.__oneElement__.call(this,t,e,n),t=t.substr(i.shift()),l(i,a);return n},"]":function(){},"}":function(){},__escape__:/^\\[\\`\*_{}\[\]()#\+.!\-]/,"\\":function(t){return this.dialect.inline.__escape__.exec(t)?[2,t.charAt(1)]:[1,"\\"]},"![":function(t){var e=t.match(/^!\[(.*?)\][ \t]*\([ \t]*([^")]*?)(?:[ \t]+(["'])(.*?)\3)?[ \t]*\)/);if(e){e[2]&&"<"==e[2][0]&&">"==e[2][e[2].length-1]&&(e[2]=e[2].substring(1,e[2].length-1)),e[2]=this.dialect.inline.__call__.call(this,e[2],/\\/)[0];var i={alt:e[1],href:e[2]||""};return void 0!==e[4]&&(i.title=e[4]),[e[0].length,["img",i]]}return(e=t.match(/^!\[(.*?)\][ \t]*\[(.*?)\]/))?[e[0].length,["img_ref",{alt:e[1],ref:e[2].toLowerCase(),original:e[0]}]]:[2,"!["]},"[":function(t){var i=String(t),n=e.DialectHelpers.inline_until_char.call(this,t.substr(1),"]");if(!n)return[1,"["];var a,r,o=1+n[0],s=n[1],l=(t=t.substr(o)).match(/^\s*\([ \t]*([^"']*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/);if(l){var c=l[1];if(o+=l[0].length,c&&"<"==c[0]&&">"==c[c.length-1]&&(c=c.substring(1,c.length-1)),!l[3])for(var u=1,d=0;d<c.length;d++)switch(c[d]){case"(":u++;break;case")":0==--u&&(o-=c.length-d,c=c.substring(0,d))}return r={href:(c=this.dialect.inline.__call__.call(this,c,/\\/)[0])||""},void 0!==l[3]&&(r.title=l[3]),a=["link",r].concat(s),[o,a]}return(l=t.match(/^\s*\[(.*?)\]/))?(o+=l[0].length,a=["link_ref",r={ref:(l[1]||String(s)).toLowerCase(),original:i.substr(0,o)}].concat(s),[o,a]):1==s.length&&"string"==typeof s[0]?(a=["link_ref",r={ref:s[0].toLowerCase(),original:i.substr(0,o)},s[0]],[o,a]):[1,"["]},"<":function(t){var e;return null!=(e=t.match(/^<(?:((https?|ftp|mailto):[^>]+)|(.*?@.*?\.[a-zA-Z]+))>/))?e[3]?[e[0].length,["link",{href:"mailto:"+e[3]},e[3]]]:"mailto"==e[2]?[e[0].length,["link",{href:e[1]},e[1].substr("mailto:".length)]]:[e[0].length,["link",{href:e[1]},e[1]]]:[1,"<"]},"`":function(t){var e=t.match(/(`+)(([\s\S]*?)\1)/);return e&&e[2]?[e[1].length+e[2].length,["inlinecode",e[3]]]:[1,"`"]},"  \n":function(t){return[3,["linebreak"]]}},e.dialects.Gruber.inline["**"]=s("strong","**"),e.dialects.Gruber.inline.__=s("strong","__"),e.dialects.Gruber.inline["*"]=s("em","*"),e.dialects.Gruber.inline._=s("em","_"),e.buildBlockOrder=function(t){var e=[];for(var i in t)"__order__"!=i&&"__call__"!=i&&e.push(i);t.__order__=e},e.buildInlinePatterns=function(t){var e=[];for(var i in t)if(!i.match(/^__.*__$/)){var n=i.replace(/([\\.*+?|()\[\]{}])/g,"\\$1").replace(/\n/,"\\n");e.push(1==i.length?n:"(?:"+n+")")}e=e.join("|"),t.__patterns__=e;var a=t.__call__;t.__call__=function(t,i){return null!=i?a.call(this,t,i):a.call(this,t,e)}},e.DialectHelpers={},e.DialectHelpers.inline_until_char=function(t,e){for(var i=0,n=[];;){if(t.charAt(i)==e)return[++i,n];if(i>=t.length)return null;var a=this.dialect.inline.__oneElement__.call(this,t.substr(i));i+=a[0],n.push.apply(n,a.slice(1))}},e.subclassDialect=function(t){function e(){}function i(){}return e.prototype=t.block,i.prototype=t.inline,{block:new e,inline:new i}},e.buildBlockOrder(e.dialects.Gruber.block),e.buildInlinePatterns(e.dialects.Gruber.inline),e.dialects.Maruku=e.subclassDialect(e.dialects.Gruber),e.dialects.Maruku.processMetaHash=function(t){for(var e=function(t){var e=t.split(""),i=[""],n=!1;for(;e.length;){var a=e.shift();switch(a){case" ":n?i[i.length-1]+=a:i.push("");break;case"'":case'"':n=!n;break;case"\\":a=e.shift();default:i[i.length-1]+=a}}return i}(t),i={},n=0;n<e.length;++n)if(/^#/.test(e[n]))i.id=e[n].substring(1);else if(/^\./.test(e[n]))i.class?i.class=i.class+e[n].replace(/./," "):i.class=e[n].substring(1);else if(/\=/.test(e[n])){var a=e[n].split(/\=/);i[a[0]]=a[1]}return i},e.dialects.Maruku.block.document_meta=function(t,e){if(!(t.lineNumber>1)&&t.match(/^(?:\w+:.*\n)*\w+:.*$/)){d(this.tree)||this.tree.splice(1,0,{});var i=t.split(/\n/);for(p in i){var n=i[p].match(/(\w+):\s*(.*)$/),a=n[1].toLowerCase(),r=n[2];this.tree[1][a]=r}return[]}},e.dialects.Maruku.block.block_meta=function(t,e){var i=t.match(/(^|\n) {0,3}\{:\s*((?:\\\}|[^\}])*)\s*\}$/);if(i){var n,r=this.dialect.processMetaHash(i[2]);if(""===i[1]){var o=this.tree[this.tree.length-1];if(n=d(o),"string"==typeof o)return;for(a in n||(n={},o.splice(1,0,n)),r)n[a]=r[a];return[]}var s=t.replace(/\n.*$/,""),l=this.processBlock(s,[]);for(a in(n=d(l[0]))||(n={},l[0].splice(1,0,n)),r)n[a]=r[a];return l}},e.dialects.Maruku.block.definition_list=function(t,e){var i,n=/^((?:[^\s:].*\n)+):\s+([\s\S]+)$/,a=["dl"];if(s=t.match(n)){for(var r=[t];e.length&&n.exec(e[0]);)r.push(e.shift());for(var o=0;o<r.length;++o){var s,l=(s=r[o].match(n))[1].replace(/\n$/,"").split(/\n/),c=s[2].split(/\n:\s+/);for(i=0;i<l.length;++i)a.push(["dt",l[i]]);for(i=0;i<c.length;++i)a.push(["dd"].concat(this.processInline(c[i].replace(/(\n)\s+/,"$1"))))}return[a]}},e.dialects.Maruku.block.table=function(t,e){var i,n,a=function(t,e){(e=e||"\\s").match(/^[\\|\[\]{}?*.+^$]$/)&&(e="\\"+e);for(var i,n=[],a=new RegExp("^((?:\\\\.|[^\\\\"+e+"])*)"+e+"(.*)");i=t.match(a);)n.push(i[1]),t=i[2];return n.push(t),n};if(n=t.match(/^ {0,3}\|(.+)\n {0,3}\|\s*([\-:]+[\-| :]*)\n((?:\s*\|.*(?:\n|$))*)(?=\n|$)/))n[3]=n[3].replace(/^\s*\|/gm,"");else if(!(n=t.match(/^ {0,3}(\S(?:\\.|[^\\|])*\|.*)\n {0,3}([\-:]+\s*\|[\-| :]*)\n((?:(?:\\.|[^\\|])*\|.*(?:\n|$))*)(?=\n|$)/)))return;var r=["table",["thead",["tr"]],["tbody"]];n[2]=n[2].replace(/\|\s*$/,"").split("|");var o=[];for(l(n[2],(function(t){t.match(/^\s*-+:\s*$/)?o.push({align:"right"}):t.match(/^\s*:-+\s*$/)?o.push({align:"left"}):t.match(/^\s*:-+:\s*$/)?o.push({align:"center"}):o.push({})})),n[1]=a(n[1].replace(/\|\s*$/,""),"|"),i=0;i<n[1].length;i++)r[1][1].push(["th",o[i]||{}].concat(this.processInline(n[1][i].trim())));return l(n[3].replace(/\|\s*$/gm,"").split("\n"),(function(t){var e=["tr"];for(t=a(t,"|"),i=0;i<t.length;i++)e.push(["td",o[i]||{}].concat(this.processInline(t[i].trim())));r[2].push(e)}),this),[r]},e.dialects.Maruku.inline["{:"]=function(t,e,i){if(!i.length)return[2,"{:"];var n=i[i.length-1];if("string"==typeof n)return[2,"{:"];var a=t.match(/^\{:\s*((?:\\\}|[^\}])*)\s*\}/);if(!a)return[2,"{:"];var r=this.dialect.processMetaHash(a[1]),o=d(n);for(var s in o||(o={},n.splice(1,0,o)),r)o[s]=r[s];return[a[0].length,""]},e.dialects.Maruku.inline.__escape__=/^\\[\\`\*_{}\[\]()#\+.!\-|:]/,e.buildBlockOrder(e.dialects.Maruku.block),e.buildInlinePatterns(e.dialects.Maruku.inline);var l,c=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)};l=Array.prototype.forEach?function(t,e,i){return t.forEach(e,i)}:function(t,e,i){for(var n=0;n<t.length;n++)e.call(i||t,t[n],n,t)};var u=function(t){for(var e in t)if(hasOwnProperty.call(t,e))return!1;return!0};function d(t){return c(t)&&t.length>1&&"object"==typeof t[1]&&!c(t[1])?t[1]:void 0}function h(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function f(t){if("string"==typeof t)return h(t);var e=t.shift(),i={},n=[];for(!t.length||"object"!=typeof t[0]||t[0]instanceof Array||(i=t.shift());t.length;)n.push(f(t.shift()));var a="";for(var r in i)a+=" "+r+'="'+h(i[r])+'"';return"img"==e||"br"==e||"hr"==e?"<"+e+a+"/>":"<"+e+a+">"+n.join("")+"</"+e+">"}function m(t,e,i){var n;i=i||{};var a=t.slice(0);"function"==typeof i.preprocessTreeNode&&(a=i.preprocessTreeNode(a,e));var r=d(a);if(r){for(n in a[1]={},r)a[1][n]=r[n];r=a[1]}if("string"==typeof a)return a;switch(a[0]){case"header":a[0]="h"+a[1].level,delete a[1].level;break;case"bulletlist":a[0]="ul";break;case"numberlist":a[0]="ol";break;case"listitem":a[0]="li";break;case"para":a[0]="p";break;case"markdown":a[0]="html",r&&delete r.references;break;case"code_block":a[0]="pre",n=r?2:1;var o=["code"];o.push.apply(o,a.splice(n,a.length-n)),a[n]=o;break;case"inlinecode":a[0]="code";break;case"img":a[1].src=a[1].href,delete a[1].href;break;case"linebreak":a[0]="br";break;case"link":a[0]="a";break;case"link_ref":if(a[0]="a",!(s=e[r.ref]))return r.original;delete r.ref,r.href=s.href,s.title&&(r.title=s.title),delete r.original;break;case"img_ref":var s;if(a[0]="img",!(s=e[r.ref]))return r.original;delete r.ref,r.src=s.href,s.title&&(r.title=s.title),delete r.original}if(n=1,r){for(var l in a[1]){n=2;break}1===n&&a.splice(n,1)}for(;n<a.length;++n)a[n]=m(a[n],e,i);return a}function g(t){for(var e=d(t)?2:1;e<t.length;)"string"==typeof t[e]?e+1<t.length&&"string"==typeof t[e+1]?t[e]+=t.splice(e+1,1)[0]:++e:(g(t[e]),++e)}t.renderJsonML=function(t,e){(e=e||{}).root=e.root||!1;var i=[];if(e.root)i.push(f(t));else for(t.shift(),!t.length||"object"!=typeof t[0]||t[0]instanceof Array||t.shift();t.length;)i.push(f(t.shift()));return i.join("\n\n")}}("undefined"==typeof exports?(window.markdown={},window.markdown):exports),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=function(e,i){t.each(["autofocus","savable","hideable","width","height","resize","iconlibrary","language","footer","fullscreen","hiddenButtons","disabledButtons"],(function(n,a){void 0!==t(e).data(a)&&((i="object"==typeof i?i:{})[a]=t(e).data(a))})),this.$ns="bootstrap-markdown",this.$element=t(e),this.$editable={el:null,type:null,attrKeys:[],attrValues:[],content:null},this.$options=t.extend(!0,{},t.fn.markdown.defaults,i,this.$element.data("options")),this.$oldContent=null,this.$isPreview=!1,this.$isFullscreen=!1,this.$editor=null,this.$textarea=null,this.$handler=[],this.$callback=[],this.$nextTab=[],this.showEditor()};e.prototype={constructor:e,__alterButtons:function(e,i){var n=this.$handler,a="all"==e,r=this;t.each(n,(function(t,n){!1===(!a&&n.indexOf(e)<0)&&i(r.$editor.find('button[data-handler="'+n+'"]'))}))},__buildButtons:function(e,i){var n,a=this.$ns,r=this.$handler,o=this.$callback;for(n=0;n<e.length;n++){var s,l=e[n];for(s=0;s<l.length;s++){var c,u=l[s].data,d=t("<div/>",{class:"btn-group"});for(c=0;c<u.length;c++){var h,f,p=u[c],m=a+"-"+p.name,g=this.__getIcon(p.icon),v=p.btnText?p.btnText:"",y=p.btnClass?p.btnClass:"btn",b=p.tabIndex?p.tabIndex:"-1",_=void 0!==p.hotkey?p.hotkey:"",x=void 0!==jQuery.hotkeys&&""!==_?" ("+_+")":"";(h=t("<button></button>")).text(" "+this.__localize(v)).addClass("btn-default btn-sm").addClass(y),y.match(/btn\-(primary|success|info|warning|danger|link)/)&&h.removeClass("btn-default"),h.attr({type:"button",title:this.__localize(p.title)+x,tabindex:b,"data-provider":a,"data-handler":m,"data-hotkey":_}),!0===p.toggle&&h.attr("data-toggle","button"),(f=t("<span/>")).addClass(g),f.prependTo(h),d.append(h),r.push(m),o.push(p.callback)}i.append(d)}}return i},__setListener:function(){var e=void 0!==this.$textarea.attr("rows"),i=this.$textarea.val().split("\n").length>5?this.$textarea.val().split("\n").length:"5",n=e?this.$textarea.attr("rows"):i;this.$textarea.attr("rows",n),this.$options.resize&&this.$textarea.css("resize",this.$options.resize),this.$textarea.on({focus:t.proxy(this.focus,this),keyup:t.proxy(this.keyup,this),change:t.proxy(this.change,this),select:t.proxy(this.select,this)}),this.eventSupported("keydown")&&this.$textarea.on("keydown",t.proxy(this.keydown,this)),this.eventSupported("keypress")&&this.$textarea.on("keypress",t.proxy(this.keypress,this)),this.$textarea.data("markdown",this)},__handle:function(e){var i=t(e.currentTarget),n=this.$handler,a=this.$callback,r=i.attr("data-handler"),o=a[n.indexOf(r)];t(e.currentTarget).focus(),o(this),this.change(this),r.indexOf("cmdSave")<0&&this.$textarea.focus(),e.preventDefault()},__localize:function(e){var i=t.fn.markdown.messages,n=this.$options.language;return void 0!==i&&void 0!==i[n]&&void 0!==i[n][e]?i[n][e]:e},__getIcon:function(t){return"object"==typeof t?t[this.$options.iconlibrary]:t},setFullscreen:function(e){var i=this.$editor,n=this.$textarea;!0===e?(i.addClass("md-fullscreen-mode"),t("body").addClass("md-nooverflow"),this.$options.onFullscreen(this)):(i.removeClass("md-fullscreen-mode"),t("body").removeClass("md-nooverflow"),1==this.$isPreview&&this.hidePreview().showPreview()),this.$isFullscreen=e,n.focus()},showEditor:function(){var e,i=this,n=this.$ns,a=this.$element,r=(a.css("height"),a.css("width"),this.$editable),o=this.$handler,s=this.$callback,l=this.$options,c=t("<div/>",{class:"md-editor",click:function(){i.focus()}});if(null===this.$editor){var u=t("<div/>",{class:"md-header btn-toolbar"}),d=[];if(l.buttons.length>0&&(d=d.concat(l.buttons[0])),l.additionalButtons.length>0&&t.each(l.additionalButtons[0],(function(e,i){var n=t.grep(d,(function(t,e){return t.name===i.name}));n.length>0?n[0].data=n[0].data.concat(i.data):d.push(l.additionalButtons[0][e])})),l.reorderButtonGroups.length>0&&(d=d.filter((function(t){return l.reorderButtonGroups.indexOf(t.name)>-1})).sort((function(t,e){return l.reorderButtonGroups.indexOf(t.name)<l.reorderButtonGroups.indexOf(e.name)?-1:l.reorderButtonGroups.indexOf(t.name)>l.reorderButtonGroups.indexOf(e.name)?1:0}))),d.length>0&&(u=this.__buildButtons([d],u)),l.fullscreen.enable&&u.append('<div class="md-controls"><a class="md-control md-control-fullscreen" href="#"><span class="'+this.__getIcon(l.fullscreen.icons.fullscreenOn)+'"></span></a></div>').on("click",".md-control-fullscreen",(function(t){t.preventDefault(),i.setFullscreen(!0)})),c.append(u),a.is("textarea"))a.before(c),(e=a).addClass("md-input"),c.append(e);else{var h="function"==typeof toMarkdown?toMarkdown(a.html()):a.html(),f=t.trim(h);e=t("<textarea/>",{class:"md-input",val:f}),c.append(e),r.el=a,r.type=a.prop("tagName").toLowerCase(),r.content=a.html(),t(a[0].attributes).each((function(){r.attrKeys.push(this.nodeName),r.attrValues.push(this.nodeValue)})),a.replaceWith(c)}var p,m=t("<div/>",{class:"md-footer"}),g=!1;if(l.savable){g=!0;var v="cmdSave";o.push(v),s.push(l.onSave),m.append('<button class="btn btn-success" data-provider="'+n+'" data-handler="'+'cmdSave"><i class="icon icon-white icon-ok"></i> '+this.__localize("Save")+"</button>")}if(p="function"==typeof l.footer?l.footer(this):l.footer,""!==t.trim(p)&&(g=!0,m.append(p)),g&&c.append(m),l.width&&"inherit"!==l.width&&(jQuery.isNumeric(l.width)?(c.css("display","table"),e.css("width",l.width+"px")):c.addClass(l.width)),l.height&&"inherit"!==l.height)if(jQuery.isNumeric(l.height)){var y=l.height;u&&(y=Math.max(0,y-u.outerHeight())),m&&(y=Math.max(0,y-m.outerHeight())),e.css("height",y+"px")}else c.addClass(l.height);this.$editor=c,this.$textarea=e,this.$editable=r,this.$oldContent=this.getContent(),this.__setListener(),this.$editor.attr("id",(new Date).getTime()),this.$editor.on("click",'[data-provider="bootstrap-markdown"]',t.proxy(this.__handle,this)),(this.$element.is(":disabled")||this.$element.is("[readonly]"))&&(this.$editor.addClass("md-editor-disabled"),this.disableButtons("all")),this.eventSupported("keydown")&&"object"==typeof jQuery.hotkeys&&u.find('[data-provider="bootstrap-markdown"]').each((function(){var i=t(this),n=i.attr("data-hotkey");""!==n.toLowerCase()&&e.bind("keydown",n,(function(){return i.trigger("click"),!1}))})),"preview"===l.initialstate?this.showPreview():"fullscreen"===l.initialstate&&l.fullscreen.enable&&this.setFullscreen(!0)}else this.$editor.show();return l.autofocus&&(this.$textarea.focus(),this.$editor.addClass("active")),l.fullscreen.enable&&!1!==l.fullscreen&&(this.$editor.append('<div class="md-fullscreen-controls"><a href="#" class="exit-fullscreen" title="Exit fullscreen"><span class="'+this.__getIcon(l.fullscreen.icons.fullscreenOff)+'"></span></a></div>'),this.$editor.on("click",".exit-fullscreen",(function(t){t.preventDefault(),i.setFullscreen(!1)}))),this.hideButtons(l.hiddenButtons),this.disableButtons(l.disabledButtons),l.onShow(this),this},parseContent:function(t){t=t||this.$textarea.val();return this.$options.parser?this.$options.parser(t):"object"==typeof markdown?markdown.toHTML(t):"function"==typeof marked?marked(t):t},showPreview:function(){var e,i,n=this.$options,a=this.$textarea,r=a.next(),o=t("<div/>",{class:"md-preview","data-provider":"markdown-preview"});return 1==this.$isPreview||(this.$isPreview=!0,this.disableButtons("all").enableButtons("cmdPreview"),e="string"==typeof(i=n.onPreview(this))?i:this.parseContent(),o.html(e),r&&"md-footer"==r.attr("class")?o.insertBefore(r):a.parent().append(o),o.css({width:a.outerWidth()+"px",height:a.outerHeight()+"px"}),this.$options.resize&&o.css("resize",this.$options.resize),a.hide(),o.data("markdown",this),(this.$element.is(":disabled")||this.$element.is("[readonly]"))&&(this.$editor.addClass("md-editor-disabled"),this.disableButtons("all"))),this},hidePreview:function(){return this.$isPreview=!1,this.$editor.find('div[data-provider="markdown-preview"]').remove(),this.enableButtons("all"),this.disableButtons(this.$options.disabledButtons),this.$textarea.show(),this.__setListener(),this},isDirty:function(){return this.$oldContent!=this.getContent()},getContent:function(){return this.$textarea.val()},setContent:function(t){return this.$textarea.val(t),this},findSelection:function(t){var e;if((e=this.getContent().indexOf(t))>=0&&t.length>0){var i,n=this.getSelection();return this.setSelection(e,e+t.length),i=this.getSelection(),this.setSelection(n.start,n.end),i}return null},getSelection:function(){var t=this.$textarea[0];return("selectionStart"in t&&function(){var e=t.selectionEnd-t.selectionStart;return{start:t.selectionStart,end:t.selectionEnd,length:e,text:t.value.substr(t.selectionStart,e)}}||function(){return null})()},setSelection:function(t,e){var i=this.$textarea[0];return("selectionStart"in i&&function(){i.selectionStart=t,i.selectionEnd=e}||function(){return null})()},replaceSelection:function(t){var e=this.$textarea[0];return("selectionStart"in e&&function(){return e.value=e.value.substr(0,e.selectionStart)+t+e.value.substr(e.selectionEnd,e.value.length),e.selectionStart=e.value.length,this}||function(){return e.value+=t,jQuery(e)})()},getNextTab:function(){if(0===this.$nextTab.length)return null;var t,e=this.$nextTab.shift();return"function"==typeof e?t=e():"object"==typeof e&&e.length>0&&(t=e),t},setNextTab:function(t,e){if("string"==typeof t){var i=this;this.$nextTab.push((function(){return i.findSelection(t)}))}else if("number"==typeof t&&"number"==typeof e){var n=this.getSelection();this.setSelection(t,e),this.$nextTab.push(this.getSelection()),this.setSelection(n.start,n.end)}},__parseButtonNameParam:function(t){return"string"==typeof t?t.split(" "):t},enableButtons:function(e){var i=this.__parseButtonNameParam(e),n=this;return t.each(i,(function(t,e){n.__alterButtons(i[t],(function(t){t.removeAttr("disabled")}))})),this},disableButtons:function(e){var i=this.__parseButtonNameParam(e),n=this;return t.each(i,(function(t,e){n.__alterButtons(i[t],(function(t){t.attr("disabled","disabled")}))})),this},hideButtons:function(e){var i=this.__parseButtonNameParam(e),n=this;return t.each(i,(function(t,e){n.__alterButtons(i[t],(function(t){t.addClass("hidden")}))})),this},showButtons:function(e){var i=this.__parseButtonNameParam(e),n=this;return t.each(i,(function(t,e){n.__alterButtons(i[t],(function(t){t.removeClass("hidden")}))})),this},eventSupported:function(t){var e=t in this.$element;return e||(this.$element.setAttribute(t,"return;"),e="function"==typeof this.$element[t]),e},keyup:function(t){var e=!1;switch(t.keyCode){case 40:case 38:case 16:case 17:case 18:break;case 9:var i;if(null!==(i=this.getNextTab())){var n=this;setTimeout((function(){n.setSelection(i.start,i.end)}),500),e=!0}else{var a=this.getSelection();a.start==a.end&&a.end==this.getContent().length?e=!1:(this.setSelection(this.getContent().length,this.getContent().length),e=!0)}break;case 13:e=!1;break;case 27:this.$isFullscreen&&this.setFullscreen(!1),e=!1;break;default:e=!1}e&&(t.stopPropagation(),t.preventDefault()),this.$options.onChange(this)},change:function(t){return this.$options.onChange(this),this},select:function(t){return this.$options.onSelect(this),this},focus:function(e){var i=this.$options,n=(i.hideable,this.$editor);return n.addClass("active"),t(document).find(".md-editor").each((function(){var e;t(this).attr("id")!==n.attr("id")&&(null===(e=t(this).find("textarea").data("markdown"))&&(e=t(this).find('div[data-provider="markdown-preview"]').data("markdown")),e&&e.blur())})),i.onFocus(this),this},blur:function(e){var i=this.$options,n=i.hideable,a=this.$editor,r=this.$editable;if(a.hasClass("active")||0===this.$element.parent().length){if(a.removeClass("active"),n)if(null!==r.el){var o=t("<"+r.type+"/>"),s=this.getContent(),l=this.parseContent(s);t(r.attrKeys).each((function(t,e){o.attr(r.attrKeys[t],r.attrValues[t])})),o.html(l),a.replaceWith(o)}else a.hide();i.onBlur(this)}return this}};var i=t.fn.markdown;t.fn.markdown=function(i){return this.each((function(){var n=t(this),a=n.data("markdown"),r="object"==typeof i&&i;a||n.data("markdown",a=new e(this,r))}))},t.fn.markdown.messages={},t.fn.markdown.defaults={autofocus:!1,hideable:!1,savable:!1,width:"inherit",height:"inherit",resize:"none",iconlibrary:"glyph",language:"en",initialstate:"editor",parser:null,buttons:[[{name:"groupFont",data:[{name:"cmdBold",hotkey:"Ctrl+B",title:"Bold",icon:{glyph:"glyphicon glyphicon-bold",fa:"fa fa-bold","fa-3":"icon-bold"},callback:function(t){var e,i,n=t.getSelection(),a=t.getContent();e=0===n.length?t.__localize("strong text"):n.text,"**"===a.substr(n.start-2,2)&&"**"===a.substr(n.end,2)?(t.setSelection(n.start-2,n.end+2),t.replaceSelection(e),i=n.start-2):(t.replaceSelection("**"+e+"**"),i=n.start+2),t.setSelection(i,i+e.length)}},{name:"cmdItalic",title:"Italic",hotkey:"Ctrl+I",icon:{glyph:"glyphicon glyphicon-italic",fa:"fa fa-italic","fa-3":"icon-italic"},callback:function(t){var e,i,n=t.getSelection(),a=t.getContent();e=0===n.length?t.__localize("emphasized text"):n.text,"_"===a.substr(n.start-1,1)&&"_"===a.substr(n.end,1)?(t.setSelection(n.start-1,n.end+1),t.replaceSelection(e),i=n.start-1):(t.replaceSelection("_"+e+"_"),i=n.start+1),t.setSelection(i,i+e.length)}},{name:"cmdHeading",title:"Heading",hotkey:"Ctrl+H",icon:{glyph:"glyphicon glyphicon-header",fa:"fa fa-header","fa-3":"icon-font"},callback:function(t){var e,i,n,a,r=t.getSelection(),o=t.getContent();e=0===r.length?t.__localize("heading text"):r.text+"\n",n=4,"### "===o.substr(r.start-n,n)||(n=3,"###"===o.substr(r.start-n,n))?(t.setSelection(r.start-n,r.end),t.replaceSelection(e),i=r.start-n):r.start>0&&((a=o.substr(r.start-1,1))&&"\n"!=a)?(t.replaceSelection("\n\n### "+e),i=r.start+6):(t.replaceSelection("### "+e),i=r.start+4),t.setSelection(i,i+e.length)}}]},{name:"groupLink",data:[{name:"cmdUrl",title:"URL/Link",hotkey:"Ctrl+L",icon:{glyph:"glyphicon glyphicon-link",fa:"fa fa-link","fa-3":"icon-link"},callback:function(e){var i,n,a,r=e.getSelection();e.getContent();i=0===r.length?e.__localize("enter link description here"):r.text,a=prompt(e.__localize("Insert Hyperlink"),"http://");var o=new RegExp("^((http|https)://|(mailto:)|(//))[a-z0-9]","i");if(null!==a&&""!==a&&"http://"!==a&&o.test(a)){var s=t("<div>"+a+"</div>").text();e.replaceSelection("["+i+"]("+s+")"),n=r.start+1,e.setSelection(n,n+i.length)}}},{name:"cmdImage",title:"Image",hotkey:"Ctrl+G",icon:{glyph:"glyphicon glyphicon-picture",fa:"fa fa-picture-o","fa-3":"icon-picture"},callback:function(e){var i,n,a,r=e.getSelection();e.getContent();i=0===r.length?e.__localize("enter image description here"):r.text,a=prompt(e.__localize("Insert Image Hyperlink"),"http://");var o=new RegExp("^((http|https)://|(//))[a-z0-9]","i");if(null!==a&&""!==a&&"http://"!==a&&o.test(a)){var s=t("<div>"+a+"</div>").text();e.replaceSelection("!["+i+"]("+s+' "'+e.__localize("enter image title here")+'")'),n=r.start+2,e.setNextTab(e.__localize("enter image title here")),e.setSelection(n,n+i.length)}}}]},{name:"groupMisc",data:[{name:"cmdList",hotkey:"Ctrl+U",title:"Unordered List",icon:{glyph:"glyphicon glyphicon-list",fa:"fa fa-list","fa-3":"icon-list-ul"},callback:function(e){var i,n,a=e.getSelection();e.getContent();if(0===a.length)i=e.__localize("list text here"),e.replaceSelection("- "+i),n=a.start+2;else if(a.text.indexOf("\n")<0)i=a.text,e.replaceSelection("- "+i),n=a.start+2;else{var r=[];i=(r=a.text.split("\n"))[0],t.each(r,(function(t,e){r[t]="- "+e})),e.replaceSelection("\n\n"+r.join("\n")),n=a.start+4}e.setSelection(n,n+i.length)}},{name:"cmdListO",hotkey:"Ctrl+O",title:"Ordered List",icon:{glyph:"glyphicon glyphicon-th-list",fa:"fa fa-list-ol","fa-3":"icon-list-ol"},callback:function(e){var i,n,a=e.getSelection();e.getContent();if(0===a.length)i=e.__localize("list text here"),e.replaceSelection("1. "+i),n=a.start+3;else if(a.text.indexOf("\n")<0)i=a.text,e.replaceSelection("1. "+i),n=a.start+3;else{var r=[];i=(r=a.text.split("\n"))[0],t.each(r,(function(t,e){r[t]="1. "+e})),e.replaceSelection("\n\n"+r.join("\n")),n=a.start+5}e.setSelection(n,n+i.length)}},{name:"cmdCode",hotkey:"Ctrl+K",title:"Code",icon:{glyph:"glyphicon glyphicon-asterisk",fa:"fa fa-code","fa-3":"icon-code"},callback:function(t){var e,i,n=t.getSelection(),a=t.getContent();e=0===n.length?t.__localize("code text here"):n.text,"```\n"===a.substr(n.start-4,4)&&"\n```"===a.substr(n.end,4)?(t.setSelection(n.start-4,n.end+4),t.replaceSelection(e),i=n.start-4):"`"===a.substr(n.start-1,1)&&"`"===a.substr(n.end,1)?(t.setSelection(n.start-1,n.end+1),t.replaceSelection(e),i=n.start-1):a.indexOf("\n")>-1?(t.replaceSelection("```\n"+e+"\n```"),i=n.start+4):(t.replaceSelection("`"+e+"`"),i=n.start+1),t.setSelection(i,i+e.length)}},{name:"cmdQuote",hotkey:"Ctrl+Q",title:"Quote",icon:{glyph:"glyphicon glyphicon-comment",fa:"fa fa-quote-left","fa-3":"icon-quote-left"},callback:function(e){var i,n,a=e.getSelection();e.getContent();if(0===a.length)i=e.__localize("quote here"),e.replaceSelection("> "+i),n=a.start+2;else if(a.text.indexOf("\n")<0)i=a.text,e.replaceSelection("> "+i),n=a.start+2;else{var r=[];i=(r=a.text.split("\n"))[0],t.each(r,(function(t,e){r[t]="> "+e})),e.replaceSelection("\n\n"+r.join("\n")),n=a.start+4}e.setSelection(n,n+i.length)}}]},{name:"groupUtil",data:[{name:"cmdPreview",toggle:!0,hotkey:"Ctrl+P",title:"Preview",btnText:"Preview",btnClass:"btn btn-primary btn-sm",icon:{glyph:"glyphicon glyphicon-search",fa:"fa fa-search","fa-3":"icon-search"},callback:function(t){!1===t.$isPreview?t.showPreview():t.hidePreview()}}]}]],additionalButtons:[],reorderButtonGroups:[],hiddenButtons:[],disabledButtons:[],footer:"",fullscreen:{enable:!0,icons:{fullscreenOn:{fa:"fa fa-expand",glyph:"glyphicon glyphicon-fullscreen","fa-3":"icon-resize-full"},fullscreenOff:{fa:"fa fa-compress",glyph:"glyphicon glyphicon-fullscreen","fa-3":"icon-resize-small"}}},onShow:function(t){},onPreview:function(t){},onSave:function(t){},onBlur:function(t){},onFocus:function(t){},onChange:function(t){},onFullscreen:function(t){},onSelect:function(t){}},t.fn.markdown.Constructor=e,t.fn.markdown.noConflict=function(){return t.fn.markdown=i,this};var n=function(t){var e=t;e.data("markdown")?e.data("markdown").showEditor():e.markdown()};t(document).on("click.markdown.data-api",'[data-provide="markdown-editable"]',(function(e){n(t(this)),e.preventDefault()})).on("click focusin",(function(e){var i;i=t(document.activeElement),t(document).find(".md-editor").each((function(){var e=t(this),n=i.closest(".md-editor")[0]===this,a=e.find("textarea").data("markdown")||e.find('div[data-provider="markdown-preview"]').data("markdown");a&&!n&&a.blur()}))})).ready((function(){t('textarea[data-provide="markdown"]').each((function(){n(t(this))}))}))})),$.fn.markdown.defaults.iconlibrary="fa",$.fn.markdown.defaults.buttons[0][0].data[2].icon.fa="fa fa-heading",$.fn.markdown.defaults.buttons[0][1].data[1].icon.fa="fa fa-image",$.fn.markdown.defaults.buttons[0][2].data[1].icon.fa="fa fa-list-ol",function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}((function(t){function e(e,n,a){n={content:{message:"object"==typeof n?n.message:n,title:n.title?n.title:"",icon:n.icon?n.icon:"",url:n.url?n.url:"#",target:n.target?n.target:"-"}};a=t.extend(!0,{},n,a),this.settings=t.extend(!0,{},i,a),this._defaults=i,"-"==this.settings.content.target&&(this.settings.content.target=this.settings.url_target),this.animations={start:"webkitAnimationStart oanimationstart MSAnimationStart animationstart",end:"webkitAnimationEnd oanimationend MSAnimationEnd animationend"},"number"==typeof this.settings.offset&&(this.settings.offset={x:this.settings.offset,y:this.settings.offset}),this.init()}var i={element:"body",position:null,type:"info",allow_dismiss:!0,newest_on_top:!1,showProgressbar:!1,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:1031,delay:5e3,timer:1e3,url_target:"_blank",mouse_over:null,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:"class",template:'<div data-notify="container" class="col-xs-11 col-sm-4 alert alert-{0}" role="alert"><button type="button" aria-hidden="true" class="close" data-notify="dismiss">&times;</button><span data-notify="icon"></span> <span data-notify="title">{1}</span> <span data-notify="message">{2}</span><div class="progress" data-notify="progressbar"><div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div></div><a href="{3}" target="{4}" data-notify="url"></a></div>'};String.format=function(){for(var t=arguments[0],e=1;e<arguments.length;e++)t=t.replace(RegExp("\\{"+(e-1)+"\\}","gm"),arguments[e]);return t},t.extend(e.prototype,{init:function(){var t=this;this.buildNotify(),this.settings.content.icon&&this.setIcon(),"#"!=this.settings.content.url&&this.styleURL(),this.styleDismiss(),this.placement(),this.bind(),this.notify={$ele:this.$ele,update:function(e,i){var n={};for(var e in"string"==typeof e?n[e]=i:n=e,n)switch(e){case"type":this.$ele.removeClass("alert-"+t.settings.type),this.$ele.find('[data-notify="progressbar"] > .progress-bar').removeClass("progress-bar-"+t.settings.type),t.settings.type=n[e],this.$ele.addClass("alert-"+n[e]).find('[data-notify="progressbar"] > .progress-bar').addClass("progress-bar-"+n[e]);break;case"icon":var a=this.$ele.find('[data-notify="icon"]');"class"==t.settings.icon_type.toLowerCase()?a.removeClass(t.settings.content.icon).addClass(n[e]):(a.is("img")||a.find("img"),a.attr("src",n[e]));break;case"progress":var r=t.settings.delay-t.settings.delay*(n[e]/100);this.$ele.data("notify-delay",r),this.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",n[e]).css("width",n[e]+"%");break;case"url":this.$ele.find('[data-notify="url"]').attr("href",n[e]);break;case"target":this.$ele.find('[data-notify="url"]').attr("target",n[e]);break;default:this.$ele.find('[data-notify="'+e+'"]').html(n[e])}var o=this.$ele.outerHeight()+parseInt(t.settings.spacing)+parseInt(t.settings.offset.y);t.reposition(o)},close:function(){t.close()}}},buildNotify:function(){var e=this.settings.content;this.$ele=t(String.format(this.settings.template,this.settings.type,e.title,e.message,e.url,e.target)),this.$ele.attr("data-notify-position",this.settings.placement.from+"-"+this.settings.placement.align),this.settings.allow_dismiss||this.$ele.find('[data-notify="dismiss"]').css("display","none"),(this.settings.delay<=0&&!this.settings.showProgressbar||!this.settings.showProgressbar)&&this.$ele.find('[data-notify="progressbar"]').remove()},setIcon:function(){"class"==this.settings.icon_type.toLowerCase()?this.$ele.find('[data-notify="icon"]').addClass(this.settings.content.icon):this.$ele.find('[data-notify="icon"]').is("img")?this.$ele.find('[data-notify="icon"]').attr("src",this.settings.content.icon):this.$ele.find('[data-notify="icon"]').append('<img src="'+this.settings.content.icon+'" alt="Notify Icon" />')},styleDismiss:function(){this.$ele.find('[data-notify="dismiss"]').css({position:"absolute",right:"10px",top:"5px",zIndex:this.settings.z_index+2})},styleURL:function(){this.$ele.find('[data-notify="url"]').css({backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",height:"100%",left:"0px",position:"absolute",top:"0px",width:"100%",zIndex:this.settings.z_index+1})},placement:function(){var e=this,i=this.settings.offset.y,n={display:"inline-block",margin:"0px auto",position:this.settings.position?this.settings.position:"body"===this.settings.element?"fixed":"absolute",transition:"all .5s ease-in-out",zIndex:this.settings.z_index},a=!1,r=this.settings;switch(t('[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])').each((function(){return i=Math.max(i,parseInt(t(this).css(r.placement.from))+parseInt(t(this).outerHeight())+parseInt(r.spacing))})),1==this.settings.newest_on_top&&(i=this.settings.offset.y),n[this.settings.placement.from]=i+"px",this.settings.placement.align){case"left":case"right":n[this.settings.placement.align]=this.settings.offset.x+"px";break;case"center":n.left=0,n.right=0}this.$ele.css(n).addClass(this.settings.animate.enter),t.each(Array("webkit","moz","o","ms",""),(function(t,i){e.$ele[0].style[i+"AnimationIterationCount"]=1})),t(this.settings.element).append(this.$ele),1==this.settings.newest_on_top&&(i=parseInt(i)+parseInt(this.settings.spacing)+this.$ele.outerHeight(),this.reposition(i)),t.isFunction(e.settings.onShow)&&e.settings.onShow.call(this.$ele),this.$ele.one(this.animations.start,(function(t){a=!0})).one(this.animations.end,(function(i){t.isFunction(e.settings.onShown)&&e.settings.onShown.call(this)})),setTimeout((function(){a||t.isFunction(e.settings.onShown)&&e.settings.onShown.call(this)}),600)},bind:function(){var e=this;if(this.$ele.find('[data-notify="dismiss"]').on("click",(function(){e.close()})),this.$ele.mouseover((function(e){t(this).data("data-hover","true")})).mouseout((function(e){t(this).data("data-hover","false")})),this.$ele.data("data-hover","false"),this.settings.delay>0){e.$ele.data("notify-delay",e.settings.delay);var i=setInterval((function(){var t=parseInt(e.$ele.data("notify-delay"))-e.settings.timer;if("false"===e.$ele.data("data-hover")&&"pause"==e.settings.mouse_over||"pause"!=e.settings.mouse_over){var n=(e.settings.delay-t)/e.settings.delay*100;e.$ele.data("notify-delay",t),e.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",n).css("width",n+"%")}t<=-e.settings.timer&&(clearInterval(i),e.close())}),e.settings.timer)}},close:function(){var e=this,i=parseInt(this.$ele.css(this.settings.placement.from)),n=!1;this.$ele.data("closing","true").addClass(this.settings.animate.exit),e.reposition(i),t.isFunction(e.settings.onClose)&&e.settings.onClose.call(this.$ele),this.$ele.one(this.animations.start,(function(t){n=!0})).one(this.animations.end,(function(i){t(this).remove(),t.isFunction(e.settings.onClosed)&&e.settings.onClosed.call(this)})),setTimeout((function(){n||(e.$ele.remove(),e.settings.onClosed&&e.settings.onClosed(e.$ele))}),600)},reposition:function(e){var i=this,n='[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])',a=this.$ele.nextAll(n);1==this.settings.newest_on_top&&(a=this.$ele.prevAll(n)),a.each((function(){t(this).css(i.settings.placement.from,e),e=parseInt(e)+parseInt(i.settings.spacing)+t(this).outerHeight()}))}}),t.notify=function(t,i){return new e(this,t,i).notify},t.notifyDefaults=function(e){return i=t.extend(!0,{},i,e)},t.notifyClose=function(e){void 0===e||"all"==e?t("[data-notify]").find('[data-notify="dismiss"]').trigger("click"):t('[data-notify-position="'+e+'"]').find('[data-notify="dismiss"]').trigger("click")}})),$.notifyDefaults({template:'<div data-notify="container" class="alert alert-{0}" role="alert"><button type="button" aria-hidden="true" class="close" data-notify="dismiss"></button><span data-notify="icon"></span><span data-notify="title">{1}</span><span data-notify="message">{2}</span><div class="progress" data-notify="progressbar"><div class="progress-bar progress-bar-animated bg-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div></div><a href="{3}" target="{4}" data-notify="url"></a></div>'}),function(t){t(["jquery"],(function(t){return function(){var e,i,n,a=0,r="error",o="info",s="success",l="warning",c={clear:function(i,n){var a=p();e||u(a);d(i,a,n)||function(i){for(var n=e.children(),a=n.length-1;a>=0;a--)d(t(n[a]),i)}(a)},remove:function(i){var n=p();e||u(n);if(i&&0===t(":focus",i).length)return void m(i);e.children().length&&e.remove()},error:function(t,e,i){return f({type:r,iconClass:p().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:u,info:function(t,e,i){return f({type:o,iconClass:p().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){i=t},success:function(t,e,i){return f({type:s,iconClass:p().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.4",warning:function(t,e,i){return f({type:l,iconClass:p().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return c;function u(i,n){return i||(i=p()),(e=t("#"+i.containerId)).length||n&&(e=function(i){return(e=t("<div/>").attr("id",i.containerId).addClass(i.positionClass)).appendTo(t(i.target)),e}(i)),e}function d(e,i,n){var a=!(!n||!n.force)&&n.force;return!(!e||!a&&0!==t(":focus",e).length)&&(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){m(e)}}),!0)}function h(t){i&&i(t)}function f(i){var r=p(),o=i.iconClass||r.iconClass;if(void 0!==i.optionsOverride&&(r=t.extend(r,i.optionsOverride),o=i.optionsOverride.iconClass||o),!function(t,e){if(t.preventDuplicates){if(e.message===n)return!0;n=e.message}return!1}(r,i)){a++,e=u(r,!0);var s=null,l=t("<div/>"),c=t("<div/>"),d=t("<div/>"),f=t("<div/>"),g=t(r.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:a,state:"visible",startTime:new Date,options:r,map:i};return i.iconClass&&l.addClass(r.toastClass).addClass(o),function(){if(i.title){var t=i.title;r.escapeHtml&&(t=b(i.title)),c.append(t).addClass(r.titleClass),l.append(c)}}(),function(){if(i.message){var t=i.message;r.escapeHtml&&(t=b(i.message)),d.append(t).addClass(r.messageClass),l.append(d)}}(),r.closeButton&&(g.addClass(r.closeClass).attr("role","button"),l.prepend(g)),r.progressBar&&(f.addClass(r.progressClass),l.prepend(f)),r.rtl&&l.addClass("rtl"),r.newestOnTop?e.prepend(l):e.append(l),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}l.attr("aria-live",t)}(),l.hide(),l[r.showMethod]({duration:r.showDuration,easing:r.showEasing,complete:r.onShown}),r.timeOut>0&&(s=setTimeout(_,r.timeOut),v.maxHideTime=parseFloat(r.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,r.progressBar&&(v.intervalId=setInterval(k,10))),function(){r.closeOnHover&&l.hover(w,x);!r.onclick&&r.tapToDismiss&&l.click(_);r.closeButton&&g&&g.click((function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),r.onCloseClick&&r.onCloseClick(t),_(!0)}));r.onclick&&l.click((function(t){r.onclick(t),_()}))}(),h(y),r.debug&&console&&console.log(y),l}function b(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _(e){var i=e&&!1!==r.closeMethod?r.closeMethod:r.hideMethod,n=e&&!1!==r.closeDuration?r.closeDuration:r.hideDuration,a=e&&!1!==r.closeEasing?r.closeEasing:r.hideEasing;if(!t(":focus",l).length||e)return clearTimeout(v.intervalId),l[i]({duration:n,easing:a,complete:function(){m(l),clearTimeout(s),r.onHidden&&"hidden"!==y.state&&r.onHidden(),y.state="hidden",y.endTime=new Date,h(y)}})}function x(){(r.timeOut>0||r.extendedTimeOut>0)&&(s=setTimeout(_,r.extendedTimeOut),v.maxHideTime=parseFloat(r.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function w(){clearTimeout(s),v.hideEta=0,l.stop(!0,!0)[r.showMethod]({duration:r.showDuration,easing:r.showEasing})}function k(){var t=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;f.width(t+"%")}}function p(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},c.options)}function m(t){e||(e=u()),t.is(":visible")||(t.remove(),t=null,0===e.children().length&&(e.remove(),n=void 0))}}()}))}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(window,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="./src/dual-listbox.js")}({"./node_modules/sortablejs/modular/sortable.esm.js":
/*!*********************************************************!*\
  !*** ./node_modules/sortablejs/modular/sortable.esm.js ***!
  \*********************************************************/
/*! exports provided: default, MultiDrag, Sortable, Swap */function(t,e,i){"use strict";
/**!
 * Sortable 1.10.1
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function n(t){return(n="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)}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){a(t,e,i[e])}))}return t}function s(t,e){if(null==t)return{};var i,n,a=function(t,e){if(null==t)return{};var i,n,a={},r=Object.keys(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||(a[i]=t[i]);return a}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)i=r[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i])}return a}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}i.r(e),i.d(e,"MultiDrag",(function(){return be})),i.d(e,"Sortable",(function(){return Rt})),i.d(e,"Swap",(function(){return le}));function c(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),h=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),p=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function v(t,e,i){t.addEventListener(e,i,!u&&g)}function y(t,e,i){t.removeEventListener(e,i,!u&&g)}function b(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function _(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function x(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&b(t,e):b(t,e))||n&&t===i)return t;if(t===i)break}while(t=_(t))}return null}var w,k=/\s+/g;function S(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(k," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(k," ")}}function M(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"==typeof i?"":"px")}}function L(t,e){var i="";if("string"==typeof t)i=t;else do{var n=M(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return a&&new a(i)}function T(t,e,i){if(t){var n=t.getElementsByTagName(e),a=0,r=n.length;if(i)for(;a<r;a++)i(n[a],a);return n}return[]}function C(){return u?document.documentElement:document.scrollingElement}function A(t,e,i,n,a){if(t.getBoundingClientRect||t===window){var r,o,s,l,c,d,h;if(t!==window&&t!==C()?(o=(r=t.getBoundingClientRect()).top,s=r.left,l=r.bottom,c=r.right,d=r.height,h=r.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||i)&&t!==window&&(a=a||t.parentNode,!u))do{if(a&&a.getBoundingClientRect&&("none"!==M(a,"transform")||i&&"static"!==M(a,"position"))){var f=a.getBoundingClientRect();o-=f.top+parseInt(M(a,"border-top-width")),s-=f.left+parseInt(M(a,"border-left-width")),l=o+r.height,c=s+r.width;break}}while(a=a.parentNode);if(n&&t!==window){var p=L(a||t),m=p&&p.a,g=p&&p.d;p&&(l=(o/=g)+(d/=g),c=(s/=m)+(h/=m))}return{top:o,left:s,bottom:l,right:c,width:h,height:d}}}function D(t,e,i){for(var n=I(t,!0),a=A(t)[e];n;){var r=A(n)[i];if(!("top"===i||"left"===i?a>=r:a<=r))return n;if(n===C())break;n=I(n,!1)}return!1}function E(t,e,i){for(var n=0,a=0,r=t.children;a<r.length;){if("none"!==r[a].style.display&&r[a]!==Rt.ghost&&r[a]!==Rt.dragged&&x(r[a],i.draggable,t,!1)){if(n===e)return r[a];n++}a++}return null}function O(t,e){for(var i=t.lastElementChild;i&&(i===Rt.ghost||"none"===M(i,"display")||e&&!b(i,e));)i=i.previousElementSibling;return i||null}function P(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Rt.clone||e&&!b(t,e)||i++;return i}function Y(t){var e=0,i=0,n=C();if(t)do{var a=L(t),r=a.a,o=a.d;e+=t.scrollLeft*r,i+=t.scrollTop*o}while(t!==n&&(t=t.parentNode));return[e,i]}function I(t,e){if(!t||!t.getBoundingClientRect)return C();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var a=M(i);if(i.clientWidth<i.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!i.getBoundingClientRect||i===document.body)return C();if(n||e)return i;n=!0}}}while(i=i.parentNode);return C()}function N(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function H(t,e){return function(){if(!w){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),w=setTimeout((function(){w=void 0}),e)}}}function j(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function F(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function R(t,e){M(t,"position","absolute"),M(t,"top",e.top),M(t,"left",e.left),M(t,"width",e.width),M(t,"height",e.height)}function z(t){M(t,"position",""),M(t,"top",""),M(t,"left",""),M(t,"width",""),M(t,"height","")}var $="Sortable"+(new Date).getTime();function B(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==M(t,"display")&&t!==Rt.ghost){e.push({target:t,rect:A(t)});var i=o({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=L(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof i&&i());var a=!1,r=0;e.forEach((function(t){var e=0,i=t.target,o=i.fromRect,s=A(i),l=i.prevFromRect,c=i.prevToRect,u=t.rect,d=L(i,!0);d&&(s.top-=d.f,s.left-=d.e),i.toRect=s,i.thisAnimationDuration&&N(l,s)&&!N(o,s)&&(u.top-s.top)/(u.left-s.left)==(o.top-s.top)/(o.left-s.left)&&(e=function(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}(u,l,c,n.options)),N(s,o)||(i.prevFromRect=o,i.prevToRect=s,e||(e=n.options.animation),n.animate(i,u,s,e)),e&&(a=!0,r=Math.max(r,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),a?t=setTimeout((function(){"function"==typeof i&&i()}),r):"function"==typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){M(t,"transition",""),M(t,"transform","");var a=L(this.el),r=a&&a.a,o=a&&a.d,s=(e.left-i.left)/(r||1),l=(e.top-i.top)/(o||1);t.animatingX=!!s,t.animatingY=!!l,M(t,"transform","translate3d("+s+"px,"+l+"px,0)"),function(t){t.offsetWidth}(t),M(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),M(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){M(t,"transition",""),M(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}var W=[],V={initializeByDefault:!0},q={mount:function(t){for(var e in V)V.hasOwnProperty(e)&&!(e in t)&&(t[e]=V[e]);W.push(t)},pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var a=t+"Global";W.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][a]&&e[n.pluginName][a](o({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](o({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var a in W.forEach((function(n){var a=n.pluginName;if(t.options[a]||n.initializeByDefault){var o=new n(t,e,t.options);o.sortable=t,o.options=t.options,t[a]=o,r(i,o.defaults)}})),t.options)if(t.options.hasOwnProperty(a)){var o=this.modifyOption(t,a,t.options[a]);void 0!==o&&(t.options[a]=o)}},getEventProperties:function(t,e){var i={};return W.forEach((function(n){"function"==typeof n.eventProperties&&r(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return W.forEach((function(a){t[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[e]&&(n=a.optionListeners[e].call(t[a.pluginName],i))})),n}};function U(t){var e=t.sortable,i=t.rootEl,n=t.name,a=t.targetEl,r=t.cloneEl,s=t.toEl,l=t.fromEl,c=t.oldIndex,h=t.newIndex,f=t.oldDraggableIndex,p=t.newDraggableIndex,m=t.originalEvent,g=t.putSortable,v=t.extraEventProperties;if(e=e||i&&i[$]){var y,b=e.options,_="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||u||d?(y=document.createEvent("Event")).initEvent(n,!0,!0):y=new CustomEvent(n,{bubbles:!0,cancelable:!0}),y.to=s||i,y.from=l||i,y.item=a||i,y.clone=r,y.oldIndex=c,y.newIndex=h,y.oldDraggableIndex=f,y.newDraggableIndex=p,y.originalEvent=m,y.pullMode=g?g.lastPutMode:void 0;var x=o({},v,q.getEventProperties(n,e));for(var w in x)y[w]=x[w];i&&i.dispatchEvent(y),b[_]&&b[_].call(e,y)}}var X=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,a=s(i,["evt"]);q.pluginEvent.bind(Rt)(t,e,o({dragEl:K,parentEl:Z,ghostEl:J,rootEl:Q,nextEl:tt,lastDownEl:et,cloneEl:it,cloneHidden:nt,dragStarted:gt,putSortable:ct,activeSortable:Rt.active,originalEvent:n,oldIndex:at,oldDraggableIndex:ot,newIndex:rt,newDraggableIndex:st,hideGhostForTarget:Nt,unhideGhostForTarget:Ht,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){G({sortable:e,name:t,originalEvent:n})}},a))};function G(t){U(o({putSortable:ct,cloneEl:it,targetEl:K,rootEl:Q,oldIndex:at,oldDraggableIndex:ot,newIndex:rt,newDraggableIndex:st},t))}var K,Z,J,Q,tt,et,it,nt,at,rt,ot,st,lt,ct,ut,dt,ht,ft,pt,mt,gt,vt,yt,bt,_t,xt=!1,wt=!1,kt=[],St=!1,Mt=!1,Lt=[],Tt=!1,Ct=[],At="undefined"!=typeof document,Dt=p,Et=d||u?"cssFloat":"float",Ot=At&&!m&&!p&&"draggable"in document.createElement("div"),Pt=function(){if(At){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Yt=function(t,e){var i=M(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=E(t,0,e),r=E(t,1,e),o=a&&M(a),s=r&&M(r),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+A(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+A(r).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=n&&"none"===i[Et]||r&&"none"===i[Et]&&l+c>n)?"vertical":"horizontal"},It=function(t){function e(t,i){return function(n,a,r,o){var s=n.options.group.name&&a.options.group.name&&n.options.group.name===a.options.group.name;if(null==t&&(i||s))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"==typeof t)return e(t(n,a,r,o),i)(n,a,r,o);var l=(i?n:a).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var i={},a=t.group;a&&"object"==n(a)||(a={name:a}),i.name=a.name,i.checkPull=e(a.pull,!0),i.checkPut=e(a.put),i.revertClone=a.revertClone,t.group=i},Nt=function(){!Pt&&J&&M(J,"display","none")},Ht=function(){!Pt&&J&&M(J,"display","")};At&&document.addEventListener("click",(function(t){if(wt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wt=!1,!1}),!0);var jt=function(t){if(K){t=t.touches?t.touches[0]:t;var e=(a=t.clientX,r=t.clientY,kt.some((function(t){if(!O(t)){var e=A(t),i=t[$].options.emptyInsertThreshold,n=a>=e.left-i&&a<=e.right+i,s=r>=e.top-i&&r<=e.bottom+i;return i&&n&&s?o=t:void 0}})),o);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[$]._onDragOver(i)}}var a,r,o},Ft=function(t){K&&K.parentNode[$]._isOutsideThisEl(t.target)};function Rt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=r({},e),t[$]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Yt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Rt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in q.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var a in It(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?v(t,"pointerdown",this._onTapStart):(v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),kt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,B())}function zt(t,e,i,n,a,r,o,s){var l,c,h=t[$],f=h.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=i,l.draggedRect=n,l.related=a||e,l.relatedRect=r||A(e),l.willInsertAfter=s,l.originalEvent=o,t.dispatchEvent(l),f&&(c=f.call(h,l,o)),c}function $t(t){t.draggable=!1}function Bt(){Tt=!1}function Wt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;i--;)n+=e.charCodeAt(i);return n.toString(36)}function Vt(t){return setTimeout(t,0)}function qt(t){return clearTimeout(t)}Rt.prototype={constructor:Rt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,K):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,a=n.preventOnFilter,r=t.type,o=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(o||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=n.filter;if(function(t){Ct.length=0;var e=t.getElementsByTagName("input"),i=e.length;for(;i--;){var n=e[i];n.checked&&Ct.push(n)}}(i),!K&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||n.disabled||l.isContentEditable||(s=x(s,n.draggable,i,!1))&&s.animated||et===s)){if(at=P(s),ot=P(s,n.draggable),"function"==typeof c){if(c.call(this,t,s,this))return G({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),X("filter",e,{evt:t}),void(a&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=x(l,n.trim(),i,!1))return G({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:i,toEl:i}),X("filter",e,{evt:t}),!0}))))return void(a&&t.cancelable&&t.preventDefault());n.handle&&!x(l,n.handle,i,!1)||this._prepareDragStart(t,o,s)}}},_prepareDragStart:function(t,e,i){var n,a=this,r=a.el,o=a.options,s=r.ownerDocument;if(i&&!K&&i.parentNode===r){var l=A(i);if(Q=r,Z=(K=i).parentNode,tt=K.nextSibling,et=i,lt=o.group,Rt.dragged=K,ut={target:K,clientX:(e||t).clientX,clientY:(e||t).clientY},pt=ut.clientX-l.left,mt=ut.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,K.style["will-change"]="all",n=function(){X("delayEnded",a,{evt:t}),Rt.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!h&&a.nativeDraggable&&(K.draggable=!0),a._triggerDragStart(t,e),G({sortable:a,name:"choose",originalEvent:t}),S(K,o.chosenClass,!0))},o.ignore.split(",").forEach((function(t){T(K,t.trim(),$t)})),v(s,"dragover",jt),v(s,"mousemove",jt),v(s,"touchmove",jt),v(s,"mouseup",a._onDrop),v(s,"touchend",a._onDrop),v(s,"touchcancel",a._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),X("delayStart",this,{evt:t}),!o.delay||o.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||u))n();else{if(Rt.eventCanceled)return void this._onDrop();v(s,"mouseup",a._disableDelayedDrag),v(s,"touchend",a._disableDelayedDrag),v(s,"touchcancel",a._disableDelayedDrag),v(s,"mousemove",a._delayedDragTouchMoveHandler),v(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&v(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(n,o.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&$t(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._disableDelayedDrag),y(t,"touchend",this._disableDelayedDrag),y(t,"touchcancel",this._disableDelayedDrag),y(t,"mousemove",this._delayedDragTouchMoveHandler),y(t,"touchmove",this._delayedDragTouchMoveHandler),y(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,e?"touchmove":"mousemove",this._onTouchMove):(v(K,"dragend",this),v(Q,"dragstart",this._onDragStart));try{document.selection?Vt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(xt=!1,Q&&K){X("dragStarted",this,{evt:e}),this.nativeDraggable&&v(document,"dragover",Ft);var i=this.options;!t&&S(K,i.dragClass,!1),S(K,i.ghostClass,!0),Rt.active=this,t&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(dt){this._lastX=dt.clientX,this._lastY=dt.clientY,Nt();for(var t=document.elementFromPoint(dt.clientX,dt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(dt.clientX,dt.clientY))!==e;)e=t;if(K.parentNode[$]._isOutsideThisEl(t),e)do{if(e[$]){if(e[$]._onDragOver({clientX:dt.clientX,clientY:dt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Ht()}},_onTouchMove:function(t){if(ut){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,a=t.touches?t.touches[0]:t,r=J&&L(J),o=J&&r&&r.a,s=J&&r&&r.d,l=Dt&&_t&&Y(_t),c=(a.clientX-ut.clientX+n.x)/(o||1)+(l?l[0]-Lt[0]:0)/(o||1),u=(a.clientY-ut.clientY+n.y)/(s||1)+(l?l[1]-Lt[1]:0)/(s||1);if(!Rt.active&&!xt){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(J){r?(r.e+=c-(ht||0),r.f+=u-(ft||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");M(J,"webkitTransform",d),M(J,"mozTransform",d),M(J,"msTransform",d),M(J,"transform",d),ht=c,ft=u,dt=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:Q,e=A(K,!0,Dt,!0,t),i=this.options;if(Dt){for(_t=t;"static"===M(_t,"position")&&"none"===M(_t,"transform")&&_t!==document;)_t=_t.parentNode;_t!==document.body&&_t!==document.documentElement?(_t===document&&(_t=C()),e.top+=_t.scrollTop,e.left+=_t.scrollLeft):_t=C(),Lt=Y(_t)}S(J=K.cloneNode(!0),i.ghostClass,!1),S(J,i.fallbackClass,!0),S(J,i.dragClass,!0),M(J,"transition",""),M(J,"transform",""),M(J,"box-sizing","border-box"),M(J,"margin",0),M(J,"top",e.top),M(J,"left",e.left),M(J,"width",e.width),M(J,"height",e.height),M(J,"opacity","0.8"),M(J,"position",Dt?"absolute":"fixed"),M(J,"zIndex","100000"),M(J,"pointerEvents","none"),Rt.ghost=J,t.appendChild(J),M(J,"transform-origin",pt/parseInt(J.style.width)*100+"% "+mt/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,a=i.options;X("dragStart",this,{evt:t}),Rt.eventCanceled?this._onDrop():(X("setupClone",this),Rt.eventCanceled||((it=F(K)).draggable=!1,it.style["will-change"]="",this._hideClone(),S(it,this.options.chosenClass,!1),Rt.clone=it),i.cloneId=Vt((function(){X("clone",i),Rt.eventCanceled||(i.options.removeCloneOnHide||Q.insertBefore(it,K),i._hideClone(),G({sortable:i,name:"clone"}))})),!e&&S(K,a.dragClass,!0),e?(wt=!0,i._loopId=setInterval(i._emulateDragOver,50)):(y(document,"mouseup",i._onDrop),y(document,"touchend",i._onDrop),y(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",a.setData&&a.setData.call(i,n,K)),v(document,"drop",i),M(K,"transform","translateZ(0)")),xt=!0,i._dragStartId=Vt(i._dragStarted.bind(i,e,t)),v(document,"selectstart",i),gt=!0,f&&M(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,a,r=this.el,s=t.target,l=this.options,c=l.group,u=Rt.active,d=lt===c,h=l.sort,f=ct||u,p=this,m=!1;if(!Tt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=x(s,l.draggable,r,!0),N("dragOver"),Rt.eventCanceled)return m;if(K.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return F(!1);if(wt=!1,u&&!l.disabled&&(d?h||(n=!Q.contains(K)):ct===this||(this.lastPutMode=lt.checkPull(this,u,K,t))&&c.checkPut(this,u,K,t))){if(a="vertical"===this._getDirection(t,s),e=A(K),N("dragOverValid"),Rt.eventCanceled)return m;if(n)return Z=Q,H(),this._hideClone(),N("revert"),Rt.eventCanceled||(tt?Q.insertBefore(K,tt):Q.appendChild(K)),F(!0);var g=O(r,l.draggable);if(!g||function(t,e,i){var n=A(O(i.el,i.options.draggable)),a=10;return e?t.clientX>n.right+a||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+a}(t,a,this)&&!g.animated){if(g===K)return F(!1);if(g&&r===t.target&&(s=g),s&&(i=A(s)),!1!==zt(Q,r,K,e,s,i,t,!!s))return H(),r.appendChild(K),Z=r,R(),F(!0)}else if(s.parentNode===r){i=A(s);var v,y,b,_=K.parentNode!==r,w=!function(t,e,i){var n=i?t.left:t.top,a=i?t.right:t.bottom,r=i?t.width:t.height,o=i?e.left:e.top,s=i?e.right:e.bottom,l=i?e.width:e.height;return n===o||a===s||n+r/2===o+l/2}(K.animated&&K.toRect||e,s.animated&&s.toRect||i,a),k=a?"top":"left",L=D(s,"top","top")||D(K,"top","top"),T=L?L.scrollTop:void 0;if(vt!==s&&(y=i[k],St=!1,Mt=!w&&l.invertSwap||_),0!==(v=function(t,e,i,n,a,r,o,s){var l=n?t.clientY:t.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,h=!1;if(!o)if(s&&bt<c*a){if(!St&&(1===yt?l>u+c*r/2:l<d-c*r/2)&&(St=!0),St)h=!0;else if(1===yt?l<u+bt:l>d-bt)return-yt}else if(l>u+c*(1-a)/2&&l<d-c*(1-a)/2)return function(t){return P(K)<P(t)?1:-1}(e);if((h=h||o)&&(l<u+c*r/2||l>d-c*r/2))return l>u+c/2?1:-1;return 0}(t,s,i,a,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Mt,vt===s))){var C=P(K);do{C-=v,b=Z.children[C]}while(b&&("none"===M(b,"display")||b===J))}if(0===v||b===s)return F(!1);vt=s,yt=v;var E=s.nextElementSibling,Y=!1,I=zt(Q,r,K,e,s,i,t,Y=1===v);if(!1!==I)return 1!==I&&-1!==I||(Y=1===I),Tt=!0,setTimeout(Bt,30),H(),Y&&!E?r.appendChild(K):s.parentNode.insertBefore(K,Y?E:s),L&&j(L,0,T-L.scrollTop),Z=K.parentNode,void 0===y||Mt||(bt=Math.abs(y-A(s)[k])),R(),F(!0)}if(r.contains(K))return F(!1)}return!1}function N(l,c){X(l,p,o({evt:t,isOwner:d,axis:a?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:h,fromSortable:f,target:s,completed:F,onMove:function(i,n){return zt(Q,r,K,e,i,A(i),t,n)},changed:R},c))}function H(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function F(e){return N("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(S(K,ct?ct.options.ghostClass:u.options.ghostClass,!1),S(K,l.ghostClass,!0)),ct!==p&&p!==Rt.active?ct=p:p===Rt.active&&ct&&(ct=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===K&&!K.animated||s===r&&!s.animated)&&(vt=null),l.dragoverBubble||t.rootEl||s===document||(K.parentNode[$]._isOutsideThisEl(t.target),!e&&jt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function R(){rt=P(K),st=P(K,l.draggable),G({sortable:p,name:"change",toEl:r,newIndex:rt,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",jt),y(document,"mousemove",jt),y(document,"touchmove",jt)},_offUpEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._onDrop),y(t,"touchend",this._onDrop),y(t,"pointerup",this._onDrop),y(t,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;rt=P(K),st=P(K,i.draggable),X("drop",this,{evt:t}),Z=K&&K.parentNode,rt=P(K),st=P(K,i.draggable),Rt.eventCanceled||(xt=!1,Mt=!1,St=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qt(this.cloneId),qt(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&M(document.body,"user-select",""),t&&(gt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===Z||ct&&"clone"!==ct.lastPutMode)&&it&&it.parentNode&&it.parentNode.removeChild(it),K&&(this.nativeDraggable&&y(K,"dragend",this),$t(K),K.style["will-change"]="",gt&&!xt&&S(K,ct?ct.options.ghostClass:this.options.ghostClass,!1),S(K,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==Z?(rt>=0&&(G({rootEl:Z,name:"add",toEl:Z,fromEl:Q,originalEvent:t}),G({sortable:this,name:"remove",toEl:Z,originalEvent:t}),G({rootEl:Z,name:"sort",toEl:Z,fromEl:Q,originalEvent:t}),G({sortable:this,name:"sort",toEl:Z,originalEvent:t})),ct&&ct.save()):rt!==at&&rt>=0&&(G({sortable:this,name:"update",toEl:Z,originalEvent:t}),G({sortable:this,name:"sort",toEl:Z,originalEvent:t})),Rt.active&&(null!=rt&&-1!==rt||(rt=at,st=ot),G({sortable:this,name:"end",toEl:Z,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){X("nulling",this),Q=K=Z=J=tt=it=et=nt=ut=dt=gt=rt=st=at=ot=vt=yt=ct=lt=Rt.dragged=Rt.ghost=Rt.clone=Rt.active=null,Ct.forEach((function(t){t.checked=!0})),Ct.length=ht=ft=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":K&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,a=i.length,r=this.options;n<a;n++)x(t=i[n],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||Wt(t));return e},sort:function(t){var e={},i=this.el;this.toArray().forEach((function(t,n){var a=i.children[n];x(a,this.options.draggable,i,!1)&&(e[t]=a)}),this),t.forEach((function(t){e[t]&&(i.removeChild(e[t]),i.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return x(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=q.modifyOption(this,t,e);i[t]=void 0!==n?n:e,"group"===t&&It(i)},destroy:function(){X("destroy",this);var t=this.el;t[$]=null,y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart),y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),kt.splice(kt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!nt){if(X("hideClone",this),Rt.eventCanceled)return;M(it,"display","none"),this.options.removeCloneOnHide&&it.parentNode&&it.parentNode.removeChild(it),nt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(nt){if(X("showClone",this),Rt.eventCanceled)return;Q.contains(K)&&!this.options.group.revertClone?Q.insertBefore(it,K):tt?Q.insertBefore(it,tt):Q.appendChild(it),this.options.group.revertClone&&this.animate(K,it),M(it,"display",""),nt=!1}}else this._hideClone()}},At&&v(document,"touchmove",(function(t){(Rt.active||xt)&&t.cancelable&&t.preventDefault()})),Rt.utils={on:v,off:y,css:M,find:T,is:function(t,e){return!!x(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},throttle:H,closest:x,toggleClass:S,clone:F,index:P,nextTick:Vt,cancelNextTick:qt,detectDirection:Yt,getChild:E},Rt.get=function(t){return t[$]},Rt.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Rt.utils=o({},Rt.utils,t.utils)),q.mount(t)}))},Rt.create=function(t,e){return new Rt(t,e)},Rt.version="1.10.1";var Ut,Xt,Gt,Kt,Zt,Jt,Qt=[],te=!1;function ee(){Qt.forEach((function(t){clearInterval(t.pid)})),Qt=[]}function ie(){clearInterval(Jt)}var ne,ae=H((function(t,e,i,n){if(e.scroll){var a,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=C(),u=!1;Xt!==i&&(Xt=i,ee(),Ut=e.scroll,a=e.scrollFn,!0===Ut&&(Ut=I(i,!0)));var d=0,h=Ut;do{var f=h,p=A(f),m=p.top,g=p.bottom,v=p.left,y=p.right,b=p.width,_=p.height,x=void 0,w=void 0,k=f.scrollWidth,S=f.scrollHeight,L=M(f),T=f.scrollLeft,D=f.scrollTop;f===c?(x=b<k&&("auto"===L.overflowX||"scroll"===L.overflowX||"visible"===L.overflowX),w=_<S&&("auto"===L.overflowY||"scroll"===L.overflowY||"visible"===L.overflowY)):(x=b<k&&("auto"===L.overflowX||"scroll"===L.overflowX),w=_<S&&("auto"===L.overflowY||"scroll"===L.overflowY));var E=x&&(Math.abs(y-r)<=s&&T+b<k)-(Math.abs(v-r)<=s&&!!T),O=w&&(Math.abs(g-o)<=s&&D+_<S)-(Math.abs(m-o)<=s&&!!D);if(!Qt[d])for(var P=0;P<=d;P++)Qt[P]||(Qt[P]={});Qt[d].vx==E&&Qt[d].vy==O&&Qt[d].el===f||(Qt[d].el=f,Qt[d].vx=E,Qt[d].vy=O,clearInterval(Qt[d].pid),0==E&&0==O||(u=!0,Qt[d].pid=setInterval(function(){n&&0===this.layer&&Rt.active._onTouchMove(Zt);var e=Qt[this.layer].vy?Qt[this.layer].vy*l:0,i=Qt[this.layer].vx?Qt[this.layer].vx*l:0;"function"==typeof a&&"continue"!==a.call(Rt.dragged.parentNode[$],i,e,t,Zt,Qt[this.layer].el)||j(Qt[this.layer].el,i,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=I(h,!1)));te=u}}),30),re=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,a=t.activeSortable,r=t.dispatchSortableEvent,o=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=i||a;o();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(r("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function oe(){}function se(){}function le(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ne=e},dragOverValid:function(t){var e=t.completed,i=t.target,n=t.onMove,a=t.activeSortable,r=t.changed,o=t.cancel;if(a.options.swap){var s=this.sortable.el,l=this.options;if(i&&i!==s){var c=ne;!1!==n(i)?(S(i,l.swapClass,!0),ne=i):ne=null,c&&c!==ne&&S(c,l.swapClass,!1)}r(),e(!0),o()}},drop:function(t){var e=t.activeSortable,i=t.putSortable,n=t.dragEl,a=i||this.sortable,r=this.options;ne&&S(ne,r.swapClass,!1),ne&&(r.swap||i&&i.options.swap)&&n!==ne&&(a.captureAnimationState(),a!==e&&e.captureAnimationState(),function(t,e){var i,n,a=t.parentNode,r=e.parentNode;if(!a||!r||a.isEqualNode(e)||r.isEqualNode(t))return;i=P(t),n=P(e),a.isEqualNode(r)&&i<n&&n++;a.insertBefore(e,a.children[i]),r.insertBefore(t,r.children[n])}(n,ne),a.animateAll(),a!==e&&e.animateAll())},nulling:function(){ne=null}},r(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ne}}})}oe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=E(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:re},r(oe,{pluginName:"revertOnSpill"}),se.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:re},r(se,{pluginName:"removeOnSpill"});var ce,ue,de,he,fe,pe=[],me=[],ge=!1,ve=!1,ye=!1;function be(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,i){var n="";pe.length&&ue===t?pe.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=i.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;de=e},delayEnded:function(){this.isMultiDrag=~pe.indexOf(de)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var n=0;n<pe.length;n++)me.push(F(pe[n])),me[n].sortableIndex=pe[n].sortableIndex,me[n].draggable=!1,me[n].style["will-change"]="",S(me[n],this.options.selectedClass,!1),pe[n]===de&&S(me[n],this.options.chosenClass,!1);e._hideClone(),i()}},clone:function(t){var e=t.sortable,i=t.rootEl,n=t.dispatchSortableEvent,a=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pe.length&&ue===e&&(_e(!0,i),n("clone"),a()))},showClone:function(t){var e=t.cloneNowShown,i=t.rootEl,n=t.cancel;this.isMultiDrag&&(_e(!1,i),me.forEach((function(t){M(t,"display","")})),e(),fe=!1,n())},hideClone:function(t){var e=this,i=(t.sortable,t.cloneNowHidden),n=t.cancel;this.isMultiDrag&&(me.forEach((function(t){M(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),i(),fe=!0,n())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),pe.forEach((function(t){t.sortableIndex=P(t)})),pe=pe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),ye=!0},dragStarted:function(t){var e=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){pe.forEach((function(t){t!==de&&M(t,"position","absolute")}));var n=A(de,!1,!0,!0);pe.forEach((function(t){t!==de&&R(t,n)})),ve=!0,ge=!0}i.animateAll((function(){ve=!1,ge=!1,e.options.animation&&pe.forEach((function(t){z(t)})),e.options.sort&&xe()}))}},dragOver:function(t){var e=t.target,i=t.completed,n=t.cancel;ve&&~pe.indexOf(e)&&(i(!1),n())},revert:function(t){var e=t.fromSortable,i=t.rootEl,n=t.sortable,a=t.dragRect;pe.length>1&&(pe.forEach((function(t){n.addAnimationState({target:t,rect:ve?A(t):a}),z(t),t.fromRect=a,e.removeAnimationState(t)})),ve=!1,function(t,e){pe.forEach((function(i,n){var a=e.children[i.sortableIndex+(t?Number(n):0)];a?e.insertBefore(i,a):e.appendChild(i)}))}(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,n=t.insertion,a=t.activeSortable,r=t.parentEl,o=t.putSortable,s=this.options;if(n){if(i&&a._hideClone(),ge=!1,s.animation&&pe.length>1&&(ve||!i&&!a.options.sort&&!o)){var l=A(de,!1,!0,!0);pe.forEach((function(t){t!==de&&(R(t,l),r.appendChild(t))})),ve=!0}if(!i)if(ve||xe(),pe.length>1){var c=fe;a._showClone(e),a.options.animation&&!fe&&c&&me.forEach((function(t){a.addAnimationState({target:t,rect:he}),t.fromRect=he,t.thisAnimationDuration=null}))}else a._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,n=t.activeSortable;if(pe.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!i&&n.multiDrag.isMultiDrag){he=r({},e);var a=L(de,!0);he.top-=a.f,he.left-=a.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,xe())},drop:function(t){var e=t.originalEvent,i=t.rootEl,n=t.parentEl,a=t.sortable,r=t.dispatchSortableEvent,o=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=n.children;if(!ye)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(de,c.selectedClass,!~pe.indexOf(de)),~pe.indexOf(de))pe.splice(pe.indexOf(de),1),ce=null,U({sortable:a,rootEl:i,name:"deselect",targetEl:de,originalEvt:e});else{if(pe.push(de),U({sortable:a,rootEl:i,name:"select",targetEl:de,originalEvt:e}),e.shiftKey&&ce&&a.el.contains(ce)){var d,h,f=P(ce),p=P(de);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~pe.indexOf(u[h])||(S(u[h],c.selectedClass,!0),pe.push(u[h]),U({sortable:a,rootEl:i,name:"select",targetEl:u[h],originalEvt:e}))}else ce=de;ue=l}if(ye&&this.isMultiDrag){if((n[$].options.sort||n!==i)&&pe.length>1){var m=A(de),g=P(de,":not(."+this.options.selectedClass+")");if(!ge&&c.animation&&(de.thisAnimationDuration=null),l.captureAnimationState(),!ge&&(c.animation&&(de.fromRect=m,pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==de){var e=ve?A(t):m;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),xe(),pe.forEach((function(t){u[g]?n.insertBefore(t,u[g]):n.appendChild(t),g++})),o===P(de))){var v=!1;pe.forEach((function(t){t.sortableIndex===P(t)||(v=!0)})),v&&r("update")}pe.forEach((function(t){z(t)})),l.animateAll()}ue=l}(i===n||s&&"clone"!==s.lastPutMode)&&me.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=ye=!1,me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),y(document,"pointerup",this._deselectMultiDrag),y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!ye&&ue===this.sortable&&!(t&&x(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;pe.length;){var e=pe[0];S(e,this.options.selectedClass,!1),pe.shift(),U({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},r(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[$];e&&e.options.multiDrag&&!~pe.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),S(t,e.options.selectedClass,!0),pe.push(t))},deselect:function(t){var e=t.parentNode[$],i=pe.indexOf(t);e&&e.options.multiDrag&&~i&&(S(t,e.options.selectedClass,!1),pe.splice(i,1))}},eventProperties:function(){var t=this,e=[],i=[];return pe.forEach((function(n){var a;e.push({multiDragElement:n,index:n.sortableIndex}),a=ve&&n!==de?-1:ve?P(n,":not(."+t.options.selectedClass+")"):P(n),i.push({multiDragElement:n,index:a})})),{items:l(pe),clones:[].concat(me),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function _e(t,e){me.forEach((function(i,n){var a=e.children[i.sortableIndex+(t?Number(n):0)];a?e.insertBefore(i,a):e.appendChild(i)}))}function xe(){pe.forEach((function(t){t!==de&&t.parentNode&&t.parentNode.removeChild(t)}))}Rt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):e.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),ie(),ee(),clearTimeout(w),w=void 0},nulling:function(){Zt=Xt=Ut=te=Jt=Gt=Kt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(n,a);if(Zt=t,e||d||u||f){ae(t,this.options,r,e);var o=I(r,!0);!te||Jt&&n===Gt&&a===Kt||(Jt&&ie(),Jt=setInterval((function(){var r=I(document.elementFromPoint(n,a),!0);r!==o&&(o=r,ee()),ae(t,i.options,r,e)}),10),Gt=n,Kt=a)}else{if(!this.options.bubbleScroll||I(r,!0)===C())return void ee();ae(t,this.options,I(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}),Rt.mount(se,oe),e.default=Rt},"./src/dual-listbox.js":
/*!*****************************!*\
  !*** ./src/dual-listbox.js ***!
  \*****************************/
/*! exports provided: default, DualListbox */function(t,e,i){"use strict";i.r(e),i.d(e,"DualListbox",(function(){return d}));var n=i(/*! sortablejs */"./node_modules/sortablejs/modular/sortable.esm.js");function a(t){return(a="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)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s="dual-listbox__title",l="dual-listbox__item",c="dual-listbox__button",u="dual-listbox__item--selected",d=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.setDefaults(),this.selected=[],this.available=[],t.isDomElement(e)?this.select=e:this.select=document.querySelector(e),this._initOptions(i),this._initReusableElements(),this._splitOptions(this.select.options),void 0!==i.options&&this._splitOptions(i.options),this._buildDualListbox(this.select.parentNode),this._addActions(),this.redraw()}var e,i,d;return e=t,d=[{key:"isDomElement",value:function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":a(HTMLElement))?t instanceof HTMLElement:t&&"object"===a(t)&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}}],(i=[{key:"setDefaults",value:function(){this.addEvent=null,this.removeEvent=null,this.availableTitle="Available options",this.selectedTitle="Selected options",this.showAddButton=!0,this.addButtonText="add",this.showRemoveButton=!0,this.removeButtonText="remove",this.showAddAllButton=!0,this.addAllButtonText="add all",this.showRemoveAllButton=!0,this.removeAllButtonText="remove all",this.searchPlaceholder="Search"}},{key:"addEventListener",value:function(t,e){this.dualListbox.addEventListener(t,e)}},{key:"addSelected",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.available.indexOf(t);a>-1&&(this.available.splice(a,1),null!==i?this.selected.splice(i,0,t):this.selected.push(t),this._selectOption(t.dataset.id),this.rebuildOrder(),n&&this.redraw(),setTimeout((function(){var i=document.createEvent("HTMLEvents");i.initEvent("added",!1,!0),i.addedElement=t,e.dualListbox.dispatchEvent(i)}),0))}},{key:"redraw",value:function(){this.updateAvailableListbox(),this.updateSelectedListbox()}},{key:"removeSelected",value:function(t){var e=this,i=this.selected.indexOf(t);i>-1&&(this.selected.splice(i,1),this.available.push(t),this._deselectOption(t.dataset.id),this.redraw(),setTimeout((function(){var i=document.createEvent("HTMLEvents");i.initEvent("removed",!1,!0),i.removedElement=t,e.dualListbox.dispatchEvent(i)}),0))}},{key:"searchLists",value:function(t,e){for(var i=e.querySelectorAll(".".concat(l)),n=t.toLowerCase(),a=0;a<i.length;a++){var r=i[a];-1===r.textContent.toLowerCase().indexOf(n)?r.style.display="none":r.style.display="list-item"}}},{key:"updateAvailableListbox",value:function(){this._updateListbox(this.availableList,this.available)}},{key:"updateSelectedListbox",value:function(){this._updateListbox(this.selectedList,this.selected)}},{key:"_actionAllSelected",value:function(t){var e=this;t.preventDefault(),this.available.filter((function(t){return"none"!==t.style.display})).forEach((function(t){return e.addSelected(t)}))}},{key:"_updateListbox",value:function(t,e){for(e.sort((function(t,e){return parseInt(t.dataset.order)>parseInt(e.dataset.order)?1:-1}));t.firstChild;)t.removeChild(t.firstChild);for(var i=0;i<e.length;i++){var n=e[i];t.appendChild(n)}}},{key:"_actionItemSelected",value:function(t){t.preventDefault();var e=this.dualListbox.querySelector(".".concat(u));e&&this.addSelected(e)}},{key:"_actionAllDeselected",value:function(t){var e=this;t.preventDefault(),this.selected.filter((function(t){return"none"!==t.style.display})).forEach((function(t){return e.removeSelected(t)}))}},{key:"_actionItemDeselected",value:function(t){t.preventDefault();var e=this.dualListbox.querySelector(".".concat(u));e&&this.removeSelected(e)}},{key:"_actionItemDoubleClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&(e.preventDefault(),e.stopPropagation()),this.selected.indexOf(t)>-1?this.removeSelected(t):this.addSelected(t)}},{key:"_actionItemClick",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i&&i.preventDefault();for(var n=e.querySelectorAll(".".concat(l)),a=0;a<n.length;a++){var r=n[a];r!==t&&r.classList.remove(u)}t.classList.contains(u)?t.classList.remove(u):t.classList.add(u)}},{key:"_addActions",value:function(){this._addButtonActions(),this._addSearchActions()}},{key:"_addButtonActions",value:function(){var t=this;this.add_all_button.addEventListener("click",(function(e){return t._actionAllSelected(e)})),this.add_button.addEventListener("click",(function(e){return t._actionItemSelected(e)})),this.remove_button.addEventListener("click",(function(e){return t._actionItemDeselected(e)})),this.remove_all_button.addEventListener("click",(function(e){return t._actionAllDeselected(e)}))}},{key:"_addClickActions",value:function(t){var e=this;return t.addEventListener("dblclick",(function(i){return e._actionItemDoubleClick(t,i)})),t.addEventListener("click",(function(i){return e._actionItemClick(t,e.dualListbox,i)})),t}},{key:"_addSearchActions",value:function(){var t=this;this.search.addEventListener("change",(function(e){return t.searchLists(e.target.value,t.dualListbox)})),this.search.addEventListener("keyup",(function(e){return t.searchLists(e.target.value,t.dualListbox)}))}},{key:"_buildDualListbox",value:function(t){this.select.style.display="none",this.dualListBoxContainer.appendChild(this._createList(this.availableListTitle,this.availableList)),this.dualListBoxContainer.appendChild(this.buttons),this.dualListBoxContainer.appendChild(this._createList(this.selectedListTitle,this.selectedList)),this.dualListbox.appendChild(this.search),this.dualListbox.appendChild(this.dualListBoxContainer),t.insertBefore(this.dualListbox,this.select)}},{key:"_createList",value:function(t,e){var i=document.createElement("div");return i.appendChild(t),i.appendChild(e),i}},{key:"_createButtons",value:function(){this.buttons=document.createElement("div"),this.buttons.classList.add("dual-listbox__buttons"),this.add_all_button=document.createElement("button"),this.add_all_button.classList.add(c),this.add_all_button.innerHTML=this.addAllButtonText,this.add_all_button.setAttribute("type","button"),this.add_button=document.createElement("button"),this.add_button.classList.add(c),this.add_button.innerHTML=this.addButtonText,this.add_button.setAttribute("type","button"),this.remove_button=document.createElement("button"),this.remove_button.classList.add(c),this.remove_button.innerHTML=this.removeButtonText,this.remove_button.setAttribute("type","button"),this.remove_all_button=document.createElement("button"),this.remove_all_button.classList.add(c),this.remove_all_button.innerHTML=this.removeAllButtonText,this.remove_all_button.setAttribute("type","button"),this.showAddAllButton&&this.buttons.appendChild(this.add_all_button),this.showAddButton&&this.buttons.appendChild(this.add_button),this.showRemoveButton&&this.buttons.appendChild(this.remove_button),this.showRemoveAllButton&&this.buttons.appendChild(this.remove_all_button)}},{key:"_createListItem",value:function(t){var e=document.createElement("li");return e.classList.add(l),e.innerHTML=t.text,e.dataset.id=t.value,console.log(t.dataset.order),t.dataset.order&&(e.dataset.order=t.dataset.order),e.setAttribute("draggable","true"),this._addClickActions(e),e}},{key:"_createSearch",value:function(){this.search=document.createElement("input"),this.search.classList.add("dual-listbox__search"),this.search.placeholder=this.searchPlaceholder}},{key:"_deselectOption",value:function(t){for(var e=this.select.options,i=0;i<e.length;i++){var n=e[i];n.value===t&&(n.selected=!1,n.removeAttribute("selected"))}this.removeEvent&&this.removeEvent(t)}},{key:"_initOptions",value:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])}},{key:"_initReusableElements",value:function(){var t=this;this.dualListbox=document.createElement("div"),this.dualListbox.classList.add("dual-listbox"),this.select.id&&this.dualListbox.classList.add(this.select.id),this.dualListBoxContainer=document.createElement("div"),this.dualListBoxContainer.classList.add("dual-listbox__container"),this.availableList=document.createElement("ul"),this.availableList.classList.add("dual-listbox__available"),n.default.create(this.availableList,{group:"test",sort:!1,animation:150}),this.availableList.addEventListener("end",(function(e){e.to===e.from&&t.reorder(t.available,e.item,e.oldIndex,e.newIndex,e.to===e.from)})),this.availableList.addEventListener("add",(function(e){t.removeSelected(e.item)})),this.selectedList=document.createElement("ul"),this.selectedList.classList.add("dual-listbox__selected"),n.default.create(this.selectedList,{group:"test",animation:150}),this.selectedList.addEventListener("end",(function(e){e.to===e.from&&t.reorder(t.selected,e.item,e.oldIndex,e.newIndex,e.to===e.from)})),this.selectedList.addEventListener("add",(function(e){t.addSelected(e.item,e.newIndex)})),this.availableListTitle=document.createElement("div"),this.availableListTitle.classList.add(s),this.availableListTitle.innerText=this.availableTitle,this.selectedListTitle=document.createElement("div"),this.selectedListTitle.classList.add(s),this.selectedListTitle.innerText=this.selectedTitle,this._createButtons(),this._createSearch()}},{key:"rebuildOrder",value:function(){this.available.forEach((function(t,e){t.dataset.order=e})),this.selected.forEach((function(t,e){t.dataset.order=e}))}},{key:"reorder",value:function(t,e,i,n,a){var r=this;a&&t.splice(i,1),t.splice(n,0,e),this.rebuildOrder(),this.redraw(),setTimeout((function(){var a=document.createEvent("HTMLEvents");a.initEvent("reorder",!1,!0),a.reorderedItem=e,a.reorderedList=t,a.reorderedOldValue=i,a.reorderedNewValue=n,r.dualListbox.dispatchEvent(a)}),0)}},{key:"_selectOption",value:function(t){for(var e=this.select.options,i=0;i<e.length;i++){var n=e[i];n.value===t&&(n.selected=!0,n.setAttribute("selected",""))}this.addEvent&&this.addEvent(t)}},{key:"_splitOptions",value:function(e){for(var i=0;i<e.length;i++){var n=e[i];t.isDomElement(n)?this._addOption({text:n.innerHTML,value:n.value,selected:n.attributes.selected,dataset:{order:n.dataset&&n.dataset.order?n.dataset.order:""}}):this._addOption(n)}}},{key:"_addOption",value:function(t){var e=this._createListItem(t);t.selected?this.selected.push(e):this.available.push(e)}}])&&o(e.prototype,i),d&&o(e,d),t}();e.default=d}})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ApexCharts=e()}(this,(function(){"use strict";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(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=l(t);if(e){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function h(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var p=function(){function i(){e(this,i)}return n(i,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),n=t<0?0:255,a=t<0?-1*t:t,r=parseInt(i[0].slice(4),10),o=parseInt(i[1],10),s=parseInt(i[2],10);return"rgb("+(Math.round((n-r)*a)+r)+","+(Math.round((n-o)*a)+o)+","+(Math.round((n-s)*a)+s)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),n=t<0?0:255,a=t<0?-1*t:t,r=i>>16,o=i>>8&255,s=255&i;return"#"+(16777216+65536*(Math.round((n-r)*a)+r)+256*(Math.round((n-o)*a)+o)+(Math.round((n-s)*a)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return i.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===t(e)&&!Array.isArray(e)&&null!=e}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var a in n)n.hasOwnProperty(a)&&(e[a]=n[a])}return e});var n=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach((function(r){i.isObject(e[r])&&r in t?n[r]=i.extend(t[r],e[r]):Object.assign(n,a({},r,e[r]))})),n}},{key:"extendArray",value:function(t,e){var n=[];return t.map((function(t){n.push(i.extend(e,t))})),n}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var i=[],n=0;n<e.length;n++)i[n]=this.clone(e[n]);return i}if("[object Null]"===Object.prototype.toString.call(e))return null;if("[object Date]"===Object.prototype.toString.call(e))return e;if("object"===t(e)){var a={};for(var r in e)e.hasOwnProperty(r)&&(a[r]=this.clone(e[r]));return a}return e}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",n=t<0?"-":"",a=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=n+"0.";r++;)i+="0";return i+a.replace(/^-/,"")}for(r-=a.length;r--;)i+="0";return a+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,n=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var n=0;n<i.length;n++)i[n]=parseInt(1===i[n].length?i[n]+i[n]:i[n],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"polarToCartesian",value:function(t,e,i,n){var a=(n-90)*Math.PI/180;return{x:t+i*Math.cos(a),y:e+i*Math.sin(a)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var n=i-t.length+1;n--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var n=t.indexOf("Edge/");return n>0&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)}}]),i}(),m=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var n=this,a=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=a.config.chart.dropShadow;(i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var n=this,a=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=a.config.chart.dropShadow;(i.enabled?n.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:n});break;case"darken":this.addDarkenFilter(t,e,{intensity:n})}}},{key:"addShadow",value:function(t,e,i){var n=i.blur,a=i.top,r=i.left,o=i.color,s=i.opacity,l=t.flood(Array.isArray(o)?o[e]:o,s).composite(t.sourceAlpha,"in").offset(r,a).gaussianBlur(n).merge(t.source);return t.blend(t.source,l)}},{key:"dropShadow",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=e.top,a=e.left,r=e.blur,o=e.color,s=e.opacity,l=e.noUserSpaceOnUse,c=this.w;return t.unfilter(!0),p.isIE()&&"radialBar"===c.config.chart.type||(o=Array.isArray(o)?o[i]:o,t.filter((function(t){var e;e=p.isSafari()||p.isFirefox()||p.isIE()?t.flood(o,s).composite(t.sourceAlpha,"in").offset(a,n).gaussianBlur(r):t.flood(o,s).composite(t.sourceAlpha,"in").offset(a,n).gaussianBlur(r).merge(t.source),t.blend(t.source,e)})),l||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var n=this.w;if(void 0!==n.globals.selectedDataPoints[e]&&n.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var a=n.config.states.active.filter;"none"!==a&&this.applyFilter(t,e,a.type,a.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),g=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.setEasingFunctions()}return n(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:t="<>"}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,n){t.attr(e).animate(n).attr(i)}},{key:"animateCircleRadius",value:function(t,e,i,n,a,r){e||(e=0),t.attr({r:e}).animate(n,a).attr({r:i}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(t,e,i,n,a){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(n,a).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,n,a){t.attr(e).animate(n).attr(i).afterAll((function(){return a()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,n=t.j,a=t.fill,r=t.pathFrom,o=t.pathTo,s=t.speed,l=t.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(e,i,n,"line"!==c.config.chart.type||c.globals.comboCharts?a:"stroke",r,o,s,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){t.el.classList.remove("apexcharts-element-hidden")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,n,a,r,o,s){var l=this,c=this.w;a||(a=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var u=function(t){return"radar"===c.config.chart.type&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=u()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=u()),c.globals.shouldAnimate||(o=1),t.plot(a).animate(1,c.globals.easing,s).plot(a).animate(o,c.globals.easing,s).plot(r).afterAll((function(){p.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==n&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),v=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawLine",value:function(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=this.w,l=s.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:n,stroke:a,"stroke-dasharray":r,"stroke-width":o});return l}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w,d=u.globals.dom.Paper.rect();return d.attr({x:t,y:e,width:i>0?i:0,height:n>0?n:0,rx:a,ry:a,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",r),d}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",a=this.w,r=a.globals.dom.Paper.polygon(t).attr({fill:n,stroke:e,"stroke-width":i});return r}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w,n=i.globals.dom.Paper.circle(2*t);return null!==e&&n.attr(e),n}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,n=t.stroke,a=void 0===n?"#a8a8a8":n,r=t.strokeWidth,o=void 0===r?1:r,s=t.fill,l=t.fillOpacity,c=void 0===l?1:l,u=t.strokeOpacity,d=void 0===u?1:u,h=t.classes,f=t.strokeLinecap,p=void 0===f?null:f,m=t.strokeDashArray,g=void 0===m?0:m,v=this.w;return null===p&&(p=v.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(i).attr({fill:s,"fill-opacity":c,stroke:a,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":g,class:h})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=e.globals.dom.Paper.group();return null!==t&&i.attr(t),i}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===i?n=["L",t,e].join(" "):"H"===i?n=["H",t].join(" "):"V"===i&&(n=["V",e].join(" ")),n}},{key:"curve",value:function(t,e,i,n,a,r){return["C",t,e,i,n,a,r].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,n){return["Q",t,e,i,n].join(" ")}},{key:"arc",value:function(t,e,i,n,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";s&&(l="a");var c=[l,t,e,i,n,a,r,o].join(" ");return c}},{key:"renderPaths",value:function(t){var e,i=t.j,n=t.realIndex,a=t.pathFrom,r=t.pathTo,s=t.stroke,l=t.strokeWidth,c=t.strokeLinecap,u=t.fill,d=t.animationDelay,h=t.initialSpeed,f=t.dataChangeSpeed,p=t.className,v=t.shouldClipToGrid,y=void 0===v||v,b=t.bindEventsOnPaths,_=void 0===b||b,x=t.drawShadow,w=void 0===x||x,k=this.w,S=new m(this.ctx),M=new g(this.ctx),L=this.w.config.chart.animations.enabled,T=L&&this.w.config.chart.animations.dynamicAnimation.enabled,C=!!(L&&!k.globals.resized||T&&k.globals.dataChanged&&k.globals.shouldAnimate);C?e=a:(e=r,k.globals.animationEnded=!0);var A,D=k.config.stroke.dashArray;A=Array.isArray(D)?D[n]:k.config.stroke.dashArray;var E=this.drawPath({d:e,stroke:s,strokeWidth:l,fill:u,fillOpacity:1,classes:p,strokeLinecap:c,strokeDashArray:A});if(E.attr("index",n),y&&E.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),"none"!==k.config.states.normal.filter.type)S.getDefaultFilter(E,n);else if(k.config.chart.dropShadow.enabled&&w&&(!k.config.chart.dropShadow.enabledOnSeries||k.config.chart.dropShadow.enabledOnSeries&&-1!==k.config.chart.dropShadow.enabledOnSeries.indexOf(n))){var O=k.config.chart.dropShadow;S.dropShadow(E,O,n)}_&&(E.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,E)),E.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,E)),E.node.addEventListener("mousedown",this.pathMouseDown.bind(this,E))),E.attr({pathTo:r,pathFrom:a});var P={el:E,j:i,realIndex:n,pathFrom:a,pathTo:r,fill:u,strokeWidth:l,delay:d};return!L||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||M.showDelayedElements():M.animatePathsGradually(o(o({},P),{},{speed:h})),k.globals.dataChanged&&T&&C&&M.animatePathsGradually(o(o({},P),{},{speed:f})),E}},{key:"drawPattern",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=this.w,o=r.globals.dom.Paper.pattern(e,i,(function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:n,width:a+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:n,width:a+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:n,width:a}):"squares"===t?r.rect(e,i).fill("none").stroke({color:n,width:a}):"circles"===t&&r.circle(e).fill("none").stroke({color:n,width:a})}));return o}},{key:"drawGradient",value:function(t,e,i,n,a){var r,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;e.length<9&&0===e.indexOf("#")&&(e=p.hexToRgba(e,n)),i.length<9&&0===i.indexOf("#")&&(i=p.hexToRgba(i,a));var d=0,h=1,f=1,m=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,h=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,m=void 0!==s[3]?s[3]/100:null);var g=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(r=null===l||0===l.length?u.globals.dom.Paper.gradient(g?"radial":"linear",(function(t){t.at(d,e,n),t.at(h,i,a),t.at(f,i,a),null!==m&&t.at(m,e,n)})):u.globals.dom.Paper.gradient(g?"radial":"linear",(function(t){(Array.isArray(l[c])?l[c]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),g){var v=u.globals.gridWidth/2,y=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:v,cy:y,r:o}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?r.from(0,0).to(0,1):"diagonal"===t?r.from(0,0).to(1,1):"horizontal"===t?r.from(0,1).to(1,1):"diagonal2"===t&&r.from(1,0).to(0,1);return r}},{key:"drawText",value:function(t){var e,i=t.x,n=t.y,a=t.text,r=t.textAnchor,o=t.fontSize,s=t.fontFamily,l=t.fontWeight,c=t.foreColor,u=t.opacity,d=t.cssClass,h=void 0===d?"":d,f=t.isPlainText,p=void 0===f||f,m=this.w;return void 0===a&&(a=""),r||(r="start"),c&&c.length||(c=m.config.chart.foreColor),s=s||m.config.chart.fontFamily,l=l||"regular",(e=Array.isArray(a)?m.globals.dom.Paper.text((function(t){for(var e=0;e<a.length;e++)0===e?t.tspan(a[e]):t.tspan(a[e]).newLine()})):p?m.globals.dom.Paper.plain(a):m.globals.dom.Paper.text((function(t){return t.tspan(a)}))).attr({x:i,y:n,"text-anchor":r,"dominant-baseline":"auto","font-size":o,"font-family":s,"font-weight":l,fill:c,class:"apexcharts-text "+h}),e.node.style.fontFamily=s,e.node.style.opacity=u,e}},{key:"drawMarker",value:function(t,e,i){t=t||0;var n=i.pSize||0,a=null;if("square"===i.shape){var r=void 0===i.pRadius?n/2:i.pRadius;null!==e&&n||(n=0,r=0);var o=1.2*n+r,s=this.drawRect(o,o,o,o,r);s.attr({x:t-o/2,y:e-o/2,cx:t,cy:e,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pWidth?i.pWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),a=s}else"circle"!==i.shape&&i.shape||(p.isNumber(e)||(n=0,e=0),a=this.drawCircle(n,{cx:t,cy:e,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pWidth?i.pWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return a}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,n=new m(this.ctx),a=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&"none"!==i.config.states.active.filter.type&&!i.globals.isTouchDevice){var o=i.config.states.hover.filter;n.applyFilter(t,a,o.type,o.value)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,n=new m(this.ctx),a=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:a,dataPointIndex:r,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&n.getDefaultFilter(t,a)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,n=new m(this.ctx),a=parseInt(t.node.getAttribute("index"),10),r=parseInt(t.node.getAttribute("j"),10),o="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[a].indexOf(r)>-1){var s=i.globals.selectedDataPoints[a].indexOf(r);i.globals.selectedDataPoints[a].splice(s,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),n.getDefaultFilter(t,a)}))};u(l),u(c)}t.node.setAttribute("selected","true"),o="true",void 0===i.globals.selectedDataPoints[a]&&(i.globals.selectedDataPoints[a]=[]),i.globals.selectedDataPoints[a].push(r)}if("true"===o){var d=i.config.states.active.filter;"none"!==d&&n.applyFilter(t,a,d.type,d.value)}else"none"!==i.config.states.active.filter.type&&n.getDefaultFilter(t,a);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e=t.getBBox();return{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,n){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,o=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});n&&o.attr("transform",n),r.globals.dom.Paper.add(o);var s=o.bbox();return a||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/.8)){for(var n=e.length-3;n>0;n-=3)if(t.getSubStringLength(0,n)<=i/.8)return void(t.textContent=e.substring(0,n)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),y=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i}return n(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var n=null!==e?e:0,a=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==a){var r=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-r.height+4),"top"===t.label.position?a.setAttribute("y",parseFloat(a.getAttribute("y"))+r.width):a.setAttribute("y",parseFloat(a.getAttribute("y"))-r.width);var o=this.annoCtx.graphics.rotateAroundCenter(a),s=o.x,l=o.y;a.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||!e.label.text||e.label.text&&!e.label.text.trim())return null;var n=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=t.getBoundingClientRect(),r=e.label.style.padding.left,o=e.label.style.padding.right,s=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(s=e.label.style.padding.left,l=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom);var c=a.left-n.left-r,u=a.top-n.top-s,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,u,a.width+r+o,a.height+s+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,n,a){var r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(n,"']"));if(r){var o=r.parentNode,s=t.addBackgroundToAnno(r,i);s&&o.insertBefore(s.node,r)}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var n=e.globals.labels.indexOf(t),a=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return a&&(i=parseFloat(a.getAttribute("x"))),i}}]),t}(),b=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i,this.invertAxis=this.annoCtx.invertAxis}return n(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var n=this.w,a=this.invertAxis?n.globals.minY:n.globals.minX,r=this.invertAxis?n.globals.maxY:n.globals.maxX,o=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,s=(t.x-a)/(o/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(s=(r-t.x)/(o/n.globals.gridWidth));var l=t.label.text;"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(s=this.annoCtx.helpers.getStringX(t.x));var c=t.strokeDashArray;if(p.isNumber(s)){if(null===t.x2||void 0===t.x2){var u=this.annoCtx.graphics.drawLine(s+t.offsetX,0+t.offsetY,s+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,c,t.borderWidth);e.appendChild(u.node),t.id&&u.node.classList.add(t.id)}else{var d=(t.x2-a)/(o/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(d=(r-t.x2)/(o/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(d=this.annoCtx.helpers.getStringX(t.x2)),d<s){var h=s;s=d,d=h}var f=this.annoCtx.graphics.drawRect(s+t.offsetX,0+t.offsetY,d-s,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,c);f.node.classList.add("apexcharts-annotation-rect"),f.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(f.node),t.id&&f.node.classList.add(t.id)}var m="top"===t.label.position?4:n.globals.gridHeight,g=this.annoCtx.graphics.getTextRects(l,parseFloat(t.label.style.fontSize)),v=this.annoCtx.graphics.drawText({x:s+t.label.offsetX,y:m+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?g.width/2-12:-g.width/2:0),text:l,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});v.attr({rel:i}),e.appendChild(v.node),this.annoCtx.helpers.setOrientations(t,i)}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((function(e,n){t.addXaxisAnnotation(e,i.node,n)})),i}}]),t}(),_=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getStackedSeriesTotals",value:function(){var t=this.w,e=[];if(0===t.globals.series.length)return e;for(var i=0;i<t.globals.series[t.globals.maxValsInArrayIndex].length;i++){for(var n=0,a=0;a<t.globals.series.length;a++)void 0!==t.globals.series[a][i]&&(n+=t.globals.series[a][i]);e.push(n)}return t.globals.stackedSeriesTotals=e,e}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.config.series[t].data.filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){var i=0;if(Array.isArray(t))for(var n=0;n<t.length;n++)i+=t[n];else i+=t;return i}))}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map((function(n,a){for(var r=0,o=0;o<n.length;o++)i.globals.seriesX[a][o]>t&&i.globals.seriesX[a][o]<e&&(r+=n[o]);return r}))}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map((function(e,i){var n=[];if(Array.isArray(e))for(var a=0;a<e.length;a++){var r=t.globals.stackedSeriesTotals[a],o=0;r&&(o=100*e[a]/r),n.push(o)}else{var s=100*e/t.globals.seriesTotals.reduce((function(t,e){return t+e}),0);n.push(s)}return n}))}},{key:"getCalculatedRatios",value:function(){var t,e,i,n,a=this.w.globals,r=[],o=0,s=[],l=.1,c=0;if(a.yRange=[],a.isMultipleYAxis)for(var u=0;u<a.minYArr.length;u++)a.yRange.push(Math.abs(a.minYArr[u]-a.maxYArr[u])),s.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var d=0;d<a.yRange.length;d++)r.push(a.yRange[d]/a.gridHeight);if(e=a.xRange/a.gridWidth,i=Math.abs(a.initialMaxX-a.initialMinX)/a.gridWidth,t=a.yRange/a.gridWidth,n=a.xRange/a.gridHeight,(o=a.zRange/a.gridHeight*16)||(o=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),a.isMultipleYAxis){s=[];for(var h=0;h<r.length;h++)s.push(-a.minYArr[h]/r[h])}else s.push(-a.minY/r[0]),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(l=-a.minY/t,c=a.minX/e);return{yRatio:r,invertedYRatio:t,zRatio:o,xRatio:e,initialXRatio:i,invertedXRatio:n,baseLineInvertedY:l,baseLineY:s,baseLineX:c}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map((function(t,n){return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?t.map((function(t){return null===t?null:e.getLogVal(t,n)})):t})),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getLogVal",value:function(t,e){var i=this.w;return(Math.log(t)-Math.log(i.globals.minYArr[e]))/(Math.log(i.globals.maxYArr[e])-Math.log(i.globals.minYArr[e]))}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,n=this.w.globals;return n.yLogRatio=t.slice(),n.logYRange=n.yRange.map((function(t,a){if(i.config.yaxis[a]&&e.w.config.yaxis[a].logarithmic){var r,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;return n.seriesLog.forEach((function(t,e){t.forEach((function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(o=Math.max(t,o),s=Math.min(t,s))}))})),r=Math.pow(n.yRange[a],Math.abs(s-o)/n.yRange[a]),n.yLogRatio[a]=r/n.gridHeight,r}})),n.invalidLogScale?t.slice():n.yLogRatio}}],[{key:"checkComboSeries",value:function(t){var e=!1,i=0;return t.length&&void 0!==t[0].type&&(e=!0,t.forEach((function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type||i++}))),{comboBarCount:i,comboCharts:e}}},{key:"extendArrayProps",value:function(t,e,i){return e.yaxis&&(e=t.extendYAxis(e,i)),e.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),e.annotations.xaxis&&(e=t.extendXAxisAnnotations(e)),e.annotations.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),x=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i}return n(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var n,a=this.w,r=t.strokeDashArray,o=this._getY1Y2("y1",t),s=t.label.text;if(null===t.y2||void 0===t.y2){var l=this.annoCtx.graphics.drawLine(0+t.offsetX,o+t.offsetY,this._getYAxisAnnotationWidth(t),o+t.offsetY,t.borderColor,r,t.borderWidth);e.appendChild(l.node),t.id&&l.node.classList.add(t.id)}else{if((n=this._getY1Y2("y2",t))>o){var c=o;o=n,n=c}var u=this.annoCtx.graphics.drawRect(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),o-n,0,t.fillColor,t.opacity,1,t.borderColor,r);u.node.classList.add("apexcharts-annotation-rect"),u.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),e.appendChild(u.node),t.id&&u.node.classList.add(t.id)}var d="right"===t.label.position?a.globals.gridWidth:0,h=this.annoCtx.graphics.drawText({x:d+t.label.offsetX,y:(n||o)+t.label.offsetY-3,text:s,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});h.attr({rel:i}),e.appendChild(h.node)}},{key:"_getY1Y2",value:function(t,e){var i,n="y1"===t?e.y:e.y2,a=this.w;if(this.annoCtx.invertAxis){var r=a.globals.labels.indexOf(n);a.config.xaxis.convertedCatToNumeric&&(r=a.globals.categoryLabels.indexOf(n));var o=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(r+1)+")");o&&(i=parseFloat(o.getAttribute("y")))}else{var s;s=a.config.yaxis[e.yAxisIndex].logarithmic?(n=new _(this.annoCtx.ctx).getLogVal(n,e.yAxisIndex))/a.globals.yLogRatio[e.yAxisIndex]:(n-a.globals.minYArr[e.yAxisIndex])/(a.globals.yRange[e.yAxisIndex]/a.globals.gridHeight),i=a.globals.gridHeight-s,a.config.yaxis[e.yAxisIndex]&&a.config.yaxis[e.yAxisIndex].reversed&&(i=s)}return i}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map((function(e,n){t.addYaxisAnnotation(e,i.node,n)})),i}}]),t}(),w=function(){function t(i){e(this,t),this.w=i.w,this.annoCtx=i}return n(t,[{key:"addPointAnnotation",value:function(t,e,i){var n=this.w,a=0,r=0,o=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var s,l=parseFloat(t.y);if("string"==typeof t.x){var c=n.globals.labels.indexOf(t.x);n.config.xaxis.convertedCatToNumeric&&(c=n.globals.categoryLabels.indexOf(t.x)),a=this.annoCtx.helpers.getStringX(t.x),null===t.y&&(l=n.globals.series[t.seriesIndex][c])}else a=(t.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);if(s=n.config.yaxis[t.yAxisIndex].logarithmic?(l=new _(this.annoCtx.ctx).getLogVal(l,t.yAxisIndex))/n.globals.yLogRatio[t.yAxisIndex]:(l-n.globals.minYArr[t.yAxisIndex])/(n.globals.yRange[t.yAxisIndex]/n.globals.gridHeight),r=n.globals.gridHeight-s-parseFloat(t.label.style.fontSize)-t.marker.size,o=n.globals.gridHeight-s,n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(r=s+parseFloat(t.label.style.fontSize)+t.marker.size,o=s),p.isNumber(a)){var u={pSize:t.marker.size,pWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},d=this.annoCtx.graphics.drawMarker(a+t.marker.offsetX,o+t.marker.offsetY,u);e.appendChild(d.node);var h=t.label.text?t.label.text:"",f=this.annoCtx.graphics.drawText({x:a+t.label.offsetX,y:r+t.label.offsetY,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(f.attr({rel:i}),e.appendChild(f.node),t.customSVG.SVG){var m=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});m.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(r+t.customSVG.offsetY,")")}),m.node.innerHTML=t.customSVG.SVG,e.appendChild(m.node)}if(t.image.path){var g=t.image.width?t.image.width:20,v=t.image.height?t.image.height:20;this.annoCtx.addImage({x:a+t.image.offsetX-g/2,y:r+t.image.offsetY-v/2,width:g,height:v,path:t.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,n){t.addPointAnnotation(e,i.node,n)})),i}}]),t}(),k={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},S=function(){function t(){e(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return n(t,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[k],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,startingShape:"flat",endingShape:"flat",rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,sorted:!1,offsetX:0,offsetY:0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),M=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.graphics=new v(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new y(this),this.xAxisAnnotations=new b(this),this.yAxisAnnotations=new x(this),this.pointsAnnotations=new w(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return n(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),a=t.config.chart.animations.enabled,r=[e,i,n],o=[i.node,e.node,n.node],s=0;s<3;s++)t.globals.dom.elGraphical.add(r[s]),!a||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,n=t.y,a=t.text,r=t.textAnchor,o=t.foreColor,s=t.fontSize,l=t.fontFamily,c=t.fontWeight,u=t.cssClass,d=t.backgroundColor,h=t.borderWidth,f=t.strokeDashArray,p=t.borderRadius,m=t.borderColor,g=t.appendTo,v=void 0===g?".apexcharts-annotations":g,y=t.paddingLeft,b=void 0===y?4:y,_=t.paddingRight,x=void 0===_?4:_,w=t.paddingBottom,k=void 0===w?2:w,S=t.paddingTop,M=void 0===S?2:S,L=this.w,T=this.graphics.drawText({x:i,y:n,text:a,textAnchor:r||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||L.config.chart.fontFamily,foreColor:o||L.config.chart.foreColor,cssClass:u}),C=L.globals.dom.baseEl.querySelector(v);C&&C.appendChild(T.node);var A=T.bbox();if(a){var D=this.graphics.drawRect(A.x-b,A.y-M,A.width+b+x,A.height+k+M,p,d||"transparent",1,h,m,f);C.insertBefore(D.node,T.node)}}},{key:"addImage",value:function(t,e){var i=this.w,n=t.path,a=t.x,r=void 0===a?0:a,o=t.y,s=void 0===o?0:o,l=t.width,c=void 0===l?20:l,u=t.height,d=void 0===u?20:u,h=t.appendTo,f=void 0===h?".apexcharts-annotations":h,p=i.globals.dom.Paper.image(n);p.size(c,d).move(r,s);var m=i.globals.dom.baseEl.querySelector(f);m&&m.appendChild(p.node)}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,n=t.context,a=t.type,r=t.contextMethod,o=n,s=o.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),c=l.childNodes.length+1,u=new S,d=Object.assign({},"xaxis"===a?u.xAxisAnnotation:"yaxis"===a?u.yAxisAnnotation:u.pointAnnotation),h=p.extend(d,e);switch(a){case"xaxis":this.addXaxisAnnotation(h,l,c);break;case"yaxis":this.addYaxisAnnotation(h,l,c);break;case"point":this.addPointAnnotation(h,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(c,"']")),m=this.helpers.addBackgroundToAnno(f,h);return m&&l.insertBefore(m.node,f),i&&s.globals.memory.methodsToExec.push({context:o,id:h.id?h.id:p.randomId(),method:r,label:"addAnnotation",params:e}),n}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),i=p.listToArray(i),Array.prototype.forEach.call(i,(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,n=i.globals.dom.baseEl.querySelectorAll(".".concat(e));n&&(i.globals.memory.methodsToExec.map((function(t,n){t.id===e&&i.globals.memory.methodsToExec.splice(n,1)})),Array.prototype.forEach.call(n,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),L=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.opts=null,this.seriesIndex=0}return n(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,n=parseInt(e.globals.gridWidth,10),a=parseInt(e.globals.gridHeight,10),r=n>a?n:a,o=t.image,s=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(s=i.fill.image.width+1,l=i.fill.image.height):(s=r+1,l=r):(s=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");v.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var u=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",o),v.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),u.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type||"treemap"===e.config.chart.type?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,n,a,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(o=e.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var s=this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(o=t.color);var c=o;if(-1===o.indexOf("rgb")?o.length<9&&(c=p.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=p.getOpacityFromRGBA(o)),t.opacity&&(l=t.opacity),"pattern"===s&&(n=this.handlePatternFill(n,o,l,c)),"gradient"===s&&(a=this.handleGradientFill(o,l,this.seriesIndex)),"image"===s){var u=r.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(u)?t.seriesNumber<u.length?u[t.seriesNumber]:u[0]:u,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:"pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d)}),i="url(#pattern".concat(e.globals.cuid).concat(t.seriesNumber+1).concat(d,")")}else i="gradient"===s?a:"pattern"===s?n:c;return t.solid&&(i=c),i}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,n=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?n=t.globals.stroke.colors:n.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?n=t.globals.fill.colors:n.push(t.globals.fill.colors),void 0!==i.fillColors&&(n=[],Array.isArray(i.fillColors)?n=i.fillColors.slice():n.push(i.fillColors)),n}},{key:"handlePatternFill",value:function(t,e,i,n){var a=this.w.config,r=this.opts,o=new v(this.ctx),s=void 0===a.fill.pattern.strokeWidth?Array.isArray(a.stroke.width)?a.stroke.width[this.seriesIndex]:a.stroke.width:Array.isArray(a.fill.pattern.strokeWidth)?a.fill.pattern.strokeWidth[this.seriesIndex]:a.fill.pattern.strokeWidth,l=e;return Array.isArray(a.fill.pattern.style)?void 0!==a.fill.pattern.style[r.seriesNumber]?o.drawPattern(a.fill.pattern.style[r.seriesNumber],a.fill.pattern.width,a.fill.pattern.height,l,s,i):n:o.drawPattern(a.fill.pattern.style,a.fill.pattern.width,a.fill.pattern.height,l,s,i)}},{key:"handleGradientFill",value:function(t,e,i){var n,a=this.w.config,r=this.opts,o=new v(this.ctx),s=new p,l=a.fill.gradient.type,c=t,u=void 0===a.fill.gradient.opacityFrom?e:Array.isArray(a.fill.gradient.opacityFrom)?a.fill.gradient.opacityFrom[i]:a.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(u=p.getOpacityFromRGBA(c));var d=void 0===a.fill.gradient.opacityTo?e:Array.isArray(a.fill.gradient.opacityTo)?a.fill.gradient.opacityTo[i]:a.fill.gradient.opacityTo;if(void 0===a.fill.gradient.gradientToColors||0===a.fill.gradient.gradientToColors.length)n="dark"===a.fill.gradient.shade?s.shadeColor(-1*parseFloat(a.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?p.rgb2hex(t):t):s.shadeColor(parseFloat(a.fill.gradient.shadeIntensity),t.indexOf("rgb")>-1?p.rgb2hex(t):t);else if(a.fill.gradient.gradientToColors[r.seriesNumber]){var h=a.fill.gradient.gradientToColors[r.seriesNumber];n=h,h.indexOf("rgba")>-1&&(d=p.getOpacityFromRGBA(h))}else n=t;if(a.fill.gradient.inverseColors){var f=c;c=n,n=f}return c.indexOf("rgb")>-1&&(c=p.rgb2hex(c)),n.indexOf("rgb")>-1&&(n=p.rgb2hex(n)),o.drawGradient(l,c,n,u,d,r.size,a.fill.gradient.stops,a.fill.gradient.colorStops,i)}}]),t}(),T=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map((function(e){return t.config.markers.size}))}},{key:"plotChartMarkers",value:function(t,e,i,n){var a,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=e,l=t,c=null,u=new v(this.ctx);if((o.globals.markers.size[e]>0||r)&&(c=u.group({class:r?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var h=i;1===i&&0===d&&(h=0),1===i&&1===d&&(h=1);var f="apexcharts-marker";"line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(f+=" no-pointer-events");var g=Array.isArray(o.config.markers.size)?o.globals.markers.size[e]>0:o.config.markers.size>0;if(g||r){p.isNumber(l.y[d])?f+=" w".concat(p.randomId()):f="apexcharts-nullpoint";var y=this.getMarkerConfig(f,e,h);o.config.series[s].data[h]&&(o.config.series[s].data[h].fillColor&&(y.pointFillColor=o.config.series[s].data[h].fillColor),o.config.series[s].data[h].strokeColor&&(y.pointStrokeColor=o.config.series[s].data[h].strokeColor)),n&&(y.pSize=n),(a=u.drawMarker(l.x[d],l.y[d],y)).attr("rel",h),a.attr("j",h),a.attr("index",e),a.node.setAttribute("default-marker-size",y.pSize);var b=new m(this.ctx);b.setSelectionFilter(a,e,h),this.addEvents(a),c&&c.add(a)}else void 0===o.globals.pointsArray[e]&&(o.globals.pointsArray[e]=[]),o.globals.pointsArray[e].push([l.x[d],l.y[d]])}return c}},{key:"getMarkerConfig",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,a=this.getMarkerStyle(e),r=n.globals.markers.size[e],o=n.config.markers;return null!==i&&o.discrete.length&&o.discrete.map((function(t){t.seriesIndex===e&&t.dataPointIndex===i&&(a.pointStrokeColor=t.strokeColor,a.pointFillColor=t.fillColor,r=t.size)})),{pSize:r,pRadius:o.radius,pWidth:Array.isArray(o.strokeWidth)?o.strokeWidth[e]:o.strokeWidth,pointStrokeColor:a.pointStrokeColor,pointFillColor:a.pointFillColor,shape:Array.isArray(o.shape)?o.shape[e]:o.shape,class:t,pointStrokeOpacity:Array.isArray(o.strokeOpacity)?o.strokeOpacity[e]:o.strokeOpacity,pointStrokeDashArray:Array.isArray(o.strokeDashArray)?o.strokeDashArray[e]:o.strokeDashArray,pointFillOpacity:Array.isArray(o.fillOpacity)?o.fillOpacity[e]:o.fillOpacity,seriesIndex:e}}},{key:"addEvents",value:function(t){var e=this.w,i=new v(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,n=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[t]:n,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),C=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return n(t,[{key:"draw",value:function(t,e,i){var n=this.w,a=new v(this.ctx),r=i.realIndex,o=i.pointsPos,s=i.zRatio,l=i.elParent,c=a.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(o.x))for(var u=0;u<o.x.length;u++){var d=e+1,h=!0;0===e&&0===u&&(d=0),0===e&&1===u&&(d=1);var f=0,p=n.globals.markers.size[r];if(s!==1/0){p=n.globals.seriesZ[r][d]/s;var m=n.config.plotOptions.bubble;m.minBubbleRadius&&p<m.minBubbleRadius&&(p=m.minBubbleRadius),m.maxBubbleRadius&&p>m.maxBubbleRadius&&(p=m.maxBubbleRadius)}n.config.chart.animations.enabled||(f=p);var g=o.x[u],y=o.y[u];if(f=f||0,null!==y&&void 0!==n.globals.series[r][d]||(h=!1),h){var b=this.drawPoint(g,y,f,p,r,d,e);c.add(b)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,n,a,r,o){var s=this.w,l=a,c=new g(this.ctx),u=new m(this.ctx),d=new L(this.ctx),h=new T(this.ctx),f=new v(this.ctx),p=h.getMarkerConfig("apexcharts-marker",l),y=d.fillPath({seriesNumber:a,dataPointIndex:r,patternUnits:"objectBoundingBox",value:s.globals.series[a][o]}),b=f.drawCircle(i);if(s.config.series[l].data[r]&&s.config.series[l].data[r].fillColor&&(y=s.config.series[l].data[r].fillColor),b.attr({cx:t,cy:e,fill:y,stroke:p.pointStrokeColor,r:n,"stroke-width":p.pWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),s.config.chart.dropShadow.enabled){var _=s.config.chart.dropShadow;u.dropShadow(b,_,a)}if(this.initialAnim&&!s.globals.dataChanged&&!s.globals.resized){var x=s.config.chart.animations.speed;c.animateCircleRadius(b,0,n,x,s.globals.easing,(function(){window.setTimeout((function(){c.animationCompleted(b)}),100)}))}if(s.globals.dataChanged)if(this.dynamicAnim){var w,k,S,M,C=s.config.chart.animations.dynamicAnimation.speed;null!=(M=s.globals.previousPaths[a]&&s.globals.previousPaths[a][o])&&(w=M.x,k=M.y,S=void 0!==M.r?M.r:n);for(var A=0;A<s.globals.collapsedSeries.length;A++)s.globals.collapsedSeries[A].index===a&&(C=1,n=0);0===t&&0===e&&(n=0),c.animateCircle(b,{cx:w,cy:k,r:S},{cx:t,cy:e,r:n},C,s.globals.easing)}else b.attr({r:n});return b.attr({rel:r,j:r,index:a,"default-marker-size":n}),u.setSelectionFilter(b,a,r),h.addEvents(b),b.node.classList.add("apexcharts-marker"),b}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),A=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"dataLabelsCorrection",value:function(t,e,i,n,a,r,o){var s=this.w,l=!1,c=new v(this.ctx).getTextRects(i,o),u=c.width,d=c.height;void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:t,y:e,width:u,height:d});var h=s.globals.dataLabelsRects[n].length-2,f=void 0!==s.globals.lastDrawnDataLabelsIndexes[n]?s.globals.lastDrawnDataLabelsIndexes[n][s.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(void 0!==s.globals.dataLabelsRects[n][h]){var p=s.globals.dataLabelsRects[n][f];(t>p.x+p.width+2||e>p.y+p.height+2||t+u<p.x)&&(l=!0)}return(0===a||r)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t,e,i){var n=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,r=this.w,o=new v(this.ctx),s=r.config.dataLabels,l=0,c=0,u=i,d=null;if(!s.enabled||!Array.isArray(t.x))return d;d=o.group({class:"apexcharts-data-labels"});for(var h=0;h<t.x.length;h++)if(l=t.x[h]+s.offsetX,c=t.y[h]+s.offsetY+a,!isNaN(l)){1===i&&0===h&&(u=0),1===i&&1===h&&(u=1);var f=r.globals.series[e][u],p="",m=function(t){return r.config.dataLabels.formatter(t,{ctx:n.ctx,seriesIndex:e,dataPointIndex:u,w:r})};if("bubble"===r.config.chart.type){p=m(f=r.globals.seriesZ[e][u]),c=t.y[h];var g=new C(this.ctx),y=g.centerTextInBubble(c,e,u);c=y.y}else void 0!==f&&(p=m(f));this.plotDataLabelsText({x:l,y:c,text:p,i:e,j:u,parent:d,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels})}return d}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new v(this.ctx),n=t.x,a=t.y,r=t.i,o=t.j,s=t.text,l=t.textAnchor,c=t.fontSize,u=t.parent,d=t.dataLabelsConfig,h=t.color,f=t.alwaysDrawDataLabel,p=t.offsetCorrection;if(!(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(r)<0)){var g={x:n,y:a,drawnextLabel:!0};p&&(g=this.dataLabelsCorrection(n,a,s,r,o,f,parseInt(d.style.fontSize,10))),e.globals.zoomed||(n=g.x,a=g.y),g.textRects;var y=e.globals.dataLabels.style.colors[r];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(y=e.globals.dataLabels.style.colors[o]),h&&(y=h);var b=d.offsetX,_=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(b=0,_=0),g.drawnextLabel){var x=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:n+b,y:a+_,foreColor:y,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(x.attr({class:"apexcharts-datalabel",cx:n,cy:a}),d.dropShadow.enabled){var w=d.dropShadow;new m(this.ctx).dropShadow(x,w)}u.add(x),void 0===e.globals.lastDrawnDataLabelsIndexes[r]&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,n=i.config.dataLabels.background,a=n.padding,r=n.padding/2,o=e.width,s=e.height,l=new v(this.ctx).drawRect(e.x-a,e.y-r/2,o+2*a,s+r,n.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new m(this.ctx).dropShadow(l,n.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var n=e[i],a=n.getBBox(),r=null;if(a.width&&a.height&&(r=this.addBackgroundToDataLabel(n,a)),r){n.parentNode.insertBefore(r.node,n);var o=n.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?r.attr({fill:o}):r.animate().attr({fill:o}),n.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<e.length;n++)i&&i.insertBefore(e[n],i.nextSibling)}}]),t}(),D=function(){function t(i){e(this,t),this.w=i.w,this.barCtx=i}return n(t,[{key:"handleBarDataLabels",value:function(t){var e=t.x,i=t.y,n=t.y1,a=t.y2,r=t.i,o=t.j,s=t.realIndex,l=t.series,c=t.barHeight,u=t.barWidth,d=t.barYPosition,h=t.visibleSeries,f=t.renderedPath,p=this.w,m=new v(this.barCtx.ctx),g=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[s]:this.barCtx.strokeWidth,y=e+parseFloat(u*h),b=i+parseFloat(c*h);p.globals.isXNumeric&&!p.globals.isBarHorizontal&&(y=e+parseFloat(u*(h+1)),b=i+parseFloat(c*(h+1))-g);var _,x=e,w=i,k=p.config.dataLabels,S=this.barCtx.barOptions.dataLabels;void 0!==d&&this.barCtx.isTimelineBar&&(b=d,w=d);var M=k.offsetX,L=k.offsetY,T={width:0,height:0};if(p.config.dataLabels.enabled){var C=this.barCtx.series[r][o];T=m.getTextRects(p.globals.yLabelFormatters[0](C),parseFloat(k.style.fontSize))}var A={x:e,y:i,i:r,j:o,renderedPath:f,bcx:y,bcy:b,barHeight:c,barWidth:u,textRects:T,strokeWidth:g,dataLabelsX:x,dataLabelsY:w,barDataLabelsConfig:S,offX:M,offY:L};return _=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(A):this.calculateColumnsDataLabelsPosition(A),f.attr({cy:_.bcy,cx:_.bcx,j:o,val:l[r][o],barHeight:c,barWidth:u}),this.drawCalculatedDataLabels({x:_.dataLabelsX,y:_.dataLabelsY,val:this.barCtx.isTimelineBar?[n,a]:l[r][o],i:s,j:o,barWidth:u,barHeight:c,textRects:T,dataLabelsConfig:k})}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i=this.w,n=t.i,a=t.j,r=t.y,o=t.bcx,s=t.barWidth,l=t.barHeight,c=t.textRects,u=t.dataLabelsY,d=t.barDataLabelsConfig,h=t.strokeWidth,f=t.offX,p=t.offY;l=Math.abs(l);var m="vertical"===i.config.plotOptions.bar.dataLabels.orientation;o-=h/2;var g=i.globals.gridWidth/i.globals.dataPoints;e=i.globals.isXNumeric?o-s/2+f:o-g+s/2+f,m&&(e=e+c.height/2-h/2-2);var v=this.barCtx.series[n][a]<0,y=r;switch(this.barCtx.isReversed&&(y=r-l+(v?2*l:0),r-=l),d.position){case"center":u=m?v?y+l/2+p:y+l/2-p:v?y-l/2+c.height/2+p:y+l/2+c.height/2-p;break;case"bottom":u=m?v?y+l+p:y+l-p:v?y-l+c.height+h+p:y+l-c.height/2+h-p;break;case"top":u=m?v?y+p:y-p:v?y-c.height/2-p:y+c.height+p}return i.config.chart.stacked||(u<0?u=0+h:u+c.height/3>i.globals.gridHeight&&(u=i.globals.gridHeight-h)),{bcx:o,bcy:r,dataLabelsX:e,dataLabelsY:u}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,n=t.i,a=t.j,r=t.bcy,o=t.barHeight,s=t.barWidth,l=t.textRects,c=t.dataLabelsX,u=t.strokeWidth,d=t.barDataLabelsConfig,h=t.offX,f=t.offY,p=e.globals.gridHeight/e.globals.dataPoints;s=Math.abs(s);var m=r-(this.barCtx.isTimelineBar?0:p)+o/2+l.height/2+f-3,g=this.barCtx.series[n][a]<0,v=i;switch(this.barCtx.isReversed&&(v=i+s-(g?2*s:0),i=e.globals.gridWidth-s),d.position){case"center":c=g?v+s/2-h:Math.max(l.width/2,v-s/2)+h;break;case"bottom":c=g?v+s-u-Math.round(l.width/2)-h:v-s+u+Math.round(l.width/2)+h;break;case"top":c=g?v-u+Math.round(l.width/2)-h:v-u-Math.round(l.width/2)+h}return e.config.chart.stacked||(c<0?c=c+l.width+u:c+l.width/2>e.globals.gridWidth&&(c=e.globals.gridWidth-l.width-u)),{bcx:i,bcy:r,dataLabelsX:c,dataLabelsY:m}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,n=t.val,a=t.i,r=t.j,s=t.textRects,l=t.barHeight,c=t.barWidth,u=t.dataLabelsConfig,d=this.w,h="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(h="rotate(-90, ".concat(e,", ").concat(i,")"));var f=new A(this.barCtx.ctx),p=new v(this.barCtx.ctx),m=u.formatter,g=null,y=d.globals.collapsedSeriesIndices.indexOf(a)>-1;if(u.enabled&&!y){g=p.group({class:"apexcharts-data-labels",transform:h});var b="";void 0!==n&&(b=m(n,{seriesIndex:a,dataPointIndex:r,w:d})),0===n&&d.config.chart.stacked&&(b="");var _=d.globals.series[a][r]<=0,x=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===x&&(u.textAnchor=_?"end":"start"),"center"===x&&(u.textAnchor="middle"),"bottom"===x&&(u.textAnchor=_?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&c<p.getTextRects(b,parseFloat(u.style.fontSize)).width&&(b=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?(c>0&&s.width/1.6>c||c<0&&s.width/1.6<c)&&(b=""):s.height/1.6>l&&(b=""));var w=o({},u);this.barCtx.isHorizontal&&n<0&&("start"===u.textAnchor?w.textAnchor="end":"end"===u.textAnchor&&(w.textAnchor="start")),f.plotDataLabelsText({x:e,y:i,text:b,i:a,j:r,parent:g,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return g}}]),t}(),E=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.legendInactiveClass="legend-mouseover-inactive"}return n(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(p.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function n(i){for(var n=0;n<i.length;n++)i[n].index===e&&t.node.classList.add("apexcharts-series-collapsed")}n(i.globals.collapsedSeries),n(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w,a=p.clone(n.globals.initialSeries);n.globals.previousPaths=[],i?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),n.config.series=a,t&&(e&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===t.type){var a=parseInt(e.getAttribute("rel"),10)-1,r=null,o=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(a,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(a,"']"))):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"']")):r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"'] path"));for(var s=0;s<n.length;s++)n[s].classList.add(this.legendInactiveClass);null!==r&&(i.globals.axisCharts||r.parentNode.classList.remove(this.legendInactiveClass),r.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass))}else if("mouseout"===t.type)for(var l=0;l<n.length;l++)n[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,n=this.w,a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),r=function(t){for(var e=0;e<a.length;e++)a[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var o=parseInt(e.getAttribute("rel"),10)-1;r("add"),function(t){for(var e=0;e<a.length;e++){var n=parseInt(a[e].getAttribute("val"),10);n>=t.from&&n<=t.to&&a[e].classList.remove(i.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===t.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.w,i=0;if(e.config.series.length>1)for(var n=e.config.series.map((function(i,n){var a=!1;return t&&(a="bar"===e.config.series[n].type||"column"===e.config.series[n].type),i.data&&i.data.length>0&&!a?n:-1})),a=0;a<n.length;a++)if(-1!==n[a]){i=n[a];break}return i}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,n){for(var a=e[i].childNodes,r={type:n,paths:[],realIndex:e[i].getAttribute("data:realIndex")},o=0;o<a.length;o++)if(a[o].hasAttribute("pathTo")){var s=a[o].getAttribute("pathTo");r.paths.push({d:s})}t.globals.previousPaths.push(r)}t.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach((function(i){for(var n,a=(n=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"))),r=0;r<a.length;r++)e(a,r,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var n=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),n=[],a=function(t){var e=function(e){return i[t].getAttribute(e)},a={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};n.push({rect:a,color:i[t].getAttribute("color")})},r=0;r<i.length;r++)a(r);t.globals.previousPaths.push(n)},a=0;a<i.length;a++)n(a);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(t){var e=this.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series"));if(i.length>0)for(var n=0;n<i.length;n++){for(var a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),r=[],o=0;o<a.length;o++)r.push({x:a[o].getAttribute("cx"),y:a[o].getAttribute("cy"),r:a[o].getAttribute("r")});e.globals.previousPaths.push(r)}}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new v(this.ctx),n=t.globals.svgWidth/2,a=t.globals.svgHeight/2,r="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(n=10,r="start"):"right"===e.align&&(n=t.globals.svgWidth-10,r="end"),"top"===e.verticalAlign?a=50:"bottom"===e.verticalAlign&&(a=t.globals.svgHeight-50),n+=e.offsetX,a=a+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var o=i.drawText({x:n,y:a,text:e.text,textAnchor:r,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(o)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var n=0;n<t[e.globals.maxValsInArrayIndex].length;n++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(t){return t.length>0?t:[]}))}}]),t}(),O=function(){function t(i){e(this,t),this.w=i.w,this.barCtx=i}return n(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var n=0;n<t[i].length;n++)e.globals.seriesX[i][n]>e.globals.minX&&e.globals.seriesX[i][n]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1)}},{key:"initialPositions",value:function(){var t,e,i,n,a,r,o,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isTimelineBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)a=(i=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(a=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),a=a*parseInt(this.barCtx.barOptions.barHeight,10)/100,s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),e=(i-a*this.barCtx.seriesLen)/2;else{if(n=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(n=l.globals.gridWidth/l.globals.dataPoints),r=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(n=l.globals.minXDiff/d),(r=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),t=l.globals.padHorizontal+(n-r*this.barCtx.seriesLen)/2}return{x:t,y:e,yDivision:i,xDivision:n,barHeight:a,barWidth:r,zeroH:o,zeroW:s}}},{key:"getPathFillColor",value:function(t,e,i,n){var a=this.w,r=new L(this.barCtx.ctx),o=null,s=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(n){t[e][i]>=n.from&&t[e][i]<=n.to&&(o=n.color)})),a.config.series[e].data[i]&&a.config.series[e].data[i].fillColor&&(o=a.config.series[e].data[i].fillColor),r.fillPath({seriesNumber:this.barCtx.barOptions.distributed?s:n,dataPointIndex:i,color:o,value:t[e][i]})}},{key:"getStrokeWidth",value:function(t,e,i){var n=0,a=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,a.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),n}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,n=t.x1,a=t.x2,r=t.y1,o=t.y2,s=t.elSeries,l=this.w,c=new v(this.barCtx.ctx),u=new E(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e-=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],h=c.drawRect(void 0!==n?n:0,void 0!==r?r:0,void 0!==a?a:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e=t.barWidth,i=t.barXPosition,n=t.yRatio,a=t.y1,r=t.y2,o=t.strokeWidth,s=t.series,l=t.realIndex,c=t.i,u=t.j,d=t.w,h=new v(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var f={barWidth:e,strokeWidth:o,yRatio:n,barXPosition:i,y1:a,y2:r},p=this.getRoundedBars(d,f,s,c,u),m=i,g=i+e,y=h.move(m,p.y1),b=h.move(m,p.y1);return d.globals.previousPaths.length>0&&(b=this.barCtx.getPreviousPath(l,u,!1)),{pathTo:y=y+h.line(m,p.y2)+p.endingPath+h.line(g-o,p.y2)+h.line(g-o,p.y1)+p.startingPath+"z",pathFrom:b=b+h.line(m,a)+h.line(g-o,a)+h.line(g-o,a)+h.line(g-o,a)+h.line(m,a)}}},{key:"getBarpaths",value:function(t){var e=t.barYPosition,i=t.barHeight,n=t.x1,a=t.x2,r=t.strokeWidth,o=t.series,s=t.realIndex,l=t.i,c=t.j,u=t.w,d=new v(this.barCtx.ctx);(r=Array.isArray(r)?r[s]:r)||(r=0);var h={barHeight:i,strokeWidth:r,barYPosition:e,x2:a,x1:n},f=this.getRoundedBars(u,h,o,l,c),p=d.move(f.x1,e),m=d.move(f.x1,e);u.globals.previousPaths.length>0&&(m=this.barCtx.getPreviousPath(s,c,!1));var g=e,y=e+i;return{pathTo:p=p+d.line(f.x2,g)+f.endingPath+d.line(f.x2,y-r)+d.line(f.x1,y-r)+f.startingPath+"z",pathFrom:m=m+d.line(n,g)+d.line(n,y-r)+d.line(n,y-r)+d.line(n,y-r)+d.line(n,g)}}},{key:"getRoundedBars",value:function(t,e,i,n,a){var r=new v(this.barCtx.ctx),o=Array.isArray(e.strokeWidth)?e.strokeWidth[n]:e.strokeWidth;if(o||(o=0),this.barCtx.isHorizontal){var s=null,l="",c=e.x2,u=e.x1;if(void 0!==i[n][a]||null!==i[n][a]){var d=i[n][a]<0,h=e.barHeight/2-o;switch(d&&(h=-e.barHeight/2-o),h>Math.abs(c-u)&&(h=Math.abs(c-u)),"rounded"===this.barCtx.barOptions.endingShape&&(c=e.x2-h/2),"rounded"===this.barCtx.barOptions.startingShape&&(u=e.x1+h/2),this.barCtx.barOptions.endingShape){case"flat":s=r.line(c,e.barYPosition+e.barHeight-o);break;case"rounded":s=r.quadraticCurve(c+h,e.barYPosition+(e.barHeight-o)/2,c,e.barYPosition+e.barHeight-o)}switch(this.barCtx.barOptions.startingShape){case"flat":l=r.line(u,e.barYPosition+e.barHeight-o);break;case"rounded":l=r.quadraticCurve(u-h,e.barYPosition+e.barHeight/2,u,e.barYPosition)}}return{endingPath:s,startingPath:l,x2:c,x1:u}}var f=null,p="",m=e.y2,g=e.y1;if(void 0!==i[n][a]||null!==i[n][a]){var y=i[n][a]<0,b=e.barWidth/2-o;switch(y&&(b=-e.barWidth/2-o),b>Math.abs(m-g)&&(b=Math.abs(m-g)),"rounded"===this.barCtx.barOptions.endingShape&&(m+=b/2),"rounded"===this.barCtx.barOptions.startingShape&&(g-=b/2),this.barCtx.barOptions.endingShape){case"flat":f=r.line(e.barXPosition+e.barWidth-o,m);break;case"rounded":f=r.quadraticCurve(e.barXPosition+(e.barWidth-o)/2,m-b,e.barXPosition+e.barWidth-o,m)}switch(this.barCtx.barOptions.startingShape){case"flat":p=r.line(e.barXPosition+e.barWidth-o,g);break;case"rounded":p=r.quadraticCurve(e.barXPosition+(e.barWidth-o)/2,g+b,e.barXPosition,g)}}return{endingPath:f,startingPath:p,y2:m,y1:g}}}]),t}(),P=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.isTimelineBar="datetime"===a.config.xaxis.type&&a.globals.seriesRangeBarTimeline.length,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.initialXRatio=n.initialXRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new O(this)}return n(t,[{key:"draw",value:function(t,e){var i=this.w,n=new v(this.ctx),a=new _(this.ctx,i);t=a.getLogSeries(t),this.series=t,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var r=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var s=0,l=0;s<t.length;s++,l++){var c,u,d,h,f=void 0,m=void 0,g=[],y=[],b=i.globals.comboCharts?e[s]:s,x=n.group({class:"apexcharts-series",rel:s+1,seriesName:p.escapeString(i.globals.seriesNames[b]),"data:realIndex":b});this.ctx.series.addCollapsedClassToSeries(x,b),t[s].length>0&&(this.visibleI=this.visibleI+1);var w=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=b),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var S=this.barHelpers.initialPositions();m=S.y,w=S.barHeight,u=S.yDivision,h=S.zeroW,f=S.x,k=S.barWidth,c=S.xDivision,d=S.zeroH,this.horizontal||y.push(f+k/2);for(var M=n.group({class:"apexcharts-datalabels","data:realIndex":b}),L=0;L<i.globals.dataPoints;L++){var T=this.barHelpers.getStrokeWidth(s,L,b),C=null,A={indexes:{i:s,j:L,realIndex:b,bc:l},x:f,y:m,strokeWidth:T,elSeries:x};this.isHorizontal?(C=this.drawBarPaths(o(o({},A),{},{barHeight:w,zeroW:h,yDivision:u})),k=this.series[s][L]/this.invertedYRatio):(C=this.drawColumnPaths(o(o({},A),{},{xDivision:c,barWidth:k,zeroH:d})),w=this.series[s][L]/this.yRatio[this.yaxisIndex]),m=C.y,f=C.x,L>0&&y.push(f+k/2),g.push(m);var D=this.barHelpers.getPathFillColor(t,s,L,b);this.renderSeries({realIndex:b,pathFill:D,j:L,i:s,pathFrom:C.pathFrom,pathTo:C.pathTo,strokeWidth:T,elSeries:x,x:f,y:m,series:t,barHeight:w,barWidth:k,elDataLabelsWrap:M,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=y,i.globals.seriesYvalues[b]=g,r.add(x)}return r}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,n=t.lineFill,a=t.j,r=t.i,o=t.pathFrom,s=t.pathTo,l=t.strokeWidth,c=t.elSeries,u=t.x,d=t.y,h=t.y1,f=t.y2,p=t.series,g=t.barHeight,y=t.barWidth,b=t.barYPosition,_=t.elDataLabelsWrap,x=t.visibleSeries,w=t.type,k=this.w,S=new v(this.ctx);n||(n=this.barOptions.distributed?k.globals.stroke.colors[a]:k.globals.stroke.colors[e]),k.config.series[r].data[a]&&k.config.series[r].data[a].strokeColor&&(n=k.config.series[r].data[a].strokeColor),this.isNullValue&&(i="none");var M=a/k.config.chart.animations.animateGradually.delay*(k.config.chart.animations.speed/k.globals.dataPoints)/2.4,L=S.renderPaths({i:r,j:a,realIndex:e,pathFrom:o,pathTo:s,stroke:n,strokeWidth:l,strokeLineCap:k.config.stroke.lineCap,fill:i,animationDelay:M,initialSpeed:k.config.chart.animations.speed,dataChangeSpeed:k.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(w,"-area")});L.attr("clip-path","url(#gridRectMask".concat(k.globals.cuid,")")),void 0!==h&&void 0!==f&&(L.attr("data-range-y1",h),L.attr("data-range-y2",f)),new m(this.ctx).setSelectionFilter(L,e,a),c.add(L);var T=new D(this).handleBarDataLabels({x:u,y:d,y1:h,y2:f,i:r,j:a,series:p,realIndex:e,barHeight:g,barWidth:y,barYPosition:b,renderedPath:L,visibleSeries:x});return null!==T&&_.add(T),c.add(_),c}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,n=t.strokeWidth,a=t.zeroW,r=t.x,o=t.y,s=t.yDivision,l=t.elSeries,c=this.w,u=e.i,d=e.j;c.globals.isXNumeric&&(o=(c.globals.seriesX[u][d]-c.globals.minX)/this.invertedXRatio-i);var h=o+i*this.visibleI;r=void 0===this.series[u][d]||null===this.series[u][d]?a:a+this.series[u][d]/this.invertedYRatio-2*(this.isReversed?this.series[u][d]/this.invertedYRatio:0);var f=this.barHelpers.getBarpaths({barYPosition:h,barHeight:i,x1:a,x2:r,strokeWidth:n,series:this.series,realIndex:e.realIndex,i:u,j:d,w:c});return c.globals.isXNumeric||(o+=s),this.barHelpers.barBackground({j:d,i:u,y1:h-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x:r,y:o,barYPosition:h}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,a=t.xDivision,r=t.barWidth,o=t.zeroH,s=t.strokeWidth,l=t.elSeries,c=this.w,u=e.realIndex,d=e.i,h=e.j,f=e.bc;if(c.globals.isXNumeric){var p=u;c.globals.seriesX[u].length||(p=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[p][h]-c.globals.minX)/this.xRatio-r*this.seriesLen/2}var m=i+r*this.visibleI;n=void 0===this.series[d][h]||null===this.series[d][h]?o:o-this.series[d][h]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[d][h]/this.yRatio[this.yaxisIndex]:0);var g=this.barHelpers.getColumnPaths({barXPosition:m,barWidth:r,y1:o,y2:n,strokeWidth:s,series:this.series,realIndex:e.realIndex,i:d,j:h,w:c});return c.globals.isXNumeric||(i+=a),this.barHelpers.barBackground({bc:f,j:h,i:d,x1:m-s/2-r*this.visibleI,x2:r*this.seriesLen+s/2,elSeries:l}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x:i,y:n,barXPosition:m}}},{key:"getPreviousPath",value:function(t,e){for(var i,n=this.w,a=0;a<n.globals.previousPaths.length;a++){var r=n.globals.previousPaths[a];r.paths&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==n.globals.previousPaths[a].paths[e]&&(i=n.globals.previousPaths[a].paths[e].d)}return i}}]),t}(),Y=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return n(t,[{key:"isValidDate",value:function(t){return!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(h(i.months)),r=[""].concat(h(i.shortMonths)),o=[""].concat(h(i.days)),s=[""].concat(h(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=n?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(n?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+r[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var d=n?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var f=n?t.getUTCHours():t.getHours(),p=f>12?f-12:0===f?12:f;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var m=n?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(m))).replace(/(^|[^\\])m/g,"$1"+m);var g=n?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var v=n?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(v,3)),v=Math.round(v/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(v)),v=Math.round(v/10);var y=f<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var _=-t.getTimezoneOffset(),x=n||!_?"Z":_>0?"+":"-";if(!n){var w=(_=Math.abs(_))%60;x+=l(Math.floor(_/60))+":"+l(w)}e=e.replace(/(^|[^\\])K/g,"$1"+x);var k=(n?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(s[0],"g"),s[k])).replace(new RegExp(a[0],"g"),a[u])).replace(new RegExp(r[0],"g"),r[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var n=this.w;void 0!==n.config.xaxis.min&&(t=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(e=n.config.xaxis.max);var a=this.getDate(t),r=this.getDate(e),o=this.formatDate(a,"yyyy MM dd HH mm ss").split(" "),s=this.formatDate(r,"yyyy MM dd HH mm ss").split(" ");return{minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var n=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=p.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),I=function(t){s(a,t);var i=d(a);function a(){return e(this,a),i.apply(this,arguments)}return n(a,[{key:"draw",value:function(t,e){var i=this.w,n=new v(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var a=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),r=0;r<t.length;r++){var s,l,c,u=void 0,d=void 0,h=void 0,f=i.globals.comboCharts?e[r]:r,m=n.group({class:"apexcharts-series",seriesName:p.escapeString(i.globals.seriesNames[f]),rel:r+1,"data:realIndex":f});t[r].length>0&&(this.visibleI=this.visibleI+1);var g=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=f);var b=this.barHelpers.initialPositions();d=b.y,c=b.zeroW,u=b.x,y=b.barWidth,s=b.xDivision,l=b.zeroH;for(var _=n.group({class:"apexcharts-datalabels","data:realIndex":f}),x=0;x<i.globals.dataPoints;x++){var w=this.barHelpers.getStrokeWidth(r,x,f),k=this.seriesRangeStart[r][x],S=this.seriesRangeEnd[r][x],M=null,L=null,T={x:u,y:d,strokeWidth:w,elSeries:m};if(h=b.yDivision,g=b.barHeight,this.isHorizontal){L=d+g*this.visibleI;var C=this.seriesLen;i.config.plotOptions.bar.rangeBarGroupRows&&(C=1);var A=(h-g*C)/2;if(void 0===i.config.series[r].data[x])break;if(this.isTimelineBar&&i.config.series[r].data[x].x){var D=this.detectOverlappingBars({i:r,j:x,barYPosition:L,srty:A,barHeight:g,yDivision:h,initPositions:b});g=D.barHeight,L=D.barYPosition}y=(M=this.drawRangeBarPaths(o({indexes:{i:r,j:x,realIndex:f},barHeight:g,barYPosition:L,zeroW:c,yDivision:h,y1:k,y2:S},T))).barWidth}else g=(M=this.drawRangeColumnPaths(o({indexes:{i:r,j:x,realIndex:f},zeroH:l,barWidth:y,xDivision:s},T))).barHeight;d=M.y,u=M.x;var E=this.barHelpers.getPathFillColor(t,r,x,f),O=i.globals.stroke.colors[f];this.renderSeries({realIndex:f,pathFill:E,lineFill:O,j:x,i:r,x:u,y:d,y1:k,y2:S,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:w,elSeries:m,series:t,barHeight:g,barYPosition:L,barWidth:y,elDataLabelsWrap:_,visibleSeries:this.visibleI,type:"rangebar"})}a.add(m)}return a}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,n=t.barYPosition,a=t.srty,r=t.barHeight,o=t.yDivision,s=t.initPositions,l=this.w,c=[],u=l.config.series[e].data[i].rangeName,d=l.config.series[e].data[i].x,h=l.globals.labels.indexOf(d),f=l.globals.seriesRangeBarTimeline[e].findIndex((function(t){return t.x===d&&t.overlaps.length>0}));return n=l.config.plotOptions.bar.rangeBarGroupRows?a+o*h:a+r*this.visibleI+o*h,f>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBarTimeline[e][f].overlaps).indexOf(u)>-1&&(n=(r=s.barHeight/c.length)*this.visibleI+o*(100-parseInt(this.barOptions.barHeight,10))/100/2+r*(this.visibleI+c.indexOf(u))+o*h),{barYPosition:n,barHeight:r}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=(t.strokeWidth,t.xDivision),a=t.barWidth,r=t.zeroH,o=this.w,s=e.i,l=e.j,c=this.yRatio[this.yaxisIndex],u=e.realIndex,d=this.getRangeValue(u,l),h=Math.min(d.start,d.end),f=Math.max(d.start,d.end);o.globals.isXNumeric&&(i=(o.globals.seriesX[s][l]-o.globals.minX)/this.xRatio-a/2);var p=i+a*this.visibleI;void 0===this.series[s][l]||null===this.series[s][l]?h=r:(h=r-h/c,f=r-f/c);var m=Math.abs(f-h),g=this.barHelpers.getColumnPaths({barXPosition:p,barWidth:a,y1:h,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:u,j:l,w:o});return o.globals.isXNumeric||(i+=n),{pathTo:g.pathTo,pathFrom:g.pathFrom,barHeight:m,x:i,y:f,barXPosition:p}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,n=t.y1,a=t.y2,r=t.yDivision,o=t.barHeight,s=t.barYPosition,l=t.zeroW,c=this.w,u=l+n/this.invertedYRatio,d=l+a/this.invertedYRatio,h=Math.abs(d-u),f=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:u,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:c});return c.globals.isXNumeric||(i+=r),{pathTo:f.pathTo,pathFrom:f.pathFrom,barWidth:h,x:d,y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}},{key:"getTooltipValues",value:function(t){var e=t.ctx,i=t.seriesIndex,n=t.dataPointIndex,a=t.y1,r=t.y2,o=t.w,s=o.globals.seriesRangeStart[i][n],l=o.globals.seriesRangeEnd[i][n],c=o.globals.labels[n],u=o.config.series[i].name?o.config.series[i].name:"",d=o.config.tooltip.y.formatter,h=o.config.tooltip.y.title.formatter,f={w:o,seriesIndex:i,dataPointIndex:n};"function"==typeof h&&(u=h(u,f)),a&&r&&(s=a,l=r,o.config.series[i].data[n].x&&(c=o.config.series[i].data[n].x+":"),"function"==typeof d&&(c=d(c,f)));var p="",m="",g=o.globals.colors[i];if(void 0===o.config.tooltip.x.formatter)if("datetime"===o.config.xaxis.type){var v=new Y(e);p=v.formatDate(v.getDate(s),o.config.tooltip.x.format),m=v.formatDate(v.getDate(l),o.config.tooltip.x.format)}else p=s,m=l;else p=o.config.tooltip.x.formatter(s),m=o.config.tooltip.x.formatter(l);return{start:s,end:l,startVal:p,endVal:m,ylabel:c,color:g,seriesName:u}}},{key:"buildCustomTooltipHTML",value:function(t){return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t.color+'">'+(t.seriesName||"")+'</span></div><div> <span class="category">'+t.ylabel+' </span> <span class="value start-value">'+t.start+'</span> <span class="separator">-</span> <span class="value end-value">'+t.end+"</span></div></div>"}}]),a}(P),N=function(){function t(i){e(this,t),this.opts=i}return n(t,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,p.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,n=t.w;return'<div class="apexcharts-tooltip-candlestick"><div>Open: <span class="value">'+n.globals.seriesCandleO[e][i]+'</span></div><div>High: <span class="value">'+n.globals.seriesCandleH[e][i]+'</span></div><div>Low: <span class="value">'+n.globals.seriesCandleL[e][i]+'</span></div><div>Close: <span class="value">'+n.globals.seriesCandleC[e][i]+"</span></div></div>"}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,n=e.dataPointIndex,a=e.w,r=a.globals.seriesRangeStart[i][n];return a.globals.seriesRangeEnd[i][n]-r},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=new I(t.ctx,null),i=e.getTooltipValues(t),n=i.color,a=i.seriesName,r=i.ylabel,o=i.startVal,s=i.endVal;return e.buildCustomTooltipHTML({color:n,seriesName:a,ylabel:r,start:o,end:s})}(t):function(t){var e=new I(t.ctx,null),i=e.getTooltipValues(t),n=i.color,a=i.seriesName,r=i.ylabel,o=i.start,s=i.end;return e.buildCustomTooltipHTML({color:n,seriesName:a,ylabel:r,start:o,end:s})}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(t){return p.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return p.isNumber(t)?Math.floor(t):t};var n=t.xaxis.labels.formatter,a=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(a=i.map((function(t){return Array.isArray(t)?t:String(t)}))),a&&a.length&&(t.xaxis.labels.formatter=function(t){return p.isNumber(t)?n(a[Math.floor(t)-1]):n(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}}]),t}(),H=function(){function i(t){e(this,i),this.opts=t}return n(i,[{key:"init",value:function(e){var i=e.responsiveOverride,n=this.opts,a=new S,r=new N(n);this.chartType=n.chart.type,"histogram"===this.chartType&&(n.chart.type="bar",n=p.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},n)),n=this.extendYAxis(n),n=this.extendAnnotations(n);var o=a.init(),s={};if(n&&"object"===t(n)){var l={};l=-1!==["line","area","bar","candlestick","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?r[n.chart.type]():r.line(),n.chart.brush&&n.chart.brush.enabled&&(l=r.brush(l)),n.chart.stacked&&"100%"===n.chart.stackType&&(n=r.stacked100(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},i||(n.xaxis.convertedCatToNumeric=!1),((n=this.checkForCatToNumericXAxis(this.chartType,l,n)).chart.sparkline&&n.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=r.sparkline(l)),s=p.extend(o,l)}var c=p.extend(s,window.Apex);return o=p.extend(c,n),this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var n=new N(i),a="bar"===t&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,r="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,o="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,s=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return a||r||!o||"between"===s||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new S;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=p.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[p.extend(i.yAxis,t.yaxis)]:t.yaxis=p.extendArray(t.yaxis,i.yAxis);var n=!1;t.yaxis.forEach((function(t){t.logarithmic&&(n=!0)}));var a=t.series;return e&&!a&&(a=e.config.series),n&&a.length!==t.yaxis.length&&a.length&&(t.yaxis=a.map((function(e,n){if(e.name||(a[n].name="series-".concat(n+1)),t.yaxis[n])return t.yaxis[n].seriesName=a[n].name,t.yaxis[n];var r=p.extend(i.yAxis,t.yaxis[0]);return r.show=!1,r}))),n&&a.length>1&&a.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new S;return t.annotations.yaxis=p.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new S;return t.annotations.xaxis=p.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new S;return t.annotations.points=p.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&("barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'),e.xaxis.crosshairs.width="tickWidth"),e.plotOptions.bar.horizontal&&(e.states.hover.type="none",e.tooltip.shared=!1),e.tooltip.followCursor||(console.warn("followCursor option in shared columns cannot be turned off. Please set %ctooltip.followCursor: true","color: blue;"),e.tooltip.followCursor=!0)),"candlestick"===e.chart.type&&e.yaxis[0].reversed&&(console.warn("Reversed y-axis in candlestick chart is not supported."),e.yaxis[0].reversed=!1),e.chart.group&&0===e.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(e.stroke.width)&&"line"!==e.chart.type&&"area"!==e.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),e.stroke.width=e.stroke.width[0]),e}}]),i}(),j=function(){function t(){e(this,t)}return n(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRangeBarTimeline=[],t.seriesPercent=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.xaxisLabelsCount=0,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=p.extend({},t),e.initialSeries=p.clone(t.series),e.lastXAxis=p.clone(e.initialConfig.xaxis),e.lastYAxis=p.clone(e.initialConfig.yaxis),e}}]),t}(),F=function(){function t(i){e(this,t),this.opts=i}return n(t,[{key:"init",value:function(){var t=new H(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new j).init(t)}}}]),t}(),R=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.coreUtils=new _(this.ctx)}return n(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new E(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new E(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){var i=this.w.config,n=this.w.globals;i.xaxis.sorted&&("datetime"===i.xaxis.type?t[e].data.sort((function(t,e){return new Date(t[0]).getTime()-new Date(e[0]).getTime()})):"numeric"===i.xaxis.type&&t[e].data.sort((function(t,e){return t[0]-e[0]})));for(var a=0;a<t[e].data.length;a++)if(void 0!==t[e].data[a][1]&&(Array.isArray(t[e].data[a][1])&&4===t[e].data[a][1].length?this.twoDSeries.push(p.parseNumber(t[e].data[a][1][3])):5===t[e].data[a].length?this.twoDSeries.push(p.parseNumber(t[e].data[a][4])):this.twoDSeries.push(p.parseNumber(t[e].data[a][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var r=new Date(t[e].data[a][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(t[e].data[a][0]);for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o][2]&&(this.threeDSeries.push(t[e].data[o][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,n=this.w.globals,a=new Y(this.ctx),r=e;n.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex),i.xaxis.sorted&&("datetime"===i.xaxis.type?t[e].data.sort((function(t,e){return new Date(t.x).getTime()-new Date(e.x).getTime()})):"numeric"===i.xaxis.type&&t[e].data.sort((function(t,e){return t.x-e.x})));for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o].y&&(Array.isArray(t[e].data[o].y)?this.twoDSeries.push(p.parseNumber(t[e].data[o].y[t[e].data[o].y.length-1])):this.twoDSeries.push(p.parseNumber(t[e].data[o].y)));for(var s=0;s<t[r].data.length;s++){var l="string"==typeof t[r].data[s].x,c=Array.isArray(t[r].data[s].x),u=!c&&!!a.isValidDate(t[r].data[s].x.toString());if(l||u)if(l||i.xaxis.convertedCatToNumeric){var d=n.isBarHorizontal&&n.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[r].data[s].x)):this.twoDSeriesX.push(a.parseDate(t[r].data[s].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(a.parseDate(t[r].data[s].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[r].data[s].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[r].data[s].x)):(n.isXNumeric=!0,n.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[r].data[s].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var h=0;h<t[e].data.length;h++)this.threeDSeries.push(t[e].data[h].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.config,n=this.w.globals,a={};return this.isFormat2DArray()?a=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(a=this.handleRangeDataFormat("xy",t,e)),n.seriesRangeStart.push(a.start),n.seriesRangeEnd.push(a.end),"datetime"===i.xaxis.type&&n.seriesRangeBarTimeline.push(a.rangeUniques),n.seriesRangeBarTimeline.forEach((function(t,e){t&&t.forEach((function(t,e){t.y.forEach((function(e,i){for(var n=0;n<t.y.length;n++)if(i!==n){var a=e.y1,r=e.y2,o=t.y[n].y1;a<=t.y[n].y2&&o<=r&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[n].rangeName)<0&&t.overlaps.push(t.y[n].rangeName))}}))}))})),a}},{key:"handleCandleStickData",value:function(t,e){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickDataFormat("array",t,e):this.isFormatXY()&&(n=this.handleCandleStickDataFormat("xy",t,e)),i.seriesCandleO[e]=n.o,i.seriesCandleH[e]=n.h,i.seriesCandleL[e]=n.l,i.seriesCandleC[e]=n.c,n}},{key:"handleRangeDataFormat",value:function(t,e,i){var n=[],a=[],r=e[i].data.filter((function(t,e,i){return e===i.findIndex((function(e){return e.x===t.x}))})).map((function(t,e){return{x:t.x,overlaps:[],y:[]}})),o="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",s=new E(this.ctx).getActiveConfigSeriesIndex();if("array"===t){if(2!==e[s].data[0][1].length)throw new Error(o);for(var l=0;l<e[i].data.length;l++)n.push(e[i].data[l][1][0]),a.push(e[i].data[l][1][1])}else if("xy"===t){if(2!==e[s].data[0].y.length)throw new Error(o);for(var c=function(t){var o=p.randomId(),s=e[i].data[t].x,l={y1:e[i].data[t].y[0],y2:e[i].data[t].y[1],rangeName:o};e[i].data[t].rangeName=o;var c=r.findIndex((function(t){return t.x===s}));r[c].y.push(l),n.push(l.y1),a.push(l.y2)},u=0;u<e[i].data.length;u++)c(u)}return{start:n,end:a,rangeUniques:r}}},{key:"handleCandleStickDataFormat",value:function(t,e,i){var n=this.w,a=[],r=[],o=[],s=[],l="Please provide [Open, High, Low and Close] values in valid format. Read more https://apexcharts.com/docs/series/#candlestick";if("array"===t){if(!Array.isArray(e[i].data[0][1])&&5!==e[i].data[0].length||Array.isArray(e[i].data[0][1])&&4!==e[i].data[0][1].length)throw new Error(l);if(5===e[i].data[0].length)for(var c=0;c<e[i].data.length;c++)a.push(e[i].data[c][1]),r.push(e[i].data[c][2]),o.push(e[i].data[c][3]),s.push(e[i].data[c][4]);else for(var u=0;u<e[i].data.length;u++)a.push(e[i].data[u][1][0]),r.push(e[i].data[u][1][1]),o.push(e[i].data[u][1][2]),s.push(e[i].data[u][1][3])}else if("xy"===t){if(!n.globals.comboCharts&&4!==e[i].data[0].y.length||n.globals.comboCharts&&"candlestick"===e[i].type&&e[i].data.length&&4!==e[i].data[0].y.length)throw new Error(l);for(var d=0;d<e[i].data.length;d++)a.push(e[i].data[d].y[0]),r.push(e[i].data[d].y[1]),o.push(e[i].data[d].y[2]),s.push(e[i].data[d].y[3])}return{o:a,h:r,l:o,c:s}}},{key:"parseDataAxisCharts",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,n=this.w.config,a=this.w.globals,r=new Y(i),o=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();a.isTimelineBar="rangeBar"===n.chart.type&&"datetime"===n.xaxis.type;for(var s=function(){for(var t=0;t<o.length;t++)if("string"==typeof o[t]){if(!r.isValidDate(o[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(r.parseDate(o[t]))}else e.twoDSeriesX.push(o[t])},l=0;l<t.length;l++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[l].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type&&"rangeBar"!==t[l].type&&"rangeArea"!==t[l].type||(a.isRangeData=!0,this.handleRangeData(t,l)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,l):this.isFormatXY()&&this.handleFormatXY(t,l),"candlestick"!==n.chart.type&&"candlestick"!==t[l].type||this.handleCandleStickData(t,l),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),l!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{"datetime"===n.xaxis.type?(a.isXNumeric=!0,s(),a.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(a.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var c=t[l].data.map((function(t){return p.parseNumber(t)}));a.series.push(c)}a.seriesZ.push(this.threeDSeries),void 0!==t[l].name?a.seriesNames.push(t[l].name):a.seriesNames.push("series-"+parseInt(l+1,10)),void 0!==t[l].color?a.seriesColors.push(t[l].color):a.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var n=0;n<e.series.length;n++)void 0===e.seriesNames[n]&&e.seriesNames.push("series-"+(n+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRangeBarTimeline.length&&(i.seriesRangeBarTimeline.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=i.labels.filter((function(t,e,i){return i.indexOf(t)===e}))),e.xaxis.convertedCatToNumeric&&(new N(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,n=[];if(e.axisCharts){if(e.series.length>0)for(var a=0;a<e.series[e.maxValsInArrayIndex].length;a++)n.push(a+1);e.seriesX=[];for(var r=0;r<t.length;r++)e.seriesX.push(n);e.isXNumeric=!0}if(0===n.length){n=e.axisCharts?[]:e.series.map((function(t,e){return e+1}));for(var o=0;o<t.length;o++)e.seriesX.push(n)}e.labels=n,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=n.map((function(t){return i.xaxis.labels.formatter(t)}))),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,n=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),n.axisCharts?this.parseDataAxisCharts(t):this.parseDataNonAxisCharts(t),this.coreUtils.getLargestSeries(),"bar"===i.chart.type&&i.chart.stacked){var a=new E(this.ctx);n.series=a.setNullSeriesToZeroValues(n.series)}this.coreUtils.getSeriesTotals(),n.axisCharts&&this.coreUtils.getStackedSeriesTotals(),this.coreUtils.getPercentSeries(),n.dataFormatXNumeric||n.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var r=this.coreUtils.getCategoryLabels(n.labels),o=0;o<r.length;o++)if(Array.isArray(r[o])){n.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map((function(i,n){if(t.w.globals.isMultipleYAxis&&!e.config.chart.stacked)return i.index}))}}]),t}(),z=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.tooltipKeyFormat="dd MMM"}return n(t,[{key:"xLabelFormat",value:function(t,e,i,n){var a=this.w;if("datetime"===a.config.xaxis.type&&void 0===a.config.xaxis.labels.formatter&&void 0===a.config.tooltip.x.formatter){var r=new Y(this.ctx);return r.formatDate(r.getDate(e),a.config.tooltip.x.format)}return t(e,i,n)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var n=this.w;return p.isNumber(t)&&(t=0!==n.globals.yValueDecimal?t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:n.globals.yValueDecimal):n.globals.maxYArr[i]-n.globals.minYArr[i]<5?t.toFixed(1):t.toFixed(0)),t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xLabelFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){return p.isNumber(t)?!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type&&e.globals.dataPoints<50||e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0):t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,n){void 0!==i.labels.formatter?e.globals.yLabelFormatters[n]=i.labels.formatter:e.globals.yLabelFormatters[n]=function(a){return e.globals.xyCharts?Array.isArray(a)?a.map((function(e){return t.defaultYFormatter(e,i,n)})):t.defaultYFormatter(a,i,n):a}})),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),$=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"getLabel",value:function(t,e,i,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",o=this.w,s=void 0===t[n]?"":t[n],l=s,c=o.globals.xLabelFormatter,u=o.config.xaxis.labels.formatter,d=!1,h=new z(this.ctx),f=s;l=h.xLabelFormat(c,s,f,{i:n,dateFormatter:new Y(this.ctx).formatDate,w:o}),void 0!==u&&(l=u(s,t[n],{i:n,dateFormatter:new Y(this.ctx).formatDate,w:o}));var p=function(t){var i=null;return e.forEach((function(t){"month"===t.unit?i="year":"day"===t.unit?i="month":"hour"===t.unit?i="day":"minute"===t.unit&&(i="hour")})),i===t};e.length>0?(d=p(e[n].unit),i=e[n].position,l=e[n].value):"datetime"===o.config.xaxis.type&&void 0===u&&(l=""),void 0===l&&(l=""),l=Array.isArray(l)?l:l.toString();var m=new v(this.ctx),g={};g=o.globals.rotateXLabels?m.getTextRects(l,parseInt(r,10),null,"rotate(".concat(o.config.xaxis.labels.rotate," 0 0)"),!1):m.getTextRects(l,parseInt(r,10));var y=!o.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(l)&&(0===l.indexOf("NaN")||0===l.toLowerCase().indexOf("invalid")||l.toLowerCase().indexOf("infinity")>=0||a.indexOf(l)>=0&&y)&&(l=""),{x:i,text:l,textRect:g,isBold:d}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var n=this.w,a=n.config.xaxis.tickAmount;return"dataPoints"===a&&(a=Math.round(n.globals.gridWidth/120)),a>i||t%Math.round(i/(a+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,n,a){var r=this.w;if(0===t&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var o=a[a.length-1];e.x<o.textRect.width/(r.globals.rotateXLabels?Math.abs(r.config.xaxis.labels.rotate)/12:1.01)+o.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=new _(this.ctx);return!e.config.yaxis[t].show||!e.config.yaxis[t].showForNullSeries&&i.isSeriesNull(t)&&-1===e.globals.collapsedSeriesIndices.indexOf(t)}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,n,a,r,o){var s=this.w,l=new v(this.ctx),c=s.globals.translateY;if(n.show&&e>0){!0===s.config.yaxis[a].opposite&&(t+=n.width);for(var u=e;u>=0;u--){var d=c+e/10+s.config.yaxis[a].labels.offsetY-1;s.globals.isBarHorizontal&&(d=r*u),"heatmap"===s.config.chart.type&&(d+=r/2);var h=l.drawLine(t+i.offsetX-n.width+n.offsetX,d+n.offsetY,t+i.offsetX+n.offsetX,d+n.offsetY,n.color);o.add(h),c+=r}}}}]),t}(),B=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"fixSvgStringForIe11",value:function(t){if(!p.isIE11())return t;var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2==++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(){var t=this.w.globals.dom.Paper.svg();return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(){var t=this;return new Promise((function(e){var i=t.w;t.cleanup();var n=document.createElement("canvas");n.width=i.globals.svgWidth,n.height=parseInt(i.globals.dom.elWrap.style.height,10);var a="transparent"===i.config.chart.background?"#fff":i.config.chart.background,r=n.getContext("2d");r.fillStyle=a,r.fillRect(0,0,n.width,n.height);var o=t.getSvgString();if(window.canvg&&p.isIE11()){var s=window.canvg.Canvg.fromString(r,o,{ignoreClear:!0,ignoreDimensions:!0});s.start();var l=n.msToBlob();s.stop(),e({blob:l})}else{var c="data:image/svg+xml,"+encodeURIComponent(o),u=new Image;u.crossOrigin="anonymous",u.onload=function(){if(r.drawImage(u,0,0),n.msToBlob){var t=n.msToBlob();e({blob:t})}else{var i=n.toDataURL("image/png");e({imgURI:i})}},u.src=c}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,n=e.blob;n?navigator.msSaveOrOpenBlob(n,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,n=t.columnDelimiter,a=t.lineDelimiter,r=void 0===a?"\n":a,o=this.w,s=[],l=[],c="data:text/csv;charset=utf-8,",u=new R(this.ctx),d=new $(this.ctx),h=function(t){var i="";if(o.globals.axisCharts){if("category"===o.config.xaxis.type||o.config.xaxis.convertedCatToNumeric)if(o.globals.isBarHorizontal){var a=o.globals.yLabelFormatters[0],r=new E(e.ctx).getActiveConfigSeriesIndex();i=a(o.globals.labels[t],{seriesIndex:r,dataPointIndex:t,w:o})}else i=d.getLabel(o.globals.labels,o.globals.timescaleLabels,0,t).text;"datetime"===o.config.xaxis.type&&(o.config.xaxis.categories.length?i=o.config.xaxis.categories[t]:o.config.labels.length&&(i=o.config.labels[t]))}else i=o.config.labels[t];return p.isNumber(i)?i:i.split(n).join("")};s.push(o.config.chart.toolbar.export.csv.headerCategory),i.map((function(t,e){var i=t.name?t.name:"series-".concat(e);o.globals.axisCharts&&s.push(i.split(n).join("")?i.split(n).join(""):"series-".concat(e))})),o.globals.axisCharts||(s.push(o.config.chart.toolbar.export.csv.headerValue),l.push(s.join(n))),i.map((function(t,e){o.globals.axisCharts?function(t,e){if(s.length&&0===e&&l.push(s.join(n)),t.data&&t.data.length)for(var a=0;a<t.data.length;a++){s=[];var r=h(a);if(r||(u.isFormatXY()?r=i[e].data[a].x:u.isFormat2DArray()&&(r=i[e].data[a]?i[e].data[a][0]:"")),0===e){s.push((d=r,"datetime"===o.config.xaxis.type&&String(d).length>=10?o.config.chart.toolbar.export.csv.dateFormatter(r):r.split(n).join("")));for(var c=0;c<o.globals.series.length;c++)s.push(o.globals.series[c][a])}("candlestick"===o.config.chart.type||t.type&&"candlestick"===t.type)&&(s.pop(),s.push(o.globals.seriesCandleO[e][a]),s.push(o.globals.seriesCandleH[e][a]),s.push(o.globals.seriesCandleL[e][a]),s.push(o.globals.seriesCandleC[e][a])),"rangeBar"===o.config.chart.type&&(s.pop(),s.push(o.globals.seriesRangeStart[e][a]),s.push(o.globals.seriesRangeEnd[e][a])),s.length&&l.push(s.join(n))}var d}(t,e):((s=[]).push(o.globals.labels[e].split(n).join("")),s.push(o.globals.series[e]),l.push(s.join(n)))})),c+=l.join(r),this.triggerDownload(encodeURI(c),o.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var n=document.createElement("a");n.href=t,n.download=(e||this.w.globals.chartID)+i,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),t}(),W=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.axesUtils=new $(i),this.xaxisLabels=n.globals.labels.slice(),n.globals.timescaleLabels.length>0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===n.config.xaxis.position?this.offY=0:this.offY=n.globals.gridHeight+1,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return n(t,[{key:"drawXaxis",value:function(){var t,e=this,i=this.w,n=new v(this.ctx),a=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(i.config.xaxis.offsetX,", ").concat(i.config.xaxis.offsetY,")")}),r=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(i.globals.translateXAxisX,", ").concat(i.globals.translateXAxisY,")")});a.add(r);for(var o=i.globals.padHorizontal,s=[],l=0;l<this.xaxisLabels.length;l++)s.push(this.xaxisLabels[l]);var c=s.length;if(i.globals.isXNumeric){var u=c>1?c-1:c;t=i.globals.gridWidth/u,o=o+t/2+i.config.xaxis.labels.offsetX}else t=i.globals.gridWidth/s.length,o=o+t+i.config.xaxis.labels.offsetX;for(var d=function(a){var l=o-t/2+i.config.xaxis.labels.offsetX;0===a&&1===c&&t/2===o&&1===i.globals.dataPoints&&(l=i.globals.gridWidth/2);var u=e.axesUtils.getLabel(s,i.globals.timescaleLabels,l,a,e.drawnLabels,e.xaxisFontSize),d=28;if(i.globals.rotateXLabels&&(d=22),(u=void 0!==i.config.xaxis.tickAmount&&"dataPoints"!==i.config.xaxis.tickAmount&&"datetime"!==i.config.xaxis.type?e.axesUtils.checkLabelBasedOnTickamount(a,u,c):e.axesUtils.checkForOverflowingLabels(a,u,c,e.drawnLabels,e.drawnLabelsRects)).text&&i.globals.xaxisLabelsCount++,i.config.xaxis.labels.show){var h=n.drawText({x:u.x,y:e.offY+i.config.xaxis.labels.offsetY+d-("top"===i.config.xaxis.position?i.globals.xAxisHeight+i.config.xaxis.axisTicks.height-2:0),text:u.text,textAnchor:"middle",fontWeight:u.isBold?600:i.config.xaxis.labels.style.fontWeight,fontSize:e.xaxisFontSize,fontFamily:e.xaxisFontFamily,foreColor:Array.isArray(e.xaxisForeColors)?i.config.xaxis.convertedCatToNumeric?e.xaxisForeColors[i.globals.minX+a-1]:e.xaxisForeColors[a]:e.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+i.config.xaxis.labels.style.cssClass});r.add(h);var f=document.createElementNS(i.globals.SVGNS,"title");f.textContent=Array.isArray(u.text)?u.text.join(" "):u.text,h.node.appendChild(f),""!==u.text&&(e.drawnLabels.push(u.text),e.drawnLabelsRects.push(u))}o+=t},h=0;h<=c-1;h++)d(h);if(void 0!==i.config.xaxis.title.text){var f=n.group({class:"apexcharts-xaxis-title"}),p=n.drawText({x:i.globals.gridWidth/2+i.config.xaxis.title.offsetX,y:this.offY-parseFloat(this.xaxisFontSize)+i.globals.xAxisLabelsHeight+i.config.xaxis.title.offsetY,text:i.config.xaxis.title.text,textAnchor:"middle",fontSize:i.config.xaxis.title.style.fontSize,fontFamily:i.config.xaxis.title.style.fontFamily,fontWeight:i.config.xaxis.title.style.fontWeight,foreColor:i.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+i.config.xaxis.title.style.cssClass});f.add(p),a.add(f)}if(i.config.xaxis.axisBorder.show){var m=i.globals.barPadForNumericAxis,g=n.drawLine(i.globals.padHorizontal+i.config.xaxis.axisBorder.offsetX-m,this.offY,this.xaxisBorderWidth+m,this.offY,i.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);a.add(g)}return a}},{key:"drawXaxisInversed",value:function(t){var e,i,n=this,a=this.w,r=new v(this.ctx),o=a.config.yaxis[0].opposite?a.globals.translateYAxisX[t]:0,s=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});s.add(l);var c=[];if(a.config.yaxis[t].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);e=a.globals.gridHeight/c.length,i=-e/2.2;var d=a.globals.yLabelFormatters[0],h=a.config.yaxis[0].labels;if(h.show)for(var f=function(o){var s=void 0===c[o]?"":c[o];s=d(s,{seriesIndex:t,dataPointIndex:o,w:a});var u=n.axesUtils.getYAxisForeColor(h.style.colors,t),f=0;Array.isArray(s)&&(f=s.length/2*parseInt(h.style.fontSize,10));var p=r.drawText({x:h.offsetX-15,y:i+e+h.offsetY-f,text:s,textAnchor:n.yaxis.opposite?"start":"end",foreColor:Array.isArray(u)?u[o]:u,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass});l.add(p);var m=document.createElementNS(a.globals.SVGNS,"title");if(m.textContent=s.text,p.node.appendChild(m),0!==a.config.yaxis[t].labels.rotate){var g=r.rotateAroundCenter(p.node);p.node.setAttribute("transform","rotate(".concat(a.config.yaxis[t].labels.rotate," 0 ").concat(g.y,")"))}i+=e},p=0;p<=c.length-1;p++)f(p);if(void 0!==a.config.yaxis[0].title.text){var m=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),g=r.drawText({x:0,y:a.globals.gridHeight/2,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});m.add(g),s.add(m)}var y=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(y=a.globals.gridWidth);var b=a.config.xaxis.axisBorder;if(b.show){var _=r.drawLine(a.globals.padHorizontal+b.offsetX+y,1+b.offsetY,a.globals.padHorizontal+b.offsetX+y,a.globals.gridHeight+b.offsetY,b.color,0);s.add(_)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(y,c.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,e,s),s}},{key:"drawXaxisTicks",value:function(t,e){var i=this.w,n=t;if(!(t<0||t-2>i.globals.gridWidth)){var a=this.offY+i.config.xaxis.axisTicks.offsetY,r=a+i.config.xaxis.axisTicks.height;if("top"===i.config.xaxis.position&&(r=a-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){var o=new v(this.ctx).drawLine(t+i.config.xaxis.axisTicks.offsetX,a+i.config.xaxis.offsetY,n+i.config.xaxis.axisTicks.offsetX,r+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);e.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,n=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var a=0;a<i;a++)n=this.xaxisLabels[a].position,e.push(n);else for(var r=i,o=0;o<r;o++){var s=r;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(s-=1),n+=t.globals.gridWidth/s,e.push(n)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new v(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var o=0;o<n.length;o++){var s=e.rotateAroundCenter(n[o]);s.y=s.y-1,s.x=s.x+1,n[o].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),n[o].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=n[o].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(i){e.placeTextWithEllipsis(i,i.textContent,t.config.xaxis.labels.maxHeight-("bottom"===t.config.legend.position?20:10))}))}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),a=0;a<n.length;a++){var r=n[a].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(r,(function(t){e.placeTextWithEllipsis(t,t.textContent,i)}))}}();if(a.length>0){var c=a[a.length-1].getBBox(),u=a[0].getBBox();c.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),u.x+u.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var d=0;d<r.length;d++)e.placeTextWithEllipsis(r[d],r[d].textContent,t.config.yaxis[0].labels.maxWidth-2*parseFloat(t.config.yaxis[0].title.style.fontSize)-20)}}}]),t}(),V=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new $(i),this.isTimelineBar="datetime"===n.config.xaxis.type&&n.globals.seriesRangeBarTimeline.length,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return n(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new v(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var n=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),a=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(a),t.add(n),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new v(this.ctx),n=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var a=0;t.config.stroke.width.forEach((function(t){a=Math.max(a,t)})),n=a}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid));var r=t.config.chart.type,o=0,s=0;("bar"===r||"rangeBar"===r||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.left,s=t.config.grid.padding.right,e.barPadForNumericAxis>o&&(o=e.barPadForNumericAxis,s=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-n/2-o-2,-n/2,e.gridWidth+n+s+o+4,e.gridHeight+n,0,"#fff"),new _(this).getLargestMarkerSize();var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var c=e.dom.baseEl.querySelector("defs");c.appendChild(e.dom.elGridRectMask),c.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,n=t.y1,a=t.x2,r=t.y2,o=t.xCount,s=t.parent,l=this.w;0===e&&l.globals.skipFirstTimelinelabel||e===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type||(l.config.grid.xaxis.lines.show&&this._drawGridLine({x1:i,y1:n,x2:a,y2:r,parent:s}),new W(this.ctx).drawXaxisTicks(i,this.elg))}},{key:"_drawGridLine",value:function(t){var e=t.x1,i=t.y1,n=t.x2,a=t.y2,r=t.parent,o=this.w,s=r.node.classList.contains("apexcharts-gridlines-horizontal"),l=o.config.grid.strokeDashArray,c=o.globals.barPadForNumericAxis,u=new v(this).drawLine(e-(s?c:0),i,n+(s?c:0),a,o.config.grid.borderColor,l);u.node.classList.add("apexcharts-gridline"),r.add(u)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,n=t.y1,a=t.x2,r=t.y2,o=t.type,s=this.w,l=new v(this.ctx),c=s.globals.barPadForNumericAxis;if("column"!==o||"datetime"!==s.config.xaxis.type){var u=s.config.grid[o].colors[e],d=l.drawRect(i-("row"===o?c:0),n,a+("row"===o?2*c:0),r,0,u,s.config.grid[o].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(o))}}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,n=t.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var r,o=a.globals.padHorizontal,s=a.globals.gridHeight;a.globals.timescaleLabels.length?function(t){for(var n=t.xC,a=t.x1,r=t.y1,o=t.x2,s=t.y2,l=0;l<n;l++)a=e.xaxisLabels[l].position,o=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:a,y1:r,x2:o,y2:s,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:o,y1:0,x2:r,y2:s}):(a.globals.isXNumeric&&(i=a.globals.xAxisScale.result.length),a.config.xaxis.convertedCatToNumeric&&(i=a.globals.xaxisLabelsCount),function(t){var n=t.xC,r=t.x1,o=t.y1,s=t.x2,l=t.y2;if(void 0!==a.config.xaxis.tickAmount&&"dataPoints"!==a.config.xaxis.tickAmount)a.globals.dom.baseEl.querySelectorAll(".apexcharts-text.apexcharts-xaxis-label tspan:not(:empty)").forEach((function(t,n){var a=t.getBBox();e._drawGridLines({i:n,x1:a.x+a.width/2,y1:o,x2:a.x+a.width/2,y2:l,xCount:i,parent:e.elgridLinesV})}));else for(var c=0;c<n+(a.globals.isXNumeric?0:1);c++)0===c&&1===n&&1===a.globals.dataPoints&&(s=r=a.globals.gridWidth/2),e._drawGridLines({i:c,x1:r,y1:o,x2:s,y2:l,xCount:i,parent:e.elgridLinesV}),s=r+=a.globals.gridWidth/(a.globals.isXNumeric?n-1:n)}({xC:i,x1:o,y1:0,x2:r,y2:s}))}if(a.config.grid.yaxis.lines.show){var l=0,c=0,u=a.globals.gridWidth,d=n+1;this.isTimelineBar&&(d=a.globals.labels.length);for(var h=0;h<d+(this.isTimelineBar?1:0);h++)this._drawGridLine({x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=a.globals.gridHeight/(this.isTimelineBar?d:n)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var n,a=i.globals.padHorizontal,r=i.globals.gridHeight,o=0;o<e+1;o++)i.config.grid.xaxis.lines.show&&this._drawGridLine({x1:a,y1:0,x2:n,y2:r,parent:this.elgridLinesV}),new W(this.ctx).drawXaxisTicks(a,this.elg),n=a=a+i.globals.gridWidth/e+.3;if(i.config.grid.yaxis.lines.show)for(var s=0,l=0,c=i.globals.gridWidth,u=0;u<i.globals.dataPoints+1;u++)this._drawGridLine({x1:0,y1:s,x2:c,y2:l,parent:this.elgridLinesH}),l=s+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=new v(this.ctx);this.elg=e.group({class:"apexcharts-grid"}),this.elgridLinesH=e.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=e.group({class:"apexcharts-gridlines-vertical"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide());for(var i,n=t.globals.yAxisScale.length?t.globals.yAxisScale[0].result.length-1:5,a=0;a<t.globals.series.length&&(void 0!==t.globals.yAxisScale[a]&&(n=t.globals.yAxisScale[a].result.length-1),!(n>2));a++);return!t.globals.isBarHorizontal||this.isTimelineBar?(i=this.xaxisLabels.length,this.isTimelineBar&&(n=t.globals.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(i=t.config.xaxis.tickAmount)),this._drawXYLines({xCount:i,tickAmount:n})):(i=n,n=t.globals.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:n})),this.drawGridBands(i,n),{el:this.elg,xAxisTickWidth:t.globals.gridWidth/i}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var n=0,a=i.globals.gridHeight/e,r=i.globals.gridWidth,o=0,s=0;o<e;o++,s++)s>=i.config.grid.row.colors.length&&(s=0),this._drawGridBandRect({c:s,x1:0,y1:n,x2:r,y2:a,type:"row"}),n+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,c=i.globals.padHorizontal,u=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,h=0,f=0;h<t;h++,f++)f>=i.config.grid.column.colors.length&&(f=0),this._drawGridBandRect({c:f,x1:c,y1:0,x2:u,y2:d,type:"column"}),c+=i.globals.gridWidth/l}}]),t}(),q=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"niceScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4?arguments[4]:void 0,r=this.w,o=Math.abs(e-t);if("dataPoints"===(i=this._adjustTicksForSmallRange(i,n,o))&&(i=r.globals.dataPoints-1),t===Number.MIN_VALUE&&0===e||!p.isNumber(t)&&!p.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE){t=0,e=i;var s=this.linearScale(t,e,i);return s}t>e?(console.warn("axis.min cannot be greater than axis.max"),e=t+.1):t===e&&(t=0===t?0:t-.5,e=0===e?2:e+.5);var l=[];o<1&&a&&("candlestick"===r.config.chart.type||"candlestick"===r.config.series[n].type||r.globals.isRangeData)&&(e*=1.01);var c=i+1;c<2?c=2:c>2&&(c-=2);var u=o/c,d=Math.floor(p.log10(u)),h=Math.pow(10,d),f=Math.round(u/h);f<1&&(f=1);var m=f*h,g=m*Math.floor(t/m),v=m*Math.ceil(e/m),y=g;if(a&&o>2){for(;l.push(y),!((y+=m)>v););return{result:l,niceMin:l[0],niceMax:l[l.length-1]}}var b=t;(l=[]).push(b);for(var _=Math.abs(e-t)/i,x=0;x<=i;x++)b+=_,l.push(b);return l[l.length-2]>=e&&l.pop(),{result:l,niceMin:l[0],niceMax:l[l.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3?arguments[3]:void 0,a=Math.abs(e-t),r=a/(i=this._adjustTicksForSmallRange(i,n,a));i===Number.MAX_VALUE&&(i=10,r=1);for(var o=[],s=t;i>=0;)o.push(s),s+=r,i-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScale",value:function(t){for(var e=[],i=Math.ceil(Math.log10(t))+1,n=0;n<i;n++)e.push(Math.pow(10,n));return{result:e,niceMin:e[0],niceMax:e[e.length-1]}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var n=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var a=this.w.config.yaxis[e].labels.formatter(1);p.isNumber(Number(a))&&!p.isFloat(a)&&(n=Math.ceil(i))}return n<t?n:t}},{key:"setYScaleForIndex",value:function(t,e,i){var n=this.w.globals,a=this.w.config,r=n.isBarHorizontal?a.xaxis:a.yaxis[t];void 0===n.yAxisScale[t]&&(n.yAxisScale[t]=[]);var o=Math.abs(i-e);if(r.logarithmic&&o<=5&&(n.invalidLogScale=!0),r.logarithmic&&o>5)n.allSeriesCollapsed=!1,n.yAxisScale[t]=this.logarithmicScale(i);else if(i!==-Number.MAX_VALUE&&p.isNumber(i))if(n.allSeriesCollapsed=!1,void 0===r.min&&void 0===r.max||r.forceNiceScale){var s=void 0===a.yaxis[t].max&&void 0===a.yaxis[t].min||a.yaxis[t].forceNiceScale;n.yAxisScale[t]=this.niceScale(e,i,r.tickAmount?r.tickAmount:o<5&&o>1?o+1:5,t,s)}else n.yAxisScale[t]=this.linearScale(e,i,r.tickAmount,t);else n.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(t,e){var i=this.w,n=i.globals,a=i.config.xaxis,r=Math.abs(e-t);return e!==-Number.MAX_VALUE&&p.isNumber(e)?n.xAxisScale=this.niceScale(t,e,a.tickAmount?a.tickAmount:r<5&&r>1?r+1:5,0):n.xAxisScale=this.linearScale(0,5,5),n.xAxisScale}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,n=e.minYArr.concat([]),a=e.maxYArr.concat([]),r=[];i.yaxis.forEach((function(e,o){var s=o;i.series.forEach((function(t,i){t.name===e.seriesName&&(s=i,o!==i?r.push({index:i,similarIndex:o,alreadyExists:!0}):r.push({index:i}))}));var l=n[s],c=a[s];t.setYScaleForIndex(o,l,c)})),this.sameScaleInMultipleAxes(n,a,r)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var n=this,a=this.w.config,r=this.w.globals,o=[];i.forEach((function(t){t.alreadyExists&&(void 0===o[t.index]&&(o[t.index]=[]),o[t.index].push(t.index),o[t.index].push(t.similarIndex))})),r.yAxisSameScaleIndices=o,o.forEach((function(t,e){o.forEach((function(i,n){var a,r;e!==n&&(a=t,r=i,a.filter((function(t){return-1!==r.indexOf(t)}))).length>0&&(o[e]=o[e].concat(o[n]))}))}));var s=o.map((function(t){return t.filter((function(e,i){return t.indexOf(e)===i}))})).map((function(t){return t.sort()}));o=o.filter((function(t){return!!t}));var l=s.slice(),c=l.map((function(t){return JSON.stringify(t)}));l=l.filter((function(t,e){return c.indexOf(JSON.stringify(t))===e}));var u=[],d=[];t.forEach((function(t,i){l.forEach((function(n,a){n.indexOf(i)>-1&&(void 0===u[a]&&(u[a]=[],d[a]=[]),u[a].push({key:i,value:t}),d[a].push({key:i,value:e[i]}))}))}));var h=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),f=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);u.forEach((function(t,e){t.forEach((function(t,i){h[e]=Math.min(t.value,h[e])}))})),d.forEach((function(t,e){t.forEach((function(t,i){f[e]=Math.max(t.value,f[e])}))})),t.forEach((function(t,e){d.forEach((function(t,i){var o=h[i],s=f[i];a.chart.stacked&&(s=0,t.forEach((function(t,e){t.value!==-Number.MAX_VALUE&&(s+=t.value),o!==Number.MIN_VALUE&&(o+=u[i][e].value)}))),t.forEach((function(i,l){t[l].key===e&&(void 0!==a.yaxis[e].min&&(o="function"==typeof a.yaxis[e].min?a.yaxis[e].min(r.minY):a.yaxis[e].min),void 0!==a.yaxis[e].max&&(s="function"==typeof a.yaxis[e].max?a.yaxis[e].max(r.maxY):a.yaxis[e].max),n.setYScaleForIndex(e,o,s))}))}))}))}},{key:"autoScaleY",value:function(t,e,i){t||(t=this);var n=t.w;if(n.globals.isMultipleYAxis||n.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),e;var a=n.globals.seriesX[0],r=n.config.chart.stacked;return e.forEach((function(t,o){for(var s=0,l=0;l<a.length;l++)if(a[l]>=i.xaxis.min){s=l;break}var c,u,d=n.globals.minYArr[o],h=n.globals.maxYArr[o],f=n.globals.stackedSeriesTotals;n.globals.series.forEach((function(o,l){var p=o[s];r?(p=f[s],c=u=p,f.forEach((function(t,e){a[e]<=i.xaxis.max&&a[e]>=i.xaxis.min&&(t>u&&null!==t&&(u=t),o[e]<c&&null!==o[e]&&(c=o[e]))}))):(c=u=p,o.forEach((function(t,e){if(a[e]<=i.xaxis.max&&a[e]>=i.xaxis.min){var r=t,o=t;n.globals.series.forEach((function(i,n){null!==t&&(r=Math.min(i[e],r),o=Math.max(i[e],o))})),o>u&&null!==o&&(u=o),r<c&&null!==r&&(c=r)}}))),void 0===c&&void 0===u&&(c=d,u=h),(u*=u<0?.9:1.1)<0&&u<h&&(u=h),(c*=c<0?1.1:.9)<0&&c>d&&(c=d),e.length>1?(e[l].min=void 0===t.min?c:t.min,e[l].max=void 0===t.max?u:t.max):(e[0].min=void 0===t.min?c:t.min,e[0].max=void 0===t.max?u:t.max)}))})),e}}]),t}(),U=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.scales=new q(i)}return n(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w.config,r=this.w.globals,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===n&&(n=t+1);var l=r.series,c=l,u=l;"candlestick"===a.chart.type?(c=r.seriesCandleL,u=r.seriesCandleH):r.isRangeData&&(c=r.seriesRangeStart,u=r.seriesRangeEnd);for(var d=t;d<n;d++){r.dataPoints=Math.max(r.dataPoints,l[d].length);for(var h=0;h<r.series[d].length;h++){var f=l[d][h];null!==f&&p.isNumber(f)?(o=Math.max(o,u[d][h]),e=Math.min(e,c[d][h]),i=Math.max(i,c[d][h]),"candlestick"===this.w.config.chart.type&&(o=Math.max(o,r.seriesCandleO[d][h]),o=Math.max(o,r.seriesCandleH[d][h]),o=Math.max(o,r.seriesCandleL[d][h]),i=o=Math.max(o,r.seriesCandleC[d][h])),p.isFloat(f)&&(f=p.noExponents(f),r.yValueDecimal=Math.max(r.yValueDecimal,f.toString().split(".")[1].length)),s>c[d][h]&&c[d][h]<0&&(s=c[d][h])):r.hasNullValues=!0}}return"rangeBar"===a.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&"datetime"===a.xaxis.type&&(s=e),"bar"===a.chart.type&&(s<0&&o<0&&(o=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:o,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var n=0;n<t.series.length;n++){var a=this.getMinYMaxY(n,i,null,n+1);t.minYArr.push(a.minY),t.maxYArr.push(a.maxY),i=a.lowestY}var r=this.getMinYMaxY(0,i,null,t.series.length);if(t.minY=r.minY,t.maxY=r.maxY,i=r.lowestY,e.chart.stacked&&this._setStackedMinMax(),("line"===e.chart.type||"area"===e.chart.type||"candlestick"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal)&&t.minY===Number.MIN_VALUE&&i!==-Number.MAX_VALUE&&i!==t.maxY){var o=t.maxY-i;(i>=0&&i<=10||void 0!==e.yaxis[0].min||void 0!==e.yaxis[0].max)&&(o=0),t.minY=i-5*o/100,i>0&&t.minY<0&&(t.minY=0),t.maxY=t.maxY+5*o/100}return e.yaxis.forEach((function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])})),t.isBarHorizontal&&["min","max"].forEach((function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])})),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach((function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax}))):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&p.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var n;if(void 0===e.xaxis.tickAmount?(n=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(n=t.dataPoints-1),n>t.dataPoints&&0!==t.dataPoints&&(n=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(n=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(n=t.maxX-t.minX-1)):n=e.xaxis.tickAmount,t.xTickAmount=n,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var a=[],r=t.minX-1;r<t.maxX;r++)a.push(r+1);t.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(1,n,n),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,n-1),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&p.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new Y(this.ctx);if("datetime"===e.xaxis.type){var n=i.getDate(t.minX);n.setUTCDate(n.getDate()-2),t.minX=new Date(n).getTime();var a=i.getDate(t.maxX);a.setUTCDate(a.getDate()+2),t.maxX=new Date(a).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach((function(e,i){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var n=e.slice();n.sort((function(t,e){return t-e})),n.forEach((function(e,n){if(n>0){var a=e-t.seriesX[i][n-1];a>0&&(t.minXDiff=Math.min(a,t.minXDiff))}})),1===t.dataPoints&&t.minXDiff===Number.MAX_VALUE&&(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this.w.globals,e=[],i=[];if(t.series.length)for(var n=0;n<t.series[t.maxValsInArrayIndex].length;n++)for(var a=0,r=0,o=0;o<t.series.length;o++)null!==t.series[o][n]&&p.isNumber(t.series[o][n])&&(t.series[o][n]>0?a=a+parseFloat(t.series[o][n])+1e-4:r+=parseFloat(t.series[o][n])),o===t.series.length-1&&(e.push(a),i.push(r));for(var s=0;s<e.length;s++)t.maxY=Math.max(t.maxY,e[s]),t.minY=Math.min(t.minY,i[s])}}]),t}(),X=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.axisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===n.config.xaxis.position&&(this.xAxisoffX=n.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new $(i)}return n(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,n=new v(this.ctx),a=i.config.yaxis[t].labels.style,r=a.fontSize,o=a.fontFamily,s=a.fontWeight,l=n.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var c=n.group({class:"apexcharts-yaxis-texts-g"});l.add(c);var u=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/u,h=i.globals.translateY,f=i.globals.yLabelFormatters[t],p=i.globals.yAxisScale[t].result.slice();p=this.axesUtils.checkForReversedLabels(t,p);var m="";if(i.config.yaxis[t].labels.show)for(var g=function(l){var g=p[l];g=f(g,l);var v=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(v*=-1);var y=e.axesUtils.getYAxisForeColor(a.colors,t),b=n.drawText({x:v,y:h+u/10+i.config.yaxis[t].labels.offsetY+1,text:g,textAnchor:i.config.yaxis[t].opposite?"start":"end",fontSize:r,fontFamily:o,fontWeight:s,foreColor:Array.isArray(y)?y[l]:y,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+a.cssClass});if(l===u&&(m=b),c.add(b),0!==i.config.yaxis[t].labels.rotate){var _=n.rotateAroundCenter(m.node),x=n.rotateAroundCenter(b.node);b.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(_.x," ").concat(x.y,")"))}h+=d},y=u;y>=0;y--)g(y);if(void 0!==i.config.yaxis[t].title.text){var b=n.group({class:"apexcharts-yaxis-title"}),_=0;i.config.yaxis[t].opposite&&(_=i.globals.translateYAxisX[t]);var x=n.drawText({x:_,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});b.add(x),l.add(b)}var w=i.config.yaxis[t].axisBorder,k=31+w.offsetX;if(i.config.yaxis[t].opposite&&(k=-31-w.offsetX),w.show){var S=n.drawLine(k,i.globals.translateY+w.offsetY-2,k,i.globals.gridHeight+i.globals.translateY+w.offsetY+2,w.color,0,w.width);l.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(k,u,w,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(a);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,s=o+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=e.globals.yAxisScale[t].result.slice(),u=e.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),r=(c=u.slice()).length),c=this.axesUtils.checkForReversedLabels(t,c);var d=u.length;if(e.config.xaxis.labels.show)for(var h=d?0:r;d?h<d:h>=0;d?h++:h--){var f=c[h];f=l(f,h);var p=e.globals.gridWidth+e.globals.padHorizontal-(s-o+e.config.xaxis.labels.offsetX);if(u.length){var m=this.axesUtils.getLabel(c,u,p,h,this.drawnLabels,this.xaxisFontSize);p=m.x,f=m.text,this.drawnLabels.push(m.text),0===h&&e.globals.skipFirstTimelinelabel&&(f=""),h===c.length-1&&e.globals.skipLastTimelinelabel&&(f="")}var g=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});a.add(g),g.tspan(f);var y=document.createElementNS(e.globals.SVGNS,"title");y.textContent=f,g.node.appendChild(y),s+=o}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new v(this.ctx),n=e.config.xaxis.axisBorder;if(n.show){var a=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(a-=15);var r=i.drawLine(e.globals.padHorizontal+a+n.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new v(this.ctx);if(void 0!==e.config.xaxis.title.text){var n=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});n.add(a),t.add(n)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,n=new v(this.ctx),a={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==o&&(a=o.getBoundingClientRect());var s=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==s&&(r=s.getBoundingClientRect()),null!==s){var l=this.xPaddingForYAxisTitle(t,a,r,e);s.setAttribute("x",l.xPos-(e?10:0))}if(null!==s){var c=n.rotateAroundCenter(s);s.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,n){var a=this.w,r=0,o=0,s=10;return void 0===a.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(n?(o=e.width+a.config.yaxis[t].title.offsetX+i.width/2+s/2,0===(r+=1)&&(o-=s/2)):(o=-1*e.width+a.config.yaxis[t].title.offsetX+s/2+i.width/2,a.globals.isBarHorizontal&&(s=25,o=-1*e.width-a.config.yaxis[t].title.offsetX-s)),{xPos:o,padd:s})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,n=0,a=0,r=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(s,l){var c=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!s.show||s.floating||0===t[l].width,u=t[l].width+e[l].width;s.opposite?i.globals.isBarHorizontal?(a=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=a-s.labels.offsetX):(a=i.globals.gridWidth+i.globals.translateX+o,c||(o=o+u+20),i.globals.translateYAxisX[l]=a-s.labels.offsetX+20):(n=i.globals.translateX-r,c||(r=r+u+20),i.globals.translateYAxisX[l]=n+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=p.listToArray(e)).forEach((function(e,i){var n=t.config.yaxis[i];if(n&&void 0!==n.labels.align){var a=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=p.listToArray(r);var o=a.getBoundingClientRect();"left"===n.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","start")})),n.opposite||a.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===n.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),a.setAttribute("transform","translate(".concat(o.width/2*(n.opposite?1:-1),", 0)"))):"right"===n.labels.align&&(r.forEach((function(t,e){t.setAttribute("text-anchor","end")})),n.opposite&&a.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),t}(),G=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.documentEvent=p.bind(this.documentEvent,this)}return n(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var n=i.globals.events[t].indexOf(e);-1!==n&&i.globals.events[t].splice(n,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var n=i.globals.events[t],a=n.length,r=0;r<a;r++)n[r].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,n=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach((function(t){n.addEventListener(t,(function(t){var n=Object.assign({},e,{seriesIndex:e.globals.capturedSeriesIndex,dataPointIndex:e.globals.capturedDataPointIndex});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,n):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,n),i.ctx.events.fireEvent("click",[t,i,n]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var n=e.globals.dom.baseEl.querySelector(".apexcharts-menu");n&&n.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&n.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),K=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=p.extend(k,i);this.w.globals.locale=n.options}}]),t}(),Z=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawAxis",value:function(t,e){var i,n,a=this.w.globals,r=this.w.config,o=new W(this.ctx),s=new X(this.ctx);a.axisCharts&&"radar"!==t&&(a.isBarHorizontal?(n=s.drawYaxisInversed(0),i=o.drawXaxisInversed(0),a.dom.elGraphical.add(i),a.dom.elGraphical.add(n)):(i=o.drawXaxis(),a.dom.elGraphical.add(i),r.yaxis.map((function(t,e){-1===a.ignoreYAxisIndexes.indexOf(e)&&(n=s.drawYaxis(e),a.dom.Paper.add(n))})))),r.yaxis.map((function(t,e){-1===a.ignoreYAxisIndexes.indexOf(e)&&s.yAxisTitleRotate(e,t.opposite)}))}}]),t}(),J=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new v(this.ctx),i=new m(this.ctx),n=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,o=n.colorFrom,s=n.colorTo,l=n.opacityFrom,c=n.opacityTo,u=n.stops,d=a.enabled,h=a.left,f=a.top,g=a.blur,y=a.color,b=a.opacity,_=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(_=e.drawGradient("vertical",o,s,l,c,null,u,null));var x=e.drawRect();1===t.config.xaxis.crosshairs.width&&(x=e.drawLine()),x.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:t.globals.gridHeight,width:p.isNumber(t.config.xaxis.crosshairs.width)?t.config.xaxis.crosshairs.width:0,height:t.globals.gridHeight,fill:_,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(x=i.dropShadow(x,{left:h,top:f,blur:g,color:y,opacity:b})),t.globals.dom.elGraphical.add(x)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new v(this.ctx),i=t.config.yaxis[0].crosshairs,n=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var a=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(a)}var r=e.drawLine(-n,0,t.globals.gridWidth+n,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),Q=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,n=i.config;if(0!==n.responsive.length){var a=n.responsive.slice();a.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var r=new H({}),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>n){var s=_.extendArrayProps(r,i.globals.initialConfig,i);t=p.extend(s,t),t=p.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l<a.length;l++)o<a[l].breakpoint&&(t=_.extendArrayProps(r,a[l].options,i),t=p.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var s=_.extendArrayProps(r,t,i);s=p.extend(i.config,s),o(s=p.extend(s,t))}else o({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new H(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),tt=function(){function t(i){e(this,t),this.ctx=i,this.colors=[],this.w=i.w;var n=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===n.config.chart.type&&n.config.plotOptions.treemap.distributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.distributed,this.isBarDistributed=n.config.plotOptions.bar.distributed&&("bar"===n.config.chart.type||"rangeBar"===n.config.chart.type)}return n(t,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this,e=this.w,i=new p;if(e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode)),void 0===e.config.colors?e.globals.colors=this.predefined():(e.globals.colors=e.config.colors,Array.isArray(e.config.colors)&&e.config.colors.length>0&&"function"==typeof e.config.colors[0]&&(e.globals.colors=e.config.series.map((function(i,n){var a=e.config.colors[n];return a||(a=e.config.colors[0]),"function"==typeof a?(t.isColorFn=!0,a({value:e.globals.axisCharts?e.globals.series[n][0]?e.globals.series[n][0]:0:e.globals.series[n],seriesIndex:n,dataPointIndex:n,w:e})):a})))),e.globals.seriesColors.map((function(t,i){t&&(e.globals.colors[i]=t)})),e.config.theme.monochrome.enabled){var n=[],a=e.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(a=e.globals.series[0].length*e.globals.series.length);for(var r=e.config.theme.monochrome.color,o=1/(a/e.config.theme.monochrome.shadeIntensity),s=e.config.theme.monochrome.shadeTo,l=0,c=0;c<a;c++){var u=void 0;"dark"===s?(u=i.shadeColor(-1*l,r),l+=o):(u=i.shadeColor(l,r),l+=o),n.push(u)}e.globals.colors=n.slice()}var d=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),["fill","stroke"].forEach((function(i){void 0===e.config[i].colors?e.globals[i].colors=t.isColorFn?e.config.colors:d:e.globals[i].colors=e.config[i].colors.slice(),t.pushExtraColors(e.globals[i].colors)})),void 0===e.config.dataLabels.style.colors?e.globals.dataLabels.style.colors=d:e.globals.dataLabels.style.colors=e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50),void 0===e.config.plotOptions.radar.polygons.fill.colors?e.globals.radarPolygons.fill.colors=["dark"===e.config.theme.mode?"#424242":"#fff"]:e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20),void 0===e.config.markers.colors?e.globals.markers.colors=d:e.globals.markers.colors=e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,a=e||n.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap.colorScale.inverse),i&&n.globals.series.length&&(a=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),t.length<a)for(var r=a-t.length,o=0;o<r;o++)t.push(t[o])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode||"light",i=t.theme.palette?t.theme.palette:"dark"===e?"palette4":"palette1",n=t.chart.foreColor?t.chart.foreColor:"dark"===e?"#f6f7f8":"#373d3f";return t.tooltip.theme=e,t.chart.foreColor=n,t.theme.palette=i,t}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"];break;default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]}return this.colors}}]),t}(),et=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,n=e.globals.svgWidth/2,a=i.offsetY,r="middle";if("left"===i.align?(n=10,r="start"):"right"===i.align&&(n=e.globals.svgWidth-10,r="end"),n+=i.offsetX,a=a+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var o=new v(this.ctx).drawText({x:n,y:a,text:i.text,textAnchor:r,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(o)}}}]),t}(),it=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,n=0,a="title"===t?e.config.title.floating:e.config.subtitle.floating,r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==r&&!a){var o=r.getBoundingClientRect();i=o.width,n=e.globals.axisCharts?o.height+5:o.height}return{width:i,height:n}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend");t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},p.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var n=e.map((function(t,e){return Array.isArray(t)?t.length:1})),a=Math.max.apply(Math,h(n));i=e[n.indexOf(a)]}return i}}]),t}(),nt=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();t={width:n.width,height:n.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var a=e.globals.xLabelFormatter,r=p.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);e.globals.isBarHorizontal&&(o=r=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var s=new z(this.dCtx.ctx),l=r;r=s.xLabelFormat(a,r,l,{i:void 0,dateFormatter:new Y(this.dCtx.ctx).formatDate,w:e}),o=s.xLabelFormat(a,o,l,{i:void 0,dateFormatter:new Y(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(o=r="1");var c=new v(this.dCtx.ctx),u=c.getTextRects(r,e.config.xaxis.labels.style.fontSize),d=u;if(r!==o&&(d=c.getTextRects(o,e.config.xaxis.labels.style.fontSize)),(t={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var h=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};u=h(r),r!==o&&(d=h(o)),t.height=(u.height>d.height?u.height:d.height)/1.5,t.width=u.width>d.width?u.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var n=new v(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=n.width,i=n.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(t){return t.value})),n=i.reduce((function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e}),0);return 1.05*(t=new v(this.dCtx.ctx).getTextRects(n,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,n=i.globals,a=i.config,r=a.xaxis.type,o=t.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var s=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,a){(function(t){return-1!==n.collapsedSeriesIndices.indexOf(t)})(a)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var a=e.dCtx.timescaleLabels[0],s=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+o/1.75-e.dCtx.yAxisWidthRight,l=a.position-o/1.75+e.dCtx.yAxisWidthLeft;s>n.svgWidth-n.translateX&&(n.skipLastTimelinelabel=!0),l<0&&(n.skipFirstTimelinelabel=!0)}else"datetime"===r?e.dCtx.gridPad.right<o&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):"datetime"!==r&&e.dCtx.gridPad.right<o/2-e.dCtx.yAxisWidthRight&&!n.rotateXLabels&&("between"!==i.config.xaxis.tickPlacement||i.globals.isBarHorizontal)&&(e.dCtx.xPadRight=o/2+1)}()};a.yaxis.forEach((function(t,i){s?(e.dCtx.gridPad.left<o&&(e.dCtx.xPadLeft=o/2+1),e.dCtx.xPadRight=o/2+1):l(0,i)}))}}]),t}(),at=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],n=10,a=new $(this.dCtx.ctx);return e.config.yaxis.map((function(r,o){var s=e.globals.yAxisScale[o];if(!a.isYAxisHidden(o)&&r.labels.show&&s.result.length){var l=e.globals.yLabelFormatters[o],c=String(s.niceMin).length>String(s.niceMax).length?s.niceMin:s.niceMax,u=l(c,{seriesIndex:o,dataPointIndex:-1,w:e}),d=u;if(void 0!==u&&0!==u.length||(u=c),e.globals.isBarHorizontal){n=0;var h=e.globals.labels.slice();u=l(u=p.getLargestStringFromArr(h),{seriesIndex:o,dataPointIndex:-1,w:e}),d=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,h)}var f=new v(t.dCtx.ctx),m=f.getTextRects(u,r.labels.style.fontSize),g=m;u!==d&&(g=f.getTextRects(d,r.labels.style.fontSize)),i.push({width:(g.width>m.width?g.width:m.width)+n,height:g.height>m.height?g.height:m.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,n){if(e.show&&void 0!==e.title.text){var a=new v(t.dCtx.ctx).getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,"rotate(-90 0 0)",!1);i.push({width:a.width,height:a.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,n=0,a=t.globals.yAxisScale.length>1?10:0,r=new $(this.dCtx.ctx),o=function(o,s){var l=t.config.yaxis[s].floating,c=0;o.width>0&&!l?(c=o.width+a,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(s)&&(c=c-o.width-a)):c=l||r.isYAxisHidden(s)?0:5,t.config.yaxis[s].opposite?n+=c:i+=c,e+=c};return t.globals.yLabelsCoords.map((function(t,e){o(t,e)})),t.globals.yTitleCoords.map((function(t,e){o(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=n,e}}]),t}(),rt=function(){function t(i){e(this,t),this.w=i.w,this.dCtx=i}return n(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w;if(e.globals.noData||e.globals.allSeriesCollapsed)return 0;var i=e.config.chart.type,n=0,a="bar"===i||"rangeBar"===i?e.config.series.length:1;if(e.globals.comboBarCount>0&&(a=e.globals.comboBarCount),e.globals.collapsedSeries.forEach((function(t){"bar"!==t.type&&"rangeBar"!==t.type||(a-=1)})),e.config.chart.stacked&&(a=1),("bar"===i||"rangeBar"===i||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&a>0){var r,o,s=Math.abs(e.globals.initialMaxX-e.globals.initialMinX);s<=3&&(s=e.globals.dataPoints),r=s/t,e.globals.minXDiff&&e.globals.minXDiff/r>0&&(o=e.globals.minXDiff/r),o>t/2&&(o/=2),(n=o/a*parseInt(e.config.plotOptions.bar.columnWidth,10)/100)<1&&(n=1),n=n/(a>1?1:1.5)+5,e.globals.barPadForNumericAxis=n}return n}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,n=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?n+=e.config[i].margin:n+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(n+=10);var a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-a.height-r.height-n,i.translateY=i.translateY+a.height+r.height+n}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,n=new $(this.dCtx.ctx);i.config.yaxis.map((function(a,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||a.floating||n.isYAxisHidden(r)||(a.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),ot=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new it(this),this.dimYAxis=new at(this),this.dimXAxis=new nt(this),this.dimGrid=new rt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return n(t,[{key:"plotCoords",value:function(){var t=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),t.gridHeight=t.gridHeight-this.gridPad.top-this.gridPad.bottom,t.gridWidth=t.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var e=this.dimGrid.gridPadForColumnsInNumericAxis(t.gridWidth);t.gridWidth=t.gridWidth-2*e,t.translateX=t.translateX+this.gridPad.left+this.xPadLeft+(e>0?e+4:0),t.translateY=t.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,n=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:n[i].width,index:i}),e.globals.yTitleCoords.push({width:a[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,o),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var s=this.yAxisWidth,l=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(s=0,l=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(s=0,l=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var u=function(){i.translateX=s,i.gridHeight=i.svgHeight-t.lgRect.height-l-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-s};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,u();break;case"top":i.translateY=this.lgRect.height+c,u();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+s,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-s;break;case"right":i.translateY=c,i.translateX=s,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-this.lgRect.width-s-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,n),new X(this.ctx).setYAxisXPosition(n,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,n=0;t.config.legend.show&&!t.config.legend.floating&&(n=20);var a="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[a].offsetY,o=i.plotOptions[a].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=o+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-n,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+this.lgRect.width+n;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-n-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e){var i=this.w;this.xAxisHeight=(t.height+e.height)*(i.globals.isMultiLineX?1.2:i.globals.LINE_HEIGHT_RATIO)+(i.globals.rotateXLabels?22:10),this.xAxisWidth=t.width,this.xAxisHeight-e.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight<i.config.xaxis.labels.minHeight&&(this.xAxisHeight=i.config.xaxis.labels.minHeight),i.config.xaxis.floating&&(this.xAxisHeight=0);var n=0,a=0;i.config.yaxis.forEach((function(t){n+=t.labels.minWidth,a+=t.labels.maxWidth})),this.yAxisWidth<n&&(this.yAxisWidth=n),this.yAxisWidth>a&&(this.yAxisWidth=a)}}]),t}(),st=function(){function t(i){e(this,t),this.w=i.w,this.lgCtx=i}return n(t,[{key:"getLegendStyles",value:function(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode("\t\n    \t\n      .apexcharts-legend {\t\n        display: flex;\t\n        overflow: auto;\t\n        padding: 0 10px;\t\n      }\t\n      .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\t\n        flex-wrap: wrap\t\n      }\t\n      .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n        flex-direction: column;\t\n        bottom: 0;\t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-left, .apexcharts-legend.position-top.apexcharts-align-left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\t\n        justify-content: flex-start;\t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-center, .apexcharts-legend.position-top.apexcharts-align-center {\t\n        justify-content: center;  \t\n      }\t\n      .apexcharts-legend.position-bottom.apexcharts-align-right, .apexcharts-legend.position-top.apexcharts-align-right {\t\n        justify-content: flex-end;\t\n      }\t\n      .apexcharts-legend-series {\t\n        cursor: pointer;\t\n        line-height: normal;\t\n      }\t\n      .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\t\n        display: flex;\t\n        align-items: center;\t\n      }\t\n      .apexcharts-legend-text {\t\n        position: relative;\t\n        font-size: 14px;\t\n      }\t\n      .apexcharts-legend-text *, .apexcharts-legend-marker * {\t\n        pointer-events: none;\t\n      }\t\n      .apexcharts-legend-marker {\t\n        position: relative;\t\n        display: inline-block;\t\n        cursor: pointer;\t\n        margin-right: 3px;\t\n        border-style: solid;\n      }\t\n      \t\n      .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\t\n        display: inline-block;\t\n      }\t\n      .apexcharts-legend-series.apexcharts-no-click {\t\n        cursor: auto;\t\n      }\t\n      .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\t\n        display: none !important;\t\n      }\t\n      .apexcharts-inactive-legend {\t\n        opacity: 0.45;\t\n      }");return t.appendChild(e),t}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){var t=this.w.globals;t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject");var e=t.dom.elLegendForeign;e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",t.svgWidth),e.setAttribute("height",t.svgHeight),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.appendChild(t.dom.elLegendWrap),e.appendChild(this.getLegendStyles()),t.dom.Paper.node.insertBefore(e,t.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(t,e){var i=this,n=this.w;if(n.globals.axisCharts||"radialBar"===n.config.chart.type){n.globals.resized=!0;var a=null,r=null;n.globals.risingSeries=[],n.globals.axisCharts?(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(a.getAttribute("data:realIndex"),10)):(a=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(a.getAttribute("rel"),10)-1),e?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,r)})):this.hideSeries({seriesEl:a,realIndex:r})}else{var o=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),s=n.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=n.config.plotOptions.pie.donut.labels;new v(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,n=this.w,a=p.clone(n.config.series);if(n.globals.axisCharts){var r=!1;if(n.config.yaxis[i]&&n.config.yaxis[i].show&&n.config.yaxis[i].showAlways&&(r=!0,n.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(n.globals.ancillaryCollapsedSeries.push({index:i,data:a[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(i))),!r){n.globals.collapsedSeries.push({index:i,data:a[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(i);var o=n.globals.risingSeries.indexOf(i);n.globals.risingSeries.splice(o,1)}}else n.globals.collapsedSeries.push({index:i,data:a[i]}),n.globals.collapsedSeriesIndices.push(i);for(var s=e.childNodes,l=0;l<s.length;l++)s[l].classList.contains("apexcharts-series-markers-wrap")&&(s[l].classList.contains("apexcharts-hide")?s[l].classList.remove("apexcharts-hide"):s[l].classList.add("apexcharts-hide"));n.globals.allSeriesCollapsed=n.globals.collapsedSeries.length===n.config.series.length,a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var n=this.w,a=p.clone(n.config.series);if(t.length>0){for(var r=0;r<t.length;r++)t[r].index===i&&(n.globals.axisCharts?(a[i].data=t[r].data.slice(),t.splice(r,1),e.splice(r,1),n.globals.risingSeries.push(i)):(a[i]=t[r].data,t.splice(r,1),e.splice(r,1),n.globals.risingSeries.push(i)));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w;return e.globals.axisCharts?t.forEach((function(i,n){e.globals.collapsedSeriesIndices.indexOf(n)>-1&&(t[n].data=[])})):t.forEach((function(i,n){e.globals.collapsedSeriesIndices.indexOf(n)>-1&&(t[n]=0)})),t}}]),t}(),lt=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new st(this)}return n(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),p.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,n=e.globals.seriesNames,a=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var r=e.config.plotOptions.heatmap.colorScale.ranges;n=r.map((function(t){return t.name?t.name:t.from+" - "+t.to})),a=r.map((function(t){return t.color}))}else this.isBarsDistributed&&(n=e.globals.labels.slice());for(var o=e.globals.legendFormatter,s=e.config.legend.inverseOrder,l=s?n.length-1:0;s?l>=0:l<=n.length-1;s?l--:l++){var c=o(n[l],{seriesIndex:l,w:e}),u=!1,d=!1;if(e.globals.collapsedSeries.length>0)for(var h=0;h<e.globals.collapsedSeries.length;h++)e.globals.collapsedSeries[h].index===l&&(u=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<e.globals.ancillaryCollapsedSeriesIndices.length;f++)e.globals.ancillaryCollapsedSeriesIndices[f]===l&&(d=!0);var m=document.createElement("span");m.classList.add("apexcharts-legend-marker");var g=e.config.legend.markers.offsetX,y=e.config.legend.markers.offsetY,b=e.config.legend.markers.height,x=e.config.legend.markers.width,w=e.config.legend.markers.strokeWidth,k=e.config.legend.markers.strokeColor,S=e.config.legend.markers.radius,M=m.style;M.background=a[l],M.color=a[l],M.setProperty("background",a[l],"important"),e.config.legend.markers.fillColors&&e.config.legend.markers.fillColors[l]&&(M.background=e.config.legend.markers.fillColors[l]),void 0!==e.globals.seriesColors[l]&&(M.background=e.globals.seriesColors[l],M.color=e.globals.seriesColors[l]),M.height=Array.isArray(b)?parseFloat(b[l])+"px":parseFloat(b)+"px",M.width=Array.isArray(x)?parseFloat(x[l])+"px":parseFloat(x)+"px",M.left=Array.isArray(g)?g[l]:g,M.top=Array.isArray(y)?y[l]:y,M.borderWidth=Array.isArray(w)?w[l]:w,M.borderColor=Array.isArray(k)?k[l]:k,M.borderRadius=Array.isArray(S)?parseFloat(S[l])+"px":parseFloat(S)+"px",e.config.legend.markers.customHTML&&(Array.isArray(e.config.legend.markers.customHTML)?e.config.legend.markers.customHTML[l]&&(m.innerHTML=e.config.legend.markers.customHTML[l]()):m.innerHTML=e.config.legend.markers.customHTML()),v.setAttrs(m,{rel:l+1,"data:collapsed":u||d}),(u||d)&&m.classList.add("apexcharts-inactive-legend");var L=document.createElement("div"),T=document.createElement("span");T.classList.add("apexcharts-legend-text"),T.innerHTML=Array.isArray(c)?c.join(" "):c;var C=e.config.legend.labels.useSeriesColors?e.globals.colors[l]:e.config.legend.labels.colors;C||(C=e.config.chart.foreColor),T.style.color=C,T.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",T.style.fontWeight=e.config.legend.fontWeight,T.style.fontFamily=i||e.config.chart.fontFamily,v.setAttrs(T,{rel:l+1,i:l,"data:default-text":encodeURIComponent(c),"data:collapsed":u||d}),L.appendChild(m),L.appendChild(T);var A=new _(this.ctx);e.config.legend.showForZeroSeries||0===A.getSeriesTotalByIndex(l)&&A.seriesHaveSameValues(l)&&!A.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&L.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||A.isSeriesNull(l)&&-1===e.globals.collapsedSeriesIndices.indexOf(l)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&L.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(L),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("position-"+e.config.legend.position),L.classList.add("apexcharts-legend-series"),L.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",v.setAttrs(L,{rel:l+1,seriesName:p.escapeString(n[l]),"data:collapsed":u||d}),(u||d)&&L.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||L.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&(e.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,n=i.globals.dom.baseEl.querySelector(".apexcharts-legend"),a=n.getBoundingClientRect(),r=0,o=0;if("bottom"===i.config.legend.position)o+=i.globals.svgHeight-a.height/2;else if("top"===i.config.legend.position){var s=new ot(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,c=s.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=o+(l>0?l-10:0)+(c>0?c-10:0)}n.style.position="absolute",r=r+t+i.config.legend.offsetX,o=o+e+i.config.legend.offsetY,n.style.left=r+"px",n.style.top=o+"px","bottom"===i.config.legend.position?(n.style.top="auto",n.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(n.style.left="auto",n.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){n.style[t]&&(n.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new ot(this.ctx),n=i.dimHelpers.getTitleSubtitleCoords("title"),a=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===t.config.legend.position?r=-e.clwh/1.8:"top"===t.config.legend.position&&(r=n.height+a.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var n=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new E(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new E(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker")){var i=parseInt(t.target.getAttribute("rel"),10)-1,n="true"===t.target.getAttribute("data:collapsed"),a=this.w.config.chart.events.legendClick;"function"==typeof a&&a(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,n)}}}]),t}(),ct=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return n(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},n=i();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=e.config.chart.toolbar.offsetY+"px",n.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(n),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(i());var r=[],o=function(i,n,a){var o=i.toLowerCase();t.t[o]&&e.config.chart.zoom.enabled&&r.push({el:n,icon:"string"==typeof t.t[o]?t.t[o]:a,title:t.localeValues[i],class:"apexcharts-".concat(o,"-icon")})};o("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),o("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var s=function(i){t.t[i]&&e.config.chart[i].enabled&&r.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};s("zoom"),s("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)r.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});r.forEach((function(t,e){t.index&&p.moveIndexInArray(r,e,t.index)}));for(var c=0;c<r.length;c++)v.setAttrs(r[c].el,{class:r[c].class,title:r[c].title}),r[c].el.innerHTML=r[c].icon,n.appendChild(r[c].el);this._createHamburgerMenu(n),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),v.setAttrs(this.elMenu,{class:"apexcharts-menu"});var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];this.w.globals.allSeriesHasEqualX||e.splice(2,1);for(var i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,v.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))}));for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach((function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,n="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[n]=!e.w.globals[n],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(e){e&&e.classList.remove(t.selectedClass)}))}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,n=(this.maxX+e)/2,a=this._getNewMinXMaxX(i,n);t.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isTimelineBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),n=this.maxX-(e-this.maxX),a=this._getNewMinXMaxX(i,n);t.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var n={min:t,max:e},a=this.getBeforeZoomRange(n);a&&(n=a.xaxis);var r={xaxis:n},o=p.clone(i.globals.initialConfig.yaxis);i.config.chart.zoom.autoScaleYaxis&&(o=new q(this.ctx).autoScaleY(this.ctx,o,{xaxis:n})),i.config.chart.group||(r.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(r,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,o)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e})}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout((function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new B(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach((function(t){var e=t.w;if(e.globals.lastXAxis.min=void 0,e.globals.lastXAxis.max=void 0,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var n=t.ctx.series.emptyCollapsedSeries(p.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(n,e.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),ut=function(t){s(a,t);var i=d(a);function a(t){var n;return e(this,a),(n=i.call(this,t)).ctx=t,n.w=t.w,n.dragged=!1,n.graphics=new v(n.ctx),n.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],n.clientX=0,n.clientY=0,n.startX=0,n.endX=0,n.dragX=0,n.startY=0,n.endY=0,n.dragY=0,n.moveDirection="none",n}return n(a,[{key:"init",value:function(t){var e=this,i=t.xyRatios,n=this.w,a=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.elGraphical.add(this.zoomRect),n.globals.dom.elGraphical.add(this.selectionRect),"x"===n.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===n.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(t){e.hoverArea.addEventListener(t,a.svgMouseEvents.bind(a,i),{capture:!1,passive:!0})}))}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(t,e){var i=this.w,n=this,a=this.ctx.toolbar,r=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,o=i.config.chart.toolbar.autoSelected;e.shiftKey?(this.shiftWasPressed=!0,a.enableZoomPanFromToolbar("pan"===o?"zoom":"pan")):this.shiftWasPressed&&(a.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1);var s=e.target.classList;if(!(s.contains("apexcharts-selection-rect")||s.contains("apexcharts-legend-marker")||s.contains("apexcharts-legend-text")||e.target.parentNode.classList.contains("apexcharts-toolbar"))){if(n.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,n.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which){var l=n.gridRect.getBoundingClientRect();n.startX=n.clientX-l.left,n.startY=n.clientY-l.top,n.dragged=!1,n.w.globals.mousedown=!0}if(("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(n.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:r,xyRatios:t})):(n.w.globals.mousedown&&i.globals.zoomEnabled||n.w.globals.mousedown&&i.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:r}))),"mouseup"===e.type||"touchend"===e.type||"mouseleave"===e.type){var c=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-c.left,n.endY=n.clientY-c.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(i.globals.zoomEnabled||i.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:r}),i.globals.panEnabled&&i.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),i.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}},{key:"makeSelectionRectDraggable",value:function(){var t=this.w;if(this.selectionRect){var e=this.selectionRect.node.getBoundingClientRect();e.width>0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,n={x:i,y:0,width:t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,n=t.width,a=t.height,r=t.translateX,o=void 0===r?0:r,s=t.translateY,l=void 0===s?0:s,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+o+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),u.attr({x:e,y:i,width:n,height:a,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),v.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:e,y:i,width:n>0?n:0,height:a>0?a:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),v.setAttrs(d.node,h))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.context,n=t.zoomtype,a=this.w,r=i,o=this.gridRect.getBoundingClientRect(),s=r.startX-1,l=r.startY,c=!1,u=!1,d=r.clientX-o.left-s,h=r.clientY-o.top-l;return Math.abs(d+s)>a.globals.gridWidth?d=a.globals.gridWidth-s:r.clientX-o.left<0&&(d=s),s>r.clientX-o.left&&(c=!0,d=Math.abs(d)),l>r.clientY-o.top&&(u=!0,h=Math.abs(h)),e="x"===n?{x:c?s-d:s,y:0,width:d,height:a.globals.gridHeight}:"y"===n?{x:0,y:u?l-h:l,width:a.globals.gridWidth,height:h}:{x:c?s-d:s,y:u?l-h:l,width:d,height:h},r.drawSelectionRect(e),r.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,n=this.w,a=this.xyRatios,r=this.selectionRect,o=0;"resizing"===t&&(o=30);var s=function(t){return parseFloat(r.node.getAttribute(t))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};n.globals.selection=l,"function"==typeof n.config.chart.events.selection&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t=i.gridRect.getBoundingClientRect(),e=r.node.getBoundingClientRect(),o={xaxis:{min:n.globals.xAxisScale.niceMin+(e.left-t.left)*a.xRatio,max:n.globals.xAxisScale.niceMin+(e.right-t.left)*a.xRatio},yaxis:{min:n.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*a.yRatio[0],max:n.globals.yAxisScale[0].niceMax-(e.top-t.top)*a.yRatio[0]}};n.config.chart.events.selection(i.ctx,o),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(i.ctx,o)}),o))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,n=this.w,a=e,r=this.xyRatios,o=this.ctx.toolbar;if(a.startX>a.endX){var s=a.startX;a.startX=a.endX,a.endX=s}if(a.startY>a.endY){var l=a.startY;a.startY=a.endY,a.endY=l}var c=void 0,u=void 0;n.globals.isTimelineBar?(c=n.globals.yAxisScale[0].niceMin+a.startX*r.invertedYRatio,u=n.globals.yAxisScale[0].niceMin+a.endX*r.invertedYRatio):(c=n.globals.xAxisScale.niceMin+a.startX*r.xRatio,u=n.globals.xAxisScale.niceMin+a.endX*r.xRatio);var d=[],h=[];if(n.config.yaxis.forEach((function(t,e){d.push(n.globals.yAxisScale[e].niceMax-r.yRatio[e]*a.startY),h.push(n.globals.yAxisScale[e].niceMax-r.yRatio[e]*a.endY)})),a.dragged&&(a.dragX>10||a.dragY>10)&&c!==u)if(n.globals.zoomEnabled){var f=p.clone(n.globals.initialConfig.yaxis),m=p.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=n.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==i&&"x"!==i||(m={min:c,max:u}),"xy"!==i&&"y"!==i||f.forEach((function(t,e){f[e].min=h[e],f[e].max=d[e]})),n.config.chart.zoom.autoScaleYaxis){var g=new q(a.ctx);f=g.autoScaleY(a.ctx,f,{xaxis:m})}if(o){var v=o.getBeforeZoomRange(m,f);v&&(m=v.xaxis?v.xaxis:m,f=v.yaxis?v.yaxis:f)}var y={xaxis:m};n.config.chart.group||(y.yaxis=f),a.ctx.updateHelpers._updateOptions(y,!1,a.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&o.zoomCallback(m,f)}else if(n.globals.selectionEnabled){var b,_=null;b={min:c,max:u},"xy"!==i&&"y"!==i||(_=p.clone(n.config.yaxis)).forEach((function(t,e){_[e].min=h[e],_[e].max=d[e]})),n.globals.selection=a.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(a.ctx,{xaxis:b,yaxis:_})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,n=e;if(void 0!==i.globals.lastClientPosition.x){var a=i.globals.lastClientPosition.x-n.clientX,r=i.globals.lastClientPosition.y-n.clientY;Math.abs(a)>Math.abs(r)&&a>0?this.moveDirection="left":Math.abs(a)>Math.abs(r)&&a<0?this.moveDirection="right":Math.abs(r)>Math.abs(a)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(a)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:n.clientX,y:n.clientY};var o=i.globals.isTimelineBar?i.globals.minY:i.globals.minX,s=i.globals.isTimelineBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||n.panScrolled(o,s)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,n=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+n,i=t.globals.maxX+n):"right"===this.moveDirection&&(e=t.globals.minX-n,i=t.globals.maxX-n),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,n=this.xyRatios,a=p.clone(i.globals.initialConfig.yaxis),r=n.xRatio,o=i.globals.minX,s=i.globals.maxX;i.globals.isTimelineBar&&(r=n.invertedYRatio,o=i.globals.minY,s=i.globals.maxY),"left"===this.moveDirection?(t=o+i.globals.gridWidth/15*r,e=s+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(t=o-i.globals.gridWidth/15*r,e=s-i.globals.gridWidth/15*r),i.globals.isTimelineBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=o,e=s);var l={min:t,max:e};i.config.chart.zoom.autoScaleYaxis&&(a=new q(this.ctx).autoScaleY(this.ctx,a,{xaxis:l}));var c={xaxis:{min:t,max:e}};i.config.chart.group||(c.yaxis=a),this.updateScrolledChart(c,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var n=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),a}(ct),dt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx}return n(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,n=t.clientX,a=t.clientY,r=this.w,o=r.globals.gridWidth,s=o/(r.globals.dataPoints-1),l=i.getBoundingClientRect(),c=this.hasBars();!r.globals.comboCharts&&!c||r.config.xaxis.convertedCatToNumeric||(s=o/r.globals.dataPoints);var u=n-l.left-r.globals.barPadForNumericAxis,d=a-l.top;u<0||d<0||u>r.globals.gridWidth||d>r.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var h=Math.round(u/s);c&&!r.config.xaxis.convertedCatToNumeric&&(h=Math.ceil(u/s),h-=1);for(var f,m=null,g=null,v=[],y=0;y<r.globals.seriesXvalues.length;y++)v.push([r.globals.seriesXvalues[y][0]-1e-6].concat(r.globals.seriesXvalues[y]));return v=v.map((function(t){return t.filter((function(t){return t}))})),f=r.globals.seriesYvalues.map((function(t){return t.filter((function(t){return p.isNumber(t)}))})),r.globals.isXNumeric&&(m=(g=this.closestInMultiArray(u,d,v,f)).index,h=g.j,null!==m&&(v=r.globals.seriesXvalues[m],h=(g=this.closestInArray(u,v)).index)),r.globals.capturedSeriesIndex=null===m?-1:m,(!h||h<1)&&(h=0),r.globals.capturedDataPointIndex=h,{capturedSeries:m,j:h,hoverX:u,hoverY:d}}},{key:"closestInMultiArray",value:function(t,e,i,n){var a=this.w,r=0,o=null,s=-1;a.globals.series.length>1?r=this.getFirstActiveXArray(i):o=0;var l=n[r][0],c=i[r][0],u=Math.abs(t-c),d=Math.abs(e-l),h=d+u;return n.map((function(a,r){a.map((function(a,l){var c=Math.abs(e-n[r][l]),f=Math.abs(t-i[r][l]),p=f+c;p<h&&(h=p,u=f,d=c,o=r,s=l)}))})),{index:o,j:s}}},{key:"getFirstActiveXArray",value:function(t){for(var e=0,i=t.map((function(t,e){return t.length>0?e:-1})),n=0;n<i.length;n++)if(-1!==i[n]){e=i[n];break}return e}},{key:"closestInArray",value:function(t,e){for(var i=e[0],n=null,a=Math.abs(t-i),r=0;r<e.length;r++){var o=Math.abs(t-e[r]);o<a&&(a=o,n=r)}return{index:n}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter((function(t){return void 0!==t[0]}));if(i.length>0)for(var n=0;n<i.length-1;n++)void 0!==i[n][t]&&void 0!==i[n+1][t]&&i[n][t]!==i[n+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return h(t).reduce((function(t,e){return t+e.getBBox().height}),0)}},{key:"getElMarkers",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series-markers")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=h(t)).sort((function(t,e){return Number(e.getAttribute("data:realIndex"))<Number(t.getAttribute("data:realIndex"))?0:-1}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{key:"hasMarkers",value:function(){return this.getElMarkers().length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=i.allTooltipSeriesGroups,a=0;a<n.length;a++)"enable"===t?(n[a].classList.add("apexcharts-active"),n[a].style.display=e.config.tooltip.items.display):(n[a].classList.remove("apexcharts-active"),n[a].style.display="none")}}]),t}(),ht=function(){function t(i){e(this,t),this.w=i.w,this.ctx=i.ctx,this.ttCtx=i,this.tooltipUtil=new dt(i)}return n(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,n=t.ttItems,a=t.i,r=void 0===a?0:a,o=t.j,s=void 0===o?null:o,l=t.y1,c=t.y2,u=t.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:r,j:s,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i);var h=this.getValuesToPrint({i:r,j:s});this.printLabels({i:r,j:s,values:h,ttItems:n,shared:i,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,n=t.i,a=t.j,r=t.values,s=t.ttItems,l=t.shared,c=t.e,u=this.w,d=r.xVal,h=r.zVal,f=r.xAxisTTVal,p="",m=u.globals.colors[n];null!==a&&u.config.plotOptions.bar.distributed&&(m=u.globals.colors[a]);for(var g=function(t,r){var g=i.getFormatters(n);p=i.getSeriesName({fn:g.yLbTitleFormatter,index:n,seriesIndex:n,j:a}),"treemap"===u.config.chart.type&&(p=g.yLbTitleFormatter(String(u.config.series[n].data[a].x),{series:u.globals.series,seriesIndex:n,dataPointIndex:a,w:u}));var v=u.config.tooltip.inverseOrder?r:t;if(u.globals.axisCharts){var y=function(t){return g.yLbFormatter(u.globals.series[t][a],{series:u.globals.series,seriesIndex:t,dataPointIndex:a,w:u})};l?(g=i.getFormatters(v),p=i.getSeriesName({fn:g.yLbTitleFormatter,index:v,seriesIndex:n,j:a}),m=u.globals.colors[v],e=y(v)):(c&&c.target&&c.target.getAttribute("fill")&&(m=c.target.getAttribute("fill")),e=y(n))}null===a&&(e=g.yLbFormatter(u.globals.series[n],o(o({},u),{},{seriesIndex:n,dataPointIndex:n}))),i.DOMHandling({i:n,t:v,j:a,ttItems:s,values:{val:e,xVal:d,xAxisTTVal:f,zVal:h},seriesName:p,shared:l,pColor:m})},v=0,y=u.globals.series.length-1;v<u.globals.series.length;v++,y--)g(v,y)}},{key:"getFormatters",value:function(t){var e,i=this.w,n=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(n=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(n=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof n&&(n=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t}),{yLbFormatter:n,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,n=t.seriesIndex,a=t.j,r=this.w;return e(String(r.globals.seriesNames[i]),{series:r.globals.series,seriesIndex:n,dataPointIndex:a,w:r})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=(t.j,t.ttItems),n=t.values,a=t.seriesName,r=t.shared,o=t.pColor,s=this.w,l=this.ttCtx,c=n.val,u=n.xVal,d=n.xAxisTTVal,h=n.zVal,f=null;f=i[e].children,s.config.tooltip.fillSeriesColor&&(i[e].style.backgroundColor=o,f[0].style.display="none"),l.showTooltipTitle&&(null===l.tooltipTitle&&(l.tooltipTitle=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),l.tooltipTitle.innerHTML=u),l.blxaxisTooltip&&(l.xaxisTooltipText.innerHTML=""!==d?d:u);var p=i[e].querySelector(".apexcharts-tooltip-text-label");p&&(p.innerHTML=a||"");var m=i[e].querySelector(".apexcharts-tooltip-text-value");m&&(m.innerHTML=void 0!==c?c:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(s.config.tooltip.marker.fillColors&&Array.isArray(s.config.tooltip.marker.fillColors)&&(o=s.config.tooltip.marker.fillColors[e]),f[0].style.backgroundColor=o),s.config.tooltip.marker.show||(f[0].style.display="none"),null!==h&&(i[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=s.config.tooltip.z.title,i[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==h?h:""),r&&f[0]&&(null==c||s.globals.collapsedSeriesIndices.indexOf(e)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=s.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,n=this.w,a=this.ctx.series.filteredSeriesX(),r="",o="",s=null,l=null,c={series:n.globals.series,seriesIndex:e,dataPointIndex:i,w:n},u=n.globals.ttZFormatter;null===i?l=n.globals.series[e]:n.globals.isXNumeric&&"treemap"!==n.config.chart.type?(r=a[e][i],0===a[e].length&&(r=a[this.tooltipUtil.getFirstActiveXArray(a)][i])):r=void 0!==n.globals.labels[i]?n.globals.labels[i]:"";var d=r;return r=n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?new z(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new Y(this.ctx).formatDate,w:this.w}):n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](d,c):n.globals.xLabelFormatter(d,c),void 0!==n.config.tooltip.x.formatter&&(r=n.globals.ttKeyFormatter(d,c)),n.globals.seriesZ.length>0&&n.globals.seriesZ[e].length>0&&(s=u(n.globals.seriesZ[e][i],n)),o="function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(d,c):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:s}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,n=t.y1,a=t.y2,r=t.w,o=this.ttCtx.getElTooltip(),s=r.config.tooltip.custom;Array.isArray(s)&&s[e]&&(s=s[e]),o.innerHTML=s({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:n,y2:a,w:r})}}]),t}(),ft=function(){function t(i){e(this,t),this.ttCtx=i,this.ctx=i.ctx,this.w=i.w}return n(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,n=this.w,a=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,o=n.globals.labels.slice().length;if(null!==e&&(r=n.globals.gridWidth/o*e),null!==a&&(a.setAttribute("x",r),a.setAttribute("x1",r),a.setAttribute("x2",r),a.setAttribute("y2",n.globals.gridHeight),a.classList.add("apexcharts-active")),r<0&&(r=0),r>n.globals.gridWidth&&(r=n.globals.gridWidth),i.blxaxisTooltip){var s=r;"tickWidth"!==n.config.xaxis.crosshairs.width&&"barWidth"!==n.config.xaxis.crosshairs.width||(s=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&v.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&v.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("apexcharts-active");var n,a=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,n=new v(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=n.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=a+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),a=e.globals.translateY+n,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),a-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=a+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,a=this.ttCtx,r=a.getElTooltip(),o=a.tooltipRect,s=null!==i?parseFloat(i):1,l=parseFloat(t)+s+5,c=parseFloat(e)+s/2;if(l>n.globals.gridWidth/2&&(l=l-o.ttWidth-s-15),l>n.globals.gridWidth-o.ttWidth-10&&(l=n.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),n.config.tooltip.followCursor){var u=a.getElGrid(),d=u.getBoundingClientRect();c=a.e.clientY+n.globals.translateY-d.top-o.ttHeight/2}if(!n.config.tooltip.followCursor){var h=this.positionChecks(o,l,c);l=h.x,c=h.y}isNaN(l)||(l+=n.globals.translateX,r.style.left=l+"px",r.style.top=c+"px")}},{key:"positionChecks",value:function(t,e,i){var n=this.w;return t.ttHeight/2+i>n.globals.gridHeight&&(i=n.globals.gridHeight-t.ttHeight+n.globals.translateY),i<0&&(i=0),{x:e,y:i}}},{key:"moveMarkers",value:function(t,e){var i=this.w,n=this.ttCtx;if(i.globals.markers.size[t]>0)for(var a=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r<a.length;r++)parseInt(a[r].getAttribute("rel"),10)===e&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(e,a[r]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,n,a=this.w,r=this.ttCtx,o=a.globals.pointsArray,s=r.tooltipUtil.getHoverMarkerSize(e),l=a.config.series[e].type;if(!l||"column"!==l&&"candlestick"!==l){i=o[e][t][0],n=o[e][t][1]?o[e][t][1]:0;var c=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers circle"));c&&n<a.globals.gridHeight&&n>0&&(c.setAttribute("r",s),c.setAttribute("cx",i),c.setAttribute("cy",n)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,n,s)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,n=i.w,a=0,r=0,o=n.globals.pointsArray;e=new E(this.ctx).getActiveConfigSeriesIndex(!0);var s=i.tooltipUtil.getHoverMarkerSize(e);o[e]&&(a=o[e][t][0],r=o[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var c=0;c<n.globals.series.length;c++){var u=o[c];if(n.globals.comboCharts&&void 0===u&&l.splice(c,0,null),u&&u.length){var d=o[c][t][1];l[c].setAttribute("cx",a),null!==d&&!isNaN(d)&&d<n.globals.gridHeight&&d>0?(l[c]&&l[c].setAttribute("r",s),l[c]&&l[c].setAttribute("cy",d)):l[c]&&l[c].setAttribute("r",0)}}if(this.moveXCrosshairs(a),!i.fixedTooltip){var h=r||n.globals.gridHeight;this.moveTooltip(a,h,s)}}},{key:"moveStickyTooltipOverBars",value:function(t){var e,i=this.w,n=this.ttCtx,a=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1,o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']")),s=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("barWidth")):0;i.globals.isXNumeric?s-=a%2!=0?l/2:0:(s=n.xAxisTicksPositions[t-1]+n.dataPointsDividedWidth/2,isNaN(s)&&(s=n.xAxisTicksPositions[t]-n.dataPointsDividedWidth/2));var c=n.getElGrid().getBoundingClientRect();if(e=n.e.clientY-c.top-n.tooltipRect.ttHeight/2,this.moveXCrosshairs(s),!n.fixedTooltip){var u=e||i.globals.gridHeight;this.moveTooltip(s,u)}}}]),t}(),pt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i,this.ctx=i.ctx,this.tooltipPosition=new ft(i)}return n(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new v(this.ctx),i=new T(this.ctx),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=h(n),t.config.chart.stacked&&n.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var a=0;a<n.length;a++){var r=n[a].querySelector(".apexcharts-series-markers-wrap");if(null!==r){var o=void 0,s="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(s+=" no-pointer-events");var l=i.getMarkerConfig(s,a);(o=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(o.node),r.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w;"bubble"!==a.config.chart.type&&this.newPointSize(t,e);var r=e.getAttribute("cx"),o=e.getAttribute("cy");if(null!==i&&null!==n&&(r=i,o=n),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===a.config.chart.type){var s=this.ttCtx.getElGrid(),l=s.getBoundingClientRect();r=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(r,o,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,n=this.ttCtx,a=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,s=0;s<r.length;s++){var l=r[s].getAttribute("rel"),c=r[s].getAttribute("index");if(void 0===o&&(o=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),a===parseInt(l,10)){i.newPointSize(a,r[s]);var u=r[s].getAttribute("cx"),d=r[s].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(u),n.fixedTooltip||i.tooltipPosition.moveTooltip(u,d,o)}else i.oldPointSize(r[s])}}},{key:"newPointSize",value:function(t,e){var i=this.w,n=i.config.markers.hover.size,a=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==a.getAttribute("default-marker-size")){var r=parseInt(a.getAttribute("index"),10);void 0===n&&(n=i.globals.markers.size[r]+i.config.markers.hover.sizeOffset),a.setAttribute("r",n)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size"));t.setAttribute("r",e)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));p.isNumber(i)?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),mt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i}return n(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,n=t.x,a=t.y,r=t.type,o=this.ttCtx,s=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(e,"i"),c=this.getAttr(e,"j"),u=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),h=this.getAttr(e,"width"),f=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:e}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,n=u+o.tooltipRect.ttWidth/2+h,a=d+o.tooltipRect.ttHeight/2-f/2,o.tooltipPosition.moveXCrosshairs(u+h/2),n>s.globals.gridWidth/2&&(n=u-o.tooltipRect.ttWidth/2+h),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();(n=o.e.clientX-p.left+10)>s.globals.gridWidth/2&&(n=n-o.tooltipRect.ttWidth-10),a=o.e.clientY-p.top+s.globals.translateY/2-10}}return{x:n,y:a}}},{key:"handleMarkerTooltip",value:function(t){var e,i,n=t.e,a=t.opt,r=t.x,o=t.y,s=this.w,l=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var c=parseInt(a.paths.getAttribute("cx"),10),u=parseInt(a.paths.getAttribute("cy"),10),d=parseFloat(a.paths.getAttribute("val"));if(i=parseInt(a.paths.getAttribute("rel"),10),e=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=p.findAncestor(a.paths,"apexcharts-series");h&&(e=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:e,j:i,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:n}),"mouseup"===n.type&&l.markerClick(n,e,i),s.globals.capturedSeriesIndex=e,s.globals.capturedDataPointIndex=i,r=c,o=u+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();o=l.e.clientY+s.globals.translateY-f.top}d<0&&(o=u),l.marker.enlargeCurrentPoint(i,a.paths,r,o)}return{x:r,y:o}}},{key:"handleBarTooltip",value:function(t){var e,i,n=t.e,a=t.opt,r=this.w,o=this.ttCtx,s=o.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:n,opt:a});e=d.i;var h=d.barHeight,f=d.j;if(r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=f,r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!r.config.tooltip.shared?(c=d.x,u=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,l=c):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(u)?u=r.globals.svgHeight-o.tooltipRect.ttHeight:u<0&&(u=0),c+o.tooltipRect.ttWidth>r.globals.gridWidth?c-=o.tooltipRect.ttWidth:c<0&&(c=0),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();u=o.e.clientY-p.top}if(null===o.tooltip&&(o.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+i/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars())){var m=r.globals.isMultipleYAxis?r.config.yaxis[g]&&r.config.yaxis[g].reversed:r.config.yaxis[0].reversed;m&&(c-=o.tooltipRect.ttWidth)<0&&(c=0),s.style.left=c+r.globals.translateX+"px";var g=parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10);!m||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(u=u+h-2*(r.globals.series[e][f]<0?h:0)),o.tooltipRect.ttHeight+u>r.globals.gridHeight?(u=r.globals.gridHeight-o.tooltipRect.ttHeight+r.globals.translateY,s.style.top=u+"px"):s.style.top=u+r.globals.translateY-o.tooltipRect.ttHeight/2+"px"}}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,n=this.w,a=null,r=this.ttCtx,o=0,s=0,l=0,c=0,u=0,d=e.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-rangebar-area")){var h=e.target,f=h.getBoundingClientRect(),p=i.elGrid.getBoundingClientRect(),m=f.height;u=f.height;var g=f.width,v=parseInt(h.getAttribute("cx"),10),y=parseInt(h.getAttribute("cy"),10);c=parseFloat(h.getAttribute("barWidth"));var b="touchmove"===e.type?e.touches[0].clientX:e.clientX;a=parseInt(h.getAttribute("j"),10),o=parseInt(h.parentNode.getAttribute("rel"),10)-1;var _=h.getAttribute("data-range-y1"),x=h.getAttribute("data-range-y2");n.globals.comboCharts&&(o=parseInt(h.parentNode.getAttribute("data:realIndex"),10)),r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:o,j:a,y1:_?parseInt(_,10):null,y2:x?parseInt(x,10):null,shared:!r.showOnIntersect&&n.config.tooltip.shared,e:e}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(s=b-p.left+15,l=y-r.dataPointsDividedHeight+m/2-r.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?v-g/2:v-r.dataPointsDividedWidth+g/2,l=e.clientY-p.top-r.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((s=v)<r.xyRatios.baseLineInvertedY&&(s=v-r.tooltipRect.ttWidth),l=y-r.dataPointsDividedHeight+m/2-r.tooltipRect.ttHeight/2):(s=n.globals.isXNumeric?v-g/2:v-r.dataPointsDividedWidth+g/2,l=y)}return{x:s,y:l,barHeight:u,barWidth:c,i:o,j:a}}}]),t}(),gt=function(){function t(i){e(this,t),this.w=i.w,this.ttCtx=i}return n(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var n=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=t.globals.dom.elWrap;e.blxaxisTooltip&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+t.config.tooltip.theme),a.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=function(i){var n=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=n?t.globals.gridWidth+1:1;var a="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left");t.globals.yAxisSameScaleIndices.map((function(e,n){e.map((function(e,n){n===i&&(a+=t.config.yaxis[n].show?" ":" apexcharts-yaxistooltip-hidden")}))}));var r=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+t.config.tooltip.theme),r.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))},n=0;n<t.config.yaxis.length;n++)i(n)}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var n=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==n&&"barWidth"===t.config.xaxis.crosshairs.width){var a=parseFloat(n.getAttribute("barWidth"));e.xcrosshairsWidth=a}else if("tickWidth"===t.config.xaxis.crosshairs.width){var r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var o=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/o}else if("barWidth"===t.config.xaxis.crosshairs.width){var s=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var l=parseFloat(s.getAttribute("barWidth"));e.xcrosshairsWidth=l}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var n=this.ttCtx,a=this.w,r=a.globals.yLabelFormatters[t];if(n.yaxisTooltips[t]){var o=n.getElGrid().getBoundingClientRect(),s=(e-o.top)*i.yRatio[t],l=a.globals.maxYArr[t]-a.globals.minYArr[t],c=a.globals.minYArr[t]+(l-s);n.tooltipPosition.moveYCrosshairs(e-o.top),n.yaxisTooltipText[t].innerHTML=r(c),n.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),vt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new dt(this),this.tooltipLabels=new ht(this),this.tooltipPosition=new ft(this),this.marker=new pt(this),this.intersect=new mt(this),this.axesTooltip=new gt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared}return n(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.blxaxisTooltip=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)})),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var n=new W(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var a=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this.w,i=[],n=this.getElTooltip(),a=0;a<t;a++){var r=document.createElement("div");r.classList.add("apexcharts-tooltip-series-group"),r.style.order=e.config.tooltip.inverseOrder?t-a:a+1,this.tConfig.shared&&this.tConfig.enabledOnSeries&&Array.isArray(this.tConfig.enabledOnSeries)&&this.tConfig.enabledOnSeries.indexOf(a)<0&&r.classList.add("apexcharts-tooltip-series-group-hidden");var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),o.style.backgroundColor=e.globals.colors[a],r.appendChild(o);var s=document.createElement("div");s.classList.add("apexcharts-tooltip-text"),s.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,s.style.fontSize=this.tConfig.style.fontSize;var l=document.createElement("div");l.classList.add("apexcharts-tooltip-y-group");var c=document.createElement("span");c.classList.add("apexcharts-tooltip-text-label"),l.appendChild(c);var u=document.createElement("span");u.classList.add("apexcharts-tooltip-text-value"),l.appendChild(u);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-z-group");var h=document.createElement("span");h.classList.add("apexcharts-tooltip-text-z-label"),d.appendChild(h);var f=document.createElement("span");f.classList.add("apexcharts-tooltip-text-z-value"),d.appendChild(f),s.appendChild(l),s.appendChild(d),r.appendChild(s),n.appendChild(r),i.push(r)}return i}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),n=!("bar"!==e&&"candlestick"!==e&&"rangeBar"!==e),a="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,r=t.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var s,l=[],c=[],u={hoverArea:r,elGrid:o,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(a?s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),s&&s.length))for(var d=0;d<s.length;d++)l.push(s[d].getAttribute("cy")),c.push(s[d].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([r],u);else if(n&&!t.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var h=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,u)}if(this.showOnIntersect){var f=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),n=i.width+10,a=i.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(r=r+t.globals.svgWidth-n+10),s.indexOf("bottom")>-1&&(o=o+t.globals.svgHeight-a-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:n,ttHeight:a}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,n=function(n){var a={paths:t[n],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[n].addEventListener(e,i.seriesHover.bind(i,a),{capture:!1,passive:!0})}))},a=0;a<t.length;a++)n(a)}},{key:"seriesHover",value:function(t,e){var i=this,n=[],a=this.w;a.config.chart.group&&(n=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||0===a.globals.dataPoints)||(n.length?n.forEach((function(n){var a=i.getElTooltip(n),r={paths:t.paths,tooltipEl:a,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:r,e:e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e:e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,n=t.opt,a=t.e,r=e.w,o=this.getElTooltip();i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=a,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new E(e).toggleSeriesOnHover(a,a.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:a,opt:n,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:a,opt:n,tooltipRect:i.tooltipRect})}},{key:"axisChartsTooltips",value:function(t){var e,i,n=t.e,a=t.opt,r=this.w,o=a.elGrid.getBoundingClientRect(),s="touchmove"===n.type?n.touches[0].clientX:n.clientX,l="touchmove"===n.type?n.touches[0].clientY:n.clientY;if(this.clientY=l,this.clientX=s,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var c=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(a)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if(r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&(h=!1),"mousemove"===n.type||"touchmove"===n.type||"mouseup"===n.type){null!==d&&d.classList.add("apexcharts-active");var f=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&f.length&&this.ycrosshairs.classList.add("apexcharts-active"),h&&!this.showOnIntersect)this.handleStickyTooltip(n,s,l,a);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:n,opt:a,x:e,y:i,type:r.config.chart.type});e=p.x,i=p.y,u.style.left=e+"px",u.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:a,x:e,y:i});if(this.yaxisTooltips.length)for(var m=0;m<r.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);a.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==n.type&&"touchend"!==n.type||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,n=t.tooltipRect,a=this.w,r=i.paths.getAttribute("rel"),o=this.getElTooltip(),s=a.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(r,10)-1,shared:!1});var l=a.globals.clientX-s.left-n.ttWidth/2,c=a.globals.clientY-s.top-n.ttHeight-10;if(o.style.left=l+"px",o.style.top=c+"px",a.config.legend.tooltipHoverFormatter){var u=r-1,d=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:a});this.legendLabels[u].innerHTML=d}}else"mouseout"!==e.type&&"touchend"!==e.type||(o.classList.remove("apexcharts-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})))}},{key:"handleStickyTooltip",value:function(t,e,i,n){var a=this.w,r=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:e,clientY:i}),o=r.j,s=r.capturedSeries;r.hoverX<0||r.hoverX>a.globals.gridWidth?this.handleMouseOut(n):null!==s?this.handleStickyCapturedSeries(t,s,n,o):this.tooltipUtil.isXoverlap(o)&&this.create(t,this,0,o,n.ttItems)}},{key:"handleStickyCapturedSeries",value:function(t,e,i,n){var a=this.w;null===a.globals.series[e][n]?this.handleMouseOut(i):void 0!==a.globals.series[e][n]?this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,n,i.ttItems):this.create(t,this,e,n,i.ttItems,!1):this.tooltipUtil.isXoverlap(n)&&this.create(t,this,0,n,i.ttItems)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new v(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<i.length;n++)e.pathMouseLeave(i[n])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.blxaxisTooltip&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var n=0;n<this.yaxisTTEls.length;n++)this.yaxisTTEls[n].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"markerClick",value:function(t,e,i){var n=this.w;"function"==typeof n.config.chart.events.markerClick&&n.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:n}])}},{key:"create",value:function(t,e,i,n,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=this.w,s=e;"mouseup"===t.type&&this.markerClick(t,i,n),null===r&&(r=this.tConfig.shared);var l=this.tooltipUtil.hasMarkers(),c=this.tooltipUtil.getElBars();if(o.config.legend.tooltipHoverFormatter){var u=o.config.legend.tooltipHoverFormatter,d=Array.from(this.legendLabels);d.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var h=0;h<d.length;h++){var f=d[h],p=parseInt(f.getAttribute("i"),10),m=decodeURIComponent(f.getAttribute("data:default-text")),g=u(m,{seriesIndex:r?p:i,dataPointIndex:n,w:o});if(r)f.innerHTML=o.globals.collapsedSeriesIndices.indexOf(p)<0?g:m;else if(f.innerHTML=p===i?g:m,i===p)break}}if(r){if(s.tooltipLabels.drawSeriesTexts({ttItems:a,i:i,j:n,shared:!this.showOnIntersect&&this.tConfig.shared}),l&&(o.globals.markers.largestSize>0?s.marker.enlargePoints(n):s.tooltipPosition.moveDynamicPointsOnHover(n)),this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(c),this.barSeriesHeight>0)){var y=new v(this.ctx),b=o.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n);for(var _=0;_<b.length;_++)y.pathMouseEnter(b[_])}}else s.tooltipLabels.drawSeriesTexts({shared:!1,ttItems:a,i:i,j:n}),this.tooltipUtil.hasBars()&&s.tooltipPosition.moveStickyTooltipOverBars(n),l&&s.tooltipPosition.moveMarkers(i,n)}}]),t}(),yt=function(t){s(a,t);var i=d(a);function a(){return e(this,a),i.apply(this,arguments)}return n(a,[{key:"draw",value:function(t,e){var i=this,n=this.w;this.graphics=new v(this.ctx),this.bar=new P(this.ctx,this.xyRatios);var a=new _(this.ctx,n);t=a.getLogSeries(t),this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===n.config.chart.stackType&&(t=n.globals.seriesPercent.slice()),this.series=t,this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var r=0;r<t.length;r++)t[r].length>0&&(this.totalItems+=t[r].length);for(var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),l=0,c=0,u=function(a,r){var u=void 0,d=void 0,h=void 0,f=void 0,m=[],g=[],v=n.globals.comboCharts?e[a]:a;i.yRatio.length>1&&(i.yaxisIndex=v),i.isReversed=n.config.yaxis[i.yaxisIndex]&&n.config.yaxis[i.yaxisIndex].reversed;var y=i.graphics.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[v]),rel:a+1,"data:realIndex":v});i.ctx.series.addCollapsedClassToSeries(y,v);var b=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":v}),_=0,x=0,w=i.initialPositions(l,c,u,d,h,f);c=w.y,_=w.barHeight,d=w.yDivision,f=w.zeroW,l=w.x,x=w.barWidth,u=w.xDivision,h=w.zeroH,i.yArrj=[],i.yArrjF=[],i.yArrjVal=[],i.xArrj=[],i.xArrjF=[],i.xArrjVal=[],1===i.prevY.length&&i.prevY[0].every((function(t){return isNaN(t)}))&&(i.prevY[0]=i.prevY[0].map((function(t){return h})),i.prevYF[0]=i.prevYF[0].map((function(t){return 0})));for(var k=0;k<n.globals.dataPoints;k++){var S=i.barHelpers.getStrokeWidth(a,k,v),M={indexes:{i:a,j:k,realIndex:v,bc:r},strokeWidth:S,x:l,y:c,elSeries:y},L=null;i.isHorizontal?(L=i.drawStackedBarPaths(o(o({},M),{},{zeroW:f,barHeight:_,yDivision:d})),x=i.series[a][k]/i.invertedYRatio):(L=i.drawStackedColumnPaths(o(o({},M),{},{xDivision:u,barWidth:x,zeroH:h})),_=i.series[a][k]/i.yRatio[i.yaxisIndex]),c=L.y,l=L.x,m.push(l),g.push(c);var T=i.barHelpers.getPathFillColor(t,a,k,v);y=i.renderSeries({realIndex:v,pathFill:T,j:k,i:a,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:S,elSeries:y,x:l,y:c,series:t,barHeight:_,barWidth:x,elDataLabelsWrap:b,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[v]=m,n.globals.seriesYvalues[v]=g,i.prevY.push(i.yArrj),i.prevYF.push(i.yArrjF),i.prevYVal.push(i.yArrjVal),i.prevX.push(i.xArrj),i.prevXF.push(i.xArrjF),i.prevXVal.push(i.xArrjVal),s.add(y)},d=0,h=0;d<t.length;d++,h++)u(d,h);return s}},{key:"initialPositions",value:function(t,e,i,n,a,r){var o,s,l=this.w;return this.isHorizontal?(o=(o=n=l.globals.gridHeight/l.globals.dataPoints)*parseInt(l.config.plotOptions.bar.barHeight,10)/100,r=this.baseLineInvertedY+l.globals.padHorizontal+(this.isReversed?l.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),e=(n-o)/2):(s=i=l.globals.gridWidth/l.globals.dataPoints,s=l.globals.isXNumeric&&l.globals.dataPoints>1?(i=l.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:s*parseInt(l.config.plotOptions.bar.columnWidth,10)/100,a=this.baseLineY[this.yaxisIndex]+(this.isReversed?l.globals.gridHeight:0)-(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=l.globals.padHorizontal+(i-s)/2),{x:t,y:e,yDivision:n,xDivision:i,barHeight:o,barWidth:s,zeroH:a,zeroW:r}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,n=t.barHeight,a=t.strokeWidth,r=t.zeroW,o=t.x,s=t.y,l=t.yDivision,c=t.elSeries,u=this.w,d=s,h=i.i,f=i.j,p=0,m=0;m<this.prevXF.length;m++)p+=this.prevXF[m][f];if(h>0){var g=r;this.prevXVal[h-1][f]<0?g=this.series[h][f]>=0?this.prevX[h-1][f]+p-2*(this.isReversed?p:0):this.prevX[h-1][f]:this.prevXVal[h-1][f]>=0&&(g=this.series[h][f]>=0?this.prevX[h-1][f]:this.prevX[h-1][f]-p+2*(this.isReversed?p:0)),e=g}else e=r;o=null===this.series[h][f]?e:e+this.series[h][f]/this.invertedYRatio-2*(this.isReversed?this.series[h][f]/this.invertedYRatio:0),this.xArrj.push(o),this.xArrjF.push(Math.abs(e-o)),this.xArrjVal.push(this.series[h][f]);var v=this.barHelpers.getBarpaths({barYPosition:d,barHeight:n,x1:e,x2:o,strokeWidth:a,series:this.series,realIndex:i.realIndex,i:h,j:f,w:u});return this.barHelpers.barBackground({j:f,i:h,y1:d,y2:n,elSeries:c}),s+=l,{pathTo:v.pathTo,pathFrom:v.pathFrom,x:o,y:s}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,n=t.y,a=t.xDivision,r=t.barWidth,o=t.zeroH,s=(t.strokeWidth,t.elSeries),l=this.w,c=e.i,u=e.j,d=e.bc;if(l.globals.isXNumeric){var h=l.globals.seriesX[c][u];h||(h=0),i=(h-l.globals.minX)/this.xRatio-r/2}for(var f,p=i,m=0,g=0;g<this.prevYF.length;g++)m+=isNaN(this.prevYF[g][u])?0:this.prevYF[g][u];if(c>0&&!l.globals.isXNumeric||c>0&&l.globals.isXNumeric&&l.globals.seriesX[c-1][u]===l.globals.seriesX[c][u]){var v,y,b=Math.min(this.yRatio.length+1,c+1);if(void 0!==this.prevY[c-1])for(var _=1;_<b;_++)if(!isNaN(this.prevY[c-_][u])){y=this.prevY[c-_][u];break}for(var x=1;x<b;x++){if(this.prevYVal[c-x][u]<0){v=this.series[c][u]>=0?y-m+2*(this.isReversed?m:0):y;break}if(this.prevYVal[c-x][u]>=0){v=this.series[c][u]>=0?y:y+m-2*(this.isReversed?m:0);break}}void 0===v&&(v=l.globals.gridHeight),f=this.prevYF[0].every((function(t){return 0===t}))&&this.prevYF.slice(1,c).every((function(t){return t.every((function(t){return isNaN(t)}))}))?l.globals.gridHeight-o:v}else f=l.globals.gridHeight-o;n=f-this.series[c][u]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[c][u]/this.yRatio[this.yaxisIndex]:0),this.yArrj.push(n),this.yArrjF.push(Math.abs(f-n)),this.yArrjVal.push(this.series[c][u]);var w=this.barHelpers.getColumnPaths({barXPosition:p,barWidth:r,y1:f,y2:n,yRatio:this.yRatio[this.yaxisIndex],strokeWidth:this.strokeWidth,series:this.series,realIndex:e.realIndex,i:c,j:u,w:l});return this.barHelpers.barBackground({bc:d,j:u,i:c,x1:p,x2:r,elSeries:s}),i+=a,{pathTo:w.pathTo,pathFrom:w.pathFrom,x:l.globals.isXNumeric?i-a:i,y:n}}}]),a}(P),bt=function(t){s(a,t);var i=d(a);function a(){return e(this,a),i.apply(this,arguments)}return n(a,[{key:"draw",value:function(t,e){var i=this.w,n=new v(this.ctx),a=new L(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick;var r=new _(this.ctx,i);t=r.getLogSeries(t),this.series=t,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var o=n.group({class:"apexcharts-candlestick-series apexcharts-plot-series"}),s=0;s<t.length;s++){var l,c,u,d,h=void 0,f=void 0,m=[],g=[],y=i.globals.comboCharts?e[s]:s,b=n.group({class:"apexcharts-series",seriesName:p.escapeString(i.globals.seriesNames[y]),rel:s+1,"data:realIndex":y});t[s].length>0&&(this.visibleI=this.visibleI+1),this.yRatio.length>1&&(this.yaxisIndex=y);var x=this.barHelpers.initialPositions();f=x.y,u=x.barHeight,h=x.x,d=x.barWidth,l=x.xDivision,c=x.zeroH,g.push(h+d/2);for(var w=n.group({class:"apexcharts-datalabels","data:realIndex":y}),k=0;k<i.globals.dataPoints;k++){var S,M=this.barHelpers.getStrokeWidth(s,k,y),T=this.drawCandleStickPaths({indexes:{i:s,j:k,realIndex:y},x:h,y:f,xDivision:l,barWidth:d,zeroH:c,strokeWidth:M,elSeries:b});f=T.y,h=T.x,S=T.color,k>0&&g.push(h+d/2),m.push(f);var C=a.fillPath({seriesNumber:y,dataPointIndex:k,color:S,value:t[s][k]}),A=this.candlestickOptions.wick.useFillColor?S:void 0;this.renderSeries({realIndex:y,pathFill:C,lineFill:A,j:k,i:s,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:M,elSeries:b,x:h,y:f,series:t,barHeight:u,barWidth:d,elDataLabelsWrap:w,visibleSeries:this.visibleI,type:"candlestick"})}i.globals.seriesXvalues[y]=g,i.globals.seriesYvalues[y]=m,o.add(b)}return o}},{key:"drawCandleStickPaths",value:function(t){var e=t.indexes,i=t.x,n=(t.y,t.xDivision),a=t.barWidth,r=t.zeroH,o=t.strokeWidth,s=this.w,l=new v(this.ctx),c=e.i,u=e.j,d=!0,h=s.config.plotOptions.candlestick.colors.upward,f=s.config.plotOptions.candlestick.colors.downward,p=this.yRatio[this.yaxisIndex],m=e.realIndex,g=this.getOHLCValue(m,u),y=r,b=r;g.o>g.c&&(d=!1);var _=Math.min(g.o,g.c),x=Math.max(g.o,g.c);s.globals.isXNumeric&&(i=(s.globals.seriesX[m][u]-s.globals.minX)/this.xRatio-a/2);var w=i+a*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?_=r:(_=r-_/p,x=r-x/p,y=r-g.h/p,b=r-g.l/p);var k=l.move(w,r),S=l.move(w,_);return s.globals.previousPaths.length>0&&(S=this.getPreviousPath(m,u,!0)),k=l.move(w,x)+l.line(w+a/2,x)+l.line(w+a/2,y)+l.line(w+a/2,x)+l.line(w+a,x)+l.line(w+a,_)+l.line(w+a/2,_)+l.line(w+a/2,b)+l.line(w+a/2,_)+l.line(w,_)+l.line(w,x-o/2),S+=l.move(w,_),s.globals.isXNumeric||(i+=n),{pathTo:k,pathFrom:S,x:i,y:x,barXPosition:w,color:d?h:f}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:i.globals.seriesCandleO[t][e],h:i.globals.seriesCandleH[t][e],l:i.globals.seriesCandleL[t][e],c:i.globals.seriesCandleC[t][e]}}}]),a}(P),_t=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,n){var a=this.w,r=1,o=a.config.plotOptions[t].shadeIntensity,s=this.determineColor(t,e,i);a.globals.hasNegs||n?r=a.config.plotOptions[t].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(r=1-s.percent/100,"treemap"===t&&(r=(1-s.percent/100)*(1.25*o)));var l=s.color,c=new p;return a.config.plotOptions[t].enableShades&&(r<0&&(r=0),l="dark"===this.w.config.theme.mode?p.hexToRgba(c.shadeColor(-1*r,s.color),a.config.fill.opacity):p.hexToRgba(c.shadeColor(r,s.color),a.config.fill.opacity)),{color:l,colorProps:s}}},{key:"determineColor",value:function(t,e,i){var n=this.w,a=n.globals.series[e][i],r=n.config.plotOptions[t],o=r.colorScale.inverse?i:e;n.config.plotOptions[t].distributed&&(o=i);var s=n.globals.colors[o],l=null,c=Math.min.apply(Math,h(n.globals.series[e])),u=Math.max.apply(Math,h(n.globals.series[e]));r.distributed||"heatmap"!==t||(c=n.globals.minY,u=n.globals.maxY),void 0!==r.colorScale.min&&(c=r.colorScale.min<n.globals.minY?r.colorScale.min:n.globals.minY,u=r.colorScale.max>n.globals.maxY?r.colorScale.max:n.globals.maxY);var d=Math.abs(u)+Math.abs(c),f=100*a/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(t,e){if(a>=t.from&&a<=t.to){s=t.color,l=t.foreColor?t.foreColor:null,c=t.from,u=t.to;var i=Math.abs(u)+Math.abs(c);f=100*a/(0===i?i-1e-6:i)}})),{color:s,foreColor:l,percent:f}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,n=t.y,a=t.i,r=t.j,o=t.colorProps,s=t.fontSize,l=this.w.config.dataLabels,c=new v(this.ctx),u=new A(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=i+h,m=n+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:m,text:e,i:a,j:r,color:o.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new v(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),xt=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new _t(i),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return n(t,[{key:"draw",value:function(t){var e=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var a=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,o=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c<l.length:c>=0;s?c++:c--){var u=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:p.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new m(this.ctx).dropShadow(u,d,c)}for(var h=0,f=e.config.plotOptions.heatmap.shadeIntensity,g=0;g<l[c].length;g++){var y=this.helpers.getShadeColor(e.config.chart.type,c,g,this.negRange),b=y.color,_=y.colorProps;"image"===e.config.fill.type&&(b=new L(this.ctx).fillPath({seriesNumber:c,dataPointIndex:g,opacity:e.globals.hasNegs?_.percent<0?1-(1+_.percent/100):f+_.percent/100:_.percent/100,patternID:p.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:a,height:e.config.fill.image.height?e.config.fill.image.height:r}));var x=this.rectRadius,w=i.drawRect(h,o,a,r,x);if(w.attr({cx:h,cy:o}),w.node.classList.add("apexcharts-heatmap-rect"),u.add(w),w.attr({fill:b,i:c,index:c,j:g,val:l[c][g],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?b:e.globals.stroke.colors[0],color:b}),this.helpers.addListeners(w),e.config.chart.animations.enabled&&!e.globals.dataChanged){var k=1;e.globals.resized||(k=e.config.chart.animations.speed),this.animateHeatMap(w,h,o,a,r,k)}if(e.globals.dataChanged){var S=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){S=this.dynamicAnim.speed;var M=e.globals.previousPaths[c]&&e.globals.previousPaths[c][g]&&e.globals.previousPaths[c][g].color;M||(M="rgba(255, 255, 255, 0)"),this.animateHeatColor(w,p.isColorHex(M)?M:p.rgb2hex(M),p.isColorHex(b)?b:p.rgb2hex(b),S)}}var T=(0,e.config.dataLabels.formatter)(e.globals.series[c][g],{value:e.globals.series[c][g],seriesIndex:c,dataPointIndex:g,w:e}),C=this.helpers.calculateDataLabels({text:T,x:h+a/2,y:o+r/2,i:c,j:g,colorProps:_,series:l});null!==C&&u.add(C),h+=a}o+=r,n.add(u)}var A=e.globals.yAxisScale[0].result.slice();e.config.yaxis[0].reversed?A.unshift(""):A.push(""),e.globals.yAxisScale[0].result=A;var D=e.globals.gridHeight/e.globals.series.length;return e.config.yaxis[0].labels.offsetY=-D/2,n}},{key:"animateHeatMap",value:function(t,e,i,n,a,r){var o=new g(this.ctx);o.animateRect(t,{x:e+n/2,y:i+a/2,width:0,height:0},{x:e,y:i,width:n,height:a},r,(function(){o.animationCompleted(t)}))}},{key:"animateHeatColor",value:function(t,e,i,n){t.attr({fill:e}).animate(n).attr({fill:i})}}]),t}(),wt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"drawYAxisTexts",value:function(t,e,i,n){var a=this.w,r=a.config.yaxis[0],o=a.globals.yLabelFormatters[0];return new v(this.ctx).drawText({x:t+r.labels.offsetX,y:e+r.labels.offsetY,text:o(n,i),textAnchor:"middle",fontSize:r.labels.style.fontSize,fontFamily:r.labels.style.fontFamily,foreColor:Array.isArray(r.labels.style.colors)?r.labels.style.colors[i]:r.labels.style.colors})}}]),t}(),kt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var n=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return n(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new v(this.ctx);if(this.ret=n.group({class:"apexcharts-pie"}),i.globals.noData)return this.ret;for(var a=0,r=0;r<t.length;r++)a+=p.negToZero(t[r]);var o=[],s=n.group();0===a&&(a=1e-5),t.forEach((function(t){e.maxY=Math.max(e.maxY,t)})),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"polarArea"===this.chartType&&this.drawPolarElements();for(var l=0;l<t.length;l++){var c=this.fullAngle*p.negToZero(t[l])/a;o.push(c),"polarArea"===this.chartType?(o[l]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[l]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var u,d=0,h=0;h<i.globals.previousPaths.length;h++)d+=p.negToZero(i.globals.previousPaths[h]);for(var f=0;f<i.globals.previousPaths.length;f++)u=this.fullAngle*p.negToZero(i.globals.previousPaths[f])/d,this.prevSectorAngleArr.push(u)}this.donutSize<0&&(this.donutSize=0);var m=i.config.plotOptions.pie.customScale,g=i.globals.gridWidth/2,y=i.globals.gridHeight/2,b=g-i.globals.gridWidth/2*m,_=y-i.globals.gridHeight/2*m;if("donut"===this.chartType){var x=n.drawCircle(this.donutSize);x.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),s.add(x)}var w=this.drawArcs(o,t);if(this.sliceLabels.forEach((function(t){w.add(t)})),s.attr({transform:"translate(".concat(b,", ").concat(_,") scale(").concat(m,")")}),s.add(w),this.ret.add(s),this.donutDataLabels.show){var k=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:b,translateY:_});this.ret.add(k)}return this.ret}},{key:"drawArcs",value:function(t,e){var i=this.w,n=new m(this.ctx),a=new v(this.ctx),r=new L(this.ctx),o=a.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var h=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:p.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});o.add(h),l=u,c=(s=c)+t[d],u=l+this.prevSectorAngleArr[d];var f=c<s?this.fullAngle+c-s:c-s,g=r.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),y=this.getChangedPath(l,u),b=a.drawPath({d:y,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:g,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(b.attr({index:0,j:d}),n.setSelectionFilter(b,0,d),i.config.chart.dropShadow.enabled){var _=i.config.chart.dropShadow;n.dropShadow(b,_,d)}this.addListeners(b,this.donutDataLabels),v.setAttrs(b.node,{"data:angle":f,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var x={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?x=p.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle):"donut"===this.chartType&&(x=p.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle)),h.add(b);var w=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(w=f/this.fullAngle*i.config.chart.animations.speed)&&(w=1),this.animDur=w+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(b,{size:this.sliceSizes[d],endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(b,{size:this.sliceSizes[d],endAngle:c,startAngle:s,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:w}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&b.click(this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var k=x.x,S=x.y,M=100*f/this.fullAngle+"%";if(0!==f&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var T=i.config.dataLabels.formatter;void 0!==T&&(M=T(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var C=i.globals.dataLabels.style.colors[d],A=a.group({class:"apexcharts-datalabels"}),D=a.drawText({x:k,y:S,text:M,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:C});if(A.add(D),i.config.dataLabels.dropShadow.enabled){var E=i.config.dataLabels.dropShadow;n.dropShadow(D,E)}D.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(D.node.classList.add("apexcharts-pie-label-delay"),D.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(A)}}}return o}},{key:"addListeners",value:function(t,e){var i=new v(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,n=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,a=n,r=e.startAngle,o=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(r=e.prevEndAngle,a=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(n+o>this.fullAngle?e.endAngle=e.endAngle-(n+o):n+o<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(n+o)))),n===this.fullAngle&&(n=this.fullAngle-.01),this.animateArc(t,r,o,n,a,e)}},{key:"animateArc",value:function(t,e,i,n,a,r){var o,s=this,l=this.w,c=new g(this.ctx),u=r.size;(isNaN(e)||isNaN(a))&&(e=i,a=n,r.dur=0);var d=n,h=i,f=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&r.shouldSetPrevPaths&&r.prevEndAngle&&(o=s.getPiePath({me:s,startAngle:r.prevStartAngle,angle:r.prevEndAngle<r.prevStartAngle?this.fullAngle+r.prevEndAngle-r.prevStartAngle:r.prevEndAngle-r.prevStartAngle,size:u}),t.attr({d:o})),0!==r.dur?t.animate(r.dur,l.globals.easing,r.animBeginArr[r.i]).afterAll((function(){"pie"!==s.chartType&&"donut"!==s.chartType&&"polarArea"!==s.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":s.strokeWidth}),r.i===l.config.series.length-1&&c.animationCompleted(t)})).during((function(l){d=f+(n-f)*l,r.animateStartingPos&&(d=a+(n-a)*l,h=e-a+(i-(e-a))*l),o=s.getPiePath({me:s,startAngle:h,angle:d,size:u}),t.node.setAttribute("data:pathOrig",o),t.attr({d:o})})):(o=s.getPiePath({me:s,startAngle:h,angle:n,size:u}),r.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",o),t.attr({d:o,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,n=this,a=n.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),r=i.globals.dom.Paper.select(".apexcharts-".concat(n.chartType.toLowerCase(),"-slice-").concat(t)).members[0];if("true"!==r.attr("data:pieClicked")){var o=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(o,(function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");t.setAttribute("d",e)})),r.attr("data:pieClicked","true");var s=parseInt(r.attr("data:startAngle"),10),l=parseInt(r.attr("data:angle"),10);e=n.getPiePath({me:n,startAngle:s,angle:l,size:a}),360!==l&&r.plot(e)}else{r.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(r.node,this.donutDataLabels);var c=r.attr("data:pathOrig");r.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e=t.me,i=t.startAngle,n=t.angle,a=t.size,r=i,o=Math.PI*(r-90)/180,s=n+i;Math.ceil(s)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(s=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(s)>this.fullAngle&&(s-=this.fullAngle);var l=Math.PI*(s-90)/180,c=e.centerX+a*Math.cos(o),u=e.centerY+a*Math.sin(o),d=e.centerX+a*Math.cos(l),h=e.centerY+a*Math.sin(l),f=p.polarToCartesian(e.centerX,e.centerY,e.donutSize,s),m=p.polarToCartesian(e.centerX,e.centerY,e.donutSize,r),g=n>180?1:0,v=["M",c,u,"A",a,a,0,g,1,d,h];return"donut"===e.chartType?[].concat(v,["L",f.x,f.y,"A",e.donutSize,e.donutSize,0,g,0,m.x,m.y,"L",c,u,"z"]).join(" "):"pie"===e.chartType||"polarArea"===e.chartType?[].concat(v,["L",e.centerX,e.centerY,"L",c,u]).join(" "):[].concat(v).join(" ")}},{key:"drawPolarElements",value:function(){var t=this.w,e=new q(this.ctx),i=new v(this.ctx),n=new wt(this.ctx),a=i.group(),r=i.group(),o=e.niceScale(0,Math.ceil(this.maxY),t.config.yaxis[0].tickAmount,0,!0),s=o.result.reverse(),l=o.result.length;this.maxY=o.niceMax;for(var c=t.globals.radialSize,u=c/(l-1),d=0;d<l-1;d++){var h=i.drawCircle(c);if(h.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var f=n.drawYAxisTexts(this.centerX,this.centerY-c+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,d,s[d]);r.add(f)}a.add(h),c-=u}this.ret.add(a),this.ret.add(r)}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,n=new v(this.ctx),a=n.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),r=t.total.show;a.node.style.opacity=e.opacity;var o,s,l=e.centerX,c=e.centerY;o=void 0===t.name.color?i.globals.colors[0]:t.name.color;var u=t.name.fontSize,d=t.name.fontFamily,h=t.value.fontWeight;s=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var f=t.value.formatter,p="",m="";if(r?(o=t.total.color,u=t.total.fontSize,d=t.total.fontFamily,h=t.total.fontWeight,m=t.total.label,p=t.total.formatter(i)):1===i.globals.series.length&&(p=f(i.globals.series[0],i),m=i.globals.seriesNames[0]),m&&(m=t.name.formatter(m,t.total.show,i)),t.name.show){var g=n.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:m,textAnchor:"middle",foreColor:o,fontSize:u,fontWeight:h,fontFamily:d});g.node.classList.add("apexcharts-datalabel-label"),a.add(g)}if(t.value.show){var y=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=n.drawText({x:l,y:c+y,text:p,textAnchor:"middle",foreColor:s,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),a.add(b)}return a}},{key:"printInnerLabels",value:function(t,e,i,n){var a,r=this.w;n?a=void 0===t.name.color?r.globals.colors[parseInt(n.parentNode.getAttribute("rel"),10)-1]:t.name.color:r.globals.series.length>1&&t.total.show&&(a=t.total.color);var o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),n||"function"!=typeof t.total.formatter||(i=t.total.formatter(r));var l=e===t.total.label;e=t.name.formatter(e,l,r),null!==o&&(o.textContent=e),null!==s&&(s.textContent=i),null!==o&&(o.style.fill=a)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,n=t.getAttribute("data:value"),a=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,a,n,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"revertDataLabelsInner",value:function(t,e,i){var n=this,a=this.w,r=a.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),o=!1,s=a.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),l=function(t){var i=t.makeSliceOut,a=t.printLabel;Array.prototype.forEach.call(s,(function(t){"true"===t.getAttribute("data:pieClicked")&&(i&&(o=!0),a&&n.printDataLabelsInner(t,e))}))};if(l({makeSliceOut:!0,printLabel:!1}),e.total.show&&a.globals.series.length>1)o&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(a));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(a.globals.selectedDataPoints.length&&a.globals.series.length>1)if(a.globals.selectedDataPoints[0].length>0){var c=a.globals.selectedDataPoints[0],u=a.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(c));this.printDataLabelsInner(u,e)}else r&&a.globals.selectedDataPoints.length&&0===a.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&a.globals.series.length>1&&(r.style.opacity=0)}}]),t}(),St=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new v(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.gridHeight+1.5*n.globals.goldenPadding:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.coreUtils=new _(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/1.75),void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return n(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new L(this.ctx),a=[],r=new A(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var s=i.globals.gridWidth/2,l=i.globals.gridHeight/2,c=s+i.config.plotOptions.radar.offsetX,u=l+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(c||0,", ").concat(u||0,")")}),h=[],f=null,g=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach((function(t,s){var l=t.length===i.globals.dataPoints,c=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":l,seriesName:p.escapeString(i.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});e.dataRadiusOfPercent[s]=[],e.dataRadius[s]=[],e.angleArr[s]=[],t.forEach((function(t,i){var n=Math.abs(e.maxValue-e.minValue);t+=Math.abs(e.minValue),e.isLog&&(t=e.coreUtils.getLogVal(t,0)),e.dataRadiusOfPercent[s][i]=t/n,e.dataRadius[s][i]=e.dataRadiusOfPercent[s][i]*e.size,e.angleArr[s][i]=i*e.disAngle})),h=e.getDataPointsPos(e.dataRadius[s],e.angleArr[s]);var u=e.createPaths(h,{x:0,y:0});f=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),g=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":s}),i.globals.delayedElements.push({el:f.node,index:s});var d={i:s,realIndex:s,animationDelay:s,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[s],strokeLineCap:i.config.stroke.lineCap},v=null;i.globals.previousPaths.length>0&&(v=e.getPreviousPath(s));for(var y=0;y<u.linePathsTo.length;y++){var b=e.graphics.renderPaths(o(o({},d),{},{pathFrom:null===v?u.linePathsFrom[y]:v,pathTo:u.linePathsTo[y],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[s]:e.strokeWidth,fill:"none",drawShadow:!1}));c.add(b);var _=n.fillPath({seriesNumber:s}),x=e.graphics.renderPaths(o(o({},d),{},{pathFrom:null===v?u.areaPathsFrom[y]:v,pathTo:u.areaPathsTo[y],strokeWidth:0,fill:_,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var w=new m(e.ctx),k=i.config.chart.dropShadow;w.dropShadow(x,Object.assign({},k,{noUserSpaceOnUse:!0}),s)}c.add(x)}t.forEach((function(t,n){var a=new T(e.ctx).getMarkerConfig("apexcharts-marker",s,n),l=e.graphics.drawMarker(h[n].x,h[n].y,a);l.attr("rel",n),l.attr("j",n),l.attr("index",s),l.node.setAttribute("default-marker-size",a.pSize);var u=e.graphics.group({class:"apexcharts-series-markers"});u&&u.add(l),f.add(u),c.add(f);var d=i.config.dataLabels;if(d.enabled){var p=d.formatter(i.globals.series[s][n],{seriesIndex:s,dataPointIndex:n,w:i});r.plotDataLabelsText({x:h[n].x,y:h[n].y,text:p,textAnchor:"middle",i:s,j:s,parent:g,offsetCorrection:!1,dataLabelsConfig:o({},d)})}c.add(g)})),a.push(c)})),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var v=this.drawXAxisTexts();d.add(v)}return d.add(this.yaxisLabels),a.forEach((function(t){d.add(t)})),d}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,n=t.parent,a=new wt(this.ctx),r=i.globals.yAxisScale[0].result.reverse(),o=r.length,s=[],l=this.size/(o-1),c=0;c<o;c++)s[c]=l*c;s.reverse();var u=[],d=[];s.forEach((function(t,i){var n=e.getPolygonPos(t),a="";n.forEach((function(t,n){if(0===i){var r=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[n]:e.polygons.connectorColors);d.push(r)}0===n&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),a+=t.x+","+t.y+" "})),u.push(a)})),u.forEach((function(t,a){var r=e.polygons.strokeColors,o=e.polygons.strokeWidth,s=e.graphics.drawPolygon(t,Array.isArray(r)?r[a]:r,Array.isArray(o)?o[a]:o,i.globals.radarPolygons.fill.colors[a]);n.add(s)})),d.forEach((function(t){n.add(t)})),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(t,i){var n=a.drawYAxisTexts(t.x,t.y,i,r[i]);e.yaxisLabels.add(n)}))}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,n=this.graphics.group({class:"apexcharts-xaxis"}),a=this.getPolygonPos(this.size);return e.globals.labels.forEach((function(r,s){var l=e.config.xaxis.labels.formatter,c=new A(t.ctx);if(a[s]){var u=t.getTextPos(a[s],t.size),d=l(r,{seriesIndex:-1,dataPointIndex:s,w:e});c.plotDataLabelsText({x:u.newX,y:u.newY,text:d,textAnchor:u.textAnchor,i:s,j:s,parent:n,color:Array.isArray(i.style.colors)&&i.style.colors[s]?i.style.colors[s]:"#a8a8a8",dataLabelsConfig:o({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1})}})),n}},{key:"createPaths",value:function(t,e){var i=this,n=[],a=[],r=[],o=[];if(t.length){a=[this.graphics.move(e.x,e.y)],o=[this.graphics.move(e.x,e.y)];var s=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach((function(e,n){s+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),n===t.length-1&&(s+="Z",l+="Z")})),n.push(s),r.push(l)}return{linePathsFrom:a,linePathsTo:n,areaPathsFrom:o,areaPathsTo:r}}},{key:"getTextPos",value:function(t,e){var i="middle",n=t.x,a=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",n+=10):t.x<0&&(i="end",n-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?a-=10:t.y>0&&(a+=10)),{textAnchor:i,newX:n,newY:a}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,n=0;n<e.globals.previousPaths.length;n++){var a=e.globals.previousPaths[n];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[n].paths[0]&&(i=e.globals.previousPaths[n].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var n=[],a=0;a<i;a++){var r={};r.x=t[a]*Math.sin(e[a]),r.y=-t[a]*Math.cos(e[a]),n.push(r)}return n}},{key:"getPolygonPos",value:function(t){for(var e=[],i=2*Math.PI/this.dataPointsLen,n=0;n<this.dataPointsLen;n++){var a={};a.x=t*Math.sin(n*i),a.y=-t*Math.cos(n*i),e.push(a)}return e}}]),t}(),Mt=function(t){s(a,t);var i=d(a);function a(t){var n;e(this,a),(n=i.call(this,t)).ctx=t,n.w=t.w,n.animBeginArr=[0],n.animDur=0;var r=n.w;return n.startAngle=r.config.plotOptions.radialBar.startAngle,n.endAngle=r.config.plotOptions.radialBar.endAngle,n.totalAngle=Math.abs(r.config.plotOptions.radialBar.endAngle-r.config.plotOptions.radialBar.startAngle),n.trackStartAngle=r.config.plotOptions.radialBar.track.startAngle,n.trackEndAngle=r.config.plotOptions.radialBar.track.endAngle,n.radialDataLabels=r.config.plotOptions.radialBar.dataLabels,n.trackStartAngle||(n.trackStartAngle=n.startAngle),n.trackEndAngle||(n.trackEndAngle=n.endAngle),360===n.endAngle&&(n.endAngle=359.99),n.margin=parseInt(r.config.plotOptions.radialBar.track.margin,10),n}return n(a,[{key:"draw",value:function(t){var e=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return n;var a=i.group(),r=this.defaultSize/2,o=e.globals.gridWidth/2,s=this.defaultSize/2.05;e.config.chart.sparkline.enabled||(s=s-e.config.stroke.width-e.config.chart.dropShadow.blur);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:s,centerX:o,centerY:r,colorArr:l,series:t});a.add(c)}var u=this.drawArcs({size:s,centerX:o,centerY:r,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(e.globals.radialSize=s-s*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=f*h}return a.add(u.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),n.add(a),n}},{key:"drawTracks",value:function(t){var e=this.w,i=new v(this.ctx),n=i.group({class:"apexcharts-tracks"}),a=new m(this.ctx),r=new L(this.ctx),o=this.getStrokeWidth(t);t.size=t.size-o/2;for(var s=0;s<t.series.length;s++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(l),l.attr({rel:s+1}),t.size=t.size-o-this.margin;var c=e.config.plotOptions.radialBar.track,u=r.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=i.drawPath({d:"",stroke:u,strokeWidth:o*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;a.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:t.centerX,centerY:t.centerY,endAngle:h,startAngle:d,size:t.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return n}},{key:"drawArcs",value:function(t){var e=this.w,i=new v(this.ctx),n=new L(this.ctx),a=new m(this.ctx),r=i.group(),o=this.getStrokeWidth(t);t.size=t.size-o/2;var s=e.config.plotOptions.radialBar.hollow.background,l=t.size-o*t.series.length-this.margin*t.series.length-o*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(t,r,l,s));var u=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:s||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;a.dropShadow(u,d)}var h=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(h=0);var f=null;this.radialDataLabels.show&&(f=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:h})),"back"===e.config.plotOptions.radialBar.hollow.position&&(r.add(u),f&&r.add(f));var g=!1;e.config.plotOptions.radialBar.inverseOrder&&(g=!0);for(var y=g?t.series.length-1:0;g?y>=0:y<t.series.length;g?y--:y++){var b=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:p.escapeString(e.globals.seriesNames[y])});r.add(b),b.attr({rel:y+1,"data:realIndex":y}),this.ctx.series.addCollapsedClassToSeries(b,y),t.size=t.size-o-this.margin;var _=n.fillPath({seriesNumber:y,size:t.size,value:t.series[y]}),x=this.startAngle,w=void 0,k=p.negToZero(t.series[y]>100?100:t.series[y])/100,S=Math.round(this.totalAngle*k)+this.startAngle,M=void 0;e.globals.dataChanged&&(w=this.startAngle,M=Math.round(this.totalAngle*p.negToZero(e.globals.previousPaths[y])/100)+w),Math.abs(S)+Math.abs(x)>=360&&(S-=.01),Math.abs(M)+Math.abs(w)>=360&&(M-=.01);var T=S-x,C=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[y]:e.config.stroke.dashArray,A=i.drawPath({d:"",stroke:_,strokeWidth:o,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+y,strokeDashArray:C});if(v.setAttrs(A.node,{"data:angle":T,"data:value":t.series[y]}),e.config.chart.dropShadow.enabled){var D=e.config.chart.dropShadow;a.dropShadow(A,D,y)}a.setSelectionFilter(A,0,y),this.addListeners(A,this.radialDataLabels),b.add(A),A.attr({index:0,j:y});var E=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(E=(S-x)/360*e.config.chart.animations.speed,this.animDur=E/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(E=(S-x)/360*e.config.chart.animations.dynamicAnimation.speed,this.animDur=E/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(A,{centerX:t.centerX,centerY:t.centerY,endAngle:S,startAngle:x,prevEndAngle:M,prevStartAngle:w,size:t.size,i:y,totalItems:2,animBeginArr:this.animBeginArr,dur:E,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:r,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(t){var e=new v(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,n){var a=this.w,r=new L(this.ctx),o=p.randomId(),s=a.config.plotOptions.radialBar.hollow.image;if(a.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:s,patternID:"pattern".concat(a.globals.cuid).concat(o)}),n="url(#pattern".concat(a.globals.cuid).concat(o,")");else{var l=a.config.plotOptions.radialBar.hollow.imageWidth,c=a.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=a.globals.dom.Paper.image(s).loaded((function(e){this.move(t.centerX-e.width/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+a.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(u)}else{var d=a.globals.dom.Paper.image(s).loaded((function(e){this.move(t.centerX-l/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+a.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));e.add(d)}}return n}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}}]),a}(kt),Lt=function(){function t(i){e(this,t),this.w=i.w,this.lineCtx=i}return n(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if("line"===i.config.chart.type&&("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new _(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var n=e[t].slice();n[n.length-1]=n[n.length-1]+1e-6,e[t]=n}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,n=t.x,a=t.y,r=t.i,o=t.j,s=t.prevY,l=this.w,c=[],u=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),u.push(p.isNumber(e[r][0])?s+l.config.markers.offsetY:null),c.push(n+l.config.markers.offsetX),u.push(p.isNumber(e[r][o+1])?a+l.config.markers.offsetY:null)}else c.push(n+l.config.markers.offsetX),u.push(p.isNumber(e[r][o+1])?a+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,n=t.realIndex,a=this.w,r=0;r<a.globals.previousPaths.length;r++){var o=a.globals.previousPaths[r];("line"===o.type||"area"===o.type)&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(n,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,e=a.globals.previousPaths[r].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,i=a.globals.previousPaths[r].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[r].paths[1]&&(e=a.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.series,n=t.prevY,a=t.lineYPosition,r=this.w;if(void 0!==i[e][0])n=(a=r.config.chart.stacked&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]+2*(this.lineCtx.isReversed?i[e][0]/this.lineCtx.yRatio[this.lineCtx.yaxisIndex]:0);else if(r.config.chart.stacked&&e>0&&void 0===i[e][0])for(var o=e-1;o>=0;o--)if(null!==i[o][0]&&void 0!==i[o][0]){n=a=this.lineCtx.prevSeriesY[o][0];break}return{prevY:n,lineYPosition:a}}}]),t}(),Tt=function(){function t(i,n,a){e(this,t),this.ctx=i,this.w=i.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new C(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Lt(this),this.markers=new T(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return n(t,[{key:"draw",value:function(t,e,i){var n=this.w,a=new v(this.ctx),r=n.globals.comboCharts?e:n.config.chart.type,o=a.group({class:"apexcharts-".concat(r,"-series apexcharts-plot-series")}),s=new _(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=s.getLogSeries(t),this.yRatio=s.getLogYRatios(this.yRatio);for(var l=[],c=0;c<t.length;c++){t=this.lineHelpers.sameValueSeriesFix(c,t);var u=n.globals.comboCharts?i[c]:c;this._initSerieVariables(t,c,u);var d=[],h=[],f=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,u),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(f=(n.globals.seriesX[u][0]-n.globals.minX)/this.xRatio),h.push(f);var p,m=f,g=m,y=this.zeroY;y=this.lineHelpers.determineFirstPrevY({i:c,series:t,prevY:y,lineYPosition:0}).prevY,d.push(y),p=y;var b=this._calculatePathsFrom({series:t,i:c,realIndex:u,prevX:g,prevY:y}),x=this._iterateOverDataPoints({series:t,realIndex:u,i:c,x:f,y:1,pX:m,pY:p,pathsFrom:b,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:h,yArrj:d});this._handlePaths({type:r,realIndex:u,i:c,paths:x}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),l.push(this.elSeries)}if(n.config.chart.stacked)for(var w=l.length;w>0;w--)o.add(l[w-1]);else for(var k=0;k<l.length;k++)o.add(l[k]);return o}},{key:"_initSerieVariables",value:function(t,e,i){var n=this.w,a=new v(this.ctx);this.xDivision=n.globals.gridWidth/(n.globals.dataPoints-("on"===n.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(n.config.stroke.width)?n.config.stroke.width[i]:n.config.stroke.width,this.yRatio.length>1&&(this.yaxisIndex=i),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||"end"===n.config.plotOptions.area.fillTo)&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=a.group({class:"apexcharts-series",seriesName:p.escapeString(n.globals.seriesNames[i])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=a.group({class:"apexcharts-datalabels","data:realIndex":i});var r=t[e].length===n.globals.dataPoints;this.elSeries.attr({"data:longestSeries":r,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,n,a,r=t.series,o=t.i,s=t.realIndex,l=t.prevX,c=t.prevY,u=this.w,d=new v(this.ctx);if(null===r[o][0]){for(var h=0;h<r[o].length;h++)if(null!==r[o][h]){l=this.xDivision*h,c=this.zeroY-r[o][h]/this.yRatio[this.yaxisIndex],e=d.move(l,c),i=d.move(l,this.areaBottomY);break}}else e=d.move(l,c),i=d.move(l,this.areaBottomY)+d.line(l,c);if(n=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),a=d.move(-1,this.zeroY)+d.line(-1,this.zeroY),u.globals.previousPaths.length>0){var f=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:a,realIndex:s});n=f.pathFromLine,a=f.pathFromArea}return{prevX:l,prevY:c,linePath:e,areaPath:i,pathFromLine:n,pathFromArea:a}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,n=t.i,a=t.paths,r=this.w,s=new v(this.ctx),l=new L(this.ctx);this.prevSeriesY.push(a.yArrj),r.globals.seriesXvalues[i]=a.xArrj,r.globals.seriesYvalues[i]=a.yArrj,this.pointsChart||r.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var c={i:n,realIndex:i,animationDelay:n,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var u=l.fillPath({seriesNumber:i}),d=0;d<a.areaPaths.length;d++){var h=s.renderPaths(o(o({},c),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[d],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:u}));this.elSeries.add(h)}if(r.config.stroke.show&&!this.pointsChart){var f;f="line"===e?l.fillPath({seriesNumber:i,i:n}):r.globals.stroke.colors[i];for(var p=0;p<a.linePaths.length;p++){var m=s.renderPaths(o(o({},c),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[p],stroke:f,strokeWidth:this.strokeWidth,strokeLineCap:r.config.stroke.lineCap,fill:"none"}));this.elSeries.add(m)}}}},{key:"_iterateOverDataPoints",value:function(t){for(var e=t.series,i=t.realIndex,n=t.i,a=t.x,r=t.y,o=t.pX,s=t.pY,l=t.pathsFrom,c=t.linePaths,u=t.areaPaths,d=t.seriesIndex,h=t.lineYPosition,f=t.xArrj,m=t.yArrj,g=this.w,y=new v(this.ctx),b=this.yRatio,_=l.prevY,x=l.linePath,w=l.areaPath,k=l.pathFromLine,S=l.pathFromArea,M=p.isNumber(g.globals.minYArr[i])?g.globals.minYArr[i]:g.globals.minY,L=g.globals.dataPoints>1?g.globals.dataPoints-1:g.globals.dataPoints,T=0;T<L;T++){var C=void 0===e[n][T+1]||null===e[n][T+1];if(g.globals.isXNumeric){var A=g.globals.seriesX[i][T+1];void 0===g.globals.seriesX[i][T+1]&&(A=g.globals.seriesX[i][L-1]),a=(A-g.globals.minX)/this.xRatio}else a+=this.xDivision;h=g.config.chart.stacked&&n>0&&g.globals.collapsedSeries.length<g.config.series.length-1?this.prevSeriesY[function(t){for(var e=t,i=0;i<g.globals.series.length;i++)if(g.globals.collapsedSeriesIndices.indexOf(t)>-1){e--;break}return e>=0?e:0}(n-1)][T+1]:this.zeroY,r=C?h-M/b[this.yaxisIndex]+2*(this.isReversed?M/b[this.yaxisIndex]:0):h-e[n][T+1]/b[this.yaxisIndex]+2*(this.isReversed?e[n][T+1]/b[this.yaxisIndex]:0),f.push(a),m.push(r);var D=this.lineHelpers.calculatePoints({series:e,x:a,y:r,realIndex:i,i:n,j:T,prevY:_}),E=this._createPaths({series:e,i:n,realIndex:i,j:T,x:a,y:r,pX:o,pY:s,linePath:x,areaPath:w,linePaths:c,areaPaths:u,seriesIndex:d});u=E.areaPaths,c=E.linePaths,o=E.pX,s=E.pY,w=E.areaPath,x=E.linePath,this.appendPathFrom&&(k+=y.line(a,this.zeroY),S+=y.line(a,this.zeroY)),this.handleNullDataPoints(e,D,n,T,i),this._handleMarkersAndLabels({pointsPos:D,series:e,x:a,y:r,prevY:_,i:n,j:T,realIndex:i})}return{yArrj:m,xArrj:f,pathFromArea:S,areaPaths:u,pathFromLine:k,linePaths:c}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.pointsPos,i=(t.series,t.x,t.y,t.prevY,t.i),n=t.j,a=t.realIndex,r=this.w,o=new A(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:a,pointsPos:e,zRatio:this.zRatio,elParent:this.elPointsMain});else{r.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var s=this.markers.plotChartMarkers(e,a,n+1);null!==s&&this.elPointsMain.add(s)}var l=o.drawDataLabel(e,a,n+1,null);null!==l&&this.elDataLabelsWrap.add(l)}},{key:"_createPaths",value:function(t){var e=t.series,i=t.i,n=t.realIndex,a=t.j,r=t.x,o=t.y,s=t.pX,l=t.pY,c=t.linePath,u=t.areaPath,d=t.linePaths,h=t.areaPaths,f=t.seriesIndex,p=this.w,m=new v(this.ctx),g=p.config.stroke.curve,y=this.areaBottomY;if(Array.isArray(p.config.stroke.curve)&&(g=Array.isArray(f)?p.config.stroke.curve[f[i]]:p.config.stroke.curve[i]),"smooth"===g){var b=.35*(r-s);p.globals.hasNullValues?(null!==e[i][a]&&(null!==e[i][a+1]?(c=m.move(s,l)+m.curve(s+b,l,r-b,o,r+1,o),u=m.move(s+1,l)+m.curve(s+b,l,r-b,o,r+1,o)+m.line(r,y)+m.line(s,y)+"z"):(c=m.move(s,l),u=m.move(s,l)+"z")),d.push(c),h.push(u)):(c+=m.curve(s+b,l,r-b,o,r,o),u+=m.curve(s+b,l,r-b,o,r,o)),s=r,l=o,a===e[i].length-2&&(u=u+m.curve(s,l,r,o,r,y)+m.move(r,o)+"z",p.globals.hasNullValues||(d.push(c),h.push(u)))}else{if(null===e[i][a+1]){c+=m.move(r,o);var _=p.globals.isXNumeric?(p.globals.seriesX[n][a]-p.globals.minX)/this.xRatio:r-this.xDivision;u=u+m.line(_,y)+m.move(r,o)+"z"}null===e[i][a]&&(c+=m.move(r,o),u+=m.move(r,y)),"stepline"===g?(c=c+m.line(r,null,"H")+m.line(null,o,"V"),u=u+m.line(r,null,"H")+m.line(null,o,"V")):"straight"===g&&(c+=m.line(r,o),u+=m.line(r,o)),a===e[i].length-2&&(u=u+m.line(r,y)+m.move(r,o)+"z",d.push(c),h.push(u))}return{linePaths:d,areaPaths:h,pX:s,pY:l,linePath:c,areaPath:u}}},{key:"handleNullDataPoints",value:function(t,e,i,n,a){var r=this.w;if(null===t[i][n]&&r.config.markers.showNullDataPoints||1===t[i].length){var o=this.markers.plotChartMarkers(e,a,n+1,this.strokeWidth-r.config.markers.strokeWidth/2,!0);null!==o&&this.elPointsMain.add(o)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,n,a){this.xoffset=e,this.yoffset=i,this.height=a,this.width=n,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],n=this.xoffset,a=this.yoffset,o=r(t)/this.height,s=r(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([n,a,n+o,a+t[e]/o]),a+=t[e]/o;else for(e=0;e<t.length;e++)i.push([n,a,n+t[e]/s,a+s]),n+=t[e]/s;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var n=e/this.height,a=this.width-n;i=new t(this.xoffset+n,this.yoffset,a,this.height)}else{var r=e/this.width,o=this.height-r;i=new t(this.xoffset,this.yoffset+r,this.width,o)}return i}}function e(e,n,a,o,s){return o=void 0===o?0:o,s=void 0===s?0:s,function(t){var e,i,n=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)n.push(t[e][i]);return n}(i(function(t,e){var i,n=[],a=e/r(t);for(i=0;i<t.length;i++)n[i]=t[i]*a;return n}(e,n*a),[],new t(o,s,n,a),[]))}function i(t,e,a,o){var s,l,c;if(0!==t.length)return s=a.shortestEdge(),function(t,e,i){var a;return 0===t.length||((a=t.slice()).push(e),n(t,i)>=n(a,i))}(e,l=t[0],s)?(e.push(l),i(t.slice(1),e,a,o)):(c=a.cutArea(r(e),o),o.push(a.getCoordinates(e)),i(t,[],c,o)),o;o.push(a.getCoordinates(e))}function n(t,e){var i=Math.min.apply(Math,t),n=Math.max.apply(Math,t),a=r(t);return Math.max(Math.pow(e,2)*n/Math.pow(a,2),Math.pow(a,2)/(Math.pow(e,2)*i))}function a(t){return t&&t.constructor===Array}function r(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function o(t){var e,i=0;if(a(t[0]))for(e=0;e<t.length;e++)i+=o(t[e]);else i=r(t);return i}return function t(i,n,r,s,l){s=void 0===s?0:s,l=void 0===l?0:l;var c,u,d=[],h=[];if(a(i[0])){for(u=0;u<i.length;u++)d[u]=o(i[u]);for(c=e(d,n,r,s,l),u=0;u<i.length;u++)h.push(t(i[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else h=e(i,n,r,s,l);return h}}();var Ct,At,Dt=function(){function t(i,n){e(this,t),this.ctx=i,this.w=i.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new _t(i),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return n(t,[{key:"draw",value:function(t){var e=this,i=this.w,n=new v(this.ctx),a=new L(this.ctx),r=n.group({class:"apexcharts-treemap"});if(i.globals.noData)return r;var o=[];return t.forEach((function(t){var e=t.map((function(t){return Math.abs(t)}));o.push(e)})),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach((function(t,i){t.data.forEach((function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)}))})),window.TreemapSquared.generate(o,i.globals.gridWidth,i.globals.gridHeight).forEach((function(o,s){var l=n.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:p.escapeString(i.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new m(e.ctx).dropShadow(r,c,s)}var u=n.group({class:"apexcharts-data-labels"});o.forEach((function(r,o){var c=r[0],u=r[1],d=r[2],h=r[3],f=n.drawRect(c,u,d-c,h-u,0,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?m:i.globals.stroke.colors[s]);f.attr({cx:c,cy:u,index:s,i:s,j:o,width:d-c,height:h-u});var p=e.helpers.getShadeColor(i.config.chart.type,s,o,e.negRange),m=p.color;void 0!==i.config.series[s].data[o]&&i.config.series[s].data[o].fillColor&&(m=i.config.series[s].data[o].fillColor);var g=a.fillPath({color:m,seriesNumber:s,dataPointIndex:o});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:g}),e.helpers.addListeners(f);var v={x:c+(d-c)/2,y:u+(h-u)/2,width:0,height:0},y={x:c,y:u,width:d-c,height:h-u};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var b=1;i.globals.resized||(b=i.config.chart.animations.speed),e.animateTreemap(f,v,y,b)}if(i.globals.dataChanged){var _=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(_=e.dynamicAnim.speed,i.globals.previousPaths[s][o]&&i.globals.previousPaths[s][o].rect&&(v=i.globals.previousPaths[s][o].rect),e.animateTreemap(f,v,y,_))}var x=e.getFontSize(r),w=i.config.dataLabels.formatter(e.labels[s][o],{value:i.globals.series[s][o],seriesIndex:s,dataPointIndex:o,w:i}),k=e.helpers.calculateDataLabels({text:w,x:(c+d)/2,y:(u+h)/2+e.strokeWidth/2+x/3,i:s,j:o,colorProps:p,fontSize:x,series:t});i.config.dataLabels.enabled&&k&&e.rotateToFitLabel(k,w,c,u,d,h),l.add(f),null!==k&&l.add(k)})),l.add(u),r.add(l)})),r}},{key:"getFontSize",value:function(t){var e,i,n=this.w,a=function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=e[i].length;return n}(this.labels)/function t(e){var i,n=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)n+=t(e[i]);else for(i=0;i<e.length;i++)n+=1;return n}(this.labels);return e=(t[2]-t[0])*(t[3]-t[1]),i=Math.pow(e,.5),Math.min(i/a,parseInt(n.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(t,e,i,n,a,r){var o=new v(this.ctx),s=o.getTextRects(e);if(s.width+5>a-i&&s.width<=r-n){var l=o.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(l.x," ").concat(l.y,")"))}}},{key:"animateTreemap",value:function(t,e,i,n){var a=new g(this.ctx);a.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},n,(function(){a.animationCompleted(t)}))}}]),t}(),Et=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return n(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timescaleLabels=[],[];var a=new Y(this.ctx),r=(e-t)/864e5;this.determineInterval(r),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,r<.005?n.globals.disableZoomIn=!0:r>5e4&&(n.globals.disableZoomOut=!0);var s=a.getTimeUnitsfromTimestamp(t,e,this.utc),l=n.globals.gridWidth/r,c=l/24,u=c/60,d=u/60,h=Math.floor(24*r),f=Math.floor(24*r*60),p=Math.floor(24*r*60*60),m=Math.floor(r),g=Math.floor(r/30),v=Math.floor(r/365),y={minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},b={firstVal:y,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:c,minutesWidthOnXAxis:u,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:f,numberOfHours:h,numberOfDays:m,numberOfMonths:g,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes":this.generateMinuteScale(b)}var _=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?o(o({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?o(o({},e),{},{value:t.value}):"minute"===t.unit?o(o({},e),{},{value:t.value,minute:t.value}):t}));return _.filter((function(t){var e=1,a=Math.ceil(n.globals.gridWidth/120),r=t.value;void 0!==n.config.xaxis.tickAmount&&(a=n.config.xaxis.tickAmount),_.length>a&&(e=Math.floor(_.length/a));var o=!1,s=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(o=!0);break;case"half_year":e=7,"year"===t.unit&&(o=!0);break;case"months":e=1,"year"===t.unit&&(o=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(o=!0),30===r&&(s=!0);break;case"months_days":e=10,"month"===t.unit&&(o=!0),30===r&&(s=!0);break;case"week_days":e=8,"month"===t.unit&&(o=!0);break;case"days":e=1,"month"===t.unit&&(o=!0);break;case"hours":"day"===t.unit&&(o=!0);break;case"minutes":r%5!=0&&(s=!0)}if("minutes"===i.tickInterval||"hours"===i.tickInterval){if(!s)return!0}else if((r%e==0||o)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,n=this.formatDates(t),a=this.removeOverlappingTS(n);i.globals.timescaleLabels=a.slice(),new ot(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){switch(!0){case t>1825:this.tickInterval="years";break;case t>800&&t<=1825:this.tickInterval="half_year";break;case t>180&&t<=800:this.tickInterval="months";break;case t>90&&t<=180:this.tickInterval="months_fortnight";break;case t>60&&t<=90:this.tickInterval="months_days";break;case t>30&&t<=60:this.tickInterval="week_days";break;case t>2&&t<=30:this.tickInterval="days";break;case t>.1&&t<=2:this.tickInterval="hours";break;case t<.1:this.tickInterval="minutes";break;default:this.tickInterval="days"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,a=t.daysWidthOnXAxis,r=t.numberOfYears,o=e.minYear,s=0,l=new Y(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var u=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);s=(l.determineDaysOfYear(e.minYear)-u+1)*a,o=e.minYear+1,this.timeScaleArray.push({position:s,value:o,unit:c,year:o,month:p.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:s,value:o,unit:c,year:n,month:p.monthMod(i+1)});for(var d=o,h=s,f=0;f<r;f++)d++,h=l.determineDaysOfYear(d-1)*a+h,this.timeScaleArray.push({position:h,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,n=t.currentMonth,a=t.currentYear,r=t.daysWidthOnXAxis,o=t.numberOfMonths,s=n,l=0,c=new Y(this.ctx),u="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(n+1,e.minYear)-i+1)*r,s=p.monthMod(n+1);var h=a+d,f=p.monthMod(s),m=s;0===s&&(u="year",m=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:m,unit:u,year:h,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:u,year:a,month:p.monthMod(n)});for(var g=s+1,v=l,y=0,b=1;y<o;y++,b++){0===(g=p.monthMod(g))?(u="year",d+=1):u="month";var _=this._getYear(a,g,d);v=c.determineDaysOfMonths(g,_)*r+v;var x=0===g?_:g;this.timeScaleArray.push({position:v,value:x,unit:u,year:_,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,n=t.currentYear,a=t.hoursWidthOnXAxis,r=t.numberOfDays,o=new Y(this.ctx),s="day",l=e.minDate+1,c=l,u=function(t,e,i){return t>o.determineDaysOfMonths(e+1,i)?(c=1,s="month",h=e+=1,e):e},d=(24-e.minHour)*a,h=l,f=u(c,i,n);0===e.minHour&&1===e.minDate&&(d=0,h=p.monthMod(e.minMonth),s="month",c=e.minDate,r++),this.timeScaleArray.push({position:d,value:h,unit:s,year:this._getYear(n,f,0),month:p.monthMod(f),day:c});for(var m=d,g=0;g<r;g++){s="day",f=u(c+=1,f,this._getYear(n,f,0));var v=this._getYear(n,f,0);m=24*a+m;var y=1===c?p.monthMod(f):c;this.timeScaleArray.push({position:m,value:y,unit:s,year:v,month:p.monthMod(f),day:y})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,n=t.currentMonth,a=t.currentYear,r=t.minutesWidthOnXAxis,o=t.numberOfHours,s=new Y(this.ctx),l="hour",c=function(t,e){return t>s.determineDaysOfMonths(e+1,a)&&(g=1,e+=1),{month:e,date:g}},u=function(t,e){return t>s.determineDaysOfMonths(e+1,a)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),h=d*r,f=e.minHour+1,m=f+1;60===d&&(h=0,m=(f=e.minHour)+1);var g=i,v=u(g,n);this.timeScaleArray.push({position:h,value:f,unit:l,day:g,hour:m,year:a,month:p.monthMod(v)});for(var y=h,b=0;b<o;b++){l="hour",m>=24&&(m=0,l="day",v=c(g+=1,v).month,v=u(g,v));var _=this._getYear(a,v,0);y=0===m&&0===b?d*r:60*r+y;var x=0===m?g:m;this.timeScaleArray.push({position:y,value:x,unit:l,hour:m,day:g,year:_,month:p.monthMod(v)}),m++}}},{key:"generateMinuteScale",value:function(t){var e=t.firstVal,i=(t.currentSecond,t.currentMinute,t.currentHour),n=t.currentDate,a=t.currentMonth,r=t.currentYear,o=t.minutesWidthOnXAxis,s=t.secondsWidthOnXAxis,l=t.numberOfMinutes,c="minute",u=(60-e.minSecond)*s,d=e.minMinute+1,h=d+1,f=n,m=a,g=r,v=i;this.timeScaleArray.push({position:u,value:d,unit:c,day:f,hour:v,minute:h,year:g,month:p.monthMod(m)});for(var y=u,b=0;b<l;b++)h>=60&&(h=0,24===(v+=1)&&(v=0)),y=o+y,this.timeScaleArray.push({position:y,value:h,unit:c,hour:v,minute:h,day:f,year:this._getYear(r,m,0),month:p.monthMod(m)}),h++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),i+="minute"===t.unit?":"+("0"+e).slice(-2)+":00":":00:00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var n=t.value.toString(),a=new Y(e.ctx),r=e.createRawDateString(t,n),o=a.getDate(a.parseDate(r));if(e.utc||(o=a.getDate(a.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var s="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(s=l.year),"month"===t.unit&&(s=l.month),"day"===t.unit&&(s=l.day),"hour"===t.unit&&(s=l.hour),"minute"===t.unit&&(s=l.minute),n=a.formatDate(o,s)}else n=a.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:t.position,value:n,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e,i=this,n=new v(this.ctx),a=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(a=!0,e=n.getTextRects(t[0].value).width);var r=0,o=t.map((function(o,s){if(s>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=a?e:n.getTextRects(t[r].value).width,c=t[r].position;return o.position>c+l+10?(r=s,o):null}return o}));return o.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Ot=function(){function t(i,n){e(this,t),this.ctx=n,this.w=n.w,this.el=i}return n(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","candlestick","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","candlestick","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),v.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.chart.background,this.setSVGDimensions(),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elAnnotations=t.dom.Paper.group().attr({class:"apexcharts-annotations"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,n=i.config,a=i.globals,r={series:[],i:[]},o={series:[],i:[]},s={series:[],i:[]},l={series:[],i:[]},c={series:[],i:[]},u={series:[],i:[]};a.series.map((function(e,d){void 0!==t[d].type?("column"===t[d].type||"bar"===t[d].type?(a.series.length>1&&n.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),c.series.push(e),c.i.push(d),i.globals.columnSeries=c.series):"area"===t[d].type?(o.series.push(e),o.i.push(d)):"line"===t[d].type?(r.series.push(e),r.i.push(d)):"scatter"===t[d].type?(s.series.push(e),s.i.push(d)):"bubble"===t[d].type?(l.series.push(e),l.i.push(d)):"candlestick"===t[d].type?(u.series.push(e),u.i.push(d)):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble"),a.comboCharts=!0):(r.series.push(e),r.i.push(d))}));var d=new Tt(this.ctx,e),h=new bt(this.ctx,e);this.ctx.pie=new kt(this.ctx);var f=new Mt(this.ctx);this.ctx.rangeBar=new I(this.ctx,e);var p=new St(this.ctx),m=[];if(a.comboCharts){if(o.series.length>0&&m.push(d.draw(o.series,"area",o.i)),c.series.length>0)if(i.config.chart.stacked){var g=new yt(this.ctx,e);m.push(g.draw(c.series,c.i))}else{var v=new P(this.ctx,e);m.push(v.draw(c.series,c.i))}if(r.series.length>0&&m.push(d.draw(r.series,"line",r.i)),u.series.length>0&&m.push(h.draw(u.series,u.i)),s.series.length>0){var y=new Tt(this.ctx,e,!0);m.push(y.draw(s.series,"scatter",s.i))}if(l.series.length>0){var b=new Tt(this.ctx,e,!0);m.push(b.draw(l.series,"bubble",l.i))}}else switch(n.chart.type){case"line":m=d.draw(a.series,"line");break;case"area":m=d.draw(a.series,"area");break;case"bar":m=n.chart.stacked?new yt(this.ctx,e).draw(a.series):new P(this.ctx,e).draw(a.series);break;case"candlestick":m=new bt(this.ctx,e).draw(a.series);break;case"rangeBar":m=this.ctx.rangeBar.draw(a.series);break;case"heatmap":m=new xt(this.ctx,e).draw(a.series);break;case"treemap":m=new Dt(this.ctx,e).draw(a.series);break;case"pie":case"donut":case"polarArea":m=this.ctx.pie.draw(a.series);break;case"radialBar":m=f.draw(a.series);break;case"radar":m=p.draw(a.series);break;default:m=d.draw(a.series)}return m}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=p.getDimensions(this.el),n=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===n?p.isNumber(i[0])&&(0===i[0].width&&(i=p.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==n&&""!==n||(t.svgWidth=parseInt(e.chart.width,10));var a=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===a){var r=p.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),v.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==a){var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};v.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,n=t.config.chart.sparkline.enabled?1:15;n+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new lt(this.ctx).legendHelpers.getLegendBBox().clwh+10);var a=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(a&&!t.config.chart.sparkline.enabled){var o=p.getBoundingClientRect(a);r=o.bottom;var s=o.bottom-o.top;r=Math.max(2.05*t.globals.radialSize,s)}var l=r+e.translateY+i+n;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),e.dom.elWrap.style.height=l+"px",v.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px"}},{key:"coreCalculations",value:function(){new U(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new j,n=this.w.globals;i.initGlobalVars(n),n.seriesXvalues=e(),n.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new J(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new J(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Et(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new _(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=e.config.chart.brush.targets||[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,n){i.forEach((function(t){var i=ApexCharts.getChartByID(t),a=p.clone(e.config.yaxis);if(e.config.chart.brush.autoScaleYaxis&&1===i.w.globals.series.length){var r=new q(i);a=r.autoScaleY(i,a,n)}var s=i.w.config.yaxis.reduce((function(t,e,n){return[].concat(h(t),[o(o({},i.w.config.yaxis[n]),{},{min:a[0].min,max:a[0].max})])}),[]);i.ctx.updateHelpers._updateOptions({xaxis:{min:n.xaxis.min,max:n.xaxis.max},yaxis:s},!1,!1,!1,!1)}))}}}}]),t}(),Pt=function(){function i(t){e(this,i),this.ctx=t,this.w=t.w}return n(i,[{key:"_updateOptions",value:function(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=[this.ctx];r&&(s=this.ctx.getSyncedCharts()),this.ctx.w.globals.isExecCalled&&(s=[this.ctx],this.ctx.w.globals.isExecCalled=!1),s.forEach((function(r){var s=r.w;return s.globals.shouldAnimate=a,n||(s.globals.resized=!0,s.globals.dataChanged=!0,a&&r.series.getPreviousPaths()),e&&"object"===t(e)&&(r.config=new H(e),e=_.extendArrayProps(r.config,e,s),r.w.globals.chartID!==i.ctx.w.globals.chartID&&delete e.series,s.config=p.extend(s.config,e),o&&(s.globals.lastXAxis=e.xaxis?p.clone(e.xaxis):[],s.globals.lastYAxis=e.yaxis?p.clone(e.yaxis):[],s.globals.initialConfig=p.extend({},s.config),s.globals.initialSeries=p.clone(s.config.series))),r.update(e)}))}},{key:"_updateSeries",value:function(t,e){var i,n=this,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.w;return r.globals.shouldAnimate=e,r.globals.dataChanged=!0,e&&this.ctx.series.getPreviousPaths(),r.globals.axisCharts?(0===(i=t.map((function(t,e){return n._extendSeries(t,e)}))).length&&(i=[{data:[]}]),r.config.series=i):r.config.series=t.slice(),a&&(r.globals.initialSeries=p.clone(r.config.series)),this.ctx.update()}},{key:"_extendSeries",value:function(t,e){var i=this.w,n=i.config.series[e];return o(o({},i.config.series[e]),{},{name:t.name?t.name:n&&n.name,color:t.color?t.color:n&&n.color,type:t.type?t.type:n&&n.type,data:t.data?t.data:n&&n.data})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,n=null,a=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?n=i.globals.dom.Paper.select("".concat(a," path[j='").concat(e,"'], ").concat(a," circle[j='").concat(e,"'], ").concat(a," rect[j='").concat(e,"']")).members[0]:void 0===e&&(n=i.globals.dom.Paper.select("".concat(a," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),n?(new v(this.ctx).pathMouseDown(n,null),n.node?n.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new N(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){var e=this.w;return e.config.chart.stacked&&"100%"===e.config.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,n=i.globals.lastXAxis,a=i.globals.lastYAxis;t&&t.xaxis&&(n=t.xaxis),t&&t.yaxis&&(a=t.yaxis),i.config.xaxis.min=n.min,i.config.xaxis.max=n.max;i.config.yaxis.map((function(t,n){i.globals.zoomed||void 0!==a[n]?function(t){void 0!==a[t]&&(i.config.yaxis[t].min=a[t].min,i.config.yaxis[t].max=a[t].max)}(n):void 0!==e.ctx.opts.yaxis[n]&&(t.min=e.ctx.opts.yaxis[n].min,t.max=e.ctx.opts.yaxis[n].max)}))}}]),i}();Ct="undefined"!=typeof window?window:void 0,At=function(e,i){var n=(void 0!==this?this:e).SVG=function(t){if(n.supported)return t=new n.Doc(t),n.parser.draw||n.prepare(),t};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.com/svgjs",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(t){return"Svgjs"+d(t)+n.did++},n.create=function(t){var e=i.createElementNS(this.ns,t);return e.setAttribute("id",this.eid(t)),e},n.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var i=t.length-1;i>=0;i--)if(t[i])for(var a in e)t[i].prototype[a]=e[a];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,n.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&n.extend(e,t.extend),t.construct&&n.extend(t.parent||n.Container,t.construct),e},n.adopt=function(t){return t?t.instance?t.instance:((i="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[d(t.nodeName)]?new(n[d(t.nodeName)]):new n.Element(t)).type=t.nodeName,i.node=t,t.instance=i,i instanceof n.Doc&&i.namespace().defs(),i.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),i):null;var i},n.prepare=function(){var t=i.getElementsByTagName("body")[0],e=(t?new n.Doc(t):n.adopt(i.documentElement).nested()).size(2,0);n.parser={body:t||i.documentElement,draw:e.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:e.polyline().node,path:e.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},i.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(t,e){for(var i=t.length,n=[],a=0;a<i;a++)n.push(e(t[a]));return n},filter:function(t,e){for(var i=t.length,n=[],a=0;a<i;a++)e(t[a])&&n.push(t[a]);return n},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var i,a;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(i=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(i[1]),this.g=parseInt(i[2]),this.b=parseInt(i[3])):n.regex.isHex.test(e)&&(i=n.regex.hex.exec(4==(a=e).length?["#",a.substring(1,2),a.substring(1,2),a.substring(2,3),a.substring(2,3),a.substring(3,4),a.substring(3,4)].join(""):a),this.r=parseInt(i[1],16),this.g=parseInt(i[2],16),this.b=parseInt(i[3],16)):"object"===t(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+h(this.r)+h(this.g)+h(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(t){return this.destination=new n.Color(t),this},at:function(t){return this.destination?(t=t<0?0:t>1?1:t,new n.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),n.Color.test=function(t){return t+="",n.regex.isHex.test(t)||n.regex.isRgb.test(t)},n.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},n.Color.isColor=function(t){return n.Color.isRgb(t)||n.Color.test(t)},n.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},n.extend(n.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),n.PointArray=function(t,e){n.Array.call(this,t,e||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},r="mlhvqtcsaz".split(""),o=0,s=r.length;o<s;++o)a[r[o]]=function(t){return function(e,i,n){if("H"==t)e[0]=e[0]+i.x;else if("V"==t)e[0]=e[0]+i.y;else if("A"==t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(var r=0,o=e.length;r<o;++r)e[r]=e[r]+(r%2?i.y:i.x);return a[t](e,i,n)}}(r[o].toUpperCase());n.PathArray=function(t,e){n.Array.call(this,t,e||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e][0],null!=t[e][1]&&(n+=t[e][1],null!=t[e][2]&&(n+=" ",n+=t[e][2],null!=t[e][3]&&(n+=" ",n+=t[e][3],n+=" ",n+=t[e][4],null!=t[e][5]&&(n+=" ",n+=t[e][5],n+=" ",n+=t[e][6],null!=t[e][7]&&(n+=" ",n+=t[e][7])))));return n+" "}(this.value)},move:function(t,e){var i=this.bbox();return i.x,i.y,this},at:function(t){if(!this.destination)return this;for(var e=this.value,i=this.destination.value,a=[],r=new n.PathArray,o=0,s=e.length;o<s;o++){a[o]=[e[o][0]];for(var l=1,c=e[o].length;l<c;l++)a[o][l]=e[o][l]+(i[o][l]-e[o][l])*t;"A"===a[o][0]&&(a[o][4]=+(0!=a[o][4]),a[o][5]=+(0!=a[o][5]))}return r.value=a,r},parse:function(t){if(t instanceof n.PathArray)return t.valueOf();var e,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};t="string"==typeof t?t.replace(n.regex.numbersWithDots,c).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):t.reduce((function(t,e){return[].concat.call(t,e)}),[]);var r=[],o=new n.Point,s=new n.Point,l=0,u=t.length;do{n.regex.isPathLetter.test(t[l])?(e=t[l],++l):"M"==e?e="L":"m"==e&&(e="l"),r.push(a[e].call(null,t.slice(l,l+=i[e.toUpperCase()]).map(parseFloat),o,s))}while(u>l);return r},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(n.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof n.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new n.Number(t),new n.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new n.Number(t),new n.Number(this-t,this.unit||t.unit)},times:function(t){return t=new n.Number(t),new n.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new n.Number(t),new n.Number(this/t,this.unit||t.unit)},to:function(t){var e=new n.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new n.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new n.Number(this.destination).minus(this).times(t).plus(this):this}}}),n.Element=n.invent({create:function(t){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var i=f(this,t,e);return this.width(new n.Number(i.width)).height(new n.Number(i.height))},clone:function(t){this.writeDataToDom();var e=g(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(n.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return n.get(this.attr(t))},parent:function(t){var i=this;if(!i.node.parentNode)return null;if(i=n.adopt(i.node.parentNode),!t)return i;for(;i&&i.node instanceof e.SVGElement;){if("string"==typeof t?i.matches(t):i instanceof t)return i;if(!i.node.parentNode||"#document"==i.node.parentNode.nodeName)return null;i=n.adopt(i.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var e=i.createElement("svg");if(!(t&&this instanceof n.Parent))return e.appendChild(t=i.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),e.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");e.innerHTML="<svg>"+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var a=0,r=e.firstChild.childNodes.length;a<r;a++)this.node.appendChild(e.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(t){return this.dom=t,this},is:function(t){return function(t,e){return t instanceof e}(this,t)}}}),n.easing={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},n.morph=function(t){return function(e,i){return new n.MorphObj(e,i).at(t)}},n.Situation=n.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(t.duration).valueOf(),this.delay=new n.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,i,a){"object"===t(e)&&(i=e.ease,a=e.delay,e=e.duration);var r=new n.Situation({duration:e||1e3,delay:a||0,ease:n.easing[i||"-"]||i});return this.queue(r),this},target:function(t){return t&&t instanceof n.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof n.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var i in e.animations){t=this.target()[i](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[i])||(e.animations[i]=[e.animations[i]]);for(var a=t.length;a--;)e.animations[i][a]instanceof n.Number&&(t[a]=new n.Number(t[a])),e.animations[i][a]=t[a].morph(e.animations[i][a])}for(var i in e.attrs)e.attrs[i]=new n.MorphObj(this.target().attr(i),e.attrs[i]);for(var i in e.styles)e.styles[i]=new n.MorphObj(this.target().style(i),e.styles[i]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(n){n.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),i=function(i){i.detail.situation==e&&t.call(this,i.detail.pos,n.morph(i.detail.pos),i.detail.eased,e)};return this.target().off("during.fx",i).on("during.fx",i),this.after((function(){this.off("during.fx",i)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,n;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||i<this.situation.loops?(this.pos=e-i,n=this.situation.loop,this.situation.loop=i):(this.absPos=this.situation.loops,this.pos=1,n=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-n)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var a=this.situation.ease(this.pos);for(var r in this.situation.once)r>this.lastPos&&r<=a&&(this.situation.once[r].call(this.target(),this.pos,a),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:a,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=a,this):this},eachAt:function(){var t,e=this,i=this.target(),a=this.situation;for(var r in a.animations)t=[].concat(a.animations[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(e.pos),e.pos):t})),i[r].apply(i,t);for(var r in a.attrs)t=[r].concat(a.attrs[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(e.pos),e.pos):t})),i.attr.apply(i,t);for(var r in a.styles)t=[r].concat(a.styles[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(a.ease(e.pos),e.pos):t})),i.style.apply(i,t);if(a.transforms.length){t=a.initialTransformation,r=0;for(var o=a.transforms.length;r<o;r++){var s=a.transforms[r];s instanceof n.Matrix?t=s.relative?t.multiply((new n.Matrix).morph(s).at(a.ease(this.pos))):t.morph(s).at(a.ease(this.pos)):(s.relative||s.undo(t.extract()),t=t.multiply(s.at(a.ease(this.pos))))}i.matrix(t)}return this},once:function(t,e,i){var n=this.last();return i||(t=n.ease(t)),n.once[t]=e,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(t,e,i){return(this.fx||(this.fx=new n.FX(this))).animate(t,e,i)},delay:function(t){return(this.fx||(this.fx=new n.FX(this))).delay(t)},stop:function(t,e){return this.fx&&this.fx.stop(t,e),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),n.MorphObj=n.invent({create:function(t,e){return n.Color.isColor(e)?new n.Color(t).morph(e):n.regex.delimiter.test(t)?n.regex.pathLetters.test(t)?new n.PathArray(t).morph(e):new n.Array(t).morph(e):n.regex.numberAndUnit.test(e)?new n.Number(t).morph(e):(this.value=t,void(this.destination=e))},extend:{at:function(t,e){return e<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,i,n){if("object"===t(e))for(var a in e)this.attr(a,e[a]);else this.add(e,i,"attrs");return this},plot:function(t,e,i,n){return 4==arguments.length?this.plot([t,e,i,n]):this.add("plot",new(this.target().morphArray)(t))}}),n.Box=n.invent({create:function(e,i,a,r){if(!("object"!==t(e)||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);4==arguments.length&&(this.x=e,this.y=i,this.width=a,this.height=r),v(this)}}),n.BBox=n.invent({create:function(t){if(n.Box.apply(this,[].slice.call(arguments)),t instanceof n.Element){var e;try{if(!i.documentElement.contains){for(var a=t.node;a.parentNode;)a=a.parentNode;if(a!=i)throw new Error("Element not in the dom")}e=t.node.getBBox()}catch(i){if(t instanceof n.Shape){n.parser.draw||n.prepare();var r=t.clone(n.parser.draw.instance).show();e=r.node.getBBox(),r.remove()}else e={x:t.node.clientLeft,y:t.node.clientTop,width:t.node.clientWidth,height:t.node.clientHeight}}n.Box.call(this,e)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.Matrix=n.invent({create:function(e){var i=m([1,0,0,1,0,0]);e=e instanceof n.Element?e.matrixify():"string"==typeof e?m(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?m([].slice.call(arguments)):Array.isArray(e)?m(e):"object"===t(e)?e:i;for(var a=b.length-1;a>=0;--a)this[b[a]]=null!=e[b[a]]?e[b[a]]:i[b[a]]},extend:{extract:function(){var t=p(this,0,1),e=(p(this,1,0),180/Math.PI*Math.atan2(t.y,t.x)-90);return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(t){return this.destination=new n.Matrix(t),this},multiply:function(t){return new n.Matrix(this.native().multiply(function(t){return t instanceof n.Matrix||(t=new n.Matrix(t)),t}(t).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(t,e){return new n.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=n.parser.native.createSVGMatrix(),e=b.length-1;e>=0;e--)t[b[e]]=this[b[e]];return t},toString:function(){return"matrix("+y(this.a)+","+y(this.b)+","+y(this.c)+","+y(this.d)+","+y(this.e)+","+y(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new n.Matrix(e)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,i){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===t(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=i?i:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(t,e){return this.destination=new n.Point(t,e),this}}}),n.extend(n.Element,{point:function(t,e){return new n.Point(t,e).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,i,a){if(null==e){for(e={},a=(i=this.node.attributes).length-1;a>=0;a--)e[i[a].nodeName]=n.regex.isNumber.test(i[a].nodeValue)?parseFloat(i[a].nodeValue):i[a].nodeValue;return e}if("object"===t(e))for(var r in e)this.attr(r,e[r]);else if(null===i)this.node.removeAttribute(e);else{if(null==i)return null==(i=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(i)?parseFloat(i):i;"stroke-width"==e?this.attr("stroke",parseFloat(i)>0?this._stroke:null):"stroke"==e&&(this._stroke=i),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(i)&&(i=this.doc().defs().image(i,0,0)),i instanceof n.Image&&(i=this.doc().defs().pattern(0,0,(function(){this.add(i)})))),"number"==typeof i?i=new n.Number(i):n.Color.isColor(i)?i=new n.Color(i):Array.isArray(i)&&(i=new n.Array(i)),"leading"==e?this.leading&&this.leading(i):"string"==typeof a?this.node.setAttributeNS(a,e,i.toString()):this.node.setAttribute(e,i.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,i)}return this}}),n.extend(n.Element,{transform:function(e,i){var a;return"object"!==t(e)?(a=new n.Matrix(this).extract(),"string"==typeof e?a[e]:a):(a=new n.Matrix(this),i=!!i||!!e.relative,null!=e.a&&(a=i?a.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",a))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(n.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(m(e[1])):t[e[0]].apply(t,e[1])}),new n.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,i){if(arguments.length>1&&"boolean"!=typeof i)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,a=this.arguments.length;n<a;++n)this[this.arguments[n]]=e[n];else if("object"===t(e))for(n=0,a=this.arguments.length;n<a;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===i&&(this.inversed=!0)}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(t,e){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.extend(n.Element,{style:function(e,i){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===t(e))for(var a in e)this.style(a,e[a]);else{if(!n.regex.isCss.test(e))return this.node.style[u(e)];for(e=e.split(/\s*;\s*/).filter((function(t){return!!t})).map((function(t){return t.split(/\s*:\s*/)}));i=e.pop();)this.style(i[0],i[1])}else this.node.style[u(e)]=null===i||n.regex.isBlank.test(i)?"":i;return this}}),n.Parent=n.invent({create:function(t){this.constructor.call(this,t)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(t){return n.adopt(t)}))},add:function(t,e){return null==e?this.node.appendChild(t.node):t.node!=this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this},put:function(t,e){return this.add(t,e),t},has:function(t){return this.index(t)>=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return n.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var i=this.children(),a=0,r=i.length;a<r;a++)i[a]instanceof n.Element&&t.apply(i[a],[a,i]),e&&i[a]instanceof n.Container&&i[a].each(t,e);return this},removeElement:function(t){return this.node.removeChild(t.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(t,e){return 0===e||this instanceof n.Defs||this.node==n.parser.draw||(t=t||(this instanceof n.Doc?this:this.parent(n.Parent)),e=e||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(t,e-1):this.toParent(t)})),this.node.firstChild||this.remove()),this},flatten:function(t,e){return this.ungroup(t,e)}}),n.Container=n.invent({create:function(t){this.constructor.call(this,t)},inherit:n.Parent}),n.ViewBox=n.invent({parent:n.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(t){n.Element.prototype[t]=function(e){return n.on(this.node,t,e),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(t,e,i,a,r){var o=i.bind(a||t.instance||t),s=(n.handlerMap.indexOf(t)+1||n.handlerMap.push(t))-1,l=e.split(".")[0],c=e.split(".")[1]||"*";n.listeners[s]=n.listeners[s]||{},n.listeners[s][l]=n.listeners[s][l]||{},n.listeners[s][l][c]=n.listeners[s][l][c]||{},i._svgjsListenerId||(i._svgjsListenerId=++n.listenerId),n.listeners[s][l][c][i._svgjsListenerId]=o,t.addEventListener(l,o,r||{passive:!0})},n.off=function(t,e,i){var a=n.handlerMap.indexOf(t),r=e&&e.split(".")[0],o=e&&e.split(".")[1],s="";if(-1!=a)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;n.listeners[a][r]&&n.listeners[a][r][o||"*"]&&(t.removeEventListener(r,n.listeners[a][r][o||"*"][i],!1),delete n.listeners[a][r][o||"*"][i])}else if(o&&r){if(n.listeners[a][r]&&n.listeners[a][r][o]){for(var l in n.listeners[a][r][o])n.off(t,[r,o].join("."),l);delete n.listeners[a][r][o]}}else if(o)for(var c in n.listeners[a])for(var s in n.listeners[a][c])o===s&&n.off(t,[c,o].join("."));else if(r){if(n.listeners[a][r]){for(var s in n.listeners[a][r])n.off(t,[r,s].join("."));delete n.listeners[a][r]}}else{for(var c in n.listeners[a])n.off(t,c);delete n.listeners[a],delete n.handlerMap[a]}},n.extend(n.Element,{on:function(t,e,i,a){return n.on(this.node,t,e,i,a),this},off:function(t,e){return n.off(this.node,t,e),this},fire:function(t,i){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:i,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(t){t&&("svg"==(t="string"==typeof t?i.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,n.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var t;return this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(t):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw&&!n.parser.draw.parentNode&&this.node.appendChild(n.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=g(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),n.extend(n.Element,{}),n.Gradient=n.invent({create:function(t){this.constructor.call(this,n.create(t+"Gradient")),this.type=t},inherit:n.Container,extend:{at:function(t,e,i){return this.put(new n.Stop).update(t,e,i)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="gradientTransform"),n.Container.prototype.attr.call(this,t,e,i)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),n.extend(n.Gradient,n.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(t),fy:new n.Number(e)}):this.attr({x1:new n.Number(t),y1:new n.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(t),cy:new n.Number(e)}):this.attr({x2:new n.Number(t),y2:new n.Number(e)})}}),n.extend(n.Defs,{gradient:function(t,e){return this.put(new n.Gradient(t)).update(e)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(t){return("number"==typeof t||t instanceof n.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new n.Number(t.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="patternTransform"),n.Container.prototype.attr.call(this,t,e,i)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),n.extend(n.Defs,{pattern:function(t,e,i){return this.put(new n.Pattern).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(t){this.constructor.call(this,t)},inherit:n.Element}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,n.xlink)}},construct:{use:function(t,e){return this.put(new n.Use).element(t,e)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(t,e){return this.put(new n.Rect).size(t,e)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(t){return this.put(new n.Circle).rx(new n.Number(t).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(t,e){return this.put(new n.Ellipse).size(t,e).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),n.extend(n.Circle,n.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new n.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new n.Number(t).divide(2))},size:function(t,e){var i=f(this,t,e);return this.rx(new n.Number(i.width).divide(2)).ry(new n.Number(i.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,i,a){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:a}:new n.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=f(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,i,a){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=t?[t,e,i,a]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(t){return this.put(new n.Polyline).plot(t||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(t){return this.put(new n.Polygon).plot(t||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new n.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=f(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new n.PathArray(t))},clear:function(){return delete this._array,this}},construct:{path:function(t){return this.put(new n.Path).plot(t||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var i=this,a=new e.Image;return n.on(a,"load",(function(){n.off(a);var e=i.parent(n.Pattern);null!==e&&(0==i.width()&&0==i.height()&&i.size(a.width,a.height),e&&0==e.width()&&0==e.height()&&e.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.call(i,{width:a.width,height:a.height,ratio:a.width/a.height,url:t}))})),n.on(a,"error",(function(t){n.off(a),"function"==typeof i._error&&i._error.call(i,t)})),this.attr("href",a.src=this.src=t,n.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,i){return this.put(new n.Image).load(t).size(e||0,i||e||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,i=0,a=e.length;i<a;++i)0!=i&&3!=e[i].nodeType&&1==n.adopt(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent;return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else{i=0;for(var r=(t=t.split("\n")).length;i<r;i++)this.tspan(t[i]).newLine()}return this.build(!1).rebuild()},size:function(t){return this.attr("font-size",t).rebuild()},leading:function(t){return null==t?this.dom.leading:(this.dom.leading=new n.Number(t),this.rebuild())},lines:function(){var t=(this.textPath&&this.textPath()||this).node,e=n.utils.map(n.utils.filterSVGElements(t.childNodes),(function(t){return n.adopt(t)}));return new n.Set(e)},rebuild:function(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){var e=this,i=0,a=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(e.textPath()||this.attr("x",e.attr("x")),"\n"==this.text()?i+=a:(this.attr("dy",a+i),i=0))})),this.fire("rebuild")}return this},build:function(t){return this._build=!!t,this},setData:function(t){return this.dom=t,this.dom.leading=new n.Number(t.leading||1.3),this}},construct:{text:function(t){return this.put(new n.Text).text(t)},plain:function(t){return this.put(new n.Text).plain(t)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?t.call(this,this):this.plain(t),this)},dx:function(t){return this.attr("dx",t)},dy:function(t){return this.attr("dy",t)},newLine:function(){var t=this.parent(n.Text);return this.dom.newLined=!0,this.dy(t.dom.leading*t.attr("font-size")).attr("x",t.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(i.createTextNode(t)),this},tspan:function(t){var e=(this.textPath&&this.textPath()||this).node,i=new n.Tspan;return!1===this._build&&this.clear(),e.appendChild(i.node),i.text(t)},clear:function(){for(var t=(this.textPath&&this.textPath()||this).node;t.hasChildNodes();)t.removeChild(t.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,array:function(){var t=this.track();return t?t.array():null},plot:function(t){var e=this.track(),i=null;return e&&(i=e.plot(t)),null==t?i:this},track:function(){var t=this.textPath();if(t)return t.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}});var l={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"==e?t:t+"-"+e}};function c(t,e,i,a){return i+a.replace(n.regex.dots," .")}function u(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){var e=t.toString(16);return 1==e.length?"0"+e:e}function f(t,e,i){if(null==e||null==i){var n=t.bbox();null==e?e=n.width/n.height*i:null==i&&(i=n.height/n.width*e)}return{width:e,height:i}}function p(t,e,i){return{x:e*t.a+i*t.c+0,y:e*t.b+i*t.d+0}}function m(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}function g(t){for(var i=t.childNodes.length-1;i>=0;i--)t.childNodes[i]instanceof e.SVGElement&&g(t.childNodes[i]);return n.adopt(t).id(n.eid(t.nodeName))}function v(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function y(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||n.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var i=l[t].length-1;i>=0;i--)null!=e[l[t][i]]&&this.attr(l.prefix(t,l[t][i]),e[l[t][i]]);return this},n.extend(n.Element,n.FX,e)})),n.extend(n.Element,n.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new n.Number(t).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(t){return this.y(new n.Number(t).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),n.Set=n.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e<i;e++)this.members.push(t[e]);return this},remove:function(t){var e=this.index(t);return e>-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e<i;e++)t.apply(this.members[e],[e,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(t){return this.index(t)>=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new n.Set(t)}}}),n.FX.Set=n.invent({create:function(t){this.set=t}}),n.Set.inherit=function(){var t=[];for(var e in n.Shape.prototype)"function"==typeof n.Shape.prototype[e]&&"function"!=typeof n.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){n.Set.prototype[t]=function(){for(var e=0,i=this.members.length;e<i;e++)this.members[e]&&"function"==typeof this.members[e][t]&&this.members[e][t].apply(this.members[e],arguments);return"animate"==t?this.fx||(this.fx=new n.FX.Set(this)):this}})),t=[],n.FX.prototype)"function"==typeof n.FX.prototype[e]&&"function"!=typeof n.FX.Set.prototype[e]&&t.push(e);t.forEach((function(t){n.FX.Set.prototype[t]=function(){for(var e=0,i=this.set.members.length;e<i;e++)this.set.members[e].fx[t].apply(this.set.members[e].fx,arguments);return this}}))},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(e,i){if("object"===t(arguments[0]))for(var n in e)this.remember(n,e[n]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=i}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(t){var e=i.getElementById(function(t){var e=(t||"").toString().match(n.regex.reference);if(e)return e[1]}(t)||t);return n.adopt(e)},n.select=function(t,e){return new n.Set(n.utils.map((e||i).querySelectorAll(t),(function(t){return n.adopt(t)})))},n.extend(n.Parent,{select:function(t){return n.select(t,this.node)}});var b="abcdef".split("");if("function"!=typeof e.CustomEvent){var _=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=i.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};_.prototype=e.Event.prototype,n.CustomEvent=_}else n.CustomEvent=e.CustomEvent;return n},"function"==typeof define&&define.amd?define((function(){return At(Ct,Ct.document)})):"object"===("undefined"==typeof exports?"undefined":t(exports))&&"undefined"!=typeof module?module.exports=Ct.document?At(Ct,Ct.document):function(t){return At(t,t.document)}:Ct.SVG=At(Ct,Ct.document),
/*! svg.filter.js - v2.0.2 - 2016-02-24
  * https://github.com/wout/svg.filter.js
  * Copyright (c) 2016 Wout Fierens; Licensed MIT */
function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,n,a){return this.put(new SVG.DisplacementMapEffect(t,e,i,n,a))},specularLighting:function(t,e,i,n){return this.put(new SVG.SpecularLightingEffect(t,e,i,n))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,n,a){return this.put(new SVG.TurbulenceEffect(t,e,i,n,a))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,n){return this.parent()&&this.parent().displacementMap(this,t,e,i,n)},specularLighting:function(t,e,i,n){return this.parent()&&this.parent().specularLighting(t,e,i,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,n,a){return this.parent()&&this.parent().turbulence(t,e,i,n,a).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=a(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=a(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,n,a){this.attr({in:t,in2:e,scale:i,xChannelSelector:n,yChannelSelector:a})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",r(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(t,e){this.attr({operator:t,radius:e})},tile:function(){},turbulence:function(t,e,i,n,a){this.attr({numOctaves:e,seed:i,stitchTiles:n,baseFrequency:t,type:a})}},i={merge:function(){var t;if(arguments[0]instanceof SVG.Set){var e=this;arguments[0].each((function(t){this instanceof SVG.MergeNode?e.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&e.put(new SVG.MergeNode(this))}))}else{t=Array.isArray(arguments[0])?arguments[0]:arguments;for(var i=0;i<t.length;i++)t[i]instanceof SVG.MergeNode?this.put(t[i]):this.put(new SVG.MergeNode(t[i]))}},componentTransfer:function(t){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(t){this[t]=new(SVG["Func"+t.toUpperCase()])("identity"),this.rgb.add(this[t]),this.node.appendChild(this[t].node)}.bind(this)),t)for(var e in t.rgb&&(["r","g","b"].forEach(function(e){this[e].attr(t.rgb)}.bind(this)),delete t.rgb),t)this[e].attr(t[e])},diffuseLighting:function(t,e,i){this.attr({surfaceScale:t,diffuseConstant:e,kernelUnitLength:i})},specularLighting:function(t,e,i,n){this.attr({surfaceScale:t,diffuseConstant:e,specularExponent:i,kernelUnitLength:n})}},n={distantLight:function(t,e){this.attr({azimuth:t,elevation:e})},pointLight:function(t,e,i){this.attr({x:t,y:e,z:i})},spotLight:function(t,e,i,n,a,r){this.attr({x:t,y:e,z:i,pointsAtX:n,pointsAtY:a,pointsAtZ:r})},mergeNode:function(t){this.attr("in",t)}};function a(t){return Array.isArray(t)&&(t=new SVG.Array(t)),t.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function r(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,n=[];e<i;e++)n.push(t[e]);return n.join(" ")}function o(){var t=function(){};for(var e in"function"==typeof arguments[arguments.length-1]&&(t=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var i in arguments[e])t(arguments[e][i],i,arguments[e])}["r","g","b","a"].forEach((function(t){n["Func"+t.toUpperCase()]=function(t){switch(this.attr("type",t),t){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),o(e,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),o(i,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),o(n,(function(t,e){var i=e.charAt(0).toUpperCase()+e.slice(1);SVG[i]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+i)),t.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(t){return t instanceof SVG.MergeNode?this.add(t,0):this.add(new SVG.MergeNode(t),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",t)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function t(t,a,r,o,s,l,c){for(var u=t.slice(a,r||c),d=o.slice(s,l||c),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[h]=e.call(f,u[h]),d[h]=e.call(p,d[h]),u[h][0]!=d[h][0]||"M"==u[h][0]||"A"==u[h][0]&&(u[h][4]!=d[h][4]||u[h][5]!=d[h][5])?(Array.prototype.splice.apply(u,[h,1].concat(n.call(f,u[h]))),Array.prototype.splice.apply(d,[h,1].concat(n.call(p,d[h])))):(u[h]=i.call(f,u[h]),d[h]=i.call(p,d[h])),++h!=u.length||h!=d.length;)h==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:d}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function n(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":t=(e=function(t,e){var i,n,a,r,o,s,l,c,u,d,h,f,p,m,g,v,y,b,_,x,w,k,S,M,L,T,C=Math.abs(e[1]),A=Math.abs(e[2]),D=e[3]%360,E=e[4],O=e[5],P=e[6],Y=e[7],I=new SVG.Point(t),N=new SVG.Point(P,Y),H=[];if(0===C||0===A||I.x===N.x&&I.y===N.y)return[["C",I.x,I.y,N.x,N.y,N.x,N.y]];for((n=(i=new SVG.Point((I.x-N.x)/2,(I.y-N.y)/2).transform((new SVG.Matrix).rotate(D))).x*i.x/(C*C)+i.y*i.y/(A*A))>1&&(C*=n=Math.sqrt(n),A*=n),a=(new SVG.Matrix).rotate(D).scale(1/C,1/A).rotate(-D),I=I.transform(a),s=(r=[(N=N.transform(a)).x-I.x,N.y-I.y])[0]*r[0]+r[1]*r[1],o=Math.sqrt(s),r[0]/=o,r[1]/=o,l=s<4?Math.sqrt(1-s/4):0,E===O&&(l*=-1),c=new SVG.Point((N.x+I.x)/2+l*-r[1],(N.y+I.y)/2+l*r[0]),u=new SVG.Point(I.x-c.x,I.y-c.y),d=new SVG.Point(N.x-c.x,N.y-c.y),h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),O&&h>f&&(f+=2*Math.PI),!O&&h<f&&(f-=2*Math.PI),v=[],y=h,p=(f-h)/(m=Math.ceil(2*Math.abs(h-f)/Math.PI)),g=4*Math.tan(p/4)/3,w=0;w<=m;w++)_=Math.cos(y),b=Math.sin(y),x=new SVG.Point(c.x+_,c.y+b),v[w]=[new SVG.Point(x.x+g*b,x.y-g*_),x,new SVG.Point(x.x-g*b,x.y+g*_)],y+=p;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),a=(new SVG.Matrix).rotate(D).scale(C,A).rotate(-D),w=0,k=v.length;w<k;w++)v[w][0]=v[w][0].transform(a),v[w][1]=v[w][1].transform(a),v[w][2]=v[w][2].transform(a);for(w=1,k=v.length;w<k;w++)S=(x=v[w-1][2]).x,M=x.y,L=(x=v[w][0]).x,T=x.y,P=(x=v[w][1]).x,Y=x.y,H.push(["C",S,M,L,T,P,Y]);return H}(this.pos,t))[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function a(t,e){if(!1===e)return!1;for(var i=e,n=t.length;i<n;++i)if("M"==t[i][0])return i;return!1}SVG.extend(SVG.PathArray,{morph:function(e){for(var i=this.value,n=this.parse(e),r=0,o=0,s=!1,l=!1;!1!==r||!1!==o;){var c;s=a(i,!1!==r&&r+1),l=a(n,!1!==o&&o+1),!1===r&&(r=0==(c=new SVG.PathArray(u.start).bbox()).height||0==c.width?i.push(i[0])-1:i.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===o&&(o=0==(c=new SVG.PathArray(u.dest).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var u=t(i,r,s,n,o,l);i=i.slice(0,r).concat(u.start,!1===s?[]:i.slice(s)),n=n.slice(0,o).concat(u.dest,!1===l?[]:n.slice(l)),r=!1!==s&&r+u.start.length,o=!1!==l&&o+u.dest.length}return this.value=i,this.destination=new SVG.PathArray,this.destination.value=n,this}})}(),
/*! svg.draggable.js - v2.2.2 - 2019-01-08
  * https://github.com/svgdotjs/svg.draggable.js
  * Copyright (c) 2019 Wout Fierens; Licensed MIT */
function(){function t(t){t.remember("_draggable",this),this.el=t}t.prototype.init=function(t,e){var i=this;this.constraint=t,this.value=e,this.el.on("mousedown.drag",(function(t){i.start(t)})),this.el.on("touchstart.drag",(function(t){i.start(t)}))},t.prototype.transformPoint=function(t,e){var i=(t=t||window.event).changedTouches&&t.changedTouches[0]||t;return this.p.x=i.clientX-(e||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},t.prototype.getBBox=function(){var t=this.el.bbox();return this.el instanceof SVG.Nested&&(t=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(t.x=this.el.x(),t.y=this.el.y()),t},t.prototype.start=function(t){if("click"!=t.type&&"mousedown"!=t.type&&"mousemove"!=t.type||1==(t.which||t.buttons)){var e=this;if(this.el.fire("beforedrag",{event:t,handler:this}),!this.el.event().defaultPrevented){t.preventDefault(),t.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,n=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(t,i),box:n,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(t){e.drag(t)})),SVG.on(window,"touchmove.drag",(function(t){e.drag(t)})),SVG.on(window,"mouseup.drag",(function(t){e.end(t)})),SVG.on(window,"touchend.drag",(function(t){e.end(t)})),this.el.fire("dragstart",{event:t,p:this.startPoints.point,m:this.m,handler:this})}}},t.prototype.drag=function(t){var e=this.getBBox(),i=this.transformPoint(t),n=this.startPoints.box.x+i.x-this.startPoints.point.x,a=this.startPoints.box.y+i.y-this.startPoints.point.y,r=this.constraint,o=i.x-this.startPoints.point.x,s=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:t,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof r){var l=r.call(this.el,n,a,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(n):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(a):!1!==l.y&&this.el.y(l.y)}else"object"==typeof r&&(null!=r.minX&&n<r.minX?o=(n=r.minX)-this.startPoints.box.x:null!=r.maxX&&n>r.maxX-e.width&&(o=(n=r.maxX-e.width)-this.startPoints.box.x),null!=r.minY&&a<r.minY?s=(a=r.minY)-this.startPoints.box.y:null!=r.maxY&&a>r.maxY-e.height&&(s=(a=r.maxY-e.height)-this.startPoints.box.y),null!=r.snapToGrid&&(n-=n%r.snapToGrid,a-=a%r.snapToGrid,o-=o%r.snapToGrid,s-=s%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:s},!0):this.el.move(n,a));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var n=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?n.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var n="string"!=typeof t?t:e[t];return i?n/2:n},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var n=this.el.selectize.defaults.points;for(var a in this.el.selectize.defaults)this.options[a]=this.el.selectize.defaults[a],void 0!==e[a]&&(this.options[a]=e[a]);var r=["points","pointsExclude"];for(var a in r){var o=this.options[r[a]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===r[a]&&(o=o?n:[]),this.options[r[a]]=o}this.options.points=[n,this.options.points].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map((function(e){return[e[0]-t.x,e[1]-t.y]}))},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,n=e.length;i<n;++i){var a=function(e){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var n=i.pageX||i.touches[0].pageX,a=i.pageY||i.touches[0].pageY;t.el.fire("point",{x:n,y:a,i:e,event:i})}}(i),r=this.drawPoint(e[i][0],e[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",a).on("mousedown",a);this.pointSelection.set.add(r)}},t.prototype.drawPoint=function(t,e){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(t,e);case"rect":return this.drawRect(t,e);default:if("function"==typeof i)return i.call(this,t,e);throw new Error("Unknown "+i+" point type!")}},t.prototype.drawCircle=function(t,e){return this.nested.circle(this.options.pointSize).center(t,e)},t.prototype.drawRect=function(t,e){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(t,e)},t.prototype.updatePointSelection=function(){var t=this.getPointArray();this.pointSelection.set.each((function(e){this.cx()===t[e][0]&&this.cy()===t[e][1]||this.center(t[e][0],t[e][1])}))},t.prototype.updateRectSelection=function(){var t=this,e=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:e.width,height:e.height}),this.options.points.length&&this.options.points.map((function(i,n){var a=t.pointCoords(i,e);t.rectSelection.set.get(n+1).center(a.x,a.y)})),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(e.width/2,20)}},t.prototype.selectRect=function(t){var e=this,i=this.el.bbox();function n(t){return function(i){(i=i||window.event).preventDefault?i.preventDefault():i.returnValue=!1,i.stopPropagation();var n=i.pageX||i.touches[0].pageX,a=i.pageY||i.touches[0].pageY;e.el.fire(t,{x:n,y:a,event:i})}}if(this.rectSelection.isSelected=t,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(t,a){var r=e.pointCoords(t,i),o=e.drawPoint(r.x,r.y).attr("class",e.options.classPoints+"_"+t).on("mousedown",n(t)).on("touchstart",n(t));e.rectSelection.set.add(o)})),this.rectSelection.set.each((function(){this.addClass(e.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var a=function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation();var i=t.pageX||t.touches[0].pageX,n=t.pageY||t.touches[0].pageY;e.el.fire("rot",{x:i,y:n,event:t})},r=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",a).on("mousedown",a);this.rectSelection.set.add(r)}},t.prototype.handler=function(){var t=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(t.x,t.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},t.prototype.observe=function(){var t=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){t.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(t){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){t.handler()}))},t.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,i){return"object"==typeof e&&(i=e,e=!0),(this.remember("_selectHandler")||new t(this)).init(void 0===e||e,i||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function t(t){t.remember("_resizeHandler",this),this.el=t,this.parameters={},this.lastUpdateCall=null,this.p=t.doc().node.createSVGPoint()}t.prototype.transformPoint=function(t,e,i){return this.p.x=t-(this.offset.x-window.pageXOffset),this.p.y=e-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},t.prototype._extractPosition=function(t){return{x:null!=t.clientX?t.clientX:t.touches[0].clientX,y:null!=t.clientY?t.clientY:t.touches[0].clientY}},t.prototype.init=function(t){var e=this;if(this.stop(),"stop"!==t){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);this.el.on("lt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rt.resize",(function(t){e.resize(t||window.event)})),this.el.on("rb.resize",(function(t){e.resize(t||window.event)})),this.el.on("lb.resize",(function(t){e.resize(t||window.event)})),this.el.on("t.resize",(function(t){e.resize(t||window.event)})),this.el.on("r.resize",(function(t){e.resize(t||window.event)})),this.el.on("b.resize",(function(t){e.resize(t||window.event)})),this.el.on("l.resize",(function(t){e.resize(t||window.event)})),this.el.on("rot.resize",(function(t){e.resize(t||window.event)})),this.el.on("point.resize",(function(t){e.resize(t||window.event)})),this.update()}},t.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},t.prototype.resize=function(t){var e=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(t.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:t.detail.x,y:t.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==t.detail.i){var n=this.el.array().valueOf();this.parameters.i=t.detail.i,this.parameters.pointCoords=[n[t.detail.i][0],n[t.detail.i][1]]}switch(t.type){case"lt":this.calc=function(t,e){var i=this.snapToGrid(t,e);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,n=e+this.parameters.p.y,a=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),r=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(r-a)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"touchend.resize",(function(){e.done()})),SVG.on(window,"mousemove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"mouseup.resize",(function(){e.done()}))},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),n=i.x-this.parameters.p.x,a=i.y-this.parameters.p.y;this.lastUpdateCall=[n,a],this.calc(n,a),this.el.fire("resizing",{dx:n,dy:a,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,n){var a;return void 0!==n?a=[(i+t)%this.options.snapToGrid,(n+e)%this.options.snapToGrid]:(i=null==i?3:i,a=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(a[0]-=this.options.snapToGrid),e<0&&(a[1]-=this.options.snapToGrid),t-=Math.abs(a[0])<this.options.snapToGrid/2?a[0]:a[0]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),e-=Math.abs(a[1])<this.options.snapToGrid/2?a[1]:a[1]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(t,e,i,n)},t.prototype.constraintToBox=function(t,e,i,n){var a,r,o=this.options.constraint||{};return void 0!==n?(a=i,r=n):(a=this.parameters.box.x+(1&i?0:this.parameters.box.width),r=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==o.minX&&a+t<o.minX&&(t=o.minX-a),void 0!==o.maxX&&a+t>o.maxX&&(t=o.maxX-a),void 0!==o.minY&&r+e<o.minY&&(e=o.minY-r),void 0!==o.maxY&&r+e>o.maxY&&(e=o.maxY-r),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),n=this.parameters.box.width/this.parameters.box.height,a=this.parameters.box.width+t[0],r=this.parameters.box.height-t[1],o=a/r;return o<n?(i[1]=a/n-this.parameters.box.height,e&&(i[1]=-i[1])):o>n&&(i[0]=this.parameters.box.width-r*n,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),function(t,e){void 0===e&&(e={});var i=e.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}('.apexcharts-canvas {\n  position: relative;\n  user-select: none;\n  /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px;\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0, 0, 0, .5);\n  box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n}\n\n\n.apexcharts-inner {\n  position: relative;\n}\n\n.apexcharts-text tspan {\n  font-family: inherit;\n}\n\n.legend-mouseover-inactive {\n  transition: 0.15s ease all;\n  opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0;\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255, 255, 255, 0.96);\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30, 30, 30, 0.8);\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit;\n}\n\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px;\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #ECEFF1;\n  border-bottom: 1px solid #ddd;\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0, 0, 0, 0.7);\n  border-bottom: 1px solid #333;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  font-weight: 600;\n  margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n  display: none;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n  font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0px;\n  margin-right: 10px;\n  border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1;\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px;\n}\n\n.apexcharts-tooltip-series-group-hidden {\n  opacity: 0;\n  height: 0;\n  line-height: 0;\n  padding: 0 !important;\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px;\n}\n\n.apexcharts-tooltip-candlestick {\n  padding: 4px 8px;\n}\n\n.apexcharts-tooltip-candlestick>div {\n  margin: 4px 0;\n}\n\n.apexcharts-tooltip-candlestick span.value {\n  font-weight: bold;\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px;\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777;\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: bold;\n  display: block;\n  margin-bottom: 5px;\n}\n\n.apexcharts-xaxistooltip {\n  opacity: 0;\n  padding: 9px 10px;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #ECEFF1;\n  border: 1px solid #90A4AE;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.5);\n  color: #fff;\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: rgba(236, 239, 241, 0);\n  border-width: 6px;\n  margin-left: -6px;\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: rgba(144, 164, 174, 0);\n  border-width: 7px;\n  margin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n  top: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #ECEFF1;\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after {\n  border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #ECEFF1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after {\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n  opacity: 0;\n  padding: 4px 10px;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #ECEFF1;\n  border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, 0.7);\n  border: 1px solid rgba(0, 0, 0, 0.5);\n  color: #fff;\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: rgba(236, 239, 241, 0);\n  border-width: 6px;\n  margin-top: -6px;\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: rgba(144, 164, 174, 0);\n  border-width: 7px;\n  margin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n  left: 100%;\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n  right: 100%;\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after {\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #ECEFF1;\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after {\n  border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0, 0, 0, 0.5);\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1;\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none;\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0;\n}\n\n.apexcharts-selection-rect {\n  cursor: move;\n}\n\n.svg_select_boundingRect, .svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden;\n}\n.apexcharts-selection-rect + g .svg_select_boundingRect,\n.apexcharts-selection-rect + g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden;\n}\n\n.apexcharts-selection-rect + g .svg_select_points_l,\n.apexcharts-selection-rect + g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible;\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon,\n.apexcharts-reset-icon,\n.apexcharts-pan-icon,\n.apexcharts-selection-icon,\n.apexcharts-menu-icon,\n.apexcharts-toolbar-custom-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6E8192;\n  text-align: center;\n}\n\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-menu-icon svg {\n  fill: #6E8192;\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(0.76)\n}\n\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg {\n  fill: #f3f4f5;\n}\n\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg {\n  fill: #008FFB;\n}\n\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg {\n  fill: #333;\n}\n\n.apexcharts-selection-icon,\n.apexcharts-menu-icon {\n  position: relative;\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px;\n}\n\n.apexcharts-zoom-icon,\n.apexcharts-reset-icon,\n.apexcharts-menu-icon {\n  transform: scale(0.85);\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  transform: scale(0.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n  transform: scale(0.62);\n  position: relative;\n  left: 1px;\n  top: 0px;\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6E8192;\n  stroke-width: 2;\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008FFB;\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333;\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0px 6px 2px 6px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: 0.15s ease all;\n  pointer-events: none;\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer;\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee;\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0, 0, 0, 0.7);\n  color: #fff;\n}\n\n@media screen and (min-width: 768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n    opacity: 1;\n  }\n}\n\n.apexcharts-datalabel.apexcharts-element-hidden {\n  opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabels,\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value {\n  cursor: default;\n  pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: 0.3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease;\n}\n\n.apexcharts-canvas .apexcharts-element-hidden {\n  opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n  opacity: 0;\n}\n\n.apexcharts-gridline,\n.apexcharts-annotation-rect,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line,\n.apexcharts-zoom-rect,\n.apexcharts-toolbar svg,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-radar-series path,\n.apexcharts-radar-series polygon {\n  pointer-events: none;\n}\n\n\n/* markers */\n\n.apexcharts-marker {\n  transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n  0% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 1;\n  }\n}\n\n\n/* Resize generated styles */\n\n@keyframes resizeanim {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 0;\n  }\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n}\n\n.resize-triggers,\n.resize-triggers>div,\n.contract-trigger:before {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden;\n}\n\n.resize-triggers>div {\n  background: #eee;\n  overflow: auto;\n}\n\n.contract-trigger:before {\n  width: 200%;\n  height: 200%;\n}'),function(){function t(t){var e=t.__resizeTriggers__,i=e.firstElementChild,n=e.lastElementChild,a=i?i.firstElementChild:null;n&&(n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight),a&&(a.style.width=i.offsetWidth+1+"px",a.style.height=i.offsetHeight+1+"px"),i&&(i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight)}function e(e){var i=this;t(this),this.__resizeRAF__&&r(this.__resizeRAF__),this.__resizeRAF__=a((function(){(function(t){return t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height})(i)&&(i.__resizeLast__.width=i.offsetWidth,i.__resizeLast__.height=i.offsetHeight,i.__resizeListeners__.forEach((function(t){t.call(e)})))}))}var i,n,a=(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return window.setTimeout(t,20)},function(t){return i(t)}),r=(n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(t){return n(t)}),o=!1,s="animationstart",l="Webkit Moz O ms".split(" "),c="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u=document.createElement("fakeelement");if(void 0!==u.style.animationName&&(o=!0),!1===o)for(var d=0;d<l.length;d++)if(void 0!==u.style[l[d]+"AnimationName"]){s=c[d];break}window.addResizeListener=function(i,n){i.__resizeTriggers__||("static"==getComputedStyle(i).position&&(i.style.position="relative"),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=document.createElement("div")).className="resize-triggers",i.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',i.appendChild(i.__resizeTriggers__),t(i),i.addEventListener("scroll",e,!0),s&&i.__resizeTriggers__.addEventListener(s,(function(e){"resizeanim"==e.animationName&&t(i)}))),i.__resizeListeners__.push(n)},window.removeResizeListener=function(t,i){t&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(i),1),t.__resizeListeners__.length||(t.removeEventListener("scroll",e),t.__resizeTriggers__.parentNode&&(t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__))))}}(),void 0===window.Apex&&(window.Apex={});var Yt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","touchstart","touchmove","mouseup","touchend"],this.ctx.animations=new g(this.ctx),this.ctx.axes=new Z(this.ctx),this.ctx.core=new Ot(this.ctx.el,this.ctx),this.ctx.config=new H({}),this.ctx.data=new R(this.ctx),this.ctx.grid=new V(this.ctx),this.ctx.graphics=new v(this.ctx),this.ctx.coreUtils=new _(this.ctx),this.ctx.crosshairs=new J(this.ctx),this.ctx.events=new G(this.ctx),this.ctx.exports=new B(this.ctx),this.ctx.localization=new K(this.ctx),this.ctx.options=new S,this.ctx.responsive=new Q(this.ctx),this.ctx.series=new E(this.ctx),this.ctx.theme=new tt(this.ctx),this.ctx.formatters=new z(this.ctx),this.ctx.titleSubtitle=new et(this.ctx),this.ctx.legend=new lt(this.ctx),this.ctx.toolbar=new ct(this.ctx),this.ctx.dimensions=new ot(this.ctx),this.ctx.updateHelpers=new Pt(this.ctx),this.ctx.zoomPanSelection=new ut(this.ctx),this.ctx.w.globals.tooltip=new vt(this.ctx)}}]),t}(),It=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return n(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,n=this.w.globals.dom.Paper.node;n.parentNode&&n.parentNode.parentNode&&!i&&(n.parentNode.parentNode.style.minHeight="unset");var a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach((function(t){a.removeEventListener(t,e.ctx.events.documentEvent)}));var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elAnnotations=null,r.elLegendWrap=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elDefs=null}}]),t}();return function(){function t(i,n){e(this,t),this.opts=n,this.ctx=this,this.w=new F(n).init(),this.el=i,this.w.globals.cuid=p.randomId(),this.w.globals.chartID=this.w.config.chart.id?p.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Yt(this).initModules(),this.create=p.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return n(t,[{key:"render",value:function(){var t=this;return new Promise((function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var n=t.w.config.chart.events.beforeMount;"function"==typeof n&&n(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),window.addResizeListener(t.el.parentNode,t.parentResizeHandler);var a=t.create(t.w.config.series,{});if(!a)return e(t);t.mount(a).then((function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(a)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new Yt(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new N(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return n.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;var a=_.checkComboSeries(t);n.comboCharts=a.comboCharts,n.comboBarCount=a.comboBarCount;var r=t.every((function(t){return t.data&&0===t.data.length}));(0===t.length||r)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new T(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters()),this.formatters.heatmapLabelFormatters(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var s=this.core.plotChartType(t,o),l=new A(this);l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition();var c={plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}};return{elGraph:s,xyRatios:o,elInner:i.globals.dom.elGraphical,dimensions:c}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,n=i.w;return new Promise((function(a,r){if(null===i.el)return r(new Error("Not enough data to display or target element not found"));(null===e||n.globals.allSeriesCollapsed)&&i.series.handleNoData(),"treemap"!==n.config.chart.type&&i.axes.drawAxis(n.config.chart.type,e.xyRatios),i.grid=new V(i);var o=i.grid.drawGrid();i.annotations=new M(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===n.config.grid.position&&o&&n.globals.dom.elGraphical.add(o.el);var s=new W(t.ctx),l=new X(t.ctx);if(null!==o&&(s.xAxisLabelCorrections(o.xAxisTickWidth),l.setYAxisTextAlignments()),"back"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)n.globals.dom.elGraphical.add(e.elGraph[c]);else n.globals.dom.elGraphical.add(e.elGraph);if("front"===n.config.grid.position&&o&&n.globals.dom.elGraphical.add(o.el),"front"===n.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===n.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"front"===n.config.annotations.position&&(n.globals.dom.Paper.add(n.globals.dom.elAnnotations),i.annotations.drawAxesAnnotations()),!n.globals.noData){if(n.config.tooltip.enabled&&!n.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),n.globals.axisCharts&&(n.globals.isXNumeric||n.config.xaxis.convertedCatToNumeric||n.globals.isTimelineBar))(n.config.chart.zoom.enabled||n.config.chart.selection&&n.config.chart.selection.enabled||n.config.chart.pan&&n.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var u=n.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(t){u[t]=!1}))}n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),n.globals.axisCharts||n.globals.noData||i.core.resizeNonAxisCharts(),a(i)}))}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),window.removeResizeListener(this.el.parentNode,this.parentResizeHandler);var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach((function(e,i){e.id===p.escapeString(t)&&Apex._chartInstances.splice(i,1)})),new It(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,i){return e.updateHelpers._extendSeries(t,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,n,a,r)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w.config.series.slice();return n.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var n=i.w.config.series.slice(),a=0;a<n.length;a++)if(null!==t[a]&&void 0!==t[a])for(var r=0;r<t[a].data.length;r++)n[a].data.push(t[a].data[r]);return i.w.config.series=n,e&&(i.w.globals.initialSeries=p.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise((function(i,n){new It(e.ctx).clear({isUpdating:!0});var a=e.create(e.w.config.series,t);if(!a)return i(e);e.mount(a).then((function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)})).catch((function(t){n(t)}))}))}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach((function(t){e.push(t)}))),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter((function(t){if(t.group)return!0})).map((function(e){return t.w.config.chart.group===e.group?e.chart:t}))}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addXaxisAnnotationExternal(t,e,n)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addYaxisAnnotationExternal(t,e,n)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;i&&(n=i),n.annotations.addPointAnnotationExternal(t,e,n)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new U(this.ctx);return e.getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=new U(this.ctx);return e.getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(){return new B(this.ctx).dataURI()}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){!this.w.globals.noData&&this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=p.escapeString(t),i=Apex._chartInstances.filter((function(t){return t.id===e}))[0];return i&&i.chart}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var n=null;if(-1!==i.publicMethods.indexOf(e)){for(var a=arguments.length,r=new Array(a>2?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];n=i[e].apply(i,r)}return n}}},{key:"merge",value:function(t,e){return p.extend(t,e)}}]),t}()})),function(t){"use strict";t.sessionTimeout=function(e){function i(){clearTimeout(a),(o.countdownMessage||o.countdownBar)&&n("session",!0),"function"==typeof o.onStart&&o.onStart(o),o.keepAlive&&(d||(t.ajax({type:o.ajaxType,url:o.keepAliveUrl,data:o.ajaxData}),d=!0,setTimeout((function(){d=!1}),o.keepAliveInterval))),a=setTimeout((function(){"function"!=typeof o.onWarn?t("#session-timeout-dialog").modal("show"):o.onWarn(o),clearTimeout(a),t("#session-timeout-dialog").hasClass("in")||!o.countdownMessage&&!o.countdownBar||n("dialog",!0),a=setTimeout((function(){"function"!=typeof o.onRedir?window.location=o.redirUrl:o.onRedir(o)}),o.redirAfter-o.warnAfter)}),o.warnAfter)}function n(e,i){clearTimeout(s.timer),"dialog"===e&&i?s.timeLeft=Math.floor((o.redirAfter-o.warnAfter)/1e3):"session"===e&&i&&(s.timeLeft=Math.floor(o.redirAfter/1e3)),o.countdownBar&&"dialog"===e?s.percentLeft=Math.floor(s.timeLeft/((o.redirAfter-o.warnAfter)/1e3)*100):o.countdownBar&&"session"===e&&(s.percentLeft=Math.floor(s.timeLeft/(o.redirAfter/1e3)*100));var a=t(".countdown-holder"),r=s.timeLeft>=0?s.timeLeft:0;if(o.countdownSmart){var l=Math.floor(r/60),c=r%60,u=l>0?l+"m":"";u.length>0&&(u+=" "),u+=c+"s",a.text(u)}else a.text(r+"s");o.countdownBar&&t(".countdown-bar").css("width",s.percentLeft+"%"),s.timeLeft=s.timeLeft-1,s.timer=setTimeout((function(){n(e)}),1e3)}var a,r={title:"Your Session is About to Expire!",message:"Your session is about to expire.",logoutButton:"Logout",keepAliveButton:"Stay Connected",keepAliveUrl:"/keep-alive",ajaxType:"POST",ajaxData:"",redirUrl:"/timed-out",logoutUrl:"/log-out",warnAfter:9e5,redirAfter:12e5,keepAliveInterval:5e3,keepAlive:!0,ignoreUserActivity:!1,onStart:!1,onWarn:!1,onRedir:!1,countdownMessage:!1,countdownBar:!1,countdownSmart:!1},o=r,s={};if(e&&(o=t.extend(r,e)),o.warnAfter>=o.redirAfter)return console.error('Bootstrap-session-timeout plugin is miss-configured. Option "redirAfter" must be equal or greater than "warnAfter".'),!1;if("function"!=typeof o.onWarn){var l=o.countdownMessage?"<p>"+o.countdownMessage.replace(/{timer}/g,'<span class="countdown-holder"></span>')+"</p>":"",c=o.countdownBar?'<div class="progress">                   <div class="progress-bar progress-bar-striped countdown-bar active" role="progressbar" style="min-width: 15px; width: 100%;">                     <span class="countdown-holder"></span>                   </div>                 </div>':"";t("body").append('<div class="modal fade" id="session-timeout-dialog">               <div class="modal-dialog">                 <div class="modal-content">                   <div class="modal-header">                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>                     <h4 class="modal-title">'+o.title+'</h4>                   </div>                   <div class="modal-body">                     <p>'+o.message+"</p>                     "+l+"                     "+c+'                   </div>                   <div class="modal-footer">                     <button id="session-timeout-dialog-logout" type="button" class="btn btn-default">'+o.logoutButton+'</button>                     <button id="session-timeout-dialog-keepalive" type="button" class="btn btn-primary" data-dismiss="modal">'+o.keepAliveButton+"</button>                   </div>                 </div>               </div>              </div>"),t("#session-timeout-dialog-logout").on("click",(function(){window.location=o.logoutUrl})),t("#session-timeout-dialog").on("hide.bs.modal",(function(){i()}))}if(!o.ignoreUserActivity){var u=[-1,-1];t(document).on("keyup mouseup mousemove touchend touchmove",(function(e){if("mousemove"===e.type){if(e.clientX===u[0]&&e.clientY===u[1])return;u[0]=e.clientX,u[1]=e.clientY}i(),t("#session-timeout-dialog").length>0&&t("#session-timeout-dialog").data("bs.modal")&&t("#session-timeout-dialog").data("bs.modal").isShown&&(t("#session-timeout-dialog").modal("hide"),t("body").removeClass("modal-open"),t("div.modal-backdrop").remove())}))}var d=!1;i()}}(jQuery),function(t){t.idleTimer=function(e,i){var n;"object"==typeof e?(n=e,e=null):"number"==typeof e&&(n={timeout:e},e=null),i=i||document,n=t.extend({idle:!1,timeout:3e4,events:"mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove"},n);var a=t(i),r=a.data("idleTimerObj")||{},o=function(e){var n=t.data(i,"idleTimerObj")||{};n.idle=!n.idle,n.olddate=+new Date;var a=t.Event((n.idle?"idle":"active")+".idleTimer");t(i).trigger(a,[i,t.extend({},n),e])},s=function(e){var n=t.data(i,"idleTimerObj")||{};if(("storage"!==e.type||e.originalEvent.key===n.timerSyncId)&&null==n.remaining){if("mousemove"===e.type){if(e.pageX===n.pageX&&e.pageY===n.pageY)return;if(void 0===e.pageX&&void 0===e.pageY)return;if(200>+new Date-n.olddate)return}clearTimeout(n.tId),n.idle&&o(e),n.lastActive=+new Date,n.pageX=e.pageX,n.pageY=e.pageY,"storage"!==e.type&&n.timerSyncId&&"undefined"!=typeof localStorage&&localStorage.setItem(n.timerSyncId,n.lastActive),n.tId=setTimeout(o,n.timeout)}},l=function(){var e=t.data(i,"idleTimerObj")||{};e.idle=e.idleBackup,e.olddate=+new Date,e.lastActive=e.olddate,e.remaining=null,clearTimeout(e.tId),e.idle||(e.tId=setTimeout(o,e.timeout))};if(null===e&&void 0!==r.idle)return l(),a;if(null===e);else{if(null!==e&&void 0===r.idle)return!1;if("destroy"===e)return function(){var e=t.data(i,"idleTimerObj")||{};clearTimeout(e.tId),a.removeData("idleTimerObj"),a.off("._idleTimer")}(),a;if("pause"===e)return function(){var e=t.data(i,"idleTimerObj")||{};null==e.remaining&&(e.remaining=e.timeout-(+new Date-e.olddate),clearTimeout(e.tId))}(),a;if("resume"===e)return function(){var e=t.data(i,"idleTimerObj")||{};null!=e.remaining&&(e.idle||(e.tId=setTimeout(o,e.remaining)),e.remaining=null)}(),a;if("reset"===e)return l(),a;if("getRemainingTime"===e)return function(){var e=t.data(i,"idleTimerObj")||{};if(e.idle)return 0;if(null!=e.remaining)return e.remaining;var n=e.timeout-(+new Date-e.lastActive);return 0>n&&(n=0),n}();if("getElapsedTime"===e)return+new Date-r.olddate;if("getLastActiveTime"===e)return r.lastActive;if("isIdle"===e)return r.idle}return a.on(t.trim((n.events+" ").split(" ").join("._idleTimer ")),(function(t){s(t)})),n.timerSyncId&&t(window).bind("storage",s),(r=t.extend({},{olddate:+new Date,lastActive:+new Date,idle:n.idle,idleBackup:n.idle,timeout:n.timeout,remaining:null,timerSyncId:n.timerSyncId,tId:null,pageX:null,pageY:null})).idle||(r.tId=setTimeout(o,r.timeout)),t.data(i,"idleTimerObj",r),a},t.fn.idleTimer=function(e){return this[0]?t.idleTimer(e,this[0]):this}}(jQuery),
/*!
Waypoints - 4.0.1
Copyright © 2011-2016 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
function(){"use strict";var t=0,e={};function i(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,n),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var n in e)i.push(e[n]);for(var a=0,r=i.length;a<r;a++)i[a][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,i={},n=window.Waypoint,a=window.onload;function r(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),n=this.element==this.element.window;t&&e&&!n&&(this.adapter.off(".waypoints"),delete i[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,n.requestAnimationFrame(e))}))},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",(function(){t.didScroll&&!n.isTouch||(t.didScroll=!0,n.requestAnimationFrame(e))}))},r.prototype.handleResize=function(){n.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var n=e[i],a=n.newScroll>n.oldScroll?n.forward:n.backward;for(var r in this.waypoints[i]){var o=this.waypoints[i][r];if(null!==o.triggerPoint){var s=n.oldScroll<o.triggerPoint,l=n.newScroll>=o.triggerPoint;(s&&l||!s&&!l)&&(o.queueTrigger(a),t[o.group.id]=o.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,a=t.length;n<a;n++)t[n].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),a={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var o=t[r];for(var s in this.waypoints[r]){var l,c,u,d,h=this.waypoints[r][s],f=h.options.offset,p=h.triggerPoint,m=0,g=null==p;h.element!==h.element.window&&(m=h.adapter.offset()[o.offsetProp]),"function"==typeof f?f=f.apply(h):"string"==typeof f&&(f=parseFloat(f),h.options.offset.indexOf("%")>-1&&(f=Math.ceil(o.contextDimension*f/100))),l=o.contextScroll-o.contextOffset,h.triggerPoint=Math.floor(m+l-f),c=p<o.oldScroll,u=h.triggerPoint>=o.oldScroll,d=!c&&!u,!g&&(c&&u)?(h.queueTrigger(o.backward),a[h.group.id]=h.group):(!g&&d||g&&o.oldScroll>=h.triggerPoint)&&(h.queueTrigger(o.forward),a[h.group.id]=h.group)}}return n.requestAnimationFrame((function(){for(var t in a)a[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in i)i[t].refresh()},r.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){a&&a(),r.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},n.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},n=window.Waypoint;function a(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}a.prototype.add=function(t){this.waypoints.push(t)},a.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},a.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],a="up"===i||"left"===i;n.sort(a?e:t);for(var r=0,o=n.length;r<o;r+=1){var s=n[r];(s.options.continuous||r===n.length-1)&&s.trigger([i])}}this.clearTriggerQueues()},a.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},a.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},a.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},a.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},a.prototype.first=function(){return this.waypoints[0]},a.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},a.findOrCreate=function(t){return i[t.axis][t.name]||new a(t)},n.Group=a}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,n){i[n]=t[n]})),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],n=arguments[0];return e.isFunction(arguments[0])&&((n=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var a=e.extend({},n,{element:this});"string"==typeof a.context&&(a.context=e(this).closest(a.context)[0]),i.push(new t(a))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}(),function(t){"use strict";t.fn.counterUp=function(e){var i=t.extend({time:400,delay:10},e);return this.each((function(){var e=t(this),n=i;e.waypoint((function(){var t=n.time/n.delay,i=e.attr("data-value"),a=[i],r=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");for(var o=(/^[0-9]+$/.test(i),/^[0-9]+\.[0-9]+$/.test(i)),s=o?(i.split(".")[1]||[]).length:0,l=t;l>=1;l--){var c=parseInt(i/t*l);if(o&&(c=parseFloat(i/t*l).toFixed(s)),r)for(;/(\d+)(\d{3})/.test(c.toString());)c=c.toString().replace(/(\d+)(\d{3})/,"$1,$2");a.unshift(c)}e.data("counterup-nums",a),e.text("0");e.data("counterup-func",(function(){e.data("counterup-nums")&&(e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),n.delay):(e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null)))})),setTimeout(e.data("counterup-func"),n.delay)}),{offset:"100%",triggerOnce:!0})}))}}(jQuery),function(t){function e(){for(var t=0;t<x.length;t++)x[t][0](x[t][1]);x=[],p=!1}function i(t,i){x.push([t,i]),p||(p=!0,_(e,0))}function n(t){var e=(i=t.owner).state_,i=i.data_,n=t[e];if(t=t.then,"function"==typeof n){e=v;try{i=n(i)}catch(e){s(t,e)}}a(t,i)||(e===v&&r(t,i),e===y&&s(t,i))}function a(t,e){var i;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"==typeof e)){var n=e.then;if("function"==typeof n)return n.call(e,(function(n){i||(i=!0,e!==n?r(t,n):o(t,n))}),(function(e){i||(i=!0,s(t,e))})),!0}}catch(e){return i||s(t,e),!0}return!1}function r(t,e){t!==e&&a(t,e)||o(t,e)}function o(t,e){t.state_===m&&(t.state_=g,t.data_=e,i(c,t))}function s(t,e){t.state_===m&&(t.state_=g,t.data_=e,i(u,t))}function l(t){var e=t.then_;for(t.then_=void 0,t=0;t<e.length;t++)n(e[t])}function c(t){t.state_=v,l(t)}function u(t){t.state_=y,l(t)}function d(t){if("function"!=typeof t)throw new TypeError("Promise constructor takes a function argument");if(!1==this instanceof d)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(t,e){function i(t){s(e,t)}try{t((function(t){r(e,t)}),i)}catch(t){i(t)}}(t,this)}var h=t.Promise,f=h&&"resolve"in h&&"reject"in h&&"all"in h&&"race"in h&&function(){var t;return new h((function(e){t=e})),"function"==typeof t}();"undefined"!=typeof exports&&exports?(exports.Promise=f?h:d,exports.Polyfill=d):"function"==typeof define&&define.amd?define((function(){return f?h:d})):f||(t.Promise=d);var p,m="pending",g="sealed",v="fulfilled",y="rejected",b=function(){},_="undefined"!=typeof setImmediate?setImmediate:setTimeout,x=[];d.prototype={constructor:d,state_:m,then_:null,data_:void 0,then:function(t,e){var a={owner:this,then:new this.constructor(b),fulfilled:t,rejected:e};return this.state_===v||this.state_===y?i(n,a):this.then_.push(a),a.then},catch:function(t){return this.then(null,t)}},d.all=function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("You must pass an array to Promise.all().");return new this((function(e,i){function n(t){return o++,function(i){r[t]=i,--o||e(r)}}for(var a,r=[],o=0,s=0;s<t.length;s++)(a=t[s])&&"function"==typeof a.then?a.then(n(s),i):r[s]=a;o||e(r)}))},d.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))throw new TypeError("You must pass an array to Promise.race().");return new this((function(e,i){for(var n,a=0;a<t.length;a++)(n=t[a])&&"function"==typeof n.then?n.then(e,i):e(n)}))},d.resolve=function(t){return t&&"object"==typeof t&&t.constructor===this?t:new this((function(e){e(t)}))},d.reject=function(t){return new this((function(e,i){i(t)}))}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,(function(){"use strict";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(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,n=arguments[e];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,i){return(l=s()?Reflect.construct:function(t,e,i){var n=[null];return n.push.apply(n,e),n=new(Function.bind.apply(t,n)),i&&o(n,i.prototype),n}).apply(null,arguments)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,i){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){if(t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e))return(e=Object.getOwnPropertyDescriptor(t,e)).get?e.get.call(i):e.value})(t,e,i||t)}function d(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){return Object.keys(t).map((function(e){return t[e]}))}function f(t){return Array.prototype.slice.call(t)}function p(t,e){e='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===U.indexOf(e)&&(U.push(e),V(e))}function m(t){return t&&"function"==typeof t.toPromise}function g(t){return m(t)?t.toPromise():Promise.resolve(t)}function v(t){return t&&Promise.resolve(t)===t}function y(e){return e instanceof Element||"object"===t(e=e)&&e.jquery}function b(){return document.body.querySelector(".".concat(K.container))}function _(t){var e=b();return e?e.querySelector(t):null}function x(t){return _(".".concat(t))}function w(){return x(K.popup)}function k(){return f(w().querySelectorAll(".".concat(K.icon)))}function S(){var t=k().filter((function(t){return yt(t)}));return t.length?t[0]:null}function M(){return x(K.title)}function L(){return x(K.content)}function T(){return x(K.image)}function C(){return x(K["progress-steps"])}function A(){return x(K["validation-message"])}function D(){return _(".".concat(K.actions," .").concat(K.confirm))}function E(){return _(".".concat(K.actions," .").concat(K.deny))}function O(){return _(".".concat(K.loader))}function P(){return _(".".concat(K.actions," .").concat(K.cancel))}function Y(){return x(K.actions)}function I(){return x(K.header)}function N(){return x(K.footer)}function H(){return x(K["timer-progress-bar"])}function j(){return x(K.close)}function F(){var t=f(w().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0})),e=f(w().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(t.concat(e)).filter((function(t){return yt(t)}))}function R(){return!J()&&!document.body.classList.contains(K["no-backdrop"])}function z(t,e){t.textContent="",e&&(f((e=(new DOMParser).parseFromString(e,"text/html")).querySelector("head").childNodes).forEach((function(e){t.appendChild(e)})),f(e.querySelector("body").childNodes).forEach((function(e){t.appendChild(e)})))}function $(t,e){if(e){for(var i=e.split(/\s+/),n=0;n<i.length;n++)if(!t.classList.contains(i[n]))return;return 1}}function B(e,i,n){var a,r;if(r=i,f((a=e).classList).forEach((function(t){-1===h(K).indexOf(t)&&-1===h(Z).indexOf(t)&&-1===h(r.showClass).indexOf(t)&&a.classList.remove(t)})),i.customClass&&i.customClass[n]){if("string"!=typeof i.customClass[n]&&!i.customClass[n].forEach)return V("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(t(i.customClass[n]),'"'));mt(e,i.customClass[n])}}var W="SweetAlert2:",V=function(e){console.warn("".concat(W," ").concat("object"===t(e)?e.join(" "):e))},q=function(t){console.error("".concat(W," ").concat(t))},U=[],X=function(t){return"function"==typeof t?t():t},G=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),K=(ei=function(t){var e,i={};for(e in t)i[t[e]]="swal2-"+t[e];return i})(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),Z=ei(["success","warning","info","question","error"]),J=function(){return document.body.classList.contains(K["toast-shown"])},Q={previousBodyPadding:null};function tt(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return vt(t,K[e]);case"checkbox":return t.querySelector(".".concat(K.checkbox," input"));case"radio":return t.querySelector(".".concat(K.radio," input:checked"))||t.querySelector(".".concat(K.radio," input:first-child"));case"range":return t.querySelector(".".concat(K.range," input"));default:return vt(t,K.input)}}function et(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function it(t,e,i){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((function(e){t.forEach?t.forEach((function(t){i?t.classList.add(e):t.classList.remove(e)})):i?t.classList.add(e):t.classList.remove(e)})))}function nt(t,e,i){i==="".concat(parseInt(i))&&(i=parseInt(i)),i||0===parseInt(i)?t.style[e]="number"==typeof i?"".concat(i,"px"):i:t.style.removeProperty(e)}function at(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex";t.style.display=e}function rt(t){t.style.display="none"}function ot(t,e,i,n){(e=t.querySelector(e))&&(e.style[i]=n)}function st(t,e,i){e?at(t,i):rt(t)}function lt(t){return!!(t.scrollHeight>t.clientHeight)}function ct(t){var e=window.getComputedStyle(t);t=parseFloat(e.getPropertyValue("animation-duration")||"0"),e=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<t||0<e}function ut(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=H();yt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout((function(){i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))}function dt(){return"undefined"==typeof window||"undefined"==typeof document}function ht(t){ni.isVisible()&&pt!==t.target.value&&ni.resetValidationMessage(),pt=t.target.value}function ft(e,i){e instanceof HTMLElement?i.appendChild(e):"object"===t(e)?_t(e,i):e&&z(i,e)}var pt,mt=function(t,e){it(t,e,!0)},gt=function(t,e){it(t,e,!1)},vt=function(t,e){for(var i=0;i<t.childNodes.length;i++)if($(t.childNodes[i],e))return t.childNodes[i]},yt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},bt='\n <div aria-labelledby="'.concat(K.title,'" aria-describedby="').concat(K.content,'" class="').concat(K.popup,'" tabindex="-1">\n   <div class="').concat(K.header,'">\n     <ul class="').concat(K["progress-steps"],'"></ul>\n     <div class="').concat(K.icon," ").concat(Z.error,'"></div>\n     <div class="').concat(K.icon," ").concat(Z.question,'"></div>\n     <div class="').concat(K.icon," ").concat(Z.warning,'"></div>\n     <div class="').concat(K.icon," ").concat(Z.info,'"></div>\n     <div class="').concat(K.icon," ").concat(Z.success,'"></div>\n     <img class="').concat(K.image,'" />\n     <h2 class="').concat(K.title,'" id="').concat(K.title,'"></h2>\n     <button type="button" class="').concat(K.close,'"></button>\n   </div>\n   <div class="').concat(K.content,'">\n     <div id="').concat(K.content,'" class="').concat(K["html-container"],'"></div>\n     <input class="').concat(K.input,'" />\n     <input type="file" class="').concat(K.file,'" />\n     <div class="').concat(K.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(K.select,'"></select>\n     <div class="').concat(K.radio,'"></div>\n     <label for="').concat(K.checkbox,'" class="').concat(K.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(K.label,'"></span>\n     </label>\n     <textarea class="').concat(K.textarea,'"></textarea>\n     <div class="').concat(K["validation-message"],'" id="').concat(K["validation-message"],'"></div>\n   </div>\n   <div class="').concat(K.actions,'">\n     <div class="').concat(K.loader,'"></div>\n     <button type="button" class="').concat(K.confirm,'"></button>\n     <button type="button" class="').concat(K.deny,'"></button>\n     <button type="button" class="').concat(K.cancel,'"></button>\n   </div>\n   <div class="').concat(K.footer,'"></div>\n   <div class="').concat(K["timer-progress-bar-container"],'">\n     <div class="').concat(K["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),_t=function(t,e){t.jquery?xt(e,t):z(e,t.toString())},xt=function(t,e){if(t.textContent="",0 in e)for(var i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},wt=function(){if(dt())return!1;var t,e=document.createElement("div"),i={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(t in i)if(Object.prototype.hasOwnProperty.call(i,t)&&void 0!==e.style[t])return i[t];return!1}();function kt(t,e,i){st(t,i["show".concat(d(e),"Button")],"inline-block"),z(t,i["".concat(e,"ButtonText")]),t.setAttribute("aria-label",i["".concat(e,"ButtonAriaLabel")]),t.className=K[e],B(t,i,"".concat(e,"Button")),mt(t,i["".concat(e,"ButtonClass")])}function St(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}function Mt(t,e,i){var n,a;i.inputLabel&&(t.id=K.input,n=document.createElement("label"),a=K["input-label"],n.setAttribute("for",t.id),n.className=a,mt(n,i.customClass.inputLabel),n.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",n))}var Lt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Tt=["input","file","range","select","radio","checkbox","textarea"],Ct=function(t){return t=K[t]||K.input,vt(L(),t)},At={};function Dt(t,e){var i,n,a,r=L().querySelector("#".concat(K.content));e.html?(ft(e.html,r),at(r,"block")):e.text?(r.textContent=e.text,at(r,"block")):rt(r),t=t,i=e,n=L(),t=Lt.innerParams.get(t),a=!t||i.input!==t.input,Tt.forEach((function(t){var e=K[t],r=vt(n,e);(function(t,e){var i=tt(L(),t);if(i)for(var n in function(t){for(var e=0;e<t.attributes.length;e++){var i=t.attributes[e].name;-1===["type","value","style"].indexOf(i)&&t.removeAttribute(i)}}(i),e)"range"===t&&"placeholder"===n||i.setAttribute(n,e[n])})(t,i.inputAttributes),r.className=e,a&&rt(r)})),i.input&&(a&&function(t){if(!At[t.input])return q('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Ct(t.input),i=At[t.input](e,t);at(i),setTimeout((function(){et(i)}))}(i),function(t){var e=Ct(t.input);t.customClass&&mt(e,t.customClass.input)}(i)),B(L(),e,"content")}function Et(){return b()&&b().getAttribute("data-queue-step")}function Ot(t,e){var i=I();B(i,e,"header"),function(t,e){var i=C();if(!e.progressSteps||0===e.progressSteps.length)return rt(i),0;at(i),i.textContent="";var n=parseInt(void 0===e.currentProgressStep?Et():e.currentProgressStep);n>=e.progressSteps.length&&V("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,a){var r;r=t,t=document.createElement("li"),mt(t,K["progress-step"]),z(t,r),t=t,i.appendChild(t),a===n&&mt(t,K["active-progress-step"]),a!==e.progressSteps.length-1&&(t=e,a=document.createElement("li"),mt(a,K["progress-step-line"]),t.progressStepsDistance&&(a.style.width=t.progressStepsDistance),a=a,i.appendChild(a))}))}(0,e),i=t,t=e,(i=Lt.innerParams.get(i))&&t.icon===i.icon&&S()?Nt(S(),t):(It(),t.icon&&(-1!==Object.keys(Z).indexOf(t.icon)?(at(i=_(".".concat(K.icon,".").concat(Z[t.icon]))),jt(i,t),Nt(i,t),mt(i,t.showClass.icon)):q('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')))),function(t){var e=T();if(!t.imageUrl)return rt(e);at(e,""),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),nt(e,"width",t.imageWidth),nt(e,"height",t.imageHeight),e.className=K.image,B(e,t,"image")}(e),i=e,st(t=M(),i.title||i.titleText),i.title&&ft(i.title,t),i.titleText&&(t.innerText=i.titleText),B(t,i,"title"),i=e,z(e=j(),i.closeButtonHtml),B(e,i,"closeButton"),st(e,i.showCloseButton),e.setAttribute("aria-label",i.closeButtonAriaLabel)}function Pt(t,e){var i,n;n=e,nt(i=w(),"width",n.width),nt(i,"padding",n.padding),n.background&&(i.style.background=n.background),$t(i,n),function(t,e){var i,n,a=b();a&&(n=a,"string"==typeof(i=e.backdrop)?n.style.background=i:i||mt([document.documentElement,document.body],K["no-backdrop"]),!e.backdrop&&e.allowOutsideClick&&V('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),n=a,(i=e.position)in K?mt(n,K[i]):(V('The "position" parameter is not valid, defaulting to "center"'),mt(n,K.center)),i=a,!(n=e.grow)||"string"!=typeof n||(n="grow-".concat(n))in K&&mt(i,K[n]),B(a,e,"container"),(e=document.body.getAttribute("data-swal2-queue-step"))&&(a.setAttribute("data-queue-step",e),document.body.removeAttribute("data-swal2-queue-step")))}(0,e),Ot(t,e),Dt(t,e),function(t,e){var i,n,a,r,o=Y(),s=O(),l=D(),c=E(),u=P();e.showConfirmButton||e.showDenyButton||e.showCancelButton||rt(o),B(o,e,"actions"),kt(l,"confirm",e),kt(c,"deny",e),kt(u,"cancel",e),i=l,n=c,a=u,(r=e).buttonsStyling?(mt([i,n,a],K.styled),r.confirmButtonColor&&(i.style.backgroundColor=r.confirmButtonColor),r.denyButtonColor&&(n.style.backgroundColor=r.denyButtonColor),r.cancelButtonColor&&(a.style.backgroundColor=r.cancelButtonColor)):gt([i,n,a],K.styled),e.reverseButtons&&(o.insertBefore(u,s),o.insertBefore(c,s),o.insertBefore(l,s)),z(s,e.loaderHtml),B(s,e,"loader")}(0,e),n=e,st(t=N(),n.footer),n.footer&&ft(n.footer,t),B(t,n,"footer"),"function"==typeof e.didRender?e.didRender(w()):"function"==typeof e.onRender&&e.onRender(w())}function Yt(){return D()&&D().click()}At.text=At.email=At.password=At.number=At.tel=At.url=function(e,i){return"string"==typeof i.inputValue||"number"==typeof i.inputValue?e.value=i.inputValue:v(i.inputValue)||V('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(i.inputValue),'"')),Mt(e,e,i),St(e,i),e.type=i.input,e},At.file=function(t,e){return Mt(t,t,e),St(t,e),t},At.range=function(t,e){var i=t.querySelector("input"),n=t.querySelector("output");return i.value=e.inputValue,i.type=e.input,n.value=e.inputValue,Mt(i,t,e),t},At.select=function(t,e){var i;return t.textContent="",e.inputPlaceholder&&(z(i=document.createElement("option"),e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)),Mt(t,t,e),t},At.radio=function(t){return t.textContent="",t},At.checkbox=function(t,e){var i=tt(L(),"checkbox");return i.value=1,i.id=K.checkbox,i.checked=Boolean(e.inputValue),z(i=t.querySelector("span"),e.inputPlaceholder),t},At.textarea=function(t,e){function i(t){return parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight)}var n;return t.value=e.inputValue,St(t,e),Mt(t,t,e),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(w()).width),new MutationObserver((function(){var e=t.offsetWidth+i(w())+i(L());w().style.width=n<e?"".concat(e,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})),t};var It=function(){for(var t=k(),e=0;e<t.length;e++)rt(t[e])},Nt=function(t,e){Ft(t,e),Ht(),B(t,e,"icon")},Ht=function(){for(var t=w(),e=window.getComputedStyle(t).getPropertyValue("background-color"),i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),n=0;n<i.length;n++)i[n].style.backgroundColor=e},jt=function(t,e){t.textContent="",e.iconHtml?z(t,Rt(e.iconHtml)):"success"===e.icon?z(t,'\n      <div class="swal2-success-circular-line-left"></div>\n      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    '):"error"===e.icon?z(t,'\n      <span class="swal2-x-mark">\n        <span class="swal2-x-mark-line-left"></span>\n        <span class="swal2-x-mark-line-right"></span>\n      </span>\n    '):z(t,Rt({question:"?",warning:"!",info:"i"}[e.icon]))},Ft=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var i=0,n=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];i<n.length;i++)ot(t,n[i],"backgroundColor",e.iconColor);ot(t,".swal2-success-ring","borderColor",e.iconColor)}},Rt=function(t){return'<div class="'.concat(K["icon-content"],'">').concat(t,"</div>")},zt=[],$t=function(t,e){t.className="".concat(K.popup," ").concat(yt(t)?e.showClass.popup:""),e.toast?(mt([document.documentElement,document.body],K["toast-shown"]),mt(t,K.toast)):mt(t,K.modal),B(t,e,"popup"),"string"==typeof e.customClass&&mt(t,e.customClass),e.icon&&mt(t,K["icon-".concat(e.icon)])};function Bt(t){var e=w();e||ni.fire(),e=w();var i=Y(),n=O();!t&&yt(D())&&(t=D()),at(i),t&&(rt(t),n.setAttribute("data-button-to-replace",t.className)),n.parentNode.insertBefore(n,t),mt([e,i],K.loading),at(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()}function Wt(){if(qt.timeout)return function(){var t=H(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var i=parseInt(window.getComputedStyle(t).width);i=parseInt(e/i*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")}(),qt.timeout.stop()}function Vt(){if(qt.timeout){var t=qt.timeout.start();return ut(t),t}}var qt={},Ut=!1,Xt={};function Gt(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var i in Xt){var n=e.getAttribute(i);if(n)return void Xt[i].fire({template:n})}}function Kt(t){return Object.prototype.hasOwnProperty.call(Qt,t)}function Zt(t){return ee[t]}function Jt(t){for(var e in t)Kt(n=e)||V('Unknown parameter "'.concat(n,'"')),t.toast&&(i=e,-1!==ie.indexOf(i)&&V('The parameter "'.concat(i,'" is incompatible with toasts'))),Zt(i=e)&&p(i,Zt(i));var i,n}var Qt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},te=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ee={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ie=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","heightAuto","keydownListenerCapture"],ne=Object.freeze({isValidParameter:Kt,isUpdatableParameter:function(t){return-1!==te.indexOf(t)},isDeprecatedParameter:Zt,argsToParams:function(e){var i={};return"object"!==t(e[0])||y(e[0])?["title","html","icon"].forEach((function(n,a){"string"==typeof(a=e[a])||y(a)?i[n]=a:void 0!==a&&q("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(t(a)))})):a(i,e[0]),i},isVisible:function(){return yt(w())},clickConfirm:Yt,clickDeny:function(){return E()&&E().click()},clickCancel:function(){return P()&&P().click()},getContainer:b,getPopup:w,getTitle:M,getContent:L,getHtmlContainer:function(){return x(K["html-container"])},getImage:T,getIcon:S,getIcons:k,getInputLabel:function(){return x(K["input-label"])},getCloseButton:j,getActions:Y,getConfirmButton:D,getDenyButton:E,getCancelButton:P,getLoader:O,getHeader:I,getFooter:N,getTimerProgressBar:H,getFocusableElements:F,getValidationMessage:A,isLoading:function(){return w().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return l(this,e)},mixin:function(t){return function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(f,i);var l,d,h=(l=f,d=s(),function(){var t,e=r(l);return c(this,d?(t=r(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))});function f(){return e(this,f),h.apply(this,arguments)}return n(f,[{key:"_main",value:function(e,i){return u(r(f.prototype),"_main",this).call(this,e,a({},i,t))}}]),f}(this)},queue:function(t){var e=this;function i(t,e){zt=[],t(e)}zt=t;var n=[];return new Promise((function(t){!function a(r,o){r<zt.length?(document.body.setAttribute("data-swal2-queue-step",r),e.fire(zt[r]).then((function(e){void 0!==e.value?(n.push(e.value),a(r+1,o)):i(t,{dismiss:e.dismiss})}))):i(t,{value:n})}(0)}))},getQueueStep:Et,insertQueueStep:function(t,e){return e&&e<zt.length?zt.splice(e,0,t):zt.push(t)},deleteQueueStep:function(t){void 0!==zt[t]&&zt.splice(t,1)},showLoading:Bt,enableLoading:Bt,getTimerLeft:function(){return qt.timeout&&qt.timeout.getTimerLeft()},stopTimer:Wt,resumeTimer:Vt,toggleTimer:function(){var t=qt.timeout;return t&&(t.running?Wt:Vt)()},increaseTimer:function(t){if(qt.timeout)return ut(t=qt.timeout.increase(t),!0),t},isTimerRunning:function(){return qt.timeout&&qt.timeout.isRunning()},bindClickHandler:function(){Xt[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Ut||(document.body.addEventListener("click",Gt),Ut=!0)}});function ae(){var t,e;Lt.innerParams.get(this)&&(rt((t=Lt.domCache.get(this)).loader),(e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"))).length?at(e[0],"inline-block"):yt(D())||yt(E())||yt(P())||rt(t.actions),gt([t.popup,t.actions],K.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1)}function re(){return!!window.MSInputMethodContext&&!!document.documentMode}function oe(){var t=b(),e=w();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var se=function(t){var e=t.target,i=b();return!(le(t)||ce(t)||e!==i&&(lt(i)||"INPUT"===e.tagName||lt(L())&&L().contains(e)))},le=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},ce=function(t){return t.touches&&1<t.touches.length},ue={swalPromiseResolve:new WeakMap};function de(t,e,i,n){i?me(t,n):(new Promise((function(t){var e=window.scrollX,i=window.scrollY;qt.restoreFocusTimeout=setTimeout((function(){qt.previousActiveElement&&qt.previousActiveElement.focus?(qt.previousActiveElement.focus(),qt.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),void 0!==e&&void 0!==i&&window.scrollTo(e,i)})).then((function(){return me(t,n)})),qt.keydownTarget.removeEventListener("keydown",qt.keydownHandler,{capture:qt.keydownListenerCapture}),qt.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),R()&&(null!==Q.previousBodyPadding&&(document.body.style.paddingRight="".concat(Q.previousBodyPadding,"px"),Q.previousBodyPadding=null),$(document.body,K.iosfix)&&(e=parseInt(document.body.style.top,10),gt(document.body,K.iosfix),document.body.style.top="",document.body.scrollTop=-1*e),"undefined"!=typeof window&&re()&&window.removeEventListener("resize",oe),f(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))),gt([document.documentElement,document.body],[K.shown,K["height-auto"],K["no-backdrop"],K["toast-shown"],K["toast-column"]])}function he(t){var e,i,n,r=w();r&&(t=function(t){return void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:a({isConfirmed:!1,isDenied:!1,isDismissed:!1},t)}(t),(e=Lt.innerParams.get(this))&&!$(r,e.hideClass.popup)&&(i=ue.swalPromiseResolve.get(this),gt(r,e.showClass.popup),mt(r,e.hideClass.popup),n=b(),gt(n,e.showClass.backdrop),mt(n,e.hideClass.backdrop),function(t,e,i){var n=b(),a=wt&&ct(e),r=i.onClose,o=i.onAfterClose,s=i.willClose;i=i.didClose;fe(e,s,r),a?pe(t,e,n,i||o):de(t,n,J(),i||o)}(this,r,e),i(t)))}var fe=function(t,e,i){null!==e&&"function"==typeof e?e(t):null!==i&&"function"==typeof i&&i(t)},pe=function(t,e,i,n){qt.swalCloseEventFinishedCallback=de.bind(null,t,i,J(),n),e.addEventListener(wt,(function(t){t.target===e&&(qt.swalCloseEventFinishedCallback(),delete qt.swalCloseEventFinishedCallback)}))},me=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function ge(t,e,i){var n=Lt.domCache.get(t);e.forEach((function(t){n[t].disabled=i}))}function ve(t,e){if(!t)return!1;if("radio"===t.type)for(var i=t.parentNode.parentNode.querySelectorAll("input"),n=0;n<i.length;n++)i[n].disabled=e;else t.disabled=e}var ye=function(){function t(i,n){e(this,t),this.callback=i,this.remaining=n,this.running=!1,this.start()}return n(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),be={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function _e(t){var e,i;(e=t).inputValidator||Object.keys(be).forEach((function(t){e.input===t&&(e.inputValidator=be[t])})),t.showLoaderOnConfirm&&!t.preConfirm&&V("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=X(t.animation),(i=t).target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(V('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),function(t){var e,i,n,a,r,o=!!(a=b())&&(a.parentNode.removeChild(a),gt([document.documentElement,document.body],[K["no-backdrop"],K["toast-shown"],K["has-column"]]),!0);dt()?q("SweetAlert2 requires document to initialize"):((r=document.createElement("div")).className=K.container,o&&mt(r,K["no-transition"]),z(r,bt),(a="string"==typeof(e=t.target)?document.querySelector(e):e).appendChild(r),o=t,(e=w()).setAttribute("role",o.toast?"alert":"dialog"),e.setAttribute("aria-live",o.toast?"polite":"assertive"),o.toast||e.setAttribute("aria-modal","true"),r=a,"rtl"===window.getComputedStyle(r).direction&&mt(b(),K.rtl),t=L(),o=vt(t,K.input),e=vt(t,K.file),i=t.querySelector(".".concat(K.range," input")),n=t.querySelector(".".concat(K.range," output")),a=vt(t,K.select),r=t.querySelector(".".concat(K.checkbox," input")),t=vt(t,K.textarea),o.oninput=ht,e.onchange=ht,a.onchange=ht,r.onchange=ht,t.oninput=ht,i.oninput=function(t){ht(t),n.value=i.value},i.onchange=function(t){ht(t),i.nextSibling.value=i.value})}(t)}function xe(t){var e=w();t.target===e&&(t=b(),e.removeEventListener(wt,xe),t.style.overflowY="auto")}function we(t,e){t.closePopup({isConfirmed:!0,value:e})}function ke(t,e,i){var n=F();if(n.length)return(e+=i)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();w().focus()}var Se=["swal-title","swal-html","swal-footer"],Me=function(t,e){f(t.attributes).forEach((function(i){-1===e.indexOf(i.name)&&V(['Unrecognized attribute "'.concat(i.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))},Le=function(t,e){"function"==typeof e.didOpen?setTimeout((function(){return e.didOpen(t)})):"function"==typeof e.onOpen&&setTimeout((function(){return e.onOpen(t)}))},Te=function(t,e){wt&&ct(e)?(t.style.overflowY="hidden",e.addEventListener(wt,xe)):t.style.overflowY="auto"},Ce=function(t,e,i){var n;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!$(document.body,K.iosfix)&&(n=document.body.scrollTop,document.body.style.top="".concat(-1*n,"px"),mt(document.body,K.iosfix),function(){var t,e=b();e.ontouchstart=function(e){t=se(e)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}}(),navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||w().scrollHeight>window.innerHeight-44&&(b().style.paddingBottom="".concat(44,"px"))),"undefined"!=typeof window&&re()&&(oe(),window.addEventListener("resize",oe)),e&&"hidden"!==i&&null===Q.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Q.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Q.previousBodyPadding+function(){var t=document.createElement("div");t.className=K["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px")),setTimeout((function(){t.scrollTop=0}))},Ae=function(t,e,i){mt(t,i.showClass.backdrop),e.style.setProperty("opacity","0","important"),at(e),setTimeout((function(){mt(e,i.showClass.popup),e.style.removeProperty("opacity")}),10),mt([document.documentElement,document.body],K.shown),i.heightAuto&&i.backdrop&&!i.toast&&mt([document.documentElement,document.body],K["height-auto"])},De=function(e,i){function n(t){return Ee[i.input](a,Oe(t),i)}var a=L();m(i.inputOptions)||v(i.inputOptions)?(Bt(),g(i.inputOptions).then((function(t){e.hideLoading(),n(t)}))):"object"===t(i.inputOptions)?n(i.inputOptions):q("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(i.inputOptions)))},Ee={select:function(t,e,i){function n(t,e,n){var a=document.createElement("option");a.value=n,z(a,e),a.selected=Pe(n,i.inputValue),t.appendChild(a)}var a=vt(t,K.select);e.forEach((function(t){var e,i=t[0];t=t[1];Array.isArray(t)?((e=document.createElement("optgroup")).label=i,e.disabled=!1,a.appendChild(e),t.forEach((function(t){return n(e,t[1],t[0])}))):n(a,t,i)})),a.focus()},radio:function(t,e,i){var n=vt(t,K.radio);e.forEach((function(t){var e=t[0],a=t[1],r=document.createElement("input");t=document.createElement("label");r.type="radio",r.name=K.radio,r.value=e,Pe(e,i.inputValue)&&(r.checked=!0),z(e=document.createElement("span"),a),e.className=K.label,t.appendChild(r),t.appendChild(e),n.appendChild(t)})),(e=n.querySelectorAll("input")).length&&e[0].focus()}},Oe=function e(i){var n=[];return"undefined"!=typeof Map&&i instanceof Map?i.forEach((function(i,a){"object"===t(i)&&(i=e(i)),n.push([a,i])})):Object.keys(i).forEach((function(a){var r=i[a];"object"===t(r)&&(r=e(r)),n.push([a,r])})),n},Pe=function(t,e){return e&&e.toString()===t.toString()},Ye=function(t,e,i){var n=function(t,e){var i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return function(t){return t.checked?1:0}(i);case"radio":return function(t){return t.checked?t.value:null}(i);case"file":return function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null}(i);default:return e.inputAutoTrim?i.value.trim():i.value}}(t,e);e.inputValidator?Ie(t,e,n):t.getInput().checkValidity()?("deny"===i?Ne:He)(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Ie=function(t,e,i){t.disableInput(),Promise.resolve().then((function(){return g(e.inputValidator(i,e.validationMessage))})).then((function(n){t.enableButtons(),t.enableInput(),n?t.showValidationMessage(n):He(t,e,i)}))},Ne=function(t,e,i){e.preDeny?Promise.resolve().then((function(){return g(e.preDeny(i,e.validationMessage))})).then((function(e){!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===e?i:e})})):t.closePopup({isDenied:!0,value:i})},He=function(t,e,i){e.showLoaderOnConfirm&&Bt(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return g(e.preConfirm(i,e.validationMessage))})).then((function(e){yt(A())||!1===e?t.hideLoading():we(t,void 0===e?i:e)}))):we(t,i)},je=["ArrowRight","ArrowDown","Right","Down"],Fe=["ArrowLeft","ArrowUp","Left","Up"],Re=["Escape","Esc"],ze=function(t,e,i){e.isComposing||e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML&&-1===["textarea","file"].indexOf(i.input)&&(Yt(),e.preventDefault())},$e=function(t,e){for(var i=t.target,n=F(),a=-1,r=0;r<n.length;r++)if(i===n[r]){a=r;break}t.shiftKey?ke(0,a,-1):ke(0,a,1),t.stopPropagation(),t.preventDefault()},Be=function(t){-1!==[D(),E(),P()].indexOf(document.activeElement)&&(t=-1!==je.indexOf(t)?"nextElementSibling":"previousElementSibling",(t=document.activeElement[t])&&t.focus())},We=function(t,e,i){X(e.allowEscapeKey)&&(t.preventDefault(),i(G.esc))},Ve=!1;function qe(e,i){var n=function(e){return(e="string"==typeof e.template?document.querySelector(e.template):e.template)?(function(t){var e=Se.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);f(t.querySelectorAll("*")).forEach((function(i){i.parentNode===t&&(i=i.tagName.toLowerCase(),-1===e.indexOf(i)&&V("Unrecognized element <".concat(i,">")))}))}(e=e.content||e),a(function(e){var i={};return f(e.querySelectorAll("swal-param")).forEach((function(e){Me(e,["name","value"]);var n=e.getAttribute("name");e=e.getAttribute("value"),"boolean"==typeof Qt[n]&&"false"===e&&(e=!1),"object"===t(Qt[n])&&(e=JSON.parse(e)),i[n]=e})),i}(e),function(t){var e={};return f(t.querySelectorAll("swal-button")).forEach((function(t){Me(t,["type","color","aria-label"]);var i=t.getAttribute("type");e["".concat(i,"ButtonText")]=t.innerHTML,e["show".concat(d(i),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(i,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(i,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e}(e),function(t){var e={};return(t=t.querySelector("swal-image"))&&(Me(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt"))),e}(e),function(t){var e={};return(t=t.querySelector("swal-icon"))&&(Me(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e}(e),function(t){var e={},i=t.querySelector("swal-input");return i&&(Me(i,["type","label","placeholder","value"]),e.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(e.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(e.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(e.inputValue=i.getAttribute("value"))),(t=t.querySelectorAll("swal-input-option")).length&&(e.inputOptions={},f(t).forEach((function(t){Me(t,["value"]);var i=t.getAttribute("value");t=t.innerHTML,e.inputOptions[i]=t}))),e}(e),function(t,e){var i,n={};for(i in e){var a=e[i],r=t.querySelector(a);r&&(Me(r,[]),n[a.replace(/^swal-/,"")]=r.innerHTML)}return n}(e,Se))):{}}(e),r=a({},Qt.showClass,i.showClass,n.showClass,e.showClass),o=a({},Qt.hideClass,i.hideClass,n.hideClass,e.hideClass);return(n=a({},Qt,i,n,e)).showClass=r,n.hideClass=o,!1===e.animation&&(n.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},n.hideClass={}),n}function Ue(t,e,i){return new Promise((function(n){function a(e){t.closePopup({isDismissed:!0,dismiss:e})}var r,o,s,l;ue.swalPromiseResolve.set(t,n),e.confirmButton.onclick=function(){return n=i,(e=t).disableButtons(),void(n.input?Ye(e,n,"confirm"):He(e,n,!0));var e,n},e.denyButton.onclick=function(){return n=i,(e=t).disableButtons(),void(n.returnInputValueOnDeny?Ye(e,n,"deny"):Ne(e,n,!1));var e,n},e.cancelButton.onclick=function(){return e=a,t.disableButtons(),void e(G.cancel);var e},e.closeButton.onclick=function(){return a(G.close)},r=t,l=e,n=a,Lt.innerParams.get(r).toast?function(t,e,i){e.popup.onclick=function(){var e=Lt.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||i(G.close)}}(r,l,n):(function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Ve=!0)}}}(l),function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,e.target!==t.popup&&!t.popup.contains(e.target)||(Ve=!0)}}}(l),function(t,e,i){e.container.onclick=function(n){var a=Lt.innerParams.get(t);Ve?Ve=!1:n.target===e.container&&X(a.allowOutsideClick)&&i(G.backdrop)}}(r,l,n)),o=t,l=i,s=a,(n=qt).keydownTarget&&n.keydownHandlerAdded&&(n.keydownTarget.removeEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture}),n.keydownHandlerAdded=!1),l.toast||(n.keydownHandler=function(t){return function(t,e,i){var n=Lt.innerParams.get(t);n.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?ze(t,e,n):"Tab"===e.key?$e(e,n):-1!==[].concat(je,Fe).indexOf(e.key)?Be(e.key):-1!==Re.indexOf(e.key)&&We(e,n,i)}(o,t,s)},n.keydownTarget=l.keydownListenerCapture?window:w(),n.keydownListenerCapture=l.keydownListenerCapture,n.keydownTarget.addEventListener("keydown",n.keydownHandler,{capture:n.keydownListenerCapture}),n.keydownHandlerAdded=!0),(i.toast&&(i.input||i.footer||i.showCloseButton)?mt:gt)(document.body,K["toast-column"]),l=t,"select"===(n=i).input||"radio"===n.input?De(l,n):-1!==["text","email","number","tel","textarea"].indexOf(n.input)&&(m(n.inputValue)||v(n.inputValue))&&function(t,e){var i=t.getInput();rt(i),g(e.inputValue).then((function(n){i.value="number"===e.input?parseFloat(n)||0:"".concat(n),at(i),i.focus(),t.hideLoading()})).catch((function(e){q("Error in inputValue promise: ".concat(e)),i.value="",at(i),i.focus(),t.hideLoading()}))}(l,n),function(t){var e=b(),i=w();"function"==typeof t.willOpen?t.willOpen(i):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(i);var n=window.getComputedStyle(document.body).overflowY;Ae(e,i,t),setTimeout((function(){Te(e,i)}),10),R()&&(Ce(e,t.scrollbarPadding,n),f(document.body.children).forEach((function(t){t===b()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,b())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),J()||qt.previousActiveElement||(qt.previousActiveElement=document.activeElement),Le(i,t),gt(e,K["no-transition"])}(i),Ge(qt,i,a),Ke(e,i),setTimeout((function(){e.container.scrollTop=0}))}))}function Xe(t){var e={popup:w(),container:b(),content:L(),actions:Y(),confirmButton:D(),denyButton:E(),cancelButton:P(),loader:O(),closeButton:j(),validationMessage:A(),progressSteps:C()};return Lt.domCache.set(t,e),e}var Ge=function(t,e,i){var n=H();rt(n),e.timer&&(t.timeout=new ye((function(){i("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(at(n),setTimeout((function(){t.timeout&&t.timeout.running&&ut(e.timer)}))))},Ke=function(t,e){if(!e.toast)return X(e.allowEnterKey)?void(Ze(t,e)||ke(0,-1,1)):Je()},Ze=function(t,e){return e.focusDeny&&yt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&yt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!yt(t.confirmButton)||(t.confirmButton.focus(),0))},Je=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var Qe,ti=function(t){for(var e in t)t[e]=new WeakMap},ei=Object.freeze({hideLoading:ae,disableLoading:ae,getInput:function(t){var e=Lt.innerParams.get(t||this);return(t=Lt.domCache.get(t||this))?tt(t.content,e.input):null},close:he,closePopup:he,closeModal:he,closeToast:he,enableButtons:function(){ge(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){ge(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return ve(this.getInput(),!1)},disableInput:function(){return ve(this.getInput(),!0)},showValidationMessage:function(t){var e=Lt.domCache.get(this),i=Lt.innerParams.get(this);z(e.validationMessage,t),e.validationMessage.className=K["validation-message"],i.customClass&&i.customClass.validationMessage&&mt(e.validationMessage,i.customClass.validationMessage),at(e.validationMessage),(e=this.getInput())&&(e.setAttribute("aria-invalid",!0),e.setAttribute("aria-describedBy",K["validation-message"]),et(e),mt(e,K.inputerror))},resetValidationMessage:function(){var t=Lt.domCache.get(this);t.validationMessage&&rt(t.validationMessage),(t=this.getInput())&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),gt(t,K.inputerror))},getProgressSteps:function(){return Lt.domCache.get(this).progressSteps},_main:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Jt(a({},e,t)),qt.currentInstance&&qt.currentInstance._destroy(),qt.currentInstance=this,_e(t=qe(t,e)),Object.freeze(t),qt.timeout&&(qt.timeout.stop(),delete qt.timeout),clearTimeout(qt.restoreFocusTimeout),e=Xe(this),Pt(this,t),Lt.innerParams.set(this,t),Ue(this,e,t)},update:function(t){var e=w(),i=Lt.innerParams.get(this);if(!e||$(e,i.hideClass.popup))return V("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var n={};Object.keys(t).forEach((function(e){ni.isUpdatableParameter(e)?n[e]=t[e]:V('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),Pt(this,i=a({},i,n)),Lt.innerParams.set(this,i),Object.defineProperties(this,{params:{value:a({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=Lt.domCache.get(this),e=Lt.innerParams.get(this);e&&(t.popup&&qt.swalCloseEventFinishedCallback&&(qt.swalCloseEventFinishedCallback(),delete qt.swalCloseEventFinishedCallback),qt.deferDisposalTimer&&(clearTimeout(qt.deferDisposalTimer),delete qt.deferDisposalTimer),function(t){"function"==typeof t.didDestroy?t.didDestroy():"function"==typeof t.onDestroy&&t.onDestroy()}(e),function(t){delete t.params,delete qt.keydownHandler,delete qt.keydownTarget,ti(Lt),ti(ue)}(this))}}),ii=function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&q("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Qe=this;for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];var r=Object.freeze(this.constructor.argsToParams(n));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}}),r=this._main(this.params),Lt.promise.set(this,r)}}return n(t,[{key:"then",value:function(t){return Lt.promise.get(this).then(t)}},{key:"finally",value:function(t){return Lt.promise.get(this).finally(t)}}]),t}();a(ii.prototype,ei),a(ii,ne),Object.keys(ei).forEach((function(t){ii[t]=function(){if(Qe)return Qe[t].apply(Qe,arguments)}})),ii.DismissReason=G,ii.version="10.13.3";var ni=ii;return ni.default=ni})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),swal.mixin({width:400,heightAuto:!1,padding:"2.5rem",buttonsStyling:!1,confirmButtonClass:"btn btn-success",confirmButtonColor:null,cancelButtonClass:"btn btn-secondary",cancelButtonColor:null}),function(t,e,i){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"undefined"==typeof Meteor?module.exports=t(require("jquery")):t(e||i)}((function(t){"use strict";var e=function(e,i,n){var a={invalid:[],getCaret:function(){try{var t,i=0,n=e.get(0),r=document.selection,o=n.selectionStart;return r&&-1===navigator.appVersion.indexOf("MSIE 10")?((t=r.createRange()).moveStart("character",-a.val().length),i=t.text.length):(o||"0"===o)&&(i=o),i}catch(t){}},setCaret:function(t){try{if(e.is(":focus")){var i,n=e.get(0);n.setSelectionRange?n.setSelectionRange(t,t):((i=n.createTextRange()).collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select())}}catch(t){}},events:function(){e.on("keydown.mask",(function(t){e.data("mask-keycode",t.keyCode||t.which),e.data("mask-previus-value",e.val()),e.data("mask-previus-caret-pos",a.getCaret()),a.maskDigitPosMapOld=a.maskDigitPosMap})).on(t.jMaskGlobals.useInput?"input.mask":"keyup.mask",a.behaviour).on("paste.mask drop.mask",(function(){setTimeout((function(){e.keydown().keyup()}),100)})).on("change.mask",(function(){e.data("changed",!0)})).on("blur.mask",(function(){s===a.val()||e.data("changed")||e.trigger("change"),e.data("changed",!1)})).on("blur.mask",(function(){s=a.val()})).on("focus.mask",(function(e){!0===n.selectOnFocus&&t(e.target).select()})).on("focusout.mask",(function(){n.clearIfNotMatch&&!r.test(a.val())&&a.val("")}))},getRegexMask:function(){for(var t,e,n,a,r,s,l=[],c=0;c<i.length;c++)(t=o.translation[i.charAt(c)])?(e=t.pattern.toString().replace(/.{1}$|^.{1}/g,""),n=t.optional,(a=t.recursive)?(l.push(i.charAt(c)),r={digit:i.charAt(c),pattern:e}):l.push(n||a?e+"?":e)):l.push(i.charAt(c).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return s=l.join(""),r&&(s=s.replace(new RegExp("("+r.digit+"(.*"+r.digit+")?)"),"($1)?").replace(new RegExp(r.digit,"g"),r.pattern)),new RegExp(s)},destroyEvents:function(){e.off(["input","keydown","keyup","paste","drop","blur","focusout",""].join(".mask "))},val:function(t){var i,n=e.is("input"),a=n?"val":"text";return arguments.length>0?(e[a]()!==t&&e[a](t),i=e):i=e[a](),i},calculateCaretPosition:function(t){var i=a.getMasked(),n=a.getCaret();if(t!==i){var r=e.data("mask-previus-caret-pos")||0,o=i.length,s=t.length,l=0,c=0,u=0,d=0,h=0;for(h=n;h<o&&a.maskDigitPosMap[h];h++)c++;for(h=n-1;h>=0&&a.maskDigitPosMap[h];h--)l++;for(h=n-1;h>=0;h--)a.maskDigitPosMap[h]&&u++;for(h=r-1;h>=0;h--)a.maskDigitPosMapOld[h]&&d++;if(n>s)n=10*o;else if(r>=n&&r!==s){if(!a.maskDigitPosMapOld[n]){var f=n;n-=d-u,n-=l,a.maskDigitPosMap[n]&&(n=f)}}else n>r&&(n+=u-d,n+=c)}return n},behaviour:function(i){i=i||window.event,a.invalid=[];var n=e.data("mask-keycode");if(-1===t.inArray(n,o.byPassKeys)){var r=a.getMasked(),s=a.getCaret(),l=e.data("mask-previus-value")||"";return setTimeout((function(){a.setCaret(a.calculateCaretPosition(l))}),t.jMaskGlobals.keyStrokeCompensation),a.val(r),a.setCaret(s),a.callbacks(i)}},getMasked:function(t,e){var r,s,l,c=[],u=void 0===e?a.val():e+"",d=0,h=i.length,f=0,p=u.length,m=1,g="push",v=-1,y=0,b=[];for(n.reverse?(g="unshift",m=-1,r=0,d=h-1,f=p-1,s=function(){return d>-1&&f>-1}):(r=h-1,s=function(){return d<h&&f<p});s();){var _=i.charAt(d),x=u.charAt(f),w=o.translation[_];w?(x.match(w.pattern)?(c[g](x),w.recursive&&(-1===v?v=d:d===r&&d!==v&&(d=v-m),r===v&&(d-=m)),d+=m):x===l?(y--,l=void 0):w.optional?(d+=m,f-=m):w.fallback?(c[g](w.fallback),d+=m,f-=m):a.invalid.push({p:f,v:x,e:w.pattern}),f+=m):(t||c[g](_),x===_?(b.push(f),f+=m):(l=_,b.push(f+y),y++),d+=m)}var k=i.charAt(r);h!==p+1||o.translation[k]||c.push(k);var S=c.join("");return a.mapMaskdigitPositions(S,b,p),S},mapMaskdigitPositions:function(t,e,i){var r=n.reverse?t.length-i:0;a.maskDigitPosMap={};for(var o=0;o<e.length;o++)a.maskDigitPosMap[e[o]+r]=1},callbacks:function(t){var r=a.val(),o=r!==s,l=[r,t,e,n],c=function(t,e,i){"function"==typeof n[t]&&e&&n[t].apply(this,i)};c("onChange",!0===o,l),c("onKeyPress",!0===o,l),c("onComplete",r.length===i.length,l),c("onInvalid",a.invalid.length>0,[r,t,e,a.invalid,n])}};e=t(e);var r,o=this,s=a.val();i="function"==typeof i?i(a.val(),void 0,e,n):i,o.mask=i,o.options=n,o.remove=function(){var t=a.getCaret();return o.options.placeholder&&e.removeAttr("placeholder"),e.data("mask-maxlength")&&e.removeAttr("maxlength"),a.destroyEvents(),a.val(o.getCleanVal()),a.setCaret(t),e},o.getCleanVal=function(){return a.getMasked(!0)},o.getMaskedVal=function(t){return a.getMasked(!1,t)},o.init=function(s){if(s=s||!1,n=n||{},o.clearIfNotMatch=t.jMaskGlobals.clearIfNotMatch,o.byPassKeys=t.jMaskGlobals.byPassKeys,o.translation=t.extend({},t.jMaskGlobals.translation,n.translation),o=t.extend(!0,{},o,n),r=a.getRegexMask(),s)a.events(),a.val(a.getMasked());else{n.placeholder&&e.attr("placeholder",n.placeholder),e.data("mask")&&e.attr("autocomplete","off");for(var l=0,c=!0;l<i.length;l++){var u=o.translation[i.charAt(l)];if(u&&u.recursive){c=!1;break}}c&&e.attr("maxlength",i.length).data("mask-maxlength",!0),a.destroyEvents(),a.events();var d=a.getCaret();a.val(a.getMasked()),a.setCaret(d)}},o.init(!e.is("input"))};t.maskWatchers={};var i=function(){var i=t(this),a={},r="data-mask-",o=i.attr("data-mask");if(i.attr(r+"reverse")&&(a.reverse=!0),i.attr(r+"clearifnotmatch")&&(a.clearIfNotMatch=!0),"true"===i.attr(r+"selectonfocus")&&(a.selectOnFocus=!0),n(i,o,a))return i.data("mask",new e(this,o,a))},n=function(e,i,n){n=n||{};var a=t(e).data("mask"),r=JSON.stringify,o=t(e).val()||t(e).text();try{return"function"==typeof i&&(i=i(o)),"object"!=typeof a||r(a.options)!==r(n)||a.mask!==i}catch(t){}};t.fn.mask=function(i,a){a=a||{};var r=this.selector,o=t.jMaskGlobals,s=o.watchInterval,l=a.watchInputs||o.watchInputs,c=function(){if(n(this,i,a))return t(this).data("mask",new e(this,i,a))};return t(this).each(c),r&&""!==r&&l&&(clearInterval(t.maskWatchers[r]),t.maskWatchers[r]=setInterval((function(){t(document).find(r).each(c)}),s)),this},t.fn.masked=function(t){return this.data("mask").getMaskedVal(t)},t.fn.unmask=function(){return clearInterval(t.maskWatchers[this.selector]),delete t.maskWatchers[this.selector],this.each((function(){var e=t(this).data("mask");e&&e.remove().removeData("mask")}))},t.fn.cleanVal=function(){return this.data("mask").getCleanVal()},t.applyDataMask=function(e){((e=e||t.jMaskGlobals.maskElements)instanceof t?e:t(e)).filter(t.jMaskGlobals.dataMaskAttr).each(i)};var a,r,o,s={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&(a="input",o=document.createElement("div"),(r=(a="on"+a)in o)||(o.setAttribute(a,"return;"),r="function"==typeof o[a]),o=null,r),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};t.jMaskGlobals=t.jMaskGlobals||{},(s=t.jMaskGlobals=t.extend(!0,{},s,t.jMaskGlobals)).dataMask&&t.applyDataMask(),setInterval((function(){t.jMaskGlobals.watchDataMask&&t.applyDataMask()}),s.watchInterval)}),window.jQuery,window.Zepto);var Sticky=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,t),this.selector=e,this.elements=[],this.version="1.3.0",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:i.wrap||!1,wrapWith:i.wrapWith||"<span></span>",marginTop:i.marginTop||0,marginBottom:i.marginBottom||0,stickyFor:i.stickyFor||0,stickyClass:i.stickyClass||null,stickyContainer:i.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}return _createClass(t,[{key:"run",value:function(){var t=this,e=setInterval((function(){if("complete"===document.readyState){clearInterval(e);var i=document.querySelectorAll(t.selector);t.forEach(i,(function(e){return t.renderElement(e)}))}}),10)}},{key:"renderElement",value:function(t){var e=this;t.sticky={},t.sticky.active=!1,t.sticky.marginTop=parseInt(t.getAttribute("data-margin-top"))||this.options.marginTop,t.sticky.marginBottom=parseInt(t.getAttribute("data-margin-bottom"))||this.options.marginBottom,t.sticky.stickyFor=parseInt(t.getAttribute("data-sticky-for"))||this.options.stickyFor,t.sticky.stickyClass=t.getAttribute("data-sticky-class")||this.options.stickyClass,t.sticky.wrap=!!t.hasAttribute("data-sticky-wrap")||this.options.wrap,t.sticky.stickyContainer=this.options.stickyContainer,t.sticky.container=this.getStickyContainer(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect=this.getRectangle(t),"img"===t.tagName.toLowerCase()&&(t.onload=function(){return t.sticky.rect=e.getRectangle(t)}),t.sticky.wrap&&this.wrapElement(t),this.activate(t)}},{key:"wrapElement",value:function(t){t.insertAdjacentHTML("beforebegin",t.getAttribute("data-sticky-wrapWith")||this.options.wrapWith),t.previousSibling.appendChild(t)}},{key:"activate",value:function(t){t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active&&(t.sticky.active=!0),this.elements.indexOf(t)<0&&this.elements.push(t),t.sticky.resizeEvent||(this.initResizeEvents(t),t.sticky.resizeEvent=!0),t.sticky.scrollEvent||(this.initScrollEvents(t),t.sticky.scrollEvent=!0),this.setPosition(t)}},{key:"initResizeEvents",value:function(t){var e=this;t.sticky.resizeListener=function(){return e.onResizeEvents(t)},window.addEventListener("resize",t.sticky.resizeListener)}},{key:"destroyResizeEvents",value:function(t){window.removeEventListener("resize",t.sticky.resizeListener)}},{key:"onResizeEvents",value:function(t){this.vp=this.getViewportSize(),t.sticky.rect=this.getRectangle(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active?t.sticky.active=!0:(t.sticky.rect.top+t.sticky.rect.height>=t.sticky.container.rect.top+t.sticky.container.rect.height||t.sticky.stickyFor>=this.vp.width&&t.sticky.active)&&(t.sticky.active=!1),this.setPosition(t)}},{key:"initScrollEvents",value:function(t){var e=this;t.sticky.scrollListener=function(){return e.onScrollEvents(t)},window.addEventListener("scroll",t.sticky.scrollListener)}},{key:"destroyScrollEvents",value:function(t){window.removeEventListener("scroll",t.sticky.scrollListener)}},{key:"onScrollEvents",value:function(t){t.sticky&&t.sticky.active&&this.setPosition(t)}},{key:"setPosition",value:function(t){this.css(t,{position:"",width:"",top:"",left:""}),this.vp.height<t.sticky.rect.height||!t.sticky.active||(t.sticky.rect.width||(t.sticky.rect=this.getRectangle(t)),t.sticky.wrap&&this.css(t.parentNode,{display:"block",width:t.sticky.rect.width+"px",height:t.sticky.rect.height+"px"}),0===t.sticky.rect.top&&t.sticky.container===this.body?(this.css(t,{position:"fixed",top:t.sticky.rect.top+"px",left:t.sticky.rect.left+"px",width:t.sticky.rect.width+"px"}),t.sticky.stickyClass&&t.classList.add(t.sticky.stickyClass)):this.scrollTop>t.sticky.rect.top-t.sticky.marginTop?(this.css(t,{position:"fixed",width:t.sticky.rect.width+"px",left:t.sticky.rect.left+"px"}),this.scrollTop+t.sticky.rect.height+t.sticky.marginTop>t.sticky.container.rect.top+t.sticky.container.offsetHeight-t.sticky.marginBottom?(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{top:t.sticky.container.rect.top+t.sticky.container.offsetHeight-(this.scrollTop+t.sticky.rect.height+t.sticky.marginBottom)+"px"})):(t.sticky.stickyClass&&t.classList.add(t.sticky.stickyClass),this.css(t,{top:t.sticky.marginTop+"px"}))):(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{position:"",width:"",top:"",left:""}),t.sticky.wrap&&this.css(t.parentNode,{display:"",width:"",height:""})))}},{key:"update",value:function(){var t=this;this.forEach(this.elements,(function(e){e.sticky.rect=t.getRectangle(e),e.sticky.container.rect=t.getRectangle(e.sticky.container),t.activate(e),t.setPosition(e)}))}},{key:"destroy",value:function(){var t=this;window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,(function(e){t.destroyResizeEvents(e),t.destroyScrollEvents(e),delete e.sticky}))}},{key:"getStickyContainer",value:function(t){for(var e=t.parentNode;!e.hasAttribute("data-sticky-container")&&!e.parentNode.querySelector(t.sticky.stickyContainer)&&e!==this.body;)e=e.parentNode;return e}},{key:"getRectangle",value:function(t){this.css(t,{position:"",width:"",top:"",left:""});for(var e=Math.max(t.offsetWidth,t.clientWidth,t.scrollWidth),i=Math.max(t.offsetHeight,t.clientHeight,t.scrollHeight),n=0,a=0;n+=t.offsetTop||0,a+=t.offsetLeft||0,t=t.offsetParent;);return{top:n,left:a,width:e,height:i}}},{key:"getViewportSize",value:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:"updateScrollTopPosition",value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}},{key:"forEach",value:function(t,e){for(var i=0,n=t.length;i<n;i++)e(t[i])}},{key:"css",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])}}]),t}();!function(t,e){"undefined"!=typeof exports?module.exports=e:"function"==typeof define&&define.amd?define([],(function(){return e})):t.Sticky=e}(this,Sticky);var identity=function(t){return t},isArray=function(t){return $.isArray(t)},isObject=function(t){return!isArray(t)&&t instanceof Object},isNumber=function(t){return t instanceof Number},isFunction=function(t){return t instanceof Function},indexOf=function(t,e){return $.inArray(e,t)},inArray=function(t,e){return-1!==indexOf(t,e)},foreach=function(t,e){for(var i in t)t.hasOwnProperty(i)&&e(t[i],i,t)},last=function(t){return t[t.length-1]},argumentsToArray=function(t){return Array.prototype.slice.call(t)},extend=function(){var t={};return foreach(argumentsToArray(arguments),(function(e){foreach(e,(function(e,i){t[i]=e}))})),t},mapToArray=function(t,e){var i=[];return foreach(t,(function(t,n,a){i.push(e(t,n,a))})),i},mapToObject=function(t,e,i){var n={};return foreach(t,(function(t,a,r){a=i?i(a,t):a,n[a]=e(t,a,r)})),n},map=function(t,e,i){return isArray(t)?mapToArray(t,e):mapToObject(t,e,i)},pluck=function(t,e){return map(t,(function(t){return t[e]}))},filter=function(t,e){var i;return isArray(t)?(i=[],foreach(t,(function(t,n,a){e(t,n,a)&&i.push(t)}))):(i={},foreach(t,(function(t,n,a){e(t,n,a)&&(i[n]=t)}))),i},call=function(t,e,i){return map(t,(function(t,n){return t[e].apply(t,i||[])}))},throttle=function(t,e){var i=null;return function(){var n=this,a=arguments;null===i&&(i=setTimeout((function(){i=null}),t),e.apply(n,a))}},mixinPubSub=function(t){var e={};return(t=t||{}).publish=function(t,i){foreach(e[t],(function(t){t(i)}))},t.subscribe=function(t,i){e[t]=e[t]||[],e[t].push(i)},t.unsubscribe=function(t){foreach(e,(function(e){var i=indexOf(e,t);-1!==i&&e.splice(i,1)}))},t};!function(t){"use strict";var e=function(t,e){var i,n=mixinPubSub(),a=t.$;return n.getType=function(){throw'implement me (return type. "text", "radio", etc.)'},n.$=function(t){return t?a.find(t):a},n.disable=function(){n.$().prop("disabled",!0),n.publish("isEnabled",!1)},n.enable=function(){n.$().prop("disabled",!1),n.publish("isEnabled",!0)},e.equalTo=function(t,e){return t===e},e.publishChange=function(t,a){var r=n.get();e.equalTo(r,i)||n.publish("change",{e:t,domElement:a}),i=r},n},i=function(t,i){var n=e(t,i);return n.get=function(){return n.$().val()},n.set=function(t){n.$().val(t)},n.clear=function(){n.set("")},i.buildSetter=function(t){return function(e){t.call(n,e)}},n},n=function(t,e){t=isArray(t)?t:[t],e=isArray(e)?e:[e];var i=!0;return t.length!==e.length?i=!1:foreach(t,(function(t){inArray(e,t)||(i=!1)})),i},a=function(t){var e={},n=i(t,e);return n.getType=function(){return"button"},n.$().on("change",(function(t){e.publishChange(t,this)})),n},r=function(e){var a={},r=i(e,a);return r.getType=function(){return"checkbox"},r.get=function(){var e=[];return r.$().filter(":checked").each((function(){e.push(t(this).val())})),e},r.set=function(e){e=isArray(e)?e:[e],r.$().each((function(){t(this).prop("checked",!1)})),foreach(e,(function(t){r.$().filter('[value="'+t+'"]').prop("checked",!0)}))},a.equalTo=n,r.$().change((function(t){a.publishChange(t,this)})),r},o=function(t){var e=m(t,{});return e.getType=function(){return"email"},e},s=function(i){var n={},a=e(i,n);return a.getType=function(){return"file"},a.get=function(){return last(a.$().val().split("\\"))},a.clear=function(){this.$().each((function(){t(this).wrap("<form>").closest("form").get(0).reset(),t(this).unwrap()}))},a.$().change((function(t){n.publishChange(t,this)})),a},l=function(t){var e={},n=i(t,e);return n.getType=function(){return"hidden"},n.$().change((function(t){e.publishChange(t,this)})),n},c=function(i){var n={},a=e(i,n);return a.getType=function(){return"file[multiple]"},a.get=function(){var t,e=a.$().get(0).files||[],i=[];for(t=0;t<(e.length||0);t+=1)i.push(e[t].name);return i},a.clear=function(){this.$().each((function(){t(this).wrap("<form>").closest("form").get(0).reset(),t(this).unwrap()}))},a.$().change((function(t){n.publishChange(t,this)})),a},u=function(t){var e={},a=i(t,e);return a.getType=function(){return"select[multiple]"},a.get=function(){return a.$().val()||[]},a.set=function(t){a.$().val(""===t?[]:isArray(t)?t:[t])},e.equalTo=n,a.$().change((function(t){e.publishChange(t,this)})),a},d=function(t){var e=m(t,{});return e.getType=function(){return"password"},e},h=function(e){var n={},a=i(e,n);return a.getType=function(){return"radio"},a.get=function(){return a.$().filter(":checked").val()||null},a.set=function(e){e?a.$().filter('[value="'+e+'"]').prop("checked",!0):a.$().each((function(){t(this).prop("checked",!1)}))},a.$().change((function(t){n.publishChange(t,this)})),a},f=function(t){var e={},n=i(t,e);return n.getType=function(){return"range"},n.$().change((function(t){e.publishChange(t,this)})),n},p=function(t){var e={},n=i(t,e);return n.getType=function(){return"select"},n.$().change((function(t){e.publishChange(t,this)})),n},m=function(t){var e={},n=i(t,e);return n.getType=function(){return"text"},n.$().on("change keyup keydown",(function(t){e.publishChange(t,this)})),n},g=function(t){var e={},n=i(t,e);return n.getType=function(){return"textarea"},n.$().on("change keyup keydown",(function(t){e.publishChange(t,this)})),n},v=function(t){var e=m(t,{});return e.getType=function(){return"url"},e},y=function(e){var i={},n=e.$,y=e.constructorOverride||{button:a,text:m,url:v,email:o,password:d,range:f,textarea:g,select:p,"select[multiple]":u,radio:h,checkbox:r,file:s,"file[multiple]":c,hidden:l},b=function(e,a){(isObject(a)?a:n.find(a)).each((function(){var n=t(this).attr("name");i[n]=y[e]({$:t(this)})}))},_=function(e,a){var r=[],o=isObject(a)?a:n.find(a);isObject(a)?i[o.attr("name")]=y[e]({$:o}):(o.each((function(){-1===indexOf(r,t(this).attr("name"))&&r.push(t(this).attr("name"))})),foreach(r,(function(t){i[t]=y[e]({$:n.find('input[name="'+t+'"]')})})))};return n.is("input, select, textarea")?n.is('input[type="button"], button, input[type="submit"]')?b("button",n):n.is("textarea")?b("textarea",n):n.is('input[type="text"]')||n.is("input")&&!n.attr("type")?b("text",n):n.is('input[type="password"]')?b("password",n):n.is('input[type="email"]')?b("email",n):n.is('input[type="url"]')?b("url",n):n.is('input[type="range"]')?b("range",n):n.is("select")?n.is("[multiple]")?b("select[multiple]",n):b("select",n):n.is('input[type="file"]')?n.is("[multiple]")?b("file[multiple]",n):b("file",n):n.is('input[type="hidden"]')?b("hidden",n):n.is('input[type="radio"]')?_("radio",n):n.is('input[type="checkbox"]')?_("checkbox",n):b("text",n):(b("button",'input[type="button"], button, input[type="submit"]'),b("text",'input[type="text"]'),b("password",'input[type="password"]'),b("email",'input[type="email"]'),b("url",'input[type="url"]'),b("range",'input[type="range"]'),b("textarea","textarea"),b("select","select:not([multiple])"),b("select[multiple]","select[multiple]"),b("file",'input[type="file"]:not([multiple])'),b("file[multiple]",'input[type="file"][multiple]'),b("hidden",'input[type="hidden"]'),_("radio",'input[type="radio"]'),_("checkbox",'input[type="checkbox"]')),i};t.fn.inputVal=function(e){var i=t(this),n=y({$:i});return i.is("input, textarea, select")?void 0===e?n[i.attr("name")].get():(n[i.attr("name")].set(e),i):void 0===e?call(n,"get"):(foreach(e,(function(t,e){n[e].set(t)})),i)},t.fn.inputOnChange=function(e){var i=t(this),n=y({$:i});return foreach(n,(function(t){t.subscribe("change",(function(t){e.call(t.domElement,t.e)}))})),i},t.fn.inputDisable=function(){var e=t(this);return call(y({$:e}),"disable"),e},t.fn.inputEnable=function(){var e=t(this);return call(y({$:e}),"enable"),e},t.fn.inputClear=function(){var e=t(this);return call(y({$:e}),"clear"),e}}(jQuery),$.fn.repeaterVal=function(){var t,e,i=function(t){if(1===t.length&&(0===t[0].key.length||1===t[0].key.length&&!t[0].key[0]))return t[0].val;foreach(t,(function(t){t.head=t.key.shift()}));var e,n=function(){var e={};return foreach(t,(function(t){e[t.head]||(e[t.head]=[]),e[t.head].push(t)})),e}();return/^[0-9]+$/.test(t[0].head)?(e=[],foreach(n,(function(t){e.push(i(t))}))):(e={},foreach(n,(function(t,n){e[n]=i(t)}))),e};return i((t=$(this).inputVal(),e=[],foreach(t,(function(t,i){var n=[];"undefined"!==i&&(n.push(i.match(/^[^\[]*/)[0]),n=n.concat(map(i.match(/\[[^\]]*\]/g),(function(t){return t.replace(/[\[\]]/g,"")}))),e.push({val:t,key:n}))})),e))},$.fn.repeater=function(t){var e;return t=t||{},$(this).each((function(){var i=$(this),n=t.show||function(){$(this).show()},a=t.hide||function(t){t()},r=i.find("[data-repeater-list]").first(),o=function(t,e){return t.filter((function(){return!e||0===$(this).closest(pluck(e,"selector").join(",")).length}))},s=function(){return o(r.find("[data-repeater-item]"),t.repeaters)},l=r.find("[data-repeater-item]").first().clone().hide(),c=o(o($(this).find("[data-repeater-item]"),t.repeaters).first().find("[data-repeater-delete]"),t.repeaters);t.isFirstItemUndeletable&&c&&c.remove();var u=function(){var e=r.data("repeater-list");return t.$parent?t.$parent.data("item-name")+"["+e+"]":e},d=function(e){t.repeaters&&e.each((function(){var e=$(this);foreach(t.repeaters,(function(t){e.find(t.selector).repeater(extend(t,{$parent:e}))}))}))},h=function(t,e,i){t&&foreach(t,(function(t){i.call(e.find(t.selector)[0],t)}))},f=function(t,e,i){t.each((function(t){var n=$(this);n.data("item-name",e+"["+t+"]"),o(n.find("[name]"),i).each((function(){var a=$(this),r=a.attr("name").match(/\[[^\]]+\]/g),s=r?last(r).replace(/\[|\]/g,""):a.attr("name"),l=e+"["+t+"]["+s+"]"+(a.is(":checkbox")||a.attr("multiple")?"[]":"");a.attr("name",l),h(i,n,(function(i){var n=$(this);f(o(n.find("[data-repeater-item]"),i.repeaters||[]),e+"["+t+"]["+n.find("[data-repeater-list]").first().data("repeater-list")+"]",i.repeaters)}))}))})),r.find("input[name][checked]").removeAttr("checked").prop("checked",!0)};f(s(),u(),t.repeaters),d(s()),t.initEmpty&&s().remove(),t.ready&&t.ready((function(){f(s(),u(),t.repeaters)}));var p,m=(p=function(e,i,n){if(i||t.defaultValues){var a={};o(e.find("[name]"),n).each((function(){var t=$(this).attr("name").match(/\[([^\]]*)(\]|\]\[\])$/)[1];a[t]=$(this).attr("name")})),e.inputVal(map(filter(i||t.defaultValues,(function(t,e){return a[e]})),identity,(function(t){return a[t]})))}h(n,e,(function(t){var e=$(this);o(e.find("[data-repeater-item]"),t.repeaters).each((function(){var n=e.find("[data-repeater-list]").data("repeater-list");if(i&&i[n]){var a=$(this).clone();e.find("[data-repeater-item]").remove(),foreach(i[n],(function(i){var n=a.clone();p(n,i,t.repeaters||[]),e.find("[data-repeater-list]").append(n)}))}else p($(this),t.defaultValues,t.repeaters||[])}))}))},function(e,i){r.append(e),f(s(),u(),t.repeaters),e.find("[name]").each((function(){$(this).inputClear()})),p(e,i||t.defaultValues,t.repeaters)}),g=function(e){var i=l.clone();m(i,e),t.repeaters&&d(i),n.call(i.get(0))};e=function(t){s().remove(),foreach(t,g)},o(i.find("[data-repeater-create]"),t.repeaters).click((function(){g()})),r.on("click","[data-repeater-delete]",(function(){var e=$(this).closest("[data-repeater-item]").get(0);a.call(e,(function(){$(e).remove(),f(s(),u(),t.repeaters)}))}))})),this.setList=e,this};