文件操作 - script.min.js
返回文件管理
返回主菜单
删除本文件
文件: /home/moin/htdocs/www.moin.show/wp-content/plugins/erropix-advanced-scripts/assets/js/script.min.js
编辑文件内容
!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";window.Base64={encode:function(t){var n,i,r,o,a,s,l,c="",u=0;for(t=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t}(t);u<t.length;)o=(n=t.charCodeAt(u++))>>2,a=(3&n)<<4|(i=t.charCodeAt(u++))>>4,s=(15&i)<<2|(r=t.charCodeAt(u++))>>6,l=63&r,isNaN(i)?s=l=64:isNaN(r)&&(l=64),c+=e.charAt(o)+e.charAt(a)+e.charAt(s)+e.charAt(l);return c},decode:function(t){var n,i,r,o,a,s,l="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)n=e.indexOf(t.charAt(c++))<<2|(o=e.indexOf(t.charAt(c++)))>>4,i=(15&o)<<4|(a=e.indexOf(t.charAt(c++)))>>2,r=(3&a)<<6|(s=e.indexOf(t.charAt(c++))),l+=String.fromCharCode(n),64!=a&&(l+=String.fromCharCode(i)),64!=s&&(l+=String.fromCharCode(r));return function(e){for(var t="",n=0,i=c1=c2=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),n+=3);return t}(l)}}}(),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.MicroPlugin=t()}(this,(function(){var e={mixin:function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,i,r,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,i=e.length;n<i;n++)"string"==typeof e[n]?a.push(e[n]):(o.plugins.settings[e[n].name]=e[n].options,a.push(e[n].name));else if(e)for(r in e)e.hasOwnProperty(r)&&(o.plugins.settings[r]=e[r],a.push(r));for(;a.length;)o.require(a.shift())},e.prototype.loadPlugin=function(t){var n=this,i=n.plugins,r=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');i.requested[t]=!0,i.loaded[t]=r.fn.apply(n,[n.plugins.settings[t]||{}]),i.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}}},t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Popper={})}(this,(function(e){function t(e){return{width:(e=e.getBoundingClientRect()).width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function n(e){return"[object Window]"!==e.toString()?(e=e.ownerDocument)&&e.defaultView||window:e}function i(e){return{scrollLeft:(e=n(e)).pageXOffset,scrollTop:e.pageYOffset}}function r(e){return e instanceof n(e).Element||e instanceof Element}function o(e){return e instanceof n(e).HTMLElement||e instanceof HTMLElement}function a(e){return e?(e.nodeName||"").toLowerCase():null}function s(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function l(e){return t(s(e)).left+i(e).scrollLeft}function c(e){return n(e).getComputedStyle(e)}function u(e){return e=c(e),/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function d(e,r,c){void 0===c&&(c=!1);var d=s(r);e=t(e);var p=o(r),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(p||!p&&!c)&&(("body"!==a(r)||u(d))&&(f=r!==n(r)&&o(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:i(r)),o(r)?((h=t(r)).x+=r.clientLeft,h.y+=r.clientTop):d&&(h.x=l(d))),{x:e.left+f.scrollLeft-h.x,y:e.top+f.scrollTop-h.y,width:e.width,height:e.height}}function p(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function f(e){return"html"===a(e)?e:e.assignedSlot||e.parentNode||e.host||s(e)}function h(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(a(t))?t.ownerDocument.body:o(t)&&u(t)?t:e(f(t))}(e);e="body"===a(i);var r=n(i);return i=e?[r].concat(r.visualViewport||[],u(i)?i:[]):i,t=t.concat(i),e?t:t.concat(h(f(i)))}function m(e){if(!o(e)||"fixed"===c(e).position)return null;if(e=e.offsetParent){var t=s(e);if("body"===a(e)&&"static"===c(e).position&&"static"!==c(t).position)return t}return e}function g(e){for(var t=n(e),i=m(e);i&&0<=["table","td","th"].indexOf(a(i))&&"static"===c(i).position;)i=m(i);if(i&&"body"===a(i)&&"static"===c(i).position)return t;if(!i)e:{for(e=f(e);o(e)&&0>["html","body"].indexOf(a(e));){if("none"!==(i=c(e)).transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange){i=e;break e}e=e.parentNode}i=null}return i||t}function v(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function y(e){return e.split("-")[0]}function b(e,t){var i,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if((i=r)&&(i=r instanceof(i=n(r).ShadowRoot)||r instanceof ShadowRoot),i)do{if(t&&e.isSameNode(t))return!0;t=t.parentNode||t.host}while(t);return!1}function x(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w(e,r){if("viewport"===r){r=n(e);var a=s(e);r=r.visualViewport;var u=a.clientWidth;a=a.clientHeight;var d=0,p=0;r&&(u=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=r.offsetLeft,p=r.offsetTop)),e=x(e={width:u,height:a,x:d+l(e),y:p})}else o(r)?((e=t(r)).top+=r.clientTop,e.left+=r.clientLeft,e.bottom=e.top+r.clientHeight,e.right=e.left+r.clientWidth,e.width=r.clientWidth,e.height=r.clientHeight,e.x=e.left,e.y=e.top):(p=s(e),e=s(p),d=i(p),r=p.ownerDocument.body,u=Math.max(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),p=-d.scrollLeft+l(p),d=-d.scrollTop,"rtl"===c(r||e).direction&&(p+=Math.max(e.clientWidth,r?r.clientWidth:0)-u),e=x({width:u,height:a,x:p,y:d}));return e}function k(e,t,n){return t="clippingParents"===t?function(e){var t=h(f(e)),n=0<=["absolute","fixed"].indexOf(c(e).position)&&o(e)?g(e):e;return r(n)?t.filter((function(e){return r(e)&&b(e,n)&&"body"!==a(e)})):[]}(e):[].concat(t),(n=(n=[].concat(t,[n])).reduce((function(t,n){return n=w(e,n),t.top=Math.max(n.top,t.top),t.right=Math.min(n.right,t.right),t.bottom=Math.min(n.bottom,t.bottom),t.left=Math.max(n.left,t.left),t}),w(e,n[0]))).width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function C(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function O(e){var t=e.reference,n=e.element,i=(e=e.placement)?y(e):null;e=e?e.split("-")[1]:null;var r=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2;switch(i){case"top":r={x:r,y:t.y-n.height};break;case"bottom":r={x:r,y:t.y+t.height};break;case"right":r={x:t.x+t.width,y:o};break;case"left":r={x:t.x-n.width,y:o};break;default:r={x:t.x,y:t.y}}if(null!=(i=i?C(i):null))switch(o="y"===i?"height":"width",e){case"start":r[i]=Math.floor(r[i])-Math.floor(t[o]/2-n[o]/2);break;case"end":r[i]=Math.floor(r[i])+Math.ceil(t[o]/2-n[o]/2)}return r}function E(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function S(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function D(e,n){void 0===n&&(n={});var i=n;n=void 0===(n=i.placement)?e.placement:n;var o=i.boundary,a=void 0===o?"clippingParents":o,l=void 0===(o=i.rootBoundary)?"viewport":o;o=void 0===(o=i.elementContext)?"popper":o;var c=i.altBoundary,u=void 0!==c&&c;i=E("number"!=typeof(i=void 0===(i=i.padding)?0:i)?i:S(i,z));var d=e.elements.reference;c=e.rects.popper,a=k(r(u=e.elements[u?"popper"===o?"reference":"popper":o])?u:u.contextElement||s(e.elements.popper),a,l),u=O({reference:l=t(d),element:c,strategy:"absolute",placement:n}),c=x(Object.assign(Object.assign({},c),u)),l="popper"===o?c:l;var p={top:a.top-l.top+i.top,bottom:l.bottom-a.bottom+i.bottom,left:a.left-l.left+i.left,right:l.right-a.right+i.right};if(e=e.modifiersData.offset,"popper"===o&&e){var f=e[n];Object.keys(p).forEach((function(e){var t=0<=["right","bottom"].indexOf(e)?1:-1,n=0<=["top","bottom"].indexOf(e)?"y":"x";p[e]+=f[n]*t}))}return p}function M(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function A(e){void 0===e&&(e={});var t=e.defaultModifiers,n=void 0===t?[]:t,i=void 0===(e=e.defaultOptions)?R:e;return function(e,t,o){function a(){l.forEach((function(e){return e()})),l=[]}void 0===o&&(o=i);var s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},R),i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(o){return a(),s.options=Object.assign(Object.assign(Object.assign({},i),s.options),o),s.scrollParents={reference:r(e)?h(e):e.contextElement?h(e.contextElement):[],popper:h(t)},o=function(e){var t=function(e){var t=new Map,n=new Set,i=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(i){n.has(i)||(i=t.get(i))&&e(i)})),i.push(r)}(e)})),i}(e);return P.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers))),s.orderedModifiers=o.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options;n=void 0===n?{}:n,"function"==typeof(e=e.effect)&&(t=e({state:s,name:t,instance:u,options:n}),l.push(t||function(){}))})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference;if(M(t,e=e.popper))for(s.rects={reference:d(t,g(e),"fixed"===s.options.strategy),popper:p(e)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)})),t=0;t<s.orderedModifiers.length;t++)if(!0===s.reset)s.reset=!1,t=-1;else{var n=s.orderedModifiers[t];e=n.fn;var i=n.options;i=void 0===i?{}:i,n=n.name,"function"==typeof e&&(s=e({state:s,options:i,name:n,instance:u})||s)}}},update:v((function(){return new Promise((function(e){u.forceUpdate(),e(s)}))})),destroy:function(){a(),c=!0}};return M(e,t)?(u.setOptions(o).then((function(e){!c&&o.onFirstUpdate&&o.onFirstUpdate(e)})),u):u}}function N(e){var t,i=e.popper,r=e.popperRect,o=e.placement,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=window.devicePixelRatio||1;e=Math.round(a.x*d)/d||0,d=Math.round(a.y*d)/d||0;var p=a.hasOwnProperty("x");a=a.hasOwnProperty("y");var f,h="left",m="top",v=window;if(u){var y=g(i);y===n(i)&&(y=s(i)),"top"===o&&(m="bottom",d-=y.clientHeight-r.height,d*=c?1:-1),"left"===o&&(h="right",e-=y.clientWidth-r.width,e*=c?1:-1)}return i=Object.assign({position:l},u&&W),c?Object.assign(Object.assign({},i),{},((f={})[m]=a?"0":"",f[h]=p?"0":"",f.transform=2>(v.devicePixelRatio||1)?"translate("+e+"px, "+d+"px)":"translate3d("+e+"px, "+d+"px, 0)",f)):Object.assign(Object.assign({},i),{},((t={})[m]=a?d+"px":"",t[h]=p?e+"px":"",t.transform="",t))}function I(e){return e.replace(/left|right|bottom|top/g,(function(e){return q[e]}))}function T(e){return e.replace(/start|end/g,(function(e){return U[e]}))}function _(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function L(e){return["top","right","bottom","left"].some((function(t){return 0<=e[t]}))}var z=["top","bottom","right","left"],j=z.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),F=[].concat(z,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),P="beforeRead read afterRead beforeMain main afterMain beforeWrite write afterWrite".split(" "),R={placement:"bottom",modifiers:[],strategy:"absolute"},$={passive:!0},B={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=(e=e.options).scroll,o=void 0===r||r,a=void 0===(e=e.resize)||e,s=n(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",i.update,$)})),a&&s.addEventListener("resize",i.update,$),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",i.update,$)})),a&&s.removeEventListener("resize",i.update,$)}},data:{}},H={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=O({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},W={top:"auto",right:"auto",bottom:"auto",left:"auto"},V={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options;e=void 0===(e=n.gpuAcceleration)||e,n=void 0===(n=n.adaptive)||n,e={placement:y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:e},null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),N(Object.assign(Object.assign({},e),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),N(Object.assign(Object.assign({},e),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},Y={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];o(r)&&a(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{};e=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{}),o(i)&&a(i)&&(Object.assign(i.style,e),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]},X={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,i=void 0===(e=e.options.offset)?[0,0]:e,r=(e=F.reduce((function(e,n){var r=t.rects,o=y(n),a=0<=["left","top"].indexOf(o)?-1:1,s="function"==typeof i?i(Object.assign(Object.assign({},r),{},{placement:n})):i;return r=(r=s[0])||0,s=((s=s[1])||0)*a,o=0<=["left","right"].indexOf(o)?{x:s,y:r}:{x:r,y:s},e[n]=o,e}),{}))[t.placement],o=r.x;r=r.y,null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=r),t.modifiersData[n]=e}},q={left:"right",right:"left",bottom:"top",top:"bottom"},U={start:"end",end:"start"},K={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;if(e=e.name,!t.modifiersData[e]._skip){var i=n.mainAxis;i=void 0===i||i;var r=n.altAxis;r=void 0===r||r;var o=n.fallbackPlacements,a=n.padding,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,u=n.flipVariations,d=void 0===u||u,p=n.allowedAutoPlacements;u=y(n=t.options.placement),o=o||(u!==n&&d?function(e){if("auto"===y(e))return[];var t=I(e);return[T(e),t,T(t)]}(n):[I(n)]);var f=[n].concat(o).reduce((function(e,n){return e.concat("auto"===y(n)?function(e,t){void 0===t&&(t={});var n=t.boundary,i=t.rootBoundary,r=t.padding,o=t.flipVariations,a=t.allowedAutoPlacements,s=void 0===a?F:a,l=t.placement.split("-")[1];0===(o=(t=l?o?j:j.filter((function(e){return e.split("-")[1]===l})):z).filter((function(e){return 0<=s.indexOf(e)}))).length&&(o=t);var c=o.reduce((function(t,o){return t[o]=D(e,{placement:o,boundary:n,rootBoundary:i,padding:r})[y(o)],t}),{});return Object.keys(c).sort((function(e,t){return c[e]-c[t]}))}(t,{placement:n,boundary:s,rootBoundary:l,padding:a,flipVariations:d,allowedAutoPlacements:p}):n)}),[]);n=t.rects.reference,o=t.rects.popper;var h=new Map;u=!0;for(var m=f[0],g=0;g<f.length;g++){var v=f[g],b=y(v),x="start"===v.split("-")[1],w=0<=["top","bottom"].indexOf(b),k=w?"width":"height",C=D(t,{placement:v,boundary:s,rootBoundary:l,altBoundary:c,padding:a});if(x=w?x?"right":"left":x?"bottom":"top",n[k]>o[k]&&(x=I(x)),k=I(x),w=[],i&&w.push(0>=C[b]),r&&w.push(0>=C[x],0>=C[k]),w.every((function(e){return e}))){m=v,u=!1;break}h.set(v,w)}if(u)for(i=function(e){var t=f.find((function(t){if(t=h.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return m=t,"break"},r=d?3:1;0<r&&"break"!==i(r);r--);t.placement!==m&&(t.modifiersData[e]._skip=!0,t.placement=m,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},G={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options;e=e.name;var i=n.mainAxis,r=void 0===i||i;i=void 0!==(i=n.altAxis)&&i;var o=n.tether;o=void 0===o||o;var a=n.tetherOffset,s=void 0===a?0:a;n=D(t,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),a=y(t.placement);var l=t.placement.split("-")[1],c=!l,u=C(a);a="x"===u?"y":"x";var d=t.modifiersData.popperOffsets,f=t.rects.reference,h=t.rects.popper,m="function"==typeof s?s(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):s;if(s={x:0,y:0},d){if(r){var v="y"===u?"top":"left",b="y"===u?"bottom":"right",x="y"===u?"height":"width";r=d[u];var w=d[u]+n[v],k=d[u]-n[b],O=o?-h[x]/2:0,E="start"===l?f[x]:h[x];l="start"===l?-h[x]:-f[x],h=t.elements.arrow,h=o&&h?p(h):{width:0,height:0};var S=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0};v=S[v],b=S[b],h=Math.max(0,Math.min(f[x],h[x])),E=c?f[x]/2-O-h-v-m:E-h-v-m,c=c?-f[x]/2+O+h+b+m:l+h+b+m,m=t.elements.arrow&&g(t.elements.arrow),f=t.modifiersData.offset?t.modifiersData.offset[t.placement][u]:0,m=d[u]+E-f-(m?"y"===u?m.clientTop||0:m.clientLeft||0:0),c=d[u]+c-f,o=Math.max(o?Math.min(w,m):w,Math.min(r,o?Math.max(k,c):k)),d[u]=o,s[u]=o-r}i&&(i=d[a],o=Math.max(i+n["x"===u?"top":"left"],Math.min(i,i-n["x"===u?"bottom":"right"])),d[a]=o,s[a]=o-i),t.modifiersData[e]=s}},requiresIfExists:["offset"]},Q={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state;e=e.name;var i=n.elements.arrow,r=n.modifiersData.popperOffsets,o=y(n.placement),a=C(o);if(o=0<=["left","right"].indexOf(o)?"height":"width",i&&r){var s=n.modifiersData[e+"#persistent"].padding,l=p(i),c="y"===a?"top":"left",u="y"===a?"bottom":"right",d=n.rects.reference[o]+n.rects.reference[a]-r[a]-n.rects.popper[o];r=r[a]-n.rects.reference[a],d=(i=(i=g(i))?"y"===a?i.clientHeight||0:i.clientWidth||0:0)/2-l[o]/2+(d/2-r/2),o=Math.max(s[c],Math.min(d,i-l[o]-s[u])),n.modifiersData[e]=((t={})[a]=o,t.centerOffset=o-d,t)}},effect:function(e){var t=e.state,n=e.options;e=e.name;var i=n.element;if(i=void 0===i?"[data-popper-arrow]":i,n=void 0===(n=n.padding)?0:n,null!=i){if("string"==typeof i&&!(i=t.elements.popper.querySelector(i)))return;b(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[e+"#persistent"]={padding:E("number"!=typeof n?n:S(n,z))})}},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},J={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state;e=e.name;var n=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=D(t,{elementContext:"reference"}),a=D(t,{altBoundary:!0});n=_(o,n),i=_(a,i,r),r=L(n),a=L(i),t.modifiersData[e]={referenceClippingOffsets:n,popperEscapeOffsets:i,isReferenceHidden:r,hasPopperEscaped:a},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":r,"data-popper-escaped":a})}},Z=A({defaultModifiers:[B,H,V,Y]}),ee=[B,H,V,Y,X,K,G,Q,J],te=A({defaultModifiers:ee});e.applyStyles=Y,e.arrow=Q,e.computeStyles=V,e.createPopper=te,e.createPopperLite=Z,e.defaultModifiers=ee,e.detectOverflow=D,e.eventListeners=B,e.flip=K,e.hide=J,e.offset=X,e.popperGenerator=A,e.popperOffsets=H,e.preventOverflow=G,Object.defineProperty(e,"__esModule",{value:!0})})),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Sifter=t()}(this,(function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e,t){if(!(e=r(String(e||"").toLowerCase()))||!e.length)return[];var n,i,a,l,c=[],u=e.split(/ +/);for(n=0,i=u.length;n<i;n++){if(a=o(u[n]),this.settings.diacritics)for(l in s)s.hasOwnProperty(l)&&(a=a.replace(new RegExp(l,"g"),s[l]));t&&(a="\\b"+a),c.push({string:u[n],regex:new RegExp(a,"i")})}return c},e.prototype.iterator=function(e,t){var n;n=a(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)},n.apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,r,o,a;e=this.prepareSearch(e,t),r=e.tokens,n=e.options.fields,o=r.length,a=e.options.nesting;var s,l=function(e,t){var n,i;return e?-1===(i=(e=String(e||"")).search(t.regex))?0:(n=t.string.length/e.length,0===i&&(n+=.5),n):0},c=(s=n.length)?1===s?function(e,t){return l(i(t,n[0],a),e)}:function(e,t){for(var r=0,o=0;r<s;r++)o+=l(i(t,n[r],a),e);return o/s}:function(){return 0};return o?1===o?function(e){return c(r[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,i=0;n<o;n++){if((t=c(r[n],e))<=0)return 0;i+=t}return i/o}:function(e){for(var t=0,n=0;t<o;t++)n+=c(r[t],e);return n/o}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var r,o,a,s,l,c,u,d,p,f,h;if(h=!(e=(a=this).prepareSearch(e,n)).query&&n.sort_empty||n.sort,p=function(e,t){return"$score"===e?t.score:i(a.items[t.id],e,n.nesting)},l=[],h)for(r=0,o=h.length;r<o;r++)(e.query||"$score"!==h[r].field)&&l.push(h[r]);if(e.query){for(f=!0,r=0,o=l.length;r<o;r++)if("$score"===l[r].field){f=!1;break}f&&l.unshift({field:"$score",direction:"desc"})}else for(r=0,o=l.length;r<o;r++)if("$score"===l[r].field){l.splice(r,1);break}for(d=[],r=0,o=l.length;r<o;r++)d.push("desc"===l[r].direction?-1:1);return(c=l.length)?1===c?(s=l[0].field,u=d[0],function(e,n){return u*t(p(s,e),p(s,n))}):function(e,n){var i,r,o;for(i=0;i<c;i++)if(o=l[i].field,r=d[i]*t(p(o,e),p(o,n)))return r;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;var i=(t=n({},t)).fields,r=t.sort,o=t.sort_empty;return i&&!a(i)&&(t.fields=[i]),r&&!a(r)&&(t.sort=[r]),o&&!a(o)&&(t.sort_empty=[o]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e,t.respect_word_boundaries),total:0,items:[]}},e.prototype.search=function(e,t){var n,i,r,o,a=this;return i=this.prepareSearch(e,t),t=i.options,e=i.query,o=t.score||a.getScoreFunction(i),e.length?a.iterator(a.items,(function(e,r){n=o(e),(!1===t.filter||n>0)&&i.items.push({score:n,id:r})})):a.iterator(a.items,(function(e,t){i.items.push({score:1,id:t})})),(r=a.getSortFunction(i,t))&&i.items.sort(r),i.total=i.items.length,"number"==typeof t.limit&&(i.items=i.items.slice(0,t.limit)),i};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=l(String(e||"")))>(t=l(String(t||"")))?1:t>e?-1:0},n=function(e,t){var n,i,r,o;for(n=1,i=arguments.length;n<i;n++)if(o=arguments[n])for(r in o)o.hasOwnProperty(r)&&(e[r]=o[r]);return e},i=function(e,t,n){if(e&&t){if(!n)return e[t];for(var i=t.split(".");i.length&&(e=e[i.shift()]););return e}},r=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},o=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},l=function(){var e,t,n,i,r="",o={};for(n in s)if(s.hasOwnProperty(n))for(r+=i=s[n].substring(2,s[n].length-1),e=0,t=i.length;e<t;e++)o[i.charAt(e)]=n;var a=new RegExp("["+r+"]","g");return function(e){return e.replace(a,(function(e){return o[e]})).toLowerCase()}}();return e})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,(function(e){"use strict";var t="undefined"!=typeof window&&"undefined"!=typeof document,n=t?navigator.userAgent:"",i=/MSIE |Trident\//.test(n),r={passive:!0,capture:!0};function o(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function a(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function s(e,t){return"function"==typeof e?e.apply(void 0,t):e}function l(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function c(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function u(e){return[].concat(e)}function d(e,t){-1===e.indexOf(t)&&e.push(t)}function p(e){return e.split("-")[0]}function f(e){return[].slice.call(e)}function h(){return document.createElement("div")}function m(e){return["Element","Fragment"].some((function(t){return a(e,t)}))}function g(e){return a(e,"MouseEvent")}function v(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function y(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function b(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function x(e){var t=u(e)[0];return t&&t.ownerDocument||document}function w(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}var k={isTouch:!1},C=0;function O(){k.isTouch||(k.isTouch=!0,window.performance&&document.addEventListener("mousemove",E))}function E(){var e=performance.now();e-C<20&&(k.isTouch=!1,document.removeEventListener("mousemove",E)),C=e}function S(){var e=document.activeElement;if(v(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var D=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),M=Object.keys(D);function A(e){var t=(e.plugins||[]).reduce((function(t,n){var i=n.name,r=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:r),t}),{});return Object.assign({},e,{},t)}function N(e,t){var n=Object.assign({},t,{content:s(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(A(Object.assign({},D,{plugins:t}))):M).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},D.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function I(e,t){e.innerHTML=t}function T(e){var t=h();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",m(e)?t.appendChild(e):I(t,e)),t}function _(e,t){m(t.content)?(I(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?I(e,t.content):e.textContent=t.content)}function L(e){var t=e.firstElementChild,n=f(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function z(e){var t=h(),n=h();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=h();function r(n,i){var r=L(t),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||_(a,e.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(T(i.arrow))):o.appendChild(T(i.arrow)):s&&o.removeChild(s)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),_(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}z.$$tippy=!0;var j=1,F=[],P=[];function R(t,n){var a,c,m,v,C,O,E,S,M,I=N(t,Object.assign({},D,{},A((a=n,Object.keys(a).reduce((function(e,t){return void 0!==a[t]&&(e[t]=a[t]),e}),{}))))),T=!1,_=!1,z=!1,R=!1,$=[],B=l(ye,I.interactiveDebounce),H=j++,W=(M=I.plugins).filter((function(e,t){return M.indexOf(e)===t})),V={id:H,reference:t,popper:h(),popperInstance:null,props:I,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:W,clearDelayTimeouts:function(){clearTimeout(c),clearTimeout(m),cancelAnimationFrame(v)},setProps:function(e){if(!V.state.isDestroyed){re("onBeforeUpdate",[V,e]),ge();var n=V.props,i=N(t,Object.assign({},V.props,{},e,{ignoreAttributes:!0}));V.props=i,me(),n.interactiveDebounce!==i.interactiveDebounce&&(se(),B=l(ye,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?u(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded"),ae(),ie(),q&&q(n,i),V.popperInstance&&(ke(),Oe().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),re("onAfterUpdate",[V,e])}},setContent:function(e){V.setProps({content:e})},show:function(){var e=V.state.isVisible,t=V.state.isDestroyed,n=!V.state.isEnabled,i=k.isTouch&&!V.props.touch,r=o(V.props.duration,0,D.duration);if(!(e||t||n||i||Z().hasAttribute("disabled")||(re("onShow",[V],!1),!1===V.props.onShow(V)))){if(V.state.isVisible=!0,J()&&(X.style.visibility="visible"),ie(),de(),V.state.isMounted||(X.style.transition="none"),J()){var a=te();y([a.box,a.content],0)}E=function(){if(V.state.isVisible&&!R){if(R=!0,X.offsetHeight,X.style.transition=V.props.moveTransition,J()&&V.props.animation){var e=te(),t=e.box,n=e.content;y([t,n],r),b([t,n],"visible")}oe(),ae(),d(P,V),V.state.isMounted=!0,re("onMount",[V]),V.props.animation&&J()&&function(e){fe(e,(function(){V.state.isShown=!0,re("onShown",[V])}))}(r)}},function(){var e,t=V.props.appendTo,n=Z();(e=V.props.interactive&&t===D.appendTo||"parent"===t?n.parentNode:s(t,[n])).contains(X)||e.appendChild(X),ke()}()}},hide:function(){var e=!V.state.isVisible,t=V.state.isDestroyed,n=!V.state.isEnabled,i=o(V.props.duration,1,D.duration);if(!(e||t||n)&&(re("onHide",[V],!1),!1!==V.props.onHide(V))){if(V.state.isVisible=!1,V.state.isShown=!1,R=!1,T=!1,J()&&(X.style.visibility="hidden"),se(),pe(),ie(),J()){var r=te(),a=r.box,s=r.content;V.props.animation&&(y([a,s],i),b([a,s],"hidden"))}oe(),ae(),V.props.animation?J()&&function(e,t){fe(e,(function(){!V.state.isVisible&&X.parentNode&&X.parentNode.contains(X)&&t()}))}(i,V.unmount):V.unmount()}},hideWithInteractivity:function(e){ee().addEventListener("mousemove",B),d(F,B),B(e)},enable:function(){V.state.isEnabled=!0},disable:function(){V.hide(),V.state.isEnabled=!1},unmount:function(){V.state.isVisible&&V.hide(),V.state.isMounted&&(Ce(),Oe().forEach((function(e){e._tippy.unmount()})),X.parentNode&&X.parentNode.removeChild(X),P=P.filter((function(e){return e!==V})),V.state.isMounted=!1,re("onHidden",[V]))},destroy:function(){V.state.isDestroyed||(V.clearDelayTimeouts(),V.unmount(),ge(),delete t._tippy,V.state.isDestroyed=!0,re("onDestroy",[V]))}};if(!I.render)return V;var Y=I.render(V),X=Y.popper,q=Y.onUpdate;X.setAttribute("data-tippy-root",""),X.id="tippy-"+V.id,V.popper=X,t._tippy=V,X._tippy=V;var U=W.map((function(e){return e.fn(V)})),K=t.hasAttribute("aria-expanded");return me(),ae(),ie(),re("onCreate",[V]),I.showOnCreate&&Ee(),X.addEventListener("mouseenter",(function(){V.props.interactive&&V.state.isVisible&&V.clearDelayTimeouts()})),X.addEventListener("mouseleave",(function(e){V.props.interactive&&V.props.trigger.indexOf("mouseenter")>=0&&(ee().addEventListener("mousemove",B),B(e))})),V;function G(){var e=V.props.touch;return Array.isArray(e)?e:[e,0]}function Q(){return"hold"===G()[0]}function J(){var e;return!!(null==(e=V.props.render)?void 0:e.$$tippy)}function Z(){return S||t}function ee(){var e=Z().parentNode;return e?x(e):document}function te(){return L(X)}function ne(e){return V.state.isMounted&&!V.state.isVisible||k.isTouch||C&&"focus"===C.type?0:o(V.props.delay,e?0:1,D.delay)}function ie(){X.style.pointerEvents=V.props.interactive&&V.state.isVisible?"":"none",X.style.zIndex=""+V.props.zIndex}function re(e,t,n){var i;void 0===n&&(n=!0),U.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n&&(i=V.props)[e].apply(i,t)}function oe(){var e=V.props.aria;if(e.content){var n="aria-"+e.content,i=X.id;u(V.props.triggerTarget||t).forEach((function(e){var t=e.getAttribute(n);if(V.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function ae(){!K&&V.props.aria.expanded&&u(V.props.triggerTarget||t).forEach((function(e){V.props.interactive?e.setAttribute("aria-expanded",V.state.isVisible&&e===Z()?"true":"false"):e.removeAttribute("aria-expanded")}))}function se(){ee().removeEventListener("mousemove",B),F=F.filter((function(e){return e!==B}))}function le(e){if(!(k.isTouch&&(z||"mousedown"===e.type)||V.props.interactive&&X.contains(e.target))){if(Z().contains(e.target)){if(k.isTouch)return;if(V.state.isVisible&&V.props.trigger.indexOf("click")>=0)return}else re("onClickOutside",[V,e]);!0===V.props.hideOnClick&&(V.clearDelayTimeouts(),V.hide(),_=!0,setTimeout((function(){_=!1})),V.state.isMounted||pe())}}function ce(){z=!0}function ue(){z=!1}function de(){var e=ee();e.addEventListener("mousedown",le,!0),e.addEventListener("touchend",le,r),e.addEventListener("touchstart",ue,r),e.addEventListener("touchmove",ce,r)}function pe(){var e=ee();e.removeEventListener("mousedown",le,!0),e.removeEventListener("touchend",le,r),e.removeEventListener("touchstart",ue,r),e.removeEventListener("touchmove",ce,r)}function fe(e,t){var n=te().box;function i(e){e.target===n&&(w(n,"remove",i),t())}if(0===e)return t();w(n,"remove",O),w(n,"add",i),O=i}function he(e,n,i){void 0===i&&(i=!1),u(V.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,i),$.push({node:t,eventType:e,handler:n,options:i})}))}function me(){var e;Q()&&(he("touchstart",ve,{passive:!0}),he("touchend",be,{passive:!0})),(e=V.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(he(e,ve),e){case"mouseenter":he("mouseleave",be);break;case"focus":he(i?"focusout":"blur",xe);break;case"focusin":he("focusout",xe)}}))}function ge(){$.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),$=[]}function ve(e){var t,n=!1;if(V.state.isEnabled&&!we(e)&&!_){var i="focus"===(null==(t=C)?void 0:t.type);C=e,S=e.currentTarget,ae(),!V.state.isVisible&&g(e)&&F.forEach((function(t){return t(e)})),"click"===e.type&&(V.props.trigger.indexOf("mouseenter")<0||T)&&!1!==V.props.hideOnClick&&V.state.isVisible?n=!0:Ee(e),"click"===e.type&&(T=!n),n&&!i&&Se(e)}}function ye(e){var t=e.target,n=Z().contains(t)||X.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=p(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=t.top-i+l>o,h=i-t.bottom-c>o,m=t.left-n+u>o,g=n-t.right-d>o;return f||h||m||g}))}(Oe().concat(X).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:I}:null})).filter(Boolean),e)&&(se(),Se(e))}function be(e){we(e)||V.props.trigger.indexOf("click")>=0&&T||(V.props.interactive?V.hideWithInteractivity(e):Se(e))}function xe(e){V.props.trigger.indexOf("focusin")<0&&e.target!==Z()||V.props.interactive&&e.relatedTarget&&X.contains(e.relatedTarget)||Se(e)}function we(e){return!!k.isTouch&&Q()!==e.type.indexOf("touch")>=0}function ke(){Ce();var n=V.props,i=n.popperOptions,r=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,l=J()?L(X).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||Z()}:t,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(J()){var n=te().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];J()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==i?void 0:i.modifiers)||[]),V.popperInstance=e.createPopper(c,X,Object.assign({},i,{placement:r,onFirstUpdate:E,modifiers:u}))}function Ce(){V.popperInstance&&(V.popperInstance.destroy(),V.popperInstance=null)}function Oe(){return f(X.querySelectorAll("[data-tippy-root]"))}function Ee(e){V.clearDelayTimeouts(),e&&re("onTrigger",[V,e]),de();var t=ne(!0),n=G(),i=n[0],r=n[1];k.isTouch&&"hold"===i&&r&&(t=r),t?c=setTimeout((function(){V.show()}),t):V.show()}function Se(e){if(V.clearDelayTimeouts(),re("onUntrigger",[V,e]),V.state.isVisible){if(!(V.props.trigger.indexOf("mouseenter")>=0&&V.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&T)){var t=ne(!1);t?m=setTimeout((function(){V.state.isVisible&&V.hide()}),t):v=requestAnimationFrame((function(){V.hide()}))}}else pe()}}function $(e,t){void 0===t&&(t={});var n=D.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",O,r),window.addEventListener("blur",S);var i=Object.assign({},t,{plugins:n}),o=function(e){return m(e)?[e]:function(e){return a(e,"NodeList")}(e)?f(e):Array.isArray(e)?e:f(document.querySelectorAll(e))}(e).reduce((function(e,t){var n=t&&R(t,i);return n&&e.push(n),e}),[]);return m(e)?o[0]:o}$.defaultProps=D,$.setDefaultProps=function(e){Object.keys(e).forEach((function(t){D[t]=e[t]}))},$.currentInput=k;var B={mouseover:"mouseenter",focusin:"focus",click:"click"},H={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(!(null==(t=e.props.render)?void 0:t.$$tippy))return{};var n=L(e.popper),i=n.box,r=n.content,o=e.props.animateFill?function(){var e=h();return e.className="tippy-backdrop",b([e],"hidden"),e}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,b([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&b([o],"hidden")}}}},W={clientX:0,clientY:0},V=[];function Y(e){var t=e.clientX,n=e.clientY;W={clientX:t,clientY:n}}var X={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=x(e.props.triggerTarget||t),i=!1,r=!1,o=!0,a=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function d(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,o=n.clientX,a=n.clientY,s=t.getBoundingClientRect(),l=o-s.left,c=a-s.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=o,i=a;"initial"===r&&(n=e.left+l,i=e.top+c);var s="horizontal"===r?e.top:i,u="vertical"===r?e.right:n,d="horizontal"===r?e.bottom:i,p="vertical"===r?e.left:n;return{width:u-p,height:d-s,top:s,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(V.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",Y)}(n))}function f(){0===(V=V.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",Y)}(n)}return{onCreate:p,onDestroy:f,onBeforeUpdate:function(){a=e.props},onAfterUpdate:function(t,n){var o=n.followCursor;i||void 0!==o&&a.followCursor!==o&&(f(),o?(p(),!e.state.isMounted||r||s()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!r&&(o&&(d(W),o=!1),s()||l())},onTrigger:function(e,t){g(t)&&(W={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),o=!0)}}}},q={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,i=-1,r=!1,o={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var o=r.state;e.props.inlinePositioning&&(t!==o.placement&&e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],o=n[n.length-1],a="top"===e,s=r.top,l=o.bottom,c=a?r.left:o.left,u=a?r.right:o.right;return{top:s,bottom:l,left:c,right:u,width:u-c,height:l-s};case"left":case"right":var d=Math.min.apply(Math,n.map((function(e){return e.left}))),p=Math.max.apply(Math,n.map((function(e){return e.right}))),f=n.filter((function(t){return"left"===e?t.left===d:t.right===p})),h=f[0].top,m=f[f.length-1].bottom;return{top:h,bottom:m,left:d,right:p,width:p-d,height:m-h};default:return t}}(p(e),n.getBoundingClientRect(),f(n.getClientRects()),i)}(o.placement)}}),t=o.placement)}};function a(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,o),r=!0,e.setProps(t),r=!1)}return{onCreate:a,onAfterUpdate:a,onTrigger:function(t,n){if(g(n)){var r=f(e.reference.getClientRects()),o=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}));i=r.indexOf(o)}},onUntrigger:function(){i=-1}}}},U={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function a(){var s=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=i("popper")?n.getBoundingClientRect():null;(s&&K(r,s)||l&&K(o,l))&&e.popperInstance&&e.popperInstance.update(),r=s,o=l,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function K(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}return t&&function(){var e=document.createElement("style");e.textContent='.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',e.setAttribute("data-tippy-stylesheet","");var t=document.head,n=document.querySelector("head>style,head>link");n?t.insertBefore(e,n):t.appendChild(e)}(),$.setDefaultProps({plugins:[H,X,q,U],render:z}),$.createSingleton=function(e,t){void 0===t&&(t={});var n,i=e,r=[],o=t.overrides,a=[];function s(){r=i.map((function(e){return e.reference}))}function l(e){i.forEach((function(t){e?t.enable():t.disable()}))}function u(e){return i.map((function(t){var i=t.setProps;return t.setProps=function(r){i(r),t.reference===n&&e.setProps(r)},function(){t.setProps=i}}))}l(!1),s();var d={fn:function(){return{onDestroy:function(){l(!0)},onTrigger:function(e,t){var a=t.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var l=(o||[]).concat("content").reduce((function(e,t){return e[t]=i[s].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}},p=$(h(),Object.assign({},c(t,["overrides"]),{plugins:[d].concat(t.plugins||[]),triggerTarget:r})),f=p.setProps;return p.setProps=function(e){o=e.overrides||o,f(e)},p.setInstances=function(e){l(!0),a.forEach((function(e){return e()})),i=e,l(!1),s(),u(p),p.setProps({triggerTarget:r})},a=u(p),p},$.delegate=function(e,t){var n=[],i=[],r=!1,o=t.target,a=c(t,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),l=Object.assign({},a,{showOnCreate:!0}),d=$(e,s);function p(e){if(e.target&&!r){var n=e.target.closest(o);if(n){var a=n.getAttribute("data-tippy-trigger")||t.trigger||D.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&a.indexOf(B[e.type])<0)){var s=$(n,l);s&&(i=i.concat(s))}}}}function f(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return u(d).forEach((function(e){var t=e.destroy,o=e.enable,a=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},e.enable=function(){o(),i.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){a(),i.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;f(t,"touchstart",p),f(t,"mouseover",p),f(t,"focusin",p),f(t,"click",p)}(e)})),d},$.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;P.forEach((function(e){var t=!1;if(n&&(t=v(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},$.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',$})),function(e){window.Utils={template:_.memoize((function(t,n,i){var r,o,a={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},s=e(`#tmpl-${t}`);function l(e){return o=s.html(),e?(r=r||_.template(o,a))(e):o}return n?l(i):l})),isTarget:(t,n)=>!!t.currentTarget&&e(t.currentTarget).is(n),toArray:e=>_.isArray(e)?e:[e],saveFile(e,t,n){var i=new Blob([e],{type:n}),r=document.createElement("a");r.download=t,r.href=URL.createObjectURL(i),r.onclick=()=>{setTimeout((()=>URL.revokeObjectURL(r.href)),3e4)},r.click()},encode(e){try{if(e&&"object"==typeof e)return json=JSON.stringify(e),Base64.encode(json)}catch(e){console.error(e)}return""},decode(e,t){try{if(e&&"string"==typeof e)return json=Base64.decode(e),JSON.parse(json)}catch(e){console.error(e)}return t},resizeTextarea(){this.style.height="1px",this.clientHeight<this.scrollHeight&&(this.style.height=this.scrollHeight+(this.offsetHeight-this.clientHeight)+"px")},renderSelectizeItem(e,t){var n=e[this.settings.labelField],i=e[this.settings.optgroupField],r=n.lastIndexOf(" /");if(r>0){r+=2;var o=n.substr(0,r),a=n.substr(r);n=`<span class="prefix">${t(o)}</span>${t(a)}`}return i&&(n=`<span class="group">${t(_(this.optgroups).findWhere({value:i}).label)}:</span> `+n),`<div class="item">${n}</div>`},renderSelectizeOption(e,t){var n=e[this.settings.labelField],i=n.lastIndexOf(" /");if(i>0){i+=2;var r=n.substr(0,i),o=n.substr(i);n=`<span class="prefix">${t(r)}</span>${t(o)}`}return`<div class="option">${n}</div>`}}}(jQuery),function(e){var t,n,i=wp.i18n._n,r=wp.i18n.sprintf,o=Backbone.Model.extend({toJSON(){var e=_.clone(this.attributes);return _.each(this.attributes,(function(t,n){"function"==typeof t.toJSON&&(e[n]=t.toJSON())})),e}}),a=Backbone.Collection.extend({toJSON(e){return this.filter((t=>t.isValid(e))).map((t=>t.toJSON(e)))},move(e,t){this.remove(e,{silent:!0}),this.add(e,{at:t})},moveUp(e){var t=this.indexOf(e);t>0&&this.move(e,t-1)},moveDown(e){var t=this.indexOf(e);t<this.length-1&&this.move(e,t+1)}}),s=["model","collection","el","id","attributes","className","tagName","events"],l=Backbone.View.extend({preinitialize(e){_.extend(this,{subViews:[]},_.omit(e,s)),this.on("remove",(()=>{this.removeViews(),this.$(".selectized").each((function(){this.selectize.destroy()})),this.$(".flatpickr-input").each((function(){this._flatpickr?.destroy()}))}))},addView(e,t){var n=new e(_.extend({parent:this},t));return n.render(),this.subViews.push(n),this.$el.append(n.el),n},remove(){return this.trigger("remove"),this._removeElement(),this.stopListening(),this},removeViews(){return this.subViews.length&&(this.subViews.forEach((e=>{e.remove()})),this.subViews=[]),this},renderViews(e){if(this.subViews.length){var t=this.subViews;"function"==typeof e&&(t=t.filter((t=>t.constructor===e))),t.map((e=>e.render()))}}}),c=o.extend({defaults:{id:"",label:"",group:"",type:"",input:"",require_hook:"",require_data:!1,data_placeholder:"",operators:[],options:[],optgroups:!1},getOperators(){var e=this.get("operators");return n.filter((t=>e.includes(t.get("id"))))}}),u=a.extend({model:c}),d=o.extend({defaults:{id:"",label:"",minItems:1,maxItems:1/0,types:[]}}),p=a.extend({model:d}),f=o.extend({defaults:{filter:"",operator:"",data:"",value:[]},validate(e){if(!e.filter)return"Filter is empty";var o=t.get(e.filter);if(!o)return"Filter not found";if(o.get("require_data")&&!e.data)return"Filter require data";if(!e.operator)return"Operator is empty";var a=n.get(e.operator);if(!a)return"Operator not found";var s=Utils.toArray(e.value),l=a.get("minItems");if(s.length<l)return"The operator require "+r(i("%d value","%d values",l),l);var c=a.get("maxItems");return s.length>c?"Operator support only "+r(i("%d value","%d values",c),c):void 0}}),h=a.extend({model:f}),m=o.extend({defaults:{relation:"and",rules:new h}}),g=l.extend({events:{"click a":"toggleRelation"},tagName:"header",className:"cpcb-header",template:Utils.template("condition-builder-header"),initialize(){this.model.on("change:relation",this.render,this)},toggleRelation(){var e="and"==this.model.get("relation")?"or":"and";this.model.set({relation:e})},render(){this.$el.html(this.template({relation:this.model.get("relation")}))}}),v=l.extend({tagName:"li",className:"relation",initialize(){this.model.on("change:relation",this.render,this)},render(){this.$el.html(this.model.get("relation"))}}),y=l.extend({className:"form-control rule-filter",render(){this.$el.empty();var n=this,i=this.model.get("filter"),r=Utils.toArray(i),o=[],a=t.map((e=>{var t=e.get("id"),n=e.get("label"),i=e.get("group"),r={value:t,text:n,badge:e.get("require_hook"),optgroup:i};return _.findWhere(o,{value:i})||o.push({value:i,label:i}),r}));e('<input type="text" placeholder="condition filter">').appendTo(this.el).selectize({options:a,optgroups:o,items:r,mode:"single",closeAfterSelect:!0,plugins:["simplebar"],render:{option(e,t){var n=e[this.settings.labelField],i=e.badge;return`<div class="option">${n} ${i?`<span class="badge">${i}</span>`:""}</div>`}},onChange(e){var i=n.model.get("operator"),r=t.get(e);if(r){var o=r.get("operators");o.includes(i)||(i=o[0])}n.model.set({filter:e,operator:i,value:[]})}})}}),b=l.extend({className:"form-control rule-operator",initialize(){this.model.on("change:filter",this.render,this)},render(){this.$el.empty();var n=this,i=this.model.get("filter"),r=t.get(i);if(r){var o=r.getOperators().map((e=>({value:e.get("id"),text:e.get("label")}))),a=this.model.get("operator"),s=Utils.toArray(a);e('<input type="text" placeholder="condition operator">').appendTo(this.el).selectize({options:o,items:s,mode:"single",closeAfterSelect:!0,onChange(e){n.model.set({operator:e})}})}}}),x=l.extend({className:"form-control rule-value",initialize(){this.model.on("change:filter change:operator",_.debounce(this.render,10),this)},render_selectize(e,t,n,i,r){e.selectize({options:t,optgroups:n,maxItems:i,lockOptgroupOrder:!0,closeAfterSelect:1==i,direction:"auto",plugins:["drag_drop","simplebar"],render:{item:Utils.renderSelectizeItem,option:Utils.renderSelectizeOption},onChange(){r(this.items)}})},render_datepicker(e,t,n,i,r,o,a){flatpickr(e,{mode:t,noCalendar:n,enableTime:i,dateFormat:r,altFormat:o,altInput:!0,defaultHour:0,onChange(e){let t=e.map((e=>this.formatDate(e,r)));a(t)}})},render(){this.$el.empty();const i=this.model.get("filter");if(!i)return;const r=t.get(i);if(!r)return;const o=this.model.get("operator");if(!o)return;const a=n.get(o);if(!a)return;const s=a.get("maxItems");if(s<1)return void this.model.set("value",[]);let l=_.clone(Utils.toArray(this.model.get("value")));l.length>s&&(l=_.first(l,s),this.model.set("value",l));const c=r.get("type"),u=r.get("input"),d=["between","not_between"].includes(o);let p=`<input type="text" placeholder="condition value" value="${l.join(",")}">`;d&&(p=Utils.template("condition-builder-rule-value-range")({value:l})),this.$el.html(p).toggleClass("form-control-range",d),this.$("input").each(((t,n)=>{const i=e(n),o=d?1:s,a=e=>{d?l[t]=e[0]:l=e,this.model.set("value",[...l])};switch(u){case"selectize":const e=r.get("options"),t=r.get("optgroups");this.render_selectize(i,e,t,o,a);break;case"datepicker":const l=s>1&&!d?"multiple":"single",u="time"==c,p="datetime"==c||"time"==c;let f="Y-m-d",h="j M Y";"datetime"==c&&(f="Y-m-d H:i:S",h="j M Y h:i K"),"time"==c&&(f="H:i:S",h="h:i K"),this.render_datepicker(n,l,u,p,f,h,a);break;default:i.on("change",(function(){a([this.value])}))}}))}}),w=l.extend({className:"form-control rule-data",initialize(){this.model.on("change:filter",_.debounce(this.render,10),this)},render(){this.$el.empty();var n=this.model.get("filter"),i=t.get(n);if(i&&i.get("require_data")){var r=i.get("data_input"),o=e("textarea"==r?"<textarea></textarea>":'<input type="text">');o.attr("spellcheck","false"),o.appendTo(this.el);var a=o.get(0),s=i.get("data_placeholder");s&&o.attr({placeholder:s}),o.on("input enable",Utils.resizeTextarea),o.on("change input",(()=>{this.model.set("data",a.value)})),o.val(this.model.get("data")),"textarea"==r&&Utils.resizeTextarea.call(a)}}}),k=l.extend({events:{"click .action-delete":function(){this.collection.remove(this.model)},"click .action-move-up":function(){this.collection.moveUp(this.model)},"click .action-move-down":function(){this.collection.moveDown(this.model)},"mouseenter .action-delete":function(){this.parent.$el.addClass("rule-danger")},"mouseleave .action-delete":function(){this.parent.$el.removeClass("rule-danger")}},className:"rule-actions",template:Utils.template("condition-builder-rule-actions"),render(){this.$el.html(this.template({isFirst:0==this.index,isLast:this.index==this.last,error:this.model.validationError}))}}),C=l.extend({tagName:"li",className:"rule",index:0,last:0,initialize(){this.model.on("change",_.debounce(this.validateModel,10),this)},validateModel(){this.model.isValid()?this.$el.removeClass("rule-invalid"):this.$el.addClass("rule-invalid"),this.renderViews(k)},render(){this.removeViews(),this.validateModel(),this.addView(k,{model:this.model,collection:this.collection,index:this.index,last:this.last}),this.addView(y,{model:this.model}),this.addView(w,{model:this.model}),this.addView(b,{model:this.model}),this.addView(x,{model:this.model})}}),O=l.extend({tagName:"ul",className:"cpcb-rules",initialize(){this.collection.on("update",(()=>{this.render()}))},render(){this.removeViews();var e=this.collection.length-1;this.collection.each(((t,n)=>{n>0&&this.addView(v,{model:this.model}),this.addView(C,{model:t,collection:this.collection,index:n,last:e})}))}}),E=l.extend({tagName:"footer",className:"cpcb-footer",template:Utils.template("condition-builder-footer"),events:{"click .button-add-rule":function(){this.model.trigger("change:rules"),this.model.trigger("change"),this.collection.add(new f)}},render(){this.$el.html(this.template())}}),S=l.extend({el:"#condition-builder",initialize(){this.updateStatus(),this.collection.on("change update",(()=>this.model.trigger("change"))),this.collection.on("update",this.updateStatus,this)},updateStatus(){this.collection.length?this.$el.removeClass("empty"):this.$el.addClass("empty")},render(){this.removeViews(),this.addView(g,{model:this.model,collection:this.collection}),this.addView(O,{model:this.model,collection:this.collection}),this.addView(E,{model:this.model,collection:this.collection})}}),D={filters:[],conditions:{relation:"and",rules:[]}};function M(i,r){this.el=i,this.$el=e(i),this.opts=e.extend({},D,r),t=new u(this.opts.filters),window.Filters=t;var o=_(this.opts.operators).map((e=>("number"!=typeof e.minItems&&(e.minItems=1),"number"!=typeof e.maxItems&&(e.maxItems=1/0),e)));n=new p(o),this.parseConditions(this.opts.conditions),_.isFunction(this.opts.onChange)&&this.conditions.on("change",this.opts.onChange,this),new S({model:this.conditions,collection:this.conditions.get("rules")}).render(),_.isFunction(this.opts.onInit)&&this.opts.onInit.call(this)}M.prototype.parseConditions=function(e){var t=e.relation,n=new h;_.each(e.rules,(e=>n.add(new f(e)))),this.conditions=new m({relation:t,rules:n})},e.fn.conditionsBuilder=function(e){return this.each((function(){new M(this,e)})),this}}(jQuery),function(e){(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},e.apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"flatpickr-input-alt",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:'<svg viewBox="0 0 14 14" fill="none"><path d="M10 1L4 7L10 13" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',nextArrow:'<svg viewBox="0 0 14 14" fill="none"><path d="M4 1L10 7L4 13" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},a=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this;clearTimeout(n),n=setTimeout((function(){return e.apply(i,arguments)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function p(e,t){return t(e)?e:e.parentNode?p(e.parentNode,t):void 0}function f(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),r=u("span","arrowUp"),o=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var a in t)i.setAttribute(a,t[a]);return n.appendChild(i),n.appendChild(r),n.appendChild(o),n}function h(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var m=function(){},g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:m,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:m,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:m,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return g(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return o(b.h(e,t,n))},H:function(e){return o(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},x=function(e){var t=e.config,n=void 0===t?i:t,o=e.l10n,a=void 0===o?r:o,s=e.isMobile,l=void 0!==s&&s;return function(e,t,i){var r=i||a;return void 0===n.formatDate||l?t.split("").map((function(t,i,o){return b[t]&&"\\"!==o[i-1]?b[t](e,r,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,r)}},w=function(e){var t=e.config,n=void 0===t?i:t,o=e.l10n,a=void 0===o?r:o;return function(e,t,r,o){if(0===e||e){var s,l=o||a,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=t||(n||i).dateFormat,d=String(e).trim();if("today"===d)s=new Date,r=!0;else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else if(n&&n.parseDate)s=n.parseDate(e,u);else{s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var p=void 0,f=[],h=0,m=0,g="";h<u.length;h++){var b=u[h],x="\\"===b,w="\\"===u[h-1]||x;if(y[b]&&!w){g+=y[b];var k=new RegExp(g).exec(e);k&&(p=!0)&&f["Y"!==b?"push":"unshift"]({fn:v[b],val:k[++m]})}else x||(g+=".");f.forEach((function(e){var t=e.fn,n=e.val;return s=t(s,n,l)||s}))}s=p?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===r&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+c))}}};function k(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var C=864e5;function O(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),o=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<o&&(n=o),t===r&&n===o&&i<a&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},r=0,o=t;r<o.length;r++)i(o[r]);return e});function E(m,v){var b={config:e(e({},i),D.defaultConfig),l10n:r};function E(e){return e.bind(b)}function S(){var e=b.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==b.calendarContainer&&(b.calendarContainer.style.visibility="hidden",b.calendarContainer.style.display="block"),void 0!==b.daysContainer){var t=(b.days.offsetWidth+1)*e.showMonths;b.daysContainer.style.width=t+"px",b.calendarContainer.style.width=t+(void 0!==b.weekWrapper?b.weekWrapper.offsetWidth:0)+"px",b.calendarContainer.style.removeProperty("visibility"),b.calendarContainer.style.removeProperty("display")}}))}function M(e){if(0===b.selectedDates.length){var t=void 0===b.config.minDate||k(new Date,b.config.minDate)>=0?new Date:new Date(b.config.minDate.getTime()),n=O(b.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),b.selectedDates=[t],b.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=h(e),i=n;void 0!==b.amPM&&n===b.amPM&&(b.amPM.textContent=b.l10n.amPM[a(b.amPM.textContent===b.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=c+l*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var d=i===b.hourElement,p=i===b.minuteElement;u<r?(u=s+u+a(!d)+(a(d)&&a(!b.amPM)),p&&F(void 0,-1,b.hourElement)):u>s&&(u=i===b.hourElement?u-s-a(!b.amPM):r,p&&F(void 0,1,b.hourElement)),b.amPM&&d&&(1===l?u+c===23:Math.abs(u-c)>l)&&(b.amPM.textContent=b.l10n.amPM[a(b.amPM.textContent===b.l10n.amPM[0])]),i.value=o(u)}}(e);var i=b._input.value;A(),xe(),b._input.value!==i&&b._debouncedChange()}function A(){if(void 0!==b.hourElement&&void 0!==b.minuteElement){var e=(parseInt(b.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(b.minuteElement.value,10)||0)%60,n=void 0!==b.secondElement?(parseInt(b.secondElement.value,10)||0)%60:0;void 0!==b.amPM&&(s=e,l=b.amPM.textContent,e=s%12+12*a(l===b.l10n.amPM[1]));var i=void 0!==b.config.minTime||b.config.minDate&&b.minDateHasTime&&b.latestSelectedDateObj&&0===k(b.latestSelectedDateObj,b.config.minDate,!0);if(void 0!==b.config.maxTime||b.config.maxDate&&b.maxDateHasTime&&b.latestSelectedDateObj&&0===k(b.latestSelectedDateObj,b.config.maxDate,!0)){var r=void 0!==b.config.maxTime?b.config.maxTime:b.config.maxDate;(e=Math.min(e,r.getHours()))===r.getHours()&&(t=Math.min(t,r.getMinutes())),t===r.getMinutes()&&(n=Math.min(n,r.getSeconds()))}if(i){var o=void 0!==b.config.minTime?b.config.minTime:b.config.minDate;(e=Math.max(e,o.getHours()))===o.getHours()&&t<o.getMinutes()&&(t=o.getMinutes()),t===o.getMinutes()&&(n=Math.max(n,o.getSeconds()))}I(e,t,n)}var s,l}function N(e){var t=e||b.latestSelectedDateObj;t&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function I(e,t,n){void 0!==b.latestSelectedDateObj&&b.latestSelectedDateObj.setHours(e%24,t,n||0,0),b.hourElement&&b.minuteElement&&!b.isMobile&&(b.hourElement.value=o(b.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),b.minuteElement.value=o(t),void 0!==b.amPM&&(b.amPM.textContent=b.l10n.amPM[a(e>=12)]),void 0!==b.secondElement&&(b.secondElement.value=o(n)))}function T(e){var t=h(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&J(n)}function _(e,t,n,i){return t instanceof Array?t.forEach((function(t){return _(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return _(e,t,n,i)})):(e.addEventListener(t,n,i),void b._handlers.push({remove:function(){return e.removeEventListener(t,n)}}))}function L(){me("onChange")}function z(e,t){var n=void 0!==e?b.parseDate(e):b.latestSelectedDateObj||(b.config.minDate&&b.config.minDate>b.now?b.config.minDate:b.config.maxDate&&b.config.maxDate<b.now?b.config.maxDate:b.now),i=b.currentYear,r=b.currentMonth;try{void 0!==n&&(b.currentYear=n.getFullYear(),b.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,b.config.errorHandler(e)}t&&b.currentYear!==i&&(me("onYearChange"),V()),!t||b.currentYear===i&&b.currentMonth===r||me("onMonthChange"),b.redraw()}function j(e){var t=h(e);~t.className.indexOf("arrow")&&F(e,t.classList.contains("arrowUp")?1:-1)}function F(e,t,n){var i=e&&h(e),r=n||i&&i.parentNode&&i.parentNode.firstChild,o=ge("increment");o.delta=t,r&&r.dispatchEvent(o)}function P(e,t,n,i){var r=Z(t,!0),o=u("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=i,o.setAttribute("aria-label",b.formatDate(t,b.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===k(t,b.now)&&(b.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),r?(o.tabIndex=-1,ve(t)&&(o.classList.add("selected"),b.selectedDateElem=o,"range"===b.config.mode&&(c(o,"startRange",b.selectedDates[0]&&0===k(t,b.selectedDates[0],!0)),c(o,"endRange",b.selectedDates[1]&&0===k(t,b.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===b.config.mode&&function(e){return!("range"!==b.config.mode||b.selectedDates.length<2)&&k(e,b.selectedDates[0])>=0&&k(e,b.selectedDates[1])<=0}(t)&&!ve(t)&&o.classList.add("inRange"),b.weekNumbers&&1===b.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&b.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+b.config.getWeek(t)+"</span>"),me("onDayCreate",o),o}function R(e){e.focus(),"range"===b.config.mode&&ie(e)}function $(e){for(var t=e>0?0:b.config.showMonths-1,n=e>0?b.config.showMonths:-1,i=t;i!=n;i+=e)for(var r=b.daysContainer.children[i],o=e>0?0:r.children.length-1,a=e>0?r.children.length:-1,s=o;s!=a;s+=e){var l=r.children[s];if(-1===l.className.indexOf("hidden")&&Z(l.dateObj))return l}}function B(e,t){var n=ee(document.activeElement||document.body),i=void 0!==e?e:n?document.activeElement:void 0!==b.selectedDateElem&&ee(b.selectedDateElem)?b.selectedDateElem:void 0!==b.todayDateElem&&ee(b.todayDateElem)?b.todayDateElem:$(t>0?1:-1);void 0===i?b._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():b.currentMonth,i=t>0?b.config.showMonths:-1,r=t>0?1:-1,o=n-b.currentMonth;o!=i;o+=r)for(var a=b.daysContainer.children[o],s=n-b.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(t>0?l:-1);c+=r){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&Z(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return R(u)}b.changeMonth(r),B($(r),0)}(i,t):R(i)}function H(e,t){for(var n=(new Date(e,t,1).getDay()-b.l10n.firstDayOfWeek+7)%7,i=b.utils.getDaysInMonth((t-1+12)%12,e),r=b.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),a=b.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)o.appendChild(P(s,new Date(e,t-1,c),c,d));for(c=1;c<=r;c++,d++)o.appendChild(P("",new Date(e,t,c),c,d));for(var p=r+1;p<=42-n&&(1===b.config.showMonths||d%7!=0);p++,d++)o.appendChild(P(l,new Date(e,t+1,p%r),p,d));var f=u("div","dayContainer");return f.appendChild(o),f}function W(){if(void 0!==b.daysContainer){d(b.daysContainer),b.weekNumbers&&d(b.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<b.config.showMonths;t++){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),e.appendChild(H(n.getFullYear(),n.getMonth()))}b.daysContainer.appendChild(e),b.days=b.daysContainer.firstChild,"range"===b.config.mode&&1===b.selectedDates.length&&ie()}}function V(){if(!(b.config.showMonths>1||"dropdown"!==b.config.monthSelectorType)){var e=function(e){return!(void 0!==b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&e<b.config.minDate.getMonth()||void 0!==b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()&&e>b.config.maxDate.getMonth())};b.monthsDropdownContainer.tabIndex=-1,b.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(b.currentYear,t).getMonth().toString(),n.textContent=g(t,b.config.shorthandCurrentMonth,b.l10n),n.tabIndex=-1,b.currentMonth===t&&(n.selected=!0),b.monthsDropdownContainer.appendChild(n)}}}function Y(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();b.config.showMonths>1||"static"===b.config.monthSelectorType?e=u("span","cur-month"):(b.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),b.monthsDropdownContainer.setAttribute("aria-label",b.l10n.monthAriaLabel),_(b.monthsDropdownContainer,"change",(function(e){var t=h(e),n=parseInt(t.value,10);b.changeMonth(n-b.currentMonth),me("onMonthChange")})),V(),e=b.monthsDropdownContainer);var i=f("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",b.l10n.yearAriaLabel),b.config.minDate&&r.setAttribute("min",b.config.minDate.getFullYear().toString()),b.config.maxDate&&(r.setAttribute("max",b.config.maxDate.getFullYear().toString()),r.disabled=!!b.config.minDate&&b.config.minDate.getFullYear()===b.config.maxDate.getFullYear());var o=u("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(i),n.appendChild(o),t.appendChild(n),{container:t,yearElement:r,monthElement:e}}function X(){d(b.monthNav),b.monthNav.appendChild(b.prevMonthNav),b.config.showMonths&&(b.yearElements=[],b.monthElements=[]);for(var e=b.config.showMonths;e--;){var t=Y();b.yearElements.push(t.yearElement),b.monthElements.push(t.monthElement),b.monthNav.appendChild(t.container)}b.monthNav.appendChild(b.nextMonthNav)}function q(){b.weekdayContainer?d(b.weekdayContainer):b.weekdayContainer=u("div","flatpickr-weekdays");for(var e=b.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");b.weekdayContainer.appendChild(t)}return U(),b.weekdayContainer}function U(){if(b.weekdayContainer){var e=b.l10n.firstDayOfWeek,n=t(b.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var i=b.config.showMonths;i--;)b.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function K(e,t){void 0===t&&(t=!0);var n=t?e:e-b.currentMonth;n<0&&!0===b._hidePrevMonthArrow||n>0&&!0===b._hideNextMonthArrow||(b.currentMonth+=n,(b.currentMonth<0||b.currentMonth>11)&&(b.currentYear+=b.currentMonth>11?1:-1,b.currentMonth=(b.currentMonth+12)%12,me("onYearChange"),V()),W(),me("onMonthChange"),ye())}function G(e){return!(!b.config.appendTo||!b.config.appendTo.contains(e))||b.calendarContainer.contains(e)}function Q(e){if(b.isOpen&&!b.config.inline){var t=h(e),n=G(t),i=t===b.input||t===b.altInput||b.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(b.input)||~e.path.indexOf(b.altInput)),r="blur"===e.type?i&&e.relatedTarget&&!G(e.relatedTarget):!i&&!n&&!G(e.relatedTarget),o=!b.config.ignoredFocusElements.some((function(e){return e.contains(t)}));r&&o&&(void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement&&""!==b.input.value&&void 0!==b.input.value&&M(),b.close(),b.config&&"range"===b.config.mode&&1===b.selectedDates.length&&(b.clear(!1),b.redraw()))}}function J(e){if(!(!e||b.config.minDate&&e<b.config.minDate.getFullYear()||b.config.maxDate&&e>b.config.maxDate.getFullYear())){var t=e,n=b.currentYear!==t;b.currentYear=t||b.currentYear,b.config.maxDate&&b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth=Math.min(b.config.maxDate.getMonth(),b.currentMonth):b.config.minDate&&b.currentYear===b.config.minDate.getFullYear()&&(b.currentMonth=Math.max(b.config.minDate.getMonth(),b.currentMonth)),n&&(b.redraw(),me("onYearChange"),V())}}function Z(e,t){var n;void 0===t&&(t=!0);var i=b.parseDate(e,void 0,t);if(b.config.minDate&&i&&k(i,b.config.minDate,void 0!==t?t:!b.minDateHasTime)<0||b.config.maxDate&&i&&k(i,b.config.maxDate,void 0!==t?t:!b.maxDateHasTime)>0)return!1;if(!b.config.enable&&0===b.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!b.config.enable,o=null!==(n=b.config.enable)&&void 0!==n?n:b.config.disable,a=0,s=void 0;a<o.length;a++){if("function"==typeof(s=o[a])&&s(i))return r;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return r;if("string"==typeof s){var l=b.parseDate(s,void 0,!0);return l&&l.getTime()===i.getTime()?r:!r}if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function ee(e){return void 0!==b.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&b.daysContainer.contains(e)}function te(e){e.target!==b._input||!(b.selectedDates.length>0||b._input.value.length>0)||e.relatedTarget&&G(e.relatedTarget)||b.setDate(b._input.value,!0,e.target===b.altInput?b.config.altFormat:b.config.dateFormat)}function ne(e){var t=h(e),n=b.config.wrap?m.contains(t):t===b._input,i=b.config.allowInput,r=b.isOpen&&(!i||!n),o=b.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return b.setDate(b._input.value,!0,t===b.altInput?b.config.altFormat:b.config.dateFormat),t.blur();b.open()}else if(G(t)||r||o){var a=!!b.timeContainer&&b.timeContainer.contains(t);switch(e.keyCode){case 13:a?(e.preventDefault(),M(),ue()):de(e);break;case 27:e.preventDefault(),ue();break;case 8:case 46:n&&!b.config.allowInput&&(e.preventDefault(),b.clear());break;case 37:case 39:if(a||n)b.hourElement&&b.hourElement.focus();else if(e.preventDefault(),void 0!==b.daysContainer&&(!1===i||document.activeElement&&ee(document.activeElement))){var s=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),K(s),B($(1),0)):B(void 0,s)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;b.daysContainer&&void 0!==t.$i||t===b.input||t===b.altInput?e.ctrlKey?(e.stopPropagation(),J(b.currentYear-l),B($(1),0)):a||B(void 0,7*l):t===b.currentYearElement?J(b.currentYear-l):b.config.enableTime&&(!a&&b.hourElement&&b.hourElement.focus(),M(e),b._debouncedChange());break;case 9:if(a){var c=[b.hourElement,b.minuteElement,b.secondElement,b.amPM].concat(b.pluginElements).filter((function(e){return e})),u=c.indexOf(t);if(-1!==u){var d=c[u+(e.shiftKey?-1:1)];e.preventDefault(),(d||b._input).focus()}}else!b.config.noCalendar&&b.daysContainer&&b.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),b._input.focus())}}if(void 0!==b.amPM&&t===b.amPM)switch(e.key){case b.l10n.amPM[0].charAt(0):case b.l10n.amPM[0].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[0],A(),xe();break;case b.l10n.amPM[1].charAt(0):case b.l10n.amPM[1].charAt(0).toLowerCase():b.amPM.textContent=b.l10n.amPM[1],A(),xe()}(n||G(t))&&me("onKeyDown",e)}function ie(e){if(1===b.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():b.days.firstElementChild.dateObj.getTime(),n=b.parseDate(b.selectedDates[0],void 0,!0).getTime(),i=Math.min(t,b.selectedDates[0].getTime()),r=Math.max(t,b.selectedDates[0].getTime()),o=!1,a=0,s=0,l=i;l<r;l+=C)Z(new Date(l),!0)||(o=o||l>i&&l<r,l<n&&(!a||l>a)?a=l:l>n&&(!s||l<s)&&(s=l));for(var c=0;c<b.config.showMonths;c++)for(var u=b.daysContainer.children[c],d=function(i,r){var l,c,d,p=u.children[i],f=p.dateObj.getTime(),h=a>0&&f<a||s>0&&f>s;return h?(p.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){p.classList.remove(e)})),"continue"):o&&!h?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){p.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=b.selectedDates[0].getTime()?"startRange":"endRange"),n<t&&f===n?p.classList.add("startRange"):n>t&&f===n&&p.classList.add("endRange"),f>=a&&(0===s||f<=s)&&(l=f,c=n,d=t,l>Math.min(c,d)&&l<Math.max(c,d))&&p.classList.add("inRange"))))},p=0,f=u.children.length;p<f;p++)d(p)}}function re(){!b.isOpen||b.config.static||b.config.inline||le()}function oe(e){return function(t){var n=b.config["_"+e+"Date"]=b.parseDate(t,b.config.dateFormat),i=b.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(b["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),b.selectedDates&&(b.selectedDates=b.selectedDates.filter((function(e){return Z(e)})),b.selectedDates.length||"min"!==e||N(n),xe()),b.daysContainer&&(ce(),void 0!==n?b.currentYearElement[e]=n.getFullYear().toString():b.currentYearElement.removeAttribute(e),b.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function ae(){return b.config.wrap?m.querySelector("[data-input]"):m}function se(){"object"!=typeof b.config.locale&&void 0===D.l10ns[b.config.locale]&&b.config.errorHandler(new Error("flatpickr: invalid locale "+b.config.locale)),b.l10n=e(e({},D.l10ns.default),"object"==typeof b.config.locale?b.config.locale:"default"!==b.config.locale?D.l10ns[b.config.locale]:void 0),y.K="("+b.l10n.amPM[0]+"|"+b.l10n.amPM[1]+"|"+b.l10n.amPM[0].toLowerCase()+"|"+b.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(m.dataset||{}))).time_24hr&&void 0===D.defaultConfig.time_24hr&&(b.config.time_24hr=b.l10n.time_24hr),b.formatDate=x(b),b.parseDate=w({config:b.config,l10n:b.l10n})}function le(e){if("function"!=typeof b.config.position){if(void 0!==b.calendarContainer){me("onPreCalendarPosition");var t=e||b._positionElement,n=Array.prototype.reduce.call(b.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=b.calendarContainer.offsetWidth,r=b.config.position.split(" "),o=r[0],a=r.length>1?r[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===o||"below"!==o&&l<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(c(b.calendarContainer,"arrowTop",!u),c(b.calendarContainer,"arrowBottom",u),!b.config.inline){var p=window.pageXOffset+s.left,f=!1,h=!1;"center"===a?(p-=(i-s.width)/2,f=!0):"right"===a&&(p-=i-s.width,h=!0),c(b.calendarContainer,"arrowLeft",!f&&!h),c(b.calendarContainer,"arrowCenter",f),c(b.calendarContainer,"arrowRight",h);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=p+i>window.document.body.offsetWidth,v=m+i>window.document.body.offsetWidth;if(c(b.calendarContainer,"rightMost",g),!b.config.static)if(b.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];try{n.cssRules}catch(e){continue}e=n;break}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===y)return;var x=window.document.body.offsetWidth,w=Math.max(0,x/2-i/2),k=y.cssRules.length,C="{left:"+s.left+"px;right:auto;}";c(b.calendarContainer,"rightMost",!1),c(b.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,k),b.calendarContainer.style.left=w+"px",b.calendarContainer.style.right="auto"}else b.calendarContainer.style.left="auto",b.calendarContainer.style.right=m+"px";else b.calendarContainer.style.left=p+"px",b.calendarContainer.style.right="auto"}}}else b.config.position(b,e)}function ce(){b.config.noCalendar||b.isMobile||(V(),ye(),W())}function ue(){b._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(b.close,0):b.close()}function de(e){e.preventDefault(),e.stopPropagation();var t=p(h(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,i=b.latestSelectedDateObj=new Date(n.dateObj.getTime()),r=(i.getMonth()<b.currentMonth||i.getMonth()>b.currentMonth+b.config.showMonths-1)&&"range"!==b.config.mode;if(b.selectedDateElem=n,"single"===b.config.mode)b.selectedDates=[i];else if("multiple"===b.config.mode){var o=ve(i);o?b.selectedDates.splice(parseInt(o),1):b.selectedDates.push(i)}else"range"===b.config.mode&&(2===b.selectedDates.length&&b.clear(!1,!1),b.latestSelectedDateObj=i,b.selectedDates.push(i),0!==k(i,b.selectedDates[0],!0)&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(A(),r){var a=b.currentYear!==i.getFullYear();b.currentYear=i.getFullYear(),b.currentMonth=i.getMonth(),a&&(me("onYearChange"),V()),me("onMonthChange")}if(ye(),W(),xe(),r||"range"===b.config.mode||1!==b.config.showMonths?void 0!==b.selectedDateElem&&void 0===b.hourElement&&b.selectedDateElem&&b.selectedDateElem.focus():R(n),void 0!==b.hourElement&&void 0!==b.hourElement&&b.hourElement.focus(),b.config.closeOnSelect){var s="single"===b.config.mode&&!b.config.enableTime,l="range"===b.config.mode&&2===b.selectedDates.length&&!b.config.enableTime;(s||l)&&ue()}L()}}b.parseDate=w({config:b.config,l10n:b.l10n}),b._handlers=[],b.pluginElements=[],b.loadedPlugins=[],b._bind=_,b._setHoursFromDate=N,b._positionCalendar=le,b.changeMonth=K,b.changeYear=J,b.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),b.input.value="",void 0!==b.altInput&&(b.altInput.value=""),void 0!==b.mobileInput&&(b.mobileInput.value=""),b.selectedDates=[],b.latestSelectedDateObj=void 0,!0===t&&(b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth()),!0===b.config.enableTime){var n=O(b.config);I(n.hours,n.minutes,n.seconds)}b.redraw(),e&&me("onChange")},b.close=function(){b.isOpen=!1,b.isMobile||(void 0!==b.calendarContainer&&b.calendarContainer.classList.remove("open"),void 0!==b._input&&b._input.classList.remove("active")),me("onClose")},b._createElement=u,b.destroy=function(){void 0!==b.config&&me("onDestroy");for(var e=b._handlers.length;e--;)b._handlers[e].remove();if(b._handlers=[],b.mobileInput)b.mobileInput.parentNode&&b.mobileInput.parentNode.removeChild(b.mobileInput),b.mobileInput=void 0;else if(b.calendarContainer&&b.calendarContainer.parentNode)if(b.config.static&&b.calendarContainer.parentNode){var t=b.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else b.calendarContainer.parentNode.removeChild(b.calendarContainer);b.altInput&&(b.input.type="text",b.altInput.parentNode&&b.altInput.parentNode.removeChild(b.altInput),delete b.altInput),b.input&&(b.input.type=b.input._type,b.input.classList.remove("flatpickr-input"),b.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete b[e]}catch(e){}}))},b.isEnabled=Z,b.jumpToDate=z,b.open=function(e,t){if(void 0===t&&(t=b._positionElement),!0===b.isMobile){if(e){e.preventDefault();var n=h(e);n&&n.blur()}return void 0!==b.mobileInput&&(b.mobileInput.focus(),b.mobileInput.click()),void me("onOpen")}if(!b._input.disabled&&!b.config.inline){var i=b.isOpen;b.isOpen=!0,i||(b.calendarContainer.classList.add("open"),b._input.classList.add("active"),me("onOpen"),le(t)),!0===b.config.enableTime&&!0===b.config.noCalendar&&(!1!==b.config.allowInput||void 0!==e&&b.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return b.hourElement.select()}),50))}},b.redraw=ce,b.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(b.config,e),e)void 0!==pe[i]&&pe[i].forEach((function(e){return e()}));else b.config[e]=t,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):n.indexOf(e)>-1&&(b.config[e]=l(t));b.redraw(),xe(!0)},b.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=b.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return b.clear(t);fe(e,n),b.latestSelectedDateObj=b.selectedDates[b.selectedDates.length-1],b.redraw(),z(void 0,t),N(),0===b.selectedDates.length&&b.clear(!1),xe(t),t&&me("onChange")},b.toggle=function(e){if(!0===b.isOpen)return b.close();b.open(e)};var pe={locale:[se,U],showMonths:[X,S,q],minDate:[z],maxDate:[z],clickOpens:[function(){!0===b.config.clickOpens?(_(b._input,"focus",b.open),_(b._input,"click",b.open)):(b._input.removeEventListener("focus",b.open),b._input.removeEventListener("click",b.open))}]};function fe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return b.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[b.parseDate(e,t)];else if("string"==typeof e)switch(b.config.mode){case"single":case"time":n=[b.parseDate(e,t)];break;case"multiple":n=e.split(b.config.conjunction).map((function(e){return b.parseDate(e,t)}));break;case"range":n=e.split(b.l10n.rangeSeparator).map((function(e){return b.parseDate(e,t)}))}else b.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));b.selectedDates=b.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===b.config.mode&&b.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function he(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?b.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:b.parseDate(e.from,void 0),to:b.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function me(e,t){if(void 0!==b.config){var n=b.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](b.selectedDates,b.input.value,b,t);"onChange"===e&&(b.input.dispatchEvent(ge("change")),b.input.dispatchEvent(ge("input")))}}function ge(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function ve(e){for(var t=0;t<b.selectedDates.length;t++)if(0===k(b.selectedDates[t],e))return""+t;return!1}function ye(){b.config.noCalendar||b.isMobile||!b.monthNav||(b.yearElements.forEach((function(e,t){var n=new Date(b.currentYear,b.currentMonth,1);n.setMonth(b.currentMonth+t),b.config.showMonths>1||"static"===b.config.monthSelectorType?b.monthElements[t].textContent=g(n.getMonth(),b.config.shorthandCurrentMonth,b.l10n)+" ":b.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),b._hidePrevMonthArrow=void 0!==b.config.minDate&&(b.currentYear===b.config.minDate.getFullYear()?b.currentMonth<=b.config.minDate.getMonth():b.currentYear<b.config.minDate.getFullYear()),b._hideNextMonthArrow=void 0!==b.config.maxDate&&(b.currentYear===b.config.maxDate.getFullYear()?b.currentMonth+1>b.config.maxDate.getMonth():b.currentYear>b.config.maxDate.getFullYear()))}function be(e){return b.selectedDates.map((function(t){return b.formatDate(t,e)})).filter((function(e,t,n){return"range"!==b.config.mode||b.config.enableTime||n.indexOf(e)===t})).join("range"!==b.config.mode?b.config.conjunction:b.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==b.mobileInput&&b.mobileFormatStr&&(b.mobileInput.value=void 0!==b.latestSelectedDateObj?b.formatDate(b.latestSelectedDateObj,b.mobileFormatStr):""),b.input.value=be(b.config.dateFormat),void 0!==b.altInput&&(b.altInput.value=be(b.config.altFormat)),!1!==e&&me("onValueUpdate")}function we(e){var t=h(e),n=b.prevMonthNav.contains(t),i=b.nextMonthNav.contains(t);n||i?K(n?-1:1):b.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?b.changeYear(b.currentYear+1):t.classList.contains("arrowDown")&&b.changeYear(b.currentYear-1)}return function(){b.element=b.input=m,b.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=e(e({},JSON.parse(JSON.stringify(m.dataset||{}))),v),o={};b.config.parseDate=r.parseDate,b.config.formatDate=r.formatDate,Object.defineProperty(b.config,"enable",{get:function(){return b.config._enable},set:function(e){b.config._enable=he(e)}}),Object.defineProperty(b.config,"disable",{get:function(){return b.config._disable},set:function(e){b.config._disable=he(e)}});var a="time"===r.mode;if(!r.dateFormat&&(r.enableTime||a)){var s=D.defaultConfig.dateFormat||i.dateFormat;o.dateFormat=r.noCalendar||a?"H:i"+(r.enableSeconds?":S":""):s+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||a)&&!r.altFormat){var c=D.defaultConfig.altFormat||i.altFormat;o.altFormat=r.noCalendar||a?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(b.config,"minDate",{get:function(){return b.config._minDate},set:oe("min")}),Object.defineProperty(b.config,"maxDate",{get:function(){return b.config._maxDate},set:oe("max")});var u=function(e){return function(t){b.config["min"===e?"_minTime":"_maxTime"]=b.parseDate(t,"H:i:S")}};Object.defineProperty(b.config,"minTime",{get:function(){return b.config._minTime},set:u("min")}),Object.defineProperty(b.config,"maxTime",{get:function(){return b.config._maxTime},set:u("max")}),"time"===r.mode&&(b.config.noCalendar=!0,b.config.enableTime=!0),Object.assign(b.config,o,r);for(var d=0;d<t.length;d++)b.config[t[d]]=!0===b.config[t[d]]||"true"===b.config[t[d]];for(n.filter((function(e){return void 0!==b.config[e]})).forEach((function(e){b.config[e]=l(b.config[e]||[]).map(E)})),b.isMobile=!b.config.disableMobile&&!b.config.inline&&"single"===b.config.mode&&!b.config.disable.length&&!b.config.enable&&!b.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=0;d<b.config.plugins.length;d++){var p=b.config.plugins[d](b)||{};for(var f in p)n.indexOf(f)>-1?b.config[f]=l(p[f]).map(E).concat(b.config[f]):void 0===r[f]&&(b.config[f]=p[f])}r.altInputClass||(b.config.altInputClass=(ae().className+" "+b.config.altInputClass).trim()),me("onParseConfig")}(),se(),b.input=ae(),b.input?(b.input._type=b.input.type,b.input.type="text",b.input.classList.add("flatpickr-input"),b._input=b.input,b.config.altInput&&(b.altInput=u(b.input.nodeName,b.config.altInputClass),b._input=b.altInput,b.altInput.placeholder=b.input.placeholder,b.altInput.disabled=b.input.disabled,b.altInput.required=b.input.required,b.altInput.tabIndex=b.input.tabIndex,b.altInput.type="text",b.input.setAttribute("type","hidden"),!b.config.static&&b.input.parentNode&&b.input.parentNode.insertBefore(b.altInput,b.input.nextSibling)),b.config.allowInput||b._input.setAttribute("readonly","readonly"),b._positionElement=b.config.positionElement||b._input):b.config.errorHandler(new Error("Invalid input element specified")),function(){b.selectedDates=[],b.now=b.parseDate(b.config.now)||new Date;var e=b.config.defaultDate||("INPUT"!==b.input.nodeName&&"TEXTAREA"!==b.input.nodeName||!b.input.placeholder||b.input.value!==b.input.placeholder?b.input.value:null);e&&fe(e,b.config.dateFormat),b._initialDate=b.selectedDates.length>0?b.selectedDates[0]:b.config.minDate&&b.config.minDate.getTime()>b.now.getTime()?b.config.minDate:b.config.maxDate&&b.config.maxDate.getTime()<b.now.getTime()?b.config.maxDate:b.now,b.currentYear=b._initialDate.getFullYear(),b.currentMonth=b._initialDate.getMonth(),b.selectedDates.length>0&&(b.latestSelectedDateObj=b.selectedDates[0]),void 0!==b.config.minTime&&(b.config.minTime=b.parseDate(b.config.minTime,"H:i")),void 0!==b.config.maxTime&&(b.config.maxTime=b.parseDate(b.config.maxTime,"H:i")),b.minDateHasTime=!!b.config.minDate&&(b.config.minDate.getHours()>0||b.config.minDate.getMinutes()>0||b.config.minDate.getSeconds()>0),b.maxDateHasTime=!!b.config.maxDate&&(b.config.maxDate.getHours()>0||b.config.maxDate.getMinutes()>0||b.config.maxDate.getSeconds()>0)}(),b.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=b.currentMonth),void 0===t&&(t=b.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:b.l10n.daysInMonth[e]}},b.isMobile||function(){var e=window.document.createDocumentFragment();if(b.calendarContainer=u("div","flatpickr-calendar"),b.calendarContainer.tabIndex=-1,!b.config.noCalendar){if(e.appendChild((b.monthNav=u("div","flatpickr-months"),b.yearElements=[],b.monthElements=[],b.prevMonthNav=u("span","flatpickr-prev-month"),b.prevMonthNav.innerHTML=b.config.prevArrow,b.nextMonthNav=u("span","flatpickr-next-month"),b.nextMonthNav.innerHTML=b.config.nextArrow,X(),Object.defineProperty(b,"_hidePrevMonthArrow",{get:function(){return b.__hidePrevMonthArrow},set:function(e){b.__hidePrevMonthArrow!==e&&(c(b.prevMonthNav,"flatpickr-disabled",e),b.__hidePrevMonthArrow=e)}}),Object.defineProperty(b,"_hideNextMonthArrow",{get:function(){return b.__hideNextMonthArrow},set:function(e){b.__hideNextMonthArrow!==e&&(c(b.nextMonthNav,"flatpickr-disabled",e),b.__hideNextMonthArrow=e)}}),b.currentYearElement=b.yearElements[0],ye(),b.monthNav)),b.innerContainer=u("div","flatpickr-innerContainer"),b.config.weekNumbers){var t=function(){b.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",b.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;b.innerContainer.appendChild(n),b.weekNumbers=i,b.weekWrapper=n}b.rContainer=u("div","flatpickr-rContainer"),b.rContainer.appendChild(q()),b.daysContainer||(b.daysContainer=u("div","flatpickr-days"),b.daysContainer.tabIndex=-1),W(),b.rContainer.appendChild(b.daysContainer),b.innerContainer.appendChild(b.rContainer),e.appendChild(b.innerContainer)}b.config.enableTime&&e.appendChild(function(){b.calendarContainer.classList.add("hasTime"),b.config.noCalendar&&b.calendarContainer.classList.add("noCalendar");var e=O(b.config);b.timeContainer=u("div","flatpickr-time"),b.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=f("flatpickr-hour",{"aria-label":b.l10n.hourAriaLabel});b.hourElement=n.getElementsByTagName("input")[0];var i=f("flatpickr-minute",{"aria-label":b.l10n.minuteAriaLabel});if(b.minuteElement=i.getElementsByTagName("input")[0],b.hourElement.tabIndex=b.minuteElement.tabIndex=-1,b.hourElement.value=o(b.latestSelectedDateObj?b.latestSelectedDateObj.getHours():b.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),b.minuteElement.value=o(b.latestSelectedDateObj?b.latestSelectedDateObj.getMinutes():e.minutes),b.hourElement.setAttribute("step",b.config.hourIncrement.toString()),b.minuteElement.setAttribute("step",b.config.minuteIncrement.toString()),b.hourElement.setAttribute("min",b.config.time_24hr?"0":"1"),b.hourElement.setAttribute("max",b.config.time_24hr?"23":"12"),b.hourElement.setAttribute("maxlength","2"),b.minuteElement.setAttribute("min","0"),b.minuteElement.setAttribute("max","59"),b.minuteElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(n),b.timeContainer.appendChild(t),b.timeContainer.appendChild(i),b.config.time_24hr&&b.timeContainer.classList.add("time24hr"),b.config.enableSeconds){b.timeContainer.classList.add("hasSeconds");var r=f("flatpickr-second");b.secondElement=r.getElementsByTagName("input")[0],b.secondElement.value=o(b.latestSelectedDateObj?b.latestSelectedDateObj.getSeconds():e.seconds),b.secondElement.setAttribute("step",b.minuteElement.getAttribute("step")),b.secondElement.setAttribute("min","0"),b.secondElement.setAttribute("max","59"),b.secondElement.setAttribute("maxlength","2"),b.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),b.timeContainer.appendChild(r)}return b.config.time_24hr||(b.amPM=u("span","flatpickr-am-pm",b.l10n.amPM[a((b.latestSelectedDateObj?b.hourElement.value:b.config.defaultHour)>11)]),b.amPM.title=b.l10n.toggleTitle,b.amPM.tabIndex=-1,b.timeContainer.appendChild(b.amPM)),b.timeContainer}()),c(b.calendarContainer,"rangeMode","range"===b.config.mode),c(b.calendarContainer,"animate",!0===b.config.animate),c(b.calendarContainer,"multiMonth",b.config.showMonths>1),b.calendarContainer.appendChild(e);var r=void 0!==b.config.appendTo&&void 0!==b.config.appendTo.nodeType;if((b.config.inline||b.config.static)&&(b.calendarContainer.classList.add(b.config.inline?"inline":"static"),b.config.inline&&(!r&&b.element.parentNode?b.element.parentNode.insertBefore(b.calendarContainer,b._input.nextSibling):void 0!==b.config.appendTo&&b.config.appendTo.appendChild(b.calendarContainer)),b.config.static)){var s=u("div","flatpickr-wrapper");b.element.parentNode&&b.element.parentNode.insertBefore(s,b.element),s.appendChild(b.element),b.altInput&&s.appendChild(b.altInput),s.appendChild(b.calendarContainer)}b.config.static||b.config.inline||(void 0!==b.config.appendTo?b.config.appendTo:window.document.body).appendChild(b.calendarContainer)}(),function(){if(b.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(b.element.querySelectorAll("[data-"+e+"]"),(function(t){return _(t,"click",b[e])}))})),b.isMobile)!function(){var e=b.config.enableTime?b.config.noCalendar?"time":"datetime-local":"date";b.mobileInput=u("input",b.input.className+" flatpickr-mobile"),b.mobileInput.tabIndex=1,b.mobileInput.type=e,b.mobileInput.disabled=b.input.disabled,b.mobileInput.required=b.input.required,b.mobileInput.placeholder=b.input.placeholder,b.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",b.selectedDates.length>0&&(b.mobileInput.defaultValue=b.mobileInput.value=b.formatDate(b.selectedDates[0],b.mobileFormatStr)),b.config.minDate&&(b.mobileInput.min=b.formatDate(b.config.minDate,"Y-m-d")),b.config.maxDate&&(b.mobileInput.max=b.formatDate(b.config.maxDate,"Y-m-d")),b.input.getAttribute("step")&&(b.mobileInput.step=String(b.input.getAttribute("step"))),b.input.type="hidden",void 0!==b.altInput&&(b.altInput.type="hidden");try{b.input.parentNode&&b.input.parentNode.insertBefore(b.mobileInput,b.input.nextSibling)}catch(e){}_(b.mobileInput,"change",(function(e){b.setDate(h(e).value,!1,b.mobileFormatStr),me("onChange"),me("onClose")}))}();else{var e=s(re,50);if(b._debouncedChange=s(L,300),b.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&_(b.daysContainer,"mouseover",(function(e){"range"===b.config.mode&&ie(h(e))})),_(window.document.body,"keydown",ne),b.config.inline||b.config.static||_(window,"resize",e),void 0!==window.ontouchstart?_(window.document,"touchstart",Q):_(window.document,"mousedown",Q),_(window.document,"focus",Q,{capture:!0}),!0===b.config.clickOpens&&(_(b._input,"focus",b.open),_(b._input,"click",b.open)),void 0!==b.daysContainer&&(_(b.monthNav,"click",we),_(b.monthNav,["keyup","increment"],T),_(b.daysContainer,"click",de)),void 0!==b.timeContainer&&void 0!==b.minuteElement&&void 0!==b.hourElement){var t=function(e){return h(e).select()};_(b.timeContainer,["increment"],M),_(b.timeContainer,"blur",M,{capture:!0}),_(b.timeContainer,"click",j),_([b.hourElement,b.minuteElement],["focus","click"],t),void 0!==b.secondElement&&_(b.secondElement,"focus",(function(){return b.secondElement&&b.secondElement.select()})),void 0!==b.amPM&&_(b.amPM,"click",(function(e){M(e),L()}))}b.config.allowInput&&_(b._input,"blur",te)}}(),(b.selectedDates.length||b.config.noCalendar)&&(b.config.enableTime&&N(b.config.noCalendar?b.latestSelectedDateObj:void 0),xe(!1)),S();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!b.isMobile&&t&&le(),me("onReady")}(),b}function S(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],r=0;r<n.length;r++){var o=n[r];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=E(o,t||{}),i.push(o._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var D=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};return D.defaultConfig={},D.l10ns={en:e({},r),default:e({},r)},D.localize=function(t){D.l10ns.default=e(e({},D.l10ns.default),t)},D.setDefaults=function(t){D.defaultConfig=e(e({},D.defaultConfig),t)},D.parseDate=w({}),D.formatDate=x({}),D.compareDates=k,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=D),D}()}(this),function(e){e.Notiflix=function(e){"use strict";if(void 0===e&&void 0===e.document)return!1;var t,n,i,r,o,a="\n\nVisit documentation page to learn more: https://www.notiflix.com/documentation",s='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',l={wrapID:"NotiflixNotifyWrap",width:"280px",position:"right-top",distance:"10px",opacity:1,borderRadius:"5px",rtl:!1,timeout:3e3,messageMaxLength:110,backOverlay:!1,backOverlayColor:"rgba(0,0,0,0.5)",plainText:!0,showOnlyTheLastOne:!1,clickToClose:!1,ID:"NotiflixNotify",className:"notiflix-notify",zindex:4001,useGoogleFont:!1,fontFamily:"Quicksand",fontSize:"13px",cssAnimation:!0,cssAnimationDuration:400,cssAnimationStyle:"fade",closeButton:!1,useIcon:!0,useFontAwesome:!1,fontAwesomeIconStyle:"basic",fontAwesomeIconSize:"34px",success:{background:"#32c682",textColor:"#fff",childClassName:"success",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-check-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(50,198,130,0.2)"},failure:{background:"#ff5549",textColor:"#fff",childClassName:"failure",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-times-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(255,85,73,0.2)"},warning:{background:"#eebf31",textColor:"#fff",childClassName:"warning",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-exclamation-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(238,191,49,0.2)"},info:{background:"#26c0d3",textColor:"#fff",childClassName:"info",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-info-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(38,192,211,0.2)"}},c={ID:"NotiflixReportWrap",className:"notiflix-report",width:"320px",backgroundColor:"#f8f8f8",borderRadius:"25px",rtl:!1,zindex:4002,backOverlay:!0,backOverlayColor:"rgba(0,0,0,0.5)",useGoogleFont:!1,fontFamily:"Quicksand",svgSize:"110px",plainText:!0,titleFontSize:"16px",titleMaxLength:34,messageFontSize:"13px",messageMaxLength:400,buttonFontSize:"14px",buttonMaxLength:34,cssAnimation:!0,cssAnimationDuration:360,cssAnimationStyle:"fade",success:{svgColor:"#32c682",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#32c682",buttonColor:"#fff",backOverlayColor:"rgba(50,198,130,0.2)"},failure:{svgColor:"#ff5549",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#ff5549",buttonColor:"#fff",backOverlayColor:"rgba(255,85,73,0.2)"},warning:{svgColor:"#eebf31",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#eebf31",buttonColor:"#fff",backOverlayColor:"rgba(238,191,49,0.2)"},info:{svgColor:"#26c0d3",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#26c0d3",buttonColor:"#fff",backOverlayColor:"rgba(38,192,211,0.2)"}},u={ID:"NotiflixConfirmWrap",className:"notiflix-confirm",width:"300px",zindex:4003,position:"center",distance:"10px",backgroundColor:"#f8f8f8",borderRadius:"25px",backOverlay:!0,backOverlayColor:"rgba(0,0,0,0.5)",rtl:!1,useGoogleFont:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationStyle:"fade",cssAnimationDuration:300,plainText:!0,titleColor:"#32c682",titleFontSize:"16px",titleMaxLength:34,messageColor:"#1e1e1e",messageFontSize:"14px",messageMaxLength:110,buttonsFontSize:"15px",buttonsMaxLength:34,okButtonColor:"#f8f8f8",okButtonBackground:"#32c682",cancelButtonColor:"#f8f8f8",cancelButtonBackground:"#a9a9a9"},d={ID:"NotiflixLoadingWrap",className:"notiflix-loading",zindex:4e3,backgroundColor:"rgba(0,0,0,0.8)",rtl:!1,useGoogleFont:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationDuration:400,clickToClose:!1,customSvgUrl:null,svgSize:"80px",svgColor:"#32c682",messageID:"NotiflixLoadingMessage",messageFontSize:"15px",messageMaxLength:34,messageColor:"#dcdcdc"},p={ID:"NotiflixBlockWrap",querySelectorLimit:200,className:"notiflix-block",position:"absolute",zindex:1e3,backgroundColor:"rgba(255,255,255,0.9)",rtl:!1,useGoogleFont:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationDuration:300,svgSize:"45px",svgColor:"#383838",messageFontSize:"14px",messageMaxLength:34,messageColor:"#383838"},f=function(e,t){return console.error("%c "+e+" ","padding:2px;border-radius:20px;color:#fff;background:#ff5549","\n"+t+a)},h=function(t){return t||(t="head"),null!==e.document[t]||(f("Notiflix",'\nNotiflix needs to be appended to the "<'+t+'>" element, but you called it before the "<'+t+'>" element has been created.'),!1)},m=function(){var e={},t=!1,n=0;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(var i=function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t&&"[object Object]"===Object.prototype.toString.call(n[i])?e[i]=m(e[i],n[i]):e[i]=n[i])};n<arguments.length;n++)i(arguments[n]);return e},g=function(t){var n=e.document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""},v=function(t,n){if(!e.document.getElementById("NotiflixQuicksand")&&t&&"string"==typeof n&&"quicksand"===n.toLocaleLowerCase("en")){if(!h("head"))return!1;var i=e.document.createRange();i.selectNode(e.document.head);var r=i.createContextualFragment('<link id="NotiflixGoogleDNS" rel="dns-prefetch" href="//fonts.googleapis.com" />');e.document.head.appendChild(r);var o=e.document.createRange();o.selectNode(e.document.head);var a=o.createContextualFragment('<link id="NotiflixQuicksand" href="https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700&subset=latin-ext" rel="stylesheet" />');e.document.head.appendChild(a)}},y=function(e,t){return e||(e="60px"),t||(t="#32c682"),'<svg xmlns="http://www.w3.org/2000/svg" stroke="'+t+'" width="'+e+'" height="'+e+'" transform="scale(.8)" viewBox="0 0 38 38"><g fill="none" fill-rule="evenodd" stroke-width="2" transform="translate(1 1)"><circle cx="18" cy="18" r="18" stroke-opacity=".25"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" dur="1s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></path></g></svg>'},b=function(e,t){return e||(e="60px"),t||(t="#32c682"),'<svg xmlns="http://www.w3.org/2000/svg" id="NXLoadingHourglass" fill="'+t+'" width="'+e+'" height="'+e+'" fill-rule="evenodd" clip-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewBox="0 0 200 200" xml:space="preserve"><style>@-webkit-keyframes NXhourglass5-animation{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}16.67%{-webkit-transform:scale(1,.8);transform:scale(1,.8)}33.33%{-webkit-transform:scale(.88,.6);transform:scale(.88,.6)}37.5%{-webkit-transform:scale(.85,.55);transform:scale(.85,.55)}41.67%{-webkit-transform:scale(.8,.5);transform:scale(.8,.5)}45.83%{-webkit-transform:scale(.75,.45);transform:scale(.75,.45)}50%{-webkit-transform:scale(.7,.4);transform:scale(.7,.4)}54.17%{-webkit-transform:scale(.6,.35);transform:scale(.6,.35)}58.33%{-webkit-transform:scale(.5,.3);transform:scale(.5,.3)}83.33%,to{-webkit-transform:scale(.2,0);transform:scale(.2,0)}}@keyframes NXhourglass5-animation{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}16.67%{-webkit-transform:scale(1,.8);transform:scale(1,.8)}33.33%{-webkit-transform:scale(.88,.6);transform:scale(.88,.6)}37.5%{-webkit-transform:scale(.85,.55);transform:scale(.85,.55)}41.67%{-webkit-transform:scale(.8,.5);transform:scale(.8,.5)}45.83%{-webkit-transform:scale(.75,.45);transform:scale(.75,.45)}50%{-webkit-transform:scale(.7,.4);transform:scale(.7,.4)}54.17%{-webkit-transform:scale(.6,.35);transform:scale(.6,.35)}58.33%{-webkit-transform:scale(.5,.3);transform:scale(.5,.3)}83.33%,to{-webkit-transform:scale(.2,0);transform:scale(.2,0)}}@-webkit-keyframes NXhourglass3-animation{0%{-webkit-transform:scale(1,.02);transform:scale(1,.02)}79.17%,to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes NXhourglass3-animation{0%{-webkit-transform:scale(1,.02);transform:scale(1,.02)}79.17%,to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes NXhourglass1-animation{0%,83.33%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes NXhourglass1-animation{0%,83.33%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}#NXLoadingHourglass *{-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:cubic-bezier(0,0,1,1);animation-timing-function:cubic-bezier(0,0,1,1)}</style><g data-animator-group="true" data-animator-type="1" style="-webkit-animation-name:NXhourglass1-animation;animation-name:NXhourglass1-animation;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;transform-box:fill-box"><g id="NXhourglass2" fill="inherit"><g data-animator-group="true" data-animator-type="2" style="-webkit-animation-name:NXhourglass3-animation;animation-name:NXhourglass3-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform-origin:50% 100%;transform-origin:50% 100%;transform-box:fill-box" opacity=".4"><path id="NXhourglass4" d="M100 100l-34.38 32.08v31.14h68.76v-31.14z"/></g><g data-animator-group="true" data-animator-type="2" style="-webkit-animation-name:NXhourglass5-animation;animation-name:NXhourglass5-animation;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;transform-box:fill-box" opacity=".4"><path id="NXhourglass6" d="M100 100L65.62 67.92V36.78h68.76v31.14z"/></g><path d="M51.14 38.89h8.33v14.93c0 15.1 8.29 28.99 23.34 39.1 1.88 1.25 3.04 3.97 3.04 7.08s-1.16 5.83-3.04 7.09c-15.05 10.1-23.34 23.99-23.34 39.09v14.93h-8.33a4.859 4.859 0 1 0 0 9.72h97.72a4.859 4.859 0 1 0 0-9.72h-8.33v-14.93c0-15.1-8.29-28.99-23.34-39.09-1.88-1.26-3.04-3.98-3.04-7.09s1.16-5.83 3.04-7.08c15.05-10.11 23.34-24 23.34-39.1V38.89h8.33a4.859 4.859 0 1 0 0-9.72H51.14a4.859 4.859 0 1 0 0 9.72zm79.67 14.93c0 15.87-11.93 26.25-19.04 31.03-4.6 3.08-7.34 8.75-7.34 15.15 0 6.41 2.74 12.07 7.34 15.15 7.11 4.78 19.04 15.16 19.04 31.03v14.93H69.19v-14.93c0-15.87 11.93-26.25 19.04-31.02 4.6-3.09 7.34-8.75 7.34-15.16 0-6.4-2.74-12.07-7.34-15.15-7.11-4.78-19.04-15.16-19.04-31.03V38.89h61.62v14.93z"/></g></g></svg>'},x=function(e,t){return e||(e="60px"),t||(t="#32c682"),'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+e+'" viewBox="25 25 50 50" style="-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;height:'+e+";-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;width:"+e+';position:absolute;top:0;left:0;margin:auto"><style>@-webkit-keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}</style><circle cx="50" cy="50" r="20" fill="none" stroke="'+t+'" stroke-width="2" style="-webkit-animation:dash 1.5s ease-in-out infinite,color 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite,color 1.5s ease-in-out infinite" stroke-dasharray="150 200" stroke-dashoffset="-10" stroke-linecap="round"/></svg>'},w=function(e,t){return e||(e="60px"),t||(t="#32c682"),'<svg xmlns="http://www.w3.org/2000/svg" fill="'+t+'" width="'+e+'" height="'+e+'" viewBox="0 0 128 128"><g><path fill="inherit" d="M109.25 55.5h-36l12-12a29.54 29.54 0 0 0-49.53 12H18.75A46.04 46.04 0 0 1 96.9 31.84l12.35-12.34v36zm-90.5 17h36l-12 12a29.54 29.54 0 0 0 49.53-12h16.97A46.04 46.04 0 0 1 31.1 96.16L18.74 108.5v-36z"/><animateTransform attributeName="transform" dur="1.5s" from="0 64 64" repeatCount="indefinite" to="360 64 64" type="rotate"/></g></svg>'},k=function(e,t){return e||(e="60px"),t||(t="#32c682"),'<svg xmlns="http://www.w3.org/2000/svg" fill="'+t+'" width="'+e+'" height="'+e+'" preserveAspectRatio="xMidYMid" viewBox="0 0 100 100"><g transform="translate(25 50)"><circle r="9" fill="inherit" transform="scale(.239)"><animateTransform attributeName="transform" begin="-0.266s" calcMode="spline" dur="0.8s" keySplines="0.3 0 0.7 1;0.3 0 0.7 1" keyTimes="0;0.5;1" repeatCount="indefinite" type="scale" values="0;1;0"/></circle></g><g transform="translate(50 50)"><circle r="9" fill="inherit" transform="scale(.00152)"><animateTransform attributeName="transform" begin="-0.133s" calcMode="spline" dur="0.8s" keySplines="0.3 0 0.7 1;0.3 0 0.7 1" keyTimes="0;0.5;1" repeatCount="indefinite" type="scale" values="0;1;0"/></circle></g><g transform="translate(75 50)"><circle r="9" fill="inherit" transform="scale(.299)"><animateTransform attributeName="transform" begin="0s" calcMode="spline" dur="0.8s" keySplines="0.3 0 0.7 1;0.3 0 0.7 1" keyTimes="0;0.5;1" repeatCount="indefinite" type="scale" values="0;1;0"/></circle></g></svg>'},C=function(e,t){return e||(e="60px"),t||(t="#32c682"),'<svg xmlns="http://www.w3.org/2000/svg" stroke="'+t+'" width="'+e+'" height="'+e+'" viewBox="0 0 44 44"><g fill="none" fill-rule="evenodd" stroke-width="2"><circle cx="22" cy="22" r="1"><animate attributeName="r" begin="0s" calcMode="spline" dur="1.8s" keySplines="0.165, 0.84, 0.44, 1" keyTimes="0; 1" repeatCount="indefinite" values="1; 20"/><animate attributeName="stroke-opacity" begin="0s" calcMode="spline" dur="1.8s" keySplines="0.3, 0.61, 0.355, 1" keyTimes="0; 1" repeatCount="indefinite" values="1; 0"/></circle><circle cx="22" cy="22" r="1"><animate attributeName="r" begin="-0.9s" calcMode="spline" dur="1.8s" keySplines="0.165, 0.84, 0.44, 1" keyTimes="0; 1" repeatCount="indefinite" values="1; 20"/><animate attributeName="stroke-opacity" begin="-0.9s" calcMode="spline" dur="1.8s" keySplines="0.3, 0.61, 0.355, 1" keyTimes="0; 1" repeatCount="indefinite" values="1; 0"/></circle></g></svg>'},O=0,E=0,S=function(n,i,r,o){if(!h("body"))return!1;t||T.Notify.Init({});var a=m(!0,t,{});if("object"==typeof i&&!Array.isArray(i)||"object"==typeof r&&!Array.isArray(r)){var c={};"object"==typeof i?c=i:"object"==typeof r&&(c=r),t=m(!0,t,c)}var u=t[o.toLocaleLowerCase("en")];O++,"function"==typeof i&&E++,"string"!=typeof n&&(n="Notiflix "+o),t.plainText&&(n=g(n)),!t.plainText&&n.length>t.messageMaxLength&&(t=m(!0,t,{closeButton:!0,messageMaxLength:100}),n='HTML Tags Error: Your content length is more than "messageMaxLength" option.'),n.length>t.messageMaxLength&&(n=n.substring(0,t.messageMaxLength)+"..."),"shadow"===t.fontAwesomeIconStyle&&(u.fontAwesomeIconColor=u.background),t.cssAnimation||(t.cssAnimationDuration=0);var d,p=e.document.createElement("div");p.id=l.wrapID,p.style.width=t.width,p.style.zIndex=t.zindex,p.style.opacity=t.opacity,"center-center"===t.position?(p.style.left=t.distance,p.style.top=t.distance,p.style.right=t.distance,p.style.bottom=t.distance,p.style.margin="auto",p.classList.add("nx-flex-center-center"),p.style.maxHeight="calc((100vh - "+t.distance+") - "+t.distance+")",p.style.display="flex",p.style.flexWrap="wrap",p.style.flexDirection="column",p.style.justifyContent="center",p.style.alignItems="center",p.style.pointerEvents="none"):"center-top"===t.position?(p.style.left=t.distance,p.style.right=t.distance,p.style.top=t.distance,p.style.bottom="auto",p.style.margin="auto"):"center-bottom"===t.position?(p.style.left=t.distance,p.style.right=t.distance,p.style.bottom=t.distance,p.style.top="auto",p.style.margin="auto"):"right-bottom"===t.position?(p.style.right=t.distance,p.style.bottom=t.distance,p.style.top="auto",p.style.left="auto"):"left-top"===t.position?(p.style.left=t.distance,p.style.top=t.distance,p.style.right="auto",p.style.bottom="auto"):"left-bottom"===t.position?(p.style.left=t.distance,p.style.bottom=t.distance,p.style.top="auto",p.style.right="auto"):(p.style.right=t.distance,p.style.top=t.distance,p.style.left="auto",p.style.bottom="auto"),t.backOverlay&&((d=e.document.createElement("div")).id=t.ID+"Overlay",d.style.width="100%",d.style.height="100%",d.style.position="fixed",d.style.zIndex=t.zindex,d.style.left=0,d.style.top=0,d.style.right=0,d.style.bottom=0,d.style.background=u.backOverlayColor||t.backOverlayColor,d.className=t.cssAnimation?"with-animation":"",d.style.animationDuration=t.cssAnimation?t.cssAnimationDuration+"ms":"",e.document.getElementById(d.id)?0===E&&(e.document.getElementById(d.id).style.background=u.backOverlayColor||t.backOverlayColor):e.document.body.appendChild(d)),e.document.getElementById(p.id)||e.document.body.appendChild(p);var f=e.document.createElement("div");f.id=t.ID+"-"+O,f.className=t.className+" "+u.childClassName+" "+(t.cssAnimation?"with-animation":"")+" "+(t.useIcon?"with-icon":"")+" nx-"+t.cssAnimationStyle+" "+(t.closeButton&&"function"!=typeof i?"with-close-button":"")+" "+("function"==typeof i?"with-callback":"")+" "+(t.clickToClose?"click-to-close":""),f.style.fontSize=t.fontSize,f.style.color=u.textColor,f.style.background=u.background,f.style.borderRadius=t.borderRadius,f.style.pointerEvents="all",t.rtl&&(f.setAttribute("dir","rtl"),f.classList.add("rtl-on")),f.style.fontFamily='"'+t.fontFamily+'", '+s,t.cssAnimation&&(f.style.animationDuration=t.cssAnimationDuration+"ms");var v,y="";if(t.closeButton&&"function"!=typeof i&&(y='<span class="notify-close-button"><svg class="clck2cls" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="20px" height="20px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"viewBox="0 0 20 20"xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">.click2close{fill:'+u.notiflixIconColor+'}</style></defs><g><path class="click2close" d="M0.38 2.19l7.8 7.81 -7.8 7.81c-0.51,0.5 -0.51,1.31 -0.01,1.81 0.25,0.25 0.57,0.38 0.91,0.38 0.34,0 0.67,-0.14 0.91,-0.38l7.81 -7.81 7.81 7.81c0.24,0.24 0.57,0.38 0.91,0.38 0.34,0 0.66,-0.14 0.9,-0.38 0.51,-0.5 0.51,-1.31 0,-1.81l-7.81 -7.81 7.81 -7.81c0.51,-0.5 0.51,-1.31 0,-1.82 -0.5,-0.5 -1.31,-0.5 -1.81,0l-7.81 7.81 -7.81 -7.81c-0.5,-0.5 -1.31,-0.5 -1.81,0 -0.51,0.51 -0.51,1.32 0,1.82z"/></g></svg></span>'),t.useIcon?t.useFontAwesome?f.innerHTML='<i style="color:'+u.fontAwesomeIconColor+"; font-size:"+t.fontAwesomeIconSize+';" class="nmi wfa '+u.fontAwesomeClassName+" "+("shadow"===t.fontAwesomeIconStyle?"shadow":"basic")+'"></i><span class="the-message with-icon">'+n+"</span>"+(t.closeButton?y:""):(v="Success"===o?'<svg class="nmi" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="40px" height="40px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"viewBox="0 0 40 40"xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">#Notiflix-Icon-Success{fill:'+u.notiflixIconColor+'}</style></defs><g><path id="Notiflix-Icon-Success" d="M20 0c11.03,0 20,8.97 20,20 0,11.03 -8.97,20 -20,20 -11.03,0 -20,-8.97 -20,-20 0,-11.03 8.97,-20 20,-20zm0 37.98c9.92,0 17.98,-8.06 17.98,-17.98 0,-9.92 -8.06,-17.98 -17.98,-17.98 -9.92,0 -17.98,8.06 -17.98,17.98 0,9.92 8.06,17.98 17.98,17.98zm-2.4 -13.29l11.52 -12.96c0.37,-0.41 1.01,-0.45 1.42,-0.08 0.42,0.37 0.46,1 0.09,1.42l-12.16 13.67c-0.19,0.22 -0.46,0.34 -0.75,0.34 -0.23,0 -0.45,-0.07 -0.63,-0.22l-7.6 -6.07c-0.43,-0.35 -0.5,-0.99 -0.16,-1.42 0.35,-0.43 0.99,-0.5 1.42,-0.16l6.85 5.48z"/></g></svg>':"Failure"===o?'<svg class="nmi" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="40px" height="40px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"viewBox="0 0 40 40"xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">#Notiflix-Icon-Failure{fill:'+u.notiflixIconColor+'}</style></defs><g><path id="Notiflix-Icon-Failure" d="M20 0c11.03,0 20,8.97 20,20 0,11.03 -8.97,20 -20,20 -11.03,0 -20,-8.97 -20,-20 0,-11.03 8.97,-20 20,-20zm0 37.98c9.92,0 17.98,-8.06 17.98,-17.98 0,-9.92 -8.06,-17.98 -17.98,-17.98 -9.92,0 -17.98,8.06 -17.98,17.98 0,9.92 8.06,17.98 17.98,17.98zm1.42 -17.98l6.13 6.12c0.39,0.4 0.39,1.04 0,1.43 -0.19,0.19 -0.45,0.29 -0.71,0.29 -0.27,0 -0.53,-0.1 -0.72,-0.29l-6.12 -6.13 -6.13 6.13c-0.19,0.19 -0.44,0.29 -0.71,0.29 -0.27,0 -0.52,-0.1 -0.71,-0.29 -0.39,-0.39 -0.39,-1.03 0,-1.43l6.13 -6.12 -6.13 -6.13c-0.39,-0.39 -0.39,-1.03 0,-1.42 0.39,-0.39 1.03,-0.39 1.42,0l6.13 6.12 6.12 -6.12c0.4,-0.39 1.04,-0.39 1.43,0 0.39,0.39 0.39,1.03 0,1.42l-6.13 6.13z"/></g></svg>':"Warning"===o?'<svg class="nmi" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="40px" height="40px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"viewBox="0 0 40 40"xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">#Notiflix-Icon-Warning{fill:'+u.notiflixIconColor+'}</style></defs><g><path id="Notiflix-Icon-Warning" d="M21.91 3.48l17.8 30.89c0.84,1.46 -0.23,3.25 -1.91,3.25l-35.6 0c-1.68,0 -2.75,-1.79 -1.91,-3.25l17.8 -30.89c0.85,-1.47 2.97,-1.47 3.82,0zm16.15 31.84l-17.8 -30.89c-0.11,-0.2 -0.41,-0.2 -0.52,0l-17.8 30.89c-0.12,0.2 0.05,0.4 0.26,0.4l35.6 0c0.21,0 0.38,-0.2 0.26,-0.4zm-19.01 -4.12l0 -1.05c0,-0.53 0.42,-0.95 0.95,-0.95 0.53,0 0.95,0.42 0.95,0.95l0 1.05c0,0.53 -0.42,0.95 -0.95,0.95 -0.53,0 -0.95,-0.42 -0.95,-0.95zm0 -4.66l0 -13.39c0,-0.52 0.42,-0.95 0.95,-0.95 0.53,0 0.95,0.43 0.95,0.95l0 13.39c0,0.53 -0.42,0.96 -0.95,0.96 -0.53,0 -0.95,-0.43 -0.95,-0.96z"/></g></svg>':"Info"===o?'<svg class="nmi" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="40px" height="40px" version="1.1" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"viewBox="0 0 40 40"xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css">#Notiflix-Icon-Info{fill:'+u.notiflixIconColor+'}</style></defs><g><path id="Notiflix-Icon-Info" d="M20 0c11.03,0 20,8.97 20,20 0,11.03 -8.97,20 -20,20 -11.03,0 -20,-8.97 -20,-20 0,-11.03 8.97,-20 20,-20zm0 37.98c9.92,0 17.98,-8.06 17.98,-17.98 0,-9.92 -8.06,-17.98 -17.98,-17.98 -9.92,0 -17.98,8.06 -17.98,17.98 0,9.92 8.06,17.98 17.98,17.98zm-0.99 -23.3c0,-0.54 0.44,-0.98 0.99,-0.98 0.55,0 0.99,0.44 0.99,0.98l0 15.86c0,0.55 -0.44,0.99 -0.99,0.99 -0.55,0 -0.99,-0.44 -0.99,-0.99l0 -15.86zm0 -5.22c0,-0.55 0.44,-0.99 0.99,-0.99 0.55,0 0.99,0.44 0.99,0.99l0 1.09c0,0.54 -0.44,0.99 -0.99,0.99 -0.55,0 -0.99,-0.45 -0.99,-0.99l0 -1.09z"/></g></svg>':"",f.innerHTML=v+'<span class="the-message with-icon">'+n+"</span>"+(t.closeButton?y:"")):f.innerHTML='<span class="the-message">'+n+"</span>"+(t.closeButton?y:""),"left-bottom"===t.position||"right-bottom"===t.position){var b=e.document.getElementById(p.id);b.insertBefore(f,b.firstChild)}else e.document.getElementById(p.id).appendChild(f);if(t.useIcon){var x=e.document.getElementById(f.id).querySelectorAll(".nmi")[0],w=40;if(t.useFontAwesome)w=Math.round(parseInt(x.offsetHeight));else{var k=x.getBBox();w=Math.round(parseInt(k.width))}var C=e.document.getElementById(f.id).querySelectorAll("span")[0],S=Math.round(C.offsetHeight);S<=w&&(C.style.paddingTop=(w-S)/2+"px",C.style.paddingBottom=(w-S)/2+"px")}if(e.document.getElementById(f.id)){var D,M,A,N=e.document.getElementById(f.id),I=e.document.getElementById(p.id);t.backOverlay&&(D=e.document.getElementById(d.id));var _=function(){N.classList.add("remove"),t.backOverlay&&I.childElementCount<=0&&D.classList.add("remove"),clearTimeout(M)},L=function(){e.document.getElementById(f.id)&&null!==N.parentNode&&N.parentNode.removeChild(N),I.childElementCount<=0&&null!==I.parentNode&&(I.parentNode.removeChild(I),t.backOverlay&&null!==D.parentNode&&D.parentNode.removeChild(D)),clearTimeout(A)};t.closeButton&&"function"!=typeof i&&e.document.getElementById(f.id).querySelectorAll("span.notify-close-button")[0].addEventListener("click",(function(){_();var e=setTimeout((function(){L(),clearTimeout(e)}),t.cssAnimationDuration)})),("function"==typeof i||t.clickToClose)&&N.addEventListener("click",(function(){"function"==typeof i&&(E--,i()),_();var e=setTimeout((function(){L(),clearTimeout(e)}),t.cssAnimationDuration)})),t.closeButton||"function"==typeof i||(M=setTimeout((function(){_()}),t.timeout),A=setTimeout((function(){L()}),t.timeout+t.cssAnimationDuration))}if(t.showOnlyTheLastOne&&O>0)for(var z=e.document.querySelectorAll("[id^="+t.ID+"-]:not([id="+t.ID+"-"+O+"])"),j=0;j<z.length;j++){var F=z[j];null!==F.parentNode&&F.parentNode.removeChild(F)}t=m(!0,t,a)},D=function(t,i,r,o,a,l){if(!h("body"))return!1;n||T.Report.Init({});var u={};if("object"==typeof o&&!Array.isArray(o)||"object"==typeof a&&!Array.isArray(a)){var d={};"object"==typeof o?d=o:"object"==typeof a&&(d=a),u=m(!0,n,{}),n=m(!0,n,d)}var p=n[l.toLocaleLowerCase("en")];"string"!=typeof t&&(t="Notiflix "+l),"string"!=typeof i&&("Success"===l?i='"Do not try to become a person of success but try to become a person of value." <br><br>- Albert Einstein':"Failure"===l?i='"Failure is simply the opportunity to begin again, this time more intelligently." <br><br>- Henry Ford':"Warning"===l?i='"The peoples who want to live comfortably without producing and fatigue; they are doomed to lose their dignity, then liberty, and then independence and destiny." <br><br>- Mustafa Kemal Ataturk':"Info"===l&&(i='"Knowledge rests not upon truth alone, but upon error also." <br><br>- Carl Gustav Jung')),"string"!=typeof r&&(r="Okay"),n.plainText&&(t=g(t),i=g(i),r=g(r)),n.plainText||(t.length>n.titleMaxLength&&(t="HTML Tags Error",i='Your Title content length is more than "titleMaxLength" option.',r="Okay"),i.length>n.messageMaxLength&&(t="HTML Tags Error",i='Your Message content length is more than "messageMaxLength" option.',r="Okay"),r.length>n.buttonMaxLength&&(t="HTML Tags Error",i='Your Button content length is more than "buttonMaxLength" option.',r="Okay")),t.length>n.titleMaxLength&&(t=t.substring(0,n.titleMaxLength)+"..."),i.length>n.messageMaxLength&&(i=i.substring(0,n.messageMaxLength)+"..."),r.length>n.buttonMaxLength&&(r=r.substring(0,n.buttonMaxLength)+"..."),n.cssAnimation||(n.cssAnimationDuration=0);var f=e.document.createElement("div");f.id=c.ID,f.className=n.className,f.style.zIndex=n.zindex,f.style.borderRadius=n.borderRadius,f.style.fontFamily='"'+n.fontFamily+'", '+s,n.rtl&&(f.setAttribute("dir","rtl"),f.classList.add("rtl-on")),f.style.display="flex",f.style.flexWrap="wrap",f.style.flexDirection="column",f.style.alignItems="center",f.style.justifyContent="center";var v="";n.backOverlay&&(v='<div class="'+n.className+"-overlay"+(n.cssAnimation?" with-animation":"")+'" style="background:'+(p.backOverlayColor||n.backOverlayColor)+";animation-duration:"+n.cssAnimationDuration+'ms;"></div>');var y,b,x="";if("Success"===l?(y=n.svgSize,b=p.svgColor,y||(y="110px"),b||(b="#32c682"),x='<svg xmlns="http://www.w3.org/2000/svg" id="NXReportSuccess" width="'+y+'" height="'+y+'" fill="'+b+'" fill-rule="evenodd" clip-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewBox="0 0 120 120" xml:space="preserve"><style>@-webkit-keyframes NXReportSuccess5-animation{0%{-webkit-transform:translate(60px,57.7px) scale(.5,.5) translate(-60px,-57.7px);transform:translate(60px,57.7px) scale(.5,.5) translate(-60px,-57.7px)}50%,to{-webkit-transform:translate(60px,57.7px) scale(1,1) translate(-60px,-57.7px);transform:translate(60px,57.7px) scale(1,1) translate(-60px,-57.7px)}60%{-webkit-transform:translate(60px,57.7px) scale(.95,.95) translate(-60px,-57.7px);transform:translate(60px,57.7px) scale(.95,.95) translate(-60px,-57.7px)}}@keyframes NXReportSuccess5-animation{0%{-webkit-transform:translate(60px,57.7px) scale(.5,.5) translate(-60px,-57.7px);transform:translate(60px,57.7px) scale(.5,.5) translate(-60px,-57.7px)}50%,to{-webkit-transform:translate(60px,57.7px) scale(1,1) translate(-60px,-57.7px);transform:translate(60px,57.7px) scale(1,1) translate(-60px,-57.7px)}60%{-webkit-transform:translate(60px,57.7px) scale(.95,.95) translate(-60px,-57.7px);transform:translate(60px,57.7px) scale(.95,.95) translate(-60px,-57.7px)}}@-webkit-keyframes NXReportSuccess6-animation{0%{opacity:0}50%,to{opacity:1}}@keyframes NXReportSuccess6-animation{0%{opacity:0}50%,to{opacity:1}}@-webkit-keyframes NXReportSuccess4-animation{0%{opacity:0}40%,to{opacity:1}}@keyframes NXReportSuccess4-animation{0%{opacity:0}40%,to{opacity:1}}@-webkit-keyframes NXReportSuccess3-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@keyframes NXReportSuccess3-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}#NXReportSuccess *{-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-timing-function:cubic-bezier(0,0,1,1);animation-timing-function:cubic-bezier(0,0,1,1)}</style><g id="NXReportSuccess1"><g id="NXReportSuccess2"><g style="-webkit-animation-name:NXReportSuccess3-animation;animation-name:NXReportSuccess3-animation;-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)"><path d="M60 115.38C29.46 115.38 4.62 90.54 4.62 60 4.62 29.46 29.46 4.62 60 4.62c30.54 0 55.38 24.84 55.38 55.38 0 30.54-24.84 55.38-55.38 55.38zM60 0C26.92 0 0 26.92 0 60s26.92 60 60 60 60-26.92 60-60S93.08 0 60 0z" style="-webkit-animation-name:NXReportSuccess4-animation;animation-name:NXReportSuccess4-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g><g style="-webkit-animation-name:NXReportSuccess5-animation;animation-name:NXReportSuccess5-animation;-webkit-transform:translate(60px,57.7px) scale(1,1) translate(-60px,-57.7px);-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)"><path d="M88.27 35.39L52.8 75.29 31.43 58.2c-.98-.81-2.44-.63-3.24.36-.79.99-.63 2.44.36 3.24l23.08 18.46c.43.34.93.51 1.44.51.64 0 1.27-.26 1.74-.78l36.91-41.53a2.3 2.3 0 0 0-.19-3.26c-.95-.86-2.41-.77-3.26.19z" style="-webkit-animation-name:NXReportSuccess6-animation;animation-name:NXReportSuccess6-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g></g></g></svg>'):"Failure"===l?x=function(e,t){return e||(e="110px"),t||(t="#ff5549"),'<svg xmlns="http://www.w3.org/2000/svg" id="NXReportFailure" width="'+e+'" height="'+e+'" fill="'+t+'" fill-rule="evenodd" clip-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewBox="0 0 120 120" xml:space="preserve"><style>@-webkit-keyframes NXReportFailure4-animation{0%{opacity:0}40%,to{opacity:1}}@keyframes NXReportFailure4-animation{0%{opacity:0}40%,to{opacity:1}}@-webkit-keyframes NXReportFailure3-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@keyframes NXReportFailure3-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@-webkit-keyframes NXReportFailure5-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}50%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@keyframes NXReportFailure5-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}50%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@-webkit-keyframes NXReportFailure6-animation{0%{opacity:0}50%,to{opacity:1}}@keyframes NXReportFailure6-animation{0%{opacity:0}50%,to{opacity:1}}#NXReportFailure *{-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-timing-function:cubic-bezier(0,0,1,1);animation-timing-function:cubic-bezier(0,0,1,1)}</style><g id="NXReportFailure1"><g id="NXReportFailure2"><g style="-webkit-animation-name:NXReportFailure3-animation;animation-name:NXReportFailure3-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)"><path d="M4.35 34.95c0-16.82 13.78-30.6 30.6-30.6h50.1c16.82 0 30.6 13.78 30.6 30.6v50.1c0 16.82-13.78 30.6-30.6 30.6h-50.1c-16.82 0-30.6-13.78-30.6-30.6v-50.1zM34.95 120h50.1c19.22 0 34.95-15.73 34.95-34.95v-50.1C120 15.73 104.27 0 85.05 0h-50.1C15.73 0 0 15.73 0 34.95v50.1C0 104.27 15.73 120 34.95 120z" style="-webkit-animation-name:NXReportFailure4-animation;animation-name:NXReportFailure4-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g><g style="-webkit-animation-name:NXReportFailure5-animation;animation-name:NXReportFailure5-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)"><path d="M82.4 37.6c-.9-.9-2.37-.9-3.27 0L60 56.73 40.86 37.6a2.306 2.306 0 0 0-3.26 3.26L56.73 60 37.6 79.13c-.9.9-.9 2.37 0 3.27.45.45 1.04.68 1.63.68.59 0 1.18-.23 1.63-.68L60 63.26 79.13 82.4c.45.45 1.05.68 1.64.68.58 0 1.18-.23 1.63-.68.9-.9.9-2.37 0-3.27L63.26 60 82.4 40.86c.9-.91.9-2.36 0-3.26z" style="-webkit-animation-name:NXReportFailure6-animation;animation-name:NXReportFailure6-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g></g></g></svg>'}(n.svgSize,p.svgColor):"Warning"===l?x=function(e,t){return e||(e="110px"),t||(t="#eebf31"),'<svg xmlns="http://www.w3.org/2000/svg" id="NXReportWarning" width="'+e+'" height="'+e+'" fill="'+t+'" fill-rule="evenodd" clip-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewBox="0 0 120 120" xml:space="preserve"><style>@-webkit-keyframes NXReportWarning3-animation{0%{opacity:0}40%,to{opacity:1}}@keyframes NXReportWarning3-animation{0%{opacity:0}40%,to{opacity:1}}@-webkit-keyframes NXReportWarning2-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@keyframes NXReportWarning2-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@-webkit-keyframes NXReportWarning4-animation{0%{-webkit-transform:translate(60px,66.6px) scale(.5,.5) translate(-60px,-66.6px);transform:translate(60px,66.6px) scale(.5,.5) translate(-60px,-66.6px)}50%,to{-webkit-transform:translate(60px,66.6px) scale(1,1) translate(-60px,-66.6px);transform:translate(60px,66.6px) scale(1,1) translate(-60px,-66.6px)}60%{-webkit-transform:translate(60px,66.6px) scale(.95,.95) translate(-60px,-66.6px);transform:translate(60px,66.6px) scale(.95,.95) translate(-60px,-66.6px)}}@keyframes NXReportWarning4-animation{0%{-webkit-transform:translate(60px,66.6px) scale(.5,.5) translate(-60px,-66.6px);transform:translate(60px,66.6px) scale(.5,.5) translate(-60px,-66.6px)}50%,to{-webkit-transform:translate(60px,66.6px) scale(1,1) translate(-60px,-66.6px);transform:translate(60px,66.6px) scale(1,1) translate(-60px,-66.6px)}60%{-webkit-transform:translate(60px,66.6px) scale(.95,.95) translate(-60px,-66.6px);transform:translate(60px,66.6px) scale(.95,.95) translate(-60px,-66.6px)}}@-webkit-keyframes NXReportWarning5-animation{0%{opacity:0}50%,to{opacity:1}}@keyframes NXReportWarning5-animation{0%{opacity:0}50%,to{opacity:1}}#NXReportWarning *{-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-timing-function:cubic-bezier(0,0,1,1);animation-timing-function:cubic-bezier(0,0,1,1)}</style><g id="NXReportWarning1"><g style="-webkit-animation-name:NXReportWarning2-animation;animation-name:NXReportWarning2-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)"><path d="M115.46 106.15l-54.04-93.8c-.61-1.06-2.23-1.06-2.84 0l-54.04 93.8c-.62 1.07.21 2.29 1.42 2.29h108.08c1.21 0 2.04-1.22 1.42-2.29zM65.17 10.2l54.04 93.8c2.28 3.96-.65 8.78-5.17 8.78H5.96c-4.52 0-7.45-4.82-5.17-8.78l54.04-93.8c2.28-3.95 8.03-4 10.34 0z" style="-webkit-animation-name:NXReportWarning3-animation;animation-name:NXReportWarning3-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g><g style="-webkit-animation-name:NXReportWarning4-animation;animation-name:NXReportWarning4-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform:translate(60px,66.6px) scale(1,1) translate(-60px,-66.6px)"><path d="M57.83 94.01c0 1.2.97 2.17 2.17 2.17s2.17-.97 2.17-2.17v-3.2c0-1.2-.97-2.17-2.17-2.17s-2.17.97-2.17 2.17v3.2zm0-14.15c0 1.2.97 2.17 2.17 2.17s2.17-.97 2.17-2.17V39.21c0-1.2-.97-2.17-2.17-2.17s-2.17.97-2.17 2.17v40.65z" style="-webkit-animation-name:NXReportWarning5-animation;animation-name:NXReportWarning5-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g></g></svg>'}(n.svgSize,p.svgColor):"Info"===l&&(x=function(e,t){return e||(e="110px"),t||(t="#26c0d3"),'<svg xmlns="http://www.w3.org/2000/svg" id="NXReportInfo" width="'+e+'" height="'+e+'" fill="'+t+'" fill-rule="evenodd" clip-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewBox="0 0 120 120" xml:space="preserve"><style>@-webkit-keyframes NXReportInfo5-animation{0%{opacity:0}50%,to{opacity:1}}@keyframes NXReportInfo5-animation{0%{opacity:0}50%,to{opacity:1}}@-webkit-keyframes NXReportInfo4-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}50%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@keyframes NXReportInfo4-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}50%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@-webkit-keyframes NXReportInfo3-animation{0%{opacity:0}40%,to{opacity:1}}@keyframes NXReportInfo3-animation{0%{opacity:0}40%,to{opacity:1}}@-webkit-keyframes NXReportInfo2-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}@keyframes NXReportInfo2-animation{0%{-webkit-transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px);transform:translate(60px,60px) scale(.5,.5) translate(-60px,-60px)}40%,to{-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px);transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)}60%{-webkit-transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px);transform:translate(60px,60px) scale(.95,.95) translate(-60px,-60px)}}#NXReportInfo *{-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-timing-function:cubic-bezier(0,0,1,1);animation-timing-function:cubic-bezier(0,0,1,1)}</style><g id="NXReportInfo1"><g style="-webkit-animation-name:NXReportInfo2-animation;animation-name:NXReportInfo2-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)"><path d="M60 115.38C29.46 115.38 4.62 90.54 4.62 60 4.62 29.46 29.46 4.62 60 4.62c30.54 0 55.38 24.84 55.38 55.38 0 30.54-24.84 55.38-55.38 55.38zM60 0C26.92 0 0 26.92 0 60s26.92 60 60 60 60-26.92 60-60S93.08 0 60 0z" style="-webkit-animation-name:NXReportInfo3-animation;animation-name:NXReportInfo3-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g><g style="-webkit-animation-name:NXReportInfo4-animation;animation-name:NXReportInfo4-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform:translate(60px,60px) scale(1,1) translate(-60px,-60px)"><path d="M57.75 43.85c0-1.24 1.01-2.25 2.25-2.25s2.25 1.01 2.25 2.25v48.18c0 1.24-1.01 2.25-2.25 2.25s-2.25-1.01-2.25-2.25V43.85zm0-15.88c0-1.24 1.01-2.25 2.25-2.25s2.25 1.01 2.25 2.25v3.32c0 1.25-1.01 2.25-2.25 2.25s-2.25-1-2.25-2.25v-3.32z" style="-webkit-animation-name:NXReportInfo5-animation;animation-name:NXReportInfo5-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1)" fill="inherit" data-animator-group="true" data-animator-type="2"/></g></g></svg>'}(n.svgSize,p.svgColor)),f.innerHTML=v+'<div class="'+n.className+"-content"+(n.cssAnimation?" with-animation ":"")+" nx-"+n.cssAnimationStyle+'" style="width:'+n.width+"; background:"+n.backgroundColor+"; animation-duration:"+n.cssAnimationDuration+'ms;"><div style="width:'+n.svgSize+"; height:"+n.svgSize+';" class="'+n.className+'-icon">'+x+'</div><h5 class="'+n.className+'-title" style="font-weight:500; font-size:'+n.titleFontSize+"; color:"+p.titleColor+';">'+t+'</h5><p class="'+n.className+'-message" style="font-size:'+n.messageFontSize+"; color:"+p.messageColor+';">'+i+'</p><a id="NXReportButton" class="'+n.className+'-button" style="font-weight:500; font-size:'+n.buttonFontSize+"; background:"+p.buttonBackground+"; color:"+p.buttonColor+';">'+r+"</a></div>",!e.document.getElementById(f.id)){e.document.body.appendChild(f);var w=e.document.getElementById(f.id);e.document.getElementById("NXReportButton").addEventListener("click",(function(){"function"==typeof o&&o(),w.classList.add("remove");var e=setTimeout((function(){null!==w.parentNode&&w.parentNode.removeChild(w),clearTimeout(e)}),n.cssAnimationDuration)}))}n=m(!0,n,u)},M=function(t,n,r,o,a,l,c,d,p){if(!h("body"))return!1;i||T.Confirm.Init({});var f=m(!0,i,{});"object"!=typeof c||Array.isArray(c)||(i=m(!0,i,c)),"string"!=typeof t&&(t="Notiflix Confirm"),"string"!=typeof n&&(n="Do you agree with me?"),"string"!=typeof r&&(r="Yes"),"string"!=typeof o&&(o="No"),"function"!=typeof a&&(a=void 0),"function"!=typeof l&&(l=void 0),i.plainText&&(t=g(t),n=g(n),r=g(r),o=g(o)),i.plainText||(t.length>i.titleMaxLength&&(t="HTML Tags Error",n='Your Title content length is more than "titleMaxLength" option.',r="Okay",o="..."),n.length>i.messageMaxLength&&(t="HTML Tags Error",n='Your Message content length is more than "messageMaxLength" option.',r="Okay",o="..."),(r.length||o.length)>i.buttonsMaxLength&&(t="HTML Tags Error",n='Your Buttons contents length is more than "buttonsMaxLength" option.',r="Okay",o="...")),t.length>i.titleMaxLength&&(t=t.substring(0,i.titleMaxLength)+"..."),n.length>i.messageMaxLength&&(n=n.substring(0,i.messageMaxLength)+"..."),r.length>i.buttonsMaxLength&&(r=r.substring(0,i.buttonsMaxLength)+"..."),o.length>i.buttonsMaxLength&&(o=o.substring(0,i.buttonsMaxLength)+"..."),i.cssAnimation||(i.cssAnimationDuration=0);var v=e.document.createElement("div");v.id=u.ID,v.className=i.className+(i.cssAnimation?" with-animation nx-"+i.cssAnimationStyle:""),v.style.zIndex=i.zindex,v.style.padding=i.distance,i.rtl&&(v.setAttribute("dir","rtl"),v.classList.add("rtl-on"));var y="string"==typeof i.position?i.position.trim():"center";v.classList.add("nx-position-"+y),v.style.fontFamily='"'+i.fontFamily+'", '+s;var b="";i.backOverlay&&(b='<div class="'+i.className+"-overlay"+(i.cssAnimation?" with-animation":"")+'" style="background:'+i.backOverlayColor+";animation-duration:"+i.cssAnimationDuration+'ms;"></div>');var x="";"function"==typeof a&&(x='<a id="NXConfirmButtonCancel" class="confirm-button-cancel" style="color:'+i.cancelButtonColor+";background:"+i.cancelButtonBackground+";font-size:"+i.buttonsFontSize+';">'+o+"</a>");var w="",k=!1;if(d&&"string"==typeof p&&p.length>0&&(k=p,w='<div><input id="NXConfirmValidationInput" type="text" style="font-size:'+i.messageFontSize+";border-radius: "+i.borderRadius+';" maxlength="'+p.length+'" autocomplete="off" spellcheck="false" autocapitalize="none" /></div>'),v.innerHTML=b+'<div class="'+i.className+'-content" style="width:'+i.width+"; background:"+i.backgroundColor+"; animation-duration:"+i.cssAnimationDuration+"ms; border-radius: "+i.borderRadius+';"><div class="'+i.className+'-head"><h5 style="color:'+i.titleColor+";font-size:"+i.titleFontSize+';">'+t+'</h5><div style="color:'+i.messageColor+";font-size:"+i.messageFontSize+';">'+n+w+'</div></div><div class="'+i.className+'-buttons"><a id="NXConfirmButtonOk" class="confirm-button-ok'+("function"==typeof a?"":" full")+'" style="color:'+i.okButtonColor+";background:"+i.okButtonBackground+";font-size:"+i.buttonsFontSize+';">'+r+"</a>"+x+"</div></div>",!e.document.getElementById(v.id)){e.document.body.appendChild(v);var C=e.document.getElementById(v.id),O=e.document.getElementById("NXConfirmButtonOk"),E=e.document.getElementById("NXConfirmValidationInput");E&&(E.focus(),E.addEventListener("keyup",(function(e){(e.target.value||"").toString()!==k?(E.classList.add("nx-validation-failure"),E.classList.remove("nx-validation-success")):(E.classList.remove("nx-validation-failure"),E.classList.add("nx-validation-success"),("enter"===(e.key||"").toLocaleLowerCase("en")||13===e.keyCode)&&O.dispatchEvent(new Event("click")))}))),O.addEventListener("click",(function(e){if(d&&k&&E){if((E.value||"").toString()!==k)return E.focus(),E.classList.add("nx-validation-failure"),e.stopPropagation(),e.preventDefault(),e.returnValue=!1,e.cancelBubble=!0,!1;E.classList.remove("nx-validation-failure")}"function"==typeof a&&a(),C.classList.add("remove");var t=setTimeout((function(){null!==C.parentNode&&(C.parentNode.removeChild(C),clearTimeout(t))}),i.cssAnimationDuration)})),"function"==typeof a&&e.document.getElementById("NXConfirmButtonCancel").addEventListener("click",(function(){"function"==typeof l&&l(),C.classList.add("remove");var e=setTimeout((function(){null!==C.parentNode&&(C.parentNode.removeChild(C),clearTimeout(e))}),i.cssAnimationDuration)}))}i=m(!0,i,f)},A=function(t,n,i,o,a){if(!h("body"))return!1;r||T.Loading.Init({});var l=m(!0,r,{});if("object"==typeof t&&!Array.isArray(t)||"object"==typeof n&&!Array.isArray(n)){var c={};"object"==typeof t?c=t:"object"==typeof n&&(c=n),r=m(!0,r,c)}var u,p,v,O="";if("string"==typeof t&&t.length>0&&(O=t),o){var E="";(O=O.toString().length>r.messageMaxLength?g(O).toString().substring(0,r.messageMaxLength)+"...":g(O).toString()).length>0&&(E='<p id="'+r.messageID+'" class="loading-message" style="color:'+r.messageColor+";font-size:"+r.messageFontSize+';">'+O+"</p>"),r.cssAnimation||(r.cssAnimationDuration=0);var S="";if("standard"===i)S=y(r.svgSize,r.svgColor);else if("hourglass"===i)S=b(r.svgSize,r.svgColor);else if("circle"===i)S=x(r.svgSize,r.svgColor);else if("arrows"===i)S=w(r.svgSize,r.svgColor);else if("dots"===i)S=k(r.svgSize,r.svgColor);else if("pulse"===i)S=C(r.svgSize,r.svgColor);else if("custom"===i&&null!==r.customSvgUrl)S='<img class="custom-loading-icon" width="'+r.svgSize+'" height="'+r.svgSize+'" src="'+r.customSvgUrl+'" alt="Notiflix">';else{if("custom"===i&&null==r.customSvgUrl)return f("Notiflix Error",'You have to set a static SVG url to "customSvgUrl" option to use Loading Custom.'),!1;"notiflix"===i&&((u=r.svgSize)||(u="60px"),(p="#f8f8f8")||(p="#f8f8f8"),(v="#32c682")||(v="#32c682"),S='<svg xmlns="http://www.w3.org/2000/svg" id="NXLoadingNotiflixLib" width="'+u+'" height="'+u+'" fill-rule="evenodd" clip-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewBox="0 0 200 200" xml:space="preserve"><defs><style>@keyframes notiflix-n{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes notiflix-x{0%{stroke-dashoffset:1000}to{stroke-dashoffset:0}}@keyframes notiflix-dot{0%,to{stroke-width:0}50%{stroke-width:12}}.nx-icon-line{stroke:'+p+';stroke-width:12;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:22;fill:none}</style></defs><path d="M47.97 135.05a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13z" style="animation-name:notiflix-dot;animation-timing-function:ease-in-out;animation-duration:1.25s;animation-iteration-count:infinite;animation-direction:normal" fill="'+v+'" stroke="'+v+'" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="22" stroke-width="12"/><path class="nx-icon-line" d="M10.14 144.76V87.55c0-5.68-4.54-41.36 37.83-41.36 42.36 0 37.82 35.68 37.82 41.36v57.21" style="animation-name:notiflix-n;animation-timing-function:linear;animation-duration:2.5s;animation-delay:0s;animation-iteration-count:infinite;animation-direction:normal" stroke-dasharray="500"/><path class="nx-icon-line" d="M115.06 144.49c24.98-32.68 49.96-65.35 74.94-98.03M114.89 46.6c25.09 32.58 50.19 65.17 75.29 97.75" style="animation-name:notiflix-x;animation-timing-function:linear;animation-duration:2.5s;animation-delay:.2s;animation-iteration-count:infinite;animation-direction:normal" stroke-dasharray="500"/></svg>')}var D=parseInt((r.svgSize||"").replace(/[^0-9]/g,"")),M=e.innerWidth,A=D>=M?M-40+"px":D+"px",N='<div style="width:'+A+"; height:"+A+';" class="'+r.className+"-icon"+(O.length>0?" with-message":"")+'">'+S+"</div>",I=e.document.createElement("div");I.id=d.ID,I.className=r.className+(r.cssAnimation?" with-animation":"")+(r.clickToClose?" click-to-close":""),I.style.zIndex=r.zindex,I.style.background=r.backgroundColor,I.style.animationDuration=r.cssAnimationDuration+"ms",I.style.fontFamily='"'+r.fontFamily+'", '+s,I.style.display="flex",I.style.flexWrap="wrap",I.style.flexDirection="column",I.style.alignItems="center",I.style.justifyContent="center",r.rtl&&(I.setAttribute("dir","rtl"),I.classList.add("rtl-on")),I.innerHTML=N+E,e.document.getElementById(I.id)||(e.document.body.appendChild(I),r.clickToClose&&e.document.getElementById(I.id).addEventListener("click",(function(){I.classList.add("remove");var e=setTimeout((function(){null!==I.parentNode&&(I.parentNode.removeChild(I),clearTimeout(e))}),r.cssAnimationDuration)})))}else if(e.document.getElementById(d.ID))var _=e.document.getElementById(d.ID),L=setTimeout((function(){_.classList.add("remove");var e=setTimeout((function(){null!==_.parentNode&&(_.parentNode.removeChild(_),clearTimeout(e))}),r.cssAnimationDuration);clearTimeout(L)}),a);r=m(!0,r,l)},N=0,I=function(t,n,i,r,l,c){if("string"!=typeof n||(n||"").length<1||1===(n||"").length&&("#"===(n||"")[0]||"."===(n||"")[0]))return f("Notiflix Error","The selector parameter must be a String and matches a specified CSS selector(s)."),!1;var u=e.document.querySelectorAll(n);if(u.length<1)return f("Notiflix Error",'You called the "Notiflix.Block..." function with "'+n+'" selector, but there is no such element(s) in the document.'),!1;o||T.Block.Init({});var d=m(!0,o,{});if("object"==typeof r&&!Array.isArray(r)||"object"==typeof l&&!Array.isArray(l)){var v={};"object"==typeof r?v=r:"object"==typeof l&&(v=l),o=m(!0,o,v)}var O="";"string"==typeof r&&r.length>0&&(O=r),o.cssAnimation||(o.cssAnimationDuration=0);var E="notiflix-block";"string"==typeof o.className&&(E=o.className.trim());var S="number"==typeof o.querySelectorLimit?o.querySelectorLimit:200,D=u.length>=S?S:u.length;if(t)for(var M=0;M<D;M++){var A=u[M],I=A.querySelectorAll("[id^="+p.ID+"]");if(I.length<1){var _="";i&&(_="hourglass"===i?b(o.svgSize,o.svgColor):"circle"===i?x(o.svgSize,o.svgColor):"arrows"===i?w(o.svgSize,o.svgColor):"dots"===i?k(o.svgSize,o.svgColor):"pulse"===i?C(o.svgSize,o.svgColor):y(o.svgSize,o.svgColor));var L='<span class="'+E+'-icon" style="width:'+o.svgSize+";height:"+o.svgSize+';">'+_+"</span>",z="";O.length>0&&(O=O.length>o.messageMaxLength?g(O).substring(0,o.messageMaxLength)+"...":g(O),z='<span style="font-size:'+o.messageFontSize+";color:"+o.messageColor+';" class="'+E+'-message">'+O+"</span>"),N++;var j=e.document.createElement("div");j.id=p.ID+"-"+N,j.className=E+"-wrap"+(o.cssAnimation?" with-animation":""),j.style.position=o.position,j.style.zIndex=o.zindex,j.style.background=o.backgroundColor,j.style.animationDuration=o.cssAnimationDuration+"ms",j.style.fontFamily='"'+o.fontFamily+'", '+s,j.style.display="flex",j.style.flexWrap="wrap",j.style.flexDirection="column",j.style.alignItems="center",j.style.justifyContent="center",o.rtl&&(j.setAttribute("dir","rtl"),j.classList.add("rtl-on")),j.innerHTML=L+z;var F=e.getComputedStyle(A).getPropertyValue("position"),P="string"==typeof F?F.toLocaleLowerCase("en"):"relative",R=Math.round(1.25*parseInt(o.svgSize))+40,$="";R>(A.offsetHeight||0)&&($="min-height:"+R+"px;");var B;B=A.getAttribute("id")?"#"+A.getAttribute("id"):A.classList[0]?"."+A.classList[0]:(A.tagName||"").toLocaleLowerCase("en");var H="",W=["absolute","relative","fixed","sticky"].indexOf(P)<=-1;if(W||$.length>0){if(!h("head"))return!1;W&&(H="position:relative!important;");var V='<style id="Style-'+p.ID+"-"+N+'">'+B+"."+E+"-position{"+H+$+"}</style>",Y=e.document.createRange();Y.selectNode(e.document.head);var X=Y.createContextualFragment(V);e.document.head.appendChild(X),A.classList.add(E+"-position")}A.appendChild(j)}}else var q=function(t){var n=setTimeout((function(){null!==t.parentNode&&t.parentNode.removeChild(t);var i=t.getAttribute("id"),r=e.document.getElementById("Style-"+i);r&&null!==r.parentNode&&r.parentNode.removeChild(r),clearTimeout(n)}),o.cssAnimationDuration)},U=function(e){if(e&&e.length>0)for(var t=0;t<e.length;t++){var i=e[t];i&&(i.classList.add("remove"),q(i))}else!function(e,t){console.log("%c "+e+" ","padding:2px;border-radius:20px;color:#fff;background:#26c0d3","\n"+t+a)}("Notiflix Info",'"Notiflix.Block.Remove();" function called with "'+n+'" selector, but this selector does not have a "Notiflix.Block..." element to remove.')},K=function(e){var t=setTimeout((function(){var n=E+"-position";e.classList.remove(n),clearTimeout(t)}),o.cssAnimationDuration+300)},G=setTimeout((function(){for(var e=0;e<D;e++){var t=u[e];K(t),I=t.querySelectorAll("[id^="+p.ID+"]"),U(I)}clearTimeout(G)}),c);o=m(!0,o,d)},T={Notify:{Init:function(e){t=m(!0,l,e),v(t.useGoogleFont,t.fontFamily)},Merge:function(e){if(!t)return f("Notiflix Error","You have to initialize the Notify module before call Merge function."),!1;t=m(!0,t,e)},Success:function(e,t,n){S(e,t,n,"Success")},Failure:function(e,t,n){S(e,t,n,"Failure")},Warning:function(e,t,n){S(e,t,n,"Warning")},Info:function(e,t,n){S(e,t,n,"Info")}},Report:{Init:function(e){n=m(!0,c,e),v(n.useGoogleFont,n.fontFamily)},Merge:function(e){if(!n)return f("Notiflix Error","You have to initialize the Report module before call Merge function."),!1;n=m(!0,n,e)},Success:function(e,t,n,i,r){D(e,t,n,i,r,"Success")},Failure:function(e,t,n,i,r){D(e,t,n,i,r,"Failure")},Warning:function(e,t,n,i,r){D(e,t,n,i,r,"Warning")},Info:function(e,t,n,i,r){D(e,t,n,i,r,"Info")}},Confirm:{Init:function(e){i=m(!0,u,e),v(i.useGoogleFont,i.fontFamily)},Merge:function(e){if(!i)return f("Notiflix Error","You have to initialize the Confirm module before call Merge function."),!1;i=m(!0,i,e)},Show:function(e,t,n,i,r,o,a){M(e,t,n,i,r,o,a,!1,!1)},Ask:function(e,t,n,i,r,o,a,s){M(e,t,i,r,o,a,s,!0,n)}},Loading:{Init:function(e){r=m(!0,d,e),v(r.useGoogleFont,r.fontFamily)},Merge:function(e){if(!r)return f("Notiflix Error","You have to initialize the Loading module before call Merge function."),!1;r=m(!0,r,e)},Standard:function(e,t){A(e,t,"standard",!0,0)},Hourglass:function(e,t){A(e,t,"hourglass",!0,0)},Circle:function(e,t){A(e,t,"circle",!0,0)},Arrows:function(e,t){A(e,t,"arrows",!0,0)},Dots:function(e,t){A(e,t,"dots",!0,0)},Pulse:function(e,t){A(e,t,"pulse",!0,0)},Custom:function(e,t){A(e,t,"custom",!0,0)},Notiflix:function(e,t){A(e,t,"notiflix",!0,0)},Remove:function(e){"number"!=typeof e&&(e=0),A(!1,!1,!1,!1,e)},Change:function(t){!function(t){"string"!=typeof t&&(t="");var n=e.document.getElementById(d.ID);if(n)if(t.length>0){t=t.length>r.messageMaxLength?g(t).substring(0,r.messageMaxLength)+"...":g(t);var i=n.getElementsByTagName("p")[0];if(i)i.innerHTML=t;else{var o=e.document.createElement("p");o.id=r.messageID,o.className="loading-message new-loading-message",o.style.color=r.messageColor,o.style.fontSize=r.messageFontSize,o.innerHTML=t,n.appendChild(o)}}else f("Notiflix Error","Where is the new message?")}(t)}},Block:{Init:function(e){o=m(!0,p,e),v(o.useGoogleFont,o.fontFamily)},Merge:function(e){if(!o)return f("Notiflix Error",'You have to initialize the "Notiflix.Block" module before call Merge function.'),!1;o=m(!0,o,e)},Standard:function(e,t,n){I(!0,e,"standard",t,n)},Hourglass:function(e,t,n){I(!0,e,"hourglass",t,n)},Circle:function(e,t,n){I(!0,e,"circle",t,n)},Arrows:function(e,t,n){I(!0,e,"arrows",t,n)},Dots:function(e,t,n){I(!0,e,"dots",t,n)},Pulse:function(e,t,n){I(!0,e,"pulse",t,n)},Remove:function(e,t){"number"!=typeof t&&(t=0),I(!1,e,!1,!1,!1,t)}}};return{Notify:T.Notify,Report:T.Report,Confirm:T.Confirm,Loading:T.Loading,Block:T.Block}}(e)}("undefined"!=typeof global?global:"undefined"!=typeof window?window:this),function(e){e.Selectize=function(e,t,n){"use strict";var i=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,i=function(e){var t=0;if(3===e.nodeType){var r=e.data.search(n);if(r>=0&&e.data.length>0){var o=e.data.match(n),a=document.createElement("span");a.className="highlight";var s=e.splitText(r),l=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(l),s.parentNode.replaceChild(a,s),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&("highlight"!==e.className||"SPAN"!==e.tagName))for(var c=0;c<e.childNodes.length;++c)c+=i(e.childNodes[c]);return t};return e.each((function(){i(this)}))}};e.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()})).end()};var r=function(){};r.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},void(e in this._events!=0&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=0)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},r.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=r.prototype[t[n]]};var o=/Mac/.test(navigator.userAgent),a=o?91:17,s=o?18:17,l=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,c=function(e){return void 0!==e},u=function(e){return null==e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},p=function(e,t,n){var i,r=e.trigger,o={};for(i in e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return r.apply(e,arguments);o[n]=arguments},n.apply(e,[]),e.trigger=r,o)o.hasOwnProperty(i)&&r.apply(e,o[i])},f=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},h=function(t){var n=null,i=function(i,r){var o,a,s,l,c,u,d,p,h,g;r=r||{},(i=i||window.event||{}).metaKey||i.altKey||(r.force||!1!==t.data("grow"))&&(o=t.val(),i.type&&"keydown"===i.type.toLowerCase()&&(s=(a=i.keyCode)>=48&&a<=57||a>=65&&a<=90||a>=96&&a<=111||a>=186&&a<=222||32===a,46===a||8===a?(p=f(t[0])).length?o=o.substring(0,p.start)+o.substring(p.start+p.length):8===a&&p.start?o=o.substring(0,p.start-1)+o.substring(p.start+1):46===a&&void 0!==p.start&&(o=o.substring(0,p.start)+o.substring(p.start+1)):s&&(u=i.shiftKey,d=String.fromCharCode(i.keyCode),o+=d=u?d.toUpperCase():d.toLowerCase())),l=t.attr("placeholder"),!o&&l&&(o=l),g=t,(c=((h=o)?(m.$testInput||(m.$testInput=e("<span />").css({position:"absolute",width:"auto",padding:0,whiteSpace:"pre"}),e("<div />").css({position:"absolute",width:0,height:0,overflow:"hidden"}).append(m.$testInput).appendTo("body")),m.$testInput.text(h),function(e,t,n){var i,r,o={};if(n)for(i=0,r=n.length;i<r;i++)o[n[i]]=e.css(n[i]);else o=e.css();t.css(o)}(g,m.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),m.$testInput.width()):0)+4)!==n&&(n=c,t.width(c),t.triggerHandler("resize")))};t.on("keydown keyup update blur",i),i()},m=function(n,i){var r,o,a,s,l=this;(s=n[0]).selectize=l;var c,u,d,p=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=(a=p?p.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",e.extend(l,{order:0,settings:i,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++m.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===i.loadThrottle?l.onSearchChange:(c=l.onSearchChange,u=i.loadThrottle,function(){var e=this,t=arguments;window.clearTimeout(d),d=window.setTimeout((function(){c.apply(e,t)}),u)})}),l.sifter=new t(this.options,{diacritics:i.diacritics}),l.settings.options){for(r=0,o=l.settings.options.length;r<o;r++)l.registerOption(l.settings.options[r]);delete l.settings.options}if(l.settings.optgroups){for(r=0,o=l.settings.optgroups.length;r<o;r++)l.registerOptionGroup(l.settings.optgroups[r]);delete l.settings.optgroups}l.settings.mode=l.settings.mode||(1===l.settings.maxItems?"single":"multi"),"boolean"!=typeof l.settings.hideSelected&&(l.settings.hideSelected="multi"===l.settings.mode),l.initializePlugins(l.settings.plugins),l.setupCallbacks(),l.setupTemplates(),l.setup()};return r.mixin(m),void 0!==n?n.mixin(m):function(e,t){t||(t={});console.error("Selectize: "+e),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group&&console.groupEnd())}("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(m.prototype,{setup:function(){var t,n,i,r,c,u,d,p,f,m,g,v,y,b,x=this,w=x.settings,k=x.eventNS,C=e(window),O=e(document),E=x.$input;if(d=x.settings.mode,p=E.attr("class")||"",t=e("<div>").addClass(w.wrapperClass).addClass(p).addClass(d),n=e("<div>").addClass(w.inputClass).addClass("items").appendTo(t),i=e('<input type="text" autocomplete="new-password" autofill="no" />').appendTo(n).attr("tabindex",E.is(":disabled")?"-1":x.tabIndex),u=e(w.dropdownParent||t),r=e("<div>").addClass(w.dropdownClass).addClass(d).hide().appendTo(u),c=e("<div>").addClass(w.dropdownContentClass).appendTo(r),(m=E.attr("id"))&&(i.attr("id",m+"-selectized"),e("label[for='"+m+"']").attr("for",m+"-selectized")),x.settings.copyClassesToDropdown&&r.addClass(p),t.css({width:E[0].style.width}),x.plugins.names.length&&(f="plugin-"+x.plugins.names.join(" plugin-"),t.addClass(f),r.addClass(f)),(null===w.maxItems||w.maxItems>1)&&1===x.tagType&&E.attr("multiple","multiple"),x.settings.placeholder&&i.attr("placeholder",w.placeholder),!x.settings.splitOn&&x.settings.delimiter){var S=x.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");x.settings.splitOn=new RegExp("\\s*"+S+"+\\s*")}E.attr("autocorrect")&&i.attr("autocorrect",E.attr("autocorrect")),E.attr("autocapitalize")&&i.attr("autocapitalize",E.attr("autocapitalize")),i[0].type=E[0].type,x.$wrapper=t,x.$control=n,x.$control_input=i,x.$dropdown=r,x.$dropdown_content=c,r.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(e){e.stopImmediatePropagation()})),r.on("mouseenter","[data-selectable]",(function(){return x.onOptionHover.apply(x,arguments)})),r.on("mousedown click","[data-selectable]",(function(){return x.onOptionSelect.apply(x,arguments)})),v="mousedown",y="*:not(input)",b=function(){return x.onItemSelect.apply(x,arguments)},(g=n).on(v,y,(function(e){for(var t=e.target;t&&t.parentNode!==g[0];)t=t.parentNode;return e.currentTarget=t,b.apply(this,[e])})),h(i),n.on({mousedown:function(){return x.onMouseDown.apply(x,arguments)},click:function(){return x.onClick.apply(x,arguments)}}),i.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return x.onKeyDown.apply(x,arguments)},keyup:function(){return x.onKeyUp.apply(x,arguments)},keypress:function(){return x.onKeyPress.apply(x,arguments)},resize:function(){x.positionDropdown.apply(x,[])},blur:function(){return x.onBlur.apply(x,arguments)},focus:function(){return x.ignoreBlur=!1,x.onFocus.apply(x,arguments)},paste:function(){return x.onPaste.apply(x,arguments)}}),O.on("keydown"+k,(function(e){x.isCmdDown=e[o?"metaKey":"ctrlKey"],x.isCtrlDown=e[o?"altKey":"ctrlKey"],x.isShiftDown=e.shiftKey})),O.on("keyup"+k,(function(e){e.keyCode===s&&(x.isCtrlDown=!1),16===e.keyCode&&(x.isShiftDown=!1),e.keyCode===a&&(x.isCmdDown=!1)})),O.on("mousedown"+k,(function(e){if(x.isFocused){if(e.target===x.$dropdown[0]||e.target.parentNode===x.$dropdown[0])return!1;x.$control.has(e.target).length||e.target===x.$control[0]||x.blur(e.target)}})),C.on(["scroll"+k,"resize"+k].join(" "),(function(){x.isOpen&&x.positionDropdown.apply(x,arguments)})),C.on("mousemove"+k,(function(){x.ignoreHover=!1})),this.revertSettings={$children:E.children().detach(),tabindex:E.attr("tabindex")},E.attr("tabindex",-1).hide().after(x.$wrapper),e.isArray(w.items)&&(x.setValue(w.items),delete w.items),l&&E.on("invalid"+k,(function(e){e.preventDefault(),x.isInvalid=!0,x.refreshState()})),x.updateOriginalInput(),x.refreshItems(),x.refreshState(),x.updatePlaceholder(),x.isSetup=!0,E.is(":disabled")&&x.disable(),x.on("change",this.onChange),E.data("selectize",x),E.addClass("selectized"),x.trigger("initialize"),!0===w.preload&&x.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,i=t.settings.optgroupLabelField,r={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[i])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>…</div>"}};t.settings.render=e.extend({},r,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur",dropdown_item_activate:"onDropdownItemActivate",dropdown_item_deactivate:"onDropdownItemDeactivate"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){var t=this;t.isFocused&&t.isOpen||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,i=t.isDefaultPrevented();if(e(t.target),n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():i||n.setActiveItem(null),!1}else i||window.setTimeout((function(){n.focus()}),0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout((function(){var t=n.$control_input.val();if(t.match(n.settings.splitOn))for(var i=e.trim(t).split(n.settings.splitOn),r=0,o=i.length;r<o;r++)n.createItem(i[r])}),0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){e.target,this.$control_input[0];var t=this;if(t.isLocked)9!==e.keyCode&&e.preventDefault();else{switch(e.keyCode){case 65:if(t.isCmdDown)return void t.selectAll();break;case 27:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(t.$activeOption){t.ignoreHover=!0;var i=t.getAdjacentOption(t.$activeOption,-1);i.length&&t.setActiveOption(i,!0,!0)}return void e.preventDefault();case 13:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault()));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),void(t.settings.create&&t.createItem()&&e.preventDefault());case 8:case 46:return void t.deleteSelection(e)}!t.isFull()&&!t.isInputHidden||(o?e.metaKey:e.ctrlKey)||e.preventDefault()}},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load((function(i){n.apply(t,[e,i])}))))},onFocus:function(e){var t=this,n=t.isFocused;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var i=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),t&&t.focus&&t.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,i):i()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,i,r=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(i=e(t.currentTarget)).hasClass("create")?r.createItem(null,(function(){r.settings.closeAfterSelect&&r.close()})):void 0!==(n=i.attr("data-value"))&&(r.lastQuery=null,r.setTextboxValue(""),r.addItem(n),r.settings.closeAfterSelect?r.close():!r.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&r.setActiveOption(r.getOption(n)))},onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){p(this,t?[]:["change"],(function(){this.clear(t),this.addItems(e,t)}))},setMaxItems:function(e){0===e&&(e=null),this.settings.maxItems=e,this.settings.mode=this.settings.mode||(1===this.settings.maxItems?"single":"multi"),this.refreshState()},setActiveItem:function(t,n){var i,r,o,a,s,l,c,u,d=this;if("single"!==d.settings.mode){if(!(t=e(t)).length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if("mousedown"===(i=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(u=d.$control.children(".active:last"),(a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[u[0]]))>(s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]))&&(c=a,a=s,s=c),r=a;r<=s;r++)l=d.$control[0].childNodes[r],-1===d.$activeItems.indexOf(l)&&(e(l).addClass("active"),d.$activeItems.push(l));n.preventDefault()}else"mousedown"===i&&d.isCtrlDown||"keydown"===i&&this.isShiftDown?t.hasClass("active")?(o=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(o,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,i){var r,o,a,s,l,u=this;u.$activeOption&&(u.$activeOption.removeClass("active"),u.trigger("dropdown_item_deactivate",u.$activeOption.attr("data-value"))),u.$activeOption=null,(t=e(t)).length&&(u.$activeOption=t.addClass("active"),u.isOpen&&u.trigger("dropdown_item_activate",u.$activeOption.attr("data-value")),!n&&c(n)||(r=u.$dropdown_content.height(),o=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,s=a=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,l=a-r+o,a+o>r+n?u.$dropdown_content.stop().animate({scrollTop:l},i?u.settings.scrollDuration:0):a<n&&u.$dropdown_content.stop().animate({scrollTop:s},i?u.settings.scrollDuration:0)))},selectAll:function(){var e=this;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout((function(){e.ignoreFocus=!1,e.onFocus()}),0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}},search:function(t){var n,i,r,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&"function"!=typeof(r=o.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==o.lastQuery?(o.lastQuery=t,i=o.sifter.search(t,e.extend(s,{score:r})),o.currentResults=i):i=e.extend(!0,{},o.currentResults),a.hideSelected)for(n=i.items.length-1;n>=0;n--)-1!==o.items.indexOf(u(i.items[n].id))&&i.items.splice(n,1);return i},refreshOptions:function(t){var n,r,o,a,s,l,c,d,p,f,h,m,g,v,y,b;void 0===t&&(t=!0);var x,w,k=this,C=e.trim(k.$control_input.val()),O=k.search(C),E=k.$dropdown_content,S=k.$activeOption&&u(k.$activeOption.attr("data-value"));for(a=O.items.length,"number"==typeof k.settings.maxOptions&&(a=Math.min(a,k.settings.maxOptions)),s={},l=[],n=0;n<a;n++)for(c=k.options[O.items[n].id],d=k.render("option",c),p=c[k.settings.optgroupField]||"",r=0,o=(f=e.isArray(p)?p:[p])&&f.length;r<o;r++)p=f[r],k.optgroups.hasOwnProperty(p)||(p=""),s.hasOwnProperty(p)||(s[p]=document.createDocumentFragment(),l.push(p)),s[p].appendChild(d);for(this.settings.lockOptgroupOrder&&l.sort((function(e,t){return(k.optgroups[e].$order||0)-(k.optgroups[t].$order||0)})),h=document.createDocumentFragment(),n=0,a=l.length;n<a;n++)p=l[n],k.optgroups.hasOwnProperty(p)&&s[p].childNodes.length?((m=document.createDocumentFragment()).appendChild(k.render("optgroup_header",k.optgroups[p])),m.appendChild(s[p]),h.appendChild(k.render("optgroup",e.extend({},k.optgroups[p],{html:(x=m,w=void 0,w=document.createElement("div"),w.appendChild(x.cloneNode(!0)),w.innerHTML),dom:m})))):h.appendChild(s[p]);if(E.html(h),k.settings.highlight&&(E.removeHighlight(),O.query.length&&O.tokens.length))for(n=0,a=O.tokens.length;n<a;n++)i(E,O.tokens[n].regex);if(!k.settings.hideSelected)for(k.$dropdown.find(".selected").removeClass("selected"),n=0,a=k.items.length;n<a;n++)k.getOption(k.items[n]).addClass("selected");(g=k.canCreate(C))&&(E.prepend(k.render("option_create",{input:C})),b=e(E[0].childNodes[0])),k.hasOptions=O.items.length>0||g,k.hasOptions?(O.items.length>0?((y=S&&k.getOption(S))&&y.length?v=y:"single"===k.settings.mode&&k.items.length&&(v=k.getOption(k.items[0])),v&&v.length||(v=b&&!k.settings.addPrecedence?k.getAdjacentOption(b,1):E.find("[data-selectable]:first"))):v=b,k.setActiveOption(v),t&&!k.isOpen&&k.open()):(k.setActiveOption(null),t&&k.isOpen&&k.close())},addOption:function(t){var n,i,r,o=this;if(e.isArray(t))for(n=0,i=t.length;n<i;n++)o.addOption(t[n]);else(r=o.registerOption(t))&&(o.userOptions[r]=!0,o.lastQuery=null,o.trigger("option_add",r,t))},registerOption:function(e){var t=u(e[this.settings.valueField]);return null!=t&&!this.options.hasOwnProperty(t)&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=u(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var i,r,o,a,s,l,c,d=this;if(t=u(t),o=u(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof o)throw new Error("Value must be set in option data");c=d.options[t].$order,o!==t&&(delete d.options[t],-1!==(a=d.items.indexOf(t))&&d.items.splice(a,1,o)),n.$order=n.$order||c,d.options[o]=n,s=d.renderCache.item,l=d.renderCache.option,s&&(delete s[t],delete s[o]),l&&(delete l[t],delete l[o]),-1!==d.items.indexOf(o)&&(i=d.getItem(t),r=e(d.render("item",n)),i.hasClass("active")&&r.addClass("active"),i.replaceWith(r)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=u(e);var i=n.renderCache.item,r=n.renderCache.option;i&&delete i[e],r&&delete r[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(t){var n=this;n.loadedSearches={},n.userOptions={},n.renderCache={};var i=n.options;e.each(n.options,(function(e,t){-1==n.items.indexOf(e)&&delete i[e]})),n.options=n.sifter.items=i,n.lastQuery=null,n.trigger("option_clear"),n.clear(t)},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var i=this.$dropdown.find("[data-selectable]"),r=i.index(t)+n;return r>=0&&r<i.length?i.eq(r):e()},getElementWithValue:function(t,n){if(null!=(t=u(t)))for(var i=0,r=n.length;i<r;i++)if(n[i].getAttribute("data-value")===t)return e(n[i]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){this.buffer=document.createDocumentFragment();for(var i=this.$control[0].childNodes,r=0;r<i.length;r++)this.buffer.appendChild(i[r]);for(var o=e.isArray(t)?t:[t],a=(r=0,o.length);r<a;r++)this.isPending=r<a-1,this.addItem(o[r],n);var s=this.$control[0];s.insertBefore(this.buffer,s.firstChild),this.buffer=null},addItem:function(t,n){p(this,n?[]:["change"],(function(){var i,r,o,a,s,l=this,c=l.settings.mode;t=u(t),-1===l.items.indexOf(t)?l.options.hasOwnProperty(t)&&("single"===c&&l.clear(n),"multi"===c&&l.isFull()||(i=e(l.render("item",l.options[t])),s=l.isFull(),l.items.splice(l.caretPos,0,t),l.insertAtCaret(i),(!l.isPending||!s&&l.isFull())&&l.refreshState(),l.isSetup&&(o=l.$dropdown_content.find("[data-selectable]"),l.isPending||(r=l.getOption(t),a=l.getAdjacentOption(r,1).attr("data-value"),l.refreshOptions(l.isFocused&&"single"!==c),a&&l.setActiveOption(l.getOption(a))),!o.length||l.isFull()?l.close():l.isPending||l.positionDropdown(),l.updatePlaceholder(),l.trigger("item_add",t,i),l.isPending||l.updateOriginalInput({silent:n})))):"single"===c&&l.close()}))},removeItem:function(t,n){var i,r,o,a=this;i=t instanceof e?t:a.getItem(t),t=u(i.attr("data-value")),-1!==(r=a.items.indexOf(t))&&(i.remove(),i.hasClass("active")&&(o=a.$activeItems.indexOf(i[0]),a.$activeItems.splice(o,1)),a.items.splice(r,1),a.lastQuery=null,!a.settings.persist&&a.userOptions.hasOwnProperty(t)&&a.removeOption(t,n),r<a.caretPos&&a.setCaret(a.caretPos-1),a.refreshState(),a.updatePlaceholder(),a.updateOriginalInput({silent:n}),a.positionDropdown(),a.trigger("item_remove",t,i))},createItem:function(t,n){var i=this,r=i.caretPos;t=t||e.trim(i.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!i.canCreate(t))return o(),!1;i.lock();var a,s,l="function"==typeof i.settings.create?this.settings.create:function(e){var t={};return t[i.settings.labelField]=e,t[i.settings.valueField]=e,t},c=(a=function(e){if(i.unlock(),!e||"object"!=typeof e)return o();var t=u(e[i.settings.valueField]);if("string"!=typeof t)return o();i.setTextboxValue(""),i.addOption(e),i.setCaret(r),i.addItem(t),i.refreshOptions(n&&"single"!==i.settings.mode),o(e)},s=!1,function(){s||(s=!0,a.apply(this,arguments))}),d=l.apply(this,[t,c]);return void 0!==d&&c(d),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var e=!this.items.length;this.isInvalid=e,this.$control_input.prop("required",e),this.$input.prop("required",!e)},refreshClasses:function(){var t=this,n=t.isFull(),i=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",i).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!i)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,r,o=this;if(e=e||{},1===o.tagType){for(i=[],t=0,n=o.items.length;t<n;t++)r=o.options[o.items[t]][o.settings.labelField]||"",i.push('<option value="'+d(o.items[t])+'" selected="selected">'+d(r)+"</option>");i.length||this.$input.attr("multiple")||i.push('<option value="" selected="selected"></option>'),o.$input.html(i.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(e.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.isBlurring||e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e[0].getBoundingClientRect().width,top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(e){var t=Math.min(this.caretPos,this.items.length),n=e[0],i=this.buffer||this.$control[0];0===t?i.insertBefore(n,i.firstChild):i.insertBefore(n,i.childNodes[t]),this.setCaret(t+1)},deleteSelection:function(t){var n,i,r,o,a,s,l,c,u,d=this;if(r=t&&8===t.keyCode?-1:1,o=f(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(l=d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),a=[],d.$activeItems.length){for(u=d.$control.children(".active:"+(r>0?"last":"first")),s=d.$control.children(":not(input)").index(u),r>0&&s++,n=0,i=d.$activeItems.length;n<i;n++)a.push(e(d.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(r<0&&0===o.start&&0===o.length?a.push(d.items[d.caretPos-1]):r>0&&o.start===d.$control_input.val().length&&a.push(d.items[d.caretPos]));if(!a.length||"function"==typeof d.settings.onDelete&&!1===d.settings.onDelete.apply(d,[a]))return!1;for(void 0!==s&&d.setCaret(s);a.length;)d.removeItem(a.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),l&&(c=d.getOption(l)).length&&d.setActiveOption(c),!0},advanceSelection:function(e,t){var n,i,r,o,a,s=this;0!==e&&(s.rtl&&(e*=-1),n=e>0?"last":"first",i=f(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(o=s.$control_input.val().length,(e<0?0===i.start&&0===i.length:i.start===o)&&!o&&s.advanceCaret(e,t)):(a=s.$control.children(".active:"+n)).length&&(r=s.$control.children(":not(input)").index(a),s.setActiveItem(null),s.setCaret(e>0?r+1:r)))},advanceCaret:function(e,t){var n,i,r=this;0!==e&&(n=e>0?"next":"prev",r.isShiftDown?(i=r.$control_input[n]()).length&&(r.hideInput(),r.setActiveItem(i),t&&t.preventDefault()):r.setCaret(r.caretPos+e))},setCaret:function(t){var n,i,r,o,a=this;if(t="single"===a.settings.mode?a.items.length:Math.max(0,Math.min(a.items.length,t)),!a.isPending)for(n=0,i=(r=a.$control.children(":not(input)")).length;n<i;n++)o=e(r[n]).detach(),n<t?a.$control_input.before(o):a.$control.append(o);a.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,i=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(i.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:i.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),0==--m.count&&m.$testInput&&(m.$testInput.remove(),m.$testInput=void 0),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(t,n){var i,r,o="",a=!1,s=this;return"option"!==t&&"item"!==t||(a=!!(i=u(n[s.settings.valueField]))),a&&(c(s.renderCache[t])||(s.renderCache[t]={}),s.renderCache[t].hasOwnProperty(i))?s.renderCache[t][i]:(o=e(s.settings.render[t].apply(this,[n,d])),"option"===t||"option_create"===t?n[s.settings.disabledField]||o.attr("data-selectable",""):"optgroup"===t&&(r=n[s.settings.optgroupValueField]||"",o.attr("data-group",r),n[s.settings.disabledField]&&o.attr("data-disabled","")),"option"!==t&&"item"!==t||o.attr("data-value",i||""),a&&(s.renderCache[t][i]=o[0]),o[0])},clearCache:function(e){void 0===e?this.renderCache={}:delete this.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return e.length&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),m.count=0,m.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!0,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,i=e.extend({},n,t),r=i.dataAttr,o=i.labelField,a=i.valueField,s=i.disabledField,l=i.optgroupField,c=i.optgroupLabelField,d=i.optgroupValueField;return this.each((function(){if(!this.selectize){var p=e(this),f=this.tagName.toLowerCase(),h=p.attr("placeholder")||p.attr("data-placeholder");h||i.allowEmptyOption||(h=p.children('option[value=""]').text());var g={placeholder:h,options:[],optgroups:[],items:[]};"select"===f?function(t,n){var p,f,h,m,g=n.options,v={},y=function(e){var t=r&&e.attr(r);return"string"==typeof t&&t.length?JSON.parse(t):null},b=function(t,r){t=e(t);var c=u(t.val());if(c||i.allowEmptyOption)if(v.hasOwnProperty(c)){if(r){var d=v[c][l];d?e.isArray(d)?d.push(r):v[c][l]=[d,r]:v[c][l]=r}}else{var p=y(t)||{};p[o]=p[o]||t.text(),p[a]=p[a]||c,p[s]=p[s]||t.prop("disabled"),p[l]=p[l]||r,v[c]=p,g.push(p),t.is(":selected")&&n.items.push(c)}},x=function(t){var i,r,o,a,l;for((o=(t=e(t)).attr("label"))&&((a=y(t)||{})[c]=o,a[d]=o,a[s]=t.prop("disabled"),n.optgroups.push(a)),i=0,r=(l=e("option",t)).length;i<r;i++)b(l[i],o)};for(n.maxItems=t.attr("multiple")?null:1,p=0,f=(m=t.children()).length;p<f;p++)"optgroup"===(h=m[p].tagName.toLowerCase())?x(m[p]):"option"===h&&b(m[p])}(p,g):function(t,n){var s,l,c,u,d=t.attr(r);if(d)for(n.options=JSON.parse(d),s=0,l=n.options.length;s<l;s++)n.items.push(n.options[s][a]);else{var p=e.trim(t.val()||"");if(!i.allowEmptyOption&&!p.length)return;for(s=0,l=(c=p.split(i.delimiter)).length;s<l;s++)(u={})[o]=c[s],u[a]=c[s],n.options.push(u);n.items=c}}(p,g),new m(p,e.extend(!0,{},n,g,t))}}))},e.fn.selectize.defaults=m.defaults,e.fn.selectize.support={validity:l},m.define("drag_drop",(function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n,i=this;i.lock=(n=i.lock,function(){var e=i.$control.data("sortable");return e&&e.disable(),n.apply(i,arguments)}),i.unlock=function(){var e=i.unlock;return function(){var t=i.$control.data("sortable");return t&&t.enable(),e.apply(i,arguments)}}(),i.setup=function(){var t=i.setup;return function(){t.apply(this,arguments);var n=i.$control.sortable({items:"[data-value]",tolerance:"pointer",forceHelperSize:!0,forcePlaceholderSize:!0,disabled:i.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),n.css({overflow:"visible"})},stop:function(){n.css({overflow:"hidden"});var t=i.$activeItems?i.$activeItems.slice():null,r=[];n.children("[data-value]").each((function(){r.push(e(this).attr("data-value"))})),i.setValue(r),i.setActiveItem(t)}})}}()}})),m.define("restore_on_backspace",(function(e){var t;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=(t=this.onKeyDown,function(n){var i,r;return!n.ctrlKey&&8===n.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(i=this.caretPos-1)>=0&&i<this.items.length?(r=this.options[this.items[i]],this.deleteSelection(n)&&(this.setTextboxValue(e.text.apply(this,[r])),this.refreshOptions(!0)),void n.preventDefault()):t.apply(this,arguments)})})),m}(e.jQuery,e.Sifter,e.MicroPlugin)}(this),Selectize.define("simplebar",(function(e){this.on("initialize",(function(){var e=this.$dropdown.get(0);e&&new SimpleBar(e)}))})),function(e,t){(e=e||self).SimpleBar=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n,i,r,o="object",a=function(e){return e&&e.Math==Math&&e},s=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof e==o&&e)||Function("return this")(),l=function(e){try{return!!e()}catch(e){return!0}},c=!l((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p={f:d&&!u.call({1:2},1)?function(e){var t=d(this,e);return!!t&&t.enumerable}:u},f=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h={}.toString,m=function(e){return h.call(e).slice(8,-1)},g="".split,v=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==m(e)?g.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return v(y(e))},x=function(e){return"object"==typeof e?null!==e:"function"==typeof e},w=function(e,t){if(!x(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!x(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!x(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!x(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,C=function(e,t){return k.call(e,t)},O=s.document,E=x(O)&&x(O.createElement),S=function(e){return E?O.createElement(e):{}},D=!c&&!l((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,A=c?M:function(e,t){if(e=b(e),t=w(t,!0),D)try{return M(e,t)}catch(e){}if(C(e,t))return f(!p.f.call(e,t),e[t])},N={f:A},I=function(e){if(!x(e))throw TypeError(String(e)+" is not an object");return e},T=Object.defineProperty,_=c?T:function(e,t,n){if(I(e),t=w(t,!0),I(n),D)try{return T(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},L={f:_},z=c?function(e,t,n){return L.f(e,t,f(1,n))}:function(e,t,n){return e[t]=n,e},j=function(e,t){try{z(s,e,t)}catch(n){s[e]=t}return t},F=t((function(e){var t="__core-js_shared__",n=s[t]||j(t,{});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),P=F("native-function-to-string",Function.toString),R=s.WeakMap,$="function"==typeof R&&/native code/.test(P.call(R)),B=0,H=Math.random(),W=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++B+H).toString(36)},V=F("keys"),Y=function(e){return V[e]||(V[e]=W(e))},X={},q=s.WeakMap;if($){var U=new q,K=U.get,G=U.has,Q=U.set;n=function(e,t){return Q.call(U,e,t),t},i=function(e){return K.call(U,e)||{}},r=function(e){return G.call(U,e)}}else{var J=Y("state");X[J]=!0,n=function(e,t){return z(e,J,t),t},i=function(e){return C(e,J)?e[J]:{}},r=function(e){return C(e,J)}}var Z={set:n,get:i,has:r,enforce:function(e){return r(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var n;if(!x(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ee=t((function(e){var t=Z.get,n=Z.enforce,i=String(P).split("toString");F("inspectSource",(function(e){return P.call(e)})),(e.exports=function(e,t,r,o){var a=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof r&&("string"!=typeof t||C(r,"name")||z(r,"name",t),n(r).source=i.join("string"==typeof t?t:"")),e!==s?(a?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=r:z(e,t,r)):l?e[t]=r:j(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||P.call(this)}))})),te=s,ne=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?ne(te[e])||ne(s[e]):te[e]&&te[e][t]||s[e]&&s[e][t]},re=Math.ceil,oe=Math.floor,ae=function(e){return isNaN(e=+e)?0:(e>0?oe:re)(e)},se=Math.min,le=function(e){return e>0?se(ae(e),9007199254740991):0},ce=Math.max,ue=Math.min,de=function(e){return function(t,n,i){var r,o=b(t),a=le(o.length),s=function(e,t){var n=ae(e);return n<0?ce(n+t,0):ue(n,t)}(i,a);if(e&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},pe=(de(!0),de(!1)),fe=function(e,t){var n,i=b(e),r=0,o=[];for(n in i)!C(X,n)&&C(i,n)&&o.push(n);for(;t.length>r;)C(i,n=t[r++])&&(~pe(o,n)||o.push(n));return o},he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=he.concat("length","prototype"),ge=Object.getOwnPropertyNames||function(e){return fe(e,me)},ve={f:ge},ye={f:Object.getOwnPropertySymbols},be=ie("Reflect","ownKeys")||function(e){var t=ve.f(I(e)),n=ye.f;return n?t.concat(n(e)):t},xe=function(e,t){for(var n=be(t),i=L.f,r=N.f,o=0;o<n.length;o++){var a=n[o];C(e,a)||i(e,a,r(t,a))}},we=/#|\.prototype\./,ke=function(e,t){var n=Oe[Ce(e)];return n==Se||n!=Ee&&("function"==typeof t?l(t):!!t)},Ce=ke.normalize=function(e){return String(e).replace(we,".").toLowerCase()},Oe=ke.data={},Ee=ke.NATIVE="N",Se=ke.POLYFILL="P",De=ke,Me=N.f,Ae=function(e,t){var n,i,r,o,a,l=e.target,c=e.global,u=e.stat;if(n=c?s:u?s[l]||j(l,{}):(s[l]||{}).prototype)for(i in t){if(o=t[i],r=e.noTargetGet?(a=Me(n,i))&&a.value:n[i],!De(c?i:l+(u?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;xe(o,r)}(e.sham||r&&r.sham)&&z(o,"sham",!0),ee(n,i,o,e)}},Ne=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ie=function(e,t,n){if(Ne(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},Te=function(e){return Object(y(e))},_e=Array.isArray||function(e){return"Array"==m(e)},Le=!!Object.getOwnPropertySymbols&&!l((function(){return!String(Symbol())})),ze=s.Symbol,je=F("wks"),Fe=function(e){return je[e]||(je[e]=Le&&ze[e]||(Le?ze:W)("Symbol."+e))},Pe=Fe("species"),Re=function(e,t){var n;return _e(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!_e(n.prototype)?x(n)&&null===(n=n[Pe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},$e=[].push,Be=function(e){var t=1==e,n=2==e,i=3==e,r=4==e,o=6==e,a=5==e||o;return function(s,l,c,u){for(var d,p,f=Te(s),h=v(f),m=Ie(l,c,3),g=le(h.length),y=0,b=u||Re,x=t?b(s,g):n?b(s,0):void 0;g>y;y++)if((a||y in h)&&(p=m(d=h[y],y,f),e))if(t)x[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:$e.call(x,d)}else if(r)return!1;return o?-1:i||r?r:x}},He={forEach:Be(0),map:Be(1),filter:Be(2),some:Be(3),every:Be(4),find:Be(5),findIndex:Be(6)},We=function(e,t){var n=[][e];return!n||!l((function(){n.call(null,t||function(){throw 1},1)}))},Ve=He.forEach,Ye=We("forEach")?function(e){return Ve(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach;Ae({target:"Array",proto:!0,forced:[].forEach!=Ye},{forEach:Ye});var Xe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var qe in Xe){var Ue=s[qe],Ke=Ue&&Ue.prototype;if(Ke&&Ke.forEach!==Ye)try{z(Ke,"forEach",Ye)}catch(e){Ke.forEach=Ye}}var Ge=!("undefined"==typeof window||!window.document||!window.document.createElement),Qe=Fe("species"),Je=He.filter;Ae({target:"Array",proto:!0,forced:!!l((function(){var e=[];return(e.constructor={})[Qe]=function(){return{foo:1}},1!==e.filter(Boolean).foo}))},{filter:function(e){return Je(this,e,arguments.length>1?arguments[1]:void 0)}});var Ze=Object.keys||function(e){return fe(e,he)},et=c?Object.defineProperties:function(e,t){I(e);for(var n,i=Ze(t),r=i.length,o=0;r>o;)L.f(e,n=i[o++],t[n]);return e},tt=ie("document","documentElement"),nt=Y("IE_PROTO"),it="prototype",rt=function(){},ot=function(){var e,t=S("iframe"),n=he.length,i="script",r="java"+i+":";for(t.style.display="none",tt.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write("<"+i+">document.F=Object</"+i+">"),e.close(),ot=e.F;n--;)delete ot[it][he[n]];return ot()},at=Object.create||function(e,t){var n;return null!==e?(rt[it]=I(e),n=new rt,rt[it]=null,n[nt]=e):n=ot(),void 0===t?n:et(n,t)};X[nt]=!0;var st=Fe("unscopables"),lt=Array.prototype;null==lt[st]&&z(lt,st,at(null));var ct,ut,dt,pt=function(e){lt[st][e]=!0},ft={},ht=!l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mt=Y("IE_PROTO"),gt=Object.prototype,vt=ht?Object.getPrototypeOf:function(e){return e=Te(e),C(e,mt)?e[mt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?gt:null},yt=Fe("iterator"),bt=!1;[].keys&&("next"in(dt=[].keys())?(ut=vt(vt(dt)))!==Object.prototype&&(ct=ut):bt=!0),null==ct&&(ct={}),C(ct,yt)||z(ct,yt,(function(){return this}));var xt={IteratorPrototype:ct,BUGGY_SAFARI_ITERATORS:bt},wt=L.f,kt=Fe("toStringTag"),Ct=function(e,t,n){e&&!C(e=n?e:e.prototype,kt)&&wt(e,kt,{configurable:!0,value:t})},Ot=xt.IteratorPrototype,Et=function(){return this},St=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return I(n),function(e){if(!x(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(i),t?e.call(n,i):n.__proto__=i,n}}():void 0),Dt=xt.IteratorPrototype,Mt=xt.BUGGY_SAFARI_ITERATORS,At=Fe("iterator"),Nt="keys",It="values",Tt="entries",_t=function(){return this},Lt=function(e,t,n,i,r,o,a){!function(e,t,n){var i=t+" Iterator";e.prototype=at(Ot,{next:f(1,n)}),Ct(e,i,!1),ft[i]=Et}(n,t,i);var s,l,c,u=function(e){if(e===r&&g)return g;if(!Mt&&e in h)return h[e];switch(e){case Nt:case It:case Tt:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,h=e.prototype,m=h[At]||h["@@iterator"]||r&&h[r],g=!Mt&&m||u(r),v="Array"==t&&h.entries||m;if(v&&(s=vt(v.call(new e)),Dt!==Object.prototype&&s.next&&(vt(s)!==Dt&&(St?St(s,Dt):"function"!=typeof s[At]&&z(s,At,_t)),Ct(s,d,!0))),r==It&&m&&m.name!==It&&(p=!0,g=function(){return m.call(this)}),h[At]!==g&&z(h,At,g),ft[t]=g,r)if(l={values:u(It),keys:o?g:u(Nt),entries:u(Tt)},a)for(c in l)(Mt||p||!(c in h))&&ee(h,c,l[c]);else Ae({target:t,proto:!0,forced:Mt||p},l);return l},zt="Array Iterator",jt=Z.set,Ft=Z.getterFor(zt),Pt=Lt(Array,"Array",(function(e,t){jt(this,{type:zt,target:b(e),index:0,kind:t})}),(function(){var e=Ft(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values");ft.Arguments=ft.Array,pt("keys"),pt("values"),pt("entries");var Rt=Object.assign,$t=!Rt||l((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=Rt({},e)[n]||Ze(Rt({},t)).join("")!=i}))?function(e,t){for(var n=Te(e),i=arguments.length,r=1,o=ye.f,a=p.f;i>r;)for(var s,l=v(arguments[r++]),u=o?Ze(l).concat(o(l)):Ze(l),d=u.length,f=0;d>f;)s=u[f++],c&&!a.call(l,s)||(n[s]=l[s]);return n}:Rt;Ae({target:"Object",stat:!0,forced:Object.assign!==$t},{assign:$t});var Bt=Fe("toStringTag"),Ht="Arguments"==m(function(){return arguments}()),Wt=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Bt))?n:Ht?m(t):"Object"==(i=m(t))&&"function"==typeof t.callee?"Arguments":i},Vt={};Vt[Fe("toStringTag")]="z";var Yt="[object z]"!==String(Vt)?function(){return"[object "+Wt(this)+"]"}:Vt.toString,Xt=Object.prototype;Yt!==Xt.toString&&ee(Xt,"toString",Yt,{unsafe:!0});var qt="\t\n\v\f\r \u2028\u2029\ufeff",Ut="["+qt+"]",Kt=RegExp("^"+Ut+Ut+"*"),Gt=RegExp(Ut+Ut+"*$"),Qt=function(e){return function(t){var n=String(y(t));return 1&e&&(n=n.replace(Kt,"")),2&e&&(n=n.replace(Gt,"")),n}},Jt=(Qt(1),Qt(2),Qt(3)),Zt=s.parseInt,en=/^[+-]?0[Xx]/,tn=8!==Zt(qt+"08")||22!==Zt(qt+"0x16")?function(e,t){var n=Jt(String(e));return Zt(n,t>>>0||(en.test(n)?16:10))}:Zt;Ae({global:!0,forced:parseInt!=tn},{parseInt:tn});var nn=function(e){return function(t,n){var i,r,o=String(y(t)),a=ae(n),s=o.length;return a<0||a>=s?e?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?e?o.charAt(a):i:e?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},rn={codeAt:nn(!1),charAt:nn(!0)},on=rn.charAt,an="String Iterator",sn=Z.set,ln=Z.getterFor(an);Lt(String,"String",(function(e){sn(this,{type:an,string:String(e),index:0})}),(function(){var e,t=ln(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=on(n,i),t.index+=e.length,{value:e,done:!1})}));var cn=function(e,t,n){for(var i in t)ee(e,i,t[i],n);return e},un=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),dn=t((function(e){var t=L.f,n=W("meta"),i=0,r=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++i,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!x(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!C(e,n)){if(!r(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!C(e,n)){if(!r(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return un&&a.REQUIRED&&r(e)&&!C(e,n)&&o(e),e}};X[n]=!0})),pn=(dn.REQUIRED,dn.fastKey,dn.getWeakData,dn.onFreeze,Fe("iterator")),fn=Array.prototype,hn=Fe("iterator"),mn=function(e,t,n,i){try{return i?t(I(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&I(r.call(e)),t}},gn=t((function(e){var t=function(e,t){this.stopped=e,this.result=t},n=e.exports=function(e,n,i,r,o){var a,s,l,c,u,d,p,f=Ie(n,i,r?2:1);if(o)a=e;else{if(s=function(e){if(null!=e)return e[hn]||e["@@iterator"]||ft[Wt(e)]}(e),"function"!=typeof s)throw TypeError("Target is not iterable");if(void 0!==(p=s)&&(ft.Array===p||fn[pn]===p)){for(l=0,c=le(e.length);c>l;l++)if((u=r?f(I(d=e[l])[0],d[1]):f(e[l]))&&u instanceof t)return u;return new t(!1)}a=s.call(e)}for(;!(d=a.next()).done;)if((u=mn(a,f,d.value,r))&&u instanceof t)return u;return new t(!1)};n.stop=function(e){return new t(!0,e)}})),vn=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},yn=Fe("iterator"),bn=!1;try{var xn=0,wn={next:function(){return{done:!!xn++}},return:function(){bn=!0}};wn[yn]=function(){return this},Array.from(wn,(function(){throw 2}))}catch(e){}var kn=function(e,t,n,i,r){var o=s[e],a=o&&o.prototype,c=o,u=i?"set":"add",d={},p=function(e){var t=a[e];ee(a,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(r&&!x(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return r&&!x(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(r&&!x(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(De(e,"function"!=typeof o||!(r||a.forEach&&!l((function(){(new o).entries().next()})))))c=n.getConstructor(t,e,i,u),dn.REQUIRED=!0;else if(De(e,!0)){var f=new c,h=f[u](r?{}:-0,1)!=f,m=l((function(){f.has(1)})),g=function(){if(!bn)return!1;var e=!1;try{var t={};t[yn]=function(){return{next:function(){return{done:e=!0}}}},new o(t)}catch(e){}return e}(),v=!r&&l((function(){for(var e=new o,t=5;t--;)e[u](t,t);return!e.has(-0)}));g||((c=t((function(t,n){vn(t,c,e);var r=function(e,t,n){var i,r;return St&&"function"==typeof(i=t.constructor)&&i!==n&&x(r=i.prototype)&&r!==n.prototype&&St(e,r),e}(new o,t,c);return null!=n&&gn(n,r[u],r,i),r}))).prototype=a,a.constructor=c),(m||v)&&(p("delete"),p("has"),i&&p("get")),(v||h)&&p(u),r&&a.clear&&delete a.clear}return d[e]=c,Ae({global:!0,forced:c!=o},d),Ct(c,e),r||n.setStrong(c,e,i),c},Cn=dn.getWeakData,On=Z.set,En=Z.getterFor,Sn=He.find,Dn=He.findIndex,Mn=0,An=function(e){return e.frozen||(e.frozen=new Nn)},Nn=function(){this.entries=[]},In=function(e,t){return Sn(e.entries,(function(e){return e[0]===t}))};Nn.prototype={get:function(e){var t=In(this,e);if(t)return t[1]},has:function(e){return!!In(this,e)},set:function(e,t){var n=In(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dn(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var Tn={getConstructor:function(e,t,n,i){var r=e((function(e,o){vn(e,r,t),On(e,{type:t,id:Mn++,frozen:void 0}),null!=o&&gn(o,e[i],e,n)})),o=En(t),a=function(e,t,n){var i=o(e),r=Cn(I(t),!0);return!0===r?An(i).set(t,n):r[i.id]=n,e};return cn(r.prototype,{delete:function(e){var t=o(this);if(!x(e))return!1;var n=Cn(e);return!0===n?An(t).delete(e):n&&C(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!x(e))return!1;var n=Cn(e);return!0===n?An(t).has(e):n&&C(n,t.id)}}),cn(r.prototype,n?{get:function(e){var t=o(this);if(x(e)){var n=Cn(e);return!0===n?An(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),r}},_n=(t((function(e){var t,n=Z.enforce,i=!s.ActiveXObject&&"ActiveXObject"in s,r=Object.isExtensible,o=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=kn("WeakMap",o,Tn,!0,!0);if($&&i){t=Tn.getConstructor(o,"WeakMap",!0),dn.REQUIRED=!0;var l=a.prototype,c=l.delete,u=l.has,d=l.get,p=l.set;cn(l,{delete:function(e){if(x(e)&&!r(e)){var i=n(this);return i.frozen||(i.frozen=new t),c.call(this,e)||i.frozen.delete(e)}return c.call(this,e)},has:function(e){if(x(e)&&!r(e)){var i=n(this);return i.frozen||(i.frozen=new t),u.call(this,e)||i.frozen.has(e)}return u.call(this,e)},get:function(e){if(x(e)&&!r(e)){var i=n(this);return i.frozen||(i.frozen=new t),u.call(this,e)?d.call(this,e):i.frozen.get(e)}return d.call(this,e)},set:function(e,i){if(x(e)&&!r(e)){var o=n(this);o.frozen||(o.frozen=new t),u.call(this,e)?p.call(this,e,i):o.frozen.set(e,i)}else p.call(this,e,i);return this}})}})),Fe("iterator")),Ln=Fe("toStringTag"),zn=Pt.values;for(var jn in Xe){var Fn=s[jn],Pn=Fn&&Fn.prototype;if(Pn){if(Pn[_n]!==zn)try{z(Pn,_n,zn)}catch(e){Pn[_n]=zn}if(Pn[Ln]||z(Pn,Ln,jn),Xe[jn])for(var Rn in Pt)if(Pn[Rn]!==Pt[Rn])try{z(Pn,Rn,Pt[Rn])}catch(e){Pn[Rn]=Pt[Rn]}}}var $n="Expected a function",Bn=/^\s+|\s+$/g,Hn=/^[-+]0x[0-9a-f]+$/i,Wn=/^0b[01]+$/i,Vn=/^0o[0-7]+$/i,Yn=parseInt,Xn="object"==typeof e&&e&&e.Object===Object&&e,qn="object"==typeof self&&self&&self.Object===Object&&self,Un=Xn||qn||Function("return this")(),Kn=Object.prototype.toString,Gn=Math.max,Qn=Math.min,Jn=function(){return Un.Date.now()};function Zn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ei(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Kn.call(e)}(e))return NaN;if(Zn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Bn,"");var n=Wn.test(e);return n||Vn.test(e)?Yn(e.slice(2),n?2:8):Hn.test(e)?NaN:+e}var ti=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError($n);return Zn(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),function(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError($n);function f(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=Jn();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?Qn(n,o-(e-c)):n}(e))}function g(e){return s=void 0,p&&i?f(e):(i=r=void 0,a)}function v(){var e=Jn(),n=h(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?f(e):a}(l);if(d)return s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ei(t)||0,Zn(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Gn(ei(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},v.flush=function(){return void 0===s?a:g(Jn())},v}(e,t,{leading:i,maxWait:t,trailing:r})},ni=/^\s+|\s+$/g,ii=/^[-+]0x[0-9a-f]+$/i,ri=/^0b[01]+$/i,oi=/^0o[0-7]+$/i,ai=parseInt,si="object"==typeof e&&e&&e.Object===Object&&e,li="object"==typeof self&&self&&self.Object===Object&&self,ci=si||li||Function("return this")(),ui=Object.prototype.toString,di=Math.max,pi=Math.min,fi=function(){return ci.Date.now()};function hi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function mi(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==ui.call(e)}(e))return NaN;if(hi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ni,"");var n=ri.test(e);return n||oi.test(e)?ai(e.slice(2),n?2:8):ii.test(e)?NaN:+e}var gi=function(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=fi();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?pi(n,o-(e-c)):n}(e))}function g(e){return s=void 0,p&&i?f(e):(i=r=void 0,a)}function v(){var e=fi(),n=h(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?f(e):a}(l);if(d)return s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=mi(t)||0,hi(n)&&(u=!!n.leading,o=(d="maxWait"in n)?di(mi(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},v.flush=function(){return void 0===s?a:g(fi())},v},vi="__lodash_hash_undefined__",yi=/^\[object .+?Constructor\]$/,bi="object"==typeof e&&e&&e.Object===Object&&e,xi="object"==typeof self&&self&&self.Object===Object&&self,wi=bi||xi||Function("return this")(),ki=Array.prototype,Ci=Function.prototype,Oi=Object.prototype,Ei=wi["__core-js_shared__"],Si=function(){var e=/[^.]+$/.exec(Ei&&Ei.keys&&Ei.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Di=Ci.toString,Mi=Oi.hasOwnProperty,Ai=Oi.toString,Ni=RegExp("^"+Di.call(Mi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ii=ki.splice,Ti=Ri(wi,"Map"),_i=Ri(Object,"create");function Li(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function zi(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ji(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Fi(e,t){for(var n,i,r=e.length;r--;)if((n=e[r][0])===(i=t)||n!=n&&i!=i)return r;return-1}function Pi(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Ri(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!Bi(e)||Si&&Si in e)return!1;var t=function(e){var t=Bi(e)?Ai.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Ni:yi;return t.test(function(e){if(null!=e){try{return Di.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function $i(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new($i.Cache||ji),n}function Bi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}Li.prototype.clear=function(){this.__data__=_i?_i(null):{}},Li.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Li.prototype.get=function(e){var t=this.__data__;if(_i){var n=t[e];return n===vi?void 0:n}return Mi.call(t,e)?t[e]:void 0},Li.prototype.has=function(e){var t=this.__data__;return _i?void 0!==t[e]:Mi.call(t,e)},Li.prototype.set=function(e,t){return this.__data__[e]=_i&&void 0===t?vi:t,this},zi.prototype.clear=function(){this.__data__=[]},zi.prototype.delete=function(e){var t=this.__data__,n=Fi(t,e);return!(n<0||(n==t.length-1?t.pop():Ii.call(t,n,1),0))},zi.prototype.get=function(e){var t=this.__data__,n=Fi(t,e);return n<0?void 0:t[n][1]},zi.prototype.has=function(e){return Fi(this.__data__,e)>-1},zi.prototype.set=function(e,t){var n=this.__data__,i=Fi(n,e);return i<0?n.push([e,t]):n[i][1]=t,this},ji.prototype.clear=function(){this.__data__={hash:new Li,map:new(Ti||zi),string:new Li}},ji.prototype.delete=function(e){return Pi(this,e).delete(e)},ji.prototype.get=function(e){return Pi(this,e).get(e)},ji.prototype.has=function(e){return Pi(this,e).has(e)},ji.prototype.set=function(e,t){return Pi(this,e).set(e,t),this},$i.Cache=ji;var Hi=$i,Wi=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),Vi="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Yi="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Xi="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Yi):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},qi=["top","right","bottom","left","width","height","size","weight"],Ui="undefined"!=typeof MutationObserver,Ki=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,i=0;function r(){t&&(t=!1,e()),n&&a()}function o(){Xi(r)}function a(){var e=Date.now();if(t){if(e-i<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);i=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Vi&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ui?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Vi&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;qi.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Gi=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Qi=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Yi},Ji=ir(0,0,0,0);function Zi(e){return parseFloat(e)||0}function er(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Zi(e["border-"+n+"-width"])}),0)}var tr="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Qi(e).SVGGraphicsElement}:function(e){return e instanceof Qi(e).SVGElement&&"function"==typeof e.getBBox};function nr(e){return Vi?tr(e)?function(e){var t=e.getBBox();return ir(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Ji;var i=Qi(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],o=e["padding-"+r];t[r]=Zi(o)}return t}(i),o=r.left+r.right,a=r.top+r.bottom,s=Zi(i.width),l=Zi(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==t&&(s-=er(i,"left","right")+o),Math.round(l+a)!==n&&(l-=er(i,"top","bottom")+a)),!function(e){return e===Qi(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return ir(r.left,r.top,s,l)}(e):Ji}function ir(e,t,n,i){return{x:e,y:t,width:n,height:i}}var rr=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ir(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=nr(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),or=function(e,t){var n,i,r,o,a,s,l,c=(i=(n=t).x,r=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),Gi(l,{x:i,y:r,width:o,height:a,top:r,right:i+o,bottom:a+r,left:i}),l);Gi(this,{target:e,contentRect:c})},ar=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Wi,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Qi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new rr(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Qi(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new or(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),sr="undefined"!=typeof WeakMap?new WeakMap:new Wi,lr=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ki.getInstance(),i=new ar(t,n,this);sr.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){lr.prototype[e]=function(){var t;return(t=sr.get(this))[e].apply(t,arguments)}}));var cr=void 0!==Yi.ResizeObserver?Yi.ResizeObserver:lr,ur=null,dr=null;function pr(){if(null===ur){if("undefined"==typeof document)return ur=0;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),ur=n}return ur}Ge&&window.addEventListener("resize",(function(){dr!==window.devicePixelRatio&&(dr=window.devicePixelRatio,ur=null)}));var fr=function(e){return function(t,n,i,r){Ne(n);var o=Te(t),a=v(o),s=le(o.length),l=e?s-1:0,c=e?-1:1;if(i<2)for(;;){if(l in a){r=a[l],l+=c;break}if(l+=c,e?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=c)l in a&&(r=n(r,a[l],l,o));return r}},hr=[fr(!1),fr(!0)][0];Ae({target:"Array",proto:!0,forced:We("reduce")},{reduce:function(e){return hr(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var mr=L.f,gr=Function.prototype,vr=gr.toString,yr=/^\s*function ([^ (]*)/,br="name";c&&!(br in gr)&&mr(gr,br,{configurable:!0,get:function(){try{return vr.call(this).match(yr)[1]}catch(e){return""}}});var xr,wr,kr=function(){var e=I(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Cr=RegExp.prototype.exec,Or=String.prototype.replace,Er=Cr,Sr=(xr=/a/,wr=/b*/g,Cr.call(xr,"a"),Cr.call(wr,"a"),0!==xr.lastIndex||0!==wr.lastIndex),Dr=void 0!==/()??/.exec("")[1];(Sr||Dr)&&(Er=function(e){var t,n,i,r,o=this;return Dr&&(n=new RegExp("^"+o.source+"$(?!\\s)",kr.call(o))),Sr&&(t=o.lastIndex),i=Cr.call(o,e),Sr&&i&&(o.lastIndex=o.global?i.index+i[0].length:t),Dr&&i&&i.length>1&&Or.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var Mr=Er;Ae({target:"RegExp",proto:!0,forced:/./.exec!==Mr},{exec:Mr});var Ar=Fe("species"),Nr=!l((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Ir=!l((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Tr=function(e,t,n,i){var r=Fe(e),o=!l((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),a=o&&!l((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Ar]=function(){return n}),n[r](""),!t}));if(!o||!a||"replace"===e&&!Nr||"split"===e&&!Ir){var s=/./[r],c=n(r,""[e],(function(e,t,n,i,r){return t.exec===Mr?o&&!r?{done:!0,value:s.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),u=c[0],d=c[1];ee(String.prototype,e,u),ee(RegExp.prototype,r,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}),i&&z(RegExp.prototype[r],"sham",!0)}},_r=rn.charAt,Lr=function(e,t,n){return t+(n?_r(e,t).length:1)},zr=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==m(e))throw TypeError("RegExp#exec called on incompatible receiver");return Mr.call(e,t)};Tr("match",1,(function(e,t,n){return[function(t){var n=y(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=I(e),o=String(this);if(!r.global)return zr(r,o);var a=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=zr(r,o));){var u=String(s[0]);l[c]=u,""===u&&(r.lastIndex=Lr(o,le(r.lastIndex),a)),c++}return 0===c?null:l}]}));var jr=Math.max,Fr=Math.min,Pr=Math.floor,Rr=/\$([$&'`]|\d\d?|<[^>]*>)/g,$r=/\$([$&'`]|\d\d?)/g;Tr("replace",2,(function(e,t,n){return[function(n,i){var r=y(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r,i):t.call(String(r),n,i)},function(e,r){var o=n(t,e,this,r);if(o.done)return o.value;var a=I(e),s=String(this),l="function"==typeof r;l||(r=String(r));var c=a.global;if(c){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var p=zr(a,s);if(null===p)break;if(d.push(p),!c)break;""===String(p[0])&&(a.lastIndex=Lr(s,le(a.lastIndex),u))}for(var f,h="",m=0,g=0;g<d.length;g++){p=d[g];for(var v=String(p[0]),y=jr(Fr(ae(p.index),s.length),0),b=[],x=1;x<p.length;x++)b.push(void 0===(f=p[x])?f:String(f));var w=p.groups;if(l){var k=[v].concat(b,y,s);void 0!==w&&k.push(w);var C=String(r.apply(void 0,k))}else C=i(v,s,y,b,w,r);y>=m&&(h+=s.slice(m,y)+C,m=y+v.length)}return h+s.slice(m)}];function i(e,n,i,r,o,a){var s=i+e.length,l=r.length,c=$r;return void 0!==o&&(o=Te(o),c=Rr),t.call(a,c,(function(t,a){var c;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":c=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>l){var d=Pr(u/10);return 0===d?t:d<=l?void 0===r[d-1]?a.charAt(1):r[d-1]+a.charAt(1):t}c=r[u-1]}return void 0===c?"":c}))}}));var Br=function(e){return Array.prototype.reduce.call(e,(function(e,t){var n=t.name.match(/data-simplebar-(.+)/);if(n){var i=n[1].replace(/\W+(.)/g,(function(e,t){return t.toUpperCase()}));switch(t.value){case"true":e[i]=!0;break;case"false":e[i]=!1;break;case void 0:e[i]=!0;break;default:e[i]=t.value}}return e}),{})};function Hr(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}function Wr(e){return e&&e.ownerDocument?e.ownerDocument:document}var Vr=function(){function e(t,n){var i=this;this.onScroll=function(){var e=Hr(i.el);i.scrollXTicking||(e.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(e.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0)},this.scrollX=function(){i.axis.x.isOverflowing&&(i.showScrollbar("x"),i.positionScrollbar("x")),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&(i.showScrollbar("y"),i.positionScrollbar("y")),i.scrollYTicking=!1},this.onMouseEnter=function(){i.showScrollbar("x"),i.showScrollbar("y")},this.onMouseMove=function(e){i.mouseX=e.clientX,i.mouseY=e.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this.onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.hideScrollbars=function(){i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.track.rect)||(i.axis.y.scrollbar.el.classList.remove(i.classNames.visible),i.axis.y.isVisible=!1),i.isWithinBounds(i.axis.x.track.rect)||(i.axis.x.scrollbar.el.classList.remove(i.classNames.visible),i.axis.x.isVisible=!1)},this.onPointerEvent=function(e){var t,n;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(t=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(n=i.isWithinBounds(i.axis.y.track.rect)),(t||n)&&(e.preventDefault(),e.stopPropagation(),"mousedown"===e.type&&(t&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(e,"x"):i.onTrackClick(e,"x")),n&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(e,"y"):i.onTrackClick(e,"y"))))},this.drag=function(t){var n=i.axis[i.draggedAxis].track,r=n.rect[i.axis[i.draggedAxis].sizeAttr],o=i.axis[i.draggedAxis].scrollbar,a=i.contentWrapperEl[i.axis[i.draggedAxis].scrollSizeAttr],s=parseInt(i.elStyles[i.axis[i.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation();var l=(("y"===i.draggedAxis?t.pageY:t.pageX)-n.rect[i.axis[i.draggedAxis].offsetAttr]-i.axis[i.draggedAxis].dragOffset)/(r-o.size)*(a-s);"x"===i.draggedAxis&&(l=i.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?l-(r+o.size):l,l=i.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-l:l),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=l},this.onEndDrag=function(e){var t=Wr(i.el),n=Hr(i.el);e.preventDefault(),e.stopPropagation(),i.el.classList.remove(i.classNames.dragging),t.removeEventListener("mousemove",i.drag,!0),t.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=n.setTimeout((function(){t.removeEventListener("click",i.preventClick,!0),t.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null}))},this.preventClick=function(e){e.preventDefault(),e.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,{},n),this.classNames=Object.assign({},e.defaultOptions.classNames,{},this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,e.instances.has(this.el)||(this.recalculate=ti(this.recalculate.bind(this),64),this.onMouseMove=ti(this.onMouseMove.bind(this),64),this.hideScrollbars=gi(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=gi(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=Hi(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=t.firstElementChild;document.body.appendChild(n);var i=n.firstElementChild;n.scrollLeft=0;var r=e.getOffset(n),o=e.getOffset(i);n.scrollLeft=999;var a=e.getOffset(i);return{isRtlScrollingInverted:r.left!==o.left&&o.left-a.left!=0,isRtlScrollbarInverted:r.left!==o.left}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=Wr(e),i=Hr(e);return{top:t.top+(i.pageYOffset||n.documentElement.scrollTop),left:t.left+(i.pageXOffset||n.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),Ge&&(this.initDOM(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var e=this;if(Array.prototype.filter.call(this.el.children,(function(t){return t.classList.contains(e.classNames.wrapper)})).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var t=document.createElement("div"),n=document.createElement("div");t.classList.add(this.classNames.track),n.classList.add(this.classNames.scrollbar),t.appendChild(n),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.initListeners=function(){var e=this,t=Hr(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.addEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);var n=!1,i=t.ResizeObserver||cr;this.resizeObserver=new i((function(){n&&e.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((function(){n=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var e=Hr(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,i=this.contentEl.offsetWidth,r=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var s=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=t?"auto":"100%",this.placeholderEl.style.width=n?i+"px":"auto",this.placeholderEl.style.height=s+"px";var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l>i,this.axis.y.isOverflowing=s>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>r-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(e){if(void 0===e&&(e="y"),!this.axis[e].isOverflowing)return 0;var t,n=this.contentEl[this.axis[e].scrollSizeAttr],i=this.axis[e].track.el[this.axis[e].offsetSizeAttr],r=i/n;return t=Math.max(~~(r*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t},t.positionScrollbar=function(t){if(void 0===t&&(t="y"),this.axis[t].isOverflowing){var n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],i=this.axis[t].track.el[this.axis[t].offsetSizeAttr],r=parseInt(this.elStyles[this.axis[t].sizeAttr],10),o=this.axis[t].scrollbar,a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=(a="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-a:a)/(n-r),l=~~((i-o.size)*s);l="x"===t&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?l+(i-o.size):l,o.el.style.transform="x"===t?"translate3d("+l+"px, 0, 0)":"translate3d(0, "+l+"px, 0)"}},t.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll"):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden"),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.rect=this.axis[e].track.el.getBoundingClientRect(),this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[e].scrollbar.rect)?this.axis[e].scrollbar.el.classList.add(this.classNames.hover):this.axis[e].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[e].track.rect)?(this.showScrollbar(e),this.axis[e].track.el.classList.add(this.classNames.hover)):this.axis[e].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),this.axis[e].track.el.classList.remove(this.classNames.hover),this.axis[e].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(e){void 0===e&&(e="y");var t=this.axis[e].scrollbar.el;this.axis[e].isVisible||(t.classList.add(this.classNames.visible),this.axis[e].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(e,t){void 0===t&&(t="y");var n=Wr(this.el),i=Hr(this.el),r=this.axis[t].scrollbar,o="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=o-r.rect[this.axis[t].offsetAttr],this.draggedAxis=t,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(i.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(e,t){var n=this;if(void 0===t&&(t="y"),this.options.clickOnTrack){var i=Hr(this.el);this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();var r=this.axis[t].scrollbar.rect[this.axis[t].offsetAttr],o=parseInt(this.elStyles[this.axis[t].sizeAttr],10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],s=("y"===t?this.mouseY-r:this.mouseX-r)<0?-1:1,l=-1===s?a-o:a+o;!function e(){var r,o;-1===s?a>l&&(a-=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((r={})[n.axis[t].offsetAttr]=a,r)),i.requestAnimationFrame(e)):a<l&&(a+=n.options.clickOnTrackSpeed,n.contentWrapperEl.scrollTo(((o={})[n.axis[t].offsetAttr]=a,o)),i.requestAnimationFrame(e))}()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:pr()}catch(e){return pr()}},t.removeListeners=function(){var e=this,t=Hr(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((function(t){e.el.removeEventListener(t,e.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e}();return Vr.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},Vr.instances=new WeakMap,Vr.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||Vr.instances.has(e)||new Vr(e,Br(e.attributes))}))},Vr.removeObserver=function(){this.globalObserver.disconnect()},Vr.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(Vr.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},Vr.handleMutations=function(e){e.forEach((function(e){Array.prototype.forEach.call(e.addedNodes,(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!Vr.instances.has(e)&&new Vr(e,Br(e.attributes)):Array.prototype.forEach.call(e.querySelectorAll("[data-simplebar]"),(function(e){"init"===e.getAttribute("data-simplebar")||Vr.instances.has(e)||new Vr(e,Br(e.attributes))})))})),Array.prototype.forEach.call(e.removedNodes,(function(e){1===e.nodeType&&(e.hasAttribute('[data-simplebar="init"]')?Vr.instances.has(e)&&Vr.instances.get(e).unMount():Array.prototype.forEach.call(e.querySelectorAll('[data-simplebar="init"]'),(function(e){Vr.instances.has(e)&&Vr.instances.get(e).unMount()})))}))}))},Vr.getOptions=Br,Ge&&Vr.initHtmlApi(),Vr})),function(e,t){var n,i,r,o,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,w,k=wp.i18n._n,C=wp.i18n.sprintf,O=e("#advanced-scripts-container"),E=e("#advanced-scripts-app"),S=e("#advanced-scripts-form"),D=e("#advanced-scripts-list"),M=D.find(".list-container"),A=D.find(".list-items"),N=e("#advanced-scripts-save"),I=S.find(".form-actions .button .toggle-status-action");function T(e,t){this.selector=e,Notiflix.Block.Dots(e,t,{zindex:1e6,backgroundColor:"rgba(0,0,0,0.25)",messageColor:"#ffffff",svgColor:"#ffffff"}),this.remove=function(){Notiflix.Block.Remove(this.selector)}}function L(e,t){switch(e){case"success":Notiflix.Notify.Success(t);break;case"error":Notiflix.Notify.Failure(t);break;case"warning":Notiflix.Notify.Warning(t);break;case"info":Notiflix.Notify.Info(t)}}n=new Map,O.on("click","[data-action]",(function(e){var t=this.dataset.action,i=n.get(t);if("function"==typeof i)return this.blur(),i.call(this,e)})),e("textarea[data-autoheight]").each((function(){e(this).on("input enable",Utils.resizeTextarea),Utils.resizeTextarea.call(this)})),S.find("select.selectize").selectize({render:{item:Utils.renderSelectizeItem}}),S.find(".selectize-tags").selectize({create:!0,persist:!1,createOnBlur:!0,plugins:["drag_drop","restore_on_backspace"]}),e("#script-title").on("blur",(function(){this.value=this.value.trim()})),r=(i=e("#script-hook")).val().split(","),o=t.hooks,a=[],o.forEach((e=>{a.push({value:e,text:e})})),r.forEach((e=>{-1==o.indexOf(e)&&a.push({value:e,text:e})})),i.selectize({options:a,create:!0,createOnBlur:!0,persist:!1,plugins:["drag_drop","restore_on_backspace","simplebar"]}),(s=e("#script-shortcode").get(0)).addEventListener("input",(function(){var e=s.value;if(e&&/[^a-z0-9_]+|--/.test(e)){var t=s.selectionEnd;s.value=e.toLowerCase().replace(/[\[\]\.]+/g,"").replace(/[^a-z0-9_]+/g,"-"),setTimeout((function(){var n=e.length-s.value.length;s.selectionEnd=t-n}))}})),s.addEventListener("copy",(function(e){s.value&&(e.clipboardData.setData("text/plain",`[${s.value}]`),e.preventDefault())})),function(){n.set("toggleConditions",(function(){E.hasClass("conditions-open")?(E.removeClass("list-hidden"),E.removeClass("conditions-open")):(E.addClass("list-hidden"),E.addClass("conditions-open"))}));var i=e("#condition-builder"),r=e("#script-conditions"),o=r.parent(),a=o.children(".summary"),s=r.val(),l=Utils.decode(s,{});function c(){var e="",t=this.conditions.toJSON(),n=t.rules.length;n?(e=Utils.encode(t),o.removeClass("empty")):o.addClass("empty"),r.val(e),a.text(C(k("%d condition set","%d conditions set",n),n))}i.conditionsBuilder({filters:t.conditions.filters,operators:t.conditions.operators,conditions:l,onInit:c,onChange:c})}(),function(){var n=e("#script-type"),i=e("#script-code"),r=e("#script-hook"),o=E.find("[data-action='showColorPalette']"),a=r.data("selectize"),s=new Map([["text/javascript","ace/mode/javascript"],["url/javascript","ace/mode/javascript"],["text/css","ace/mode/css"],["url/css","ace/mode/css"],["text/x-scss","ace/mode/scss"],["text/x-scss-partial","ace/mode/scss"],["text/x-less","ace/mode/less"],["application/x-httpd-php","ace/mode/php"],["text/html","ace/mode/html"]]),d=new Map([["ace/mode/php","plugins_loaded"],["ace/mode/css","wp_head"],["ace/mode/scss","wp_head"],["ace/mode/less","wp_head"],["ace/mode/html","wp_head"],["ace/mode/javascript","wp_footer"]]),p=["ace/mode/css","ace/mode/scss","ace/mode/less"],f=i.val(),h=t.version||Date.now();ace.config.set("suffix",".js?ver="+h),l=window.editor=ace.edit("ace-editor",{theme:"ace/theme/dark",printMargin:!1,wrapBehavioursEnabled:!0,wrap:"free",fontSize:13,minLines:10,maxLines:100,value:f,enableEmmet:!0,enableSnippets:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),["showSettingsMenu","gotoline"].forEach((e=>{l.commands.removeCommand(e)})),l.on("change",(()=>{i.val(l.getValue())})),n.on("change",(function(){if(u=this.value,c=s.get(u)||null,l.setOption("mode",c),t.script.is_new){var e="<?php\n\n// Your PHP code goes here!",n=l.getValue().trim();"ace/mode/php"==c?""==n&&l.setValue(e,1):n==e&&l.setValue("");var i=d.get(c);i&&a.setValue(i)}p.includes(c)?o.prop("disabled",!1):o.prop("disabled",!0)})).trigger("change");var m=_.debounce((()=>{l.resize()}),250);if(new ResizeObserver(m).observe(l.container),"object"==typeof l.selection){var g=document.getElementById("wpadminbar"),v=l.renderer.$cursorLayer.cursor;l.selection.on("changeCursor",_.debounce((function(){var e=v.getBoundingClientRect();cursorTop=e.y-g.clientHeight,cursorTop<0?document.documentElement.scrollTop+=cursorTop:(cursorBottom=e.y+e.height-window.innerHeight,cursorBottom>0&&(document.documentElement.scrollTop+=cursorBottom))}),20))}}(),n.set("copy",(function(){let e=this.dataset.target;if(!e)return;let t=!1,n=document.getElementById(e);if(n&&(["INPUT","TEXTAREA"].includes(n.tagName)&&n.value&&(n.select(),t=document.execCommand("copy"),n.setSelectionRange(0,0),n.blur()),t)){let e=this.innerText;this.innerText="Copied!",this.classList.add("disabled"),this.disabled=!0,setTimeout((()=>{this.innerText=e,this.classList.remove("disabled"),this.disabled=!1}),3e3)}})),d=e("#advanced-script-palette"),n.set("showColorPalette",(function(){if("object"!=typeof this.popper){var e=d.get(0);this.popper=Popper.createPopper(this,e,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,8]}}]}),d.on("click",".popper-dialog-close",(function(){d.addClass("hidden")}))}else this.popper.update();d.toggleClass("hidden")})),n.set("insertPaletteColor",(function(){var e=new Map([["ace/mode/css","oxycolor([ID])"],["ace/mode/scss","$oxycolor[ID]"],["ace/mode/less","@oxycolor[ID]"]]).get(c);e&&(e=e.replace("[ID]",this.dataset.id),l.insert(e),l.focus()),d.addClass("hidden")})),p=e("#script-type"),f=e("#script-url"),h=new Map([["url/css","text/css"],["url/javascript","application/javascript"]]),n.set("uploadScriptFile",(function(){var e=h.get(p.val());if(e){var t=wp.media({title:"Select file",library:{type:e},button:{text:"Insert URL"},multiple:!1});t.on("select",(function(){var e=t.state().get("selection").first().toJSON();e&&""!=e.url&&f.val(e.url).trigger("input")})),t.open()}})),n.set("toggleScriptsList",(function(){E.hasClass("list-hidden")?(E.hasClass("conditions-open")&&E.removeClass("conditions-open"),E.removeClass("list-hidden")):E.addClass("list-hidden")})),n.set("toggleFullscreen",(function(){e("body").toggleClass("as-fullscreen")})),m=!1,S.on("submit",(function(n){var i=m,r=S.serializeArray(),o=_(r).findWhere({name:"status"}),a=new T("#advanced-scripts-app","Saving..."),s=o.value;function l(e){e.redirect&&setTimeout((function(){window.location.assign(e.redirect)}),1e3)}i&&(o.value="1"==s?"0":"1"),wp.ajax.send({data:r,success(n){var i;L("success","Script data saved successfully"),n.new&&S.find("input[name='id']").val(n.term_id),o.value!=s&&(S.find("input[name='status']").val("1"==s?"0":"1"),I.text("1"==s?"Activate":"Deactivate"),D.find(`input[name="status"][value="${n.term_id}"]`).each((function(){this.checked=!this.checked}))),"ace/mode/php"==c?(i=()=>l(n),e.ajax(t.check_url,{success(){i.call()},error(){Notiflix.Report.Warning("Website Errors!","The administration area seems to be broken because of some errors in your PHP code, please review your code and save it again.","Close")}})):l(n)},error(e){console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)},complete(){a.remove()}}),n.preventDefault()})),n.set("toggleFormStatus",(function(){m=!0,setTimeout((()=>{m=!1}))})),window.addEventListener("keydown",(e=>{(e.ctrlKey||e.metaKey)&&83==e.which&&(N.focus(),N.trigger("click"),e.preventDefault())})),g=[],v=D.find(".list-item"),y=D.find(".list-bulk-actions").children("button"),b=e("#list-bulk-select"),x=v.find(".item-checkbox input"),w=x.length,b.on("change",(function(){x.prop("checked",this.checked).trigger("change")})),x.on("change",_.debounce((function(){var e=(g=x.serializeArray().map((e=>parseInt(e.value,10)))).length==w,t=g.length>0&&!e;b.prop({checked:e,indeterminate:t}),y.prop("disabled",!g.length)}),10)),A.sortable({items:".list-item",connectWith:".item-dropzone",tolerance:"pointer",placeholder:"ui-state-highlight",forceHelperSize:!0,forcePlaceholderSize:!0,update:function(n,i){if(!i.item.closest(".item-dropzone").length){var r=e(this),o=r.sortable("toArray",{attribute:"data-id"}),a=_.extend({},t.ajax.order,{order:o}),s=new T(".list-container","Saving...");wp.ajax.send({data:a,success(e){L("success",e)},error(e){r.sortable("cancel"),console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)},complete(){s.remove()}})}}}),D.find(".item-dropzone").sortable({items:".list-item",tolerance:"pointer",placeholder:"ui-state-highlight",forceHelperSize:!0,forcePlaceholderSize:!0,receive:function(n,i){var r=e(this),o=i.item.data("id"),a=r.closest("[data-id]").data("id"),s=_.extend({},t.ajax.move,{id:o,parent:a}),l=new T(".list-container","Saving...");wp.ajax.send({data:s,success(e){L("success",e),i.item.remove(),r.sortable("refresh")},error(e){A.sortable("cancel"),console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)},complete(){l.remove()}})}}),n.set("exportScripts",(function(){var e=_.extend({},t.ajax.export,{selected_ids:g}),n=new Date,i=["advanced-scripts-export",n.getFullYear(),String(n.getMonth()+1).padStart(2,"0"),String(n.getDate()).padStart(2,"0"),String(n.getHours()).padStart(2,"0"),String(n.getMinutes()).padStart(2,"0"),String(n.getSeconds()).padStart(2,"0")],r=prompt("Change file name",i.join("-"));if(null!=r){var o=r.trim();""!=o?(o+=".json",wp.ajax.send({data:e,success(e){var t=JSON.stringify(e);Utils.saveFile(t,o,"application/json"),L("success","The selected script has been exported")},error(e){console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)}})):L("warning","File name is required")}})),n.set("deleteScripts",(function(){Notiflix.Confirm.Show("Delete Confirmation","Are you sure you want to permanently delete the selected scripts?","Delete","Cancel",(function(){var e=_.extend({},t.ajax.delete,{selected_ids:g}),n=g.includes(t.script.id),i=new T("#advanced-scripts-app","Deleting scripts...");wp.ajax.send({data:e,success(e){L("success",e),setTimeout((function(){n?window.location.assign(t.base_url):window.location.reload()}),1e3)},error(e){console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)},complete(){i.remove()}})}),(function(){x.prop("checked",!1).trigger("change")}))})),function(){var i=e("#advanced-script-import"),r=i.find(".file-dropzone"),o=i.find("input[name='status']:checked");function a(e){return"object"==typeof e.dataTransfer&&e.dataTransfer.types.includes("Files")}function s(){return i.is(":hidden")&&(i.stop().slideDown(200),o.focus()),!1}n.set("showImport",s),n.set("hideImport",(function(e){return i.is(":visible")&&i.stop().slideUp(200),!1})),r.each((function(){this.addEventListener("dragenter",(e=>{e.preventDefault(),a(e)&&this.classList.add("highlighted")})),this.addEventListener("dragover",(e=>{e.preventDefault(),a(e)&&this.classList.add("highlighted")})),this.addEventListener("dragleave",(e=>{e.preventDefault(),this.classList.remove("highlighted")})),this.addEventListener("drop",(e=>{if(e.preventDefault(),this.classList.remove("highlighted"),o=i.find("input[name='status']:checked"),a(e)){var n=_.filter(e.dataTransfer.files,(e=>{var t="application/json"==e.type;return t||L("warning",`${e.name}: invalid file format!`),t}));if(n.length){var r=new FormData,s=o.val();r.append("action",t.ajax.import.action),r.append("token",t.ajax.import.token),r.append("parent",t.script.parent),r.append("status",s),n.map(((e,t)=>r.append(t,e)));var l=new T("#advanced-scripts-app","Uploading files for import...");wp.ajax.send({data:r,processData:!1,contentType:!1,success(e){var t=e.scripts;Array.isArray(t)&&t.length?(L("success","Scripts were imported successfully"),setTimeout((function(){1==t.length?window.location.assign(t[0].link):window.location.reload()}),1e3)):L("warning","Your files import failed!")},error(e){console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)},complete(){l.remove()}})}}}))})),M.each((function(){this.addEventListener("dragenter",(e=>{i.is(":hidden")&&a(e)&&s()}))}))}(),function(){var i=e("#advanced-script-folder-editor"),r=i.find("input[name='title']"),o=i.find("input[name='status']"),a=null,s=null,l=null,c="",u=t.script.parent,d="";function p(){return a&&a.length&&(i.appendTo(A),a.removeClass("editing"),l.prop("disabled",!1),a=null,s=null,l=null),c="",d="",i.addClass("hidden"),r.val(d),o.prop("checked",!0),!1}function f(){var e=r.val().trim(),n=o.prop("checked")?"1":"";if(e){if(e==d)return p();var i=_.extend({},t.ajax.save,{id:c,parent:u,title:e,type:"folder",status:n}),f=new T("#advanced-scripts-app","Saving...");wp.ajax.send({data:i,success(t){L("success","Folder saved successfully"),t.new?setTimeout((function(){window.location.reload()}),1e3):(a&&a.length&&(s.text(e),l.prop("checked","1"==n)),p())},error(e){console.error(e),"string"!=typeof e&&(e="Your request couldn't be processed"),L("error",e)},complete(){f.remove()}})}else L("warning","Folder name is required"),r.focus();return!1}n.set("showFolderEditor",(function(){return p(),(a=e(this).closest(".list-folder")).length&&(s=a.find(".item-title a"),l=a.find("input[name='status']"),i.insertBefore(a),a.addClass("editing"),l.prop("disabled",!0),c=a.data("id"),d=s.text(),o.prop("checked",l.prop("checked"))),i.removeClass("hidden"),r.val(d),r.focus(),!1})),n.set("hideFolderEditor",p),n.set("saveFolder",f),r.on("keydown",(function(e){"Enter"==e.key&&f(),"Escape"==e.key&&p()}))}(),function(){const t=new Map;t.set("#script-location",[{field:"#script-type",operator:"!=",value:"text/x-scss-partial"}]),t.set("#script-import",[{field:"#script-type",operator:"==",value:"text/x-scss-partial"}]),t.set("#script-hook",[{field:"#script-location",operator:"!=",value:"shortcode"},{field:"#script-type",operator:"!=",value:"text/x-scss-partial"}]),t.set("#script-shortcode",[{field:"#script-location",operator:"==",value:"shortcode"},{field:"#script-type",operator:"!=",value:"text/x-scss-partial"}]),t.set("#script-priority",[{field:"#script-location",operator:"!=",value:"shortcode"},{field:"#script-type",operator:"!=",value:"text/x-scss-partial"}]),t.set("#script-url",[{field:"#script-type",operator:"^=",value:"url/"}]),t.set("#script-conditions",[{field:"#script-location",operator:"!=",value:"shortcode"},{field:"#script-type",operator:"!=",value:"text/x-scss-partial"}]),t.set("#script-save-toggle",[{field:"#script-type",operator:"!=",value:"text/x-scss-partial"}]);const n=new Set;function i(){for(const[n,i]of t){let t=!0;for(const n of i){let i=e(n.field).val();switch(n.operator){case"==":t=i==n.value;break;case"!=":t=i!=n.value;break;case"^=":t=i.startsWith(n.value)}if(!t)break}let r=e(n),o=r.closest(".form-control");const a=o.length?o:r,s=a.find("[name]");t?(a.removeClass("hidden").trigger("show"),s.each((function(){this.disabled=!1,this.selectize&&this.selectize.enable(),e(this).trigger("enable")}))):(a.addClass("hidden").trigger("hide"),s.each((function(){this.disabled=!0,this.selectize&&this.selectize.disable(),e(this).trigger("disable")})))}}t.forEach((e=>{e.forEach((e=>n.add(e.field)))})),n.forEach((t=>e(t).on("change",i))),i()}(),D.find(".item-status input[type=checkbox]").on("change",(function(){var e=this,n=this.checked,i=parseInt(this.value),r=t.script.id,o=_.extend({},t.ajax.status,{id:i});wp.ajax.send({data:o,success(e){i==r&&(S.find("input[name='status']").val(n?"1":"0"),I.text(n?"Deactivate":"Activate")),L("success",e)},error(t){console.error(t),"string"!=typeof t&&(t="Your request couldn't be processed"),L("error",t),e.checked=!n}})})),O.find("[title]").each((function(){this.setAttribute("data-tippy-content",this.title),this.removeAttribute("title")})),tippy("[data-tippy-content]",{hideOnClick:!0,delay:[200,100],maxWidth:300,zIndex:1e6,placement:"auto"}),window.addEventListener("load",(()=>{let e="#4caf50",t="#f44336",n="#fb8c00",i="#03a9f4";Notiflix.Notify.Init({position:"right-bottom",distance:"15px",borderRadius:"0",fontFamily:"",timeout:5e3,zindex:1e6,success:{background:e,notiflixIconColor:"#1b5e20",textColor:"#fff"},failure:{background:t,notiflixIconColor:"#b71c1c",textColor:"#fff"},warning:{background:n,notiflixIconColor:"#bf360c",textColor:"#fff"},info:{background:i,notiflixIconColor:"#01579b",textColor:"#fff"}}),Notiflix.Report.Init({borderRadius:"0",fontFamily:"",zindex:1e6,success:{svgColor:e,buttonBackground:e,buttonColor:"#fff"},failure:{svgColor:t,buttonBackground:t,buttonColor:"#fff"},warning:{svgColor:n,buttonBackground:n,buttonColor:"#fff"},info:{svgColor:i,buttonBackground:i,buttonColor:"#fff"}}),Notiflix.Confirm.Init({okButtonBackground:t,titleColor:"#222222",borderRadius:"0",fontFamily:"",zindex:1e6})}))}(jQuery,AdvancedScripts);
修改文件时间
将文件时间修改为当前时间的前一年
删除文件