1/* @license MIT https://raw.githubusercontent.com/jquery/jquery/3.7.1/LICENSE.txt */
vendor: 87,533 bytes, lines 2-3
2/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 3!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(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&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={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 Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.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:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,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":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.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(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
4; 5/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */ 6/*! @drupal/once - v1.0.1 - 2021-06-12 */ 7var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}(); 8 9; 10/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 11window.drupalTranslations={"strings":{"":{"An AJAX HTTP error occurred.":"Rad\u0101s AJAX HTTP k\u013c\u016bda","HTTP Result Code: !status":"HTTP izn\u0101kuma kods: !status","An AJAX HTTP request terminated abnormally.":"AJAX HTTP piepras\u012bjums tika p\u0101rtraukts anorm\u0101li.","Debugging information follows.":"Inform\u0101cija par atk\u013c\u016bdo\u0161anu tiks sniegta.","Path: !uri":"Ce\u013c\u0161: !uri","StatusText: !statusText":"StatusText: !statusText","ResponseText: !responseText":"ResponseText:!responseText","ReadyState: !readyState":"ReadyState: !readyState","CustomMessage: !customMessage":"Piel\u0101gots Zi\u0146ojums:! CustomMessage","Please wait...":"L\u016bdzu uzgaidiet","The response failed verification so will not be processed.":"Atbildes p\u0101rbaude neizdev\u
110101s, t\u0101p\u0113c t\u0101 netiks apstr\u0101d\u0101ta.","The callback URL is not local and not trusted: !url":"Atzvan\u012b\u0161anas URL nav lok\u0101ls un nav uzticams:!url","Changed":"Labots","Processing...":"Notiek apstr\u0101de...","Hide":"Pasl\u0113pt","Show":"R\u0101d\u012bt","List additional actions":"Uzskait\u012bt papildu darb\u012bbas","New revision":"Jauna rev\u012bzija","No revision":"Nav rev\u012bziju","Needs to be updated":"J\u0101atjaunina","Does not need to be updated":"Nav j\u0101atjaunina","Flag other translations as outdated":"Atz\u012bm\u0113t citus tulkojumus k\u0101 novecoju\u0161us","Do not flag other translations as outdated":"Neatz\u012bm\u0113t citus tulkojumus k\u0101 novecoju\u0161us","Edit":"Redi\u0123\u0113t","Status message":"Statusa zi\u0146ojums","Error message":"K\u013c\u016bdas zi\u0146ojums","Warning message":"Br\u012bdin\u0101juma zi\u0146ojums","Show row weights":"R\u0101d\u012bt rindu svaru","Hide row weights":"Nosl\u0113pt rindu svaru","Drag to re-order":"Velciet, lai k\u0101rtotu","You have unsaved changes.":"Jums ir nesaglab\u0101tas izmai\u0146as.","Show all columns":"R\u0101d\u012bt visas kolonnas","Hide lower priority columns":"Pasl\u0113pt zem\u0101kas priorit\u0101tes kolonnas","Show table cells that were hidden to make the table fit within a small screen.":"R\u0101d\u012bt tabulas \u0161\u016bnas, kas tika pasl\u0113ptas, lai tabula ietilptu maz\u0101 ekr\u0101n\u0101.","Select all rows in this table":"Izv\u0113l\u0113ties visas rindas \u0161aj\u0101 tabul\u0101","Deselect all rows in this table":"Neizv\u0113l\u0113ties nevienu rindu \u0161aj\u0101 tabul\u0101","(active tab)":"(akt\u012bv\u0101 cilne)","1 block is available in the modified list.\u0003@count blocks are available in the modified list.":"@count bloki ir pieejami modific\u0113taj\u0101 sarakst\u0101.\u00031 bloks ir pieejams modific\u0113taj\u0101 sarakst\u0101.\u0003@count bloki ir pieejami modific\u0113taj\u0101 sarakst\u0101.","Not restricted":"Nav ierobe\u017eots","Restricted to certain pages":"Iesp\u0113jots tikai noteikt\u0101m lap\u0101m","The block cannot be placed in this region.":"Bloku nevar pievienot ievietot \u0161aj\u0101 re\u0123ion\u0101.","Rich Text Editor, !label field":"Bag\u0101tin\u0101t\u0101 Teksta Redaktors,!label lauks","Loading...":"Notiek iel\u0101de...","Link":"Saite","Unlink":"Atsaist\u012bt","Edit Link":"Redi\u0123\u0113t saiti","Save":"Saglab\u0101t","Cancel":"Atcelt","Open":"Atv\u0113rt","Close":"Aizv\u0113rt","Tabbing is no longer constrained by the Contextual module.":"Tabul\u0113\u0161anu vairs neierobe\u017eo kontekstu\u0101lais modulis.","Tabbing is constrained to a set of @contextualsCount and the edit mode toggle.":"Tabul\u0113\u0161ana ir ierobe\u017eota ar kopu @contextualsSkait\u012bt un redi\u0123\u0113\u0161anas re\u017e\u012bma p\u0101rsl\u0113g\u0161anu.","Press the esc key to exit.":"Lai izietu, nospiediet tausti\u0146u \u201eesc\u201d.","@count contextual link\u0003@count contextual links":"@count konteksta saites\u0003@count konteksta saite\u0003@count konteksta saites","@action @title configuration options":"@action @title konfigur\u0101cijas opcijas","Changing the text format to %text_format will permanently remove content that is not allowed in that text format.\u003Cbr\u003E\u003Cbr\u003ESave your changes before switching the text format to avoid losing data.":"Teksta form\u0101ta mai\u0146a uz %text_format, neatgriezeniski no\u0146ems saturu, kas nav at\u013cauts \u0161aj\u0101 teksta form\u0101t\u0101.\u003Cbr\u003E\u003Cbr\u003ESaglab\u0101jiet izmai\u0146as pirms teksta form\u0101ta mai\u0146as, lai izvair\u012btos no datu zaud\u0113\u0161anas.","Change text format?":"Vai main\u012bt teksta form\u0101tu?","Continue":"Turpin\u0101t","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Atlas\u012bto failu %filename nevar aug\u0161upiel\u0101d\u0113t. Pie\u013caujami faili tikai ar \u0161\u0101diem papla\u0161in\u0101jumiem: %extensions.","Hide description":"Pasl\u0113pt aprakstu","Show description":"R\u0101d\u012bt aprakstus","Changes made in this table will not be saved until the form is submitted.":"Izmai\u0146as \u0161aj\u0101 tabul\u0101 tiks saglab\u0101tas tikai p\u0113c formas iesnieg\u0161anas.","Done":"Pabeigts","Prev":"Iepr.","Next":"T\u0101l\u0101k","Today":"\u0160odien","Jan":"Jan","Feb":"Feb","Mar":"Mar","Apr":"Apr","May":"Maijs","Jun":"J\u016bn","Jul":"J\u016bl","Aug":"Aug","Sep":"Sep","Oct":"Okt","Nov":"Nov","Dec":"Dec","Sunday":"Sv\u0113tdiena","Monday":"Pirmdiena","Tuesday":"Otrdiena","Wednesday":"Tre\u0161diena","Thursday":"Ceturtdiena","Friday":"Piektdiena","Saturday":"Sestdiena","Sun":"Sv","Mon":"Pr","Tue":"Ot","Wed":"Tr","Thu":"Ce","Fri":"Pk","Sat":"Se","Su":"Sv","Mo":"P","Tu":"O","We":"T","Th":"C","Fr":"P","Sa":"S","mm\/dd\/yy":"mm\/dd\/gg","By @name on @date":"Kas: @name;
11 kad: @date","By @name":"Kas: @name","Authored on @date":"Sagatavots @date","Caption":"Paraksts","Enter caption here":"Ievadiet parakstu \u0161eit","Not published":"Nav public\u0113ts","\u003Cspan class=\u0022visually-hidden\u0022\u003EShow \u003C\/span\u003E@title\u003Cspan class=\u0022visually-hidden\u0022\u003E media\u003C\/span\u003E\u003Cspan class=\u0022active-tab visually-hidden\u0022\u003E (selected)\u003C\/span\u003E":"\u003Cspan class=\u0022visually-hidden\u0022\u003EPar\u0101d\u012bt \u003C\/span\u003E@title\u003Cspan class=\u0022visually-hidden\u0022\u003E medijus \u003C\/span\u003E\u003Cspan class=\u0022active-tab visually-hidden\u0022\u003E (atlas\u012bts)\u003C\/span\u003E","Loading grid view.":"Iel\u0101d\u0113 re\u017e\u0123a skatu.","Changed to grid view.":"Main\u012bts uz re\u017e\u0123a skatu.","Loading table view.":"Iel\u0101d\u0113 tabulas skatu.","Changed to table view.":"Main\u012bts uz tabulas skatu.","1 item selected\u0003@count items selected":"Atlas\u012bts 1 vienums\u0003Atlas\u012bti @count vienumi\u0003Atlas\u012bti @count vienumi","@selected of @count item selected\u0003@selected of @count items selected":"@selected no @count vienuma ir atlas\u012bts\u0003@selected no @count vienumiem ir atlas\u012bti\u0003@selected no @count vienumiem ir atlas\u012bti","All @count items selected":"Atlas\u012bti visi @count vienumi","Zero items selected":"Nav izv\u0113l\u0113ts neviens vienums","Select all media":"Atlasiet visu multividi","Not in menu":"Nav izv\u0113ln\u0113","Not promoted":"Netiek reklam\u0113ts","Leave preview?":"Vai atst\u0101t priek\u0161skat\u012bjumu?","Leave preview":"Atst\u0101t priek\u0161skat\u012bjumu","Leaving the preview will cause unsaved changes to be lost. Are you sure you want to leave the preview?":"Atst\u0101jot priek\u0161skat\u012bjumu, nesaglab\u0101t\u0101s izmai\u0146as tiks zaud\u0113tas. Vai tie\u0161\u0101m v\u0113laties atst\u0101t priek\u0161skat\u012bjumu?","CTRL+Left click will prevent this dialog from showing and proceed to the clicked link.":"CTRL+kreisais klik\u0161\u0137is ne\u013caus \u0161o dialogu par\u0101d\u012bt un p\u0101riet uz saiti, uz kuras tika noklik\u0161\u0137in\u0101ts.","Alias: @alias":"Aizst\u0101jv\u0101rds: @alias","No alias":"Nav aizst\u0101jv\u0101rda","Your changes to \u003Cq\u003E@entity-title\u003C\/q\u003E could not be saved, either due to a website problem or a network connection problem.\u003Cbr\u003EPlease try again.":"J\u016bsu izmai\u0146as \u003Cq\u003E@entity-title\u003C\/q\u003E nevar\u0113ja saglab\u0101t t\u012bmek\u013ca vietnes vai t\u012bkla savienojuma probl\u0113mas d\u0113\u013c.\u003Cbr\u003EL\u016bdzu, m\u0113\u0123iniet v\u0113lreiz.","Network problem!":"T\u012bkla probl\u0113ma!","Quick edit":"\u0100tra redi\u0123\u0113\u0161ana","Alternative text":"Alternat\u012bvs teksts","Title":"Virsraksts","OK":"OK","Could not load the form for \u003Cq\u003E@field-label\u003C\/q\u003E, either due to a website problem or a network connection problem.\u003Cbr\u003EPlease try again.":"Nevar\u0113ja iel\u0101d\u0113t \u003Cq\u003E@field-label\u003C\/q\u003E formu t\u012bmek\u013ca vietnes vai t\u012bkla savienojuma probl\u0113mas d\u0113\u013c.","You have unsaved changes":"Jums ir nesaglab\u0101tas izmai\u0146as","Discard changes?":"Vai atmest izmai\u0146as?","Discard changes":"Atmest izmai\u0146as","Saving":"Saglab\u0101\u0161ana","Editing":"Redi\u0123\u0113\u0161ana","Exited edit mode.":"Iziet no redi\u0123\u0113\u0161anas re\u017e\u012bma.","!modules modules are available in the modified list.":"!modules modu\u013ci ir pieejami modific\u0113taj\u0101 sarakst\u0101.","Hide summary":"Pasl\u0113pt kopsavilkumu","Edit summary":"Labot kopsavilkumu","Home":"S\u0101kums","The toolbar cannot be set to a horizontal orientation when it is locked.":"R\u012bkjoslu nevar iestat\u012bt horizont\u0101l\u0101 orient\u0101cij\u0101, kad t\u0101 ir blo\u0137\u0113ta.","Horizontal orientation":"Horizont\u0101l\u0101 orient\u0101cija","Vertical orientation":"Vertik\u0101l\u0101 orient\u0101cija","Extend":"Pagarin\u0101t","Collapse":"Sak\u013caut","@label":"@label","Tray orientation changed to @orientation.":"Ikonjoslas orient\u0101cija main\u012bta uz @orientation.","closed":"sl\u0113gts","opened":"atv\u0113rts","Tray \u0022@tray\u0022 @action.":"Ikonjosla \u201e@tray\u201d @action.","Tray @action.":"Ikonjosla @action.","This permission is inherited from the authenticated user role."
11:"\u0160\u012b at\u013cauja tiek mantota no autentific\u0113t\u0101 lietot\u0101ja lomas.","Add":"Pievienot","Remove group":"No\u0146emt grupu","Apply (all displays)":"Apstiprin\u0101t (visi displeji)","Revert to default":"Atjaunot noklus\u0113juma v\u0113rt\u012bbas","Apply (this display)":"Apstiprin\u0101t (\u0161is displejs)","Select All":"Iez\u012bm\u0113t Visu","Select None":"Atlas\u012bt Nevienu","CSS classes":"CSS klases","ID":"ID","Advanced":"Papla\u0161in\u0101ts","Edit @buttonLabel":"Redi\u0123\u0113t @buttonLabel","All pages with exceptions":"Visas lapas ar iz\u0146\u0113mumiem","Excepted: @roles":"Iz\u0146emot: @roles","Not customizable":"Nav piel\u0101gojams","On by default with opt out":"Iesl\u0113gts p\u0113c noklus\u0113juma ar atteik\u0161anos","Off by default with opt in":"Izsl\u0113gts p\u0113c noklus\u0113juma ar pieteik\u0161anos","Outbound links":"Izejo\u0161\u0101s saites","Mailto links":"Mailto saites","Downloads":"Lejupiel\u0101des","Colorbox":"Kr\u0101su logs","Link attribution":"Saites attiecin\u0101\u0161ana","URL fragments":"URL fragments","Not tracked":"Nav izsekots","@items enabled":"@items iesp\u0113jots","Site search":"Vietnes mekl\u0113\u0161ana","AdSense ads":"\u201eAdSense\u201d rekl\u0101mas","Display features":"Displeja funkcijas","Search API":"Mekl\u0113\u0161anas API","A single domain":"Viens dom\u0113ns","One domain with multiple subdomains":"Viens dom\u0113ns ar vair\u0101kiem apak\u0161dom\u0113niem","Multiple top-level domains":"Vair\u0101kk\u0101rtu augst\u0101k\u0101 l\u012bme\u0146a dom\u0113ni","Anonymize IP":"Padar\u012bt anon\u012bmu IP","No privacy":"Nav priv\u0101tuma","Crop image":"Apgriezt att\u0113lu","Insert images using Imce File Manager":"Ievietot att\u0113lus, izmantojot \u201eImce\u201d Failu P\u0101rvaldnieku","Insert file links using Imce File Manager":"Ievietot saites, izmantojot \u201eImce\u201d Failu P\u0101rvaldnieku","Placeholder":"Vietturis","1 item\u0003@count items":"@count vienumi\u00031 vienums\u0003@count vienums","Clear selection?":"Not\u012br\u012bt atlasi?","Your current selection will be cleared when you start searching.":"S\u0101kot mekl\u0113\u0161anu, j\u016bsu pa\u0161reiz\u0113j\u0101 atlase tiks not\u012br\u012bta.","Your current selection will be cleared when you change the directory.":"J\u016bsu pa\u0161reiz\u0113j\u0101 izv\u0113le tiks not\u012br\u012bta, kad main\u012bsit direktoriju.","Your current selection will be cleared when you add new media.":"J\u016bsu pa\u0161reiz\u0113j\u0101 atlase tiks not\u012br\u012bta, kad pievienosit jaunu multividi.","@selected of 1 remaining item selected\u0003@selected of @count remaining items selected":"@selected no @count atliku\u0161\u0101 vienuma ir atlas\u012bts\u0003@selected no @count atliku\u0161ajiem vienumiem ir atlas\u012bts","New folder":"Jauna mape","Rename":"P\u0101rsaukt","Show translations in new tab":"Tulko\u0161anu atv\u0113rt jaun\u0101 ciln\u0113","Delete":"Dz\u0113st","Add above":"Pievienot virs","Automatic alias":"Autom\u0101tiskais aizst\u0101jv\u0101rds","Scheduled for publishing":"Pl\u0101nots public\u0113\u0161anai","Scheduled for unpublishing":"Pl\u0101nots public\u0113\u0161anas atcel\u0161anai","Not scheduled":"Nav pl\u0101nots","Publishing enabled":"Public\u0113\u0161ana ir iesp\u0113jota","Unpublishing enabled":"Public\u0113\u0161anas atcel\u0161ana ir iesp\u0113jota","Enabled":"Iesp\u0113jots","Disabled":"Atsp\u0113jots","Insert this token into your form":"Ievietot \u0161o mar\u0137ieri J\u016bsu form\u0101","First click a text field to insert your tokens into.":"Vispirms noklik\u0161\u0137iniet uz teksta lauka, lai taj\u0101 ievietotu mar\u0137ierus.","Toggle details widget state.":"P\u0101rsl\u0113gt deta\u013cu logr\u012bka st\u0101vokli.","Collapse all":"Sak\u013caut visu","Expand all":"Papla\u0161in\u0101t visu","All details have been expanded.":"Visas deta\u013cas ir papla\u0161in\u0101tas.","All details have been collapsed.":"Visas deta\u013cas ir sak\u013cautas.","item":"vienums","items":"vienumi","1 @item is available in the modified list.\u0003@total @items are available in the modified list.":"@total @items ir pieejami modific\u0113taj\u0101 sarakst\u0101.\u00031 @item ir pieejams modific\u0113taj\u0101 sarakst\u0101.\u0003@total @items ir pieejami modific\u0113taj\u0101 sarakst\u0101.","1 @item\u0003@total @items":"@total @items\u00031 @item\u0003@total @items","Please avoid using the reserved word \u0027@key\u0027 as the element\u0027s key.":"L\u016bdzu, nelietojiet rezerv\u
110113to v\u0101rdu \u201e@key\u201d k\u0101 elementa atsl\u0113gu.","Playback time":"Atska\u0146o\u0161anas laiks","minutes":"min\u016btes","seconds":"sekundes","Volume":"Ska\u013cums","volume":"ska\u013cums","Download":"Lejupiel\u0101d\u0113t","Volume Slider":"Ska\u013cuma Sl\u012bdnis","Close Volume Controls":"Aizv\u0113rt ska\u013cuma vad\u012bbu","Play":"Atska\u0146ot","Pause":"Pauze","Open Volume Controls":"Atv\u0113rt ska\u013cuma vad\u012bbu","Voice speed, current speed: @speed":"Balss \u0101trums, pa\u0161reiz\u0113jais \u0101trums: @speed","Download: @format file":"Lejupiel\u0101d\u0113t: @format datne","Banner @current of @total: @title":"Banneris @current no @total: @title","Add anchor":"Ievietot iez\u012bmi","Clean spaces":"Att\u012br\u012bt atstarpes","Add tooltip":"R\u012bka padoms","Tooltip":"R\u012bka padoms","Copy url":"Kop\u0113t saiti","Copied":"Nokop\u0113ts","Close playing":"Aizv\u0113rt atska\u0146o\u0161anu","Play text":"Atska\u0146ot tekstu","Accessibility":"Piek\u013c\u016bstam\u012bba","Registers what cookies user has approved.":"Re\u0123istr\u0113, k\u0101das s\u012bkdatnes lietot\u0101js ir apstiprin\u0101jis.","Needed only for content administrators to authenticate.":"Nepiecie\u0161ams tikai satura administratoriem, lai autentific\u0113tos.","Cookie needed for all users to not show messages after they have red and closed them.":"S\u012bkdatne ir nepiecie\u0161ama, lai visiem lietot\u0101jiem ner\u0101d\u012btu zi\u0146ojumus p\u0113c tam, kad vi\u0146i ir izlas\u012bju\u0161i un aizv\u0113ru\u0161i tos.","Session maintenance from a load sharing perspective.":"Sesijas uztur\u0113\u0161ana no slodzes dal\u012b\u0161anas viedok\u013ca.","Security policy session.":"Dro\u0161\u012bbas politikas sesija.","Registers a unique ID that is used to generate statistical data on how the visitor uses the website.":"Re\u0123istr\u0113 unik\u0101lu ID, kas tiek izmantots statistisko datu ieg\u016b\u0161anai par to, k\u0101 apmekl\u0113t\u0101js izmanto vietni.","Used by Google Analytics to throttle request rate.":"Izmanto Google Analytics, lai samazin\u0101tu piepras\u012bjuma l\u012bmeni.","Registers a unique ID for new GA 4 that is used to generate statistical data on how the visitor uses the website.":"Re\u0123istr\u0113 unik\u0101lu ID priek\u0161 jaun\u0101k\u0101s GA 4 versijas, kas tiek izmantots statistisko datu ieg\u016b\u0161anai par to, k\u0101 apmekl\u0113t\u0101js izmanto vietni.","These cookies are for the purpose of sharing pages and content that interests you on our site through third party social networking or other websites.":"\u
110160\u012bs s\u012bkdatnes ir paredz\u0113tas t\u0101du viet\u0146u un satura koplieto\u0161anai, kas j\u016bs interes\u0113 m\u016bsu vietn\u0113, izmantojot tre\u0161o personu soci\u0101los t\u012bklus vai citas vietnes.","Cookie is needed for all users for sharing content.":"S\u012bkdatne ir nepiecie\u0161ama visiem lietot\u0101jiem satura kop\u012bgo\u0161anai.","year":"gads","years":"gadi","days":"dienas","minute":"min\u016bte","hours":"stundas","Session":"Sesija","Registers popup window display.":"Re\u0123istr\u0113, ka tiek par\u0101d\u012bts mod\u0101lais logs.","hour":"stunda","Cookie needed for all users to not show notifications after they have red and closed them.":"S\u012bkdatne ir nepiecie\u0161ama, lai visiem lietot\u0101jiem ner\u0101d\u012btu zi\u0146ojumus p\u0113c tam, kad vi\u0146i ir izlas\u012bju\u0161i un aizv\u0113ru\u0161i tos.","Date from":"Datums no"," to ":" l\u012bdz ","Hide additional search criteria":"Aizv\u0113rt papildu mekl\u0113\u0161anas krit\u0113rijus","Additional search criteria":"Papildu mekl\u0113\u0161anas krit\u0113riji","Filters":"Filtri","Expanded search":"Izv\u0113rst\u0101 mekl\u0113\u0161ana","Close expanded search":"Aizv\u0113rt izv\u0113rsto mekl\u0113\u0161anu","Open expanded search":"Atv\u0113rt izv\u0113rsto mekl\u0113\u0161anu","Search":"Mekl\u0113t","Press \u003Ckbd\u003EEnter\u003C\/kbd\u003E to search":"Spied \u003Ckbd\u003EEnter\u003C\/kbd\u003E lai mekl\u0113tu","30 days":"30 Dienas","12 months":"12 m\u0113ne\u0161i","day":"diena","Previous month":"Iepriek\u0161\u0113jais m\u0113nesis","Next month":"N\u0101ko\u0161ais m\u0113nesis","Today\u0027s entries only":"Tikai \u0161odienas ieraksti","This week":"\u0160oned\u0113\u013c","This week\u0027s entries":"\u0160\u012bs ned\u0113\u013cas ieraksti","This month":"\u0160is m\u0113nesis","This calendar month\u0027s entries":"\u0160\u012b kalend\u0101r\u0101 m\u0113ne\u0161a ieraksti","Previous":"Iepriek\u0161\u0113jais","Go to slide @number":"P\u0101riet uz slaidu @number","How to get":"K\u0101 nok\u013c\u016bt","How to find us?":"K\u0101 m\u016bs atrast?","Address":"Adrese","Create new marker":"Pievienot jaunu punktu","Marker description":"Mar\u0137iera apraksts","Set as default marker":"Iestat\u012bt k\u0101 noklus\u0113juma mar\u0137ieri","Edit marker":"Redig\u0113t punktu","Latitude":"Platums","Longitude":"Augstums","january":"janv\u0101ris","february":"febru\u0101ris","march":"marts","april":"apr\u012blis","may":"maijs","june":"j\u016bnijs","july":"j\u016blijs","august":"augusts","september":"septembris","october":"oktobris","november":"novembris","december":"decembris","Today we are closed":"\u0160odien esam sl\u0113gti","We are open today from":"M\u0113s \u0161odien esam atv\u0113rti no plkst.","Closed":"Sl\u0113gts","We are open today":"M\u0113s \u0161odien esam atv\u0113rti plkst.","Translation in progress...":"Notiek tulko\u0161ana...","Read more":"Las\u012bt vair\u0101k","External link":"\u0100r\u0113j\u0101 saite","Time left:":"Atliku\u0161ais laiks:","slide":"slaids","Something went wrong":"Kaut kas nog\u0101ja greizi","From":"No","To":"L\u012bdz","Show entries":"R\u0101d\u012bt ierakstus","No matching records found":"Nav atrasts neviens atbilsto\u0161s ieraksts","No data available in table":"Tabul\u0101 nav pieejami dati","Showing _START_ to _END_ of _TOTAL_ entries":"Tiek r\u0101d\u012bti _START_ l\u012bdz _END_ no _TOTAL_ ierakstiem","Showing 0 to 0 of 0 entries":"Tiek r\u0101d\u012bti 0 no 0 ierakstiem","(filtered from _MAX_ total entries)":"(filtr\u0113ts no kop\u0101 _MAX_ ierakstiem)","First":"Pirmais","Last":"P\u0113d\u0113jais",": activate to sort column ascending":": aktiviz\u0113jiet, lai k\u0101rtotu kolonnu augo\u0161\u0101 sec\u012bb\u0101",": activate to sort column descending":": aktiviz\u0113jiet, lai k\u0101rtotu kolonnu dilsto\u0161\u0101 sec\u012bb\u0101","All":"Visi","Select":"Izv\u0113l\u0113ties","The table can be moved!":"Tabulu iesp\u0113jams pab\u012bd\u012bt!","Copy link with selected values":"Kop\u0113t saiti ar izv\u0113l\u0113taj\u0101m v\u0113rt\u012bb\u0101m","Node must be saved to see the interactive table (missing paragraph ID)":"Nepiecie\u0161ams saglab\u0101t saturu, lai redz\u0113tu interakt\u012bvo tabulu (ir nepiecie\u0161ams paragr\u0101fa ID)","Enter the text to search":"Ievadiet mekl\u0113jamo tekstu","Remove @label":"No\u0146emt @label","Date to":"Datums l\u012bdz","After saving, tabs from PPK will be displayed first. The tabs created on the TVP site will be displayed in the order specified by the administrator after the tabs from the PPK.":"P\u0113c saglab\u0101\u0161anas no PPK ieg\u016bt\u0101s cilnes tiks att\u0113lotas k\u0101 pirm\u0101s. TVP vietn\u0113 izveid
11ot\u0101s cilnes tiks att\u0113lotas administratora nor\u0101d\u012btaj\u0101 sec\u012bb\u0101 aiz ciln\u0113m, kas ieg\u016btas no PPK.","Incorrect user personal code!":"Nepareizs lietot\u0101ja personas kods!","Your control code":"J\u016bsu kontroles kods","Decrease mask area":"Samazin\u0101t maskas apgabalu","Increase mask area":"Palielin\u0101t maskas apgabalu","Disable page mask":"Izsl\u0113gt lapas masku","Copy":"Kop\u0113t","Copy e-mail":"Kop\u0113t e-pastu","Remove":"No\u0146emt","I would like to leave my email for communication":"V\u0113los atst\u0101t savu e-pastu sazi\u0146ai","reCAPTCHA response":"reCAPTCHA atbildes lauks","Please verify that you are not a robot!":"L\u016bdzu, apstipriniet, ka neesat robots!","You can leave a comment here":"Ja v\u0113lies, ieraksti \u0161eit koment\u0101ru","You can leave an E-mail address here":"Ja v\u0113lies, atst\u0101j savu E-pastu sazi\u0146ai","Collapse sidebar":"Sak\u013caut s\u0101njoslu","Expand sidebar":"Izv\u0113rst s\u0101njoslu","E-mail: @email":"E-pasts: @email"},"Long month name":{"January":"Janv\u0101ris","February":"Febru\u0101ris","March":"Marts","April":"Apr\u012blis","May":"Maijs","June":"J\u016bnijs","July":"J\u016blijs","August":"Augusts","September":"Septembris","October":"Oktobris","November":"Novembris","December":"Decembris"},"file_alt":{"Download file":"Lejupiel\u0101d\u0113t datni"}},"pluralFormula":{"0":2,"1":0,"21":0,"31":0,"41":0,"51":0,"61":0,"71":0,"81":0,"91":0,"101":0,"121":0,"131":0,"141":0,"151":0,"161":0,"171":0,"181":0,"191":0,"default":1}};; 12(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();; 13window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(typeof drupalTranslations!=='undefined'&&drupalTranslations.strings&&drupalTranslations.strings[options.context]&&drupalTranslations.strings[options.context][str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');try{url=decodeURIComponent(url);}catch(e){}urlParsingNode.setAttribute('href',url);return urlParsingNode.cloneNode(false).href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;
13if(typeof drupalTranslations!=='undefined'&&drupalTranslations.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&typeof console!=='undefined'&&console.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(func in Drupal.theme)return Drupal.theme[func](...args);};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);; 14if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);; 15!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.1"}); 16 17/*! 18 * jQuery UI :data 1.14.1 19 * https://jqueryui.com 20 * 21 * Copyright OpenJS Foundation and other contributors 22 * Released under the MIT license. 23 * https://jquery.org/license 24 */ 25!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})}); 26 27/*! 28 * jQuery UI Disable Selection 1.14.1 29 * https://jqueryui.com 30 * 31 * Copyright OpenJS Foundation and other contributors 32 * Released under the MIT license. 33 * https://jquery.org/license 34 */ 35!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n}); 36 37/*! 38 * jQuery UI Legacy jQuery Core patches 1.14.1 39 * https://jqueryui.com 40 * 41 * Copyright OpenJS Foundation and other contributors 42 * Released under the MIT license. 43 * https://jquery.org/license 44 * 45 */ 46!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0})},odd:function(){return this.filter(function(e){return e%2==1})}})}); 47 48/*! 49 * jQuery UI Scroll Parent 1.14.1 50 * https://jqueryui.com 51 * 52 * Copyright OpenJS Foundation and other contributors 53 * Released under the MIT license. 54 * https://jquery.org/license 55 */ 56!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}}); 57 58/*! 59 * jQuery UI Unique ID 1.14.1 60 * https://jqueryui.com 61 * 62 * Copyright OpenJS Foundation and other contributors 63 * Released under the MIT license. 64 * https://jquery.org/license 65 */ 66!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id
vendor: 5,005 bytes, lines 66-98
66)&&i(this).removeAttr("id")})}});var e}); 67 68/*! 69 * jQuery UI Focusable 1.14.1 70 * https://jqueryui.com 71 * 72 * Copyright OpenJS Foundation and other contributors 73 * Released under the MIT license. 74 * https://jquery.org/license 75 */ 76!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable}); 77 78/*! 79 * jQuery UI Keycode 1.14.1 80 * https://jqueryui.com 81 * 82 * Copyright OpenJS Foundation and other contributors 83 * Released under the MIT license. 84 * https://jquery.org/license 85 */ 86!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}); 87 88!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}}); 89 90/*! 91 * jQuery UI Widget 1.14.1 92 * https://jqueryui.com 93 * 94 * Copyright OpenJS Foundation and other contributors 95 * Released under the MIT license. 96 * https://jquery.org/license 97 */ 98!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 6,030 bytes, lines 98-108
98(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget}); 99 100/*! 101 * jQuery UI Labels 1.14.1 102 * https://jqueryui.com 103 * 104 * Copyright OpenJS Foundation and other contributors 105 * Released under the MIT license. 106 * https://jquery.org/license 107 */ 108!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last(
vendor: 6,913 bytes, lines 108-138
108)).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}}); 109 110/*! 111 * jQuery UI Controlgroup 1.14.1 112 * https://jqueryui.com 113 * 114 * Copyright OpenJS Foundation and other contributors 115 * Released under the MIT license. 116 * https://jquery.org/license 117 */ 118!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],t):t(jQuery)}(function(t){"use strict";var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,o){var s,l={};if(o)return"controlgroupLabel"===n?((s=e.element.find(o)).each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(l=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each(function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},l);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var u=o[n]("widget");t.data(u[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(u[0])}})))}),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var o={};return t.each(i,function(t){var s=n.options.classes[t]||"";s=String.prototype.trim.call(s.replace(e,"")),o[t]=(s+" "+i[t]).replace(/\s+/g," ")}),o},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}})}); 119 120/*! 121 * jQuery UI Form Reset Mixin 1.14.1 122 * https://jqueryui.com 123 * 124 * Copyright OpenJS Foundation and other contributors 125 * Released under the MIT license. 126 * https://jquery.org/license 127 */ 128!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var r=t.data("ui-form-reset-instances");e.each(r,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=e(this.element.prop("form")),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}}); 129 130/*! 131 * jQuery UI Mouse 1.14.1 132 * https://jqueryui.com 133 * 134 * Copyright OpenJS Foundation and other contributors 135 * Released under the MIT license. 136 * https://jquery.org/license 137 */ 138!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(s){if(!0===e.data(s.target,t.widgetName+".preventClickEvent"))return e.removeData(s.target,t.widgetName+".preventClickEvent"),s.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(s){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(s),this._mouseDownEvent=s;var i=this,o=1===s.which,n="string"==typeof this.options.cancel&&e(s.target).closest(this.options.cancel).length;
vendor: 4,148 bytes, lines 138-148
138return!(o&&!n&&this._mouseCapture(s))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(s)&&this._mouseDelayMet(s)&&(this._mouseStarted=!1!==this._mouseStart(s),!this._mouseStarted)?(s.preventDefault(),!0):(!0===e.data(s.target,this.widgetName+".preventClickEvent")&&e.removeData(s.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),s.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(s){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,s.target===this._mouseDownEvent.target&&e.data(s.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(s)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,s.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}); 139 140/*! 141 * jQuery UI Checkboxradio 1.14.1 142 * https://jqueryui.com 143 * 144 * Copyright OpenJS Foundation and other contributors 145 * Released under the MIT license. 146 * https://jquery.org/license 147 */ 148!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}(function(e){"use strict";return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var i,t,s,n=this._super()||{};return this._readType(),t=this.element.labels(),this.label=e(t[t.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(s=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=s.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(n.label=this.originalLabel),null!=(i=this.element[0].disabled)&&(n.disabled=i),n},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var i=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===i&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+i+" and element.type="+this.t
vendor: 1,263 bytes, line 148
148ype)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var i=this.element[0].name,t="input[name='"+CSS.escape(i)+"']";return i?(this.form.length?e(this.form[0].elements).filter(t):e(t).filter(function(){return 0===e(e(this).prop("form")).length})).not(this.element):e([])},_toggleClasses:function(){var i=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",i),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",i)._toggleClass(this.icon,null,"ui-icon-blank",!i),"radio"===this.type&&this._getRadioGroup().each(function(){var i=e(this).checkboxradio("instance");i&&i._removeClass(i.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,i){if("label"!==e||i){if(this._super(e,i),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",i),void(this.element[0].disabled=i);this.refresh()}},_updateIcon:function(i){var t="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>
vendor: 6,735 bytes, lines 148-158
148"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(t+=i?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,i?"ui-icon-blank":"ui-icon-check")):t+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",t),i||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,i=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),i!==this.options.disabled&&this._setOptions({disabled:i})}}]),e.ui.checkboxradio}); 149 150/*! 151 * jQuery UI Draggable 1.14.1 152 * https://jqueryui.com 153 * 154 * Copyright OpenJS Foundation and other contributors 155 * Released under the MIT license. 156 * https://jquery.org/license 157 */ 158!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../scroll-parent","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=this.document[0].activeElement;t(e.target).closest(s).length||t(s).trigger("blur")},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==s._trigger("stop",e)&&s._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i="function"==typeof s.helper,o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}
vendor: 4,612 bytes, line 158
158),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)
vendor: 4,883 bytes, line 158
158/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))})},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))})},drag:function(e,s,i){t.each(i.sortables,function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o})),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t
vendor: 35,320 bytes, lines 158-188
158(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})})},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort(function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)});r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",o+e)}),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable}); 159 160/*! 161 * jQuery UI Resizable 1.14.1 162 * https://jqueryui.com 163 * 164 * Copyright OpenJS Foundation and other contributors 165 * Released under the MIT license. 166 * https://jquery.org/license 167 */ 168!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}(function(t){"use strict";return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){var s,h=!1,n=t(e).css("overflow");if("hidden"===n)return!1;if("scroll"===n)return!0;if(e[s=i&&"left"===i?"scrollLeft":"scrollTop"]>0)return!0;try{e[s]=1,h=e[s]>0,e[s]=0}catch(t){}return h},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)h="ui-resizable-"+(e=String.prototype.trim.call(s[i])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(e){var i,s,h,n;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,s,h=!1;for(i in this.handles)((s=t(this.handles[i])[0])===e.target||t.contains(s,e.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(e){var i,s,h,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this._helper||(n=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width,height:n.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:n.width,height:n.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,h=this.originalMousePosition,n=this.axis,o=e.pageX-h.left||0,a=e.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,i=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),s>n.minHeight&&(n.minHeight=s),i<n.maxWidth&&(n.maxWidth=i),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,h=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,n=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,o=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(i),p=/nw|ne|n/.test(i);return n&&(t.width=e.minWidth),o&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),h&&(t.height=e.maxHeight),n&&r&&(t.left=a-e.minWidth),s&&r&&(t.left=a-e.maxWidth),o&&p&&(t.top=l-e.minHeight),h&&p&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(h[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(t){var e,i,s,h=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(h)&&!this._hasScroll(h,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(h.style.width),i=parseFloat(h.style.height),s=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,s,"width"):e,{height:i=isNaN(i)?this._getElementTheoreticalSize(t,s,"height"):i,width:e})},_getElementTheoreticalSize:function(t,e,i){return Math.max(0,Math.ceil(t.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-e[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,h=i._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&i._hasScroll(h[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-o},r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,p=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(g),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(e){var i,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||e.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),i=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),i+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-i,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,h=e.containerPosition,n=e.containerElement,o=t(e.helper),a=o.offset(),l=o.outerWidth()-e.sizeDiff.width,r=o.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),e._helper&&!i.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var i=t(this),s=e._calculateAdjustedElementDimensions(i);i.data("ui-resizable-alsoresize",{width:s.width,height:s.height,left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left:s.position.left-o.left||0};t(h.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&i>=0&&(h[e]=i||null)}),e.css(h)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,h=i.size,n=i.originalSize,o=i.originalPosition,a=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,c=n.height+g,f=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<c,z=s.minWidth&&s.minWidth>u,_=s.minHeight&&s.minHeight>c;s.grid=l,z&&(u+=r),_&&(c+=p),f&&(u-=r),m&&(c-=p),/^(se|s|e)$/.test(a)?(i.size.width=u,i.size.height=c):/^(ne)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.top=o.top-g):/^(sw)$/.test(a)?(i.size.width=u,i.size.height=c,i.position.left=o.left-d):((c-p<=0||u-r<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),c-p>0?(i.size.height=c,i.position.top=o.top-g):(c=p-e.height,i.size.height=c,i.position.top=o.top+n.height-c),u-r>0?(i.size.width=u,i.position.left=o.left-d):(u=r-e.width,i.size.width=u,i.position.left=o.left+n.width-u))}}),t.ui.resizable}); 169 170/*! 171 * jQuery UI Button 1.14.1 172 * https://jqueryui.com 173 * 174 * Copyright OpenJS Foundation and other contributors 175 * Released under the MIT license. 176 * https://jquery.org/license 177 */ 178!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],t):t(jQuery)}(function(t){"use strict";var i;return t.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,i=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(i.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(i.label=this.originalLabel),i},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(i){i.keyCode===t.ui.keyCode.SPACE&&(i.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(i,o){var s="iconPosition"!==i,n=s?this.options.iconPosition:o,e="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,o),this._attachIcon(n),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var i=void 0===t.showLabel?this.options.showLabel:t.showLabel,o=void 0===t.icon?this.options.icon:t.icon;i||o||(t.showLabel=!0),this._super(t)},_setOption:function(t,i){"icon"===t&&(i?this._updateIcon(t,i):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,i),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!i),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(i):(this.element.html(i),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,i),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",i),this.element[0].disabled=i,i&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,i){"text"!==t?("showLabel"===t&&(this.options.text=i),"icon"===t&&(this.options.icons.primary=i),"icons"===t&&(i.primary?(this._super("icon",i.primary),this._super("iconPosition","beginning")):i.secondary&&(this._super("icon",i.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",i)}}),t.fn.button=(i=t.fn.button,function(o){var s="string"==typeof o,n=Array.prototype.slice.call(arguments,1),e=this;return s?this.length||"instance"!==o?this.each(function(){var i,s=t(this).attr("type"),h="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",a=t.data(this,"ui-"+h);return"instance"===o?(e=a,!1):a?"function"!=typeof a[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for button widget instance"):(i=a[o].apply(a,n))!==a&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+o+"'")}):e=void 0:(n.length&&(o=t.widget.extend.apply(null,[o].concat(n))),this.each(function(){var s=t(this).attr("type"),n="checkbox"!==s&&"radio"!==s?"button":"checkboxradio",e=t.data(this,"ui-"+n);if(e)e.option(o||{}),e._init&&e._init();else{if("button"===n)return void i.call(t(this),o);t(this).checkboxradio(t.extend({icon:!1},o))}})),e}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button}); 179 180/*! 181 * jQuery UI Dialog 1.14.1 182 * https://jqueryui.com 183 * 184 * Copyright OpenJS Foundation and other contributors 185 * Released under the MIT license. 186 * https://jquery.org/license 187 */ 188!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../tabbable","../unique-id","../version","../widget"],i):i(jQuery)}(function(i){"use strict";return i.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=i(this).css(t).offset().top;e<0&&i(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&i.fn.draggable&&this._makeDraggable(),this.options.resizable&&i.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?i(t):this.document.find(t||"body").eq(0)},_destroy:function(){var i,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(i=t.parent.children().eq(t.index)).length&&i[0]!==this.element[0]?i.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:i.noop,enable:i.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||i(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+i(this).css("z-index")}).get(),n=Math.max.apply(null,s);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),o=!0),o&&!e&&this._trigger("focus",t),o},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=i(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var i=this._focusedElement;i||(i=this.element.find("[autofocus]")),i.length||(i=this.element.find(":tabbable")),i.length||(i=this.uiDialogButtonPane.find(":tabbable")),i.length||(i=this.uiDialogTitlebarClose.filter(":tabbable")),i.length||(i=this.uiDialog),i.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||i.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(i){i.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=i("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===i.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===i.ui.keyCode.TAB&&!t.isDefaultPrevented()){var e=this.uiDialog.find(":tabbable"),o=e.first(),s=e.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==o[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){o.trigger("focus")}),t.preventDefault())}},mousedown:function(i){this._moveToTop(i)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=i("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){i(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=i("<button type='button'></button>").button({label:i("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(i){i.preventDefault(),this.close(i)}});var e=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span";t=i("<"+e+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prepe
vendor: 7,450 bytes, lines 188-195
188ndTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(i){this.options.title?i.text(this.options.title):i.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=i("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=i("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,e=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),i.isEmptyObject(e)||Array.isArray(e)&&!e.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(i.each(e,function(e,o){var s,n;o="function"==typeof o?{click:o,text:e}:o,o=i.extend({type:"button"},o),s=o.click,n={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,i("<button></button>",o).button(n).appendTo(t.uiButtonSet).on("click",function(){s.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,e=this.options;function o(i){return{position:i.position,offset:i.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,s){t._addClass(i(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",e,o(s))},drag:function(i,e){t._trigger("drag",i,o(e))},stop:function(s,n){var a=n.offset.left-t.document.scrollLeft(),l=n.offset.top-t.document.scrollTop();e.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(i(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,o(n))}})},_makeResizable:function(){var t=this,e=this.options,o=e.resizable,s=this.uiDialog.css("position"),n="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";function a(i){return{originalPosition:i.originalPosition,originalSize:i.originalSize,position:i.position,size:i.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,o){t._addClass(i(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",e,a(o))},resize:function(i,e){t._trigger("resize",i,a(e))},stop:function(o,s){var n=t.uiDialog.offset(),l=n.left-t.document.scrollLeft(),h=n.top-t.document.scrollTop();e.height=t.uiDialog.height(),e.width=t.uiDialog.width(),e.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:t.window},t._removeClass(i(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",o,a(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=i(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=i.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var i=this.document.data("ui-dialog-instances");return i||(i=[],this.document.data("ui-dialog-instances",i)),i},_minHeight:function(){var i=this.options;return"auto"===i.height?i.minHeight:Math.min(i.minHeight,i.height)},_position:function(){var i=this.uiDialog.is(":visible");i||this.uiDialog.show(),this.uiDialog.position(this.options.position),i||this.uiDialog.hide()},_setOptions:function(t){var e=this,o=!1,s={};i.each(t,function(i,t){e._setOption(i,t),i in e.sizeRelatedOptions&&(o=!0),i in e.resizableRelatedOptions&&(s[i]=t)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var o,s,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:i("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((o=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!o&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),s&&"string"==typeof e&&n.resizable("option","handles",e),s||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t&&n.attr("aria-modal",e?"true":null))},_size:function(){var i,t,e,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),i=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),t=Math.max(0,o.minHeight-i),e="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-i):"none","auto"===o.height?this.element.css({minHeight:t,maxHeight:e,height:"auto"}):this.element.height(Math.max(0,o.height-i)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=i(this);return i("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!i(t.target).closest(".ui-dialog").length||!!i(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(i){if(!t){var e=this._trackingInstances()[0];e._allowInteraction(i)||(i.preventDefault(),e._focusTabbable())}}.bind(this)),this.overlay=i("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var i=this.document.data("ui-dialog-overlays")-1;i?this.document.data("ui-dialog-overlays",i):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===i.uiBackCompat&&i.widget("ui.dialog",i.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(i,t){"dialogClass"===i&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),i.ui.dialog}); 189 190/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 191/*! 192* tabbable 6.3.0 193* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 194*/ 195!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not
195(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}
195(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}})); 196 197; 198/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 199/** 200 * tua-body-scroll-lock v1.6.1 201 * (c) 2025 Evinma, BuptStEve 202 * @license MIT 203 */ 204!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bodyScrollLock={})}(this,(function(e){"use strict";var t=function(){return"undefined"==typeof window},n=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}};function o(e){if(t())return!1;if(!e)throw new Error("options must be provided");var n=!1,o={get passive(){n=!0}},i=function(){},l="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(l,i,o),window.removeEventListener(l,i,o);var c=e.capture;return n?e:void 0!==c&&c}function i(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function l(e){return e?Array.isArray(e)?e:[e]:[]}function c(e,t,n){var o,i,l,c,r=e.scrollTop,s=e.scrollLeft,d=e.scrollWidth,u=e.scrollHeight,a=e.clientWidth,f=e.clientHeight,v=function(e){var t=window.getComputedStyle(e).flexDirection;return{column:"column-reverse"===t,row:"row-reverse"===t}}(e);return v.column?(o=n>0&&Math.abs(r)+f+1>=u,i=n<0&&Math.abs(r)<=1):(o=n>0&&0===r,i=n<0&&r+f+1>=u),v.row?(l=t>0&&Math.abs(s)+a+1>=d,c=t<0&&Math.abs(s)<=1):(l=t>0&&0===s,c=t<0&&s+a+1>=d),{isOnTop:o,isOnBottom:i,isOnLeft:l,isOnRight:c}}var r={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function s(e){if(t())return r;if(!(null==e?void 0:e.useGlobalLockState))return s.lockState;var n="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},r),window.__BSL_LOCK_STATE__):r;return window.__BSL_LOCK_STATE__=n,n}function d(e){var t=document.documentElement,n=Object.assign({},t.style),o=(void 0,!0);if(t.style.overflow="hidden",t.style.boxSizing="border-box",o){var i=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);t.style.paddingRight="".concat(i+l,"px")}return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){t.style[e]=n[e]||""}))}}function u(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!1)}s.lockState=r,e.clearBodyLocks=function(e){var o;if(!t()){var i=s(e);if(i.lockedNum=0,null===(o=i.unLockCallback)||void 0===o||o.call(i),n().ios){if(i.lockedElements.length)for(var l=i.lockedElements.pop();l;)l.ontouchmove=null,l.ontouchstart=null,l=i.lockedElements.pop();u(i)}}},e.getLockState=s,e.lock=function(e,r){if(!t()){var u=n(),a=s(r);u.ios?(l(e).filter((function(e){return e&&-1===a.lockedElements.indexOf(e)}
204)).forEach((function(e){e.ontouchstart=function(e){var t=e.targetTouches[0],n=t.clientX,o=t.clientY;a.initialClientPos={clientX:n,clientY:o}},e.ontouchmove=function(t){!function(e,t,n){if(t){var o=e.targetTouches[0].clientX-n.clientX,l=e.targetTouches[0].clientY-n.clientY,r=Math.abs(l)>Math.abs(o),s=c(t,o,l),d=s.isOnTop,u=s.isOnBottom,a=s.isOnLeft,f=s.isOnRight;if(r&&(d||u)||!r&&(a||f))return i()(e)}e.stopPropagation()}(t,e,a.initialClientPos)},a.lockedElements.push(e)})),function(e){if(!n().ios)return;if(e.documentListenerAdded)return;document.addEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!0}(a),(null==r?void 0:r.setOverflowForIOS)&&(a.unLockCallback=d())):a.lockedNum<=0&&(a.unLockCallback=u.android?function(e){var t=document.documentElement,n=document.body,o=t.scrollTop||n.scrollTop,i=Object.assign({},t.style),l=Object.assign({},n.style);return t.style.height="100%",t.style.overflow="hidden",n.style.top="-".concat(o,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow=(null==e?void 0:e.overflowType)||"hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(e){n.style[e]=l[e]||""})),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}}(r):d()),a.lockedNum+=1}},e.unlock=function(e,o){var i;if(!t()){var c=s(o);c.lockedNum-=1,c.lockedNum>0||(null===(i=c.unLockCallback)||void 0===i||i.call(c),n().ios&&(l(e).forEach((function(e){var t=c.lockedElements.indexOf(e);e&&-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,c.lockedElements.splice(t,1))})),u(c)))}}})); 205; 206!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else ("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).GreenAudioPlayer=e();}(function(){return function n(l,r,o){function u(t,e){if(!r[t]){if(!l[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(d)return d(t,!0);var s=new Error("Cannot find module '"+t+"'");throw s.code="MODULE_NOT_FOUND",s;}var a=r[t]={exports:{}};l[t][0].call(a.exports,function(e){return u(l[t][1][e]||e);},a,a.exports,n,l,r,o);}return r[t].exports;}for(var d="function"==typeof require&&require,e=0;e<o.length;e++)u(o[e]);return u;}({1:[function(e,t,i){"use strict";t.exports=e("./src/js/main").default;},{"./src/js/main":2}],2:[function(e,t,i){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e;}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var i=[],s=!0,a=!1,n=void 0;try{for(var l,r=e[Symbol.iterator]();!(s=(l=r.next()).done)&&(i.push(l.value),!t||i.length!==t);s=!0);}catch(e){a=!0,n=e;}finally{try{s||null==r.return||r.return();}finally{if(a)throw n;}}return i;}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}();}function s(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value" in s&&(s.writable=!0),Object.defineProperty(e,s.key,s);}}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=function(){function u(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");}(this,u),this.audioPlayer="string"==typeof e?document.querySelector(e):e;var i=t||{},s=this.audioPlayer.innerHTML;this.audioPlayer.classList.add("green-audio-player"),this.audioPlayer.innerHTML=u.getTemplate()+s,this.isDevice=/ipad|iphone|ipod|android/i.test(window.navigator.userAgent.toLowerCase())&&!window.MSStream,this.playPauseBtn=this.audioPlayer.querySelector(".play-pause-btn"),this.loading=this.audioPlayer.querySelector(".loading"),this.sliders=this.audioPlayer.querySelectorAll(".slider"),this.progress=this.audioPlayer.querySelector(".controls__progress"),this.volumeBtn=this.audioPlayer.querySelector(".volume__button"),this.volumeControls=this.audioPlayer.querySelector(".volume__controls"),this.volumeProgress=this.volumeControls.querySelector(".volume__progress"),this.player=this.audioPlayer.querySelector("audio"),this.currentTime=this.audioPlayer.querySelector(".controls__current-time"),this.totalTime=this.audioPlayer.querySelector(".controls__total-time"),this.speaker=this.audioPlayer.querySelector(".volume__speaker"),this.download=this.audioPlayer.querySelector(".download"),this.downloadLink=this.audioPlayer.querySelector(".download__link"),this.span=this.audioPlayer.querySelectorAll(".message__offscreen"),this.svg=this.audioPlayer.getElementsByTagName("svg"),this.img=this.audioPlayer.getElementsByTagName("img"),this.draggableClasses=["pin"],this.currentlyDragged=null,this.stopOthersOnPlay=i.stopOthersOnPlay||!1,this.enableKeystrokes=i.enableKeystrokes||!1,this.showTooltips=i.showTooltips||!1;var a=this;if(this.labels={volume:{open:"Open Volume Controls",close:"Close Volume Controls"},pause:"Pause",play:"Play",download:"Download"},this.enableKeystrokes){window.addEventListener("keydown",this.pressKb.bind(a),!1),window.addEventListener("keyup",this.unPressKb.bind(a),!1),this.sliders[0].setAttribute("tabindex",0),this.sliders[1].setAttribute("tabindex",0),this.download.setAttribute("tabindex",-1),this.downloadLink.setAttribute("tabindex",-1);for(var n=0;n<this.svg.length;n++)this.svg[n].setAttribute("tabindex",0),this.svg[n].setAttribute("focusable",!0);for(var l=0;l<this.img.length;l++)this.img[l].setAttribute("tabindex",0);}else for(var r=0;r<this.span.length;r++)this.span[r].outerHTML="";if(this.showTooltips&&(this.playPauseBtn.setAttribute("title",this.labels.play),this.volumeBtn.setAttribute("title",this.labels.volume.open),this.downloadLink.setAttribute("title",this.labels.download)),i.outlineControls&&this.audioPlayer.classList.add("player-accessible"),i.showDownloadButton&&this.showDownload(),this.initEvents(),this.directionAware(),this.overcomeIosLimitations(),"autoplay" in this.player.attributes){var o=this.player.play();void 0!==o&&o.then(function(){a.player.parentElement.querySelector(".play-pause-btn__icon").attributes.d.value="M0 0h6v24H0zM12 0h6v24h-6z",a.playPauseBtn.setAttribute("aria-label",a.labels.pause),a.hasSetAttribute(a.playPauseBtn,"title",a.labels.pause);}).catch(function(){console.error("Green Audio Player Error: Autoplay has been prevented, because it is not allowed by this browser.");});}"preload" in this.player.attributes&&"none"===this.player.attributes.preload.value&&(this.playPauseBtn.style.visibility="visible",this.loading.style.visibility="hidden");}var e,t,i;return e=u,i=[{key:"init",value:function(t){document.querySelectorAll(t.selector).forEach(function(e){new u(e,t);});}},{key:"getTemplate",value:function(){return '\n <div class="holder">\n <div class="loading">\n <div class="loading__spinner"></div>\n </div>\n\n <div class="play-pause-btn" aria-label="Play" role="button">\n <svg xmlns="http://www.w3.org/2000/svg" width="18" height="24" viewBox="0 0 18 24">\n <path fill="#566574" fill-rule="evenodd" d="M18 12L0 24V0" class="play-pause-btn__icon"/>\n </svg>\n </div>\n </div>\n\n <div class="controls">
206\n <span class="controls__current-time" aria-live="off" role="timer">00:00</span>\n <div class="controls__slider slider" data-direction="horizontal">\n <div class="controls__progress gap-progress" aria-label="Time Slider" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" role="slider">\n <div class="pin progress__pin" data-method="rewind"></div>\n </div>\n </div>\n <span class="controls__total-time">00:00</span>\n </div>\n\n <div class="volume">\n <div class="volume__button" aria-label="Open Volume Controls" role="button">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path class="volume__speaker" fill="#566574" fill-rule="evenodd" d="M14.667 0v2.747c3.853 1.146 6.666 4.72 6.666 8.946 0 4.227-2.813 7.787-6.666 8.934v2.76C20 22.173 24 17.4 24 11.693 24 5.987 20 1.213 14.667 0zM18 11.693c0-2.36-1.333-4.386-3.333-5.373v10.707c2-.947 3.333-2.987 3.333-5.334zm-18-4v8h5.333L12 22.36V1.027L5.333 7.693H0z"/>\n </svg>\n <span class="message__offscreen">Press Enter or Space to show volume slider.</span>\n </div>\n <div class="volume__controls hidden">\n <div class="volume__slider slider" data-direction="vertical">\n <div class="volume__progress gap-progress" aria-label="Volume Slider" aria-valuemin="0" aria-valuemax="100" aria-valuenow="81" role="slider">\n <div class="pin volume__pin" data-method="changeVolume"></div>\n </div>\n <span class="message__offscreen">Use Up/Down Arrow keys to increase or decrease volume.</span>\n </div>\n </div>\n </div>\n\n <div class="download">\n <a class="download__link" href="" download="" aria-label="Download" role="button">\n <svg width="24" height="24" fill="#566574" enable-background="new 0 0 29.978 29.978" version="1.1" viewBox="0 0 29.978 29.978" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">\n <path d="m25.462 19.105v6.848h-20.947v-6.848h-4.026v8.861c0 1.111 0.9 2.012 2.016 2.012h24.967c1.115 0 2.016-0.9 2.016-2.012v-8.861h-4.026z"/>\n <path d="m14.62 18.426l-5.764-6.965s-0.877-0.828 0.074-0.828 3.248 0 3.248 0 0-0.557 0-1.416v-8.723s-0.129-0.494 0.615-0.494h4.572c0.536 0 0.524 0.416 0.524 0.416v8.742 1.266s1.842 0 2.998 0c1.154 0 0.285 0.867 0.285 0.867s-4.904 6.51-5.588 7.193c-0.492 0.495-0.964-0.058-0.964-0.058z"/>\n </svg>\n </a>\n </div>\n ';}},{key:"formatTime",value:function(e){var t=Math.floor(e/60),i=Math.floor(e%60);return "".concat(t<10?"0".concat(t):t,":").concat(i<10?"0".concat(i):i);}},{key:"pausePlayer",value:function(e){e.parentElement.querySelector(".play-pause-btn__icon").attributes.d.value="M18 12L0 24V0",e.pause();}},{key:"playPlayer",value:function(e){e.parentElement.querySelector(".play-pause-btn__icon").attributes.d.value="M0 0h6v24H0zM12 0h6v24h-6z",e.play();}},{key:"stopOtherPlayers",value:function(){for(var e=document.querySelectorAll(".green-audio-player audio"),t=0;t<e.length;t++)u.pausePlayer(e[t]);}}],(t=[{key:"initEvents",value:function(){var a=this;a.audioPlayer.addEventListener("mousedown",function(e){if(a.isDraggable(e.target)){a.currentlyDragged=e.target;var t=a.currentlyDragged.dataset.method,i=a[t].bind(a);window.addEventListener("mousemove",i,!1),a.currentlyDragged.parentElement.parentElement===a.sliders[0]&&(a.paused=a.player.paused,!1===a.paused&&a.togglePlay()),window.addEventListener("mouseup",function(){!1!==a.currentlyDragged&&a.currentlyDragged.parentElement.parentElement===a.sliders[0]&&a.paused!==a.player.paused&&a.togglePlay(),a.currentlyDragged=!1,window.removeEventListener("mousemove",i,!1);},!1);}}),a.audioPlayer.addEventListener("touchstart",function(e){if(a.isDraggable(e.target)){var t=n(e.targetTouches,1);a.currentlyDragged=t[0];var i=a.currentlyDragged.target.dataset.method,s=a[i].bind(a);window.addEventListener("touchmove",s,!1),a.currentlyDragged.parentElement.parentElement===a.sliders[0]&&(a.paused=a.player.paused,!1===a.paused&&a.togglePlay()),window.addEventListener("touchend",function(){!1!==a.currentlyDragged&&a.currentlyDragged.parentElement.parentElement===a.sliders[0]&&a.paused!==a.player.paused&&a.togglePlay(),a.currentlyDragged=!1,window.removeEventListener("touchmove",s,!1);},!1),e.preventDefault();}}),this.playPauseBtn.addEventListener("click",this.togglePlay.bind(a)),this.player.addEventListener("timeupdate",this.updateProgress.bind(a)),this.player.addEventListener("volumechange",this.updateVolume.bind(a)),this.player.volume=.81,this.player.addEventListener("loadedmetadata",function(){a.totalTime.textContent=u.formatTime(a.player.duration);}),this.player.addEventListener("seeking",this.showLoadingIndicator.bind(a)),this.player.addEventListener("seeked",this.hideLoadingIndicator.bind(a)),this.player.addEventListener("canplay",this.hideLoadingIndicator.bind(a)),this.player.addEventListener("ended",function(){u.pausePlayer(a.player,"ended"),a.player.currentTime=0,a.playPauseBtn.setAttribute("aria-label",a.labels.play),a.hasSetAttribute(a.playPauseBtn,"title",a.labels.play);}),this.volumeBtn.addEventListener("click",this.showHideVolume.bind(a)),window.addEventListener("resize",a.directionAware.bind(a)),window.addEventListener("scroll",a.directionAware.bind(a));for(var e=0;e<this.sliders.length;e++){var t=this.sliders[e].querySelector(".pin");this.sliders[e].addEventListener("click",a[t.dataset.method].bind(a));}this.downloadLink.addEventListener("click",this.downloadAudio.bind(a));}},{key:"overcomeIosLimitations",value:function(){this.isDevice&&(this.player.addEventListener("loadedmetadata",this.hideLoadingIndicator.bind(this)),this.audioPlayer.querySelector(".volume").style.display="none",this.audioPlayer.querySelector(".controls").style.marginRight="0");}},{key:"isDraggable",value:function(e){var t=!1;if(void 0===e.classList)return !1;for(var i=0;i<this.draggableClasses.length;i++)e.classList.contains(this.draggableClasses[i])&&(t=!0);return t;}},{key:"inRange",value:function(e){var t="touches" in e,i=this.getRangeBox(e),s=i.getBoundingClientRect(),a=null,n=null;if("horizontal"===i.dataset.direction){n=(a=s.x)+s.width;var l=t?e.touches[0].clientX:e.clientX;if(l<a||n<l)return !1;}else{n=(a=s.top)+s.height;var r=t?e.touches[0].clientY:e.clientY;if(r<a||n<r)return !1;}return !0;}},{key:"updateProgress",value:function(){var e=this.player.currentTime,t=e/this.player.duration*100;this.progress.setAttribute("aria-valuenow",t),this.progress.style.width="".concat(t,"%"),this.currentTime.textContent=u.formatTime(e);}},{key:"updateVolume",value:function(){this.volumeProgress.setAttribute("aria-valuenow",100*this.player.volume),this.volumeProgress.style.height="".concat(100*this.player.volume,"%"),.5<=this.player.volume?this.speaker.attributes.d.value="M14.667 0v2.747c3.853 1.146 6.666 4.72 6.666 8.946 0 4.227-2.8
20613 7.787-6.666 8.934v2.76C20 22.173 24 17.4 24 11.693 24 5.987 20 1.213 14.667 0zM18 11.693c0-2.36-1.333-4.386-3.333-5.373v10.707c2-.947 3.333-2.987 3.333-5.334zm-18-4v8h5.333L12 22.36V1.027L5.333 7.693H0z":this.player.volume<.5&&.05<this.player.volume?this.speaker.attributes.d.value="M0 7.667v8h5.333L12 22.333V1L5.333 7.667M17.333 11.373C17.333 9.013 16 6.987 14 6v10.707c2-.947 3.333-2.987 3.333-5.334z":this.player.volume<=.05&&(this.speaker.attributes.d.value="M0 7.667v8h5.333L12 22.333V1L5.333 7.667");}},{key:"getRangeBox",value:function(e){var t=e.target,i=this.currentlyDragged;return "click"===e.type&&this.isDraggable(e.target)&&(t=e.target.parentElement.parentElement),"mousemove"===e.type&&(t=i.parentElement.parentElement),"touchmove"===e.type&&(t=i.target.parentElement.parentElement),t;}},{key:"getCoefficient",value:function(e){var t="touches" in e,i=this.getRangeBox(e),s=i.getBoundingClientRect(),a=0;if("horizontal"===i.dataset.direction)a=((t?e.touches[0].clientX:e.clientX)-s.left)/s.width;else{if("vertical"===i.dataset.direction){var n=s.height;a=1-((t?e.touches[0].clientY:e.clientY)-s.top)/n;}}return a;}},{key:"rewind",value:function(e){this.player.seekable&&this.player.seekable.length&&this.inRange(e)&&(this.player.currentTime=this.player.duration*this.getCoefficient(e));}},{key:"showVolume",value:function(){this.volumeBtn.getAttribute("aria-attribute")===this.labels.volume.open&&(this.volumeControls.classList.remove("hidden"),this.volumeBtn.classList.add("open"),this.volumeBtn.setAttribute("aria-label",this.labels.volume.close),this.hasSetAttribute(this.volumeBtn,"title",this.labels.volume.close));}},{key:"showHideVolume",value:function(){this.volumeControls.classList.toggle("hidden"),this.volumeBtn.getAttribute("aria-label")===this.labels.volume.open?(this.volumeBtn.setAttribute("aria-label",this.labels.volume.close),this.hasSetAttribute(this.volumeBtn,"title",this.labels.volume.close),this.volumeBtn.classList.add("open")):(this.volumeBtn.setAttribute("aria-label",this.labels.volume.open),this.hasSetAttribute(this.volumeBtn,"title",this.labels.volume.open),this.volumeBtn.classList.remove("open"));}},{key:"changeVolume",value:function(e){this.inRange(e)&&(this.player.volume=Math.round(50*this.getCoefficient(e))/50);}},{key:"preloadNone",value:function(){this.player.duration||(this.playPauseBtn.style.visibility="hidden",this.loading.style.visibility="visible");}},{key:"togglePlay",value:function(){this.preloadNone(),this.player.paused?(this.stopOthersOnPlay&&u.stopOtherPlayers(),u.playPlayer(this.player),this.playPauseBtn.setAttribute("aria-label",this.labels.pause),this.hasSetAttribute(this.playPauseBtn,"title",this.labels.pause)):(u.pausePlayer(this.player,"toggle"),this.playPauseBtn.setAttribute("aria-label",this.labels.play),this.hasSetAttribute(this.playPauseBtn,"title",this.labels.play));}},{key:"hasSetAttribute",value:function(e,t,i){this.showTooltips&&e.hasAttribute(t)&&e.setAttribute(t,i);}},{key:"setCurrentTime",value:function(e){var t=this.player.currentTime,i=Math.floor(this.player.duration);t+e<0&&0===t?this.player.currentTime=this.player.currentTime:t+e<0?this.player.currentTime=0:i<t+e?this.player.currentTime=i:this.player.currentTime+=e;}},{key:"setVolume",value:function(e){if(!this.isDevice){var t=this.player.volume;0<=t+e&&t+e<1?this.player.volume+=e:this.player.volume=t+e<=0?0:1;}}},{key:"unPressKb",value:function(e){var t=e||window.event;!this.seeking||37!==t.keyCode&&39!==t.keyCode||(this.togglePlay(),this.seeking=!1);}},{key:"pressKb",value:function(e){var t=e||window.event;switch(t.keyCode){case 13:case 32:if(document.activeElement.parentNode===this.playPauseBtn)this.togglePlay();else{if(document.activeElement.parentNode===this.volumeBtn||document.activeElement===this.sliders[1]){if(document.activeElement===this.sliders[1])try{this.volumeBtn.children[0].focus();}catch(e){this.volumeBtn.focus();}this.showHideVolume();}}13===t.keyCode&&this.showDownload&&document.activeElement.parentNode===this.downloadLink&&this.downloadLink.focus();break;case 37:case 39:document.activeElement===this.sliders[0]&&(37===t.keyCode?this.setCurrentTime(-5):this.setCurrentTime(5),!this.player.paused&&this.player.seeking&&(this.togglePlay(),this.seeking=!0));break;case 38:case 40:document.activeElement.parentNode!==this.volumeBtn&&document.activeElement!==this.sliders[1]||(38===t.keyCode?this.setVolume(.05):this.setVolume(-.05)),document.activeElement.parentNode===this.volumeBtn&&this.showVolume();}}},{key:"showLoadingIndicator",value:function(){this.playPauseBtn.style.visibility="hidden",this.loading.style.visibility="visible";}},{key:"hideLoadingIndicator",value:function(){this.playPauseBtn.style.visibility="visible",this.loading.style.visibility="hidden";}},{key:"showDownload",value:function(){this.download.style.display="block";}},{key:"downloadAudio",value:function(){var e=this.player.currentSrc,t=e.split("/").reverse()[0];this.downloadLink.setAttribute("href",e),this.downloadLink.setAttribute("download",t);}},{key:"directionAware",value:function(){this.volumeControls.classList.remove("top","middle","bottom"),window.innerHeight<250?this.volumeControls.classList.add("middle"):this.audioPlayer.getBoundingClientRect().top<180?this.volumeControls.classList.add("bottom"):this.volumeControls.classList.add("top");}}])&&s(e.prototype,t),i&&s(e,i),u;}();i.default=a;},{}]},{},[1])(1);});; 207(function(){if(typeof NodeList.prototype.forEach==='function')return false;else NodeList.prototype.forEach=Array.prototype.forEach;})();(function($,Drupal){Drupal.behaviors.audioPlayer={attach:function(context,settings){var that=this;$(once('audioPlayer','html',context)).each(function(){that.activateAudioPlayer(that,'standart');});},activateAudioPlayer:function(that,type){setTimeout(function(){$('.audio-player-block').each(function(index,element){var thisPlayer=$(this);thisPlayer.attr('id','audio-player-block-'+type+index);GreenAudioPlayer.init({selector:'#audio-player-block-'+type+index,stopOthersOnPlay:true,showDownloadButton:true,enableKeystrokes:true});let template=GreenAudioPlayer.getTemplate();template=template.replace('aria-label="Volume Slider"','aria-label="'+Drupal.t('Volume Slider')+'"');var currentTime=thisPlayer.find('.controls__current-time');var totalTime=thisPlayer.find('.controls__total-time');var timeBlock=thisPlayer.find('.time-block');var playbackBlock=thisPlayer.find('.playback-block');var playbackButton=thisPlayer.find('.playback-btn');var playbackOptions=thisPlayer.find('.playback-speed');var audio=thisPlayer.find('audio')[0];playbackBlock.insertAfter(thisPlayer.find('.volume'));playbackButton.attr('aria-expanded','false');playbackOptions.attr('aria-hidden','true');playbackButton.attr('aria-label',Drupal.t('Voice speed, current speed: @speed',{'@speed':'1x'}));const options=[0.25,0.5,0.75,1,1.25,1.5,1.75,2];options.forEach(function(element){const input=$('<input>').attr({type:'radio',name:'speed',id:element+'x',value:element});if(element==1)input.prop('checked',true);input.appendTo(playbackOptions);$('<label>').attr({for:element+'x',tabindex:0,class:'audio-speed-label'}).text(element==1?'Standarta':element+'x').appendTo(playbackOptions);});playbackButton.on('click',function(e){e.stopPropagation();$(this).toggleClass("active");var isOpen=$(this).hasClass('active');$(this).attr('aria-expanded',isOpen?'true':'false');
207playbackOptions.attr('aria-hidden',isOpen?'false':'true');});playbackOptions.on('click',function(e){e.stopPropagation();});$(document).on('click',function(){playbackButton.removeClass("active").attr('aria-expanded','false');playbackOptions.attr('aria-hidden','true');});playbackOptions.find('input').on('change',function(){const value=$(this).val();audio.playbackRate=value;playbackButton.attr('aria-label',Drupal.t('Voice speed, current speed: @speed',{'@speed':value+'x'}));});playbackOptions.find('label').on('keypress',function(){const forvalue=$(this).attr('for');$('#audio-player-block-'+type+index+' .playback-speed input[id="'+forvalue+'"]').prop('checked',true);const value=$('#audio-player-block-'+type+index+' .playback-speed input[id="'+forvalue+'"]').val();audio.playbackRate=value;playbackButton.attr('aria-label',Drupal.t('Voice speed, current speed: @speed',{'@speed':value+'x'}));});playbackButton.on('focusout',function(e){if(!$(e.relatedTarget).closest(playbackOptions).length){playbackButton.removeClass("active").attr('aria-expanded','false');playbackOptions.attr('aria-hidden','true');}});playbackOptions.on('focusout',function(e){if(!e.relatedTarget||!this.contains(e.relatedTarget)){playbackButton.removeClass("active").attr('aria-expanded','false');playbackOptions.attr('aria-hidden','true');}});currentTime.appendTo(timeBlock);$('<span class="splitter">/</span>').appendTo(timeBlock);totalTime.appendTo(timeBlock);thisPlayer.find('.play-pause-btn').on('click',function(){var progressBar=thisPlayer.find('.controls .gap-progress');if(!progressBar.hasClass('has-played'))progressBar.addClass('has-played');});var timeSlider=thisPlayer.find('.controls__slider.slider');var timeProgress=timeSlider.find('.controls__progress');timeProgress.attr('aria-label',Drupal.t('Playback time'));var updateTimeValueText=function(){if(audio&&!isNaN(audio.currentTime)){var minutes=Math.floor(audio.currentTime/60);var seconds=Math.floor(audio.currentTime%60);var valueText=minutes+' '+Drupal.t('minutes')+' '+seconds+' '+Drupal.t('seconds');timeProgress.attr('aria-valuetext',valueText);}};$(audio).on('timeupdate',updateTimeValueText);timeSlider.on('mouseup touchend',updateTimeValueText);updateTimeValueText();that.setButtonsEvents('#audio-player-block-'+type+index);const audioRow=$('#header-content-tools .content-tools-row.audio');var audioSize=audioRow.data('audio-size');var audioFormat=audioRow.data('audio-format');thisPlayer.find('.download__link').attr('aria-label',Drupal.t('Download: @format file',{'@format':audioFormat})).attr('data-toggle','tooltip').attr('data-original-title','<b>'+Drupal.t('Download file',{},{context:'file_alt'})+'</b><br>'+audioFormat.toUpperCase()+' \xB7 '+audioSize).tooltip({html:true});thisPlayer.find('.download').attr('aria-label',Drupal.t('Download'));thisPlayer.find('.volume__progress.gap-progress').attr('aria-label',Drupal.t('Volume Slider'));thisPlayer.find('.volume__button').attr('aria-labelledby','custom-volume-label').attr('aria-expanded','false').attr('tabindex','0');thisPlayer.find('.volume__slider').attr('aria-label',Drupal.t('Volume')).attr('aria-labelledby','custom-volume-announcer');var volumeProgress=thisPlayer.find('.volume__progress');var volumeText=volumeProgress.attr('aria-valuenow')+'% '+Drupal.t('volume');volumeProgress.attr('aria-valuetext',volumeText);if($('#custom-volume-label').length===0)thisPlayer.find('.volume').append('<span id="custom-volume-label" class="visually-hidden sr-only">'+Drupal.t('Open Volume Controls')+'</span>');if($('#custom-volume-announcer').length===0)thisPlayer.find('.volume').append('<span id="custom-volume-announcer" class="visually-hidden sr-only">'+volumeText+'</span>');setTimeout(function(){that.addAriaTranslationWatcher(thisPlayer,that);});});});},fixPlayPauseAriaLabel:function($el){if(!$el||!$el.length)return;var currentAriaLabel=$el.attr('aria-label');if(currentAriaLabel&¤tAriaLabel==='Play')$el.attr('aria-label',Drupal.t('Play')).addClass('play-icon').removeClass('pause-icon');else{if(currentAriaLabel&¤tAriaLabel==='Pause')$el.attr('aria-label',Drupal.t('Pause')).addClass('pause
207-icon').removeClass('play-icon');}},fixVolumeAriaLabel:function($el){if(!$el||!$el.length)return;var isOpen=$el.hasClass('open');$el.attr('aria-expanded',isOpen?'true':'false');$('#custom-volume-label').text(Drupal.t(isOpen?'Close Volume Controls':'Open Volume Controls'));},updateVolumeValue:function($el){if(!$el||!$el.length)return;var raw=parseFloat($el.attr('aria-valuenow'));if(isNaN(raw))return;var rounded=Math.round(raw);if(raw!==rounded)$el.attr('aria-valuenow',rounded);var text=rounded+'% '+Drupal.t('volume');$el.attr('aria-valuetext',text);$('#custom-volume-announcer').text(text);},addAriaTranslationWatcher:function($container,that){var observer=new MutationObserver(function(mutations){mutations.forEach(function(m){if(m.type==='attributes'&&m.attributeName==='aria-label'&&m.target.className.includes('play-pause-btn'))that.fixPlayPauseAriaLabel($(m.target));else if(m.type==='attributes'&&m.attributeName==='aria-label'&&m.target.className.includes('volume__button'))that.fixVolumeAriaLabel($(m.target));else if(m.type==='attributes'&&m.attributeName==='tabindex'&&m.target.classList.contains('volume')&&m.target.attributes['tabindex'].value==='0')$(m.target).attr('tabindex','-1');else{if(m.type==='attributes'&&m.attributeName==='aria-valuenow'&&m.target.classList.contains('volume__progress'))that.updateVolumeValue($(m.target));}});});observer.observe($container[0],{attributes:true,subtree:true});},setButtonsEvents:function(selector){$(selector+' .holder').attr('tabindex','0').on('keypress',function(e){if(e.which==13)$(selector+' .play-pause-btn').trigger('click');});$(selector+' .volume__button').on('keydown',function(e){if(e.which==13){e.preventDefault();$(this).trigger('click');}}).on('keyup',function(e){if(e.which==13)e.preventDefault();});$(selector+' .download').attr('tabindex','0').on('keypress',function(e){if(e.which==13){var src=$(selector+' audio source').attr('src');var name=src.split('/').reverse()[0];var file=new File([src],name);var link=document.createElement('a');link.download=file.name;link.href=file;link.click();}});jQuery(selector+' .volume__slider.slider').on('blur',function(){jQuery(selector+' .volume__button').click();});$('.audio-speed-label, .playback-btn').on('keydown',function(e){if(e.key=='Escape'){$('.playback-btn').removeClass("active").attr('aria-expanded','false');playbackOptions.attr('aria-hidden','true');$('.playback-btn').focus();}});}};})(jQuery,Drupal);; 208/* @license MIT https://github.com/js-cookie/js-cookie/blob/main/LICENSE */ 209/*! js-cookie v3.0.8 | MIT */ 210!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)"__proto__"!==o&&(e[o]=n[o])}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(u in o||(o[u]=n.read(c,u)),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
vendor: 11,486 bytes, lines 210-213
210URIComponent)}},{path:"/"});return t})); 211; 212/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 213!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],b):b("undefined"!=typeof exports?require("jquery"):a.jQuery);}(this,function(a){"use strict";function h(b){if(c.webkit&&!b)return {height:0,width:0};if(!c.data.outer){var d={border:"none","box-sizing":"content-box",height:"200px",margin:"0",padding:"0",width:"200px"};c.data.inner=a("<div>").css(a.extend({},d)),c.data.outer=a("<div>").css(a.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},d)).append(c.data.inner).appendTo("body");}return c.data.outer.scrollLeft(1e3).scrollTop(1e3),{height:Math.ceil(c.data.outer.offset().top-c.data.inner.offset().top||0),width:Math.ceil(c.data.outer.offset().left-c.data.inner.offset().left||0)};}function i(){var a=h(!0);return !(a.height||a.width);}function j(a){var b=a.originalEvent;return (!b.axis||b.axis!==b.HORIZONTAL_AXIS)&&!b.wheelDeltaX;}var b=!1,c={data:{index:0,name:"scrollbar"},firefox:/firefox/i.test(navigator.userAgent),macosx:/mac/i.test(navigator.platform),msedge:/edge\/\d+/i.test(navigator.userAgent),msie:/(msie|trident)/i.test(navigator.userAgent),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent)};c.scrolls.add=function(a){this.remove(a).push(a);},c.scrolls.remove=function(b){for(;a.inArray(b,this)>=0;)this.splice(a.inArray(b,this),1);return this;};var d={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!1,ignoreOverlay:!1,isRtl:!1,scrollStep:30,showArrows:!1,stepScrolling:!0,scrollx:null,scrolly:null,onDestroy:null,onFallback:null,onInit:null,onScroll:null,onUpdate:null},e=function(b){c.scroll||(c.overlay=i(),c.scroll=h(),g(),a(window).resize(function(){var a=!1;if(c.scroll&&(c.scroll.height||c.scroll.width)){var b=h();b.height===c.scroll.height&&b.width===c.scroll.width||(c.scroll=b,a=!0);}g(a);})),this.container=b,this.namespace=".scrollbar_"+c.data.index++,this.options=a.extend({},d,window.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},b.data(c.data.name,this),c.scrolls.add(this);};e.prototype={destroy:function(){if(this.wrapper){this.container.removeData(c.data.name),c.scrolls.remove(this);var b=this.container.scrollLeft(),d=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:"","max-height":""}).removeClass("scroll-content scroll-scrollx_visible scroll-scrolly_visible").off(this.namespace).scrollLeft(b).scrollTop(d),this.scrollx.scroll.removeClass("scroll-scrollx_visible").find("div").addBack().off(this.namespace),this.scrolly.scroll.removeClass("scroll-scrolly_visible").find("div").addBack().off(this.namespace),this.wrapper.remove(),a(document).add("body").off(this.namespace),a.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container]);}},init:function(b){var d=this,e=this.container,f=this.containerWrapper||e,g=this.namespace,h=a.extend(this.options,b||{}),i={x:this.scrollx,y:this.scrolly},k=this.wrapper,l={},m={scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop()};if(c.mobile&&h.ignoreMobile||c.overlay&&h.ignoreOverlay||c.macosx&&!c.webkit)return a.isFunction(h.onFallback)&&h.onFallback.apply(this,[e]),!1;if(k)l={height:"auto","margin-bottom":c.scroll.height*-1+"px","max-height":""},l[h.isRtl?"margin-left":"margin-right"]=c.scroll.width*-1+"px",f.css(l);else{if(this.wrapper=k=a("<div>").addClass("scroll-wrapper").addClass(e.attr("class")).css("position","absolute"===e.css("position")?"absolute":"relative").insertBefore(e).append(e),h.isRtl&&k.addClass("scroll--rtl"),e.is("textarea")&&(this.containerWrapper=f=a("<div>").insertBefore(e).append(e),k.addClass("scroll-textarea")),l={height:"auto","margin-bottom":c.scroll.height*-1+"px","max-height":""},l[h.isRtl?"margin-left":"margin-right"]=c.scroll.width*-1+"px",f.addClass("scroll-content").css(l),e.on("scroll"+g,function(b){var f=e.scrollLeft(),g=e.scrollTop();if(h.isRtl)switch(!0){case c.firefox:f=Math.abs(f);case c.msedge||c.msie:f=e[0].scrollWidth-e[0].clientWidth-f;}a.isFunction(h.onScroll)&&h.onScroll.call(d,{maxScroll:i.y.maxScrollOffset,scroll:g,size:i.y.size,visible:i.y.visible},{maxScroll:i.x.maxScrollOffset,scroll:f,size:i.x.size,visible:i.x.visible}),i.x.isVisible&&i.x.scroll.bar.css("left",f*i.x.kx+"px"),i.y.isVisible&&i.y.scroll.bar.css("top",g*i.y.kx+"px");}),k.on("scroll"+g,function(){k.scrollTop(0).scrollLeft(0);}),h.disableBodyScroll){var n=function(a){j(a)?i.y.isVisible&&i.y.mousewheel(a):i.x.isVisible&&i.x.mousewheel(a);};k.on("MozMousePixelScroll"+g,n),k.on("mousewheel"+g,n),c.mobile&&k.on("touchstart"+g,function(b){var c=b.originalEvent.touches&&b.originalEvent.touches[0]||b,d={pageX:c.pageX,pageY:c.pageY},f={left:e.scrollLeft(),top:e.scrollTop()};a(document).on("touchmove"+g,function(a){var b=a.originalEvent.targetTouches&&a.originalEvent.targetTouches[0]||a;e.scrollLeft(f.left+d.pageX-b.pageX),e.scrollTop(f.top+d.pageY-b.pageY),a.preventDefault();}),a(document).on("touchend"+g,function(){a(document).off(g);});});}a.isFunction(h.onInit)&&h.onInit.apply(this,[e]);}a.each(i,function(b,f){var k=null,l=1,m="x"===b?"scrollLeft":"scrollTop",n=h.scrollStep,o=function(){var a=e[m]();e[m](a+n),1==l&&a+n>=p&&(a=e[m]()),l==-1&&a+n<=p&&(a=e[m]()),e[m]()==a&&k&&k();},p=0;f.scroll||(f.scroll=d._getScroll(h["scroll"+b]).addClass("scroll-"+b),h.showArrows&&f.scroll.addClass("scroll-element_arrows_visible"),f.mousewheel=function(a){if(!f.isVisible||"x"===b&&j(a))return !0;if("y"===b&&!j(a))return i.x.mousewheel(a),!0;var c=a.originalEvent.wheelDelta*-1||a.originalEvent.detail,g=f.size-f.visible-f.offset;return c||("x"===b&&a.originalEvent.deltaX?c=40*a.originalEvent.deltaX:"y"===b&&a.originalEvent.deltaY&&(c=40*a.originalEvent.deltaY)),(c>0&&p<g||c<0&&p>0)&&(p+=c,p<0&&(p=0),p>g&&(p=g),d.scrollTo=d.scrollTo||{},d.scrollTo[m]=p,setTimeout(function(){d.scrollTo&&(e.stop().animate(d.scrollTo,240,"linear",function(){p=e[m]();}),d.scrollTo=null);},1)),a.preventDefault(),!1;},f.scroll.on("MozMousePixelScroll"+g,f.mousewheel).on("mousewheel"+g,f.mousewheel).on("mouseenter"+g,function(){p=e[m]();}),f.scroll.find(".scroll-arrow, .scroll-element_track").on("mousedown"+g,function(g){if(1!=g.which)return !0;l=1;var i={eventOffset:g["x"===b?"pageX":"pageY"],maxScrollValue:f.size-f.visible-f.offset,scrollbarOffset:f.scroll.bar.offset()["x"===b?"left":"top"],scrollbarSize:f.scroll.bar["x"===b?"outerWidth":"outerHeight"]()},j=0,q=0;if(a(this).hasClass("scroll-arrow")){if(l=a(this).hasClass("scroll-arrow_more")?1:-1,n=h.scrollStep*l,p=l>0?i.maxScrollValue:0,h.isRtl)switch(!0){case c.firefox:p=l>0?0:i.maxScrollValue*-1;break;case c.msie||c.msedge:}}else l=i.eventOffset>i.scrollbarOffset+i.scrollbarSize?1:i.eventOffset<i.scrollbarOffset?-1:0,"x"===b&&h.isRtl&&(c.msie||c.msedge)&&(l*=-1),n=Math.round(.75*f.visible)*l,p=i.eventOffset-i.scrollbarOffset-(h.stepScrolling?1==l?i.scrollbarSize:0:Math.round(i.scrollbarSize/2)),p=e[m]()+p/f.kx;return d.scrollTo=d.scrollTo||{},d.scrollTo[m]=h.stepScrolling?e[m]()+n:p,h.stepScrolling&&(k=function(){p=e[m](),clearInterval(q),clearTimeout(j),j=0,q=0;},j=setTimeout(function(){q=setInterval(o,40);},h.duration+100)),setTimeout(function(){d.scrollTo&&(e.animate(d.scrollTo,h.duration),d.scrollTo=null);},1),d._handleMouseDown(k,g);}),f.scroll.bar.on("mousedown"+g,function(i){if(1!=i.which)return !0;var j=i["x"===b?"pageX":"pageY"],k=e[m]();return f.scroll.addClass("scroll-draggable"),a(document).on("mousemove"+g,function(a){var d=parseInt((a["x"===b?"pageX":"pageY"]-j)/f.kx,10);"x"===b&&h.isRtl&&(c.msie||c.msedge)&&(d*=-1),e[m](k+d);}),d._handleMouseDown(function(){f.scroll.removeClass("scroll-draggable"),p=e[m]();},i);}));}),a.each(i,function(a,b){var c="scroll-scroll"+a+"_visible",d="x"==a?i.y:i.x;b.scroll.removeClass(c),d.scroll.removeClass(c),f.removeClass(c);}),a.each(i,function(b,c){a.extend(c,"x"==b?{offset:parseInt(e.css("left"),10)||0,size:e.prop("scrollWidth"),visible:k.width()}:{offset:parseInt(e.css("top"),10)||0,size:e.prop("scrollHeight"),visible:k.height()});}),this._updateScroll("x",this.scrollx),this._updateScroll("y",this.scrolly),a.isFunction(h.onUpdate)&&h.onUpdate.apply(this,[e]),a.each(i,function(a,b){var c="x"===a?"left":"top",d="x"===a?"outerWidth":"outerHeight",f="x"===a?"width":"height",g=parseInt(e.css(c),10)||0,i=b.size,j=b.visible+g,k=b.scroll.size[d]()+(parseInt(b.scroll.size.css(c),10)||0);h.autoScrollSize&&(b.scrollbarSize=parseInt(k*j/i,10),b.scroll.bar.css(f,b.scrollbarSize+"px")),b.scrollbarSize=b.scroll.bar[d](),b.kx=(k-b.scrollbarSize)/(i-j)||1,b.maxScrollOffset=i-j;}),e.scrollLeft(m.scrollLeft).scrollTop(m.scrollTop).trigger("scroll");},_getScroll:function(b){var c={advanced:['<div class="scroll-element">','<div class="scroll-element_corner"></div>','<div class="scroll-arrow scroll-arrow_less"></div>','<div class="scroll-arrow scroll-arrow_more"></div>','<div class="scroll-element_outer">','<div class="scroll-element_size"></div>','<div class="scroll-element_inner-wrapper">','<div class="scroll-element_inner scroll-element_track">','<div class="scroll-element_inner-bottom"></div>',"</div>","</div>",'<div class="scroll-bar">','<div class="scroll-bar_body">','<div class="scroll-bar_body-inner"></div>',"</div>",'<div class="scroll-bar_bottom"></div>','<div class="scroll-bar_center"></div>',"</div>","</div>","</div>"].join(""),simple:['<div class="scroll-element">','<div class="scroll-element_outer">','<div class="scroll-element_size"></div>','<div class="scroll-element_track"></div>','<div class="scroll-bar"></div>',"</div>","</div>"].join("")};return c[b]&&(b=c[b]),b||(b=c.simple),b="string"==typeof b?a(b).appendTo(this.wrapper):a(b),a.extend(b,{bar:b.find(".scroll-bar"),size:b.find(".scroll-element_size"),track:b.find(".scroll-element_track")}),b;},_handleMouseDown:function(b,c){var d=this.namespace;return a(document).on("blur"+d,function(){a(document).add("body").off(d),b&&b();}),a(document).on("dragstart"+d,function(a){return a.preventDefault(),!1;}),a(document).on("mouseup"+d,function(){a(document).add("body").off(d),b&&b();}),a("body").on("selectstart"+d,function(a){return a.preventDefault(),!1;}),c&&c.preventDefault(),!1;},_updateScroll:function(b,d){var e=this.container,f=this.containerWrapper||e,g="scroll-scroll"+b+"_visible",h="x"===b?this.scrolly:this.scrollx,i=parseInt(this.container.css("x"===b?"left":"top"),10)||0,j=this.wrapper,k=d.size,l=d.visible+i;d.isVisible=k-l>1,d.isVisible?(d.scroll.addClass(g),h.scroll.addClass(g),f.addClass(g)):(d.scroll.removeClass(g),h.scroll.removeClass(g),f.removeClass(g)),"y"===b&&(e.is("textarea")||k<l?f.css({height:l+c.scroll.height+"px","max-height":"none"}):f.css({"max-height":l+c.scroll.height+"px"})),d.size==e.prop("scrollWidth")&&h.size==e.prop("scrollHeight")&&d.visible==j.width()&&h.visible==j.height()&&d.offset==(parseInt(e.css("left"),10)||0)&&h.offset==(parseInt(e.css("top"),10)||0)||(a.extend(this.scrollx,{offset:parseInt(e.css("left"),10)||0,size:e.prop("scrollWidth"),visible:j.width()}),a.extend(this.scrolly,{offset:parseInt(e.css("top"),10)||0,size:this.container.prop("scrollHeight"),visible:j.height()}),this._updateScroll("x"===b?"y":"x",h));}};var f=e;a.fn.scrollbar=function(b,d){return "string"!=typeof b&&(d=b,b="init"),"undefined"==typeof d&&(d=[]),a.isArray(d)||
213(d=[d]),this.not("body, .scroll-wrapper").each(function(){var e=a(this),g=e.data(c.data.name);(g||"init"===b)&&(g||(g=new f(e)),g[b]&&g[b].apply(g,d));}),this;},a.fn.scrollbar.options=d;var g=function(){var a=0,d=0;return function(e){var f,h,i,j,k,l,m;for(f=0;f<c.scrolls.length;f++)j=c.scrolls[f],h=j.container,i=j.options,k=j.wrapper,l=j.scrollx,m=j.scrolly,(e||i.autoUpdate&&k&&k.is(":visible")&&(h.prop("scrollWidth")!=l.size||h.prop("scrollHeight")!=m.size||k.width()!=l.visible||k.height()!=m.visible))&&(j.init(),i.debug&&(window.console&&console.log({scrollHeight:h.prop("scrollHeight")+":"+j.scrolly.size,scrollWidth:h.prop("scrollWidth")+":"+j.scrollx.size,visibleHeight:k.height()+":"+j.scrolly.visible,visibleWidth:k.width()+":"+j.scrollx.visible},!0),d++));b&&d>10?(window.console&&console.log("Scroll updates exceed 10"),g=function(){}):(clearTimeout(a),a=setTimeout(g,300));};}();window.angular&&!function(a){a.module("jQueryScrollbar",[]).provider("jQueryScrollbar",function(){var b=d;return {setOptions:function(c){a.extend(b,c);},$get:function(){return {options:a.copy(b)};}};}).directive("jqueryScrollbar",["jQueryScrollbar","$parse",function(a,b){return {restrict:"AC",link:function(c,d,e){var f=b(e.jqueryScrollbar),g=f(c);d.scrollbar(g||a.options).on("$destroy",function(){d.scrollbar("destroy");});}};}]);}(window.angular);});; 214(function(Drupal){'use strict';var TRACK_TAP_RATIO=0.75;var NATIVE_PAN_SLOP=24;var NATIVE_PAN_GRACE=120;var GLIDE_DECAY=0.94;var GLIDE_CUTOFF=0.05;function resolveScroller(target){var element=target.closest('.scroll-element');var wrapper=target.closest('.scroll-wrapper');if(!element||!wrapper)return null;var content=wrapper.querySelector(':scope > .scroll-content');if(!content)return null;var horizontal=element.classList.contains('scroll-x');var maxScroll=horizontal?content.scrollWidth-content.clientWidth:content.scrollHeight-content.clientHeight;if(maxScroll<=0)return null;var thumb=element.querySelector('.scroll-bar');var sizer=element.querySelector('.scroll-element_size')||element;var trackLength=horizontal?sizer.offsetWidth:sizer.offsetHeight;var thumbLength=thumb?(horizontal?thumb.offsetWidth:thumb.offsetHeight):0;var travel=trackLength-thumbLength;if(travel<=0)return null;return {element,content,horizontal,maxScroll,ratio:maxScroll/travel,offsetProperty:horizontal?'scrollLeft':'scrollTop',visible:horizontal?content.clientWidth:content.clientHeight};}function clamp(value,max){return Math.max(0,Math.min(max,value));}function onContentPointerDown(event){if(event.pointerType==='mouse'||!event.isPrimary)return;var target=event.target;if(!(target instanceof Element)||target.closest('.scroll-element'))return;var content=target.closest('.scroll-content');if(!content||!content.parentNode.classList.contains('scroll-wrapper'))return;var verdict=content.dataset.scrollbarNativePan;if(verdict==='works')return;var maxScroll=content.scrollHeight-content.clientHeight;if(maxScroll<=0)return;var startY=event.clientY;var startTime=event.timeStamp;var startOffset=content.scrollTop;var manual=verdict==='broken';var written=startOffset;var lastY=startY;var lastTime=startTime;var velocity=0;var giveUp=function(){content.dataset.scrollbarNativePan='works';document.removeEventListener('pointermove',move);document.removeEventListener('pointerup',end);document.removeEventListener('pointercancel',end);};var move=function(moveEvent){if(moveEvent.pointerId!==event.pointerId)return;var delta=startY-moveEvent.clientY;if(!manual){if(content.scrollTop!==written){giveUp();return;}var hasRoom=delta>0?startOffset<maxScroll:startOffset>0;if(!hasRoom||Math.abs(delta)<NATIVE_PAN_SLOP||moveEvent.timeStamp-startTime<NATIVE_PAN_GRACE)return;manual=true;content.dataset.scrollbarNativePan='broken';}var elapsed=moveEvent.timeStamp-lastTime;if(elapsed>0)velocity=(lastY-moveEvent.clientY)/elapsed;lastY=moveEvent.clientY;lastTime=moveEvent.timeStamp;written=clamp(startOffset+delta,maxScroll);content.scrollTop=written;moveEvent.preventDefault();};var end=function(endEvent){if(endEvent.pointerId!==event.pointerId)return;document.removeEventListener('pointermove',move);document.removeEventListener('pointerup',end);document.removeEventListener('pointercancel',end);if(endEvent.type==='pointercancel'){content.dataset.scrollbarNativePan='works';return;}if(!manual)return;
214var glide=function(){velocity*=GLIDE_DECAY;if(Math.abs(velocity)<GLIDE_CUTOFF)return;var next=clamp(content.scrollTop+velocity*16,maxScroll);if(next===content.scrollTop)return;content.scrollTop=next;requestAnimationFrame(glide);};requestAnimationFrame(glide);};document.addEventListener('pointermove',move,{passive:false});document.addEventListener('pointerup',end);document.addEventListener('pointercancel',end);}function onPointerDown(event){if(event.pointerType==='mouse'||!event.isPrimary)return;var target=event.target;if(!(target instanceof Element))return;var thumb=target.closest('.scroll-bar');var track=target.closest('.scroll-element_track, .scroll-arrow');if(!thumb&&!track){onContentPointerDown(event);return;}var scroller=resolveScroller(thumb||track);if(!scroller)return;var content=scroller.content;if(!thumb){var thumbRect=scroller.element.querySelector('.scroll-bar').getBoundingClientRect();var pointer=scroller.horizontal?event.clientX:event.clientY;var thumbStart=scroller.horizontal?thumbRect.left:thumbRect.top;var thumbEnd=scroller.horizontal?thumbRect.right:thumbRect.bottom;var direction=pointer>thumbEnd?1:(pointer<thumbStart?-1:0);if(direction)content[scroller.offsetProperty]=clamp(content[scroller.offsetProperty]+direction*scroller.visible*TRACK_TAP_RATIO,scroller.maxScroll);event.preventDefault();return;}var startPosition=scroller.horizontal?event.clientX:event.clientY;var startOffset=content[scroller.offsetProperty];scroller.element.classList.add('scroll-draggable');event.preventDefault();var move=function(moveEvent){if(moveEvent.pointerId!==event.pointerId)return;var position=scroller.horizontal?moveEvent.clientX:moveEvent.clientY;content[scroller.offsetProperty]=clamp(startOffset+(position-startPosition)*scroller.ratio,scroller.maxScroll);moveEvent.preventDefault();};var end=function(endEvent){if(endEvent.pointerId!==event.pointerId)return;scroller.element.classList.remove('scroll-draggable');document.removeEventListener('pointermove',move);document.removeEventListener('pointerup',end);document.removeEventListener('pointercancel',end);};document.addEventListener('pointermove',move,{passive:false});document.addEventListener('pointerup',end);document.addEventListener('pointercancel',end);}Drupal.behaviors.jqueryScrollbarTouch={attach:function(){if(this.bound||!window.PointerEvent)return;this.bound=true;document.addEventListener('pointerdown',onPointerDown,{passive:false});}};})(Drupal);; 215(function($,Drupal){Drupal.behaviors.autoPopup={attach:function(context,settings){var autoPopup=this;$(once('auto-popup-init','body',context)).each(function(){var previousPopups={};const raw=Cookies.get('auto_popup_showed');if(raw){const data=JSON.parse(raw);if(data)previousPopups=data;}if(drupalSettings.auto_popup_request_uri)$.ajax({type:'GET',url:drupalSettings.auto_popup_ajax_url,data:{path:drupalSettings.auto_popup_request_uri,nid:drupalSettings.auto_popup_node_id?drupalSettings.auto_popup_node_id:null},dataType:'json',success:function(data){if(!data.html||!data.popup_node)return;if(previousPopups&&previousPopups[data.popup_node])return;$.ajax({type:'GET',data:{popup_node:data.popup_node},url:drupalSettings.auto_popup_ajax_showed_url});openPopup(data.html);$('.scrollbar-inner-popup').scrollbar();autoPopup.onResize();}});});$(window).on('resize',function(){if($('body',context).hasClass('modal-popup-overlay-opened'))autoPopup.onResize();});$('body',context).on('click','.auto-popup-wrapp .close',function(){closePopup();});$(document).keyup(function(e){if(e.key==="Escape"&&$('body',context).hasClass('auto-popup-opened'))closePopup();});function openPopup(html){$('.modal-popup-overlay',context).addClass('transparent-popup-modal');$('.modal-popup-overlay .modal-popup-content',context).prepend(html);$('body',context).addClass('modal-popup-overlay-opened');$(once('auto-popup-images','.modal-popup-content a.image-popup-link')).each(function(){var popupImage=this;$(popupImage).on('click',function(e){e.preventDefault();});});}function closePopup(){$('body',context).removeClass('modal-popup-overlay-opened');}},onResize:function(){var screenHeight=jQuery(window).height();if(screenHeight<850)$('.scrollbar-inner-popup').css({"maxHeight":screenHeight-70+"px"});}};})(jQuery,Drupal);; 216/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ 217!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1
217)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window);; 218(function($,Drupal){Drupal.behaviors.bannerLazyload={attach:function(context,settings){$(once('banners-lazyloaded','body',context)).each(function(){$('img.lazy',context).lazy({effect:"fadeIn",effectTime:500,delay:0,threshold:0,bind:"event"});});}};})(jQuery,Drupal);; 219!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 219
219ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
219slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
219parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
219,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 219
219,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
219!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
219):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
219o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
219,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}}); 220; 221(function($,Drupal){Drupal.behaviors.bannerSlider={attach:function(context,settings){$(function(){$(once('banners-slider','html',context)).each(function(){var allSlides=$('.banners-slider .slide');var totalSlides=allSlides.length;var currentStartIndex=0;function getMaxVisibleSlides(){var $bannerSlider=$('.banners-slider');var isPhone=window.innerWidth<768;var isTablet=window.innerWidth<=1024&&window.innerWidth>=768;if(isPhone)return 1;if($bannerSlider.hasClass('banner-size-small'))return isTablet?5:6;else if($bannerSlider.hasClass('banner-size-medium'))return isTablet?4:5;else{if($bannerSlider.hasClass('banner-size-large'))return isTablet?3:4;}return 4;}function initSlideAriaLabels(){if(totalSlides===0)return $();allSlides.each(function(index){var currSlideLink=$(this).find('.views-field-field-banner-image > a');var title=currSlideLink.attr('aria-label')||'';var alt=currSlideLink.find('img').attr('alt')||'';var ariaLabel=Drupal.t('Banner @current of @total: @title',{'@current':index+1,'@total':totalSlides,'@title':title||alt||Drupal.t('No title')});currSlideLink.attr('aria-label',ariaLabel);});}initSlideAriaLabels();function updateBannerStatus(){if(totalSlides===0)return $();var statusText=allSlides.eq(currentStartIndex).find('.views-field-field-banner-image > a').attr('aria-label');$('#banner-status').text(statusText);}function updateVisibleSlides(startIndex=0){if(totalSlides===0)return $();var maxVisible=getMaxVisibleSlides();allSlides.hide();var slidesToShow=[];for(var i=0;i<Math.min(maxVisible,totalSlides);i++){var idx=(startIndex+i)%totalSlides;slidesToShow.push(allSlides[idx]);}$(slidesToShow).show();currentStartIndex=startIndex;return $(slidesToShow);}var slides=updateVisibleSlides(0);var sliderContent=$('.slider-content');var slideW=slides.length>0?slides.outerWidth():0;var inView=Math.floor(sliderContent.outerWidth()/slideW+0.1);var animatable=totalSlides>getMaxVisibleSlides();var isPaused=false;var $slider=$('.banners-slider');var $bannerLinks;function updateBannerLinks(){$slider.find('.slide .views-field-field-banner-image > a').attr('tabindex',-1).attr('aria-hidden','true');$bannerLinks=$('.slide:visible > .views-field-field-banner-image > a');$bannerLinks.attr('tabindex',0).attr('aria-hidden','false');}updateBannerLinks();if(!animatable||totalSlides<=1)$('.banners-slider').addClass('static');function setInitPos(setButtons){var left=0;slides.each(function(i){$(this).css('left',left);left+=$(this).outerWidth();});if(setButtons){$('.slider-buttons').empty();for(var i=0;i<totalSlides;i++)$('.slider-buttons').append('<div class="slider-button '+(i==currentStartIndex?'active ':'')+'"></div>');}}var posNow=0;var autoSlideTime=drupalSettings.banners_slide_interval;function moveSliderTo(targetIndex,forceMove){if(isPaused&&!forceMove)return;if(animatable||forceMove){animatable=false;var newStartIndex=targetIndex%totalSlides;if(newStartIndex<0)newStartIndex+=totalSlides;var newSlides=updateVisibleSlides(newStartIndex);updateBannerLinks();slideW=newSlides.length>0?newSlides.outerWidth():0;var left=0;newSlides.each(function(i){$(this).css('left',left);left+=$(this).outerWidth();});slides=newSlides;posNow=newStartIndex;$('.slider-button').removeClass('active');$('.slider-button').eq(posNow).addClass('active');animatable=true;if(!isPaused)setBannertTimeout();}}function resizeBanner(){slides=updateVisibleSlides(currentStartIndex);updateBannerLinks();slideW=slides.length>0?slides.outerWidth():0;inView=slideW>
2210?Math.floor(sliderContent.outerWidth()/slideW+0.1):0;animatable=totalSlides>getMaxVisibleSlides();if(!animatable)$('.banners-slider').addClass('static');else $('.banners-slider').removeClass('static');setInitPos(true);if(totalSlides>0)$('.slider-button').eq(currentStartIndex).addClass('active');}var resizeTimer;$(window).resize(function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){resizeBanner();},200);});$('.slider-control').click(function(){if(totalSlides<=1)return;pauseBanner();var direction=parseInt($(this).attr('control-dir'));var targetPos=posNow+direction;moveSliderTo(targetPos,true);updateBannerStatus();setTimeout(function(){if(!$slider.is(':hover')&&!$slider.is(':focus')&&!$('.slider-control:hover, .slider-control:focus',$slider).length)resumeBanner();},300);});$('.slider-buttons').on('click','.slider-button',function(){if(totalSlides<=1)return;pauseBanner();moveSliderTo($(this).index(),true);setTimeout(function(){if(!$slider.is(':hover')&&!$slider.is(':focus'))resumeBanner();},300);});setInitPos(true);var bannerTimeout;function setBannertTimeout(){window.clearTimeout(bannerTimeout);if(!isPaused&&totalSlides>1)bannerTimeout=setTimeout(function(){if(document.hasFocus()&&!isPaused)moveSliderTo(posNow+1);else setBannertTimeout();},autoSlideTime);}function pauseBanner(){isPaused=true;window.clearTimeout(bannerTimeout);$slider.addClass('paused');slides.stop(true,false);}function resumeBanner(){isPaused=false;$slider.removeClass('paused');setBannertTimeout();}function tryResume(){setTimeout(function(){var sliderEl=$slider[0];var active=document.activeElement;var focusWithin=!!active&&(sliderEl===active||sliderEl.contains(active));var hoverWithin=$slider.is(':hover');if(!hoverWithin&&!focusWithin)resumeBanner();},150);}$slider.on('mouseenter focus',pauseBanner);$slider.on('mouseleave focusout',tryResume);$($bannerLinks,$slider).on('mouseenter focus',pauseBanner);$($bannerLinks,$slider).on('mouseleave blur',tryResume);$slider.on('keydown',function(e){if(totalSlides<=1)return;switch(e.which){case 37:pauseBanner();moveSliderTo(posNow-1,true);e.preventDefault();break;case 39:pauseBanner();moveSliderTo(posNow+1,true);e.preventDefault();break;case 32:if(isPaused)resumeBanner();else pauseBanner();e.preventDefault();break;case 27:$slider.blur();setTimeout(resumeBanner,100);e.preventDefault();break;}});$('.slider-control',$slider).on('keydown',function(e){if(e.which===13||e.which===32){e.preventDefault();$(this).click();}});$(document).on('visibilitychange',function(){if(document.hidden)pauseBanner();else{if(!$slider.is(':hover')&&!$slider.is(':focus'))setTimeout(resumeBanner,200);}});setBannertTimeout();});});}};})(jQuery,Drupal);; 222(function($,Drupal){(function($,window){Drupal.behaviors.openingAnchor={attach:function(context,settings){var fixedElementHeight=70;if($('.role--authenticated').length)var fixedElementHeight=150;var adjustAnchor=function($anchor){if(!$anchor)var $anchor=$(':target');if($anchor.length>0){var $accordion_content=$anchor.parents('.collapse');if($accordion_content.length)$accordion_content.collapse();if($anchor.length&&$anchor.hasClass('collapsed'))$anchor.click();if($anchor.hasClass('collapsed'))$anchor.next().collapse();setTimeout(function(){$('html, body').animate({scrollTop:$anchor.offset().top-fixedElementHeight});});}};$(window).on('hashchange load',function(){adjustAnchor();});$('a[href*="#"]:not([href="#"])').click(function(){adjustAnchor($(this.hash));});}};})(jQuery,window);Drupal.behaviors.copyAnchor={attach:function(context,settings){if(jQuery(".ckeditor-element-with-anchor").length)jQuery(".ckeditor-element-with-anchor:not('.processed')").each(function(){var $parent=jQuery(this);var url=window.location.origin+window.location.pathname+'#'+$parent.attr('id');var headingText=$parent.clone().children('.element-with-anchor').remove().end().text().trim();var ariaLabel=Drupal.t('Copy url')+': '+headingText;var btn='<button type="button" tabindex="0" data-anchor="'+url+'" data-original-aria-label="'+ariaLabel+'" class="element-with-anchor ckeditor-text" data-toggle="tooltip" title="'+Drupal.t('Copy url')+'" aria-label="'+ariaLabel+'"></button>';$parent.addClass('processed').append(btn);});$(once('copyAnchorClick','.element-with-anchor',context)).on('click',function(e){e.stopPropagation();var $this=$(this);var input=document.createElement('input');input.type='text';input.value=$this.attr('data-anchor');input.style.position='absolute';input.style.left='-9999px';input.style.top='-9999px';document.body.appendChild(input);input.select();input.setSelectionRange(0,99999);document.execCommand("copy");$this.attr('data-original-title',Drupal.t('Copied')).attr('aria-label',Drupal.t('Copied')).tooltip('show');var tooltipId=$this.attr('aria-describedby');if(tooltipId)$('#'+tooltipId).trigger('mouseenter');setTimeout(function(){var currentTooltipId=$this.attr('aria-describedby');if($this.closest('body').length&¤tTooltipId){var originalAriaLabel=$this.data('original-aria-label')||Drupal.t('Copy url');$this.attr('data-original-title',Drupal.t('Copy url')).attr('aria-label',originalAriaLabel);}},1500);if(input.parentNode===document.body)document.body.removeChild(input);});}};})(jQuery,Drupal);; 223(function($,Drupal){Drupal.behaviors.contentToolsBlock={attach:function(context,settings){$(once('content-tools-block-rendered','body',context)).each(function(){var allowed=false;const agreedCookie=Cookies.get('cookie-agreed-categories');if(agreedCookie){const categoriesData=JSON.parse(agreedCookie);if(categoriesData&&categoriesData.includes('social_media'))allowed=true;}if(allowed)$('.js-share-block a').attr('href','#').attr('data-modal-trigger','share').addClass('share');$('.content-tools-row.print',context).on('click',function(e){e.preventDefault();window.print();});$('.content-tools-block .share',context).on('click',function(e){e.preventDefault();var $trigger=$(this);$('body').data('modalTrigger',$trigger);if(!$('body').hasClass('modal-popup-overlay-opened')&&typeof a2a!=='undefined'){$('.modal-popup-overlay .modal-popup-content').html($('#share-modal-popup-content').html());a2a.init_all();$('body').addClass('modal-popup-overlay-opened');setTimeout(function(){$('.modal-popup-content-wrap .share-btns .modal-elements:first').focus();});}
223jQuery('.modal-popup-overlay .share-btns a').addClass('modal-elements');e.preventDefault();});jQuery('.content-tools-block .share a').on('click',function(e){jQuery('.content-tools-block .share').tooltip("hide");});$('.content-tools-share-content .close, .content-tools-share-content .cancel-share a',context).on('click',function(e){e.preventDefault();if($('body').hasClass('content-tools-share-opened'))$('body').removeClass('content-tools-share-opened');});$('.content-tools-share .content-tools-share-content .share-btns > span > a',context).on('click',function(e){setTimeout(function(){if($('body').hasClass('content-tools-share-opened'))$('body').removeClass('content-tools-share-opened');},500);});});}};})(jQuery,Drupal);; 224(function($,Drupal){Drupal.behaviors.contentToolsHeaderBlock={attach:function(context){setTimeout(function(){if($('.header-content-tools').length){$('#skip .skip-link').attr('href','#header-content-tools');var playerPlaceholder=$('<div class="audio-player-placeholder"></div>');playerPlaceholder.insertAfter($('.header-content-tools .audio'));$('.synthesis-audio-player-wrapper').appendTo(playerPlaceholder);$(once('contentToolsAudio','.header-content-tools .audio',context)).on('click',function(){var player=$('.synthesis-audio-player-wrapper');if(player.length){var hiddenClass='hidden-player';var isIE=window.MSInputMethodContext&&document.documentMode;var pauseText=Drupal.t('Close playing');var playText=Drupal.t('Play text');if(player.hasClass(hiddenClass)){player.removeClass(hiddenClass);player.find('.holder').attr('tabindex','0');player.find('.slider').attr('tabindex','0');player.find('.volume').attr('tabindex','0');player.find('.download').attr('tabindex','0');$('#main #content-area').addClass('place-for-player');$('#main #content-area').removeClass('no-place-for-player');$('.header-content-tools .audio .content-tools-text').html(pauseText);$('.header-content-tools .audio .icon-volume').hide();$('.header-content-tools .audio .icon-play').hide();$('.header-content-tools .audio .icon-times').show();if(isIE)player.find('.volume__button').css('visibility','visible');var playButton=player.find('.play-pause-btn');if(playButton.attr('aria-label')=='Play')playButton.trigger('click');}else{player.addClass(hiddenClass);player.find('.holder').attr('tabindex','-1');player.find('.slider').attr('tabindex','-1');player.find('.volume').attr('tabindex','-1');player.find('.download').attr('tabindex','-1');$('#main #content-area').removeClass('place-for-player');$('#main #content-area').addClass('no-place-for-player');$('.header-content-tools .audio .content-tools-text').html(playText);$('.header-content-tools .audio .icon-times').hide();$('.header-content-tools .audio .icon-play').show();$('.header-content-tools .audio .icon-volume').show();if(isIE)player.find('.volume__button').css('visibility','hidden');var playButton=player.find('.play-pause-btn');if(playButton.attr('aria-label')==Drupal.t('Pause'))playButton.trigger('click');}var hasUsed='has-used';if(!player.hasClass(hasUsed))player.addClass(hasUsed);}});$('#sidebar-left .navigation ul.menu li:last-child').on('keydown',function(event){focusElementWorkaround($('#header-content-tools'),event,false);});$('#header-content-tools .content-tools-row').last().on('keydown',function(event){var toContent=false;if(!$(this).hasClass('audio'))toContent=true;else{if($('.synthesis-audio-player-wrapper').hasClass('hidden-player'))toContent=true;}if(toContent)focusElementWorkaround($('#content'),event,false);});if($('#header-content-tools .content-tools-row').last().hasClass('audio'))$('#header-content-tools .audio-player-block .download').on('keydown',function(event){focusElementWorkaround($('#content'),event,false);});$('#block-ministry-breadcrumbs ol li:nth-last-child(2) a').on('keydown',function(event){focusElementWorkaround($('#sidebar-left .navigation ul.menu'),event,false);});$('#sidebar-left .navigation ul.menu li:first-child').on('keydown',function(event){focusElementWorkaround($('#header-content-tools'),event,true);});$('#header-content-tools .content-tools-row:first-child').on('keydown',function(event){if($('#sidebar-left .navigation ul.menu').length)focusElementWorkaround($('#content'),event,true);else focusElementWorkaround($('#header-content-tools'),event,true);});$('#content').find(':focusable').first().on('keydown',function(event){focusElementWorkaround($('#sidebar-left .navigation ul.menu'),event,true);});function focusElementWorkaround(element,e,backwards){if((backwards&&!e.shiftKey)||(!backwards&&e.shiftKey))return;if(element.length&&e.keyCode===9){element.attr('tabindex','0');element.trigger('focus');element.attr('tabindex','-1');}}}});}};})(jQuery,Drupal);; 225/* 226 * @license jQuery Basictable | MIT | Jerry Low | https://www.github.com/jerrylow/basictable 227 */ 228!function(t){t.fn.basictable=function(a){var e=function(a,e){var r=[];if(e.tableWrap&&a.wrap('<div class="bt-wrapper"></div>'),e.header){var i="";i=a.find("thead tr th").length?"thead th":a.find("tbody tr th").length?"tbody tr th":a.find("th").length?"tr:first th":"tr:first td",t.each(a.find(i),function(){var a=t(this),e=parseInt(a.attr("colspan"),10)||1,n=a.closest("tr").index();r[n]||(r[n]=[]);for(var i=0;i<e;i++)r[n].push(a)})}t.each(a.find("tbody tr"),function(){n(t(this),r,e)}),t.each(a.find("tfoot tr"),function(){n(t(this),r,e)})},n=function(a,e,n){a.children().each(function(){var a=t(this);if(""!==a.html()&&" "!==a.html()||n.showEmptyCells){for(var r=a.index(),i="",o=0;o<e.length;o++){0!=o&&(i+=": "),i+=e[o][r].text()}a.attr("data-th",i),n.contentWrap&&!a.children().hasClass("bt-content")&&a.wrapInner('<span class="bt-content" />')}else a.addClass("bt-hide")})},r=function(a,e){e.forceResponsive?null!==e.breakpoint&&t(window).width()<=e.breakpoint||null!==e.containerBreakp
228oint&&a.parent().width()<=e.containerBreakpoint?i(a,e):o(a,e):a.removeClass("bt").outerWidth()>a.parent().width()?i(a,e):o(a,e)},i=function(t,a){t.addClass("bt"),a.header||t.addClass("bt--no-header"),a.tableWrap&&t.parent(".bt-wrapper").addClass("active")},o=function(t,a){t.removeClass("bt bt--no-header"),a.tableWrap&&t.parent(".bt-wrapper").removeClass("active")},s=function(a,e){var n;a.removeClass("bt bt--no-header"),a.find("td").removeAttr("data-th"),e.tableWrap&&a.unwrap(),e.contentWrap&&(n=a,t.each(n.find("td"),function(){var a=t(this),e=a.children(".bt-content").html();a.html(e)})),a.removeData("basictable")};this.each(function(){var n=t(this);if(0===n.length||n.data("basictable")){if(n.data("basictable")){var l=n.data("basictable");"destroy"===a?s(n,l):"restart"===a?(s(n,l),n.data("basictable",l),e(n,l),r(n,l)):"start"===a?i(n,l):"stop"===a?o(n,l):r(n,l)}return!1}var c=t.extend({},t.fn.basictable.defaults,a),d={breakpoint:c.breakpoint,containerBreakpoint:c.containerBreakpoint,contentWrap:c.contentWrap,forceResponsive:c.forceResponsive,noResize:c.noResize,tableWrap:c.tableWrap,showEmptyCells:c.showEmptyCells,header:c.header};null===d.breakpoint&&null===d.containerBreakpoint&&(d.breakpoint=568),n.data("basictable",d),e(n,n.data("basictable")),d.noResize||(r(n,n.data("basictable")),t(window).bind("resize.basictable",function(){var t;(t=n).data("basictable")&&r(t,t.data("basictable"))}))})},t.fn.basictable.defaults={breakpoint:null,containerBreakpoint:null,contentWrap:!0,forceResponsive:!0,noResize:!1,tableWrap:!1,showEmptyCells:!1,header:!0}}(jQuery); 229; 230(function($,Drupal){Drupal.behaviors.basictable={attach:function(context,settings){var tableWithHeader=0;jQuery(".cke_editable table").each(function(){if(jQuery(this).parents('.webform-multiple-table').length)return;if(jQuery(this).find('thead').html()){tableWithHeader=tableWithHeader+1;jQuery(this).addClass("table-with-thead").attr('data-header-id',tableWithHeader);}var $this=$(this);if(jQuery(this).find('tbody th:first-child').length){jQuery(this).addClass('table-with-col-header');if($this.find('tbody th[colspan]').length)jQuery($this).addClass('col-header-exception');if($this.find('tbody th[rowspan]').length)jQuery($this).addClass('col-header-exception');}});}};})(jQuery,Drupal);; 231Drupal.behaviors.blockGoogleAnalytics={attach:function(context,settings){function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";}cookieAgreed=getCookie('cookie-agreed');cookieAgreedCategories=getCookie('cookie-agreed-categories');var gaCode=settings.ga_account_id;window['ga-disable-'+gaCode]=true;if(cookieAgreed=='2'&&cookieAgreedCategories){agreedCategories=JSON.parse(cookieAgreedCategories);if(agreedCategories.includes('statistics')){window['ga-disable-'+gaCode]=false;dynamicallyLoadScript('https://www.googletagmanager.com/gtag/js?id='+gaCode);}}function dynamicallyLoadScript(url){var script=document.createElement("script");script.src=url;script.async=true;document.head.appendChild(script);}}};; 232(function($,Drupal){Drupal.behaviors.CookiesFunctions={sendCookiesData:function(statistics,social_media,destination){jQuery.ajax({url:Drupal.url('api/chosen-cookies'),method:'POST',data:{'statistics':statistics,'social_media':social_media},complete:function(response){if(destination&&/^\/(?!\/)/.test(destination))window.location.href=destination;else window.location.reload();}});},recalculateHeader:function(){cookiesJs=this;if(Cookies.get('cookie-agreed')&&Cookies.get('cookie-agreed-categories'))return;var topElementSelector=cookiesJs.getSelector();var topMargin=$('.header-wrapper').outerHeight()||0;if(window.innerWidth<768)var topMargin=$('#cookie-element-wrap').outerHeight()||0;const selectors=['#main','.notifications-wrapper.maintenance-message','.notifications-wrapper.notifications-view-wrapper','#header-info'];selectors.forEach((selector)=>{if(topElementSelector!=selector)$(selector).css({'margin-top':'0px'});});if(window.innerWidth>575&&window.innerWidth<768)topMargin=$('.header-search').outerHeight()||0;$(topElementSelector).css({'margin-top':topMargin});}
232,getSelector:function(){var topElementSelector='#header-info';if($('body').hasClass('front-page'))topElementSelector='#main';if($('body').hasClass('maintenance-message-visible')&&$('body').hasClass('notifications-view-visible'))topElementSelector='.notifications-wrapper.maintenance-message';else{if($('body').hasClass('maintenance-message-visible'))topElementSelector='.notifications-wrapper.maintenance-message';if($('body').hasClass('notifications-view-visible'))topElementSelector='.notifications-wrapper.notifications-view-wrapper';}return topElementSelector;},saveChanges:function(){var url=window.location.href;url=this.removeURLParameter(url,'consent');url=this.removeURLParameter(url,'reopenCookies');url=this.removeURLParameter(url,'lang');if(document.referrer&&document.referrer.indexOf(window.location.hostname)===-1){var utm_source=encodeURIComponent(document.referrer);if(url.includes('?'))url=url+'&utm_source='+utm_source;else url=url+'?utm_source='+utm_source;}document.location.replace(url);if(url.indexOf("#")!==-1)window.location.reload();},removeURLParameter:function(url,parameter){var urlparts=url.split('?');if(urlparts.length>=2){var prefix=encodeURIComponent(parameter)+'=';var pars=urlparts[1].split(/[&;]/g);for(var i=pars.length;i-->0;)if(pars[i].lastIndexOf(prefix,0)!==-1)pars.splice(i,1);url=urlparts[0]+'?'+pars.join('&');return url;}else return url;}};})(jQuery,Drupal);; 233(function($,Drupal){Drupal.behaviors.cookiesJs={attach:function(context,settings){$(once('cookie-accept','body',context)).each(function(el){jQuery(document).ready(function(){$(document).on('eu_cookie_compliance.changeStatus',function(event,status){const agreedCookie=Cookies.get('cookie-agreed-categories');if(agreedCookie){const categoriesData=JSON.parse(agreedCookie);if(categoriesData){var statistics=false;var social_media=false;if(categoriesData.includes('statistics'))statistics=true;if(categoriesData.includes('social_media'))social_media=true;Drupal.behaviors.CookiesFunctions.sendCookiesData(statistics,social_media,false);}}});setTimeout(function(){jQuery('.messages.cookie-choice').fadeOut(100,function(){jQuery(this).remove();});},5000);});});$(document).on('eu_cookie_compliance_popup_open','#sliding-popup',function(){Drupal.behaviors.CookiesFunctions.recalculateHeader();const $link=$('.cookie-block-wrap .open-cookies-page');if($link.length){const current=window.location.pathname+window.location.search;const url=new URL($link.attr('href'),window.location.origin);url.searchParams.set('destination',current);$link.attr('href',url.toString());}});$(window).on('resize',function(){Drupal.behaviors.CookiesFunctions.recalculateHeader();});$(document).on('eu_cookie_compliance_popup_close',function(){var topMargin=$('#header').outerHeight()||0;var topElementSelector=Drupal.behaviors.CookiesFunctions.getSelector();$(topElementSelector).css({'margin-top':topMargin});if(window.innerWidth>767)if($('.navbar-collapse.show #menu-tree-main').length)$('.navbar-collapse.show #menu-tree-main').css('min-height','100%');});}};})(jQuery,Drupal);; 234(function($,Drupal){Drupal.behaviors.headerSearchBlock={attach:function(context,settings){$(once('search-link-handler','#user-tools-search > button',context)).on('click',function(event){event.preventDefault();});$('.search-overlay').click(function(event){if(event.target.className==='search-overlay')$('#user-tools-search > button').trigger('click');});$(once('search-collapse-handler','#header-search',context)).on('hidden.bs.collapse',function(){$('#user-tools-search > button').focus();}).on('shown.bs.collapse',function(){if($('#cookie-element-wrap .eu-cookie-compliance-banner').length)if(window.innerWidth>767){var headerHeight=$('.header-wrapper').outerHeight();if($('#toolbar-bar').length)headerHeight=headerHeight+52;if(headerHeight>70)$('.search-overlay').css('top',headerHeight+'px');};});once('mob-header-search','#custom-header-search-form',context).forEach((form)=>{const $submitBtn=$(form).find('.js-form-submit');const $searchInput=$(form).find('.form-search');const mq=window.matchMedia('(min-width: 768px)');function updateSubmitBtnValue(matches){if($submitBtn.hasClass('header-center-display'))return;$submitBtn.attr('value',matches?Drupal.t('Search'):'');}function updateSubmitVisibility(){if(mq.matches)return;const shouldShow=$searchInput.is(':focus')||$searchInput.val().length>0;$submitBtn.toggleClass('submit-show',shouldShow);}mq.addEventListener('change',(e)=>{updateSubmitBtnValue(e.matches);if(e.matches)$submitBtn.removeClass('submit-show');});$searchInput.on('focus blur input',updateSubmitVisibility);updateSubmitBtnValue(mq.matches);updateSubmitVisibility();});}};})(jQuery,Drupal);; 235(function($,Drupal){Drupal.behaviors.searchHint={attach(context){once('search-hint','#custom-search-form input[type="search"], #custom-header-search-form input[type="search"]',context).forEach((input)=>{const $input=$(input);const $container=$(input).closest('.input-wrap');$('<span>',{'class':'search-hint','aria-hidden':'true','html':Drupal.t('Press <kbd>Enter</kbd> to search')}).appendTo($container);});}};})(jQuery,Drupal);; 236(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(exports):typeof define==='function'&&define.amd?define(['exports'],factory):(global=global||self,factory(global.IMask={}));}(this,(function(exports){'use strict';var commonjsGlobal=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports;}var check=function(it){return it&&it.Math==Math&⁢};var global_1=check(typeof globalThis=='object'&&globalThis)||check(typeof window=='object'&&window)||check(typeof self=='object'&&self)||check(typeof commonjsGlobal=='object'&&commonjsGlobal)||Function('return this')();var fails=function(exec){try{return !!exec();}catch(error){return true;}};var descriptors=!fails(function(){return Object.defineProperty({},1,{get:function(){return 7;}})[1]!=7;});var nativePropertyIsEnumerable={}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var NASHORN_BUG=getOwnPropertyDescriptor&&!nativePropertyIsEnumerable.call({1:2},1);var f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor(this,V);return !!descriptor&&descriptor.enumerable;}:nativePropertyIsEnumerable;var objectPropertyIsEnumerable={f};var createPropertyDescriptor=function(bitmap,value){return {enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value};};var toString={}.toString;var classofRaw=function(it){return toString.call(it).slice(8,-1);};var split=''.split;var indexedObject=fails(function(){return !Object('z').propertyIsEnumerable(0);})?function(it){return classofRaw(it)=='String'?split.call(it,''):Object(it);}:Object;var requireObjectCoercible=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it;};var toIndexedObject=function(it){return indexedObject(requireObjectCoercible(it));};var isObject=function(it){return typeof it==='object'?it!==null:typeof it==='function';};var toPrimitive=function(input,PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&typeof (fn=input.toString)=='function'&&!isObject(val=fn.call(input)))return val;if(typeof (fn=input.valueOf)=='function'&&!isObject(val=fn.call(input)))return val;if(!PREFERRED_STRING&&typeof (fn=input.toString)=='function'&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value");};var hasOwnProperty={}.hasOwnProperty;var has=function(it,key){return hasOwnProperty.call(it,key);};var document$1=global_1.document;var EXISTS=isObject(document$1)&&isObject(document$1.createElement);var documentCreateElement=function(it){return EXISTS?document$1.createElement(it):{};};var ie8DomDefine=!descriptors&&!fails(function(){return Object.defineProperty(documentCreateElement('div'),'a',{get:function(){return 7;}}).a!=7;});var nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var f$1=descriptors?nativeGetOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){O=toIndexedObject(O);P=toPrimitive(P,true);if(ie8DomDefine)try{return nativeGetOwnPropertyDescriptor(O,P);}catch(error){}if(has(O,P))return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O,P),O[P]);};var objectGetOwnPropertyDescriptor={f:f$1};var anObject=function(it){if(!isObject(it))throw TypeError(String(it)+' is not an object');return it;};var nativeDefineProperty=Object.defineProperty;var f$2=descriptors?nativeDefineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(ie8DomDefine)try{return nativeDefineProperty(O,P,Attributes);}catch(error){}if('get' in Attributes||'set' in Attributes)throw TypeError('Accessors not supported');if('value' in Attributes)O[P]=Attributes.value;return O;};var objectDefineProperty={f:f$2};var createNonEnumerableProperty=descriptors?function(object,key,value){return objectDefineProperty.f(object,key,createPropertyDescriptor(1,value));}:function(object,key,value){object[key]=value;return object;};var setGlobal=function(key,value){try{createNonEnumerableProperty(global_1,key,value);}catch(error){global_1[key]=value;}return value;};var SHARED='__core-js_shared__';var store=global_1[SHARED]||setGlobal(SHARED,{});var sharedStore=store;var functionToString=Function.toString;if(typeof sharedStore.inspectSource!='function')sharedStore.inspectSource=function(it){return functionToString.call(it);};var inspectSource=sharedStore.inspectSource;var WeakMap=global_1.WeakMap;var nativeWeakMap=typeof WeakMap==='function'&&/native code/.test(inspectSource(WeakMap));var shared=createCommonjsModule(function(module){(module.exports=function(key,value){return sharedStore[key]||(sharedStore[key]=value!==undefined?value:{});})('versions',[]).push({version:'3.6.4',mode:'global',copyright:'© 2020 Denis Pushkarev (zloirock.ru)'});});var id=0;var postfix=Math.random();var uid=function(key){return 'Symbol('+String(key===undefined?'':key)+')_'+(++id+postfix).toString(36);};var keys=shared('keys');var sharedKey=function(key){return keys[key]||(keys[key]=uid(key));};var hiddenKeys={};var WeakMap$1=global_1.WeakMap;var set,get,has$1;var enforce=function(it){return has$1(it)?get(it):set(it,{});};var getterFor=function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE)throw TypeError('Incompatible receiver, '+TYPE+' required');return state;};};if(nativeWeakMap){var store$1=new WeakMap$1();var wmget=store$1.get;var wmhas=store$1.has;var wmset=store$1.set;set=function(it,metadata){wmset.call(store$1,it,metadata);return metadata;};get=function(it){return wmget.call(store$1,it)||{};};has$1=function(it){return wmhas.call(store$1,it);};}else{var STATE=sharedKey('state');hiddenKeys[STATE]=true;set=function(it,metadata){createNonEnumerableProperty(it,STATE,metadata);return metadata;};get=function(it){return has(it,STATE)?it[STATE]:{};};has$1=function(it){return has(it,STATE);};}var internalState={set,get,has:has$1,enforce,getterFor};var redefine=createCommonjsModule(function(module){var getInternalState=internalState.get;var enforceInternalState=internalState.enforce;
236var TEMPLATE=String(String).split('String');(module.exports=function(O,key,value,options){var unsafe=options?!!options.unsafe:false;var simple=options?!!options.enumerable:false;var noTargetGet=options?!!options.noTargetGet:false;if(typeof value=='function'){if(typeof key=='string'&&!has(value,'name'))createNonEnumerableProperty(value,'name',key);enforceInternalState(value).source=TEMPLATE.join(typeof key=='string'?key:'');}if(O===global_1){if(simple)O[key]=value;else setGlobal(key,value);return;}else if(!unsafe)delete O[key];else{if(!noTargetGet&&O[key])simple=true;}if(simple)O[key]=value;else createNonEnumerableProperty(O,key,value);})(Function.prototype,'toString',function toString(){return typeof this=='function'&&getInternalState(this).source||inspectSource(this);});});var path=global_1;var aFunction=function(variable){return typeof variable=='function'?variable:undefined;};var getBuiltIn=function(namespace,method){return arguments.length<2?aFunction(path[namespace])||aFunction(global_1[namespace]):path[namespace]&&path[namespace][method]||global_1[namespace]&&global_1[namespace][method];};var ceil=Math.ceil;var floor=Math.floor;var toInteger=function(argument){return isNaN(argument=+argument)?0:(argument>0?floor:ceil)(argument);};var min=Math.min;var toLength=function(argument){return argument>0?min(toInteger(argument),0x1FFFFFFFFFFFFF):0;};var max=Math.max;var min$1=Math.min;var toAbsoluteIndex=function(index,length){var integer=toInteger(index);return integer<0?max(integer+length,0):min$1(integer,length);};var createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true;}else{for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;}return !IS_INCLUDES&&-1;};};var arrayIncludes={includes:createMethod(true),indexOf:createMethod(false)};var indexOf=arrayIncludes.indexOf;var objectKeysInternal=function(object,names){var O=toIndexedObject(object);var i=0;var result=[];var key;for(key in O)!has(hiddenKeys,key)&&has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++]))~indexOf(result,key)||result.push(key);return result;};var enumBugKeys=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf'];var hiddenKeys$1=enumBugKeys.concat('length','prototype');var f$3=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return objectKeysInternal(O,hiddenKeys$1);};var objectGetOwnPropertyNames={f:f$3};var f$4=Object.getOwnPropertySymbols;var objectGetOwnPropertySymbols={f:f$4};var ownKeys=getBuiltIn('Reflect','ownKeys')||function ownKeys(it){var keys=objectGetOwnPropertyNames.f(anObject(it));var getOwnPropertySymbols=objectGetOwnPropertySymbols.f;return getOwnPropertySymbols?keys.concat(getOwnPropertySymbols(it)):keys;};var copyConstructorProperties=function(target,source){var keys=ownKeys(source);var defineProperty=objectDefineProperty.f;var getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f;for(var i=0;i<keys.length;i++){var key=keys[i];if(!has(target,key))defineProperty(target,key,getOwnPropertyDescriptor(source,key));}};var replacement=/#|\.prototype\./;var isForced=function(feature,detection){var value=data[normalize(feature)];return value==POLYFILL?true:value==NATIVE?false:typeof detection=='function'?fails(detection):!!detection;};var normalize=isForced.normalize=function(string){return String(string).replace(replacement,'.').toLowerCase();};var data=isForced.data={};var NATIVE=isForced.NATIVE='N';var POLYFILL=isForced.POLYFILL='P';var isForced_1=isForced;var getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f;var _export=function(options,source){var TARGET=options.target;var GLOBAL=options.global;var STATIC=options.stat;var FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL)target=global_1;else if(STATIC)target=global_1[TARGET]||setGlobal(TARGET,{});else target=(global_1[TARGET]||{}).prototype;if(target)for(key in source){sourceProperty=source[key];if(options.noTargetGet){descriptor=getOwnPropertyDescriptor$1(target,key);targetProperty=descriptor&&descriptor.value;}else targetProperty=target[key];FORCED=isForced_1(GLOBAL?key:TARGET+(STATIC?'.':'#')+key,options.forced);if(!FORCED&&targetProperty!==undefined){if(typeof sourceProperty===typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty);}if(options.sham||targetProperty&&targetProperty.sham)createNonEnumerableProperty(sourceProperty,'sham',true);redefine(target,key,sourceProperty,options);}};var objectKeys=Object.keys||function keys(O){return objectKeysInternal(O,enumBugKeys);};var toObject=function(argument){return Object(requireObjectCoercible(argument));};var nativeAssign=Object.assign;var defineProperty=Object.defineProperty;var objectAssign=!nativeAssign||fails(function(){if(descriptors&&nativeAssign({b:1},nativeAssign(defineProperty({},'a',{enumerable:true,get:function(){defineProperty(this,'b',{value:3,enumerable:false});}}),{b:2})).b!==1)return true;var A={};var B={};var symbol=Symbol();var alphabet='abcdefghijklmnopqrst';A[symbol]=7;alphabet.split('').forEach(function(chr){B[chr]=chr;});return nativeAssign({},A)[symbol]!=7||objectKeys(nativeAssign({},B)).join('')!=alphabet;})?function assign(target,source){var T=toObject(target);var argumentsLength=arguments.length;var index=1;var getOwnPropertySymbols=objectGetOwnPropertySymbols.f;var propertyIsEnumerable=objectPropertyIsEnumerable.f;while(argumentsLength>index){var S=indexedObject(arguments[index++]);var keys=getOwnPropertySymbols?objectKeys(S).concat(getOwnPropertySymbols(S)):objectKeys(S);var length=keys.length;var j=0;var key;while(length>j){key=keys[j++];if(!descriptors||propertyIsEnumerable.call(S,key))T[key]=S[key];}}return T;}:nativeAssign;_export({target:'Object',stat:true,forced:Object.assign!==objectAssign},{assign:objectAssign});var stringRepeat=''.repeat||function repeat(count){var str=String(requireObjectCoercible(this));var result='';var n=toInteger(count);if(n<0||n==Infinity)throw RangeError('Wrong number of repetitions');for(;n>0;(n>>>=1)&&(str+=str))if(n&1)result+=str;return result;};var ceil$1=Math.ceil;var createMethod$1=function(IS_END){return function($this,maxLength,fillString){var S=String(requireObjectCoercible($this));var stringLength=S.length;
236var fillStr=fillString===undefined?' ':String(fillString);var intMaxLength=toLength(maxLength);var fillLen,stringFiller;if(intMaxLength<=stringLength||fillStr=='')return S;fillLen=intMaxLength-stringLength;stringFiller=stringRepeat.call(fillStr,ceil$1(fillLen/fillStr.length));if(stringFiller.length>fillLen)stringFiller=stringFiller.slice(0,fillLen);return IS_END?S+stringFiller:stringFiller+S;};};var stringPad={start:createMethod$1(false),end:createMethod$1(true)};var engineUserAgent=getBuiltIn('navigator','userAgent')||'';var stringPadWebkitBug=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(engineUserAgent);var $padEnd=stringPad.end;_export({target:'String',proto:true,forced:stringPadWebkitBug},{padEnd:function padEnd(maxLength){return $padEnd(this,maxLength,arguments.length>1?arguments[1]:undefined);}});var $padStart=stringPad.start;_export({target:'String',proto:true,forced:stringPadWebkitBug},{padStart:function padStart(maxLength){return $padStart(this,maxLength,arguments.length>1?arguments[1]:undefined);}});_export({target:'String',proto:true},{repeat:stringRepeat});_export({global:true},{globalThis:global_1});function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")_typeof=function(obj){return typeof obj;};else _typeof=function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};return _typeof(obj);}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _defineProperty(obj,key,value){if(key in obj)Object.defineProperty(obj,key,{value,enumerable:true,configurable:true,writable:true});else obj[key]=value;return obj;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return {};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function _objectWithoutProperties(source,excluded){if(source==null)return {};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++){key=sourceSymbolKeys[i];if(excluded.indexOf(key)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _assertThisInitialized(self){if(self===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self;}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function"))return call;return _assertThisInitialized(self);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _get(target,property,receiver){if(typeof Reflect!=="undefined"&&Reflect.get)_get=Reflect.get;else _get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get)return desc.get.call(receiver);return desc.value;};return _get(target,property,receiver||target);}function set$1(target,property,value,receiver){if(typeof Reflect!=="undefined"&&Reflect.set)set$1=Reflect.set;else set$1=function set(target,property,value,receiver){var base=_superPropBase(target,property);var desc;if(base){desc=Object.getOwnPropertyDescriptor(base,property);if(desc.set){desc.set.call(receiver,value);return true;}else{if(!desc.writable)return false;}}desc=Object.getOwnPropertyDescriptor(receiver,property);if(desc){if(!desc.writable)return false;desc.value=value;
236Object.defineProperty(receiver,property,desc);}else _defineProperty(receiver,property,value);return true;};return set$1(target,property,value,receiver);}function _set(target,property,value,receiver,isStrict){var s=set$1(target,property,value,receiver||target);if(!s&&isStrict)throw new Error('failed to set property');return value;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest();}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)==="[object Arguments]"))return;var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"]!=null)_i["return"]();}finally{if(_d)throw _e;}}return _arr;}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}function isString(str){return typeof str==='string'||str instanceof String;}var DIRECTION={NONE:'NONE',LEFT:'LEFT',FORCE_LEFT:'FORCE_LEFT',RIGHT:'RIGHT',FORCE_RIGHT:'FORCE_RIGHT'};function forceDirection(direction){switch(direction){case DIRECTION.LEFT:return DIRECTION.FORCE_LEFT;case DIRECTION.RIGHT:return DIRECTION.FORCE_RIGHT;default:return direction;}}function escapeRegExp(str){return str.replace(/([.*+?^=!:${}()|[\]/\\])/g,'\\$1');}function objectIncludes(b,a){if(a===b)return true;var arrA=Array.isArray(a),arrB=Array.isArray(b),i;if(arrA&&arrB){if(a.length!=b.length)return false;for(i=0;i<a.length;i++)if(!objectIncludes(a[i],b[i]))return false;return true;}if(arrA!=arrB)return false;if(a&&b&&_typeof(a)==='object'&&_typeof(b)==='object'){var dateA=a instanceof Date,dateB=b instanceof Date;if(dateA&&dateB)return a.getTime()==b.getTime();if(dateA!=dateB)return false;var regexpA=a instanceof RegExp,regexpB=b instanceof RegExp;if(regexpA&®expB)return a.toString()==b.toString();if(regexpA!=regexpB)return false;var keys=Object.keys(a);for(i=0;i<keys.length;i++)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return false;for(i=0;i<keys.length;i++)if(!objectIncludes(b[keys[i]],a[keys[i]]))return false;return true;}else{if(a&&b&&typeof a==='function'&&typeof b==='function')return a.toString()===b.toString();}return false;}var ActionDetails=function(){function ActionDetails(value,cursorPos,oldValue,oldSelection){_classCallCheck(this,ActionDetails);this.value=value;this.cursorPos=cursorPos;this.oldValue=oldValue;this.oldSelection=oldSelection;while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos))--this.oldSelection.start;}_createClass(ActionDetails,[{key:"startChangePos",get:function get(){return Math.min(this.cursorPos,this.oldSelection.start);}},{key:"insertedCount",get:function get(){return this.cursorPos-this.startChangePos;}},{key:"inserted",get:function get(){return this.value.substr(this.startChangePos,this.insertedCount);}},{key:"removedCount",get:function get(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0);}},{key:"removed",get:function get(){return this.oldValue.substr(this.startChangePos,this.removedCount);}},{key:"head",get:function get(){return this.value.substring(0,this.startChangePos);}},{key:"tail",get:function get(){return this.value.substring(this.startChangePos+this.insertedCount);}},{key:"removeDirection",get:function get(){if(!this.removedCount||this.insertedCount)return DIRECTION.NONE;return this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos?DIRECTION.RIGHT:DIRECTION.LEFT;}}]);return ActionDetails;}();var ChangeDetails=function(){function ChangeDetails(details){_classCallCheck(this,ChangeDetails);Object.assign(this,{inserted:'',rawInserted:'',skip:false,tailShift:0},details);}_createClass(ChangeDetails,[{key:"aggregate",value:function aggregate(details){this.rawInserted+=details.rawInserted;this.skip=this.skip||details.skip;this.inserted+=details.inserted;this.tailShift+=details.tailShift;return this;}},{key:"offset",get:function get(){return this.tailShift+this.inserted.length;}}]);return ChangeDetails;}();var ContinuousTailDetails=function(){function ContinuousTailDetails(){var value=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var from=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var stop=arguments.length>2?arguments[2]:undefined;_classCallCheck(this,ContinuousTailDetails);this.value=value;this.from=from;this.stop=stop;}_createClass(ContinuousTailDetails,[{key:"toString",value:function toString(){return this.value;}},{key:"extend",value:function extend(tail){this.value+=String(tail);}},{key:"appendTo",value:function appendTo(masked){return masked.append(this.toString(),{tail:true}).aggregate(masked._appendPlaceholder());}},{key:"shiftBefore",value:function shiftBefore(pos){if(this.from>=pos||!this.value.length)return '';var shiftChar=this.value[0];this.value=this.value.slice(1);return shiftChar;}},{key:"state",get:function get(){return {value:this.value,from:this.from,stop:this.stop};},set:function set(state){Object.assign(this,state);}}]);return ContinuousTailDetails;}();function IMask(el){var opts=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new IMask.InputMask(el,opts);}var Masked=function(){function Masked(opts){_classCallCheck(this,Masked);this._value='';this._update(Object.assign({},Masked.DEFAULTS,{},opts));this.isInitialized=true;}_createClass(Masked,[{key:"updateOptions",value:function updateOptions(opts){if(!Object.keys(opts).length)return;this.withValueRefresh(this._update.bind(this,opts));}},{key:"_update",value:function _update(opts){Object.assign(this,opts);}},{key:"reset",value:function reset(){this._value='';}},{key:"resolve",value:function resolve(value){this.reset();this.append(value,{input:true},'');this.doCommit();return this.value;}},{key:"nearestInputPos",value:function nearestInputPos(cursorPos,direction){return cursorPos;}},{key:"extractInput",value:function extractInput(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;return this.value.slice(fromPos,toPos);}},{key:"extractTail",value:function extractTail(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;return new ContinuousTailDetails(this.extractInput(fromPos,toPos),fromPos);}},{key:"appendTail",value:function appendTail(tail){if(isString(tail))tail=new ContinuousTailDetails(String(tail));return tail.appendTo(this);}},{key:"_appendCharRaw",value:function _appendCharRaw(ch){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};ch=this.doPrepare(ch,flags);if(!ch)return new ChangeDetails();this._value+=ch;return new ChangeDetails({inserted:ch,rawInserted:ch});}},{key:"_appendChar",value:function _appendChar(ch){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var checkTail=arguments.length>2?arguments[2]:undefined;var consistentState=this.state;var details=this._appendCharRaw(ch,flags);if(details.inserted){var consistentTail;var appended=this.doValidate(flags)!==false;if(appended&&checkTail!=null){var beforeTailState=this.state;if(this.overwrite){consistentTail=checkTail.state;checkTail.shiftBefore(this.value.length);}var tailDetails=this.appendTail(checkTail);appended=tailDetails.rawInserted===checkTail.toString();if(appended&&tailDetails.inserted)this.state=beforeTailState;}if(!appended){details=new ChangeDetails();this.state=consistentState;if(checkTail&&consistentTail)checkTail.state=consistentTail;}}return details;}},{key:"_appendPlaceholder",value:function _appendPlaceholder(){return new ChangeDetails();}},{key:"append",value:function append(str,flags,tail){if(!isString(str))throw new Error('value should be string');var details=new ChangeDetails();var checkTail=isString(tail)?new ContinuousTailDetails(String(tail)):tail;if(flags.tail)flags._beforeTailState=this.state;for(var ci=0;ci<str.length;++ci)details.aggregate(this._appendChar(str[ci],flags,checkTail));if(checkTail!=null)details.tailShift+=this.appendTail(checkTail).tailShift;return details;}},{key:"remove",value:function remove(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;this._value=this.value.slice(0,fromPos)+this.value.slice(toPos);return new ChangeDetails();}},{key:"withValueRefresh",value:function withValueRefresh(fn){if(this._refreshing||!this.isInitialized)return fn();this._refreshing=true;var rawInput=this.rawInputValue;var value=this.value;var ret=fn();this.rawInputValue=rawInput;if(this.value!==value&&value.indexOf(this._value)===0)this.append(value.slice(this._value.length),{},'');delete this._refreshing;return ret;}},{key:"runIsolated",value:function runIsolated(fn){if(this._isolated||!this.isInitialized)return fn(this);this._isolated=true;var state=this.state;var ret=fn(this);this.state=state;delete this._isolated;return ret;}},{key:"doPrepare",value:function doPrepare(str){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.prepare?this.prepare(str,this,flags):str;}},{key:"doValidate",value:function doValidate(flags){return (!this.validate||this.validate(this.value,this,flags))&&(!this.parent||this.parent.doValidate(flags));}},{key:"doCommit",value:function doCommit(){if(this.commit)this.commit(this.value,this);}},{key:"doFormat",value:function doFormat(value){return this.format?this.format(value,this):value;}},{key:"doParse",value:function doParse(str){return this.parse?this.parse(str,this):str;}},{key:"splice",value:function splice(start,deleteCount,inserted,removeDirection){var tailPos=start+deleteCount;var tail=this.extractTail(tailPos);var startChangePos=this.nearestInputPos(start,removeDirection);var changeDetails=new ChangeDetails({tailShift:startChangePos-start}).aggregate(this.remove(startChangePos)).aggregate(this.append(inserted,{input:true},tail));return changeDetails;}},{key:"state",get:function get(){return {_value:this.value};},set:function set(state){this._value=state._value;}},{key:"value",get:function get(){return this._value;},set:function set(value){this.resolve(value);}},{key:"unmaskedValue",get:function get(){return this.value;},set:function set(value){this.reset();this.append(value,{},'');this.doCommit();}},{key:"typedValue",get:function get(){return this.doParse(this.value);},set:function set(value){this.value=this.doFormat(value);}},{key:"rawInputValue",get:function get(){return this.extractInput(0,this.value.length,{raw:true});},set:function set(value){this.reset();this.append(value,{raw:true},'');this.doCommit();}},{key:"isComplete",get:function get(){return true;}}]);return Masked;}();Masked.DEFAULTS={format:function format(v){return v;},parse:function parse(v){return v;}};IMask.Masked=Masked;function maskedClass(mask){if(mask==null)throw new Error('mask property should be defined');if(mask instanceof RegExp)return IMask.MaskedRegExp;if(isString(mask))return IMask.MaskedPattern;if(mask instanceof Date||mask===Date)return IMask.MaskedDate;if(mask instanceof Number||typeof mask==='number'||mask===Number)return IMask.MaskedNumber;if(Array.isArray(mask)||mask===Array)return IMask.MaskedDynamic;if(IMask.Masked&&mask.prototype instanceof IMask.Masked)return mask;if(mask instanceof Function)return IMask.MaskedFunction;console.warn('Mask not found for mask',mask);return IMask.Masked;}function createMask(opts){if(IMask.Masked&&opts instanceof IMask.Masked)return opts;opts=Object.assign({},opts);var mask=opts.mask;if(IMask.Masked&&mask instanceof IMask.Masked)return mask;var MaskedClass=maskedClass(mask);if(!MaskedClass)throw new Error('Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.');return new MaskedClass(opts);}IMask.createMask=createMask;var DEFAULT_INPUT_DEFINITIONS={'0':/\d/,'a':/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u
2360EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,'*':/./};var PatternInputDefinition=function(){function PatternInputDefinition(opts){_classCallCheck(this,PatternInputDefinition);var mask=opts.mask,blockOpts=_objectWithoutProperties(opts,["mask"]);this.masked=createMask({mask});Object.assign(this,blockOpts);}_createClass(PatternInputDefinition,[{key:"reset",value:function reset(){this._isFilled=false;this.masked.reset();}},{key:"remove",value:function remove(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;if(fromPos===0&&toPos>=1){this._isFilled=false;return this.masked.remove(fromPos,toPos);}return new ChangeDetails();}},{key:"_appendChar",value:function _appendChar(str){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this._isFilled)return new ChangeDetails();var state=this.masked.state;var details=this.masked._appendChar(str,flags);if(details.inserted&&this.doValidate(flags)===false){details.inserted=details.rawInserted='';this.masked.state=state;}if(!details.inserted&&!this.isOptional&&!this.lazy&&!flags.input)details.inserted=this.placeholderChar;details.skip=!details.inserted&&!this.isOptional;this._isFilled=Boolean(details.inserted);return details;}},{key:"append",value:function append(){var _this$masked;return (_this$masked=this.masked).append.apply(_this$masked,arguments);}},{key:"_appendPlaceholder",value:function _appendPlaceholder(){var details=new ChangeDetails();if(this._isFilled||this.isOptional)return details;this._isFilled=true;details.inserted=this.placeholderChar;return details;}},{key:"extractTail",value:function extractTail(){var _this$masked2;return (_this$masked2=this.masked).extractTail.apply(_this$masked2,arguments);}},{key:"appendTail",value:function appendTail(){var _this$masked3;return (_this$masked3=this.masked).appendTail.apply(_this$masked3,arguments);}},{key:"extractInput",value:function extractInput(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var flags=arguments.length>2?arguments[2]:undefined;return this.masked.extractInput(fromPos,toPos,flags);}},{key:"nearestInputPos",value:function nearestInputPos(cursorPos){var direction=arguments.length>1&&arguments[1]!==undefined?arguments[1]:DIRECTION.NONE;var minPos=0;var maxPos=this.value.length;var boundPos=Math.min(Math.max(cursorPos,minPos),maxPos);switch(direction){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return this.isComplete?boundPos:m
236inPos;case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:return this.isComplete?boundPos:maxPos;case DIRECTION.NONE:default:return boundPos;}}},{key:"doValidate",value:function doValidate(){var _this$masked4,_this$parent;return (_this$masked4=this.masked).doValidate.apply(_this$masked4,arguments)&&(!this.parent||(_this$parent=this.parent).doValidate.apply(_this$parent,arguments));}},{key:"doCommit",value:function doCommit(){this.masked.doCommit();}},{key:"value",get:function get(){return this.masked.value||(this._isFilled&&!this.isOptional?this.placeholderChar:'');}},{key:"unmaskedValue",get:function get(){return this.masked.unmaskedValue;}},{key:"isComplete",get:function get(){return Boolean(this.masked.value)||this.isOptional;}},{key:"state",get:function get(){return {masked:this.masked.state,_isFilled:this._isFilled};},set:function set(state){this.masked.state=state.masked;this._isFilled=state._isFilled;}}]);return PatternInputDefinition;}();var PatternFixedDefinition=function(){function PatternFixedDefinition(opts){_classCallCheck(this,PatternFixedDefinition);Object.assign(this,opts);this._value='';}_createClass(PatternFixedDefinition,[{key:"reset",value:function reset(){this._isRawInput=false;this._value='';}},{key:"remove",value:function remove(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._value.length;this._value=this._value.slice(0,fromPos)+this._value.slice(toPos);if(!this._value)this._isRawInput=false;return new ChangeDetails();}},{key:"nearestInputPos",value:function nearestInputPos(cursorPos){var direction=arguments.length>1&&arguments[1]!==undefined?arguments[1]:DIRECTION.NONE;var minPos=0;var maxPos=this._value.length;switch(direction){case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:return minPos;case DIRECTION.NONE:case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:default:return maxPos;}}},{key:"extractInput",value:function extractInput(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._value.length;var flags=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return flags.raw&&this._isRawInput&&this._value.slice(fromPos,toPos)||'';}},{key:"_appendChar",value:function _appendChar(str){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var details=new ChangeDetails();if(this._value)return details;var appended=this.char===str[0];var isResolved=appended&&(this.isUnmasking||flags.input||flags.raw)&&!flags.tail;if(isResolved)details.rawInserted=this.char;this._value=details.inserted=this.char;this._isRawInput=isResolved&&(flags.raw||flags.input);return details;}},{key:"_appendPlaceholder",value:function _appendPlaceholder(){var details=new ChangeDetails();if(this._value)return details;this._value=details.inserted=this.char;return details;}},{key:"extractTail",value:function extractTail(){var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;return new ContinuousTailDetails('');}},{key:"appendTail",value:function appendTail(tail){if(isString(tail))tail=new ContinuousTailDetails(String(tail));return tail.appendTo(this);}},{key:"append",value:function append(str,flags,tail){var details=this._appendChar(str,flags);if(tail!=null)details.tailShift+=this.appendTail(tail).tailShift;return details;}},{key:"doCommit",value:function doCommit(){}},{key:"value",get:function get(){return this._value;}},{key:"unmaskedValue",get:function get(){return this.isUnmasking?this.value:'';}},{key:"isComplete",get:function get(){return true;}},{key:"state",get:function get(){return {_value:this._value,_isRawInput:this._isRawInput};},set:function set(state){Object.assign(this,state);}}]);return PatternFixedDefinition;}();var ChunksTailDetails=function(){function ChunksTailDetails(){var chunks=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var from=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;_classCallCheck(this,ChunksTailDetails);this.chunks=chunks;this.from=from;}_createClass(ChunksTailDetails,[{key:"toString",value:function toString(){return this.chunks.map(String).join('');}},{key:"extend",value:function extend(tailChunk){if(!String(tailChunk))return;if(isString(tailChunk))tailChunk=new ContinuousTailDetails(String(tailChunk));var lastChunk=this.chunks[this.chunks.length-1];var extendLast=lastChunk&&(lastChunk.stop===tailChunk.stop||tailChunk.stop==null)&&tailChunk.from===lastChunk.from+lastChunk.toString().length;if(tailChunk instanceof ContinuousTailDetails)if(extendLast)lastChunk.extend(tailChunk.toString());else this.chunks.push(tailChunk);else{if(tailChunk instanceof ChunksTailDetails){if(tailChunk.stop==null){var firstTailChunk;while(tailChunk.chunks.length&&tailChunk.chunks[0].stop==null){firstTailChunk=tailChunk.chunks.shift();firstTailChunk.from+=tailChunk.from;this.extend(firstTailChunk);}}if(tailChunk.toString()){tailChunk.stop=tailChunk.blockIndex;this.chunks.push(tailChunk);}}}}},{key:"appendTo",value:function appendTo(masked){if(!(masked instanceof IMask.MaskedPattern)){var tail=new ContinuousTailDetails(this.toString());return tail.appendTo(masked);}var details=new ChangeDetails();for(var ci=0;ci<this.chunks.length&&!details.skip;++ci){var chunk=this.chunks[ci];var lastBlockIter=masked._mapPosToBlock(masked.value.length);var stop=chunk.stop;var chunkBlock=void 0;if(stop&&(!lastBlockIter||lastBlockIter.index<=stop)){if(chunk instanceof ChunksTailDetails||masked._stops.indexOf(stop)>=0)details.aggregate(masked._appendPlaceholder(stop));chunkBlock=chunk instanceof ChunksTailDetails&&masked._blocks[stop];}if(chunkBlock){var tailDetails=chunkBlock.appendTail(chunk);tailDetails.skip=false;details.aggregate(tailDetails);masked._value+=tailDetails.inserted;
236var remainChars=chunk.toString().slice(tailDetails.rawInserted.length);if(remainChars)details.aggregate(masked.append(remainChars,{tail:true}));}else details.aggregate(masked.append(chunk.toString(),{tail:true}));}return details;}},{key:"shiftBefore",value:function shiftBefore(pos){if(this.from>=pos||!this.chunks.length)return '';var chunkShiftPos=pos-this.from;var ci=0;while(ci<this.chunks.length){var chunk=this.chunks[ci];var shiftChar=chunk.shiftBefore(chunkShiftPos);if(chunk.toString()){if(!shiftChar)break;++ci;}else this.chunks.splice(ci,1);if(shiftChar)return shiftChar;}return '';}},{key:"state",get:function get(){return {chunks:this.chunks.map(function(c){return c.state;}),from:this.from,stop:this.stop,blockIndex:this.blockIndex};},set:function set(state){var chunks=state.chunks,props=_objectWithoutProperties(state,["chunks"]);Object.assign(this,props);this.chunks=chunks.map(function(cstate){var chunk="chunks" in cstate?new ChunksTailDetails():new ContinuousTailDetails();chunk.state=cstate;return chunk;});}}]);return ChunksTailDetails;}();var MaskedPattern=function(_Masked){_inherits(MaskedPattern,_Masked);function MaskedPattern(){var opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,MaskedPattern);opts.definitions=Object.assign({},DEFAULT_INPUT_DEFINITIONS,opts.definitions);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedPattern).call(this,Object.assign({},MaskedPattern.DEFAULTS,{},opts)));}_createClass(MaskedPattern,[{key:"_update",value:function _update(){var opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};opts.definitions=Object.assign({},this.definitions,opts.definitions);_get(_getPrototypeOf(MaskedPattern.prototype),"_update",this).call(this,opts);this._rebuildMask();}},{key:"_rebuildMask",value:function _rebuildMask(){var _this=this;var defs=this.definitions;this._blocks=[];this._stops=[];this._maskedBlocks={};var pattern=this.mask;if(!pattern||!defs)return;var unmaskingBlock=false;var optionalBlock=false;for(var i=0;i<pattern.length;++i){if(this.blocks){var _ret=function(){var p=pattern.slice(i);var bNames=Object.keys(_this.blocks).filter(function(bName){return p.indexOf(bName)===0;});bNames.sort(function(a,b){return b.length-a.length;});var bName=bNames[0];if(bName){var maskedBlock=createMask(Object.assign({parent:_this,lazy:_this.lazy,placeholderChar:_this.placeholderChar,overwrite:_this.overwrite},_this.blocks[bName]));if(maskedBlock){_this._blocks.push(maskedBlock);if(!_this._maskedBlocks[bName])_this._maskedBlocks[bName]=[];_this._maskedBlocks[bName].push(_this._blocks.length-1);}i+=bName.length-1;return "continue";}}();if(_ret==="continue")continue;}var char=pattern[i];var _isInput=char in defs;if(char===MaskedPattern.STOP_CHAR){this._stops.push(this._blocks.length);continue;}if(char==='{'||char==='}'){unmaskingBlock=!unmaskingBlock;continue;}if(char==='['||char===']'){optionalBlock=!optionalBlock;continue;}if(char===MaskedPattern.ESCAPE_CHAR){++i;char=pattern[i];if(!char)break;_isInput=false;}var def=_isInput?new PatternInputDefinition({parent:this,lazy:this.lazy,placeholderChar:this.placeholderChar,mask:defs[char],isOptional:optionalBlock}):new PatternFixedDefinition({char,isUnmasking:unmaskingBlock});this._blocks.push(def);}}},{key:"reset",value:function reset(){_get(_getPrototypeOf(MaskedPattern.prototype),"reset",this).call(this);this._blocks.forEach(function(b){return b.reset();});}},{key:"doCommit",value:function doCommit(){this._blocks.forEach(function(b){return b.doCommit();});_get(_getPrototypeOf(MaskedPattern.prototype),"doCommit",this).call(this);}},{key:"appendTail",value:function appendTail(tail){return _get(_getPrototypeOf(MaskedPattern.prototype),"appendTail",this).call(this,tail).aggregate(this._appendPlaceholder());}},{key:"_appendCharRaw",value:function _appendCharRaw(ch){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};ch=this.doPrepare(ch,flags);var blockIter=this._mapPosToBlock(this.value.length);var details=new ChangeDetails();if(!blockIter)return details;for(var bi=blockIter.index;;++bi){var _block=this._blocks[bi];if(!_block)break;
236var blockDetails=_block._appendChar(ch,flags);var skip=blockDetails.skip;details.aggregate(blockDetails);if(skip||blockDetails.rawInserted)break;}return details;}},{key:"extractTail",value:function extractTail(){var _this2=this;var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var chunkTail=new ChunksTailDetails();if(fromPos===toPos)return chunkTail;this._forEachBlocksInRange(fromPos,toPos,function(b,bi,bFromPos,bToPos){var blockChunk=b.extractTail(bFromPos,bToPos);blockChunk.stop=_this2._findStopBefore(bi);blockChunk.from=_this2._blockStartPos(bi);if(blockChunk instanceof ChunksTailDetails)blockChunk.blockIndex=bi;chunkTail.extend(blockChunk);});return chunkTail;}},{key:"extractInput",value:function extractInput(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var flags=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(fromPos===toPos)return '';var input='';this._forEachBlocksInRange(fromPos,toPos,function(b,_,fromPos,toPos){input+=b.extractInput(fromPos,toPos,flags);});return input;}},{key:"_findStopBefore",value:function _findStopBefore(blockIndex){var stopBefore;for(var si=0;si<this._stops.length;++si){var stop=this._stops[si];if(stop<=blockIndex)stopBefore=stop;else break;}return stopBefore;}},{key:"_appendPlaceholder",value:function _appendPlaceholder(toBlockIndex){var _this3=this;var details=new ChangeDetails();if(this.lazy&&toBlockIndex==null)return details;var startBlockIter=this._mapPosToBlock(this.value.length);if(!startBlockIter)return details;var startBlockIndex=startBlockIter.index;var endBlockIndex=toBlockIndex!=null?toBlockIndex:this._blocks.length;this._blocks.slice(startBlockIndex,endBlockIndex).forEach(function(b){if(!b.lazy||toBlockIndex!=null){var args=b._blocks!=null?[b._blocks.length]:[];var bDetails=b._appendPlaceholder.apply(b,args);_this3._value+=bDetails.inserted;details.aggregate(bDetails);}});return details;}},{key:"_mapPosToBlock",value:function _mapPosToBlock(pos){var accVal='';for(var bi=0;bi<this._blocks.length;++bi){var _block2=this._blocks[bi];var blockStartPos=accVal.length;accVal+=_block2.value;if(pos<=accVal.length)return {index:bi,offset:pos-blockStartPos};}}},{key:"_blockStartPos",value:function _blockStartPos(blockIndex){return this._blocks.slice(0,blockIndex).reduce(function(pos,b){return pos+=b.value.length;},0);}},{key:"_forEachBlocksInRange",value:function _forEachBlocksInRange(fromPos){var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var fn=arguments.length>2?arguments[2]:undefined;var fromBlockIter=this._mapPosToBlock(fromPos);if(fromBlockIter){var toBlockIter=this._mapPosToBlock(toPos);var isSameBlock=toBlockIter&&fromBlockIter.index===toBlockIter.index;var fromBlockStartPos=fromBlockIter.offset;var fromBlockEndPos=toBlockIter&&isSameBlock?toBlockIter.offset:this._blocks[fromBlockIter.index].value.length;fn(this._blocks[fromBlockIter.index],fromBlockIter.index,fromBlockStartPos,fromBlockEndPos);if(toBlockIter&&!isSameBlock){for(var bi=fromBlockIter.index+1;bi<toBlockIter.index;++bi)fn(this._blocks[bi],bi,0,this._blocks[bi].value.length);fn(this._blocks[toBlockIter.index],toBlockIter.index,0,toBlockIter.offset);}}}},{key:"remove",value:function remove(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var removeDetails=_get(_getPrototypeOf(MaskedPattern.prototype),"remove",this).call(this,fromPos,toPos);this._forEachBlocksInRange(fromPos,toPos,function(b,_,bFromPos,bToPos){removeDetails.aggregate(b.remove(bFromPos,bToPos));});return removeDetails;}},{key:"nearestInputPos",value:function nearestInputPos(cursorPos){var direction=arguments.length>1&&arguments[1]!==undefined?arguments[1]:DIRECTION.NONE;var beginBlockData=this._mapPosToBlock(cursorPos)||{index:0,offset:0};var beginBlockOffset=beginBlockData.offset,beginBlockIndex=beginBlockData.index;var beginBlock=this._blocks[beginBlockIndex];if(!beginBlock)return cursorPos;var beginBlockCursorPos=beginBlockOffset;if(beginBlockCursorPos!==0&&beginBlockCursorPos<beginBlock.value.length)beginBlockCursorPos=beginBlock.nearestInputPos(beginBlockOffset,forceDirection(direction));var cursorAtRight=beginBlockCursorPos===beginBlock.value.length;var cursorAtLeft=beginBlockCursorPos===0;if(!cursorAtLeft&&!cursorAtRight)return this._blockStartPos(beginBlockIndex)+beginBlockCursorPos;var searchBlockIndex=cursorAtRight?beginBlockIndex+1:beginBlockIndex;if(direction===DIRECTION.NONE){if(searchBlockIndex>0){var blockIndexAtLeft=searchBlockIndex-1;var blockAtLeft=this._blocks[blockIndexAtLeft];var blockInputPos=blockAtLeft.nearestInputPos(0,DIRECTION.NONE);if(!blockAtLeft.value.length||blockInputPos!==blockAtLeft.value.length)return this._blockStartPos(searchBlockIndex);}var firstInputAtRight=searchBlockIndex;for(var bi=firstInputAtRight;bi<this._blocks.length;++bi){var blockAtRight=this._blocks[bi];var _blockInputPos=blockAtRight.nearestInputPos(0,DIRECTION.NONE);if(!blockAtRight.value.length||_blockInputPos!==blockAtRight.value.length)return this._blockStartPos(bi)+_blockInputPos;}for(var _bi=searchBlockIndex-1;_bi>=0;--_bi){var _block3=this._blocks[_bi];var _blockInputPos2=_block3.nearestInputPos(0,DIRECTION.NONE);if(!_block3.value.length||_blockInputPos2!==_block3.value.length)return this._blockStartPos(_bi)+_block3.value.length;}return cursorPos;}if(direction===DIRECTION.LEFT||direction===DIRECTION.FORCE_LEFT){var firstFilledBlockIndexAtRight;for(var _bi2=searchBlockIndex;_bi2<this._blocks.length;++_bi2)if(this._blocks[_bi2].value){firstFilledBlockIndexAtRight=_bi2;break;}if(firstFilledBlockIndexAtRight!=null){var filledBlock=this._blocks[firstFilledBlockIndexAtRight];var _blockInputPos3=filledBlock.nearestInputPos(0,DIRECTION.RIGHT);if(_blockInputPos3===0&&filledBlock.unmaskedValue.length)return this._blockStartPos(firstFilledBlockIndexAtRight)+_blockInputPos3;}var firstFilledInputBlockIndex=-1;var firstEmptyInputBlockIndex;for(var _bi3=searchBlockIndex-1;_bi3>=0;--_bi3){var _block4=this._blocks[_bi3];var _blockInputPos4=_block4.nearestInputPos(_block4.value.length,DIRECTION.FORCE_LEFT);if(!_block4.value||_blockInputPos4!==0)firstEmptyInputBlockIndex=_bi3;if(_blockInputPos4!==0)if(_blockInputPos4!==_block4.value.length)return this._blockStartPos(_bi3)+_blockInputPos4;else{firstFilledInputBlockIndex=_bi3;break;}}if(direction===DIRECTION.LEFT)for(var _bi4=firstFilledInputBlockIndex+1;_bi4<=Math.min(searchBlockIndex,this._blocks.length-1);++_bi4){var _block5=this._blocks[_bi4];var _blockInputPos5=_block5.nearestInputPos(0,DIRECTION.NONE);var blockAlignedPos=this._blockStartPos(_bi4)+_blockInputPos5;if(blockAlignedPos>cursorPos)break;if(_blockInputPos5!==_block5.value.length)return blockAlignedPos;}if(firstFilledInputBlockIndex>=0)return this._blockStartPos(firstFilledInputBlockIndex)+this._blocks[firstFilledInputBlockIndex].value.length;if(direction===DIRECTION.FORCE_LEFT||this.lazy&&!this.extractInput()&&!isInput(this._blocks[searchBlockIndex]))return 0;if(firstEmptyInputBlockIndex!=null)return this._blockStartPos(firstEmptyInputBlockIndex);for(var _bi5=searchBlockIndex;_bi5<this._blocks.length;++_bi5){var _block6=this._blocks[_bi5];var _blockInputPos6=_block6.nearestInputPos(0,DIRECTION.NONE);if(!_block6.value.length||_blockInputPos6!==_block6.value.length)return this._blockStartPos(_bi5)+_blockInputPos6;}return 0;}if(direction===DIRECTION.RIGHT||direction===DIRECTION.FORCE_RIGHT){var firstInputBlockAlignedIndex;var firstInputBlockAlignedPos;for(var _bi6=searchBlockIndex;_bi6<this._blocks.length;++_bi6){var _block7=this._blocks[_bi6];var _blockInputPos7=_block7.nearestInputPos(0,DIRECTION.NONE);if(_blockInputPos7!==_block7.value.length){firstInputBlockAlignedPos=this._blockStartPos(_bi6)+_blockInputPos7;firstInputBlockAlignedIndex=_bi6;break;}}if(firstInputBlockAlignedIndex!=null&&firstInputBlockAlignedPos!=null){for(var _bi7=firstInputBlockAlignedIndex;_bi7<this._blocks.length;++_bi7){var _block8=this._blocks[_bi7];var _blockInputPos8=_block8.nearestInputPos(0,DIRECTION.FORCE_RIGHT);if(_blockInputPos8!==_block8.value.length)return this._blockStartPos(_bi7)+_blockInputPos8;}return direction===DIRECTION.FORCE_RIGHT?this.value.length:firstInputBlockAlignedPos;}for(var _bi8=Math.min(searchBlockIndex,this._blocks.length-1);_bi8>=0;--_bi8){var _block9=this._blocks[_bi8];var _blockInputPos9=_block9.nearestInputPos(_block9.value.length,DIRECTION.LEFT);if(_blockInputPos9!==0){var alignedPos=this._blockStartPos(_bi8)+_blockInputPos9;if(alignedPos>=cursorPos)return alignedPos;break;}}}return cursorPos;}},{key:"maskedBlock",value:function maskedBlock(name){return this.maskedBlocks(name)[0];}},{key:"maskedBlocks",value:function maskedBlocks(name){var _this4=this;var indices=this._maskedBlocks[name];if(!indices)return [];return indices.map(function(gi){return _this4._blocks[gi];});}},{key:"state",get:function get(){return Object.assign({},_get(_getPrototypeOf(MaskedPattern.prototype),"state",this),{_blocks:this._blocks.map(function(b){return b.state;})});},set:function set(state){var _blocks=state._blocks,maskedState=_objectWithoutProperties(state,["_blocks"]);this._blocks.forEach(function(b,bi){return b.state=_blocks[bi];});_set(_getPrototypeOf(MaskedPattern.prototype),"state",maskedState,this,true);}},{key:"isComplete",get:function get(){return this._blocks.every(function(b){return b.isComplete;});}},{key:"unmaskedValue",get:function get(){return this._blocks.reduce(function(str,b){return str+=b.unmaskedValue;},'');},set:function set(unmaskedValue){_set(_getPrototypeOf(MaskedPattern.prototype),"unmaskedValue",unmaskedValue,this,true);}},{key:"value",get:function get(){return this._blocks.reduce(function(str,b){return str+=b.value;},'');},set:function set(value){_set(_getPrototypeOf(MaskedPattern.prototype),"value",value,this,true);}}]);return MaskedPattern;}(Masked);MaskedPattern.DEFAULTS={lazy:true,placeholderChar:'_'};MaskedPattern.STOP_CHAR='`';MaskedPattern.ESCAPE_CHAR='\\';MaskedPattern.InputDefinition=PatternInputDefinition;MaskedPattern.FixedDefinition=PatternFixedDefinition;function isInput(block){if(!block)return false;var value=block.value;return !value||block.nearestInputPos(0,DIRECTION.NONE)!==value.length;}IMask.MaskedPattern=MaskedPattern;var MaskedRange=function(_MaskedPattern){_inherits(MaskedRange,_MaskedPattern);function MaskedRange(){_classCallCheck(this,MaskedRange);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedRange).apply(this,arguments));}_createClass(MaskedRange,[{key:"_update",value:function _update(opts){opts=Object.assign({to:this.to||0,from:this.from||0},opts);var maxLength=String(opts.to).length;if(opts.maxLength!=null)maxLength=Math.max(maxLength,opts.maxLength);opts.maxLength=maxLength;var fromStr=String(opts.from).padStart(maxLength,'0');var toStr=String(opts.to).padStart(maxLength,'0');var sameCharsCount=0;while(sameCharsCount<toStr.length&&toStr[sameCharsCount]===fromStr[sameCharsCount])++sameCharsCount;opts.mask=toStr.slice(0,sameCharsCount).replace(/0/g,'\\0')+'0'.repeat(maxLength-sameCharsCount);_get(_getPrototypeOf(MaskedRange.prototype),"_update",this).call(this,opts);}},{key:"boundaries",value:function boundaries(str){var minstr='';var maxstr='';var _ref=str.match(/^(\D*)(\d*)(\D*)/)||[],_ref2=_slicedToArray(_ref,3),placeholder=_ref2[1],num=_ref2[2];if(num){minstr='0'.repeat(placeholder.length)+num;maxstr='9'.repeat(placeholder.length)+num;}minstr=minstr.padEnd(this.maxLength,'0');maxstr=maxstr.padEnd(this.maxLength,'9');return [minstr,maxstr];}},{key:"doPrepare",value:function doPrepare(str){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};str=_get(_getPrototypeOf(MaskedRange.prototype),"doPrepare",this).call(this,str,flags).replace(/\D/g,'');if(!this.autofix)return str;var fromStr=String(this.from).padStart(this.maxLength,'0');var toStr=String(this.to).padStart(this.maxLength,'0');var val=this.value;var prepStr='';for(var ci=0;ci<str.length;++ci){var nextVal=val+prepStr+str[ci];var _this$boundaries=this.boundaries(nextVal),_this$boundaries2=_slicedToArray(_this$boundaries,2),minstr=_this$boundaries2[0],maxstr=_this$boundaries2[1];if(Number(maxstr)<this.from)prepStr+=fromStr[nextVal.length-1];else if(Number(minstr)>this.to)prepStr+=toStr[nextVal.length-1];else prepStr+=str[ci];}return prepStr;}},{key:"doValidate",value:function doValidate(){var _get2;var str=this.value;var firstNonZero=str.search(/[^0]/);if(firstNonZero===-1&&str.length<=this._matchFrom)return true;var _this$boundaries3=this.boundaries(str),_this$boundaries4=_slicedToArray(_this$boundaries3,2),minstr=_this$boundaries4[0],maxstr=_this$boundaries4[1];
236for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return this.from<=Number(maxstr)&&Number(minstr)<=this.to&&(_get2=_get(_getPrototypeOf(MaskedRange.prototype),"doValidate",this)).call.apply(_get2,[this].concat(args));}},{key:"_matchFrom",get:function get(){return this.maxLength-String(this.from).length;}},{key:"isComplete",get:function get(){return _get(_getPrototypeOf(MaskedRange.prototype),"isComplete",this)&&Boolean(this.value);}}]);return MaskedRange;}(MaskedPattern);IMask.MaskedRange=MaskedRange;var MaskedDate=function(_MaskedPattern){_inherits(MaskedDate,_MaskedPattern);function MaskedDate(opts){_classCallCheck(this,MaskedDate);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedDate).call(this,Object.assign({},MaskedDate.DEFAULTS,{},opts)));}_createClass(MaskedDate,[{key:"_update",value:function _update(opts){if(opts.mask===Date)delete opts.mask;if(opts.pattern)opts.mask=opts.pattern;var blocks=opts.blocks;opts.blocks=Object.assign({},MaskedDate.GET_DEFAULT_BLOCKS());if(opts.min)opts.blocks.Y.from=opts.min.getFullYear();if(opts.max)opts.blocks.Y.to=opts.max.getFullYear();if(opts.min&&opts.max&&opts.blocks.Y.from===opts.blocks.Y.to){opts.blocks.m.from=opts.min.getMonth()+1;opts.blocks.m.to=opts.max.getMonth()+1;if(opts.blocks.m.from===opts.blocks.m.to){opts.blocks.d.from=opts.min.getDate();opts.blocks.d.to=opts.max.getDate();}}Object.assign(opts.blocks,blocks);
236Object.keys(opts.blocks).forEach(function(bk){var b=opts.blocks[bk];if(!('autofix' in b))b.autofix=opts.autofix;});_get(_getPrototypeOf(MaskedDate.prototype),"_update",this).call(this,opts);}},{key:"doValidate",value:function doValidate(){var _get2;var date=this.date;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return (_get2=_get(_getPrototypeOf(MaskedDate.prototype),"doValidate",this)).call.apply(_get2,[this].concat(args))&&(!this.isComplete||this.isDateExist(this.value)&&date!=null&&(this.min==null||this.min<=date)&&(this.max==null||date<=this.max));}},{key:"isDateExist",value:function isDateExist(str){return this.format(this.parse(str,this),this).indexOf(str)>=0;}},{key:"date",get:function get(){return this.typedValue;},set:function set(date){this.typedValue=date;}},{key:"typedValue",get:function get(){return this.isComplete?_get(_getPrototypeOf(MaskedDate.prototype),"typedValue",this):null;},set:function set(value){_set(_getPrototypeOf(MaskedDate.prototype),"typedValue",value,this,true);}}]);return MaskedDate;}(MaskedPattern);MaskedDate.DEFAULTS={pattern:'d{.}`m{.}`Y',format:function format(date){var day=String(date.getDate()).padStart(2,'0');var month=String(date.getMonth()+1).padStart(2,'0');var year=date.getFullYear();return [day,month,year].join('.');},parse:function parse(str){var _str$split=str.split('.'),_str$split2=_slicedToArray(_str$split,3),day=_str$split2[0],month=_str$split2[1],year=_str$split2[2];return new Date(year,month-1,day);}};MaskedDate.GET_DEFAULT_BLOCKS=function(){return {d:{mask:MaskedRange,from:1,to:31,maxLength:2},m:{mask:MaskedRange,from:1,to:12,maxLength:2},Y:{mask:MaskedRange,from:1900,to:9999}};};IMask.MaskedDate=MaskedDate;var MaskElement=function(){function MaskElement(){_classCallCheck(this,MaskElement);}_createClass(MaskElement,[{key:"select",value:function select(start,end){if(start==null||end==null||start===this.selectionStart&&end===this.selectionEnd)return;try{this._unsafeSelect(start,end);}catch(e){}}},{key:"_unsafeSelect",value:function _unsafeSelect(start,end){}},{key:"bindEvents",value:function bindEvents(handlers){}},{key:"unbindEvents",value:function unbindEvents(){}},{key:"selectionStart",get:function get(){var start;try{start=this._unsafeSelectionStart;}catch(e){}return start!=null?start:this.value.length;}},{key:"selectionEnd",get:function get(){var end;try{end=this._unsafeSelectionEnd;}catch(e){}return end!=null?end:this.value.length;}},{key:"isActive",get:function get(){return false;}}]);return MaskElement;}();IMask.MaskElement=MaskElement;var HTMLMaskElement=function(_MaskElement){_inherits(HTMLMaskElement,_MaskElement);function HTMLMaskElement(input){var _this;_classCallCheck(this,HTMLMaskElement);_this=_possibleConstructorReturn(this,_getPrototypeOf(HTMLMaskElement).call(this));_this.input=input;_this._handlers={};return _this;}_createClass(HTMLMaskElement,[{key:"_unsafeSelect",value:function _unsafeSelect(start,end){this.input.setSelectionRange(start,end);}},{key:"bindEvents",value:function bindEvents(handlers){var _this2=this;Object.keys(handlers).forEach(function(event){return _this2._toggleEventHandler(HTMLMaskElement.EVENTS_MAP[event],handlers[event]);});}},{key:"unbindEvents",value:function unbindEvents(){var _this3=this;Object.keys(this._handlers).forEach(function(event){return _this3._toggleEventHandler(event);});}},{key:"_toggleEventHandler",value:function _toggleEventHandler(event,handler){if(this._handlers[event]){this.input.removeEventListener(event,this._handlers[event]);delete this._handlers[event];}if(handler){this.input.addEventListener(event,handler);this._handlers[event]=handler;}}},{key:"rootElement",get:function get(){return this.input.getRootNode?this.input.getRootNode():document;}},{key:"isActive",get:function get(){return this.input===this.rootElement.activeElement;}},{key:"_unsafeSelectionStart",get:function get(){return this.input.selectionStart;}},{key:"_unsafeSelectionEnd",get:function get(){return this.input.selectionEnd;}},{key:"value",get:function get(){return this.input.value;},set:function set(value){this.input.value=value;}}]);return HTMLMaskElement;}(MaskElement);
236HTMLMaskElement.EVENTS_MAP={selectionChange:'keydown',input:'input',drop:'drop',click:'click',focus:'focus',commit:'blur'};IMask.HTMLMaskElement=HTMLMaskElement;var HTMLContenteditableMaskElement=function(_HTMLMaskElement){_inherits(HTMLContenteditableMaskElement,_HTMLMaskElement);function HTMLContenteditableMaskElement(){_classCallCheck(this,HTMLContenteditableMaskElement);return _possibleConstructorReturn(this,_getPrototypeOf(HTMLContenteditableMaskElement).apply(this,arguments));}_createClass(HTMLContenteditableMaskElement,[{key:"_unsafeSelect",value:function _unsafeSelect(start,end){if(!this.rootElement.createRange)return;var range=this.rootElement.createRange();range.setStart(this.input.firstChild||this.input,start);range.setEnd(this.input.lastChild||this.input,end);var root=this.rootElement;var selection=root.getSelection&&root.getSelection();if(selection){selection.removeAllRanges();selection.addRange(range);}}},{key:"_unsafeSelectionStart",get:function get(){var root=this.rootElement;var selection=root.getSelection&&root.getSelection();return selection&&selection.anchorOffset;}},{key:"_unsafeSelectionEnd",get:function get(){var root=this.rootElement;var selection=root.getSelection&&root.getSelection();return selection&&this._unsafeSelectionStart+String(selection).length;}},{key:"value",get:function get(){return this.input.textContent;},set:function set(value){this.input.textContent=value;}}]);return HTMLContenteditableMaskElement;}(HTMLMaskElement);IMask.HTMLContenteditableMaskElement=HTMLContenteditableMaskElement;var InputMask=function(){function InputMask(el,opts){_classCallCheck(this,InputMask);this.el=el instanceof MaskElement?el:el.isContentEditable&&el.tagName!=='INPUT'&&el.tagName!=='TEXTAREA'?new HTMLContenteditableMaskElement(el):new HTMLMaskElement(el);this.masked=createMask(opts);this._listeners={};this._value='';this._unmaskedValue='';this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange();}_createClass(InputMask,[{key:"maskEquals",value:function maskEquals(mask){return mask==null||mask===this.masked.mask||mask===Date&&this.masked instanceof MaskedDate;}},{key:"_bindEvents",value:function _bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange});}},{key:"_unbindEvents",value:function _unbindEvents(){if(this.el)this.el.unbindEvents();}},{key:"_fireEvent",value:function _fireEvent(ev){var listeners=this._listeners[ev];if(!listeners)return;listeners.forEach(function(l){return l();});}},{key:"_saveSelection",value:function _saveSelection(){if(this.value!==this.el.value)console.warn('Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.');this._selection={start:this.selectionStart,end:this.cursorPos};}},{key:"updateValue",value:function updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;}},{key:"updateControl",value:function updateControl(){var newUnmaskedValue=this.masked.unmaskedValue;var newValue=this.masked.value;var isChanged=this.unmaskedValue!==newUnmaskedValue||this.value!==newValue;this._unmaskedValue=newUnmaskedValue;this._value=newValue;if(this.el.value!==newValue)this.el.value=newValue;if(isChanged)this._fireChangeEvents();}},{key:"updateOptions",value:function updateOptions(opts){var mask=opts.mask,restOpts=_objectWithoutProperties(opts,["mask"]);var updateMask=!this.maskEquals(mask);var updateOpts=!objectIncludes(this.masked,restOpts);if(updateMask)this.mask=mask;if(updateOpts)this.masked.updateOptions(restOpts);if(updateMask||updateOpts)this.updateControl();}},{key:"updateCursor",value:function updateCursor(cursorPos){if(cursorPos==null)return;this.cursorPos=cursorPos;this._delayUpdateCursor(cursorPos);}},{key:"_delayUpdateCursor",value:function _delayUpdateCursor(cursorPos){var _this=this;
236this._abortUpdateCursor();this._changingCursorPos=cursorPos;this._cursorChanging=setTimeout(function(){if(!_this.el)return;_this.cursorPos=_this._changingCursorPos;_this._abortUpdateCursor();},10);}},{key:"_fireChangeEvents",value:function _fireChangeEvents(){this._fireEvent('accept');if(this.masked.isComplete)this._fireEvent('complete');}},{key:"_abortUpdateCursor",value:function _abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging;}}},{key:"alignCursor",value:function alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.cursorPos,DIRECTION.LEFT);}},{key:"alignCursorFriendly",value:function alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor();}},{key:"on",value:function on(ev,handler){if(!this._listeners[ev])this._listeners[ev]=[];this._listeners[ev].push(handler);return this;}},{key:"off",value:function off(ev,handler){if(!this._listeners[ev])return this;if(!handler){delete this._listeners[ev];return this;}var hIndex=this._listeners[ev].indexOf(handler);if(hIndex>=0)this._listeners[ev].splice(hIndex,1);return this;}},{key:"_onInput",value:function _onInput(){this._abortUpdateCursor();if(!this._selection)return this.updateValue();var details=new ActionDetails(this.el.value,this.cursorPos,this.value,this._selection);var oldRawValue=this.masked.rawInputValue;var offset=this.masked.splice(details.startChangePos,details.removed.length,details.inserted,details.removeDirection).offset;var removeDirection=oldRawValue===this.masked.rawInputValue?details.removeDirection:DIRECTION.NONE;var cursorPos=this.masked.nearestInputPos(details.startChangePos+offset,removeDirection);this.updateControl();this.updateCursor(cursorPos);}},{key:"_onChange",value:function _onChange(){if(this.value!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection();}},{key:"_onDrop",value:function _onDrop(ev){ev.preventDefault();ev.stopPropagation();}},{key:"_onFocus",value:function _onFocus(ev){this.alignCursorFriendly();}},{key:"_onClick",value:function _onClick(ev){this.alignCursorFriendly();}},{key:"destroy",value:function destroy(){this._unbindEvents();this._listeners.length=0;delete this.el;}},{key:"mask",get:function get(){return this.masked.mask;},set:function set(mask){if(this.maskEquals(mask))return;if(this.masked.constructor===maskedClass(mask)){this.masked.updateOptions({mask});return;}var masked=createMask({mask});masked.unmaskedValue=this.masked.unmaskedValue;this.masked=masked;}},{key:"value",get:function get(){return this._value;},set:function set(str){this.masked.value=str;this.updateControl();this.alignCursor();}},{key:"unmaskedValue",get:function get(){return this._unmaskedValue;},set:function set(str){this.masked.unmaskedValue=str;this.updateControl();this.alignCursor();}},{key:"typedValue",get:function get(){return this.masked.typedValue;},set:function set(val){this.masked.typedValue=val;this.updateControl();this.alignCursor();}},{key:"selectionStart",get:function get(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart;}},{key:"cursorPos",get:function get(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd;},set:function set(pos){if(!this.el.isActive)return;this.el.select(pos,pos);this._saveSelection();}}]);return InputMask;}();IMask.InputMask=InputMask;var MaskedEnum=function(_MaskedPattern){_inherits(MaskedEnum,_MaskedPattern);function MaskedEnum(){_classCallCheck(this,MaskedEnum);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedEnum).apply(this,arguments));}_createClass(MaskedEnum,[{key:"_update",value:function _update(opts){if(opts.enum)opts.mask='*'.repeat(opts.enum[0].length);_get(_getPrototypeOf(MaskedEnum.prototype),"_update",this).call(this,opts);}},{key:"doValidate",value:function doValidate(){var _this=this,_get2;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return this.enum.some(function(e){return e.indexOf(_this.unmaskedValue)>=0;})&&(_get2=_get(_getPrototypeOf(MaskedEnum.prototype),"doValidate",this)).call.apply(_get2,[this].concat(args));}}]);return MaskedEnum;}(MaskedPattern);IMask.MaskedEnum=MaskedEnum;var MaskedNumber=function(_Masked){_inherits(MaskedNumber,_Masked);function MaskedNumber(opts){_classCallCheck(this,MaskedNumber);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedNumber).call(this,Object.assign({},MaskedNumber.DEFAULTS,{},opts)));}_createClass(MaskedNumber,[{key:"_update",value:function _update(opts){_get(_getPrototypeOf(MaskedNumber.prototype),"_update",this).call(this,opts);this._updateRegExps();}},{key:"_updateRegExps",value:function _updateRegExps(){var start='^'+(this.allowNegative?'[+|\\-]?':'');var midInput='(0|([1-9]+\\d*))?';var mid='\\d*';var end=(this.scale?'('+escapeRegExp(this.radix)+'\\d{0,'+this.scale+'})?':'')+'$';this._numberRegExpInput=new RegExp(start+midInput+end);this._numberRegExp=new RegExp(start+mid+end);this._mapToRadixRegExp=new RegExp('['+this.mapToRadix.map(escapeRegExp).join('')+']','g');this._thousandsSeparatorRegExp=new RegExp(escapeRegExp(this.thousandsSeparator),'g');}},{key:"_removeThousandsSeparators",value:function _removeThousandsSeparators(value){return value.replace(this._thousandsSeparatorRegExp,'');}},{key:"_insertThousandsSeparators",value:function _insertThousandsSeparators(value){var parts=value.split(this.radix);parts[0]=parts[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return parts.join(this.radix);}}
236,{key:"doPrepare",value:function doPrepare(str){var _get2;for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return (_get2=_get(_getPrototypeOf(MaskedNumber.prototype),"doPrepare",this)).call.apply(_get2,[this,this._removeThousandsSeparators(str.replace(this._mapToRadixRegExp,this.radix))].concat(args));}},{key:"_separatorsCount",value:function _separatorsCount(to){var extendOnSeparators=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var count=0;for(var pos=0;pos<to;++pos)if(this._value.indexOf(this.thousandsSeparator,pos)===pos){++count;if(extendOnSeparators)to+=this.thousandsSeparator.length;}return count;}},{key:"_separatorsCountFromSlice",value:function _separatorsCountFromSlice(){var slice=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(slice).length,true);}},{key:"extractInput",value:function extractInput(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var flags=arguments.length>2?arguments[2]:undefined;var _this$_adjustRangeWit=this._adjustRangeWithSeparators(fromPos,toPos);var _this$_adjustRangeWit2=_slicedToArray(_this$_adjustRangeWit,2);fromPos=_this$_adjustRangeWit2[0];toPos=_this$_adjustRangeWit2[1];return this._removeThousandsSeparators(_get(_getPrototypeOf(MaskedNumber.prototype),"extractInput",this).call(this,fromPos,toPos,flags));}},{key:"_appendCharRaw",value:function _appendCharRaw(ch){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!this.thousandsSeparator)return _get(_getPrototypeOf(MaskedNumber.prototype),"_appendCharRaw",this).call(this,ch,flags);var prevBeforeTailValue=flags.tail&&flags._beforeTailState?flags._beforeTailState._value:this._value;var prevBeforeTailSeparatorsCount=this._separatorsCountFromSlice(prevBeforeTailValue);this._value=this._removeThousandsSeparators(this.value);var appendDetails=_get(_getPrototypeOf(MaskedNumber.prototype),"_appendCharRaw",this).call(this,ch,flags);this._value=this._insertThousandsSeparators(this._value);var beforeTailValue=flags.tail&&flags._beforeTailState?flags._beforeTailState._value:this._value;var beforeTailSeparatorsCount=this._separatorsCountFromSlice(beforeTailValue);appendDetails.tailShift+=(beforeTailSeparatorsCount-prevBeforeTailSeparatorsCount)*this.thousandsSeparator.length;return appendDetails;}},{key:"_findSeparatorAround",value:function _findSeparatorAround(pos){if(this.thousandsSeparator){var searchFrom=pos-this.thousandsSeparator.length+1;var separatorPos=this.value.indexOf(this.thousandsSeparator,searchFrom);if(separatorPos<=pos)return separatorPos;}return -1;}},{key:"_adjustRangeWithSeparators",value:function _adjustRangeWithSeparators(from,to){var separatorAroundFromPos=this._findSeparatorAround(from);if(separatorAroundFromPos>=0)from=separatorAroundFromPos;var separatorAroundToPos=this._findSeparatorAround(to);if(separatorAroundToPos>=0)to=separatorAroundToPos+this.thousandsSeparator.length;return [from,to];}},{key:"remove",value:function remove(){var fromPos=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var toPos=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.value.length;var _this$_adjustRangeWit3=this._adjustRangeWithSeparators(fromPos,toPos);var _this$_adjustRangeWit4=_slicedToArray(_this$_adjustRangeWit3,2);fromPos=_this$_adjustRangeWit4[0];toPos=_this$_adjustRangeWit4[1];var valueBeforePos=this.value.slice(0,fromPos);var valueAfterPos=this.value.slice(toPos);var prevBeforeTailSeparatorsCount=this._separatorsCount(valueBeforePos.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(valueBeforePos+valueAfterPos));var beforeTailSeparatorsCount=this._separatorsCountFromSlice(valueBeforePos);return new ChangeDetails({tailShift:(beforeTailSeparatorsCount-prevBeforeTailSeparatorsCount)*this.thousandsSeparator.length});}},{key:"nearestInputPos",value:function nearestInputPos(cursorPos,direction){if(!this.thousandsSeparator)return cursorPos;switch(direction){case DIRECTION.NONE:case DIRECTION.LEFT:case DIRECTION.FORCE_LEFT:var separatorAtLeftPos=this._findSeparatorAround(cursorPos-1);if(separatorAtLeftPos>=0){var separatorAtLeftEndPos=separatorAtLeftPos+this.thousandsSeparator.length;if(cursorPos<separatorAtLeftEndPos||this.value.length<=separatorAtLeftEndPos||direction===DIRECTION.FORCE_LEFT)return separatorAtLeftPos;}break;case DIRECTION.RIGHT:case DIRECTION.FORCE_RIGHT:var separatorAtRightPos=this._findSeparatorAround(cursorPos);if(separatorAtRightPos>=0)return separatorAtRightPos+this.thousandsSeparator.length;}return cursorPos;}},{key:"doValidate",value:function doValidate(flags){var regexp=flags.input?this._numberRegExpInput:this._numberRegExp;var valid=regexp.test(this._removeThousandsSeparators(this.value));if(valid){var number=this.number;
236valid=valid&&!isNaN(number)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max);}return valid&&_get(_getPrototypeOf(MaskedNumber.prototype),"doValidate",this).call(this,flags);}},{key:"doCommit",value:function doCommit(){if(this.value){var number=this.number;var validnum=number;if(this.min!=null)validnum=Math.max(validnum,this.min);if(this.max!=null)validnum=Math.min(validnum,this.max);if(validnum!==number)this.unmaskedValue=String(validnum);var formatted=this.value;if(this.normalizeZeros)formatted=this._normalizeZeros(formatted);if(this.padFractionalZeros)formatted=this._padFractionalZeros(formatted);this._value=formatted;}_get(_getPrototypeOf(MaskedNumber.prototype),"doCommit",this).call(this);}},{key:"_normalizeZeros",value:function _normalizeZeros(value){var parts=this._removeThousandsSeparators(value).split(this.radix);parts[0]=parts[0].replace(/^(\D*)(0*)(\d*)/,function(match,sign,zeros,num){return sign+num;});if(value.length&&!/\d$/.test(parts[0]))parts[0]=parts[0]+'0';if(parts.length>1){parts[1]=parts[1].replace(/0*$/,'');if(!parts[1].length)parts.length=1;}return this._insertThousandsSeparators(parts.join(this.radix));}},{key:"_padFractionalZeros",value:function _padFractionalZeros(value){if(!value)return value;var parts=value.split(this.radix);if(parts.length<2)parts.push('');parts[1]=parts[1].padEnd(this.scale,'0');return parts.join(this.radix);}},{key:"unmaskedValue",get:function get(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,'.');},set:function set(unmaskedValue){_set(_getPrototypeOf(MaskedNumber.prototype),"unmaskedValue",unmaskedValue.replace('.',this.radix),this,true);}},{key:"typedValue",get:function get(){return Number(this.unmaskedValue);},set:function set(n){_set(_getPrototypeOf(MaskedNumber.prototype),"unmaskedValue",String(n),this,true);}},{key:"number",get:function get(){return this.typedValue;},set:function set(number){this.typedValue=number;}},{key:"allowNegative",get:function get(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0;}}]);return MaskedNumber;}(Masked);MaskedNumber.DEFAULTS={radix:',',thousandsSeparator:'',mapToRadix:['.'],scale:2,signed:false,normalizeZeros:true,padFractionalZeros:false};IMask.MaskedNumber=MaskedNumber;var MaskedRegExp=function(_Masked){_inherits(MaskedRegExp,_Masked);function MaskedRegExp(){_classCallCheck(this,MaskedRegExp);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedRegExp).apply(this,arguments));}_createClass(MaskedRegExp,[{key:"_update",value:function _update(opts){if(opts.mask)opts.validate=function(value){return value.search(opts.mask)>=0;};_get(_getPrototypeOf(MaskedRegExp.prototype),"_update",this).call(this,opts);}}]);return MaskedRegExp;}(Masked);IMask.MaskedRegExp=MaskedRegExp;var MaskedFunction=function(_Masked){_inherits(MaskedFunction,_Masked);function MaskedFunction(){_classCallCheck(this,MaskedFunction);return _possibleConstructorReturn(this,_getPrototypeOf(MaskedFunction).apply(this,arguments));}_createClass(MaskedFunction,[{key:"_update",value:function _update(opts){if(opts.mask)opts.validate=opts.mask;_get(_getPrototypeOf(MaskedFunction.prototype),"_update",this).call(this,opts);}}]);return MaskedFunction;}(Masked);IMask.MaskedFunction=MaskedFunction;var MaskedDynamic=function(_Masked){_inherits(MaskedDynamic,_Masked);function MaskedDynamic(opts){var _this;_classCallCheck(this,MaskedDynamic);_this=_possibleConstructorReturn(this,_getPrototypeOf(MaskedDynamic).call(this,Object.assign({},MaskedDynamic.DEFAULTS,{},opts)));_this.currentMask=null;return _this;}_createClass(MaskedDynamic,[{key:"_update",value:function _update(opts){_get(_getPrototypeOf(MaskedDynamic.prototype),"_update",this).call(this,opts);if('mask' in opts)this.compiledMasks=Array.isArray(opts.mask)?opts.mask.map(function(m){return createMask(m);}):[];}},{key:"_appendCharRaw",value:function _appendCharRaw(){var details=this._applyDispatch.apply(this,arguments);if(this.currentMask){var _this$currentMask;details.aggregate((_this$currentMask=this.currentMask)._appendChar.apply(_this$currentMask,arguments));}return details;}},{key:"_applyDispatch",value:function _applyDispatch(){var appended=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var prevValueBeforeTail=flags.tail&&flags._beforeTailState!=null?flags._beforeTailState._value:this.value;var inputValue=this.rawInputValue;var insertValue=flags.tail&&flags._beforeTailState!=null?flags._beforeTailState._rawInputValue:inputValue;var tailValue=inputValue.slice(insertValue.length);var prevMask=this.currentMask;var details=new ChangeDetails();var prevMaskState=prevMask&&prevMask.state;
236this.currentMask=this.doDispatch(appended,Object.assign({},flags));if(this.currentMask)if(this.currentMask!==prevMask){this.currentMask.reset();var d=this.currentMask.append(insertValue,{raw:true});details.tailShift=d.inserted.length-prevValueBeforeTail.length;if(tailValue)details.tailShift+=this.currentMask.append(tailValue,{raw:true,tail:true}).tailShift;}else this.currentMask.state=prevMaskState;return details;}},{key:"_appendPlaceholder",value:function _appendPlaceholder(){var details=this._applyDispatch.apply(this,arguments);if(this.currentMask)details.aggregate(this.currentMask._appendPlaceholder());return details;}},{key:"doDispatch",value:function doDispatch(appended){var flags=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.dispatch(appended,this,flags);}},{key:"doValidate",value:function doValidate(){var _get2,_this$currentMask2;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return (_get2=_get(_getPrototypeOf(MaskedDynamic.prototype),"doValidate",this)).call.apply(_get2,[this].concat(args))&&(!this.currentMask||(_this$currentMask2=this.currentMask).doValidate.apply(_this$currentMask2,args));}},{key:"reset",value:function reset(){if(this.currentMask)this.currentMask.reset();this.compiledMasks.forEach(function(m){return m.reset();});}},{key:"remove",value:function remove(){var details=new ChangeDetails();if(this.currentMask){var _this$currentMask3;details.aggregate((_this$currentMask3=this.currentMask).remove.apply(_this$currentMask3,arguments)).aggregate(this._applyDispatch());}return details;}},{key:"extractInput",value:function extractInput(){var _this$currentMask4;return this.currentMask?(_this$currentMask4=this.currentMask).extractInput.apply(_this$currentMask4,arguments):'';}},{key:"extractTail",value:function extractTail(){var _this$currentMask5,_get3;for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return this.currentMask?(_this$currentMask5=this.currentMask).extractTail.apply(_this$currentMask5,args):(_get3=_get(_getPrototypeOf(MaskedDynamic.prototype),"extractTail",this)).call.apply(_get3,[this].concat(args));}},{key:"doCommit",value:function doCommit(){if(this.currentMask)this.currentMask.doCommit();_get(_getPrototypeOf(MaskedDynamic.prototype),"doCommit",this).call(this);}},{key:"nearestInputPos",value:function nearestInputPos(){var _this$currentMask6,_get4;for(var _len3=arguments.length,args=new Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return this.currentMask?(_this$currentMask6=this.currentMask).nearestInputPos.apply(_this$currentMask6,args):(_get4=_get(_getPrototypeOf(MaskedDynamic.prototype),"nearestInputPos",this)).call.apply(_get4,[this].concat(args));}},{key:"value",get:function get(){return this.currentMask?this.currentMask.value:'';},set:function set(value){_set(_getPrototypeOf(MaskedDynamic.prototype),"value",value,this,true);}},{key:"unmaskedValue",get:function get(){return this.currentMask?this.currentMask.unmaskedValue:'';},set:function set(unmaskedValue){_set(_getPrototypeOf(MaskedDynamic.prototype),"unmaskedValue",unmaskedValue,this,true);}},{key:"typedValue",get:function get(){return this.currentMask?this.currentMask.typedValue:'';},set:function set(value){var unmaskedValue=String(value);if(this.currentMask){this.currentMask.typedValue=value;unmaskedValue=this.currentMask.unmaskedValue;}this.unmaskedValue=unmaskedValue;}},{key:"isComplete",get:function get(){return !!this.currentMask&&this.currentMask.isComplete;}},{key:"state",get:function get(){return Object.assign({},_get(_getPrototypeOf(MaskedDynamic.prototype),"state",this),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(function(m){return m.state;}),currentMaskRef:this.currentMask,currentMask:this.currentMask&&this.currentMask.state});},set:function set(state){var compiledMasks=state.compiledMasks,currentMaskRef=state.currentMaskRef,currentMask=state.currentMask,maskedState=_objectWithoutProperties(state,["compiledMasks","currentMaskRef","currentMask"]);this.compiledMasks.forEach(function(m,mi){return m.state=compiledMasks[mi];});if(currentMaskRef!=null){this.currentMask=currentMaskRef;this.currentMask.state=currentMask;}_set(_getPrototypeOf(MaskedDynamic.prototype),"state",maskedState,this,true);}}
236,{key:"overwrite",get:function get(){return this.currentMask?this.currentMask.overwrite:_get(_getPrototypeOf(MaskedDynamic.prototype),"overwrite",this);},set:function set(overwrite){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings');}}]);return MaskedDynamic;}(Masked);MaskedDynamic.DEFAULTS={dispatch:function dispatch(appended,masked,flags){if(!masked.compiledMasks.length)return;var inputValue=masked.rawInputValue;var inputs=masked.compiledMasks.map(function(m,index){m.reset();m.append(inputValue,{raw:true});m.append(appended,flags);var weight=m.rawInputValue.length;return {weight,index};});inputs.sort(function(i1,i2){return i2.weight-i1.weight;});return masked.compiledMasks[inputs[0].index];}};IMask.MaskedDynamic=MaskedDynamic;var PIPE_TYPE={MASKED:'value',UNMASKED:'unmaskedValue',TYPED:'typedValue'};function createPipe(mask){var from=arguments.length>1&&arguments[1]!==undefined?arguments[1]:PIPE_TYPE.MASKED;var to=arguments.length>2&&arguments[2]!==undefined?arguments[2]:PIPE_TYPE.MASKED;var masked=createMask(mask);return function(value){return masked.runIsolated(function(m){m[from]=value;return m[to];});};}function pipe(value){for(var _len=arguments.length,pipeArgs=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)pipeArgs[_key-1]=arguments[_key];return createPipe.apply(void 0,pipeArgs)(value);}IMask.PIPE_TYPE=PIPE_TYPE;IMask.createPipe=createPipe;IMask.pipe=pipe;globalThis.IMask=IMask;exports.HTMLContenteditableMaskElement=HTMLContenteditableMaskElement;exports.HTMLMaskElement=HTMLMaskElement;exports.InputMask=InputMask;exports.MaskElement=MaskElement;exports.Masked=Masked;exports.MaskedDate=MaskedDate;exports.MaskedDynamic=MaskedDynamic;exports.MaskedEnum=MaskedEnum;exports.MaskedFunction=MaskedFunction;exports.MaskedNumber=MaskedNumber;exports.MaskedPattern=MaskedPattern;exports.MaskedRange=MaskedRange;exports.MaskedRegExp=MaskedRegExp;exports.PIPE_TYPE=PIPE_TYPE;exports.createMask=createMask;exports.createPipe=createPipe;exports.default=IMask;exports.pipe=pipe;Object.defineProperty(exports,'__esModule',{value:true});})));; 237(function(Drupal){'use strict';Drupal.behaviors.imask={attach:function(context){const selector='[id^="edit-created-min"],'+'[id^="edit-created-max"],'+'[id^="edit-publication-date-min"],'+'[id^="edit-publication-date-max"],'+'[id^="edit-field-event-date-value"],'+'[id^="edit-field-event-date-end-value"]';const inputs=context.querySelectorAll(selector);inputs.forEach(function(input){if(input._imask)input._imask.destroy();requestAnimationFrame(function(){input._imask=IMask(input,{mask:Date,min:new Date(1980,0,1),max:new Date(2200,0,1),lazy:false,placeholderChar:'-'});});});}};})(Drupal);; 238!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t();}(this,function(){"use strict";var H;function _(){return H.apply(null,arguments);}function y(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e);}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e);}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t);}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1;}function g(e){return void 0===e;}function w(e){return "number"==typeof e||"[object Number]"===Object.prototype.toString.call(e);}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e);}function G(e,t){for(var n=[],s=e.length,i=0;i<s;++i)n.push(t(e[i],i));return n;}function E(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e;}function l(e,t,n,s){return Wt(e,t,n,s,!0).utc();}function p(e){return null==e._pf&&(e._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}),e._pf;}function A(e){var t,n,s=e._d&&!isNaN(e._d.getTime());return s&&(t=p(e),n=j.call(t.parsedDateParts,function(e){return null!=e;}
238),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict)&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e)?s:(e._isValid=s,e._isValid);}function I(e){var t=l(NaN);return null!=e?E(p(t),e):p(t).userInvalidated=!0,t;}var j=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return !0;return !1;},Z=_.momentProperties=[],z=!1;function q(e,t){var n,s,i,r=Z.length;if(g(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),g(t._i)||(e._i=t._i),g(t._f)||(e._f=t._f),g(t._l)||(e._l=t._l),g(t._strict)||(e._strict=t._strict),g(t._tzm)||(e._tzm=t._tzm),g(t._isUTC)||(e._isUTC=t._isUTC),g(t._offset)||(e._offset=t._offset),g(t._pf)||(e._pf=p(t)),g(t._locale)||(e._locale=t._locale),0<r)for(n=0;n<r;n++)g(i=t[s=Z[n]])||(e[s]=i);return e;}function $(e){q(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,_.updateOffset(this),z=!1);}function k(e){return e instanceof $||null!=e&&null!=e._isAMomentObject;}function B(e){!1===_.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e);}function e(r,a){var o=!0;return E(function(){if(null!=_.deprecationHandler&&_.deprecationHandler(null,r),o){for(var e,t,n=[],s=arguments.length,i=0;i<s;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])c(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2);}else e=arguments[i];n.push(e);}B(r+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error()).stack),o=!1;}return a.apply(this,arguments);},a);}var J={};function Q(e,t){null!=_.deprecationHandler&&_.deprecationHandler(e,t),J[e]||(B(t),J[e]=!0);}function a(e){return "undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e);}function X(e,t){var n,s=E({},e);for(n in t)c(t,n)&&(F(e[n])&&F(t[n])?(s[n]={},E(s[n],e[n]),E(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)c(e,n)&&!c(t,n)&&F(e[n])&&(s[n]=E({},s[n]));return s;}function K(e){null!=e&&this.set(e);}_.suppressDeprecationWarnings=!1,_.deprecationHandler=null;var ee=Object.keys||function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n;};function r(e,t,n){var s=""+Math.abs(e);return (0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s;}var te=/(\[[^\[]*\])|(\\)?([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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,se={},ie={};function s(e,t,n,s){var i="string"==typeof s?function(){return this[s]();}:s;e&&(ie[e]=i),t&&(ie[t[0]]=function(){return r(i.apply(this,arguments),t[1],t[2]);}),n&&(ie[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e);});}function re(e,t){return e.isValid()?(t=ae(t,e.localeData()),se[t]=se[t]||function(s){for(var e,i=s.match(te),t=0,r=i.length;t<r;t++)ie[i[t]]?i[t]=ie[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<r;n++)t+=a(i[n])?i[n].call(e,s):i[n];return t;};}(t),se[t](e)):e.localeData().invalidDate();}function ae(e,t){var n=5;function s(e){return t.longDateFormat(e)||e;}for(ne.lastIndex=0;0<=n&&ne.test(e);)e=e.replace(ne,s),ne.lastIndex=0,--n;return e;}var oe={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function o(e){return "string"==typeof e?oe[e]||oe[e.toLowerCase()]:void 0;}function ue(e){var t,n,s={};for(n in e)c(e,n)&&(t=o(n))&&(s[t]=e[n]);return s;}var le={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var de=/\d/,t=/\d\d/,he=/\d{3}/,ce=/\d{4}/,fe=/[+-]?\d{6}/,n=/\d\d?/,me=/\d\d\d\d?/,_e=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ge=/\d{1,4}/,we=/[+-]?\d{1,6}/,pe=/\d+/,ke=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,ve=/Z|[+-]\d\d(?::?\d\d)?/gi,i=/[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,u=/^[1-9]\d?/,d=/^([1-9]\d|\d)/;function h(e,n,s){Ye[e]=a(n)?n:function(e,t){return e&&s?s:n;};}function De(e,t){return c(Ye,e)?Ye[e](t._strict,t._locale):new RegExp(f(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i;})));}function f(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");}function m(e){return e<0?Math.ceil(e)||0:Math.floor(e);}function M(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?m(e):t;}var Ye={},Se={};function v(e,n){var t,s,i=n;for("string"==typeof e&&(e=[e]),w(n)&&(i=function(e,t){t[n]=M(e);}),s=e.length,t=0;t<s;t++)Se[e[t]]=i;}function Oe(e,i){v(e,function(e,t,n,s){n._w=n._w||{},i(e,n._w,n,s);});}function be(e){return e%4==0&&e%100!=0||e%400==0;}var D=0,Y=1,S=2,O=3,b=4,T=5,Te=6,xe=7,Ne=8;function We(e){return be(e)?366:365;}s("Y",0,0,function(){var e=this.year();
238return e<=9999?r(e,4):"+"+e;}),s(0,["YY",2],0,function(){return this.year()%100;}),s(0,["YYYY",4],0,"year"),s(0,["YYYYY",5],0,"year"),s(0,["YYYYYY",6,!0],0,"year"),h("Y",ke),h("YY",n,t),h("YYYY",ge,ce),h("YYYYY",we,fe),h("YYYYYY",we,fe),v(["YYYYY","YYYYYY"],D),v("YYYY",function(e,t){t[D]=2===e.length?_.parseTwoDigitYear(e):M(e);}),v("YY",function(e,t){t[D]=_.parseTwoDigitYear(e);}),v("Y",function(e,t){t[D]=parseInt(e,10);}),_.parseTwoDigitYear=function(e){return M(e)+(68<M(e)?1900:2e3);};var x,Pe=Re("FullYear",!0);function Re(t,n){return function(e){return null!=e?(Ue(this,t,e),_.updateOffset(this,n),this):Ce(this,t);};}function Ce(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case "Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case "Seconds":return s?n.getUTCSeconds():n.getSeconds();case "Minutes":return s?n.getUTCMinutes():n.getMinutes();case "Hours":return s?n.getUTCHours():n.getHours();case "Date":return s?n.getUTCDate():n.getDate();case "Day":return s?n.getUTCDay():n.getDay();case "Month":return s?n.getUTCMonth():n.getMonth();case "FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN;}}function Ue(e,t,n){var s,i,r;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case "Milliseconds":return i?s.setUTCMilliseconds(n):s.setMilliseconds(n);case "Seconds":return i?s.setUTCSeconds(n):s.setSeconds(n);case "Minutes":return i?s.setUTCMinutes(n):s.setMinutes(n);case "Hours":return i?s.setUTCHours(n):s.setHours(n);case "Date":return i?s.setUTCDate(n):s.setDate(n);case "FullYear":break;default:return;}t=n,r=e.month(),e=29!==(e=e.date())||1!==r||be(t)?e:28,i?s.setUTCFullYear(t,r,e):s.setFullYear(t,r,e);}}function He(e,t){var n;
238return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?be(e)?29:28:31-n%7%2);}x=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return -1;},s("M",["MM",2],"Mo",function(){return this.month()+1;}),s("MMM",0,0,function(e){return this.localeData().monthsShort(this,e);}),s("MMMM",0,0,function(e){return this.localeData().months(this,e);}),h("M",n,u),h("MM",n,t),h("MMM",function(e,t){return t.monthsShortRegex(e);}),h("MMMM",function(e,t){return t.monthsRegex(e);}),v(["M","MM"],function(e,t){t[Y]=M(e)-1;}),v(["MMM","MMMM"],function(e,t,n,s){s=n._locale.monthsParse(e,s,n._strict);null!=s?t[Y]=s:p(n).invalidMonth=e;});var Fe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ve=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ge=i,Ee=i;function Ae(e,t){if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else{if(!w(t=e.localeData().monthsParse(t)))return;}var n=(n=e.date())<29?n:Math.min(n,He(e.year(),t));e._isUTC?e._d.setUTCMonth(t,n):e._d.setMonth(t,n);}}function Ie(e){return null!=e?(Ae(this,e),_.updateOffset(this,!0),this):Ce(this,"Month");}function je(){function e(e,t){return t.length-e.length;}for(var t,n,s=[],i=[],r=[],a=0;a<12;a++)n=l([2e3,a]),t=f(this.monthsShort(n,"")),n=f(this.months(n,"")),s.push(t),i.push(n),r.push(n),r.push(t);s.sort(e),i.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i");}function Ze(e,t,n,s,i,r,a){var o;return e<100&&0<=e?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o;}function ze(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t;}function qe(e,t,n){n=7+t-n;return n-(7+ze(e,0,n).getUTCDay()-t)%7-1;}function $e(e,t,n,s,i){var r,t=1+7*(t-1)+(7+n-s)%7+qe(e,s,i),n=t<=0?We(r=e-1)+t:t>We(e)?(r=e+1,t-We(e)):(r=e,t);return {year:r,dayOfYear:n};}function Be(e,t,n){var s,i,r=qe(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+N(i=e.year()-1,t,n):r>N(e.year(),t,n)?(s=r-N(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i};}function N(e,t,n){var s=qe(e,t,n),t=qe(e+1,t,n);return (We(e)-s+t)/7;}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),h("w",n,u),h("ww",n,t),h("W",n,u),h("WW",n,t),Oe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=M(e);});function Je(e,t){return e.slice(t,7).concat(e.slice(0,t));}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e);}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e);}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e);}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),h("d",n),h("e",n),h("E",n),h("dd",function(e,t){return t.weekdaysMinRegex(e);}),h("ddd",function(e,t){return t.weekdaysShortRegex(e);}),h("dddd",function(e,t){return t.weekdaysRegex(e);}),Oe(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e;}),Oe(["d","e","E"],function(e,t,n,s){t[s]=M(e);});var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=i,tt
238=i,nt=i;function st(){function e(e,t){return t.length-e.length;}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=l([2e3,1]).day(u),t=f(this.weekdaysMin(s,"")),n=f(this.weekdaysShort(s,"")),s=f(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i");}function it(){return this.hours()%12||12;}function rt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t);});}function at(e,t){return t._meridiemParse;}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,it),s("k",["kk",2],0,function(){return this.hours()||24;}),s("hmm",0,0,function(){return ""+it.apply(this)+r(this.minutes(),2);}),s("hmmss",0,0,function(){return ""+it.apply(this)+r(this.minutes(),2)+r(this.seconds(),2);}),s("Hmm",0,0,function(){return ""+this.hours()+r(this.minutes(),2);}),s("Hmmss",0,0,function(){return ""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2);}),rt("a",!0),rt("A",!1),h("a",at),h("A",at),h("H",n,d),h("h",n,u),h("k",n,u),h("HH",n,t),h("hh",n,t),h("kk",n,t),h("hmm",me),h("hmmss",_e),h("Hmm",me),h("Hmmss",_e),v(["H","HH"],O),v(["k","kk"],function(e,t,n){e=M(e);t[O]=24===e?0:e;}),v(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e;}),v(["h","hh"],function(e,t,n){t[O]=M(e),p(n).bigHour=!0;}),v("hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s)),p(n).bigHour=!0;}),v("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i)),p(n).bigHour=!0;}),v("Hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s));}),v("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i));});i=Re("Hours",!0);var ot,ut={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:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},W={},lt={};function dt(e){return e&&e.toLowerCase().replace("_","-");}function ht(e){for(var t,n,s,i,r=0;r<e.length;){for(t=(i=dt(e[r]).split("-")).length,n=(n=dt(e[r+1]))?n.split("-"):null;0<t;){if(s=ct(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s<n;s+=1)if(e[s]!==t[s])return s;return n;}(i,n)>=t-1)break;t--;}r++;}return ot;}function ct(t){var e,n;if(void 0===W[t]&&"undefined"!=typeof module&&module&&module.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=ot._abbr,require("./locale/"+t),ft(e);}catch(e){W[t]=null;}return W[t];}function ft(e,t){return e&&((t=g(t)?P(e):mt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr;}function mt(e,t){if(null===t)return delete W[e],null;var n,s=ut;if(t.abbr=e,null!=W[e])Q("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."),s=W[e]._config;else{if(null!=t.parentLocale)if(null!=W[t.parentLocale])s=W[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;s=n._config;}}return W[e]=new K(X(s,t)),lt[e]&<[e].forEach(function(e){mt(e.n
vendor: 5,687 bytes, line 238
238ame,e.config);}),ft(e),W[e];}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!y(e)){if(t=ct(e))return t;e=[e];}return ht(e);}function _t(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[Y]<0||11<t[Y]?Y:t[S]<1||t[S]>He(t[D],t[Y])?S:t[O]<0||24<t[O]||24===t[O]&&(0!==t[b]||0!==t[T]||0!==t[Te])?O:t[b]<0||59<t[b]?b:t[T]<0||59<t[T]?T:t[Te]<0||999<t[Te]?Te:-1,p(e)._overflowDayOfYear&&(t<D||S<t)&&(t=S),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=Ne),p(e).overflow=t),e;}var yt=/^\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)?)?$/,gt=/^\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)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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]],kt=[["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/]],Mt=/^\/?Date\((-?\d+)/i,vt=/^(?:(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}))$/,Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Yt(e){var t,n,s,i,r,a,o=e._i,u=yt.exec(o)||gt.exec(o),o=pt.length,l=kt.length;if(u){for(p(e).iso=!0,t=0,n=o;t<n;t++)if(pt[t][1].exec(u[1])){i=pt[t][0],s=!1!==pt[t][2];break;}if(null==i)e._isValid=!1;else{if(u[3]){for(t=0,n=l;t<n;t++)if(kt[t][1].exec(u[3])){r=(u[2]||" ")+kt[t][0];break;}if(null==r)return void (e._isValid=!1);}if(s||null==r){if(u[4]){if(!wt.exec(u[4]))return void (e._isValid=!1);a="Z";}e._f=i+(r||"")+(a||""),xt(e);}else e._isValid=!1;}}else e._isValid=!1;}function St(e,t,n,s,i,r){e=[function(e){e=parseInt(e,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e;}return e;}(e),Le.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&e.push(parseInt(r,10)),e;}function Ot(e){var t,n,s=vt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=St(s[4],s[3],s[2],s[5],s[6],s[7]),function(e,t,n){if(!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;p(n).weekdayMismatch=!0,n._isValid=!1;}(s[1],t,e)&&(e._a=t,e._tzm=(t=s[8],n=s[9],s=s[10],t?Dt[t]:n?0:60*(((t=parseInt(s,10))-(n=t%100))/100)+n),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0)):e._isValid=!1;}function bt(e,t,n){return null!=e?e:null!=t?t:n;}function Tt(e){var t,n,s,i,r,a,o,u,l,d,h,c=[];if(!e._d){for(s=e,i=new Date(_.now()),n=s._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()],e._w&&null==e._a[S]&&null==e._a[Y]&&(null!=(i=(s=e)._w).GG||null!=i.W||null!=i.E?(u=1,l=4,r=bt(i.GG,s._a[D],Be(R(),1,4).year),a=bt(i.W,1),((o=bt(i.E,1))<1||7<o)&&(d=!0)):(u=s._locale._week.dow,l=s._locale._week.doy,h=Be(R(),u,l),r=bt(i.gg,s._a[D],h.year),a=bt(i.w,h.week),null!=i.d?((o=i.d)<0||6<o)&&(d=!0):null!=i.e?(o=i.e+u,(i.e<0||6<i.e)&&(d=!0)):o=u),a<1||a>N(r,u,l)?p(s)._overflowWeeks=!0:null!=d?p(s)._overflowWeekday=!0:(h=$e(r,a,o,u,l),s._a[D]=h.year,s._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(i=bt(e._a[D],n[D]),(e._dayOfYear>We(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),d=ze(i,0,e._dayOfYear),e._a[Y]=d.getUTCMonth(),e._a[S]=d.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[O]&&0===e._a[b]&&0===e._a[T]&&0===e._a[Te]&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ze:Ze).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0);}}function xt(e){if(e._f===_.ISO_8601)Yt(e);else if(e._f===_.RFC_2822)Ot(e);else{e._a=[],p(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=ae(e._f,e._locale).match(te)||[],d=l.length,h=0;h<d;h++)n=l[h],(t=(a.match(De(n,e))||[])[0])&&(0<(s=a.substr(0,a.indexOf(t))).length&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(t)+t.length),u+=t.length),ie[n]?(t?p(e).empty=!1:p(e).unusedTokens.push(n),s=n,r=e,null!=(i=t)&&c(Se,s)&&Se[s](i,r._a,r,s)):e._strict&&!t&&p(e).unusedTokens.push(n);p(e).charsLeftOver=o-u,0<a.length&&p(e).unusedInput.push(a),e._a[O]<=12&&!0===p(e).bigHour&&0<e._a[O]&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[O]=function(e,t,n){if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t;}(e._locale,e._a[O],e._meridiem),null!==(o=p(e).era)&&(e._a[D]=e._locale.erasConvertYear(o,e._a[D])),Tt(e),_t(e);}}function Nt(e){var t,n,s,i=e._i,r=e._f;if(e._locale=e._locale||P(e._l),null===i||void 0===r&&""===i)return I({nullInput:!0});if("string"==typeof i&&(e._i=i=e._locale.preparse(i)),k(i))return new $(_t(i));if(V(i))e._d=i;else if(y(r)){var a,o,u,l,d,h,c=e,f=!1,m=c._f.length;if(0===m)p(c).invalidFormat=!0,c._d=new Date(NaN);else{for(l=0;l<m;l++)d=0,h=!1,a=q({},c),null!=c._useUTC&&(a._useUTC=c._useUTC),a._f=c._f[l],xt(a),A(
238a)&&(h=!0),d=(d+=p(a).charsLeftOver)+10*p(a).unusedTokens.length,p(a).score=d,f?d<u&&(u=d,o=a):(null==u||d<u||h)&&(u=d,o=a,h)&&(f=!0);E(c,o||a);}}else if(r)xt(e);else if(g(r=(i=e)._i))i._d=new Date(_.now());else V(r)?i._d=new Date(r.valueOf()):"string"==typeof r?(n=i,null!==(t=Mt.exec(n._i))?n._d=new Date(+t[1]):(Yt(n),!1===n._isValid&&(delete n._isValid,Ot(n),!1===n._isValid)&&(delete n._isValid,n._strict?n._isValid=!1:_.createFromInputFallback(n)))):y(r)?(i._a=G(r.slice(0),function(e){return parseInt(e,10);}),Tt(i)):F(r)?(t=i)._d||(s=void 0===(n=ue(t._i)).day?n.date:n.day,t._a=G([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10);}),Tt(t)):w(r)?i._d=new Date(r):_.createFromInputFallback(i);return A(e)||(e._d=null),e;}function Wt(e,t,n,s,i){var r={};return !0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(F(e)&&L(e)||y(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=s,(i=new $(_t(Nt(i=r))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i;}function R(e,t,n,s){return Wt(e,t,n,s,!1);}_.createFromInputFallback=e("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""));}),_.ISO_8601=function(){},_.RFC_2822=function(){};me=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:I();}),_e=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=R.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:I();});function Pt(e,t){var n,s;if(!(t=1===t.length&&y(t[0])?t[0]:t).length)return R();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n;}var Rt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var e=ue(e),t=e.year||0,n=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,o=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Rt.length;for(t in e)if(c(e,t)&&(-1===x.call(Rt,t)||null!=e[t]&&isNaN(e[t])))return !1;for(n=0;n<i;++n)if(e[Rt[n]]){if(s)return !1;parseFloat(e[Rt[n]])!==M(e[Rt[n]])&&(s=!0);}return !0;}(e),this._milliseconds=+l+1e3*u+6e4*o+1e3*a*60*60,this._days=+r+7*i,this._months=+s+3*n+12*t,this._data={},this._locale=P(),this._bubble();}function Ut(e){return e instanceof Ct;}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e);}function Ft(e,n){s(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+r(~~(e/60),2)+n+r(~~e%60,2);});}Ft("Z",":"),Ft("ZZ",""),h("Z",ve),h("ZZ",ve),v(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Vt(ve,e);});var Lt=/([\+\-]|\d\d)/gi;function Vt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+M(e[2]))?0:"+"===e[0]?t:-t;}function Gt(e,t){var n;return t._isUTC?(t=t.clone(),n=(k(e)||V(e)?e:R(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),_.updateOffset(t,!1),t):R(e).local();}function Et(e){return -Math.round(e._d.getTimezoneOffset());}function At(){return !!this.isValid()&&this._isUTC&&0===this._offset;}_.updateOffset=function(){};var It=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var n,s=e;return Ut(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:w(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(t=It.exec(e))?(n="-"===t[1]?-1:1,s={y:0,d:M(t[S])*n,h:M(t[O])*n,m:M(t[b])*n,s:M(t[T])*n,ms:M(Ht(1e3*t[Te]))*n}):(t=jt.exec(e))?(n="-"===t[1]?-1:1,s={y:Zt(t[2],n),M:Zt(t[3],n),w:Zt(t[4],n),d:Zt(t[5],n),h:Zt(t[6],n),m:Zt(t[7],n),s:Zt(t[8],n)}):null==s?s={}:"object"==typeof s&&("from" in s||"to" in s)&&(t=function(e,t){var n;if(!e.isValid()||!t.isValid())return {milliseconds:0,months:0};t=Gt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n;}(R(s.from),R(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new Ct(s),Ut(e)&&c(e,"_locale")&&(n._locale=e._locale),Ut(e)&&c(e,"_isValid")&&(n._isValid=e._isValid),n;}function Zt(e,t){e=e&&parseFloat(e.replace(",","."));return (isNaN(e)?0:e)*t;}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n;}function qt(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(Q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),$t(this,C(e,t),s),this;};}function $t(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),t=Ht(t._months);e.isValid()&&(s=null==s||s,t&&Ae(e,Ce(e,"Month")+t*n),r&&Ue(e,"Date",Ce(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s)&&_.updateOffset(e,r||t);}C.fn=Ct.prototype,C.invalid=function(){return C(NaN);};Fe=qt(1,"add"),Qe=qt(-1,"subtract");function Bt(e){return "string"==typeof e||e instanceof String;}function Jt(e){return k(e)||V(e)||Bt(e)||w(e)||function(t){var e=y(t),n=!1;e&&(n=0===t.filter(function(e){return !w(e)&&Bt(t);}).length);return e&&n;}(e)||function(e){var t,n,s=F(e)&&!L(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)n=r[t],i=i||c(e,n);return s&&i;}(e)||null==e;}function Qt(e,t){var n,s;return e.date()<t.date()?-Qt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(s=e.clone().add(n,"months"))<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(1+n,"months")-s)))||0;}function Xt(e){return void 0===e?this._locale._abbr:(null!=(e=P(e))&&(this._locale=e),this);}_.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",_.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Ke=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e);});function Kt(){return this._locale;}var en=126227808e5;function tn(e,t){return (e%t+t)%t;}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf();}function sn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n
238);}function rn(e,t){return t.erasAbbrRegex(e);}function an(){for(var e,t,n,s=[],i=[],r=[],a=[],o=this.eras(),u=0,l=o.length;u<l;++u)e=f(o[u].name),t=f(o[u].abbr),n=f(o[u].narrow),i.push(e),s.push(t),r.push(n),a.push(e),a.push(t),a.push(n);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i");}function on(e,t){s(0,[e,e.length],0,t);}function un(e,t,n,s,i){var r;return null==e?Be(this,s,i).year:(r=N(e,s,i),function(e,t,n,s,i){e=$e(e,t,n,s,i),t=ze(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this;}.call(this,e,t=r<t?r:t,n,s,i));}s("N",0,0,"eraAbbr"),s("NN",0,0,"eraAbbr"),s("NNN",0,0,"eraAbbr"),s("NNNN",0,0,"eraName"),s("NNNNN",0,0,"eraNarrow"),s("y",["y",1],"yo","eraYear"),s("y",["yy",2],0,"eraYear"),s("y",["yyy",3],0,"eraYear"),s("y",["yyyy",4],0,"eraYear"),h("N",rn),h("NN",rn),h("NNN",rn),h("NNNN",function(e,t){return t.erasNameRegex(e);}),h("NNNNN",function(e,t){return t.erasNarrowRegex(e);}),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){s=n._locale.erasParse(e,s,n._strict);s?p(n).era=s:p(n).invalidEra=e;}),h("y",pe),h("yy",pe),h("yyy",pe),h("yyyy",pe),h("yo",function(e,t){return t._eraYearOrdinalRegex||pe;}),v(["y","yy","yyy","yyyy"],D),v(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[D]=n._locale.eraYearOrdinalParse(e,i):t[D]=parseInt(e,10);}),s(0,["gg",2],0,function(){return this.weekYear()%100;}),s(0,["GG",2],0,function(){return this.isoWeekYear()%100;}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),h("G",ke),h("g",ke),h("GG",n,t),h("gg",n,t),h("GGGG",ge,ce),h("gggg",ge,ce),h("GGGGG",we,fe),h("ggggg",we,fe),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=M(e);}),Oe(["gg","GG"],function(e,t,n,s){t[s]=_.parseTwoDigitYear(e);}),s("Q",0,"Qo","quarter"),h("Q",de),v("Q",function(e,t){t[Y]=3*(M(e)-1);}),s("D",["DD",2],"Do","date"),h("D",n,u),h("DD",n,t),h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient;}),v(["D","DD"],S),v("Do",function(e,t){t[S]=M(e.match(n)[0]);});ge=Re("Date",!0);s("DDD",["DDDD",3],"DDDo","dayOfYear"),h("DDD",ye),h("DDDD",he),v(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e);}),s("m",["mm",2],0,"minute"),h("m",n,d),h("mm",n,t),v(["m","mm"],b);var ln,ce=Re("Minutes",!1),we=(s("s",["ss",2],0,"second"),h("s",n,d),h("ss",n,t),v(["s","ss"],T),Re("Seconds",!1));for(s("S",0,0,function(){return ~~(this.millisecond()/100);}),s(0,["SS",2],0,function(){return ~~(this.millisecond()/10);}),s(0,["SSS",3],0,"millisecond"),s(0,["SSSS",4],0,function(){return 10*this.millisecond();}),s(0,["SSSSS",5],0,function(){return 100*this.millisecond();}),s(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond();}),s(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond();}),s(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond();}),s(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond();}),h("S",ye,de),h("SS",ye,t),h("SSS",ye,he),ln="SSSS";ln.length<=9;ln+="S")h(ln,pe);function dn(e,t){t[Te]=M(1e3*("0."+e));}for(ln="S";ln.length<=9;ln+="S")v(ln,dn);fe=Re("Milliseconds",!1),s("z",0,0,"zoneAbbr"),s("zz",0,0,"zoneName");u=$.prototype;function hn(e){return e;}u.add=Fe,u.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<s.length;i+=1)n=n||c(e,s[i]);return t&&n;}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||R(),n=Gt(e,this).startOf("day"),n=_.calendarFormat(this,n)||"sameElse",t=t&&(a(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,R(e)));},u.clone=function(){return new $(this);},u.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=Gt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=o(t)){case "year":r=Qt(this,s)/12;break;case "month":r=Qt(this,s);break;case "quarter":r=Qt(this,s)/3;break;case "second":r=(this-s)/1e3;break;case "minute":r=(this-s)/6e4;break;case "hour":r=(this-s)/36e5;break;case "day":r=(this-s-i)/864e5;break;case "week":r=(this-s-i)/6048e5;break;default:r=this-s;}return n?r:m(r);},u.endOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case "year":t=n(this.year()+1,0,1)-1;break;case "quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,264 bytes, line 238
238case "month":t=n(this.year(),this.month()+1,1)-1;break;case "week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":t=n(this.year(),this.month(),this.date()+1)-1;break;case "hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case "minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case "second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1;break;}this._d.setTime(t),_.updateOffset(this,!0);}return this;},u.format=function(e){return e=e||(this.isUtc()?_.defaultFormatUtc:_.defaultFormat),e=re(this,e),this.localeData().postformat(e);},u.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},u.fromNow=function(e){return this.from(R(),e);},u.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||R(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate();},u.toNow=function(e){return this.to(R(),e);},u.get=function(e){return a(this[e=o(e)])?this[e]():this;},u.invalidAt=function(){return p(this).overflow;},u.isAfter=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf());},u.isBefore=function(e,t){return e=k(e)?e:R(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf());},u.isBetween=function(e,t,n,s){return e=k(e)?e:R(e),t=k(t)?t:R(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(s=s||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n));},u.isSame=function(e,t){var e=k(e)?e:R(e);return !(!this.isValid()||!e.isValid())&&("millisecond"===(t=o(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()));},u.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t);},u.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t);},u.isValid=function(){return A(this);},u.lang=Ke,u.locale=Xt,u.localeData=Kt,u.max=_e,u.min=me,u.parsingFlags=function(){return E({},p(this));},u.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:le[t]});return n.sort(function(e,t){return e.priority-t.priority;}),n;}(e=ue(e)),s=n.length,i=0;i<s;i++)this[n[i].unit](e[n[i].unit]);else{if(a(this[e=o(e)]))return this[e](t);}return this;},u.startOf=function(e){var t,n;if(void 0!==(e=o(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?sn:nn,e){case "year":t=n(this.year(),0,1);break;case "quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case "month":t=n(this.year(),this.month(),1);break;case "week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case "isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":t=n(this.year(),this.month(),this.date());break;case "hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case "minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case "second":t=this._d.valueOf(),t-=tn(t,1e3);break;}this._d.setTime(t),_.updateOffset(this,!0);}return this;},u.subtract=Qe,u.toArray=function(){var e=this;return [e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()];},u.toObject=function(){var e=this;return {years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()};},u.toDate=function(){return new Date(this.valueOf());},u.toISOString=function(e){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?re(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):a(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",re(t,"Z")):re(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null;},u.inspect=function(){var e,t,n;
vendor: 16,384 bytes, line 238
238return this.isValid()?(t="moment",e="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+(e+'[")]'))):"moment.invalid(/* "+this._i+" */)";},"undefined"!=typeof Symbol&&null!=Symbol.for&&(u[Symbol.for("nodejs.util.inspect.custom")]=function(){return "Moment<"+this.format()+">";}),u.toJSON=function(){return this.isValid()?this.toISOString():null;},u.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");},u.unix=function(){return Math.floor(this.valueOf()/1e3);},u.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0);},u.creationData=function(){return {input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict};},u.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name;}return "";},u.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow;}return "";},u.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;n<s;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr;}return "";},u.eraYear=function(){for(var e,t,n=this.localeData().eras(),s=0,i=n.length;s<i;++s)if(e=n[s].since<=n[s].until?1:-1,t=this.clone().startOf("day").valueOf(),n[s].since<=t&&t<=n[s].until||n[s].until<=t&&t<=n[s].since)return (this.year()-_(n[s].since).year())*e+n[s].offset;return this.year();},u.year=Pe,u.isLeapYear=function(){return be(this.year());},u.weekYear=function(e){return un.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy);},u.isoWeekYear=function(e){return un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4);},u.quarter=u.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3);},u.month=Ie,u.daysInMonth=function(){return He(this.year(),this.month());},u.week=u.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d");},u.isoWeek=u.isoWeeks=function(e){var t=Be(this,1,4).week;return null==e?t:this.add(7*(e-t),"d");},u.weeksInYear=function(){var e=this.localeData()._week;return N(this.year(),e.dow,e.doy);},u.weeksInWeekYear=function(){var e=this.localeData()._week;return N(this.weekYear(),e.dow,e.doy);},u.isoWeeksInYear=function(){return N(this.year(),1,4);},u.isoWeeksInISOWeekYear=function(){return N(this.isoWeekYear(),1,4);},u.date=ge,u.day=u.days=function(e){var t,n,s;return this.isValid()?(t=Ce(this,"Day"),null!=e?(n=e,s=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof (n=s.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN;},u.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN;},u.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN;},u.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d");},u.hour=u.hours=i,u.minute=u.minutes=ce,u.second=u.seconds=we,u.millisecond=u.milliseconds=fe,u.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Et(this);if("string"==typeof e){if(null===(e=Vt(ve,e)))return this;}else Math.abs(e)<16&&!n&&(e*=60);return !this._isUTC&&t&&(s=Et(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?$t(this,C(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,_.updateOffset(this,!0),this._changeInProgress=null)),this;},u.utc=function(e){return this.utcOffset(0,e);},u.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e)&&this.subtract(Et(this),"m"),this;},u.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Vt(Me,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this;},u.hasAlignedHourOffset=function(e){return !!this.isValid()&&(e=e?R(e).utcOffset():0,(this.utcOffset()-e)%60==0);},u.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset();},u.isLocal=function(){return !!this.isValid()&&!this._isUTC;},u.isUtcOffset=function(){return !!this.isValid()&&this._isUTC;},u.isUtc=At,u.isUTC=At,u.zoneAbbr=function(){return this._isUTC?"UTC":"";},u.zoneName=function(){return this._isUTC?"Coordinated Universal Time":"";},u.dates=e("dates accessor is deprecated. Use date instead.",ge),u.months=e("months accessor is deprecated. Use month instead",Ie),u.years=e("years accessor is deprecated. Use year instead",Pe),u.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset();}),u.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return g(this._isDSTShifted)&&(q(e={},this),(e=Nt(e))._a?(t=(e._isUTC?l:R)(e._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var s=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0,a=0;a<s;a++)(n&&e[a]!==t[a]||!n&&M(e[a])!==M(t[a]))&&r++;return r+i;}(e._a,t.toArray())):this._isDSTShifted=!1),this._isDSTShifted;});d=K.prototype;function cn(e,t,n,s){var i=P(),s=l().set(s,t);return i[n](s,e);}function fn(e,t,n){if(w(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");for(var s=[],i=0;i<12;i++)s[i]=cn(e,i,n,"month");return s;}function mn(e,t,n,s){t=("boolean"==typeof e?w(t)&&(n=t,t=void 0):(t=e,e=!1,w(n=t)&&(n=t,t=void 0)),t||"");var i,r=P(),a=e?r._week.dow:0,o=[];if(null!=n)return cn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=cn(t,(i+a)%7,s,"day");return o;}d.calendar=function(e,t,n){return a(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e;},d.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(te).map(function(e){return "MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e;}).join(""),this._longDateFormat[e]);},d.invalidDate=function(){return this._invalidDate;},d.ordinal=function(e){return this._ordinal.replace("%d",e);},d.preparse=hn,d.postformat=hn,d.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return a(i)?i(e,t,n,s):i.replace(/%d/i,e);},d.pastFuture=function(e,t){return a(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t);},d.set=function(e){var t,n;for(n in e)c(e,n)&&(a(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source);},d.eras=function(e,t){for(var n,s=this._eras||P("en")._eras,i=0,r=s.length;i<r;++i){switch(typeof s[i].since){case "string":n=_(s[i].since).startOf("day"),s[i].since=n.valueOf();break;}switch(typeof s[i].until){case "undefined":s[i].until=1/0;break;case "string":n=_(s[i].until).startOf("day").valueOf(),s[i].until=n.valueOf();break;}}return s;},d.erasParse=function(e,t,n){var s,i,r,a,o,u=this.eras();for(e=e.toUpperCase(),s=0,i=u.length;s<i;++s)if(r=u[s].name.toUpperCase(),a=u[s].abbr.toUpperCase(),o=u[s].narrow.toUpperCase(),n)switch(t){case "N":case "NN":case "NNN":if(a===e)return u[s];break;case "NNNN":if(r===e)return u[s];break;case "NNNNN":if(o===e)return u[s];break;}else{if(0<=[r,a,o].indexOf(e))return u[s];}},d.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?_(e.since).year():_(e.since).year()+(t-e.offset)*n;},d.erasAbbrRegex=function(e){return c(this,"_erasAbbrRegex")||an.call(this),e?this._erasAbbrRegex:this._erasRegex;},d.erasNameRegex=function(e){return c(this,"_erasNameRegex")||an.call(this),e?this._erasNameRegex:this._erasRegex;},d.erasNarrowRegex=function(e){return c(this,"_erasNarrowRegex")||an.call(this),e?this._erasNarrowRegex:this._erasRegex;},d.months=function(e,t){return e?(y(this._months)?this._months:this._months[(this._months.isFormat||Ve).test(t)?"format":"standalone"])[e.month()]:y(this._months)?this._months:this._months.standalone;},d.monthsShort=function(e,t){return e?(y(this._monthsShort)?this._monthsShort:this._monthsShort[Ve.test(t)?"format":"standalone"])[e.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;},d.monthsParse=function(e,t,n){var s,i;if(this._monthsParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=l([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=x.call(this._shortMonthsParse,e))||-1!==(i=x.call(this._longMonthsParse,e))?i:null:-1!==(i=x.call(this._longMonthsParse,e))||-1!==(i=x.call(this._shortMonthsParse,e))?i:null;}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=l([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s;}},d.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex);},d.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex);},d.week=function(e){return Be(e,this._week.dow,this._week.doy).week;},d.firstDayOfYear=function(){return this._week.doy;},d.firstDayOfWeek=function(){return this._week.dow;},d.weekdays=function(e,t){return t=y(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Je(t,this._week.dow):e?t[e.day()]:t;},d.weekdaysMin=function(e){return !0===e?Je(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin;},d.weekdaysShort=function(e){return !0===e?Je(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort;},d.weekdaysParse=function(e,t,n){var s,i;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=l([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=x.call(this._shortWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._minWeekdaysParse,e))?i:null:-1!==(i=x.call(this._minWeekdaysParse,e))||-1!==(i=x.call(this._weekdaysParse,e))||-1!==(i=x.call(this._shortWeekdaysParse,e))?i:null;}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=l([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s;}},d.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex);},d.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex);},d.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex);},d.isPM=function(e){return "p"===(e+"").toLowerCase().charAt(0);},d.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM";},ft("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(e){var t=e%10;return e+(1===M(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th");}}),_.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),_.langData=e("moment.langData is deprecated. Use moment.localeData instead.",P);var _n=Math.abs;function yn(e,t,n,s){t=C(t,n);return e._milliseconds+=s*t._milliseconds,e._days+=s*t._days,e._months+=s*t._months,e._bubble();}function gn(e){return e<0?Math.floor(e):Math.ceil(e);}function wn(e){return 4800*e/146097;}function pn(e){return 146097*e/4800;}function kn(e){return function(){return this.as(e);};}de=kn("ms"),t=kn("s"),ye=kn("m"),he=kn("h"),Fe=kn("d"),_e=kn("w"),me=kn("M"),Qe=kn("Q"),i=kn("y"),ce=de;function Mn(e){return function(){return this.isValid()?this._data[e]:NaN;};}var we=Mn("milliseconds"),fe=Mn("seconds"),ge=Mn("minutes"),Pe=Mn("hours"),d=Mn("days"),vn=Mn("months"),Dn=Mn("years");var Yn=Math.round,Sn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function On(e,t,n,s){var i=C(e).abs(),r=Yn(i.as("s")),a=Yn(i.as("m")),o=Yn(i.as("h")),u=Yn(i.as("d")),l=Yn(i.as("M")),d=Yn(i.as("w")),i=Yn(i.as("y")),r=(r<=n.ss?["s",r]:r<n.s&&["ss",r])||(a<=1?["m"]:a<n.m&&["mm",a])||(o<=1?["h"]:o<n.h&&["hh",o])||(u<=1?["d"]:u<n.d&&["dd",u]);return (r=(r=null!=n.w?r||(d<=1?["w"]:d<n.w&&["ww",d]):r)||(l<=1?["M"]:l<n.M&&["MM",l])||(i<=1?["y"]:["yy",i]))[2]=t,r[3]=0<+e,r[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s);}.apply(null,r);}var bn=Math.abs;function Tn(e){return (0<e)-(e<0)||+e;}function xn(){var e,t,n,s,i,r,a,o,u,l,d;return this.isValid()?(e=bn(this._milliseconds)/1e3,t=bn(this._days),n=bn(this._months),(o=this.asSeconds())?(s=m(e/60),i=m(s/60),e%=60,s%=60,r=m(n/12),n%=12,a
238=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=Tn(this._months)!==Tn(o)?"-":"",l=Tn(this._days)!==Tn(o)?"-":"",d=Tn(this._milliseconds)!==Tn(o)?"-":"",(o<0?"-":"")+"P"+(r?u+r+"Y":"")+(n?u+n+"M":"")+(t?l+t+"D":"")+(i||s||e?"T":"")+(i?d+i+"H":"")+(s?d+s+"M":"")+(e?d+a+"S":"")):"P0D"):this.localeData().invalidDate();}var U=Ct.prototype;return U.isValid=function(){return this._isValid;},U.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this;},U.add=function(e,t){return yn(this,e,t,1);},U.subtract=function(e,t){return yn(this,e,t,-1);},U.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=o(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+wn(t),e){case "month":return n;case "quarter":return n/3;case "year":return n/12;}else switch(t=this._days+Math.round(pn(this._months)),e){case "week":return t/7+s/6048e5;case "day":return t+s/864e5;case "hour":return 24*t+s/36e5;case "minute":return 1440*t+s/6e4;case "second":return 86400*t+s/1e3;case "millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e);}},U.asMilliseconds=de,U.asSeconds=t,U.asMinutes=ye,U.asHours=he,U.asDays=Fe,U.asWeeks=_e,U.asMonths=me,U.asQuarters=Qe,U.asYears=i,U.valueOf=ce,U._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,s=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*gn(pn(n)+t),n=t=0),s.milliseconds=e%1e3,e=m(e/1e3),s.seconds=e%60,e=m(e/60),s.minutes=e%60,e=m(e/60),s.hours=e%24,t+=m(e/24),n+=e=m(wn(t)),t-=gn(pn(e)),e=m(n/12),n%=12,s.days=t,s.months=n,s.years=e,this;},U.clone=function(){return C(this);},U.get=function(e){return e=o(e),this.isValid()?this[e+"s"]():NaN;},U.milliseconds=we,U.seconds=fe,U.minutes=ge,U.hours=Pe,U.days=d,U.weeks=function(){return m(this.days()/7);},U.months=vn,U.years=Dn,U.humanize=function(e,t){var n,s;return this.isValid()?(n=!1,s=Sn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(s=Object.assign({},Sn,t),null!=t.s)&&null==t.ss&&(s.ss=t.s-1),e=this.localeData(),t=On(this,!n,s,e),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate();},U.toISOString=xn,U.toString=xn,U.toJSON=xn,U.locale=Xt,U.localeData=Kt,U.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xn),U.lang=Ke,s("X",0,0,"unix"),s("x",0,0,"valueOf"),h("x",ke),h("X",/[+-]?\d+(\.\d{1,3})?/),v("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e));}),v("x",function(e,t,n){n._d=new Date(M(e));}),_.version="2.30.1",H=R,_.fn=u,_.min=function(){return Pt("isBefore",[].slice.call(arguments,0));},_.max=function(){return Pt("isAfter",[].slice.call(arguments,0));},_.now=function(){return Date.now?Date.now():+new Date();},_.utc=l,_.unix=function(e){return R(1e3*e);},_.months=function(e,t){return fn(e,t,"months");},_.isDate=V,_.locale=ft,_.invalid=I,_.duration=C,_.isMoment=k,_.weekdays=function(e,t,n){return mn(e,t,n,"weekdays");},_.parseZone=function(){return R.apply(null,arguments).parseZone();},_.localeData=P,_.isDuration=Ut,_.monthsShort=function(e,t){return fn(e,t,"monthsShort");},_.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin");},_.defineLocale=mt,_.updateLocale=function(e,t){var n,s;return null!=t?(s=ut,null!=W[e]&&null!=W[e].parentLocale?W[e].set(X(W[e]._config,t)):(t=X(s=null!=(n=ct(e))?n._config:s,t),null==n&&(t.abbr=e),(s=new K(t)).parentLocale=W[e],W[e]=s),ft(e)):null!=W[e]&&(null!=W[e].parentLocale?(W[e]=W[e].parentLocale,e===ft()&&ft(e)):null!=W[e]&&delete W[e]),W[e];},_.locales=function(){return ee(W);},_.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort");},_.normalizeUnits=o,_.relativeTimeRounding=function(e){return void 0===e?Yn:"function"==typeof e&&(Yn=e,!0);},_.relativeTimeThreshold=function(e,t){return void 0!==Sn[e]&&(void 0===t?Sn[e]:(Sn[e]=t,"s"===e&&(Sn.ss=t-1),!0));},_.calendarFormat=function(e,t){return (e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse";},_.prototype=u,_.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"},_;});; 239"use strict";function _instanceof(left,right){if(right!=null&&typeof Symbol!=="undefined"&&right[Symbol.hasInstance])return !!right[Symbol.hasInstance](left);else return left instanceof right;}function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")_typeof=function _typeof(obj){return typeof obj;};else _typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};return _typeof(obj);}if(typeof Object.assign!='function')Object.assign=function(target){'use strict';if(target==null)throw new TypeError('Cannot convert undefined or null to object');target=Object(target);for(var index=1;index<arguments.length;index++){var source=arguments[index];if(source!=null)for(var key in source)if(Object.prototype.hasOwnProperty.call(source,key))target[key]=source[key];}return target;};(function(root,factory){if(typeof define==='function'&&define.amd)define(['moment'],function(moment){return factory(moment);});else if(typeof module==='object'&&module.exports){var moment=(typeof window!='undefined'&&typeof window.moment!='undefined')?window.moment:require('moment');module.exports=factory(moment);}else root.Lightpick=factory(root.moment);}(this,function(moment){'use strict';var document=window.document,defaults={field:null,secondField:null,firstDay:1,parentEl:'body',lang:'auto',format:'DD/MM/YYYY',separator:' - ',numberOfMonths:1,numberOfColumns:2,singleDate:true,autoclose:true,repick:false,startDate:null,endD
239ate:null,minDate:null,maxDate:null,disableDates:null,selectForward:false,selectBackward:false,minDays:null,maxDays:null,hoveringTooltip:true,hideOnBodyClick:true,footer:false,presets:[],headerSelect:true,disabledDatesInRange:true,tooltipNights:false,orientation:'auto',disableWeekends:false,dateSelectInput:true,mobilePreventManualInput:true,mobileBrakePoint:1000,inline:false,viewNow:'month',weekdayStyle:'short',preventClick:false,customClass:'',dropdowns:{years:{min:1900,max:null},months:true},locale:{buttons:{prev:'←',next:'→',close:'×',reset:'Reset',apply:'Apply'},tooltip:{one:'day',other:'days'},tooltipOnDisabled:null,pluralize:function(i,locale){if(typeof i==="string")i=parseInt(i,10);if(i===1&&'one' in locale)return locale.one;if('other' in locale)return locale.other;return '';}},onSelect:null,onSelectStart:null,onSelectEnd:null,onOpen:null,onClose:null,onError:null,onMonthsChange:null,onYearsChange:null},PRESETS={today:{label:Drupal.t('Today'),helperText:Drupal.t("Today's entries only"),range:function(){return {start:moment().startOf('day'),end:moment().startOf('day')};}},week:{label:Drupal.t('This week'),helperText:Drupal.t("This week's entries"),range:function(){return {start:moment().startOf('isoWeek'),end:moment().endOf('isoWeek')};}},month:{label:Drupal.t('This month'),helperText:Drupal.t("This calendar month's entries"),range:function(){return {start:moment().startOf('month'),end:moment().endOf('month')};}}},renderTopButtons=function(opts){return '<div class="lightpick__toolbar">'+''+'<button type="button" tabindex="-1" aria-label= "'+Drupal.t('Previous month')+'" class="lightpick__previous-action date-range-input">'+opts.locale.buttons.prev+'</button>'+'<button type="button" tabindex="-1" aria-label= "'+Drupal.t('Next month')+'" class="lightpick__next-action date-range-input">'+opts.locale.buttons.next+'</button>'+(!opts.autoclose&&!opts.inline?'<button type="button" class="lightpick__close-action">'+opts.locale.buttons.close+'</button>':'')+'</div>';},rednerTopYearButtons=function rednerTopYearButtons(opts){return '<div class="lightpick__toolbar">'+'<button type="button" aria-label= "'+Drupal.t('Previous year')+'" class="lightpick__previous-year-action date-range-input">'+opts.locale.buttons.prev+'</button>'+'<button type="button" aria-label= "'+Drupal.t('Next year')+'" class="lightpick__next-year-action date-range-input">'+opts.locale.buttons.next+'</button>'+'</div>';},weekdayName=function(opts,day,weekdayStyle){return new Date(1970,0,day,12,0,0,0).toLocaleString(opts.lang,{weekday:weekdayStyle||opts.weekdayStyle});},renderDay=function(opts,date,dummy,extraClass){if(dummy)return '<div></div>';var date=moment(date),prevMonth=moment(date).subtract(1,'month'),nextMonth=moment(date).add(1,'month');var day={time:moment(date).valueOf(),className:['lightpick__day','is-available']};if(extraClass instanceof Array||Object.prototype.toString.call(extraClass)==='[object Array]'){extraClass=extraClass.filter(function(el){return ['lightpick__day','is-available','is-previous-month','is-next-month'].indexOf(el)>=0;});day.className=day.className.concat(extraClass);}else day.className.push(extraClass);if(opts.disableDates)for(var i=0;i<opts.disableDates.length;i++){if(opts.disableDates[i] instanceof Array||Object.prototype.toString.call(opts.disableDates[i])==='[object Array]'){var _from=moment(opts.disableDates[i][0],opts.format),_to=moment(opts.disableDates[i][1],opts.format);if(_from.isValid()&&_to.isValid()&&date.isBetween(_from,_to,'day','[]'))day.className.push('is-disabled');}else{if(moment(opts.disableDates[i],opts.format).isValid()&&moment(opts.disableDates[i],opts.format).isSame(date,'day'))day.className.push('is-disabled');}if(day.className.indexOf('is-disabled')>=0){if(opts.locale.tooltipOnDisabled&&(!opts.startDate||date.isAfter(opts.startDate)||opts.startDate&&opts.endDate))d
239ay.className.push('disabled-tooltip');if(day.className.indexOf('is-start-date')>=0){this.setStartDate(null);this.setEndDate(null);}else{if(day.className.indexOf('is-end-date')>=0)this.setEndDate(null);}}}if(opts.minDays&&opts.startDate&&!opts.endDate)if(date.isBetween(moment(opts.startDate).subtract(opts.minDays-1,'day'),moment(opts.startDate).add(opts.minDays-1,'day'),'day')){day.className.push('is-disabled');if(opts.selectForward&&date.isSameOrAfter(opts.startDate)){day.className.push('is-forward-selected');day.className.push('is-in-range');}}if(opts.maxDays&&opts.startDate&&!opts.endDate)if(date.isSameOrBefore(moment(opts.startDate).subtract(opts.maxDays,'day'),'day'))day.className.push('is-disabled');else{if(date.isSameOrAfter(moment(opts.startDate).add(opts.maxDays,'day'),'day'))day.className.push('is-disabled');}if(opts.repick&&(opts.minDays||opts.maxDays)&&opts.startDate&&opts.endDate){var tempStartDate=moment(opts.repickTrigger==opts.field?opts.endDate:opts.startDate);if(opts.minDays)if(date.isBetween(moment(tempStartDate).subtract(opts.minDays-1,'day'),moment(tempStartDate).add(opts.minDays-1,'day'),'day'))day.className.push('is-disabled');if(opts.maxDays)if(date.isSameOrBefore(moment(tempStartDate).subtract(opts.maxDays,'day'),'day'))day.className.push('is-disabled');else{if(date.isSameOrAfter(moment(tempStartDate).add(opts.maxDays,'day'),'day'))day.className.push('is-disabled');}}if(date.isSame(new Date(),'day'))day.className.push('is-today');if(date.isSame(opts.startDate,'day'))day.className.push('is-start-date');if(date.isSame(opts.endDate,'day'))day.className.push('is-end-date');
239if(opts.startDate&&opts.endDate&&date.isBetween(opts.startDate,opts.endDate,'day','[]'))day.className.push('is-in-range');if(moment().isSame(date,'month')){}else if(prevMonth.isSame(date,'month'))day.className.push('is-previous-month');else{if(nextMonth.isSame(date,'month'))day.className.push('is-next-month');}if(opts.minDate&&date.isBefore(opts.minDate,'day'))day.className.push('is-disabled');if(opts.maxDate&&date.isAfter(opts.maxDate,'day'))day.className.push('is-disabled');if(opts.selectForward&&!opts.singleDate&&opts.startDate&&!opts.endDate&&date.isBefore(opts.startDate,'day'))day.className.push('is-disabled');if(opts.selectBackward&&!opts.singleDate&&opts.startDate&&!opts.endDate&&date.isAfter(opts.startDate,'day'))day.className.push('is-disabled');if(opts.disableWeekends&&(date.isoWeekday()==6||date.isoWeekday()==7))day.className.push('is-disabled');day.className=day.className.filter(function(value,index,self){return self.indexOf(value)===index;});if(day.className.indexOf('is-disabled')>=0&&day.className.indexOf('is-available')>=0)day.className.splice(day.className.indexOf('is-available'),1);var div=document.createElement('div');div.className=day.className.join(' ');div.innerHTML=date.get('date');div.setAttribute('data-time',day.time);return div.outerHTML;},renderMonthsList=function(date,opts,selectable){var d=moment(date);if(selectable){var select=document.createElement('select');for(var idx=0;idx<12;idx++){d.set('month',idx);var option=document.createElement('option');option.value=d.toDate().getMonth();option.text=d.toDate().toLocaleString(opts.lang,{month:'long'});if(idx===date.toDate().getMonth())option.setAttribute('selected','selected');select.appendChild(option);}select.className='lightpick__select lightpick__select-months';select.dir='rtl';if(!opts.dropdowns||!opts.dropdowns.months)select.disabled=true;return select.outerHTML;}else{var monthsWrap=document.createElement('div');monthsWrap.classList.add('moths-list');for(var idx=0;idx<12;idx++){d.set('month',idx);var month=document.createElement('div');month.classList.add('lightpick__moth-single');month.setAttribute('month',idx);month.innerText=d.toDate().toLocaleString(opts.lang,{month:'long'});if(idx===date.toDate().getMonth()-1)month.classList.add('selected');monthsWrap.appendChild(month);}return monthsWrap.outerHTML;}},renderYearsList=function(date,opts){var d=moment(date),select=document.createElement('select'),years=opts.dropdowns&&opts.dropdowns.years?opts.dropdowns.years:null,minYear=years&&years.min?years.min:1900,maxYear=years&&years.max?years.max:Number.parseInt(moment().format('YYYY'));if(Number.parseInt(date.format('YYYY'))<minYear)minYear=Number.parseInt(date.format('YYYY'));if(Number.parseInt(date.format('YYYY'))>maxYear)maxYear=Number.parseInt(date.format('YYYY'));for(var idx=minYear;idx<=maxYear;idx++){d.set('year',idx);var option=document.createElement('option');option.value=d.toDate().getFullYear();option.text=d.toDate().getFullYear();if(idx===date.toDate().getFullYear())option.setAttribute('selected','selected');select.appendChild(option);}select.className='lightpick__select lightpick__select-years';if(!opts.dropdowns||!opts.dropdowns.years)select.disabled=true;return select.outerHTML;},renderCalendar=function(el,opts){var html='',monthDate=moment(opts.calendar[0]);for(var i=0;i<opts.numberOfMonths;i++){var day=moment(monthDate);html+='<section class="lightpick__month" '+(opts.viewNow=='year'?'style="display: none"':'')+'>';html+='<header class="lightpick__month-title-bar">';html+='<div class="lightpick__month-title">'+(opts.dateSelectInput?renderMonthsList(day,opts,true)+renderYearsList(day,opts):day.toDate().toLocaleString(opts.lang,{month:'long'})+' '+day.toDate().getFullYear())+'</div>';
239if(opts.numberOfMonths===1)html+=renderTopButtons(opts,'days');html+='</header>';html+='<div class="lightpick__days-of-the-week">';for(var w=opts.firstDay+4;w<7+opts.firstDay+4;++w)html+='<div class="lightpick__day-of-the-week" title="'+weekdayName(opts,w,'long')+'">'+weekdayName(opts,w)+'</div>';html+='</div>';html+='<div class="lightpick__days">';if(day.isoWeekday()!==opts.firstDay){var prevDays=day.isoWeekday()-opts.firstDay>0?day.isoWeekday()-opts.firstDay:day.isoWeekday(),prevMonth=moment(day).subtract(prevDays,'day'),daysInMonth=prevMonth.daysInMonth();for(var d=prevMonth.get('date');d<=daysInMonth;d++){html+=renderDay(opts,prevMonth,i>0,'is-previous-month');prevMonth.add(1,'day');}}var daysInMonth=day.daysInMonth(),today=new Date();for(var d=0;d<daysInMonth;d++){html+=renderDay(opts,day);day.add(1,'day');}var nextMonth=moment(day),nextDays=7-nextMonth.isoWeekday()+opts.firstDay;if(nextDays<7)for(var d=nextMonth.get('date');d<=nextDays;d++){html+=renderDay(opts,nextMonth,i<opts.numberOfMonths-1,'is-next-month');nextMonth.add(1,'day');}html+='</div>';html+='</section>';monthDate.add(1,'month');html+='<section class="lightpick__year" '+(opts.viewNow=='month'?'style="display: none"':'')+'>';html+='<header class="lightpick__year-title-bar">'+rednerTopYearButtons(opts)+day.toDate().getFullYear()+'</header>';html+=renderMonthsList(day,opts);html+='</section>';}opts.calendar[1]=moment(monthDate);el.querySelector('.lightpick__months').innerHTML=html;},updateDates=function(el,opts){var days=el.querySelectorAll('.lightpick__day');[].forEach.call(days,function(day){day.outerHTML=renderDay(opts,parseInt(day.getAttribute('data-time')),false,day.className.split(' '));});checkDisabledDatesInRange(el,opts);},updatePresets=function(el,opts){el.querySelectorAll('.lightpick__preset-action').forEach(function(btn){var key=btn.getAttribute('data-preset');var preset=PRESETS[key];var range=preset?preset.range():null;var isActive=range&&opts.startDate&&opts.endDate&&opts.startDate.isSame(range.start,'day')&&opts.endDate.isSame(range.end,'day');btn.classList.toggle('active',isActive);});},checkDisabledDatesInRange=function(el,opts){if(opts.disabledDatesInRange||!opts.startDate||opts.endDate||!opts.disableDates)return;var days=el.querySelectorAll('.lightpick__day'),disabledArray=opts.disableDates.map(function(entry){return entry instanceof Array||Object.prototype.toString.call(entry)==='[object Array]'?entry[0]:entry;}),closestPrev=moment(disabledArray.filter(function(d){return moment(d).isBefore(opts.startDate);}).sort(function(a,b){return moment(b).isAfter(moment(a));})[0]),closestNext=moment(disabledArray.filter(function(d){return moment(d).isAfter(opts.startDate);}).sort(function(a,b){return moment(a).isAfter(moment(b));})[0]);[].forEach.call(days,function(dayCell){var day=moment(parseInt(dayCell.getAttribute('data-time')));if((closestPrev&&day.isBefore(closestPrev)&&opts.startDate.isAfter(closestPrev))||(closestNext&&day.isAfter(closestNext)&&closestNext.isAfter(opts.startDate))){dayCell.classList.remove('is-available');dayCell.classList.add('is-disabled');}});},addMobileChecker=function addMobileChecker(opts){var resizeTimer=null;function readonlyState(){if(window.innerWidth<opts.mobileBrakePoint){if(opts.field)opts.field.setAttribute('readonly','readonly');if(opts.secondField)opts.secondField.setAttribute('readonly','readonly');}else{if(opts.field)opts.field.removeAttribute('readonly');if(opts.secondField)opts.secondField.removeAttribute('readonly');}}readonlyState();window.addEventListener('resize',function(e){if(resizeTimer!=null)window.clearTimeout(resizeTimer);resizeTimer=window.setTimeout(function(){readonlyState();},200);});},getScrollParent=function(node){if(node==null)return null;if(node.scrollHeight>node.clientHeight+20)return node;else return getScrollParent(node.parentNode);},Lightpick=function(options){var self=this,opts=self.config(options);self.el=document.createElement('section');self.el.className='lightpick lightpick--'+opts.numberOfColumns+'-columns is-hidden '+opts.customClass+' ';if(opts.inline)self.el.className+=' lightpick--inlined';var html='<div class="lightpick__inner">'+(opts.numberOfMonths>1?renderTopButtons(opts,'days'):'')+'<div class="lightpick__months"></div>'+'<div class="lightpick__tooltip" style="visibility: hidden"></div>';if(opts.footer){html+='<div class="lightpick__footer">';if(opts.footer===true){html+='<button type="button" class="lightpick__reset-action">'+opts.locale.buttons.reset+'</button>';html+='<div class="lightpick__footer-message"></div>';html+='<button type="button" class="lightpick__apply-action">'+opts.locale.buttons.apply+'</button>';}else if(opts.footer=='switcher'){html+='<div class="lightpick-swithcher-buttons">';html+='<button class="active days-view-button btn" tabindex="-1">'+opts.locale.buttons.daysList+'</button>';html+='<button class="months-view-button btn" tabindex="-1">'+opts.locale.buttons.monthsList+'</button>';html+='</div>';}else if(opts.footer==='presets'){html+='<div class="lightpick-preset-buttons">';
239opts.presets.forEach(function(key){var preset=PRESETS[key];if(!preset)return;html+='<button type="button" class="lightpick__preset-action btn" tabindex="-1" data-toggle="tooltip"'+' data-original-title="'+(preset.helperText)+'"'+' data-preset="'+key+'">'+preset.label+'</button>';});html+='</div>';}else html+=opts.footer;html+='</div>';}html+='</div>';self.el.innerHTML=html;if(opts.parentEl instanceof Node)opts.parentEl.appendChild(self.el);else if(opts.parentEl==='body'&&opts.inline)opts.field.parentNode.appendChild(self.el);else document.querySelector(opts.parentEl).appendChild(self.el);self._onMouseDown=function(e){if(!self.isShowing)return;e=e||window.event;var target=e.target||e.srcElement;if(!target)return;e.stopPropagation();if(!target.classList.contains('lightpick__select'))e.preventDefault();var opts=self._opts;if(target.classList.contains('lightpick__day')&&target.classList.contains('is-available')){var day=moment(parseInt(target.getAttribute('data-time')));if(!opts.disabledDatesInRange&&opts.disableDates&&opts.startDate){var start=day.isAfter(opts.startDate)?moment(opts.startDate):moment(day),end=day.isAfter(opts.startDate)?moment(day):moment(opts.startDate),isInvalidRange=opts.disableDates.filter(function(d){if(d instanceof Array||Object.prototype.toString.call(d)==='[object Array]'){var _from=moment(d[0]),_to=moment(d[1]);return _from.isValid()&&_to.isValid()&&(_from.isBetween(start,end,'day','[]')||_to.isBetween(start,end,'day','[]'));}return moment(d).isBetween(start,end,'day','[]');});if(isInvalidRange.length){self.setStartDate(null);self.setEndDate(null);target.dispatchEvent(new Event('mousedown'));self.el.querySelector('.lightpick__tooltip').style.visibility='hidden';updateDates(self.el,opts);return;}}if(opts.singleDate||(!opts.startDate&&!opts.endDate)||(opts.startDate&&opts.endDate))if(opts.repick&&opts.startDate&&opts.endDate){if(opts.repickTrigger===opts.field){self.setStartDate(day);target.classList.add('is-start-date');}else{self.setEndDate(day);target.classList.add('is-end-date');}if(opts.startDate.isAfter(opts.endDate))self.swapDate();if(opts.autoclose)setTimeout(function(){self.hide();},100);}else{self.setStartDate(day);self.setEndDate(null);target.classList.add('is-start-date');if(opts.singleDate&&opts.autoclose)setTimeout(function(){self.hide();},100);else{if(!opts.singleDate||opts.inline||!opts.autoclose)updateDates(self.el,opts);}}else{if(opts.startDate&&!opts.endDate){self.setEndDate(day);if(opts.startDate.isAfter(opts.endDate))self.swapDate();target.classList.add('is-end-date');
239if(opts.autoclose)setTimeout(function(){self.hide();},100);else updateDates(self.el,opts);}}if(!opts.disabledDatesInRange)if(self.el.querySelectorAll('.lightpick__day.is-available').length===0){self.setStartDate(null);updateDates(self.el,opts);if(opts.footer)if(typeof self._opts.onError==='function')self._opts.onError.call(self,'Invalid range');else{var footerMessage=self.el.querySelector('.lightpick__footer-message');if(footerMessage){footerMessage.innerHTML=opts.locale.not_allowed_range;setTimeout(function(){footerMessage.innerHTML='';},3000);}}}}else if(target.classList.contains('lightpick__previous-action'))self.prevMonth();else if(target.classList.contains('lightpick__next-action'))self.nextMonth();else if(target.classList.contains('lightpick__close-action')||target.classList.contains('lightpick__apply-action'))self.hide();else if(target.classList.contains('lightpick__reset-action'))self.reset();else if(target.classList.contains('lightpick__moth-single')){self.switchView('month');self.gotoMonth(parseInt(target.getAttribute('month')));}else if(target.classList.contains('lightpick__previous-year-action'))self.prevYear();else if(target.classList.contains('lightpick__next-year-action'))self.nextYear();else if(target.classList.contains('days-view-button'))self.switchView('month');else if(target.classList.contains('months-view-button'))self.switchView('year');else{if(target.classList.contains('lightpick__preset-action'))self.switchPreset(target);}var lightpickBtns=["lightpick__next-action","lightpick__previous-action","lightpick__previous-year-action","lightpick__next-year-action"];lightpickBtns.forEach(function(item){if(target.classList.contains(item))jQuery('.'+item).focus();});};self._onMouseEnter=function(e){if(!self.isShowing)return;e=e||window.event;var target=e.target||e.srcElement;if(!target)return;var opts=self._opts;if(target.classList.contains('lightpick__day')&&target.classList.contains('disabled-tooltip')&&opts.locale.tooltipOnDisabled){self.showTooltip(target,opts.locale.tooltipOnDisabled);return;}else self.hideTooltip();if(opts.singleDate||(!opts.startDate&&!opts.endDate))return;if(!target.classList.contains('lightpick__day')&&!target.classList.contains('is-available'))return;if((opts.startDate&&!opts.endDate)||opts.repick){var hoverDate=moment(parseInt(target.getAttribute('data-time')));if(!hoverDate.isValid())return;var startDate=(opts.startDate&&!opts.endDate)||(opts.repick&&opts.repickTrigger===opts.secondField)?opts.startDate:opts.endDate;var days=self.el.querySelectorAll('.lightpick__day');[].forEach.call(days,function(day){var dt=moment(parseInt(day.getAttribute('data-time')));day.classList.remove('is-flipped');
239if(dt.isValid()&&dt.isSameOrAfter(startDate,'day')&&dt.isSameOrBefore(hoverDate,'day')){day.classList.add('is-in-range');if(opts.repickTrigger===opts.field&&dt.isSameOrAfter(opts.endDate))day.classList.add('is-flipped');}else if(dt.isValid()&&dt.isSameOrAfter(hoverDate,'day')&&dt.isSameOrBefore(startDate,'day')){day.classList.add('is-in-range');if(((opts.startDate&&!opts.endDate)||opts.repickTrigger===opts.secondField)&&dt.isSameOrBefore(opts.startDate))day.classList.add('is-flipped');}else day.classList.remove('is-in-range');if(opts.startDate&&opts.endDate&&opts.repick&&opts.repickTrigger===opts.field)day.classList.remove('is-start-date');else day.classList.remove('is-end-date');});if(opts.hoveringTooltip){days=Math.abs(hoverDate.isAfter(startDate)?hoverDate.diff(startDate,'day'):startDate.diff(hoverDate,'day'));if(!opts.tooltipNights)days+=1;var tooltip=self.el.querySelector('.lightpick__tooltip');if(days>0&&!target.classList.contains('is-disabled')){var pluralText='';if(typeof opts.locale.pluralize==='function')pluralText=opts.locale.pluralize.call(self,days,opts.locale.tooltip);self.showTooltip(target,days+' '+pluralText);}else self.hideTooltip();}if(opts.startDate&&opts.endDate&&opts.repick&&opts.repickTrigger===opts.field)target.classList.add('is-start-date');else target.classList.add('is-end-date');}};self._onChange=function(e){e=e||window.event;var target=e.target||e.srcElement;if(!target)return;if(target.classList.contains('lightpick__select-months')){if(typeof self._opts.onMonthsChange==='function')self._opts.onMonthsChange.call(this,target.value);self.gotoMonth(target.value);}else{if(target.classList.contains('lightpick__select-years')){if(typeof self._opts.onYearsChange==='function')self._opts.onYearsChange.call(this,target.value);self.gotoYear(target.value);}}};self._onInputChange=function(e){var target=e.target||e.srcElement;if(self._opts.singleDate)if(!self._opts.autoclose)self.gotoDate(opts.field.value);self.syncFields();if(!self.isShowing)self.show();};self._onInputFocus=function(e){var target=e.target||e.srcElement;self.show(target);};self._onInputClick=function(e){var target=e.target||e.srcElement;self.show(target);};self._onClick=function(e){e=e||window.event;var target=e.target||e.srcElement,parentEl=target;if(!target)return;if(target.classList.contains('days-view-button')||target.classList.contains('months-view-button'))e.preventDefault();do if((parentEl.classList&&parentEl.classList.contains('lightpick'))||parentEl===opts.field||(opts.secondField&&parentEl===opts.secondField))return;while((parentEl=parentEl.parentNode));if(self.isShowing&&opts.hideOnBodyClick&&target!==opts.field&&parentEl!==opts.field)self.hide();};self._onKeydown=function(e){if(e.key==='Escape'){e.preventDefault();self.hide();}};self.showTooltip=function(target,text){var tooltip=self.el.querySelector('.lightpick__tooltip');var hasParentEl=self.el.classList.contains('lightpick--inlined'),dayBounding=target.getBoundingClientRect(),pickerBouding=hasParentEl?self.el.parentNode.getBoundingClientRect():self.el.getBoundingClientRect(),_left=(dayBounding.left-pickerBouding.left)+(dayBounding.width/2),_top=dayBounding.top-pickerBouding.top;tooltip.style.visibility='visible';tooltip.textContent=text;var tooltipBounding=tooltip.getBoundingClientRect();_top-=tooltipBounding.height;_left-=(tooltipBounding.width/2);setTimeout(function(){tooltip.style.top=_top+'px';tooltip.style.left=_left+'px';},10);};self.hideTooltip=function(){var tooltip=self.el.querySelector('.lightpick__tooltip');tooltip.style.visibility='hidden';};self.el.addEventListener('mousedown',self._onMouseDown,true);self.el.addEventListener('mouseenter',self._onMouseEnter,true);self.el.addEventListener('touchend',self._onMouseDown,true);self.el.addEventListener('change',self._onChange,true);if(opts.inline)self.show();else self.hide();opts.field.addEventListener('change',self._onInputChange);opts.field.addEventListener('click',self._onInputClick);opts.field.addEventListener('focus',self._onInputFocus);if(opts.secondField){opts.secondField.addEventListener('change',self._onInputChange);opts.secondField.addEventListener('click',self._onInputClick);opts.secondField.addEventListener('focus',self._onInputFocus);}self.switchView=function(view){self._opts.viewNow=view;self.el.getElementsByClassName(self._opts.viewNow=='month'?'lightpick__month':'lightpick__year')[0].style.display='block';self.el.getElementsByClassName(self._opts.viewNow=='month'?'lightpick__year':'lightpick__month')[0].style.display='none';self.el.getElementsByClassName(self._opts.viewNow=='month'?'days-view-button':'months-view-button')[0].classList.add('active');self.el.getElementsByClassName(self._opts.viewNow=='month'?'months-view-button':'days-view-button')[0].classList.remove('active');};self.switchPreset=function(target){var preset=PRESETS[target.getAttribute('data-preset')];if(!preset)return;var range=preset.range();target.classList.add('active');self.setDateRange(range.start,range.end);if(opts.autoclose)setTimeout(function(){self.hide();},100);};};Lightpick.prototype={config:function(options){var opts=Object.assign({},defaults,options);opts.field=(opts.field&&opts.field.nodeName)?opts.field:null;opts.calendar=[moment().set('date',1)];if(opts.numberOfMonths===1&&opts.numberOfColumns>1)opts.numberOfColumns=1;if(opts.mobilePreventManualInput)addMobileChecker(opts);opts.minDate=opts.minDate&&moment(opts.minDate,opts.format).isValid()?moment(opts.minDate,opts.format):null;opts.maxDate=opts.maxDate&&moment(opts.maxDate,opts.format).isValid()?moment(opts.maxDate,opts.format):null;if(opts.lang==='auto'){var browserLang=navigator.language||navigator.userLanguage;if(browserLang)opts.lang=browserLang;else opts.lang='en-US';}if(opts.secondField&&opts.singleDate)opts.singleDate=false;if(opts.hoveringTooltip&&opts.singleDate)opts.hoveringTooltip=false;if(Object.prototype.toString.call(options.locale)==='[object Object]')opts.locale=Object.assign({},defaults.locale,options.locale);if(window.innerWidth<480&&opts.numberOfMonths>1){opts.numberOfMonths=1;opts.numberOfColumns=1;}if(opts.repick&&!opts.secondField)opts.repick=false;if(opts.inline){opts.autoclose=false;opts.hideOnBodyClick=false;}this._opts=Object.assign({},opts);this.syncFields();this.setStartDate(this._opts.startDate,true);this.setEndDate(this._opts.endDate,true);return this._opts;},syncFields:function(){if(this._opts.singleDate||this._opts.secondField){if(moment(this._opts.field.value,this._opts.format).isValid())this._opts.startDate=moment(this._opts.field.value,this._opts.format);if(this._opts.secondField&&moment(this._opts.secondField.value,this._opts.format).isValid())this._opts.endDate=moment(this._opts.secondField.value,this._opts.format);}else{var dates=this._opts.field.value.split(this._opts.separator);if(dates.length===2){if(moment(dates[0],this._opts.format).isValid())this._opts.startDate=moment(dates[0],this._opts.format);if(moment(dates[1],this._opts.format).isValid())this._opts.endDate=moment(dates[1],this._opts.format);}}},swapDate:function(){var tmp=moment(this._opts.startDate);this.setDateRange(this._opts.endDate,tmp);},gotoToday:function(){this.gotoDate(new Date());},gotoDate:function(date){var date=moment(date,this._opts.format);if(!date.isValid())date=moment();date.set('date',1);this._opts.calendar=[moment(date)];renderCalendar(this.el,this._opts);},gotoMonth:function(month){if(isNaN(month))return;this._opts.calendar[0].set('month',month);renderCalendar(this.el,this._opts);},gotoYear:function(year){if(isNaN(year))return;this._opts.calendar[0].set('year',year);renderCalendar(this.el,this._opts);},prevMonth:function(){this._opts.calendar[0]=moment(this._opts.calendar[0]).subtract(this._opts.numberOfMonths,'month');renderCalendar(this.el,this._opts);checkDisabledDatesInRange(this.el,this._opts);},nextMonth:function(){this._opts.calendar[0]=moment(this._opts.calendar[1]);renderCalendar(this.el,this._opts);checkDisabledDatesInRange(this.el,this._opts);},prevYear:function prevYear(){this._opts.calendar[0]=moment(this._opts.calendar[0]).subtract(12,'month');renderCalendar(this.el,this._opts);},nextYear:function nextYear(){this._opts.calendar[0]=moment(this._opts.calendar[0]).add(12,'month');renderCalendar(this.el,this._opts);},updatePosition:function(){if(this.el.classList.contains('lightpick--inlined'))return;var scrollParent=getScrollParent(this._opts.field);this.el.classList.remove('is-hidden');var scrollParentRect=scrollParent.getBoundingClientRect();var rect=this._opts.field.getBoundingClientRect(),calRect=this.el.getBoundingClientRect(),top=0,left=0;if(scrollParentRect.bottom<rect.bottom+calRect.height||rect.bottom+calRect.height>window.innerHeight){top=-calRect.height;if(rect.top-calRect.height<30||rect.top-calRect.height<scrollParentRect.top+30)top=rect.height;else top=-calRect.height;}else top=rect.height;this.el.classList.add('is-hidden');this.el.style.top=top+'px';this.el.style.left=left+'px';},setStartDate:function(date,preventOnSelect){var dateISO=moment(date,moment.ISO_8601),dateOptFormat=moment(date,this._opts.format);if(!dateISO.isValid()&&!dateOptFormat.isValid()){this._opts.startDate=null;this._opts.field.value='';return;}this._opts.startDate=moment(dateISO.isValid()?dateISO:dateOptFormat);if(this._opts.singleDate||this._opts.secondField)this._opts.field.value=this._opts.startDate.format(this._opts.format);else this._opts.field.value=this._opts.startDate.format(this._opts.format)+this._opts.separator+'...';if(!preventOnSelect&&typeof this._opts.onSelect==='function')this._opts.onSelect.call(this,this.get
239StartDate(),this.getEndDate());if(!preventOnSelect&&!this._opts.singleDate&&typeof this._opts.onSelectStart==='function')this._opts.onSelectStart.call(this,this.getStartDate());},setEndDate:function(date,preventOnSelect){var dateISO=moment(date,moment.ISO_8601),dateOptFormat=moment(date,this._opts.format);if(!dateISO.isValid()&&!dateOptFormat.isValid()){this._opts.endDate=null;if(this._opts.secondField)this._opts.secondField.value='';else{if(!this._opts.singleDate&&this._opts.startDate)this._opts.field.value=this._opts.startDate.format(this._opts.format)+this._opts.separator+'...';}return;}this._opts.endDate=moment(dateISO.isValid()?dateISO:dateOptFormat);if(this._opts.secondField){this._opts.field.value=this._opts.startDate.format(this._opts.format);this._opts.secondField.value=this._opts.endDate.format(this._opts.format);}else this._opts.field.value=this._opts.startDate.format(this._opts.format)+this._opts.separator+this._opts.endDate.format(this._opts.format);if(!preventOnSelect&&typeof this._opts.onSelect==='function')this._opts.onSelect.call(this,this.getStartDate(),this.getEndDate());if(!preventOnSelect&&!this._opts.singleDate&&typeof this._opts.onSelectEnd==='function')this._opts.onSelectEnd.call(this,this.getEndDate());},setDate:function(date,preventOnSelect){if(!this._opts.singleDate)return;this.setStartDate(date,preventOnSelect);if(this.isShowing)updateDates(this.el,this._opts);},setDateRange:function(start,end,preventOnSelect){if(this._opts.singleDate)return;this.setStartDate(start,true);this.setEndDate(end,true);if(this.isShowing)updateDates(this.el,this._opts);if(!preventOnSelect&&typeof this._opts.onSelect==='function')this._opts.onSelect.call(this,this.getStartDate(),this.getEndDate());},setDisableDates:function(dates){this._opts.disableDates=dates;if(this.isShowing)updateDates(this.el,this._opts);},getStartDate:function(){return moment(this._opts.startDate).isValid()?this._opts.startDate.clone():null;},getEndDate:function(){return moment(this._opts.endDate).isValid()?this._opts.endDate.clone():null;},getDate:function(){return moment(this._opts.startDate).isValid()?this._opts.startDate.clone():null;},toString:function(format){if(this._opts.singleDate)return moment(this._opts.startDate).isValid()?this._opts.startDate.format(format):'';if(moment(this._opts.startDate).isValid()&&moment(this._opts.endDate).isValid())return this._opts.startDate.format(format)+this._opts.separator+this._opts.endDate.format(format);if(moment(this._opts.startDate).isValid()&&!moment(this._opts.endDate).isValid())return this._opts.startDate.format(format)+this._opts.separator+'...';if(!moment(this._opts.startDate).isValid()&&moment(this._opts.endDate).isValid())return '...'+this._opts.separator+this._opts.endDate.format(format);return '';},show:function(target){if(!this.isShowing){this.isShowing=true;if(this._opts.repick)this._opts.repickTrigger=target;this.syncFields();if(this._opts.secondField&&this._opts.secondField===target&&this._opts.endDate)this.gotoDate(this._opts.endDate);else this.gotoDate(this._opts.startDate);document.addEventListener('click',this._onClick);document.addEventListener('keydown',this._onKeydown);this.updatePosition();this.el.classList.remove('is-hidden');if(typeof this._opts.onOpen==='function')this._opts.onOpen.call(this);if(document.activeElement&&document.activeElement!=document.body)document.activeElement.blur();if(this._opts.footer==='presets'&&this._opts.presets.length)updatePresets(this.el,this._opts);}},hide:function(){if(this.isShowing){this.isShowing=false;document.removeEventListener('click',this._onClick);document.removeEventListener('keydown',this._onKeydown);this.el.classList.add('is-hidden');this.el.querySelector('.lightpick__tooltip').style.visibility='hidden';if(typeof this._opts.onClose==='function')this._opts.onClose.call(this);}},destroy:function(){var opts=this._opts;this.hide();this.el.removeEventListener('mousedown',self._onMouseDown,true);this.el.removeEventListener('mouseenter',self._onMouseEnter,true);this.el.removeEventListener('touchend',self._onMouseDown,true);this.el.removeEventListener('change',self._onChange,true);opts.field.removeEventListener('change',this._onInputChange);opts.field.removeEventListener('click',this._onInputClick);opts.field.removeEventListener('focus',this._onInputFocus);if(opts.secondField){opts.secondField.removeEventListener('change',this._onInputChange);opts.secondField.removeEventListener('click',this._onInputClick);opts.secondField.removeEventListener('focus',this._onInputFocus);}if(this.el.parentNode)this.el.parentNode.removeChild(this.el);},reset:function(){this.setStartDate(null,true);this.setEndDate(null,true);updateDates(this.el,this._opts);if(typeof this._opts.onSelect==='function')this._opts.onSelect.call(this,this.get
239StartDate(),this.getEndDate());this.el.querySelector('.lightpick__tooltip').style.visibility='hidden';},reloadOptions:function(options){var dropdowns=this._opts.dropdowns;var locale=this._opts.locale;Object.assign(this._opts,this._opts,options);Object.assign(this._opts.dropdowns,dropdowns,options.dropdowns);Object.assign(this._opts.locale,locale,options.locale);}};return Lightpick;}));; 240(function(Drupal,$,window){var elementThatLostFocus=null;$(once('trackFocusOut',document)).on('focusout',function(e){elementThatLostFocus=e.target;});Drupal.behaviors.filterForm={attach:function(context,settings){$(once('myBehavior','.form-type-date-range',context)).each(function(){var that=$(this);var picker=new Lightpick({field:document.querySelector('.form-type-date-range input.min-date'),secondField:document.querySelector('.form-type-date-range input.max-date'),singleDate:false,locale:{buttons:{prev:'',next:''},tooltip:{one:Drupal.t('day'),other:Drupal.t('days')},pluralize:function(i,locale){if(typeof i==='string')i=parseInt(i,10);var lang=$('html').attr('lang');if(lang==='lv'){if(i%10===1&&i%100!==11)return locale.one;return locale.other;}if(i===1&&'one' in locale)return locale.one;if('other' in locale)return locale.other;return '';}},weekdayStyle:'narrow',format:'DD.MM.YYYY.',footer:'presets',presets:['today','week','month'],dateSelectInput:false,parentEl:this,lang:$('html').attr('lang'),onClose:function(date){$("body",context).trigger("pickerclose");$('body').removeClass('date-picker-opened');that.removeClass('focused').trigger('change');},onOpen:function(date){that.addClass('focused');if($('.view-custom-main-filter').length&&!$('.responsive-view-filters .mobile-filter-dropdown-button.open-filters').length)$(".view-custom-main-filter").each(function(){$(this).find('.toggle-is-opened').toggleClass('toggle-is-opened');$(this).find('.filter-toggle-is-opened').toggleClass('filter-toggle-is-opened');});var targetInput=that.find('input.min-date');if(elementThatLostFocus&&containerElement){var comparison=containerElement.compareDocumentPosition(elementThatLostFocus);if(comparison&Node.DOCUMENT_POSITION_PRECEDING)targetInput=that.find('input.max-date');}if(targetInput)setTimeout(function(){$(targetInput).focus();},0);}});setTimeout(function(){$('.clear-option').on('click',function(){picker.reset();});$('.tag-wraper').on('click','.remove-filter[remove="dates"]',function(){picker.reset();});});that.closest('form').find('input[type="text"]').on('keypress',function(e){if(e.which==13)e.preventDefault();});document.addEventListener('focusin',function(){if(document.activeElement.classList.contains('form-submit')||!document.activeElement.classList.contains('date-range-input')||document.activeElement.classList.contains('exposed-form')||document.activeElement.classList.contains('filter-header'))picker.hide();});});$('.picker-footer a.btn-secondary').on('click',function(event){event.preventDefault();});$('.picker-footer a.btn-primary').on('click',function(event){event.preventDefault();});}};}(Drupal,jQuery,this));;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.