!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand (o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
jQuery.noConflict();
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery('#') is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass(boolean) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css("'+e+'", value)')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
(()=>{var e,t,n={41:(e,t,n)=>{"use strict";function o(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")})),o}n.d(t,{Rk:()=>o,SF:()=>a,sk:()=>r});var a=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},r=function(e,t,n){a(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}},63:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(7044),a=n(1127),r=n(551),i=864e5;function s(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),s=(0,a.default)(t),l=n.getTime()-(0,o.A)(n),c=s.getTime()-(0,o.A)(s);return Math.round((l-c)/i)}},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function r(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var s,l,c,d;if(Array.isArray(e)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(!r(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(d=e.entries();!(l=d.next()).done;)if(!i.has(l.value[0]))return!1;for(d=e.entries();!(l=d.next()).done;)if(!r(l.value[1],i.get(l.value[0])))return!1;return!0}if(o&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(d=e.entries();!(l=d.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((s=e.length)!=i.length)return!1;for(l=s;0!=l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof i.toString)return e.toString()===i.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!r(e[c[l]],i[c[l]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return r(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(5093))},123:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(2284),a=n(551);function r(e){(0,a.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,o.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},158:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getDate()}},304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(5093))},312:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,a=(o=n(1720))&&o.__esModule?o:{default:o};t.default=a.default,e.exports=t.default},411:(e,t,n)=>{var o;!function(){"use strict";var a=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:a,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen};void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)}()},464:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(123),a=n(551),r=n(9742),i=n(4188),s=n(1858);function l(e,t){var n,l,c,d,u,p,h,m;(0,a.A)(1,arguments);var f=(0,o.default)(e),g=f.getUTCFullYear(),v=(0,s.q)(),_=(0,i.A)(null!==(n=null!==(l=null!==(c=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t||null===(u=t.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==l?l:null===(h=v.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,_),b.setUTCHours(0,0,0,0);var y=(0,r.A)(b,t),w=new Date(0);w.setUTCFullYear(g,0,_),w.setUTCHours(0,0,0,0);var k=(0,r.A)(w,t);return f.getTime()>=y.getTime()?g+1:f.getTime()>=k.getTime()?g:g-1}},527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function o(e,o,a,r){var i="";switch(a){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":i=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":i=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":i=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":i=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":i=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":i=r?"vuoden":"vuotta"}return function(e,o){return e<10?o?n[e]:t[e]:e}(e,r)+" "+i}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},548:(e,t,n)=>{"use strict";t.a=void 0;var o,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(6540),i=(o=r)&&o.__esModule?o:{default:o},s=n(9992);s.registerPlugin,s.FileStatus;var l=(0,s.supported)(),c=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];t.a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.allowFilesSync=!0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this;if(this._input=this._element.querySelector('input[type="file"]'),this._inputClone=this._input.cloneNode(),l){var t=Object.assign({},this.props);if(t.onupdatefiles){var n=t.onupdatefiles;t.onupdatefiles=function(t){e.allowFilesSync=!1,n(t)}}this._pond=(0,s.create)(this._input,t),Object.keys(this._pond).filter((function(e){return!c.includes(e)})).forEach((function(t){e[t]=e._pond[t]}))}}},{key:"componentWillUnmount",value:function(){if(this._pond){var e=document.createElement("div");e.append(this._pond.element),e.id="foo",this._pond.destroy(),this._pond=void 0,this._element.append(this._inputClone)}}},{key:"shouldComponentUpdate",value:function(){return!!this.allowFilesSync||(this.allowFilesSync=!0,!1)}},{key:"componentDidUpdate",value:function(){if(this._pond){var e=Object.assign({},this.props);delete e.onupdatefiles,this._pond.setOptions(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,o=t.name,a=t.className,i=t.allowMultiple,s=t.required,l=t.captureMethod,c=t.acceptedFileTypes;return(0,r.createElement)("div",{className:"filepond--wrapper",ref:function(t){return e._element=t}},(0,r.createElement)("input",{type:"file",name:o,id:n,accept:c,multiple:i,required:s,className:a,capture:l}))}}]),t}(i.default.Component)},551:(e,t,n)=>{"use strict";function o(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:()=>o})},609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,o){var a=e;switch(n){case"s":return o||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(o||t)?" másodperc":" másodperce";case"m":return"egy"+(o||t?" perc":" perce");case"mm":return a+(o||t?" perc":" perce");case"h":return"egy"+(o||t?" óra":" órája");case"hh":return a+(o||t?" óra":" órája");case"d":return"egy"+(o||t?" nap":" napja");case"dd":return a+(o||t?" nap":" napja");case"M":return"egy"+(o||t?" hónap":" hónapja");case"MM":return a+(o||t?" hónap":" hónapja");case"y":return"egy"+(o||t?" év":" éve");case"yy":return a+(o||t?" év":" éve")}return""}function o(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return o.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return o.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},667:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}},708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(5093))},748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(5093))},751:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=a(n(6540));function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}a(n(5556));var i=function(e){function t(){for(var t,n=arguments.length,a=Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).container=o.default.createRef(),t.handleClick=function(e){var n=t.container.current,o=e.target,a=t.props.onClickOutside;(n&&n===o||n&&!n.contains(o))&&a(e)},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}(t,e);var n=t.prototype;return n.componentDidMount=function(){document.addEventListener("click",this.handleClick,!0)},n.componentWillUnmount=function(){document.removeEventListener("click",this.handleClick,!0)},n.render=function(){var e=this.props,t=e.className,n=e.children;return o.default.createElement("div",{className:t,ref:this.container},n)},t}(o.default.Component);t.default=i},774:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(1601),a=n.n(o),r=n(6314),i=n.n(r)()(a());i.push([e.id,'@charset "UTF-8";\n.fod4ZeXNMNcj6nbuusiY,\n.cBCI2huT9lOsb_gc5epr,\n.VakY0Xks34qzb4hYa3qg, .CJNS2t3pDg318Lmfp0H9::before {\n  border-color: #ccc;\n  border-style: solid;\n  border-width: 3px 3px 0 0;\n  content: "";\n  display: block;\n  height: 9px;\n  position: absolute;\n  top: 6px;\n  width: 9px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb, .S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb {\n  margin-left: -4px;\n  position: absolute;\n  width: 0;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::before, .S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::before, .S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::after, .S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::after {\n  box-sizing: content-box;\n  position: absolute;\n  border: 8px solid transparent;\n  height: 0;\n  width: 1px;\n  content: "";\n  z-index: -1;\n  border-width: 8px;\n  left: -8px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::before, .S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::before {\n  border-bottom-color: #aeaeae;\n}\n\n.S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb {\n  top: 0;\n  margin-top: -8px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::before, .S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::after {\n  border-top: none;\n  border-bottom-color: #f0f0f0;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::after {\n  top: 0;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] .XLn4952nMF55Jw0GXDmb::before {\n  top: -1px;\n  border-bottom-color: #aeaeae;\n}\n\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb {\n  bottom: 0;\n  margin-bottom: -8px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::before, .S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::after {\n  border-bottom: none;\n  border-top-color: #fff;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::after {\n  bottom: 0;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] .XLn4952nMF55Jw0GXDmb::before {\n  bottom: -1px;\n  border-top-color: #aeaeae;\n}\n\n.KakHaSX4szBEEjcf70vM {\n  display: inline-block;\n  padding: 0;\n  border: 0;\n}\n\n.IXJ5rwop2w6dAFg0xwha {\n  font-family: "Helvetica Neue", helvetica, arial, sans-serif;\n  font-size: 0.8rem;\n  background-color: #fff;\n  color: #000;\n  border: 1px solid #aeaeae;\n  border-radius: 0.3rem;\n  display: inline-block;\n  position: relative;\n}\n\n.BBU7nch3AaQONwoSb0AF .XLn4952nMF55Jw0GXDmb {\n  left: 35px;\n}\n.BBU7nch3AaQONwoSb0AF .wiigGjECCEfYQqcWh1CC {\n  border-left: 0;\n}\n.BBU7nch3AaQONwoSb0AF .kdNnFH7h141xWlJBNBAE,\n.BBU7nch3AaQONwoSb0AF .xR09WX3KWETugy4MjvAw {\n  border-bottom-left-radius: 0.3rem;\n  border-bottom-right-radius: 0.3rem;\n}\n\n.XLn4952nMF55Jw0GXDmb {\n  position: absolute;\n  left: 50px;\n}\n\n.S7qP0N5diUkHRbpmBhGp {\n  z-index: 1;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=bottom] {\n  padding-top: 10px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement=bottom-end] .XLn4952nMF55Jw0GXDmb, .S7qP0N5diUkHRbpmBhGp[data-placement=top-end] .XLn4952nMF55Jw0GXDmb {\n  left: auto;\n  right: 50px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=top] {\n  padding-bottom: 10px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=right] {\n  padding-left: 8px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=right] .XLn4952nMF55Jw0GXDmb {\n  left: auto;\n  right: 42px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=left] {\n  padding-right: 8px;\n}\n.S7qP0N5diUkHRbpmBhGp[data-placement^=left] .XLn4952nMF55Jw0GXDmb {\n  left: 42px;\n  right: auto;\n}\n\n.iSaeUIwlaf7GnGRPKypq {\n  text-align: center;\n  background-color: #f0f0f0;\n  border-bottom: 1px solid #aeaeae;\n  border-top-left-radius: 0.3rem;\n  padding: 8px 0;\n  position: relative;\n}\n.gpmx6nWYaXqRSIzTTzYK {\n  padding-bottom: 8px;\n  padding-left: 5px;\n  padding-right: 5px;\n}\n.gpmx6nWYaXqRSIzTTzYK:not(.YpdCRhelcevXY3xKetGV){\n  border-top-left-radius: 0;\n}\n.iSaeUIwlaf7GnGRPKypq:not(.lHn6puFtyRMP5BznAWwg){\n  border-top-right-radius: 0.3rem;\n}\n\n.cq12I7owD4CQPLDFlmQH,\n.chGdB2_ty_cPqlfG0ovB,\n.n0apu1iBCuGqvCTW5dHj,\n.k_3yaNBi95YQT4LGcSVh,\n.vuBHhxTox3tZZ9JuJEZB,\n.okTx1gFNVyTTtBVZEEGk {\n  display: inline-block;\n  margin: 0 15px;\n}\n\n.iL95B_TSozIO0CpDlWrL,\n.iI17TarD3Z6Umn9z3Juw,\n.E9rpIAEJtJEl7pa7qEuo {\n  margin-top: 0;\n  color: #000;\n  font-weight: bold;\n  font-size: 0.944rem;\n}\n\n.iI17TarD3Z6Umn9z3Juw {\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  overflow: hidden;\n}\n\n.srZWcT5CWg8vgM3hH18g {\n  align-items: center;\n  background: none;\n  display: flex;\n  justify-content: center;\n  text-align: center;\n  cursor: pointer;\n  position: absolute;\n  top: 2px;\n  padding: 0;\n  border: none;\n  z-index: 1;\n  height: 32px;\n  width: 32px;\n  text-indent: -999em;\n  overflow: hidden;\n}\n.Sco1tMPmXf7wCrIZTUKP {\n  left: 2px;\n}\n.CokSq81sNmxUOfIuUmBk {\n  right: 2px;\n}\n.C6QgDjDW9XkzSeKBiKsx:not(.BjHpYPVhimASeZ9rqIIE){\n  right: 85px;\n}\n.EfYxQSkZvNas6WzjRi3w {\n  position: relative;\n  top: 0;\n  display: block;\n  margin-left: auto;\n  margin-right: auto;\n}\n.iQchZaRRh3iv5Xc7GMrS {\n  top: 4px;\n}\n.vXkrR7AEOAP1Ssk8TC9_ {\n  top: -4px;\n}\n.srZWcT5CWg8vgM3hH18g:hover *::before {\n  border-color: #a6a6a6;\n}\n\n.CJNS2t3pDg318Lmfp0H9 {\n  position: relative;\n  top: -1px;\n  font-size: 20px;\n  width: 0;\n}\n.jka_ZXFD_brEsiSoH1XM {\n  left: -2px;\n}\n.jka_ZXFD_brEsiSoH1XM::before {\n  transform: rotate(45deg);\n  left: -7px;\n}\n.Ds74F7ygh8GcuhGmz9Pe {\n  right: -2px;\n}\n.Ds74F7ygh8GcuhGmz9Pe::before {\n  transform: rotate(225deg);\n  right: -7px;\n}\n\n.oS48bGzCWqZ3d2E20CsJ {\n  float: left;\n}\n\n.tmQzD5x5ld7nSjH7ZUnO {\n  margin: 0.4rem;\n  text-align: center;\n}\n.fWsedLE2WlI0Uva4Lqaw {\n  display: flex;\n  flex-wrap: wrap;\n  max-width: 180px;\n}\n.tmQzD5x5ld7nSjH7ZUnO .zw5Lhb9GbDzOt6f7r926 {\n  display: inline-block;\n  width: 4rem;\n  margin: 2px;\n}\n\n.zv_wKFwQTdGgX3q3IP4v {\n  margin: 0.4rem;\n  text-align: center;\n}\n.zv_wKFwQTdGgX3q3IP4v .i6PQIW5c6RuAjK40D4Hg,\n.zv_wKFwQTdGgX3q3IP4v .WdZyAV1QQN1ioR2gqqsj {\n  display: inline-block;\n  width: 4rem;\n  margin: 2px;\n}\n\n.Fo84qakRcEGX6GooYA5e {\n  clear: both;\n  width: 100%;\n  float: left;\n  margin: 5px 0 10px 15px;\n  text-align: left;\n}\n.Fo84qakRcEGX6GooYA5e .XXXv83f7WOuLmbm1H05J {\n  display: inline-block;\n}\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u {\n  display: inline-block;\n}\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u .jnHR3UyoNnIADznASJG9 {\n  display: inline-block;\n  margin-left: 10px;\n}\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u .jnHR3UyoNnIADznASJG9 input {\n  width: auto;\n}\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u .jnHR3UyoNnIADznASJG9 input[type=time]::-webkit-inner-spin-button,\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u .jnHR3UyoNnIADznASJG9 input[type=time]::-webkit-outer-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u .jnHR3UyoNnIADznASJG9 input[type=time] {\n  -moz-appearance: textfield;\n}\n.Fo84qakRcEGX6GooYA5e .BLUTkwvPbaQOwHa3X43u .N_j3rdvPcQs4hA205_Ec {\n  margin-left: 5px;\n  display: inline-block;\n}\n\n.wiigGjECCEfYQqcWh1CC {\n  float: right;\n  border-left: 1px solid #aeaeae;\n  width: 85px;\n}\n.VNQdab5EQ_Xily2VgT4y {\n  display: inline;\n  border: 1px solid #aeaeae;\n  border-radius: 0.3rem;\n  position: absolute;\n  right: -87px;\n  top: 0;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE {\n  position: relative;\n  background: white;\n  border-bottom-right-radius: 0.3rem;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw {\n  width: 85px;\n  overflow-x: hidden;\n  margin: 0 auto;\n  text-align: center;\n  border-bottom-right-radius: 0.3rem;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj {\n  list-style: none;\n  margin: 0;\n  height: calc(195px + 1.7rem / 2);\n  overflow-y: scroll;\n  padding-right: 0;\n  padding-left: 0;\n  width: 100%;\n  box-sizing: content-box;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj li.bplWpSY4gEUYCDwSdBta {\n  height: 30px;\n  padding: 5px 10px;\n  white-space: nowrap;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj li.bplWpSY4gEUYCDwSdBta:hover {\n  cursor: pointer;\n  background-color: #f0f0f0;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj li.hQdfMP5iUlLX3fG_xVfB {\n  background-color: #216ba5;\n  color: white;\n  font-weight: bold;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj li.hQdfMP5iUlLX3fG_xVfB:hover {\n  background-color: #216ba5;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj li.dsKNk2Mc_V41Wl7QFllJ {\n  color: #ccc;\n}\n.wiigGjECCEfYQqcWh1CC .kdNnFH7h141xWlJBNBAE .xR09WX3KWETugy4MjvAw ul.U6IqAY2mhiwTZLSOKNDj li.dsKNk2Mc_V41Wl7QFllJ:hover {\n  cursor: default;\n  background-color: transparent;\n}\n\n.s0x5FtIR7jZlJGI6ON6A {\n  color: #ccc;\n  display: inline-block;\n  width: 1.7rem;\n  line-height: 1.7rem;\n  text-align: center;\n  margin: 0.166rem;\n}\n.s0x5FtIR7jZlJGI6ON6A.FX5T_2nGFgyIX40YwWlP {\n  cursor: pointer;\n}\n.s0x5FtIR7jZlJGI6ON6A.FX5T_2nGFgyIX40YwWlP:not(.hHlKSv8vBMYNdzQ4SGrB,\n.uppPl_vEFrDA3Z1Lh5VA):hover {\n  border-radius: 0.3rem;\n  background-color: #f0f0f0;\n}\n.hHlKSv8vBMYNdzQ4SGrB {\n  border-radius: 0.3rem;\n  background-color: #216ba5;\n  color: #fff;\n}\n.hHlKSv8vBMYNdzQ4SGrB:hover {\n  background-color: #1d5d90;\n}\n.uppPl_vEFrDA3Z1Lh5VA {\n  border-radius: 0.3rem;\n  background-color: #2a87d0;\n  color: #fff;\n}\n.uppPl_vEFrDA3Z1Lh5VA:hover {\n  background-color: #1d5d90;\n}\n\n.mHCnDUBiAlkyJzXQ4uhR {\n  white-space: nowrap;\n  margin-bottom: -8px;\n}\n\n.uJcDoRPy_nkk5kpdk6jT {\n  white-space: nowrap;\n}\n\n.g20E84oit5VcucrOetdt,\n.FBbzZs9SCSAIjYuoSyRG,\n.PRmwxRjTBpTwLFvAPXRj {\n  color: #000;\n  display: inline-block;\n  width: 1.7rem;\n  line-height: 1.7rem;\n  text-align: center;\n  margin: 0.166rem;\n}\n\n.FBbzZs9SCSAIjYuoSyRG,\n.i6PQIW5c6RuAjK40D4Hg,\n.WdZyAV1QQN1ioR2gqqsj,\n.zw5Lhb9GbDzOt6f7r926 {\n  cursor: pointer;\n}\n.FBbzZs9SCSAIjYuoSyRG:hover,\n.i6PQIW5c6RuAjK40D4Hg:hover,\n.WdZyAV1QQN1ioR2gqqsj:hover,\n.zw5Lhb9GbDzOt6f7r926:hover {\n  border-radius: 0.3rem;\n  background-color: #f0f0f0;\n}\n.GVs2fEogxVFWLeQF1otT,\n.cR5J0ggY8bx7hTBLoco8,\n._8BLyOvIc3pzANrZmKTUE,\n.l_kLoN_9kcZpEdzGaUIx {\n  font-weight: bold;\n}\n.xxW4z0V81RNyMOJaMhJm,\n.W2A3obRM54JNaf_J0c4_,\n._WQpnBeri_7kudCBXQgr,\n.jiIOfz2jg2V5wpgPTa6z {\n  border-radius: 0.3rem;\n  background-color: #3dcc4a;\n  color: #fff;\n}\n.xxW4z0V81RNyMOJaMhJm:hover,\n.W2A3obRM54JNaf_J0c4_:hover,\n._WQpnBeri_7kudCBXQgr:hover,\n.jiIOfz2jg2V5wpgPTa6z:hover {\n  background-color: #32be3f;\n}\n.GFRbNuTzWqST3J4gLyn2,\n.TlPVIfju4H7pAyrEZ2qr,\n.hTNIRkA1WOJ0lQ05ichL,\n.DJziLB9iaq8dRvJ6SwlJ {\n  color: magenta;\n}\n.b7jJrxJyLVE5GiYugi9Q,\n.FDlW0IBQzRVImfVzT4VP,\n.Ci7Bb8uw8HtlH7_eiIR4,\n.GIuiIf0cMEN6p6fEcDIG {\n  color: green;\n}\n.OumOYsBrrNR0j7vhpkuW,\n.tXgYeGYy3t_75LMHVbZn,\n.zZDApuUInndtQzSKik7G,\n._3RXS5fmtTfatoP0jG_R {\n  position: relative;\n  border-radius: 0.3rem;\n  background-color: #ff6803;\n  color: #fff;\n}\n.OumOYsBrrNR0j7vhpkuW .MuqpaITSDzGhnuE17MqW,\n.tXgYeGYy3t_75LMHVbZn .MuqpaITSDzGhnuE17MqW,\n.zZDApuUInndtQzSKik7G .MuqpaITSDzGhnuE17MqW,\n._3RXS5fmtTfatoP0jG_R .MuqpaITSDzGhnuE17MqW {\n  position: absolute;\n  bottom: 100%;\n  left: 50%;\n  transform: translateX(-50%);\n  background-color: #333;\n  color: #fff;\n  padding: 4px;\n  border-radius: 4px;\n  white-space: nowrap;\n  visibility: hidden;\n  opacity: 0;\n  transition: visibility 0s, opacity 0.3s ease-in-out;\n}\n.OumOYsBrrNR0j7vhpkuW:hover,\n.tXgYeGYy3t_75LMHVbZn:hover,\n.zZDApuUInndtQzSKik7G:hover,\n._3RXS5fmtTfatoP0jG_R:hover {\n  background-color: #cf5300;\n}\n.OumOYsBrrNR0j7vhpkuW:hover .MuqpaITSDzGhnuE17MqW,\n.tXgYeGYy3t_75LMHVbZn:hover .MuqpaITSDzGhnuE17MqW,\n.zZDApuUInndtQzSKik7G:hover .MuqpaITSDzGhnuE17MqW,\n._3RXS5fmtTfatoP0jG_R:hover .MuqpaITSDzGhnuE17MqW {\n  visibility: visible;\n  opacity: 1;\n}\n.b7YWalbftblur37KulHN, .Q1ftJ3MzAhg_VDXOZ5VQ, .Ju5BJuRfDtQHEXsJTMKb,\n.uCtgRNlb4ATKF9EyUr65,\n.X6qOOvB9S1_BA0jzyi5v,\n.cx0tKN7_pVYTjFbmhXbn,\n.Ebbec1ld974uRNs89kr7,\n.Wd3S5hJp25_5ZjIWe88P,\n.o2WadGf7GxEAvMIgF_z8,\n.ikStZgOtZYloOhYUCfz7,\n.uC47fzgOGLIx_IK53nSA,\n._A2Q5L6DGrg3kVyyBaKv {\n  border-radius: 0.3rem;\n  background-color: #216ba5;\n  color: #fff;\n}\n.b7YWalbftblur37KulHN:hover, .Q1ftJ3MzAhg_VDXOZ5VQ:hover, .Ju5BJuRfDtQHEXsJTMKb:hover,\n.uCtgRNlb4ATKF9EyUr65:hover,\n.X6qOOvB9S1_BA0jzyi5v:hover,\n.cx0tKN7_pVYTjFbmhXbn:hover,\n.Ebbec1ld974uRNs89kr7:hover,\n.Wd3S5hJp25_5ZjIWe88P:hover,\n.o2WadGf7GxEAvMIgF_z8:hover,\n.ikStZgOtZYloOhYUCfz7:hover,\n.uC47fzgOGLIx_IK53nSA:hover,\n._A2Q5L6DGrg3kVyyBaKv:hover {\n  background-color: #1d5d90;\n}\n.wGQHAGY7JCfLGRfl21EA,\n.UhZiFX8PaDQQAzdZp_pp,\n.iOnHPZtk6CV7CDVlYcBX,\n.Dmi0JaX5xZedWQRQ0JTg {\n  border-radius: 0.3rem;\n  background-color: #bad9f1;\n  color: rgb(0, 0, 0);\n}\n.wGQHAGY7JCfLGRfl21EA:hover,\n.UhZiFX8PaDQQAzdZp_pp:hover,\n.iOnHPZtk6CV7CDVlYcBX:hover,\n.Dmi0JaX5xZedWQRQ0JTg:hover {\n  background-color: #1d5d90;\n}\n.Q1ftJ3MzAhg_VDXOZ5VQ:not(.Ju5BJuRfDtQHEXsJTMKb,\n.cx0tKN7_pVYTjFbmhXbn,\n.o2WadGf7GxEAvMIgF_z8,\n._A2Q5L6DGrg3kVyyBaKv),\n.X6qOOvB9S1_BA0jzyi5v:not(.Ju5BJuRfDtQHEXsJTMKb,\n.cx0tKN7_pVYTjFbmhXbn,\n.o2WadGf7GxEAvMIgF_z8,\n._A2Q5L6DGrg3kVyyBaKv),\n.Wd3S5hJp25_5ZjIWe88P:not(.Ju5BJuRfDtQHEXsJTMKb,\n.cx0tKN7_pVYTjFbmhXbn,\n.o2WadGf7GxEAvMIgF_z8,\n._A2Q5L6DGrg3kVyyBaKv),\n.uC47fzgOGLIx_IK53nSA:not(.Ju5BJuRfDtQHEXsJTMKb,\n.cx0tKN7_pVYTjFbmhXbn,\n.o2WadGf7GxEAvMIgF_z8,\n._A2Q5L6DGrg3kVyyBaKv){\n  background-color: rgba(33, 107, 165, 0.5);\n}\n.d5y26CJYP9lKuYORd5rB .Ju5BJuRfDtQHEXsJTMKb:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA), .irUIHx_LKh5NBOBiMG9W .Ju5BJuRfDtQHEXsJTMKb:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA),\n.d5y26CJYP9lKuYORd5rB .cx0tKN7_pVYTjFbmhXbn:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA),\n.irUIHx_LKh5NBOBiMG9W .cx0tKN7_pVYTjFbmhXbn:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA),\n.d5y26CJYP9lKuYORd5rB .o2WadGf7GxEAvMIgF_z8:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA),\n.irUIHx_LKh5NBOBiMG9W .o2WadGf7GxEAvMIgF_z8:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA),\n.d5y26CJYP9lKuYORd5rB ._A2Q5L6DGrg3kVyyBaKv:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA),\n.irUIHx_LKh5NBOBiMG9W ._A2Q5L6DGrg3kVyyBaKv:not(.Q1ftJ3MzAhg_VDXOZ5VQ,\n.X6qOOvB9S1_BA0jzyi5v,\n.Wd3S5hJp25_5ZjIWe88P,\n.uC47fzgOGLIx_IK53nSA){\n  background-color: #f0f0f0;\n  color: #000;\n}\n.AyCbvATBsvSyVII4VIrl,\n.lPcA2LuRC0pDFxajNwjf,\n.nImoWFtYm4ocLFSWCWcE,\n.Ijw3xyZAKdOg2WPgShkn {\n  cursor: default;\n  color: #ccc;\n}\n.AyCbvATBsvSyVII4VIrl:hover,\n.lPcA2LuRC0pDFxajNwjf:hover,\n.nImoWFtYm4ocLFSWCWcE:hover,\n.Ijw3xyZAKdOg2WPgShkn:hover {\n  background-color: transparent;\n}\n\n.XwdxwUM4y2YUg9kXlKQe {\n  position: relative;\n  display: inline-block;\n  width: 100%;\n}\n.XwdxwUM4y2YUg9kXlKQe .K25_pnd90XMTZ4Klx1Jh {\n  position: absolute;\n  padding: 0.5rem;\n  box-sizing: content-box;\n}\n\n.iWuYGpCUnk5twZdl2uvD input {\n  padding: 6px 10px 5px 25px;\n}\n\n.Fkimhkf2WnEYkNNoUVCO,\n.XDnxj4prbVjXf09dmO2f,\n.iGBHdm9SWTcCZyPrMKrl {\n  border: 1px solid transparent;\n  border-radius: 0.3rem;\n  position: relative;\n}\n.Fkimhkf2WnEYkNNoUVCO:hover,\n.XDnxj4prbVjXf09dmO2f:hover,\n.iGBHdm9SWTcCZyPrMKrl:hover {\n  cursor: pointer;\n}\n.Fkimhkf2WnEYkNNoUVCO:hover .fod4ZeXNMNcj6nbuusiY,\n.Fkimhkf2WnEYkNNoUVCO:hover .cBCI2huT9lOsb_gc5epr,\n.XDnxj4prbVjXf09dmO2f:hover .fod4ZeXNMNcj6nbuusiY,\n.XDnxj4prbVjXf09dmO2f:hover .cBCI2huT9lOsb_gc5epr,\n.iGBHdm9SWTcCZyPrMKrl:hover .fod4ZeXNMNcj6nbuusiY,\n.iGBHdm9SWTcCZyPrMKrl:hover .cBCI2huT9lOsb_gc5epr {\n  border-top-color: #b3b3b3;\n}\n.fod4ZeXNMNcj6nbuusiY,\n.cBCI2huT9lOsb_gc5epr,\n.VakY0Xks34qzb4hYa3qg {\n  transform: rotate(135deg);\n  right: -16px;\n  top: 0;\n}\n\n.nPyWy6q3VNkyeHuHxCU3,\n.wpu6iZ6eW6gt86vneGLD,\n.MseDnPQLK08nULYxTp7R {\n  background-color: #f0f0f0;\n  position: absolute;\n  width: 50%;\n  left: 25%;\n  top: 30px;\n  z-index: 1;\n  text-align: center;\n  border-radius: 0.3rem;\n  border: 1px solid #aeaeae;\n}\n.nPyWy6q3VNkyeHuHxCU3:hover,\n.wpu6iZ6eW6gt86vneGLD:hover,\n.MseDnPQLK08nULYxTp7R:hover {\n  cursor: pointer;\n}\n.CbXoXMUXkXAML5OqdZmQ,\n.ffm5d01D2HXskVm_fqCZ,\n.G_TaXgQlZnbwlh1iM6kJ {\n  height: 150px;\n  overflow-y: scroll;\n}\n\n.vSPtQXIYk99aJdzaS4Nc,\n.yCdWKlKLLXlxVH5hBovg,\n.l3hVVTcCgh7K2unknwjR {\n  line-height: 20px;\n  width: 100%;\n  display: block;\n  margin-left: auto;\n  margin-right: auto;\n}\n.vSPtQXIYk99aJdzaS4Nc:first-of-type,\n.yCdWKlKLLXlxVH5hBovg:first-of-type,\n.l3hVVTcCgh7K2unknwjR:first-of-type {\n  border-top-left-radius: 0.3rem;\n  border-top-right-radius: 0.3rem;\n}\n.vSPtQXIYk99aJdzaS4Nc:last-of-type,\n.yCdWKlKLLXlxVH5hBovg:last-of-type,\n.l3hVVTcCgh7K2unknwjR:last-of-type {\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  border-bottom-left-radius: 0.3rem;\n  border-bottom-right-radius: 0.3rem;\n}\n.vSPtQXIYk99aJdzaS4Nc:hover,\n.yCdWKlKLLXlxVH5hBovg:hover,\n.l3hVVTcCgh7K2unknwjR:hover {\n  background-color: #ccc;\n}\n.vSPtQXIYk99aJdzaS4Nc:hover .vXkrR7AEOAP1Ssk8TC9_,\n.yCdWKlKLLXlxVH5hBovg:hover .vXkrR7AEOAP1Ssk8TC9_,\n.l3hVVTcCgh7K2unknwjR:hover .vXkrR7AEOAP1Ssk8TC9_ {\n  border-bottom-color: #b3b3b3;\n}\n.vSPtQXIYk99aJdzaS4Nc:hover .iQchZaRRh3iv5Xc7GMrS,\n.yCdWKlKLLXlxVH5hBovg:hover .iQchZaRRh3iv5Xc7GMrS,\n.l3hVVTcCgh7K2unknwjR:hover .iQchZaRRh3iv5Xc7GMrS {\n  border-top-color: #b3b3b3;\n}\n.khuHk_hKBwLaJcMWdZu7,\n.GVruxXY96_JULBgjhzoV,\n.iMNaCIF9KpgJ2giyG6Xp {\n  position: absolute;\n  left: 15px;\n}\n\n.TB6k3Ln3SQGLjvKpzk00 {\n  cursor: pointer;\n  background-color: transparent;\n  border: 0;\n  outline: 0;\n  padding: 0 6px 0 0;\n  position: absolute;\n  top: 0;\n  right: 0;\n  height: 100%;\n  display: table-cell;\n  vertical-align: middle;\n}\n.TB6k3Ln3SQGLjvKpzk00::after {\n  cursor: pointer;\n  background-color: #216ba5;\n  color: #fff;\n  border-radius: 50%;\n  height: 16px;\n  width: 16px;\n  padding: 2px;\n  font-size: 12px;\n  line-height: 1;\n  text-align: center;\n  display: table-cell;\n  vertical-align: middle;\n  content: "×";\n}\n.o6Uk6UM38NSgEvUYssPO {\n  cursor: default;\n}\n.o6Uk6UM38NSgEvUYssPO::after {\n  cursor: default;\n  background-color: #ccc;\n}\n\n.NqiyGsI_arwBCpjv5BtO {\n  background: #f0f0f0;\n  border-top: 1px solid #aeaeae;\n  cursor: pointer;\n  text-align: center;\n  font-weight: bold;\n  padding: 5px 0;\n  clear: left;\n}\n\n.b3tzogZSm7e4XApLipQ4 {\n  position: fixed;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.8);\n  left: 0;\n  top: 0;\n  justify-content: center;\n  align-items: center;\n  display: flex;\n  z-index: 2147483647;\n}\n.b3tzogZSm7e4XApLipQ4 .g20E84oit5VcucrOetdt,\n.b3tzogZSm7e4XApLipQ4 .FBbzZs9SCSAIjYuoSyRG,\n.b3tzogZSm7e4XApLipQ4 .PRmwxRjTBpTwLFvAPXRj {\n  width: 3rem;\n  line-height: 3rem;\n}\n@media (max-width: 400px), (max-height: 550px){\n  .b3tzogZSm7e4XApLipQ4 .g20E84oit5VcucrOetdt,\n  .b3tzogZSm7e4XApLipQ4 .FBbzZs9SCSAIjYuoSyRG,\n  .b3tzogZSm7e4XApLipQ4 .PRmwxRjTBpTwLFvAPXRj {\n    width: 2rem;\n    line-height: 2rem;\n  }\n}\n.b3tzogZSm7e4XApLipQ4 .iL95B_TSozIO0CpDlWrL,\n.b3tzogZSm7e4XApLipQ4 .iI17TarD3Z6Umn9z3Juw {\n  font-size: 1.44rem;\n}\n\n.Y4vQp415O7L4E9czhiVM {\n  width: 13.8rem;\n  margin: 0.4rem;\n  padding-right: 0.2rem;\n  padding-left: 0.2rem;\n  height: auto;\n}\n\n.CoOG3Hp1BwIXTQyqpdE3 {\n  position: absolute;\n  clip-path: circle(0);\n  border: 0;\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  width: 1px;\n  white-space: nowrap;\n}\n\n.K25_pnd90XMTZ4Klx1Jh {\n  width: 1em;\n  height: 1em;\n  vertical-align: -0.125em;\n}\n',""]),i.locals={"react-datepicker__year-read-view--down-arrow":"fod4ZeXNMNcj6nbuusiY","react-datepicker__month-read-view--down-arrow":"cBCI2huT9lOsb_gc5epr","react-datepicker__month-year-read-view--down-arrow":"VakY0Xks34qzb4hYa3qg","react-datepicker__navigation-icon":"CJNS2t3pDg318Lmfp0H9","react-datepicker-popper":"S7qP0N5diUkHRbpmBhGp","react-datepicker__triangle":"XLn4952nMF55Jw0GXDmb","react-datepicker-wrapper":"KakHaSX4szBEEjcf70vM","react-datepicker":"IXJ5rwop2w6dAFg0xwha","react-datepicker--time-only":"BBU7nch3AaQONwoSb0AF","react-datepicker__time-container":"wiigGjECCEfYQqcWh1CC","react-datepicker__time":"kdNnFH7h141xWlJBNBAE","react-datepicker__time-box":"xR09WX3KWETugy4MjvAw","react-datepicker__header":"iSaeUIwlaf7GnGRPKypq","react-datepicker__header--time":"gpmx6nWYaXqRSIzTTzYK","react-datepicker__header--time--only":"YpdCRhelcevXY3xKetGV","react-datepicker__header--has-time-select":"lHn6puFtyRMP5BznAWwg","react-datepicker__year-dropdown-container--select":"cq12I7owD4CQPLDFlmQH","react-datepicker__month-dropdown-container--select":"chGdB2_ty_cPqlfG0ovB","react-datepicker__month-year-dropdown-container--select":"n0apu1iBCuGqvCTW5dHj","react-datepicker__year-dropdown-container--scroll":"k_3yaNBi95YQT4LGcSVh","react-datepicker__month-dropdown-container--scroll":"vuBHhxTox3tZZ9JuJEZB","react-datepicker__month-year-dropdown-container--scroll":"okTx1gFNVyTTtBVZEEGk","react-datepicker__current-month":"iL95B_TSozIO0CpDlWrL","react-datepicker-time__header":"iI17TarD3Z6Umn9z3Juw","react-datepicker-year-header":"E9rpIAEJtJEl7pa7qEuo","react-datepicker__navigation":"srZWcT5CWg8vgM3hH18g","react-datepicker__navigation--previous":"Sco1tMPmXf7wCrIZTUKP","react-datepicker__navigation--next":"CokSq81sNmxUOfIuUmBk","react-datepicker__navigation--next--with-time":"C6QgDjDW9XkzSeKBiKsx","react-datepicker__navigation--next--with-today-button":"BjHpYPVhimASeZ9rqIIE","react-datepicker__navigation--years":"EfYxQSkZvNas6WzjRi3w","react-datepicker__navigation--years-previous":"iQchZaRRh3iv5Xc7GMrS","react-datepicker__navigation--years-upcoming":"vXkrR7AEOAP1Ssk8TC9_","react-datepicker__navigation-icon--next":"jka_ZXFD_brEsiSoH1XM","react-datepicker__navigation-icon--previous":"Ds74F7ygh8GcuhGmz9Pe","react-datepicker__month-container":"oS48bGzCWqZ3d2E20CsJ","react-datepicker__year":"tmQzD5x5ld7nSjH7ZUnO","react-datepicker__year-wrapper":"fWsedLE2WlI0Uva4Lqaw","react-datepicker__year-text":"zw5Lhb9GbDzOt6f7r926","react-datepicker__month":"zv_wKFwQTdGgX3q3IP4v","react-datepicker__month-text":"i6PQIW5c6RuAjK40D4Hg","react-datepicker__quarter-text":"WdZyAV1QQN1ioR2gqqsj","react-datepicker__input-time-container":"Fo84qakRcEGX6GooYA5e","react-datepicker-time__caption":"XXXv83f7WOuLmbm1H05J","react-datepicker-time__input-container":"BLUTkwvPbaQOwHa3X43u","react-datepicker-time__input":"jnHR3UyoNnIADznASJG9","react-datepicker-time__delimiter":"N_j3rdvPcQs4hA205_Ec","react-datepicker__time-container--with-today-button":"VNQdab5EQ_Xily2VgT4y","react-datepicker__time-list":"U6IqAY2mhiwTZLSOKNDj","react-datepicker__time-list-item":"bplWpSY4gEUYCDwSdBta","react-datepicker__time-list-item--selected":"hQdfMP5iUlLX3fG_xVfB","react-datepicker__time-list-item--disabled":"dsKNk2Mc_V41Wl7QFllJ","react-datepicker__week-number":"s0x5FtIR7jZlJGI6ON6A","react-datepicker__week-number--clickable":"FX5T_2nGFgyIX40YwWlP","react-datepicker__week-number--selected":"hHlKSv8vBMYNdzQ4SGrB","react-datepicker__week-number--keyboard-selected":"uppPl_vEFrDA3Z1Lh5VA","react-datepicker__day-names":"mHCnDUBiAlkyJzXQ4uhR","react-datepicker__week":"uJcDoRPy_nkk5kpdk6jT","react-datepicker__day-name":"g20E84oit5VcucrOetdt","react-datepicker__day":"FBbzZs9SCSAIjYuoSyRG","react-datepicker__time-name":"PRmwxRjTBpTwLFvAPXRj","react-datepicker__day--today":"GVs2fEogxVFWLeQF1otT","react-datepicker__month-text--today":"cR5J0ggY8bx7hTBLoco8","react-datepicker__quarter-text--today":"_8BLyOvIc3pzANrZmKTUE","react-datepicker__year-text--today":"l_kLoN_9kcZpEdzGaUIx","react-datepicker__day--highlighted":"xxW4z0V81RNyMOJaMhJm","react-datepicker__month-text--highlighted":"W2A3obRM54JNaf_J0c4_","react-datepicker__quarter-text--highlighted":"_WQpnBeri_7kudCBXQgr","react-datepicker__year-text--highlighted":"jiIOfz2jg2V5wpgPTa6z","react-datepicker__day--highlighted-custom-1":"GFRbNuTzWqST3J4gLyn2","react-datepicker__month-text--highlighted-custom-1":"TlPVIfju4H7pAyrEZ2qr","react-datepicker__quarter-text--highlighted-custom-1":"hTNIRkA1WOJ0lQ05ichL","react-datepicker__year-text--highlighted-custom-1":"DJziLB9iaq8dRvJ6SwlJ","react-datepicker__day--highlighted-custom-2":"b7jJrxJyLVE5GiYugi9Q","react-datepicker__month-text--highlighted-custom-2":"FDlW0IBQzRVImfVzT4VP","react-datepicker__quarter-text--highlighted-custom-2":"Ci7Bb8uw8HtlH7_eiIR4","react-datepicker__year-text--highlighted-custom-2":"GIuiIf0cMEN6p6fEcDIG","react-datepicker__day--holidays":"OumOYsBrrNR0j7vhpkuW","react-datepicker__month-text--holidays":"tXgYeGYy3t_75LMHVbZn","react-datepicker__quarter-text--holidays":"zZDApuUInndtQzSKik7G","react-datepicker__year-text--holidays":"_3RXS5fmtTfatoP0jG_R","holiday-overlay":"MuqpaITSDzGhnuE17MqW","react-datepicker__day--selected":"b7YWalbftblur37KulHN","react-datepicker__day--in-selecting-range":"Q1ftJ3MzAhg_VDXOZ5VQ","react-datepicker__day--in-range":"Ju5BJuRfDtQHEXsJTMKb","react-datepicker__month-text--selected":"uCtgRNlb4ATKF9EyUr65","react-datepicker__month-text--in-selecting-range":"X6qOOvB9S1_BA0jzyi5v","react-datepicker__month-text--in-range":"cx0tKN7_pVYTjFbmhXbn","react-datepicker__quarter-text--selected":"Ebbec1ld974uRNs89kr7","react-datepicker__quarter-text--in-selecting-range":"Wd3S5hJp25_5ZjIWe88P","react-datepicker__quarter-text--in-range":"o2WadGf7GxEAvMIgF_z8","react-datepicker__year-text--selected":"ikStZgOtZYloOhYUCfz7","react-datepicker__year-text--in-selecting-range":"uC47fzgOGLIx_IK53nSA","react-datepicker__year-text--in-range":"_A2Q5L6DGrg3kVyyBaKv","react-datepicker__day--keyboard-selected":"wGQHAGY7JCfLGRfl21EA","react-datepicker__month-text--keyboard-selected":"UhZiFX8PaDQQAzdZp_pp","react-datepicker__quarter-text--keyboard-selected":"iOnHPZtk6CV7CDVlYcBX","react-datepicker__year-text--keyboard-selected":"Dmi0JaX5xZedWQRQ0JTg","react-datepicker__month--selecting-range":"d5y26CJYP9lKuYORd5rB","react-datepicker__year--selecting-range":"irUIHx_LKh5NBOBiMG9W","react-datepicker__day--disabled":"AyCbvATBsvSyVII4VIrl","react-datepicker__month-text--disabled":"lPcA2LuRC0pDFxajNwjf","react-datepicker__quarter-text--disabled":"nImoWFtYm4ocLFSWCWcE","react-datepicker__year-text--disabled":"Ijw3xyZAKdOg2WPgShkn","react-datepicker__input-container":"XwdxwUM4y2YUg9kXlKQe","react-datepicker__calendar-icon":"K25_pnd90XMTZ4Klx1Jh","react-datepicker__view-calendar-icon":"iWuYGpCUnk5twZdl2uvD","react-datepicker__year-read-view":"Fkimhkf2WnEYkNNoUVCO","react-datepicker__month-read-view":"XDnxj4prbVjXf09dmO2f","react-datepicker__month-year-read-view":"iGBHdm9SWTcCZyPrMKrl","react-datepicker__year-dropdown":"nPyWy6q3VNkyeHuHxCU3","react-datepicker__month-dropdown":"wpu6iZ6eW6gt86vneGLD","react-datepicker__month-year-dropdown":"MseDnPQLK08nULYxTp7R","react-datepicker__year-dropdown--scrollable":"CbXoXMUXkXAML5OqdZmQ","react-datepicker__month-dropdown--scrollable":"ffm5d01D2HXskVm_fqCZ","react-datepicker__month-year-dropdown--scrollable":"G_TaXgQlZnbwlh1iM6kJ","react-datepicker__year-option":"vSPtQXIYk99aJdzaS4Nc","react-datepicker__month-option":"yCdWKlKLLXlxVH5hBovg","react-datepicker__month-year-option":"l3hVVTcCgh7K2unknwjR","react-datepicker__year-option--selected":"khuHk_hKBwLaJcMWdZu7","react-datepicker__month-option--selected":"GVruxXY96_JULBgjhzoV","react-datepicker__month-year-option--selected":"iMNaCIF9KpgJ2giyG6Xp","react-datepicker__close-icon":"TB6k3Ln3SQGLjvKpzk00","react-datepicker__close-icon--disabled":"o6Uk6UM38NSgEvUYssPO","react-datepicker__today-button":"NqiyGsI_arwBCpjv5BtO","react-datepicker__portal":"b3tzogZSm7e4XApLipQ4","react-datepicker__children-container":"Y4vQp415O7L4E9czhiVM","react-datepicker__aria-live":"CoOG3Hp1BwIXTQyqpdE3"};const s=i},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(2284);function a(e){var t=function(e){if("object"!=(0,o.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,o.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,o.A)(t)?t:t+""}},834:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,a=((o=n(411))&&o.__esModule?o:{default:o}).default,r=a.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=a.canUseDOM?window.NodeList:{},t.canUseDOM=a.canUseDOM,t.default=r},838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},862:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o,a=(o=n(1923))&&o.__esModule?o:{default:o},r=c(n(6540)),i=n(3869),s=(c(n(5556)),n(3684));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!=r&&Object.prototype.hasOwnProperty.call(e,r)){var i=a?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(o,r,i):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var u=function(e,t){var n=e.addPlaceholder,o=e.searchable,a=e.placeholder,r=t.values&&0===t.values.length;return t.values&&0<t.values.length&&n&&o?n:r?a:""},p=function(e){function t(){for(var t,n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).input=r.default.createRef(),t.onBlur=function(e){return e.stopPropagation(),t.props.state.dropdown?t.input.current.focus():t.input.current.blur()},t.handleKeyPress=function(e){var n=t.props,o=n.props,a=n.state,r=n.methods;return o.create&&"Enter"===e.key&&!(0,i.valueExistInSelected)(a.search,[].concat(a.values,o.options),t.props)&&a.search&&null===a.cursor&&r.createNew(a.search)},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){(this.props.state.dropdown||e.state.dropdown!==this.props.state.dropdown&&this.props.state.dropdown||this.props.props.autoFocus)&&this.input.current.focus(),e.state.dropdown===this.props.state.dropdown||this.props.state.dropdown||this.input.current.blur()},n.render=function(){var e=this.props,t=e.props,n=e.state,o=e.methods;return t.inputRenderer?t.inputRenderer({props:t,state:n,methods:o,inputRef:this.input}):r.default.createElement(h,{ref:this.input,tabIndex:"-1",onFocus:function(e){return e.stopPropagation()},className:s.LIB_NAME+"-input",size:o.getInputSize(),value:n.search,readOnly:!t.searchable,onClick:function(){return o.dropDown("open")},onKeyPress:this.handleKeyPress,onChange:o.setSearch,onBlur:this.onBlur,placeholder:u(t,n),disabled:t.disabled})},t}(r.Component),h=(0,a.default)("input",{target:"e11wid6y0"})("line-height:inherit;border:none;margin-left:5px;background:transparent;padding:0;width:calc(",(function(e){return e.size+"ch"})," + 5px);font-size:smaller;",(function(e){return e.readOnly&&"cursor: pointer;"})," :focus{outline:none;}"),m=p;t.default=m},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(2998),a=n(551),r=n(4188);function i(e,t){(0,a.A)(2,arguments);var n=(0,r.A)(t);return(0,o.default)(e,-n)}},992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(6757),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getTime()===r.getTime()}},1011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(5093))},1020:(e,t,n)=>{"use strict";n(5228);var o=n(6540),a=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;a=r("react.element"),t.Fragment=r("react.fragment")}var i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,r={},c=null,d=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:a,type:e,key:c,ref:d,props:r,_owner:i.current}}t.jsx=c,t.jsxs=c},1025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(5093))},1039:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o,a=(o=n(1923))&&o.__esModule?o:{default:o},r=c(n(6540)),i=n(3869),s=(c(n(5556)),n(3684));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!=r&&Object.prototype.hasOwnProperty.call(e,r)){var i=a?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(o,r,i):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var u=function(e){function t(){for(var t,n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).item=r.default.createRef(),t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.props,t=e.props,n=e.methods;this.item.current&&!t.multi&&t.keepSelectedInList&&n.isSelected(this.props.item)&&this.item.current.scrollIntoView({block:"nearest",inline:"start"})},n.componentDidUpdate=function(){this.props.state.cursor===this.props.itemIndex&&this.item.current&&this.item.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n.render=function(){var e=this.props,t=e.props,n=e.state,o=e.methods,a=e.item,l=e.itemIndex;return t.itemRenderer?t.itemRenderer({item:a,itemIndex:l,props:t,state:n,methods:o}):!t.keepSelectedInList&&o.isSelected(a)?null:r.default.createElement(p,{role:"option",ref:this.item,"aria-selected":o.isSelected(a),"aria-disabled":a.disabled,"aria-label":(0,i.getByPath)(a,t.labelField),disabled:a.disabled,key:""+(0,i.getByPath)(a,t.valueField)+(0,i.getByPath)(a,t.labelField),tabIndex:"-1",className:s.LIB_NAME+"-item "+(o.isSelected(a)?s.LIB_NAME+"-item-selected":"")+" "+(n.cursor===l?s.LIB_NAME+"-item-active":"")+" "+(a.disabled?s.LIB_NAME+"-item-disabled":""),onClick:a.disabled?void 0:function(){return o.addItem(a)},onKeyPress:a.disabled?void 0:function(){return o.addItem(a)},color:t.color},(0,i.getByPath)(a,t.labelField)," ",a.disabled&&r.default.createElement("ins",null,t.disabledLabel))},t}(r.Component),p=(0,a.default)("span",{target:"evc32pp0"})("padding:5px 10px;cursor:pointer;border-bottom:1px solid #fff;&.",s.LIB_NAME,"-item-active{border-bottom:1px solid #fff;",(function(e){var t=e.disabled,n=e.color;return!t&&n&&"background: "+(0,i.hexToRGBA)(n,.1)+";"}),";}:hover,:focus{background:",(function(e){var t=e.color;return t&&(0,i.hexToRGBA)(t,.1)}),";outline:none;}&.",s.LIB_NAME,"-item-selected{",(function(e){var t=e.disabled,n=e.color;return t?"\n    background: #f2f2f2;\n    color: #ccc;\n    ":"\n    background: "+n+";\n    color: #fff;\n    border-bottom: 1px solid #fff;\n    "}),";}",(function(e){return e.disabled?"\n    background: #f2f2f2;\n    color: #ccc;\n\n    ins {\n      text-decoration: none;\n      border:1px solid #ccc;\n      border-radius: 2px;\n      padding: 0px 3px;\n      font-size: x-small;\n      text-transform: uppercase;\n    }\n    ":""}),";"),h=u;t.default=h},1052:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,o,a){var r=function(e){var n=Math.floor(e%1e3/100),o=Math.floor(e%100/10),a=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),o>0&&(r+=(""!==r?" ":"")+t[o]+"maH"),a>0&&(r+=(""!==r?" ":"")+t[a]),""===r?"pagh":r}(e);switch(o){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},1053:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var o=n(123),a=n(9411),r=n(4127),i=n(551),s=6048e5;function l(e){(0,i.A)(1,arguments);var t=(0,o.default)(e),n=(0,a.A)(t).getTime()-function(e){(0,i.A)(1,arguments);var t=(0,r.A)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,a.A)(n)}(t).getTime();return Math.round(n/s)+1}},1104:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t),s=n.getFullYear(),l=n.getDate(),c=new Date(0);c.setFullYear(s,i,15),c.setHours(0,0,0,0);var d=function(e){(0,r.A)(1,arguments);var t=(0,a.default)(e),n=t.getFullYear(),o=t.getMonth(),i=new Date(0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}(c);return n.setMonth(i,Math.min(l,d)),n}},1109:(e,t,n)=>{"use strict";n.d(t,{ef:()=>r,lJ:()=>s,xM:()=>i});var o=["D","DD"],a=["YY","YYYY"];function r(e){return-1!==o.indexOf(e)}function i(e){return-1!==a.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},1113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1127:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e);return t.setHours(0,0,0,0),t}},1135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},1287:(e,t,n)=>{"use strict";var o;n.d(t,{i:()=>s,s:()=>i});var a=n(6540),r=!!(o||(o=n.t(a,2))).useInsertionEffect&&(o||(o=n.t(a,2))).useInsertionEffect,i=r||function(e){return e()},s=r||a.useLayoutEffect},1290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(5093))},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function a(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==i?"\n  "+i:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=a),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var d=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;d.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},1470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],a=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,r=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:r,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:r,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(5093))},1488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(o,a,r,i){var s=t(o),l=n[e][t(o)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,o)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(5093))},1509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,i){var s=o(t),l=a[e][o(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},1524:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(4188),a=n(7767),r=n(551),i=36e5;function s(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.A)(e,n*i)}},1541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},1545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(5093))},1581:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(1923)),a=i(n(6540)),r=n(3684);function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)("div",{target:"e19h5j1v0"})({name:"cmi1n0",styles:"border-left:1px solid #ccc;width:1px;height:25px;display:block"});t.default=function(e){var t=e.props,n=e.state,o=e.methods;return t.separatorRenderer?t.separatorRenderer({props:t,state:n,methods:o}):a.default.createElement(s,{className:r.LIB_NAME+"-separator"})}},1591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t);return n.setSeconds(i),n}},1601:e=>{"use strict";e.exports=function(e){return e[1]}},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1200?"上午":1200===o?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(5093))},1713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(5093))},1720:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(6540),i=m(r),s=m(n(961)),l=m(n(5556)),c=m(n(9090)),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4081)),u=n(834),p=m(u),h=n(1345);function m(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var g=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",_=u.canUseDOM&&void 0!==s.default.createPortal,b=function(e){return document.createElement(e)},y=function(){return _?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function w(e){return e()}var k=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,l=Array(r),d=0;d<r;d++)l[d]=arguments[d];return n=a=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a.removePortal=function(){!_&&s.default.unmountComponentAtNode(a.node);var e=w(a.props.parentSelector);e&&e.contains(a.node)?e.removeChild(a.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},a.portalRef=function(e){a.portal=e},a.renderPortal=function(e){var n=y()(a,i.default.createElement(c.default,o({defaultStyles:t.defaultStyles},e)),a.node);a.portalRef(n)},f(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){u.canUseDOM&&(_||(this.node=b("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!_&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:w(e.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(u.canUseDOM){var o=this.props,a=o.isOpen,r=o.portalClassName;e.portalClassName!==r&&(this.node.className=r);var i=n.prevParent,s=n.nextParent;s!==i&&(i.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||a)&&!_&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(u.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return u.canUseDOM&&_?(!this.node&&_&&(this.node=b("div")),y()(i.default.createElement(c.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){d.setElement(e)}}]),t}(r.Component);k.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(p.default),l.default.instanceOf(u.SafeHTMLCollection),l.default.instanceOf(u.SafeNodeList),l.default.arrayOf(l.default.instanceOf(p.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},k.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(k),t.default=k},1734:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},1765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(5093))},1788:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},a=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const r={p:a,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],s=r[2];if(!s)return o(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",o(i,t)).replace("{{time}}",a(s,t))}}},1794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(5093))},1806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(7499),a=n(551),r=n(4188);function i(e,t){var n;(0,a.A)(1,arguments);var i=(0,r.A)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var f,g=function(e){var t,n={},o=e.split(s.dateTimeDelimiter);if(o.length>2)return n;if(/:/.test(o[0])?t=o[0]:(n.date=o[0],t=o[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var a=s.timezone.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e);if(g.date){var v=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),o=e.match(n);if(!o)return{year:NaN,restDateString:""};var a=o[1]?parseInt(o[1]):null,r=o[2]?parseInt(o[2]):null;return{year:null===r?a:100*r,restDateString:e.slice((o[1]||o[2]).length)}}(g.date,i);f=function(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var o=!!n[4],a=u(n[1]),r=u(n[2])-1,i=u(n[3]),s=u(n[4]),c=u(n[5])-1;if(o)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var o=new Date(0);o.setUTCFullYear(e,0,4);var a=7*(t-1)+n+1-(o.getUTCDay()||7);return o.setUTCDate(o.getUTCDate()+a),o}(t,s,c):new Date(NaN);var d=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(h[t]||(m(e)?29:28))}(t,r,i)&&function(e,t){return t>=1&&t<=(m(e)?366:365)}(t,a)?(d.setUTCFullYear(t,r,Math.max(a,i)),d):new Date(NaN)}(v.restDateString,v.year)}if(!f||isNaN(f.getTime()))return new Date(NaN);var _,b=f.getTime(),y=0;if(g.time&&(y=function(e){var t=e.match(c);if(!t)return NaN;var n=p(t[1]),a=p(t[2]),r=p(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,a,r)?n*o.s0+a*o.Cg+1e3*r:NaN}(g.time),isNaN(y)))return new Date(NaN);if(!g.timezone){var w=new Date(b+y),k=new Date(0);return k.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),k.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),k}return _=function(e){if("Z"===e)return 0;var t=e.match(d);if(!t)return 0;var n="+"===t[1]?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,r)?n*(a*o.s0+r*o.Cg):NaN}(g.timezone),isNaN(_)?new Date(NaN):new Date(b+y+_)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,d=/^([+-])(\d{2})(?::?(\d{2}))?$/;function u(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function m(e){return e%400==0||e%4==0&&e%100!=0}},1810:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(1127),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getTime()===r.getTime()}},1827:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},1858:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var o={};function a(){return o}},1885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(5093))},1907:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(6289),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=(0,o.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},1923:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var o=n(8168),a=n(6540),r=n(1907),i=n(5684),s=n(41),l=n(3174),c=n(1287),d=r.A,u=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:u},h=function(e,t,n){var o;if(t){var a=t.shouldForwardProp;o=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},m=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return(0,s.SF)(t,n,o),(0,c.s)((function(){return(0,s.sk)(t,n,o)})),null},f=function e(t,n){var r,c,d=t.__emotion_real===t,u=d&&t.__emotion_base||t;void 0!==n&&(r=n.label,c=n.target);var f=h(t,n,d),g=f||p(u),v=!g("as");return function(){var _=arguments,b=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&b.push("label:"+r+";"),null==_[0]||void 0===_[0].raw)b.push.apply(b,_);else{b.push(_[0][0]);for(var y=_.length,w=1;w<y;w++)b.push(_[w],_[0][w])}var k=(0,i.w)((function(e,t,n){var o=v&&e.as||u,r="",d=[],h=e;if(null==e.theme){for(var _ in h={},e)h[_]=e[_];h.theme=a.useContext(i.T)}"string"==typeof e.className?r=(0,s.Rk)(t.registered,d,e.className):null!=e.className&&(r=e.className+" ");var y=(0,l.J)(b.concat(d),t.registered,h);r+=t.key+"-"+y.name,void 0!==c&&(r+=" "+c);var w=v&&void 0===f?p(o):g,k={};for(var x in e)v&&"as"===x||w(x)&&(k[x]=e[x]);return k.className=r,k.ref=n,a.createElement(a.Fragment,null,a.createElement(m,{cache:t,serialized:y,isStringTag:"string"==typeof o}),a.createElement(o,k))}));return k.displayName=void 0!==r?r:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=u,k.__emotion_styles=b,k.__emotion_forwardProp=f,Object.defineProperty(k,"toString",{value:function(){return"."+c}}),k.withComponent=function(t,a){return e(t,(0,o.A)({},n,a,{shouldForwardProp:h(k,a,!0)})).apply(void 0,b)},k}}},2002:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getFullYear()-r.getFullYear()}},2044:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getMonth()}},2118:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t);if(isNaN(i))return new Date(NaN);if(!i)return n;var s=n.getDate(),l=new Date(n.getTime());return l.setMonth(n.getMonth()+i+1,0),s>=l.getDate()?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},2124:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return o?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(5093))},2218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(5093))},2238:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(2998),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=7*(0,o.A)(t);return(0,a.default)(e,n)}},2264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(5093))},2271:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(o=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),o%10==1&&o%100!=11?a[0]:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?a[1]:a[2]);var o,a}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(5093))},2274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},2284:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{A:()=>o})},2297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},2346:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var o=n(6828),a=n(5654),r=n(123),i=n(551),s=n(1053),l=n(4127),c=n(6894),d=n(464);function u(e,t){for(var n=e<0?"-":"",o=Math.abs(e).toString();o.length<t;)o="0"+o;return n+o}const p=function(e,t){var n=e.getUTCFullYear(),o=n>0?n:1-n;return u("yy"===t?o%100:o,t.length)},h=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):u(n+1,2)},m=function(e,t){return u(e.getUTCDate(),t.length)},f=function(e,t){return u(e.getUTCHours()%12||12,t.length)},g=function(e,t){return u(e.getUTCHours(),t.length)},v=function(e,t){return u(e.getUTCMinutes(),t.length)},_=function(e,t){return u(e.getUTCSeconds(),t.length)},b=function(e,t){var n=t.length,o=e.getUTCMilliseconds();return u(Math.floor(o*Math.pow(10,n-3)),t.length)};function y(e,t){var n=e>0?"-":"+",o=Math.abs(e),a=Math.floor(o/60),r=o%60;if(0===r)return n+String(a);var i=t||"";return n+String(a)+i+u(r,2)}function w(e,t){return e%60==0?(e>0?"-":"+")+u(Math.abs(e)/60,2):k(e,t)}function k(e,t){var n=t||"",o=e>0?"-":"+",a=Math.abs(e);return o+u(Math.floor(a/60),2)+n+u(a%60,2)}const x={G:function(e,t,n){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var o=e.getUTCFullYear(),a=o>0?o:1-o;return n.ordinalNumber(a,{unit:"year"})}return p(e,t)},Y:function(e,t,n,o){var a=(0,d.A)(e,o),r=a>0?a:1-a;return"YY"===t?u(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):u(r,t.length)},R:function(e,t){return u((0,l.A)(e),t.length)},u:function(e,t){return u(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return u(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return u(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){var o=e.getUTCMonth();switch(t){case"M":case"MM":return h(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return u(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var a=(0,c.A)(e,o);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):u(a,t.length)},I:function(e,t,n){var o=(0,s.A)(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):u(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m(e,t)},D:function(e,t,n){var o=function(e){(0,i.A)(1,arguments);var t=(0,r.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var o=n-t.getTime();return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):u(o,t.length)},E:function(e,t,n){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){var a=e.getUTCDay(),r=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return u(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){var a=e.getUTCDay(),r=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return u(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var o=e.getUTCDay(),a=0===o?7:o;switch(t){case"i":return String(a);case"ii":return u(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){var o,a=e.getUTCHours();switch(o=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){var o,a=e.getUTCHours();switch(o=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var o=e.getUTCHours()%12;return 0===o&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return f(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):g(e,t)},K:function(e,t,n){var o=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):u(o,t.length)},k:function(e,t,n){var o=e.getUTCHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):u(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):v(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):_(e,t)},S:function(e,t){return b(e,t)},X:function(e,t,n,o){var a=(o._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return w(a);case"XXXX":case"XX":return k(a);default:return k(a,":")}},x:function(e,t,n,o){var a=(o._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(a);case"xxxx":case"xx":return k(a);default:return k(a,":")}},O:function(e,t,n,o){var a=(o._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(a,":");default:return"GMT"+k(a,":")}},z:function(e,t,n,o){var a=(o._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(a,":");default:return"GMT"+k(a,":")}},t:function(e,t,n,o){var a=o._originalDate||e;return u(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,o){return u((o._originalDate||e).getTime(),t.length)}};var E=n(1788),S=n(7044),M=n(1109),T=n(4188),C=n(1858),A=n(4274),D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L=/^'([^]*?)'?$/,N=/''/g,I=/[a-zA-Z]/;function O(e,t,n){var s,l,c,d,u,p,h,m,f,g,v,_,b,y,w,k,O,R;(0,i.A)(2,arguments);var F=String(t),j=(0,C.q)(),Y=null!==(s=null!==(l=null==n?void 0:n.locale)&&void 0!==l?l:j.locale)&&void 0!==s?s:A.A,z=(0,T.A)(null!==(c=null!==(d=null!==(u=null!==(p=null==n?void 0:n.firstWeekContainsDate)&&void 0!==p?p:null==n||null===(h=n.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==u?u:j.firstWeekContainsDate)&&void 0!==d?d:null===(f=j.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(z>=1&&z<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,T.A)(null!==(v=null!==(_=null!==(b=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(w=n.locale)||void 0===w||null===(k=w.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==b?b:j.weekStartsOn)&&void 0!==_?_:null===(O=j.locale)||void 0===O||null===(R=O.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==v?v:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var H=(0,r.default)(e);if(!(0,o.default)(H))throw new RangeError("Invalid time value");var V=(0,S.A)(H),U=(0,a.A)(H,V),W={firstWeekContainsDate:z,weekStartsOn:B,locale:Y,_originalDate:H};return F.match(P).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,E.A[t])(e,Y.formatLong):e})).join("").match(D).map((function(o){if("''"===o)return"'";var a,r,i=o[0];if("'"===i)return(r=(a=o).match(L))?r[1].replace(N,"'"):a;var s=x[i];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!(0,M.xM)(o)||(0,M.lJ)(o,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,M.ef)(o)||(0,M.lJ)(o,t,String(e)),s(U,o,Y.localize,W);if(i.match(I))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return o})).join("")}},2353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,r,i){var s=n(t),l=o[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},2379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getFullYear()}},2411:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",o="contents",a=/^(input|select|textarea|button|object|iframe)$/;function r(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var a=window.getComputedStyle(e),r=a.getPropertyValue("display");return t?r!==o&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,a):r===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(a.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),r(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},2430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Manager:()=>i,Popper:()=>Ce,Reference:()=>Pe,usePopper:()=>Ee});var o=n(6540),a=o.createContext(),r=o.createContext();function i(e){var t=e.children,n=o.useState(null),i=n[0],s=n[1],l=o.useRef(!1);o.useEffect((function(){return function(){l.current=!0}}),[]);var c=o.useCallback((function(e){l.current||s(e)}),[]);return o.createElement(a.Provider,{value:i},o.createElement(r.Provider,{value:c},t))}var s=function(e){return Array.isArray(e)?e[0]:e},l=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return e.apply(void 0,n)}},c=function(e,t){if("function"==typeof e)return l(e,t);null!=e&&(e.current=t)},d=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},u="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect,p=n(961);function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function m(e){return e instanceof h(e).Element||e instanceof Element}function f(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!=typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}var v=Math.max,_=Math.min,b=Math.round;function y(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function w(){return!/^((?!chrome|android).)*safari/i.test(y())}function k(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=1,r=1;t&&f(e)&&(a=e.offsetWidth>0&&b(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&b(o.height)/e.offsetHeight||1);var i=(m(e)?h(e):window).visualViewport,s=!w()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/a,c=(o.top+(s&&i?i.offsetTop:0))/r,d=o.width/a,u=o.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function x(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function E(e){return e?(e.nodeName||"").toLowerCase():null}function S(e){return((m(e)?e.ownerDocument:e.document)||window.document).documentElement}function M(e){return k(S(e)).left+x(e).scrollLeft}function T(e){return h(e).getComputedStyle(e)}function C(e){var t=T(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function A(e,t,n){void 0===n&&(n=!1);var o,a,r=f(t),i=f(t)&&function(e){var t=e.getBoundingClientRect(),n=b(t.width)/e.offsetWidth||1,o=b(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=S(t),l=k(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==E(t)||C(s))&&(c=(o=t)!==h(o)&&f(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:x(o)),f(t)?((d=k(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=M(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function D(e){var t=k(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function P(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||S(e)}function L(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:f(e)&&C(e)?e:L(P(e))}function N(e,t){var n;void 0===t&&(t=[]);var o=L(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),r=h(o),i=a?[r].concat(r.visualViewport||[],C(o)?o:[]):o,s=t.concat(i);return a?s:s.concat(N(P(i)))}function I(e){return["table","td","th"].indexOf(E(e))>=0}function O(e){return f(e)&&"fixed"!==T(e).position?e.offsetParent:null}function R(e){for(var t=h(e),n=O(e);n&&I(n)&&"static"===T(n).position;)n=O(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===T(n).position)?t:n||function(e){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&f(e)&&"fixed"===T(e).position)return null;var n=P(e);for(g(n)&&(n=n.host);f(n)&&["html","body"].indexOf(E(n))<0;){var o=T(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var F="top",j="bottom",Y="right",z="left",B="auto",H=[F,j,Y,z],V="start",U="end",W="viewport",q="popper",$=H.reduce((function(e,t){return e.concat([t+"-"+V,t+"-"+U])}),[]),G=[].concat(H,[B]).reduce((function(e,t){return e.concat([t,t+"-"+V,t+"-"+U])}),[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function J(e){var t=new Map,n=new Set,o=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&a(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),o}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Z(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,a=t.defaultOptions,r=void 0===a?X:a;return function(e,t,n){void 0===n&&(n=r);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},X,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:s,setOptions:function(n){var a="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},r,s.options,a),s.scrollParents={reference:m(e)?N(e):e.contextElement?N(e.contextElement):[],popper:N(t)};var i,c,p=function(e){var t=J(e);return K.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(o,s.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var r=a({state:s,name:t,instance:d,options:o});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Q(t,n)){s.rects={reference:A(t,R(n),"fixed"===s.options.strategy),popper:D(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var a=s.orderedModifiers[o],r=a.fn,i=a.options,l=void 0===i?{}:i,u=a.name;"function"==typeof r&&(s=r({state:s,options:l,name:u,instance:d})||s)}else s.reset=!1,o=-1}}},update:(a=function(){return new Promise((function(e){d.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(a())}))}))),i}),destroy:function(){u(),c=!0}};if(!Q(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var ee={passive:!0};function te(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function oe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ae(e){var t,n=e.reference,o=e.element,a=e.placement,r=a?te(a):null,i=a?ne(a):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(r){case F:t={x:s,y:n.y-o.height};break;case j:t={x:s,y:n.y+n.height};break;case Y:t={x:n.x+n.width,y:l};break;case z:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?oe(r):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case V:t[c]=t[c]-(n[d]/2-o[d]/2);break;case U:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}var re={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,n=e.popper,o=e.popperRect,a=e.placement,r=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=i.x,m=void 0===p?0:p,f=i.y,g=void 0===f?0:f,v="function"==typeof d?d({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var _=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=z,k=F,x=window;if(c){var E=R(n),M="clientHeight",C="clientWidth";E===h(n)&&"static"!==T(E=S(n)).position&&"absolute"===s&&(M="scrollHeight",C="scrollWidth"),(a===F||(a===z||a===Y)&&r===U)&&(k=j,g-=(u&&E===x&&x.visualViewport?x.visualViewport.height:E[M])-o.height,g*=l?1:-1),a!==z&&(a!==F&&a!==j||r!==U)||(w=Y,m-=(u&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-o.width,m*=l?1:-1)}var A,D=Object.assign({position:s},c&&re),P=!0===d?function(e,t){var n=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:b(n*a)/a||0,y:b(o*a)/a||0}}({x:m,y:g},h(n)):{x:m,y:g};return m=P.x,g=P.y,l?Object.assign({},D,((A={})[k]=y?"0":"",A[w]=_?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",A)):Object.assign({},D,((t={})[k]=y?g+"px":"",t[w]=_?m+"px":"",t.transform="",t))}var se={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var ce={start:"end",end:"start"};function de(e){return e.replace(/start|end/g,(function(e){return ce[e]}))}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function pe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function he(e,t,n){return t===W?pe(function(e,t){var n=h(e),o=S(e),a=n.visualViewport,r=o.clientWidth,i=o.clientHeight,s=0,l=0;if(a){r=a.width,i=a.height;var c=w();(c||!c&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:r,height:i,x:s+M(e),y:l}}(e,n)):m(t)?function(e,t){var n=k(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):pe(function(e){var t,n=S(e),o=x(e),a=null==(t=e.ownerDocument)?void 0:t.body,r=v(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=v(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-o.scrollLeft+M(e),l=-o.scrollTop;return"rtl"===T(a||n).direction&&(s+=v(n.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:s,y:l}}(S(e)))}function me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ge(e,t){void 0===t&&(t={});var n=t,o=n.placement,a=void 0===o?e.placement:o,r=n.strategy,i=void 0===r?e.strategy:r,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,d=void 0===c?W:c,u=n.elementContext,p=void 0===u?q:u,h=n.altBoundary,g=void 0!==h&&h,b=n.padding,y=void 0===b?0:b,w=me("number"!=typeof y?y:fe(y,H)),x=p===q?"reference":q,M=e.rects.popper,C=e.elements[g?x:p],A=function(e,t,n,o){var a="clippingParents"===t?function(e){var t=N(P(e)),n=["absolute","fixed"].indexOf(T(e).position)>=0&&f(e)?R(e):e;return m(n)?t.filter((function(e){return m(e)&&ue(e,n)&&"body"!==E(e)})):[]}(e):[].concat(t),r=[].concat(a,[n]),i=r[0],s=r.reduce((function(t,n){var a=he(e,n,o);return t.top=v(a.top,t.top),t.right=_(a.right,t.right),t.bottom=_(a.bottom,t.bottom),t.left=v(a.left,t.left),t}),he(e,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(m(C)?C:C.contextElement||S(e.elements.popper),l,d,i),D=k(e.elements.reference),L=ae({reference:D,element:M,strategy:"absolute",placement:a}),I=pe(Object.assign({},M,L)),O=p===q?I:D,z={top:A.top-O.top+w.top,bottom:O.bottom-A.bottom+w.bottom,left:A.left-O.left+w.left,right:O.right-A.right+w.right},B=e.modifiersData.offset;if(p===q&&B){var V=B[a];Object.keys(z).forEach((function(e){var t=[Y,j].indexOf(e)>=0?1:-1,n=[F,j].indexOf(e)>=0?"y":"x";z[e]+=V[n]*t}))}return z}function ve(e,t,n){return v(e,_(t,n))}function _e(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 be(e){return[F,Y,j,z].some((function(t){return e[t]>=0}))}var ye=Z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,r=void 0===a||a,i=o.resize,s=void 0===i||i,l=h(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,ee)})),s&&l.addEventListener("resize",n.update,ee),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ee)})),s&&l.removeEventListener("resize",n.update,ee)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ae({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=void 0===o||o,r=n.adaptive,i=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:te(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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]||{},o=t.attributes[e]||{},a=t.elements[e];f(a)&&E(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?a.removeAttribute(e):a.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.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],a=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});f(o)&&E(o)&&(Object.assign(o.style,r),Object.keys(a).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.offset,r=void 0===a?[0,0]:a,i=G.reduce((function(e,n){return e[n]=function(e,t,n){var o=te(e),a=[z,F].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=r[0],s=r[1];return i=i||0,s=(s||0)*a,[z,Y].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,r),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,r=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=void 0===h||h,f=n.allowedAutoPlacements,g=t.options.placement,v=te(g),_=l||(v!==g&&m?function(e){if(te(e)===B)return[];var t=le(e);return[de(e),t,de(t)]}(g):[le(g)]),b=[g].concat(_).reduce((function(e,n){return e.concat(te(n)===B?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,a=n.boundary,r=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?G:l,d=ne(o),u=d?s?$:$.filter((function(e){return ne(e)===d})):H,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var h=p.reduce((function(t,n){return t[n]=ge(e,{placement:n,boundary:a,rootBoundary:r,padding:i})[te(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)}),[]),y=t.rects.reference,w=t.rects.popper,k=new Map,x=!0,E=b[0],S=0;S<b.length;S++){var M=b[S],T=te(M),C=ne(M)===V,A=[F,j].indexOf(T)>=0,D=A?"width":"height",P=ge(t,{placement:M,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),L=A?C?Y:z:C?j:F;y[D]>w[D]&&(L=le(L));var N=le(L),I=[];if(r&&I.push(P[T]<=0),s&&I.push(P[L]<=0,P[N]<=0),I.every((function(e){return e}))){E=M,x=!1;break}k.set(M,I)}if(x)for(var O=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},R=m?3:1;R>0&&"break"!==O(R);R--);t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,r=void 0===a||a,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,h=void 0===p||p,m=n.tetherOffset,f=void 0===m?0:m,g=ge(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),b=te(t.placement),y=ne(t.placement),w=!y,k=oe(b),x="x"===k?"y":"x",E=t.modifiersData.popperOffsets,S=t.rects.reference,M=t.rects.popper,T="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,C="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(E){if(r){var L,N="y"===k?F:z,I="y"===k?j:Y,O="y"===k?"height":"width",B=E[k],H=B+g[N],U=B-g[I],W=h?-M[O]/2:0,q=y===V?S[O]:M[O],$=y===V?-M[O]:-S[O],G=t.elements.arrow,K=h&&G?D(G):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=J[N],Q=J[I],Z=ve(0,S[O],K[O]),ee=w?S[O]/2-W-Z-X-C.mainAxis:q-Z-X-C.mainAxis,ae=w?-S[O]/2+W+Z+Q+C.mainAxis:$+Z+Q+C.mainAxis,re=t.elements.arrow&&R(t.elements.arrow),ie=re?"y"===k?re.clientTop||0:re.clientLeft||0:0,se=null!=(L=null==A?void 0:A[k])?L:0,le=B+ae-se,ce=ve(h?_(H,B+ee-se-ie):H,B,h?v(U,le):U);E[k]=ce,P[k]=ce-B}if(s){var de,ue="x"===k?F:z,pe="x"===k?j:Y,he=E[x],me="y"===x?"height":"width",fe=he+g[ue],_e=he-g[pe],be=-1!==[F,z].indexOf(b),ye=null!=(de=null==A?void 0:A[x])?de:0,we=be?fe:he-S[me]-M[me]-ye+C.altAxis,ke=be?he+S[me]+M[me]-ye-C.altAxis:_e,xe=h&&be?function(e,t,n){var o=ve(e,t,n);return o>n?n:o}(we,he,ke):ve(h?we:fe,he,h?ke:_e);E[x]=xe,P[x]=xe-he}t.modifiersData[o]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,a=e.options,r=n.elements.arrow,i=n.modifiersData.popperOffsets,s=te(n.placement),l=oe(s),c=[z,Y].indexOf(s)>=0?"height":"width";if(r&&i){var d=function(e,t){return me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fe(e,H))}(a.padding,n),u=D(r),p="y"===l?F:z,h="y"===l?j:Y,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],f=i[l]-n.rects.reference[l],g=R(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=m/2-f/2,b=d[p],y=v-u[c]-d[h],w=v/2-u[c]/2+_,k=ve(b,w,y),x=l;n.modifiersData[o]=((t={})[x]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&ue(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,i=ge(t,{elementContext:"reference"}),s=ge(t,{altBoundary:!0}),l=_e(i,o),c=_e(s,a,r),d=be(l),u=be(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]}),we=n(115),ke=n.n(we),xe=[],Ee=function(e,t,n){void 0===n&&(n={});var a=o.useRef(null),r={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||xe},i=o.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=i[0],l=i[1],c=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p.flushSync((function(){l({styles:d(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:d(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),h=o.useMemo((function(){var e={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[].concat(r.modifiers,[c,{name:"applyStyles",enabled:!1}])};return ke()(a.current,e)?a.current||e:(a.current=e,e)}),[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,c]),m=o.useRef();return u((function(){m.current&&m.current.setOptions(h)}),[h]),u((function(){if(null!=e&&null!=t){var o=(n.createPopper||ye)(e,t,h);return m.current=o,function(){o.destroy(),m.current=null}}}),[e,t,n.createPopper]),{state:m.current?m.current.state:null,styles:s.styles,attributes:s.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},Se=function(){},Me=function(){return Promise.resolve(null)},Te=[];function Ce(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.strategy,i=void 0===r?"absolute":r,l=e.modifiers,d=void 0===l?Te:l,u=e.referenceElement,p=e.onFirstUpdate,h=e.innerRef,m=e.children,f=o.useContext(a),g=o.useState(null),v=g[0],_=g[1],b=o.useState(null),y=b[0],w=b[1];o.useEffect((function(){c(h,v)}),[h,v]);var k=o.useMemo((function(){return{placement:n,strategy:i,onFirstUpdate:p,modifiers:[].concat(d,[{name:"arrow",enabled:null!=y,options:{element:y}}])}}),[n,i,p,d,y]),x=Ee(u||f,v,k),E=x.state,S=x.styles,M=x.forceUpdate,T=x.update,C=o.useMemo((function(){return{ref:_,style:S.popper,placement:E?E.placement:n,hasPopperEscaped:E&&E.modifiersData.hide?E.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:E&&E.modifiersData.hide?E.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:S.arrow,ref:w},forceUpdate:M||Se,update:T||Me}}),[_,w,n,E,S,T,M]);return s(m)(C)}var Ae=n(9771),De=n.n(Ae);function Pe(e){var t=e.children,n=e.innerRef,a=o.useContext(r),i=o.useCallback((function(e){c(n,e),l(a,e)}),[n,a]);return o.useEffect((function(){return function(){return c(n,null)}}),[]),o.useEffect((function(){De()(Boolean(a),"`Reference` should not be used outside of a `Manager` component.")}),[a]),s(t)({ref:i})}},2475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(5093))},2477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},2551:(e,t,n)=>{"use strict";var o=n(6540),a=n(5228),r=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(i(227));var s=new Set,l={};function c(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,m={},f={};function g(e,t,n,o,a,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,o){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0===a.type:!o&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,o)&&(n=null),o||null===a?function(e){return!!h.call(f,e)||!h.call(m,e)&&(p.test(e)?f[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,o=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(_,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,x=60106,E=60107,S=60108,M=60114,T=60109,C=60110,A=60112,D=60113,P=60120,L=60115,N=60116,I=60121,O=60128,R=60129,F=60130,j=60131;if("function"==typeof Symbol&&Symbol.for){var Y=Symbol.for;k=Y("react.element"),x=Y("react.portal"),E=Y("react.fragment"),S=Y("react.strict_mode"),M=Y("react.profiler"),T=Y("react.provider"),C=Y("react.context"),A=Y("react.forward_ref"),D=Y("react.suspense"),P=Y("react.suspense_list"),L=Y("react.memo"),N=Y("react.lazy"),I=Y("react.block"),Y("react.scope"),O=Y("react.opaque.id"),R=Y("react.debug_trace_mode"),F=Y("react.offscreen"),j=Y("react.legacy_hidden")}var z,B="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function V(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var U=!1;function W(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var o=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){o=e}e.call(t.prototype)}else{try{throw Error()}catch(e){o=e}e()}}catch(e){if(e&&o&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),r=o.stack.split("\n"),i=a.length-1,s=r.length-1;1<=i&&0<=s&&a[i]!==r[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==r[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==r[s])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function q(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case x:return"Portal";case M:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case L:return $(e.type);case I:return $(e._render);case N:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){o=""+e,r.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=K(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function oe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function re(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,o){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&o&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(o&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ce(e,t){var n=G(t.value),o=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function de(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var ue="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,fe,ge=(fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var _e={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_e.hasOwnProperty(e)&&_e[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),a=ye(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,a):e[n]=a}}Object.keys(_e).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_e[t]=_e[e]}))}));var ke=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Me=null,Te=null,Ce=null;function Ae(e){if(e=oa(e)){if("function"!=typeof Me)throw Error(i(280));var t=e.stateNode;t&&(t=ra(t),Me(e.stateNode,e.type,t))}}function De(e){Te?Ce?Ce.push(e):Ce=[e]:Te=e}function Pe(){if(Te){var e=Te,t=Ce;if(Ce=Te=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Le(e,t){return e(t)}function Ne(e,t,n,o,a){return e(t,n,o,a)}function Ie(){}var Oe=Le,Re=!1,Fe=!1;function je(){null===Te&&null===Ce||(Ie(),Pe())}function Ye(e,t){var n=e.stateNode;if(null===n)return null;var o=ra(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var ze=!1;if(u)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(fe){ze=!1}function He(e,t,n,o,a,r,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Ve=!1,Ue=null,We=!1,qe=null,$e={onError:function(e){Ve=!0,Ue=e}};function Ge(e,t,n,o,a,r,i,s,l){Ve=!1,Ue=null,He.apply($e,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Xe(e){if(Ke(e)!==e)throw Error(i(188))}function Qe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var a=n.return;if(null===a)break;var r=a.alternate;if(null===r){if(null!==(o=a.return)){n=o;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return Xe(a),e;if(r===o)return Xe(a),t;r=r.sibling}throw Error(i(188))}if(n.return!==o.return)n=a,o=r;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,o=r;break}if(l===o){s=!0,o=a,n=r;break}l=l.sibling}if(!s){for(l=r.child;l;){if(l===n){s=!0,n=r,o=a;break}if(l===o){s=!0,o=r,n=a;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,ot,at=!1,rt=[],it=null,st=null,lt=null,ct=new Map,dt=new Map,ut=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,o,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[o]}}function mt(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function ft(e,t,n,o,a,r){return null===e||e.nativeEvent!==r?(e=ht(t,n,o,a,r),null!==t&&null!==(t=oa(t))&&tt(t),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function gt(e){var t=na(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){r.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=oa(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function _t(e,t,n){vt(e)&&n.delete(t)}function bt(){for(at=!1;0<rt.length;){var e=rt[0];if(null!==e.blockedOn){null!==(e=oa(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&rt.shift()}null!==it&&vt(it)&&(it=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ct.forEach(_t),dt.forEach(_t)}function yt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,bt)))}function wt(e){function t(t){return yt(t,e)}if(0<rt.length){yt(rt[0],e);for(var n=1;n<rt.length;n++){var o=rt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==it&&yt(it,e),null!==st&&yt(st,e),null!==lt&&yt(lt,e),ct.forEach(t),dt.forEach(t),n=0;n<ut.length;n++)(o=ut[n]).blockedOn===e&&(o.blockedOn=null);for(;0<ut.length&&null===(n=ut[0]).blockedOn;)gt(n),null===n.blockedOn&&ut.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},Et={},St={};function Mt(e){if(Et[e])return Et[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return Et[e]=n[t];return e}u&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Tt=Mt("animationend"),Ct=Mt("animationiteration"),At=Mt("animationstart"),Dt=Mt("transitionend"),Pt=new Map,Lt=new Map,Nt=["abort","abort",Tt,"animationEnd",Ct,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Lt.set(o,t),Pt.set(o,a),c(a,[o])}}(0,r.unstable_now)();var Ot=8;function Rt(e){if(1&e)return Ot=15,1;if(2&e)return Ot=14,2;if(4&e)return Ot=13,4;var t=24&e;return 0!==t?(Ot=12,t):32&e?(Ot=11,32):0!=(t=192&e)?(Ot=10,t):256&e?(Ot=9,256):0!=(t=3584&e)?(Ot=8,t):4096&e?(Ot=7,4096):0!=(t=4186112&e)?(Ot=6,t):0!=(t=62914560&e)?(Ot=5,t):67108864&e?(Ot=4,67108864):134217728&e?(Ot=3,134217728):0!=(t=805306368&e)?(Ot=2,t):1073741824&e?(Ot=1,1073741824):(Ot=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Ot=0;var o=0,a=0,r=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==r)o=r,a=Ot=15;else if(0!=(r=134217727&n)){var l=r&~i;0!==l?(o=Rt(l),a=Ot):0!=(s&=r)&&(o=Rt(s),a=Ot)}else 0!=(r=n&~i)?(o=Rt(r),a=Ot):0!==s&&(o=Rt(s),a=Ot);if(0===o)return 0;if(o=n&((0>(o=31-Vt(o))?0:1<<o)<<1)-1,0!==t&&t!==o&&!(t&i)){if(Rt(t),a<=Ot)return t;Ot=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)a=1<<(n=31-Vt(t)),o|=e[n],t&=~a;return o}function jt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Yt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Yt(10,t):e;case 10:return 0===(e=zt(192&~t))?Yt(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function zt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var o=t-1;e.suspendedLanes&=o,e.pingedLanes&=o,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Wt|0)|0},Ut=Math.log,Wt=Math.LN2,qt=r.unstable_UserBlockingPriority,$t=r.unstable_runWithPriority,Gt=!0;function Kt(e,t,n,o){Re||Ie();var a=Xt,r=Re;Re=!0;try{Ne(a,e,t,n,o)}finally{(Re=r)||je()}}function Jt(e,t,n,o){$t(qt,Xt.bind(null,e,t,n,o))}function Xt(e,t,n,o){var a;if(Gt)if((a=!(4&t))&&0<rt.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,o),rt.push(e);else{var r=Qt(e,t,n,o);if(null===r)a&&mt(e,o);else{if(a){if(-1<pt.indexOf(e))return e=ht(r,e,t,n,o),void rt.push(e);if(function(e,t,n,o,a){switch(t){case"focusin":return it=ft(it,e,t,n,o,a),!0;case"dragenter":return st=ft(st,e,t,n,o,a),!0;case"mouseover":return lt=ft(lt,e,t,n,o,a),!0;case"pointerover":var r=a.pointerId;return ct.set(r,ft(ct.get(r)||null,e,t,n,o,a)),!0;case"gotpointercapture":return r=a.pointerId,dt.set(r,ft(dt.get(r)||null,e,t,n,o,a)),!0}return!1}(r,e,t,n,o))return;mt(e,o)}Oo(e,t,o,null,n)}}}function Qt(e,t,n,o){var a=Se(o);if(null!==(a=na(a))){var r=Ke(a);if(null===r)a=null;else{var i=r.tag;if(13===i){if(null!==(a=Je(r)))return a;a=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;a=null}else r!==a&&(a=null)}}return Oo(e,t,o,a,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,o=n.length,a="value"in Zt?Zt.value:Zt.textContent,r=a.length;for(e=0;e<o&&n[e]===a[e];e++);var i=o-e;for(t=1;t<=i&&n[o-t]===a[r-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function rn(){return!1}function sn(e){function t(t,n,o,a,r){for(var i in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=a,this.target=r,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:rn,this.isPropagationStopped=rn,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,cn,dn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(un),hn=a({},un,{view:0,detail:0}),mn=sn(hn),fn=a({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(ln=e.screenX-dn.screenX,cn=e.screenY-dn.screenY):cn=ln=0,dn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(fn),vn=sn(a({},fn,{dataTransfer:0})),_n=sn(a({},hn,{relatedTarget:0})),bn=sn(a({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=a({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=sn(yn),kn=sn(a({},un,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return Mn}var Cn=a({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=sn(Cn),Dn=sn(a({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(a({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=sn(a({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=a({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=sn(Nn),On=[9,13,27,32],Rn=u&&"CompositionEvent"in window,Fn=null;u&&"documentMode"in document&&(Fn=document.documentMode);var jn=u&&"TextEvent"in window&&!Fn,Yn=u&&(!Rn||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),Bn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function $n(e,t,n,o){De(o),0<(t=Fo(t,"onChange")).length&&(n=new pn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Gn=null,Kn=null;function Jn(e){Ao(e,0)}function Xn(e){if(X(aa(e)))return e}function Qn(e,t){if("change"===e)return t}var Zn=!1;if(u){var eo;if(u){var to="oninput"in document;if(!to){var no=document.createElement("div");no.setAttribute("oninput","return;"),to="function"==typeof no.oninput}eo=to}else eo=!1;Zn=eo&&(!document.documentMode||9<document.documentMode)}function oo(){Gn&&(Gn.detachEvent("onpropertychange",ao),Kn=Gn=null)}function ao(e){if("value"===e.propertyName&&Xn(Kn)){var t=[];if($n(t,Kn,e,Se(e)),e=Jn,Re)e(t);else{Re=!0;try{Le(e,t)}finally{Re=!1,je()}}}}function ro(e,t,n){"focusin"===e?(oo(),Kn=n,(Gn=t).attachEvent("onpropertychange",ao)):"focusout"===e&&oo()}function io(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Kn)}function so(e,t){if("click"===e)return Xn(t)}function lo(e,t){if("input"===e||"change"===e)return Xn(t)}var co="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},uo=Object.prototype.hasOwnProperty;function po(e,t){if(co(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!uo.call(t,n[o])||!co(e[n[o]],t[n[o]]))return!1;return!0}function ho(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mo(e,t){var n,o=ho(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=ho(o)}}function fo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function go(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function vo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var _o=u&&"documentMode"in document&&11>=document.documentMode,bo=null,yo=null,wo=null,ko=!1;function xo(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ko||null==bo||bo!==Q(o)||(o="selectionStart"in(o=bo)&&vo(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},wo&&po(wo,o)||(wo=o,0<(o=Fo(yo,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=bo)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Nt,2);for(var Eo="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),So=0;So<Eo.length;So++)Lt.set(Eo[So],0);d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),To=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mo));function Co(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,a,r,s,l,c){if(Ge.apply(this,arguments),Ve){if(!Ve)throw Error(i(198));var d=Ue;Ve=!1,Ue=null,We||(We=!0,qe=d)}}(o,t,void 0,e),e.currentTarget=null}function Ao(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var o=e[n],a=o.event;o=o.listeners;e:{var r=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==r&&a.isPropagationStopped())break e;Co(a,s,c),r=l}else for(i=0;i<o.length;i++){if(l=(s=o[i]).instance,c=s.currentTarget,s=s.listener,l!==r&&a.isPropagationStopped())break e;Co(a,s,c),r=l}}}if(We)throw e=qe,We=!1,qe=null,e}function Do(e,t){var n=ia(t),o=e+"__bubble";n.has(o)||(Io(t,e,2,!1),n.add(o))}var Po="_reactListening"+Math.random().toString(36).slice(2);function Lo(e){e[Po]||(e[Po]=!0,s.forEach((function(t){To.has(t)||No(t,!1,e,null),No(t,!0,e,null)})))}function No(e,t,n,o){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,r=n;if("selectionchange"===e&&9!==n.nodeType&&(r=n.ownerDocument),null!==o&&!t&&To.has(e)){if("scroll"!==e)return;a|=2,r=o}var i=ia(r),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(a|=4),Io(r,e,a,t),i.add(s))}function Io(e,t,n,o){var a=Lt.get(t);switch(void 0===a?2:a){case 0:a=Kt;break;case 1:a=Jt;break;default:a=Xt}n=a.bind(null,t,n,e),a=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),o?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Oo(e,t,n,o,a){var r=o;if(!(1&t||2&t||null===o))e:for(;;){if(null===o)return;var i=o.tag;if(3===i||4===i){var s=o.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=o.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=na(s)))return;if(5===(l=i.tag)||6===l){o=r=i;continue e}s=s.parentNode}}o=o.return}!function(e,t,n){if(Fe)return e();Fe=!0;try{return Oe(e,t,n)}finally{Fe=!1,je()}}((function(){var o=r,a=Se(n),i=[];e:{var s=Pt.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=_n;break;case"focusout":c="blur",l=_n;break;case"beforeblur":case"afterblur":l=_n;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Tt:case Ct:case At:l=bn;break;case Dt:l=Ln;break;case"scroll":l=mn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Dn}var d=!!(4&t),u=!d&&"scroll"===e,p=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=o;null!==m;){var f=(h=m).stateNode;if(5===h.tag&&null!==f&&(h=f,null!==p&&null!=(f=Ye(m,p))&&d.push(Ro(m,f,h))),u)break;m=m.return}0<d.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:d}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||16&t||!(c=n.relatedTarget||n.fromElement)||!na(c)&&!c[ea])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=o,null!==(c=(c=n.relatedTarget||n.toElement)?na(c):null)&&(c!==(u=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=o),l!==c)){if(d=gn,f="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=Dn,f="onPointerLeave",p="onPointerEnter",m="pointer"),u=null==l?s:aa(l),h=null==c?s:aa(c),(s=new d(f,m+"leave",l,n,a)).target=u,s.relatedTarget=h,f=null,na(a)===o&&((d=new d(p,m+"enter",c,n,a)).target=h,d.relatedTarget=u,f=d),u=f,l&&c)e:{for(p=c,m=0,h=d=l;h;h=jo(h))m++;for(h=0,f=p;f;f=jo(f))h++;for(;0<m-h;)d=jo(d),m--;for(;0<h-m;)p=jo(p),h--;for(;m--;){if(d===p||null!==p&&d===p.alternate)break e;d=jo(d),p=jo(p)}d=null}else d=null;null!==l&&Yo(i,s,l,d,!1),null!==c&&null!==u&&Yo(i,u,c,d,!0)}if("select"===(l=(s=o?aa(o):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qn;else if(qn(s))if(Zn)g=lo;else{g=io;var v=ro}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=so);switch(g&&(g=g(e,o))?$n(i,g,n,a):(v&&v(e,s,o),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ae(s,"number",s.value)),v=o?aa(o):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(bo=v,yo=o,wo=null);break;case"focusout":wo=yo=bo=null;break;case"mousedown":ko=!0;break;case"contextmenu":case"mouseup":case"dragend":ko=!1,xo(i,n,a);break;case"selectionchange":if(_o)break;case"keydown":case"keyup":xo(i,n,a)}var _;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Yn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(_=nn()):(en="value"in(Zt=a)?Zt.value:Zt.textContent,Un=!0)),0<(v=Fo(o,b)).length&&(b=new kn(b,e,null,n,a),i.push({event:b,listeners:v}),(_||null!==(_=Vn(n)))&&(b.data=_))),(_=jn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Bn=!0,zn);case"textInput":return(e=t.data)===zn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Rn&&Hn(e,t)?(e=nn(),tn=en=Zt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(o=Fo(o,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:o}),a.data=_)}Ao(i,t)}))}function Ro(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fo(e,t){for(var n=t+"Capture",o=[];null!==e;){var a=e,r=a.stateNode;5===a.tag&&null!==r&&(a=r,null!=(r=Ye(e,n))&&o.unshift(Ro(e,r,a)),null!=(r=Ye(e,t))&&o.push(Ro(e,r,a))),e=e.return}return o}function jo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yo(e,t,n,o,a){for(var r=t._reactName,i=[];null!==n&&n!==o;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===o)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Ye(n,r))&&i.unshift(Ro(n,l,s)):a||null!=(l=Ye(n,r))&&i.push(Ro(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function zo(){}var Bo=null,Ho=null;function Vo(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Uo(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wo="function"==typeof setTimeout?setTimeout:void 0,qo="function"==typeof clearTimeout?clearTimeout:void 0;function $o(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Go(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ko(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Jo=0,Xo=Math.random().toString(36).slice(2),Qo="__reactFiber$"+Xo,Zo="__reactProps$"+Xo,ea="__reactContainer$"+Xo,ta="__reactEvents$"+Xo;function na(e){var t=e[Qo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ea]||n[Qo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ko(e);null!==e;){if(n=e[Qo])return n;e=Ko(e)}return t}n=(e=n).parentNode}return null}function oa(e){return!(e=e[Qo]||e[ea])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function aa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ra(e){return e[Zo]||null}function ia(e){var t=e[ta];return void 0===t&&(t=e[ta]=new Set),t}var sa=[],la=-1;function ca(e){return{current:e}}function da(e){0>la||(e.current=sa[la],sa[la]=null,la--)}function ua(e,t){la++,sa[la]=e.current,e.current=t}var pa={},ha=ca(pa),ma=ca(!1),fa=pa;function ga(e,t){var n=e.type.contextTypes;if(!n)return pa;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var a,r={};for(a in n)r[a]=t[a];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function va(e){return null!=e.childContextTypes}function _a(){da(ma),da(ha)}function ba(e,t,n){if(ha.current!==pa)throw Error(i(168));ua(ha,t),ua(ma,n)}function ya(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in e))throw Error(i(108,$(t)||"Unknown",r));return a({},n,o)}function wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pa,fa=ha.current,ua(ha,e),ua(ma,ma.current),!0}function ka(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=ya(e,t,fa),o.__reactInternalMemoizedMergedChildContext=e,da(ma),da(ha),ua(ha,e)):da(ma),ua(ma,n)}var xa=null,Ea=null,Sa=r.unstable_runWithPriority,Ma=r.unstable_scheduleCallback,Ta=r.unstable_cancelCallback,Ca=r.unstable_shouldYield,Aa=r.unstable_requestPaint,Da=r.unstable_now,Pa=r.unstable_getCurrentPriorityLevel,La=r.unstable_ImmediatePriority,Na=r.unstable_UserBlockingPriority,Ia=r.unstable_NormalPriority,Oa=r.unstable_LowPriority,Ra=r.unstable_IdlePriority,Fa={},ja=void 0!==Aa?Aa:function(){},Ya=null,za=null,Ba=!1,Ha=Da(),Va=1e4>Ha?Da:function(){return Da()-Ha};function Ua(){switch(Pa()){case La:return 99;case Na:return 98;case Ia:return 97;case Oa:return 96;case Ra:return 95;default:throw Error(i(332))}}function Wa(e){switch(e){case 99:return La;case 98:return Na;case 97:return Ia;case 96:return Oa;case 95:return Ra;default:throw Error(i(332))}}function qa(e,t){return e=Wa(e),Sa(e,t)}function $a(e,t,n){return e=Wa(e),Ma(e,t,n)}function Ga(){if(null!==za){var e=za;za=null,Ta(e)}Ka()}function Ka(){if(!Ba&&null!==Ya){Ba=!0;var e=0;try{var t=Ya;qa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ya=null}catch(t){throw null!==Ya&&(Ya=Ya.slice(e+1)),Ma(La,Ga),t}finally{Ba=!1}}}var Ja=w.ReactCurrentBatchConfig;function Xa(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qa=ca(null),Za=null,er=null,tr=null;function nr(){tr=er=Za=null}function or(e){var t=Qa.current;da(Qa),e.type._context._currentValue=t}function ar(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function rr(e,t){Za=e,tr=er=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(Ri=!0),e.firstContext=null)}function ir(e,t){if(tr!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(tr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===er){if(null===Za)throw Error(i(308));er=t,Za.dependencies={lanes:0,firstContext:t,responders:null}}else er=er.next=t;return e._currentValue}var sr=!1;function lr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function cr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ur(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pr(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var a=null,r=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===r?a=r=i:r=r.next=i,n=n.next}while(null!==n);null===r?a=r=t:r=r.next=t}else a=r=t;return n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:r,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hr(e,t,n,o){var r=e.updateQueue;sr=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,l=r.shared.pending;if(null!==l){r.shared.pending=null;var c=l,d=c.next;c.next=null,null===s?i=d:s.next=d,s=c;var u=e.alternate;if(null!==u){var p=(u=u.updateQueue).lastBaseUpdate;p!==s&&(null===p?u.firstBaseUpdate=d:p.next=d,u.lastBaseUpdate=c)}}if(null!==i){for(p=r.baseState,s=0,u=d=c=null;;){l=i.lane;var h=i.eventTime;if((o&l)===l){null!==u&&(u=u.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,f=i;switch(l=t,h=n,f.tag){case 1:if("function"==typeof(m=f.payload)){p=m.call(h,p,l);break e}p=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(l="function"==typeof(m=f.payload)?m.call(h,p,l):m))break e;p=a({},p,l);break e;case 2:sr=!0}}null!==i.callback&&(e.flags|=32,null===(l=r.effects)?r.effects=[i]:l.push(i))}else h={eventTime:h,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===u?(d=u=h,c=p):u=u.next=h,s|=l;if(null===(i=i.next)){if(null===(l=r.shared.pending))break;i=l.next,l.next=null,r.lastBaseUpdate=l,r.shared.pending=null}}null===u&&(c=p),r.baseState=c,r.firstBaseUpdate=d,r.lastBaseUpdate=u,Ys|=s,e.lanes=s,e.memoizedState=p}}function mr(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=n,"function"!=typeof a)throw Error(i(191,a));a.call(o)}}}var fr=(new o.Component).refs;function gr(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vr={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=dl(),a=ul(e),r=dr(o,a);r.payload=t,null!=n&&(r.callback=n),ur(e,r),pl(e,a,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=dl(),a=ul(e),r=dr(o,a);r.tag=1,r.payload=t,null!=n&&(r.callback=n),ur(e,r),pl(e,a,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=dl(),o=ul(e),a=dr(n,o);a.tag=2,null!=t&&(a.callback=t),ur(e,a),pl(e,o,n)}};function _r(e,t,n,o,a,r,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,r,i):!(t.prototype&&t.prototype.isPureReactComponent&&po(n,o)&&po(a,r))}function br(e,t,n){var o=!1,a=pa,r=t.contextType;return"object"==typeof r&&null!==r?r=ir(r):(a=va(t)?fa:ha.current,r=(o=null!=(o=t.contextTypes))?ga(e,a):pa),t=new t(n,r),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vr,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=r),t}function yr(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&vr.enqueueReplaceState(t,t.state,null)}function wr(e,t,n,o){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=fr,lr(e);var r=t.contextType;"object"==typeof r&&null!==r?a.context=ir(r):(r=va(t)?fa:ha.current,a.context=ga(e,r)),hr(e,n,a,o),a.state=e.memoizedState,"function"==typeof(r=t.getDerivedStateFromProps)&&(gr(e,t,r,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&vr.enqueueReplaceState(a,a.state,null),hr(e,n,a,o),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var kr=Array.isArray;function xr(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===fr&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Er(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sr(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Ul(e,t)).index=0,e.sibling=null,e}function r(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags=2,n):o:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=Gl(n,e.mode,o)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,o){return null!==t&&t.elementType===n.type?((o=a(t,n.props)).ref=xr(e,t,n),o.return=e,o):((o=Wl(n.type,n.key,n.props,null,e.mode,o)).ref=xr(e,t,n),o.return=e,o)}function d(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Kl(n,e.mode,o)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function u(e,t,n,o,r){return null===t||7!==t.tag?((t=ql(n,e.mode,o,r)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Gl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Wl(t.type,t.key,t.props,null,e.mode,n)).ref=xr(e,null,t),n.return=e,n;case x:return(t=Kl(t,e.mode,n)).return=e,t}if(kr(t)||H(t))return(t=ql(t,e.mode,n,null)).return=e,t;Er(e,t)}return null}function h(e,t,n,o){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?n.type===E?u(e,t,n.props.children,o,a):c(e,t,n,o):null;case x:return n.key===a?d(e,t,n,o):null}if(kr(n)||H(n))return null!==a?null:u(e,t,n,o,null);Er(e,n)}return null}function m(e,t,n,o,a){if("string"==typeof o||"number"==typeof o)return l(t,e=e.get(n)||null,""+o,a);if("object"==typeof o&&null!==o){switch(o.$$typeof){case k:return e=e.get(null===o.key?n:o.key)||null,o.type===E?u(t,e,o.props.children,a,o.key):c(t,e,o,a);case x:return d(t,e=e.get(null===o.key?n:o.key)||null,o,a)}if(kr(o)||H(o))return u(t,e=e.get(n)||null,o,a,null);Er(t,o)}return null}function f(a,i,s,l){for(var c=null,d=null,u=i,f=i=0,g=null;null!==u&&f<s.length;f++){u.index>f?(g=u,u=null):g=u.sibling;var v=h(a,u,s[f],l);if(null===v){null===u&&(u=g);break}e&&u&&null===v.alternate&&t(a,u),i=r(v,i,f),null===d?c=v:d.sibling=v,d=v,u=g}if(f===s.length)return n(a,u),c;if(null===u){for(;f<s.length;f++)null!==(u=p(a,s[f],l))&&(i=r(u,i,f),null===d?c=u:d.sibling=u,d=u);return c}for(u=o(a,u);f<s.length;f++)null!==(g=m(u,a,f,s[f],l))&&(e&&null!==g.alternate&&u.delete(null===g.key?f:g.key),i=r(g,i,f),null===d?c=g:d.sibling=g,d=g);return e&&u.forEach((function(e){return t(a,e)})),c}function g(a,s,l,c){var d=H(l);if("function"!=typeof d)throw Error(i(150));if(null==(l=d.call(l)))throw Error(i(151));for(var u=d=null,f=s,g=s=0,v=null,_=l.next();null!==f&&!_.done;g++,_=l.next()){f.index>g?(v=f,f=null):v=f.sibling;var b=h(a,f,_.value,c);if(null===b){null===f&&(f=v);break}e&&f&&null===b.alternate&&t(a,f),s=r(b,s,g),null===u?d=b:u.sibling=b,u=b,f=v}if(_.done)return n(a,f),d;if(null===f){for(;!_.done;g++,_=l.next())null!==(_=p(a,_.value,c))&&(s=r(_,s,g),null===u?d=_:u.sibling=_,u=_);return d}for(f=o(a,f);!_.done;g++,_=l.next())null!==(_=m(f,a,g,_.value,c))&&(e&&null!==_.alternate&&f.delete(null===_.key?g:_.key),s=r(_,s,g),null===u?d=_:u.sibling=_,u=_);return e&&f.forEach((function(e){return t(a,e)})),d}return function(e,o,r,l){var c="object"==typeof r&&null!==r&&r.type===E&&null===r.key;c&&(r=r.props.children);var d="object"==typeof r&&null!==r;if(d)switch(r.$$typeof){case k:e:{for(d=r.key,c=o;null!==c;){if(c.key===d){if(7===c.tag){if(r.type===E){n(e,c.sibling),(o=a(c,r.props.children)).return=e,e=o;break e}}else if(c.elementType===r.type){n(e,c.sibling),(o=a(c,r.props)).ref=xr(e,c,r),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}r.type===E?((o=ql(r.props.children,e.mode,l,r.key)).return=e,e=o):((l=Wl(r.type,r.key,r.props,null,e.mode,l)).ref=xr(e,o,r),l.return=e,e=l)}return s(e);case x:e:{for(c=r.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===r.containerInfo&&o.stateNode.implementation===r.implementation){n(e,o.sibling),(o=a(o,r.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Kl(r,e.mode,l)).return=e,e=o}return s(e)}if("string"==typeof r||"number"==typeof r)return r=""+r,null!==o&&6===o.tag?(n(e,o.sibling),(o=a(o,r)).return=e,e=o):(n(e,o),(o=Gl(r,e.mode,l)).return=e,e=o),s(e);if(kr(r))return f(e,o,r,l);if(H(r))return g(e,o,r,l);if(d&&Er(e,r),void 0===r&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,$(e.type)||"Component"))}return n(e,o)}}var Mr=Sr(!0),Tr=Sr(!1),Cr={},Ar=ca(Cr),Dr=ca(Cr),Pr=ca(Cr);function Lr(e){if(e===Cr)throw Error(i(174));return e}function Nr(e,t){switch(ua(Pr,t),ua(Dr,e),ua(Ar,Cr),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}da(Ar),ua(Ar,t)}function Ir(){da(Ar),da(Dr),da(Pr)}function Or(e){Lr(Pr.current);var t=Lr(Ar.current),n=he(t,e.type);t!==n&&(ua(Dr,e),ua(Ar,n))}function Rr(e){Dr.current===e&&(da(Ar),da(Dr))}var Fr=ca(0);function jr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yr=null,zr=null,Br=!1;function Hr(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vr(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ur(e){if(Br){var t=zr;if(t){var n=t;if(!Vr(e,t)){if(!(t=Go(n.nextSibling))||!Vr(e,t))return e.flags=-1025&e.flags|2,Br=!1,void(Yr=e);Hr(Yr,n)}Yr=e,zr=Go(t.firstChild)}else e.flags=-1025&e.flags|2,Br=!1,Yr=e}}function Wr(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Yr=e}function qr(e){if(e!==Yr)return!1;if(!Br)return Wr(e),Br=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Uo(t,e.memoizedProps))for(t=zr;t;)Hr(e,t),t=Go(t.nextSibling);if(Wr(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zr=Go(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zr=null}}else zr=Yr?Go(e.stateNode.nextSibling):null;return!0}function $r(){zr=Yr=null,Br=!1}var Gr=[];function Kr(){for(var e=0;e<Gr.length;e++)Gr[e]._workInProgressVersionPrimary=null;Gr.length=0}var Jr=w.ReactCurrentDispatcher,Xr=w.ReactCurrentBatchConfig,Qr=0,Zr=null,ei=null,ti=null,ni=!1,oi=!1;function ai(){throw Error(i(321))}function ri(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!co(e[n],t[n]))return!1;return!0}function ii(e,t,n,o,a,r){if(Qr=r,Zr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jr.current=null===e||null===e.memoizedState?Li:Ni,e=n(o,a),oi){r=0;do{if(oi=!1,!(25>r))throw Error(i(301));r+=1,ti=ei=null,t.updateQueue=null,Jr.current=Ii,e=n(o,a)}while(oi)}if(Jr.current=Pi,t=null!==ei&&null!==ei.next,Qr=0,ti=ei=Zr=null,ni=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Zr.memoizedState=ti=e:ti=ti.next=e,ti}function li(){if(null===ei){var e=Zr.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Zr.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Zr.memoizedState=ti=e:ti=ti.next=e}return ti}function ci(e,t){return"function"==typeof t?t(e):t}function di(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=ei,a=o.baseQueue,r=n.pending;if(null!==r){if(null!==a){var s=a.next;a.next=r.next,r.next=s}o.baseQueue=a=r,n.pending=null}if(null!==a){a=a.next,o=o.baseState;var l=s=r=null,c=a;do{var d=c.lane;if((Qr&d)===d)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),o=c.eagerReducer===e?c.eagerState:e(o,c.action);else{var u={lane:d,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=u,r=o):l=l.next=u,Zr.lanes|=d,Ys|=d}c=c.next}while(null!==c&&c!==a);null===l?r=o:l.next=s,co(o,t.memoizedState)||(Ri=!0),t.memoizedState=o,t.baseState=r,t.baseQueue=l,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function ui(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,a=n.pending,r=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{r=e(r,s.action),s=s.next}while(s!==a);co(r,t.memoizedState)||(Ri=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,o]}function pi(e,t,n){var o=t._getVersion;o=o(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===o:(e=e.mutableReadLanes,(e=(Qr&e)===e)&&(t._workInProgressVersionPrimary=o,Gr.push(t))),e)return n(t._source);throw Gr.push(t),Error(i(350))}function hi(e,t,n,o){var a=Ps;if(null===a)throw Error(i(349));var r=t._getVersion,s=r(t._source),l=Jr.current,c=l.useState((function(){return pi(a,t,n)})),d=c[1],u=c[0];c=ti;var p=e.memoizedState,h=p.refs,m=h.getSnapshot,f=p.source;p=p.subscribe;var g=Zr;return e.memoizedState={refs:h,source:t,subscribe:o},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=d;var e=r(t._source);if(!co(s,e)){e=n(t._source),co(u,e)||(d(e),e=ul(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var o=a.entanglements,i=e;0<i;){var l=31-Vt(i),c=1<<l;o[l]|=e,i&=~c}}}),[n,t,o]),l.useEffect((function(){return o(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var o=ul(g);a.mutableReadLanes|=o&a.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,o]),co(m,n)&&co(f,t)&&co(p,o)||((e={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:u}).dispatch=d=Di.bind(null,Zr,e),c.queue=e,c.baseQueue=null,u=pi(a,t,n),c.memoizedState=c.baseState=u),u}function mi(e,t,n){return hi(li(),e,t,n)}function fi(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e}).dispatch=Di.bind(null,Zr,e),[t.memoizedState,e]}function gi(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Zr.updateQueue)?(t={lastEffect:null},Zr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function vi(e){return e={current:e},si().memoizedState=e}function _i(){return li().memoizedState}function bi(e,t,n,o){var a=si();Zr.flags|=e,a.memoizedState=gi(1|t,n,void 0,void 0===o?null:o)}function yi(e,t,n,o){var a=li();o=void 0===o?null:o;var r=void 0;if(null!==ei){var i=ei.memoizedState;if(r=i.destroy,null!==o&&ri(o,i.deps))return void gi(t,n,r,o)}Zr.flags|=e,a.memoizedState=gi(1|t,n,r,o)}function wi(e,t){return bi(516,4,e,t)}function ki(e,t){return yi(516,4,e,t)}function xi(e,t){return yi(4,2,e,t)}function Ei(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Si(e,t,n){return n=null!=n?n.concat([e]):null,yi(4,2,Ei.bind(null,t,e),n)}function Mi(){}function Ti(e,t){var n=li();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ri(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Ci(e,t){var n=li();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&ri(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Ai(e,t){var n=Ua();qa(98>n?98:n,(function(){e(!0)})),qa(97<n?97:n,(function(){var n=Xr.transition;Xr.transition=1;try{e(!1),t()}finally{Xr.transition=n}}))}function Di(e,t,n){var o=dl(),a=ul(e),r={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?r.next=r:(r.next=i.next,i.next=r),t.pending=r,i=e.alternate,e===Zr||null!==i&&i===Zr)oi=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,n);if(r.eagerReducer=i,r.eagerState=l,co(l,s))return}catch(e){}pl(e,a,o)}}var Pi={readContext:ir,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Li={readContext:ir,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:ir,useEffect:wi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,bi(4,2,Ei.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=si();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Di.bind(null,Zr,e),[o.memoizedState,e]},useRef:vi,useState:fi,useDebugValue:Mi,useDeferredValue:function(e){var t=fi(e),n=t[0],o=t[1];return wi((function(){var t=Xr.transition;Xr.transition=1;try{o(e)}finally{Xr.transition=t}}),[e]),n},useTransition:function(){var e=fi(!1),t=e[0];return vi(e=Ai.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var o=si();return o.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},hi(o,e,t,n)},useOpaqueIdentifier:function(){if(Br){var e=!1,t=function(e){return{$$typeof:O,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Jo++).toString(36))),Error(i(355))})),n=fi(t)[1];return!(2&Zr.mode)&&(Zr.flags|=516,gi(5,(function(){n("r:"+(Jo++).toString(36))}),void 0,null)),t}return fi(t="r:"+(Jo++).toString(36)),t},unstable_isNewReconciler:!1},Ni={readContext:ir,useCallback:Ti,useContext:ir,useEffect:ki,useImperativeHandle:Si,useLayoutEffect:xi,useMemo:Ci,useReducer:di,useRef:_i,useState:function(){return di(ci)},useDebugValue:Mi,useDeferredValue:function(e){var t=di(ci),n=t[0],o=t[1];return ki((function(){var t=Xr.transition;Xr.transition=1;try{o(e)}finally{Xr.transition=t}}),[e]),n},useTransition:function(){var e=di(ci)[0];return[_i().current,e]},useMutableSource:mi,useOpaqueIdentifier:function(){return di(ci)[0]},unstable_isNewReconciler:!1},Ii={readContext:ir,useCallback:Ti,useContext:ir,useEffect:ki,useImperativeHandle:Si,useLayoutEffect:xi,useMemo:Ci,useReducer:ui,useRef:_i,useState:function(){return ui(ci)},useDebugValue:Mi,useDeferredValue:function(e){var t=ui(ci),n=t[0],o=t[1];return ki((function(){var t=Xr.transition;Xr.transition=1;try{o(e)}finally{Xr.transition=t}}),[e]),n},useTransition:function(){var e=ui(ci)[0];return[_i().current,e]},useMutableSource:mi,useOpaqueIdentifier:function(){return ui(ci)[0]},unstable_isNewReconciler:!1},Oi=w.ReactCurrentOwner,Ri=!1;function Fi(e,t,n,o){t.child=null===e?Tr(t,null,n,o):Mr(t,e.child,n,o)}function ji(e,t,n,o,a){n=n.render;var r=t.ref;return rr(t,a),o=ii(e,t,n,o,r,a),null===e||Ri?(t.flags|=1,Fi(e,t,o,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function Yi(e,t,n,o,a,r){if(null===e){var i=n.type;return"function"!=typeof i||Vl(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Wl(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,zi(e,t,i,o,a,r))}return i=e.child,a&r||(a=i.memoizedProps,!(n=null!==(n=n.compare)?n:po)(a,o)||e.ref!==t.ref)?(t.flags|=1,(e=Ul(i,o)).ref=t.ref,e.return=t,t.child=e):os(e,t,r)}function zi(e,t,n,o,a,r){if(null!==e&&po(e.memoizedProps,o)&&e.ref===t.ref){if(Ri=!1,!(r&a))return t.lanes=e.lanes,os(e,t,r);16384&e.flags&&(Ri=!0)}return Vi(e,t,n,o,r)}function Bi(e,t,n){var o=t.pendingProps,a=o.children,r=null!==e?e.memoizedState:null;if("hidden"===o.mode||"unstable-defer-without-hiding"===o.mode)if(4&t.mode){if(!(1073741824&n))return e=null!==r?r.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yl(0,e),null;t.memoizedState={baseLanes:0},yl(0,null!==r?r.baseLanes:n)}else t.memoizedState={baseLanes:0},yl(0,n);else null!==r?(o=r.baseLanes|n,t.memoizedState=null):o=n,yl(0,o);return Fi(e,t,a,n),t.child}function Hi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Vi(e,t,n,o,a){var r=va(n)?fa:ha.current;return r=ga(t,r),rr(t,a),n=ii(e,t,n,o,r,a),null===e||Ri?(t.flags|=1,Fi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,os(e,t,a))}function Ui(e,t,n,o,a){if(va(n)){var r=!0;wa(t)}else r=!1;if(rr(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),br(t,n,o),wr(t,n,o,a),o=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;c="object"==typeof c&&null!==c?ir(c):ga(t,c=va(n)?fa:ha.current);var d=n.getDerivedStateFromProps,u="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate;u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==o||l!==c)&&yr(t,i,o,c),sr=!1;var p=t.memoizedState;i.state=p,hr(t,o,i,a),l=t.memoizedState,s!==o||p!==l||ma.current||sr?("function"==typeof d&&(gr(t,n,d,o),l=t.memoizedState),(s=sr||_r(t,n,s,o,p,l,c))?(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=o,t.memoizedState=l),i.props=o,i.state=l,i.context=c,o=s):("function"==typeof i.componentDidMount&&(t.flags|=4),o=!1)}else{i=t.stateNode,cr(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xa(t.type,s),i.props=c,u=t.pendingProps,p=i.context,l="object"==typeof(l=n.contextType)&&null!==l?ir(l):ga(t,l=va(n)?fa:ha.current);var h=n.getDerivedStateFromProps;(d="function"==typeof h||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==u||p!==l)&&yr(t,i,o,l),sr=!1,p=t.memoizedState,i.state=p,hr(t,o,i,a);var m=t.memoizedState;s!==u||p!==m||ma.current||sr?("function"==typeof h&&(gr(t,n,h,o),m=t.memoizedState),(c=sr||_r(t,n,c,o,p,m,l))?(d||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(o,m,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(o,m,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=o,t.memoizedState=m),i.props=o,i.state=m,i.context=l,o=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),o=!1)}return Wi(e,t,n,o,r,a)}function Wi(e,t,n,o,a,r){Hi(e,t);var i=!!(64&t.flags);if(!o&&!i)return a&&ka(t,n,!1),os(e,t,r);o=t.stateNode,Oi.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&i?(t.child=Mr(t,e.child,null,r),t.child=Mr(t,null,s,r)):Fi(e,t,s,r),t.memoizedState=o.state,a&&ka(t,n,!0),t.child}function qi(e){var t=e.stateNode;t.pendingContext?ba(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ba(0,t.context,!1),Nr(e,t.containerInfo)}var $i,Gi,Ki,Ji,Xi={dehydrated:null,retryLane:0};function Qi(e,t,n){var o,a=t.pendingProps,r=Fr.current,i=!1;return(o=!!(64&t.flags))||(o=(null===e||null!==e.memoizedState)&&!!(2&r)),o?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(r|=1),ua(Fr,1&r),null===e?(void 0!==a.fallback&&Ur(t),e=a.children,r=a.fallback,i?(e=Zi(t,e,r,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xi,e):"number"==typeof a.unstable_expectedLoadTime?(e=Zi(t,e,r,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xi,t.lanes=33554432,e):((n=$l({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=function(e,t,n,o,a){var r=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:n};return 2&r||t.child===i?n=Ul(i,s):((n=t.child).childLanes=0,n.pendingProps=s,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null),null!==e?o=Ul(e,o):(o=ql(o,r,a,null)).flags|=2,o.return=t,n.return=t,n.sibling=o,t.child=n,o}(e,t,a.children,a.fallback,n),i=t.child,r=e.child.memoizedState,i.memoizedState=null===r?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Xi,a):(n=function(e,t,n,o){var a=e.child;return e=a.sibling,n=Ul(a,{mode:"visible",children:n}),!(2&t.mode)&&(n.lanes=o),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,a.children,n),t.memoizedState=null,n))}function Zi(e,t,n,o){var a=e.mode,r=e.child;return t={mode:"hidden",children:t},2&a||null===r?r=$l(t,a,0,null):(r.childLanes=0,r.pendingProps=t),n=ql(n,a,o,null),r.return=e,n.return=e,r.sibling=n,e.child=r,n}function es(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ar(e.return,t)}function ts(e,t,n,o,a,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:a,lastEffect:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=a,i.lastEffect=r)}function ns(e,t,n){var o=t.pendingProps,a=o.revealOrder,r=o.tail;if(Fi(e,t,o.children,n),2&(o=Fr.current))o=1&o|2,t.flags|=64;else{if(null!==e&&64&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&es(e,n);else if(19===e.tag)es(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(ua(Fr,o),2&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===jr(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ts(t,!1,a,n,r,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===jr(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ts(t,!0,n,null,r,t.lastEffect);break;case"together":ts(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function os(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ys|=t.lanes,n&t.childLanes){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ul(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ul(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Br)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function rs(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return va(t.type)&&_a(),null;case 3:return Ir(),da(ma),da(ha),Kr(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(qr(t)?t.flags|=4:o.hydrate||(t.flags|=256)),Gi(t),null;case 5:Rr(t);var r=Lr(Pr.current);if(n=t.type,null!==e&&null!=t.stateNode)Ki(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=128);else{if(!o){if(null===t.stateNode)throw Error(i(166));return null}if(e=Lr(Ar.current),qr(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[Qo]=t,o[Zo]=s,n){case"dialog":Do("cancel",o),Do("close",o);break;case"iframe":case"object":case"embed":Do("load",o);break;case"video":case"audio":for(e=0;e<Mo.length;e++)Do(Mo[e],o);break;case"source":Do("error",o);break;case"img":case"image":case"link":Do("error",o),Do("load",o);break;case"details":Do("toggle",o);break;case"input":ee(o,s),Do("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Do("invalid",o);break;case"textarea":le(o,s),Do("invalid",o)}for(var c in xe(n,s),e=null,s)s.hasOwnProperty(c)&&(r=s[c],"children"===c?"string"==typeof r?o.textContent!==r&&(e=["children",r]):"number"==typeof r&&o.textContent!==""+r&&(e=["children",""+r]):l.hasOwnProperty(c)&&null!=r&&"onScroll"===c&&Do("scroll",o));switch(n){case"input":J(o),oe(o,s,!0);break;case"textarea":J(o),de(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=zo)}o=e,t.updateQueue=o,null!==o&&(t.flags|=4)}else{switch(c=9===r.nodeType?r:r.ownerDocument,e===ue&&(e=pe(n)),e===ue?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(n,{is:o.is}):(e=c.createElement(n),"select"===n&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,n),e[Qo]=t,e[Zo]=o,$i(e,t,!1,!1),t.stateNode=e,c=Ee(n,o),n){case"dialog":Do("cancel",e),Do("close",e),r=o;break;case"iframe":case"object":case"embed":Do("load",e),r=o;break;case"video":case"audio":for(r=0;r<Mo.length;r++)Do(Mo[r],e);r=o;break;case"source":Do("error",e),r=o;break;case"img":case"image":case"link":Do("error",e),Do("load",e),r=o;break;case"details":Do("toggle",e),r=o;break;case"input":ee(e,o),r=Z(e,o),Do("invalid",e);break;case"option":r=re(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=a({},o,{value:void 0}),Do("invalid",e);break;case"textarea":le(e,o),r=se(e,o),Do("invalid",e);break;default:r=o}xe(n,r);var d=r;for(s in d)if(d.hasOwnProperty(s)){var u=d[s];"style"===s?we(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&ge(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&ve(e,u):"number"==typeof u&&ve(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Do("scroll",e):null!=u&&y(e,s,u,c))}switch(n){case"input":J(e),oe(e,o,!1);break;case"textarea":J(e),de(e);break;case"option":null!=o.value&&e.setAttribute("value",""+G(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?ie(e,!!o.multiple,s,!1):null!=o.defaultValue&&ie(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof r.onClick&&(e.onclick=zo)}Vo(n,o)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ji(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(i(166));n=Lr(Pr.current),Lr(Ar.current),qr(t)?(o=t.stateNode,n=t.memoizedProps,o[Qo]=t,o.nodeValue!==n&&(t.flags|=4)):((o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[Qo]=t,t.stateNode=o)}return null;case 13:return da(Fr),o=t.memoizedState,64&t.flags?(t.lanes=n,t):(o=null!==o,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qr(t):n=null!==e.memoizedState,o&&!n&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Fr.current?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Ps||!(134217727&Ys)&&!(134217727&zs)||gl(Ps,Ns))),(o||n)&&(t.flags|=4),null);case 4:return Ir(),Gi(t),null===e&&Lo(t.stateNode.containerInfo),null;case 10:return or(t),null;case 19:if(da(Fr),null===(o=t.memoizedState))return null;if(s=!!(64&t.flags),null===(c=o.rendering))if(s)as(o,!1);else{if(0!==Rs||null!==e&&64&e.flags)for(e=t.child;null!==e;){if(null!==(c=jr(e))){for(t.flags|=64,as(o,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=n,n=t.child;null!==n;)e=o,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ua(Fr,1&Fr.current|2),t.child}e=e.sibling}null!==o.tail&&Va()>Us&&(t.flags|=64,s=!0,as(o,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=jr(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(o,!0),null===o.tail&&"hidden"===o.tailMode&&!c.alternate&&!Br)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*Va()-o.renderingStartTime>Us&&1073741824!==n&&(t.flags|=64,s=!0,as(o,!1),t.lanes=33554432);o.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=o.last)?n.sibling=c:t.child=c,o.last=c)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Va(),n.sibling=null,t=Fr.current,ua(Fr,s?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==o.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function is(e){switch(e.tag){case 1:va(e.type)&&_a();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ir(),da(ma),da(ha),Kr(),64&(t=e.flags))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Rr(e),null;case 13:return da(Fr),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return da(Fr),null;case 4:return Ir(),null;case 10:return or(e),null;case 23:case 24:return wl(),null;default:return null}}function ss(e,t){try{var n="",o=t;do{n+=q(o),o=o.return}while(o);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}function ls(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}$i=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gi=function(){},Ki=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,Lr(Ar.current);var i,s=null;switch(n){case"input":r=Z(e,r),o=Z(e,o),s=[];break;case"option":r=re(e,r),o=re(e,o),s=[];break;case"select":r=a({},r,{value:void 0}),o=a({},o,{value:void 0}),s=[];break;case"textarea":r=se(e,r),o=se(e,o),s=[];break;default:"function"!=typeof r.onClick&&"function"==typeof o.onClick&&(e.onclick=zo)}for(u in xe(n,o),n=null,r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&null!=r[u])if("style"===u){var c=r[u];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in o){var d=o[u];if(c=null!=r?r[u]:void 0,o.hasOwnProperty(u)&&d!==c&&(null!=d||null!=c))if("style"===u)if(c){for(i in c)!c.hasOwnProperty(i)||d&&d.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in d)d.hasOwnProperty(i)&&c[i]!==d[i]&&(n||(n={}),n[i]=d[i])}else n||(s||(s=[]),s.push(u,n)),n=d;else"dangerouslySetInnerHTML"===u?(d=d?d.__html:void 0,c=c?c.__html:void 0,null!=d&&c!==d&&(s=s||[]).push(u,d)):"children"===u?"string"!=typeof d&&"number"!=typeof d||(s=s||[]).push(u,""+d):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=d&&"onScroll"===u&&Do("scroll",e),s||c===d||(s=[])):"object"==typeof d&&null!==d&&d.$$typeof===O?d.toString():(s=s||[]).push(u,d))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Ji=function(e,t,n,o){n!==o&&(t.flags|=4)};var cs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=dr(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Gs||(Gs=!0,Ks=o),ls(0,t)},n}function us(e,t,n){(n=dr(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var a=t.value;n.payload=function(){return ls(0,t),o(a)}}var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===Js?Js=new Set([this]):Js.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"==typeof WeakSet?WeakSet:Set;function hs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){jl(e,t)}else t.current=null}function ms(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xa(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$o(t.stateNode.containerInfo))}throw Error(i(163))}function fs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(!(3&~e.tag)){var o=e.create;e.destroy=o()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;o=a.next,4&(a=a.tag)&&1&a&&(Ol(n,e),Il(n,e)),e=o}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(o=n.elementType===n.type?t.memoizedProps:Xa(n.type,t.memoizedProps),e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mr(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mr(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vo(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(i(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var o=n.stateNode;if(t)"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,o.style.display=ye("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vs(e,t){if(Ea&&"function"==typeof Ea.onCommitFiberUnmount)try{Ea.onCommitFiberUnmount(xa,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var o=n,a=o.destroy;if(o=o.tag,void 0!==a)if(4&o)Ol(t,n);else{o=t;try{a()}catch(e){jl(o,e)}}n=n.next}while(n!==e)}break;case 1:if(hs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){jl(t,e)}break;case 5:hs(t);break;case 4:xs(e,t)}}function _s(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(i(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}o?ws(e,n,t):ks(e,n,t)}function ws(e,t,n){var o=e.tag,a=5===o||6===o;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=zo));else if(4!==o&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function ks(e,t,n){var o=e.tag,a=5===o||6===o;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function xs(e,t){for(var n,o,a=t,r=!1;;){if(!r){r=a.return;e:for(;;){if(null===r)throw Error(i(160));switch(n=r.stateNode,r.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}r=r.return}r=!0}if(5===a.tag||6===a.tag){e:for(var s=e,l=a,c=l;;)if(vs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}o?(s=n,l=a.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,o=!0,a.child.return=a,a=a.child;continue}}else if(vs(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(r=!1)}a.sibling.return=a.return,a=a.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{!(3&~o.tag)&&(e=o.destroy,o.destroy=void 0,void 0!==e&&e()),o=o.next}while(o!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){o=t.memoizedProps;var a=null!==e?e.memoizedProps:o;e=t.type;var r=t.updateQueue;if(t.updateQueue=null,null!==r){for(n[Zo]=o,"input"===e&&"radio"===o.type&&null!=o.name&&te(n,o),Ee(e,a),t=Ee(e,o),a=0;a<r.length;a+=2){var s=r[a],l=r[a+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ve(n,l):y(n,s,l,t)}switch(e){case"input":ne(n,o);break;case"textarea":ce(n,o);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(r=o.value)?ie(n,!!o.multiple,r,!1):e!==!!o.multiple&&(null!=o.defaultValue?ie(n,!!o.multiple,o.defaultValue,!0):ie(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Vs=Va(),gs(t.child,!0)),void Ss(t);case 19:return void Ss(t);case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(i(163))}function Ss(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ps),t.forEach((function(t){var o=zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function Ms(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Ts=Math.ceil,Cs=w.ReactCurrentDispatcher,As=w.ReactCurrentOwner,Ds=0,Ps=null,Ls=null,Ns=0,Is=0,Os=ca(0),Rs=0,Fs=null,js=0,Ys=0,zs=0,Bs=0,Hs=null,Vs=0,Us=1/0;function Ws(){Us=Va()+500}var qs,$s=null,Gs=!1,Ks=null,Js=null,Xs=!1,Qs=null,Zs=90,el=[],tl=[],nl=null,ol=0,al=null,rl=-1,il=0,sl=0,ll=null,cl=!1;function dl(){return 48&Ds?Va():-1!==rl?rl:rl=Va()}function ul(e){if(!(2&(e=e.mode)))return 1;if(!(4&e))return 99===Ua()?1:2;if(0===il&&(il=js),0!==Ja.transition){0!==sl&&(sl=null!==Hs?Hs.pendingLanes:0),e=il;var t=4186112&~sl;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Ua(),e=Yt(4&Ds&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),il)}function pl(e,t,n){if(50<ol)throw ol=0,al=null,Error(i(185));if(null===(e=hl(e,t)))return null;Ht(e,t,n),e===Ps&&(zs|=t,4===Rs&&gl(e,Ns));var o=Ua();1===t?8&Ds&&!(48&Ds)?vl(e):(ml(e,n),0===Ds&&(Ws(),Ga())):(!(4&Ds)||98!==o&&99!==o||(null===nl?nl=new Set([e]):nl.add(e)),ml(e,n)),Hs=e}function hl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ml(e,t){for(var n=e.callbackNode,o=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),c=1<<l,d=r[l];if(-1===d){if(!(c&o)||c&a){d=t,Rt(c);var u=Ot;r[l]=10<=u?d+250:6<=u?d+5e3:-1}}else d<=t&&(e.expiredLanes|=c);s&=~c}if(o=Ft(e,e===Ps?Ns:0),t=Ot,0===o)null!==n&&(n!==Fa&&Ta(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fa&&Ta(n)}15===t?(n=vl.bind(null,e),null===Ya?(Ya=[n],za=Ma(La,Ka)):Ya.push(n),n=Fa):14===t?n=$a(99,vl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=$a(n,fl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function fl(e){if(rl=-1,sl=il=0,48&Ds)throw Error(i(327));var t=e.callbackNode;if(Nl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ps?Ns:0);if(0===n)return null;var o=n,a=Ds;Ds|=16;var r=El();for(Ps===e&&Ns===o||(Ws(),kl(e,o));;)try{Tl();break}catch(t){xl(e,t)}if(nr(),Cs.current=r,Ds=a,null!==Ls?o=0:(Ps=null,Ns=0,o=Rs),js&zs)kl(e,0);else if(0!==o){if(2===o&&(Ds|=64,e.hydrate&&(e.hydrate=!1,$o(e.containerInfo)),0!==(n=jt(e))&&(o=Sl(e,n))),1===o)throw t=Fs,kl(e,0),gl(e,n),ml(e,Va()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,o){case 0:case 1:throw Error(i(345));case 2:case 5:Dl(e);break;case 3:if(gl(e,n),(62914560&n)===n&&10<(o=Vs+500-Va())){if(0!==Ft(e,0))break;if(((a=e.suspendedLanes)&n)!==n){dl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Wo(Dl.bind(null,e),o);break}Dl(e);break;case 4:if(gl(e,n),(4186112&n)===n)break;for(o=e.eventTimes,a=-1;0<n;){var s=31-Vt(n);r=1<<s,(s=o[s])>a&&(a=s),n&=~r}if(n=a,10<(n=(120>(n=Va()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ts(n/1960))-n)){e.timeoutHandle=Wo(Dl.bind(null,e),n);break}Dl(e);break;default:throw Error(i(329))}}return ml(e,Va()),e.callbackNode===t?fl.bind(null,e):null}function gl(e,t){for(t&=~Bs,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),o=1<<n;e[n]=-1,t&=~o}}function vl(e){if(48&Ds)throw Error(i(327));if(Nl(),e===Ps&&e.expiredLanes&Ns){var t=Ns,n=Sl(e,t);js&zs&&(n=Sl(e,t=Ft(e,t)))}else n=Sl(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ds|=64,e.hydrate&&(e.hydrate=!1,$o(e.containerInfo)),0!==(t=jt(e))&&(n=Sl(e,t))),1===n)throw n=Fs,kl(e,0),gl(e,t),ml(e,Va()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dl(e),ml(e,Va()),null}function _l(e,t){var n=Ds;Ds|=1;try{return e(t)}finally{0===(Ds=n)&&(Ws(),Ga())}}function bl(e,t){var n=Ds;Ds&=-2,Ds|=8;try{return e(t)}finally{0===(Ds=n)&&(Ws(),Ga())}}function yl(e,t){ua(Os,Is),Is|=t,js|=t}function wl(){Is=Os.current,da(Os)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,qo(n)),null!==Ls)for(n=Ls.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&_a();break;case 3:Ir(),da(ma),da(ha),Kr();break;case 5:Rr(o);break;case 4:Ir();break;case 13:case 19:da(Fr);break;case 10:or(o);break;case 23:case 24:wl()}n=n.return}Ps=e,Ls=Ul(e.current,null),Ns=Is=js=t,Rs=0,Fs=null,Bs=zs=Ys=0}function xl(e,t){for(;;){var n=Ls;try{if(nr(),Jr.current=Pi,ni){for(var o=Zr.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}ni=!1}if(Qr=0,ti=ei=Zr=null,oi=!1,As.current=null,null===n||null===n.return){Rs=1,Fs=t,Ls=null;break}e:{var r=e,i=n.return,s=n,l=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(!(2&s.mode)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var u=!!(1&Fr.current),p=i;do{var h;if(h=13===p.tag){var m=p.memoizedState;if(null!==m)h=null!==m.dehydrated;else{var f=p.memoizedProps;h=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!u)}}if(h){var g=p.updateQueue;if(null===g){var v=new Set;v.add(c),p.updateQueue=v}else g.add(c);if(!(2&p.mode)){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var _=dr(-1,1);_.tag=2,ur(s,_)}s.lanes|=1;break e}l=void 0,s=t;var b=r.pingCache;if(null===b?(b=r.pingCache=new cs,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var y=Yl.bind(null,r,c,s);c.then(y,y)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);l=Error(($(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rs&&(Rs=2),l=ss(l,s),p=i;do{switch(p.tag){case 3:r=l,p.flags|=4096,t&=-t,p.lanes|=t,pr(p,ds(0,r,t));break e;case 1:r=l;var w=p.type,k=p.stateNode;if(!(64&p.flags||"function"!=typeof w.getDerivedStateFromError&&(null===k||"function"!=typeof k.componentDidCatch||null!==Js&&Js.has(k)))){p.flags|=4096,t&=-t,p.lanes|=t,pr(p,us(p,r,t));break e}}p=p.return}while(null!==p)}Al(n)}catch(e){t=e,Ls===n&&null!==n&&(Ls=n=n.return);continue}break}}function El(){var e=Cs.current;return Cs.current=Pi,null===e?Pi:e}function Sl(e,t){var n=Ds;Ds|=16;var o=El();for(Ps===e&&Ns===t||kl(e,t);;)try{Ml();break}catch(t){xl(e,t)}if(nr(),Ds=n,Cs.current=o,null!==Ls)throw Error(i(261));return Ps=null,Ns=0,Rs}function Ml(){for(;null!==Ls;)Cl(Ls)}function Tl(){for(;null!==Ls&&!Ca();)Cl(Ls)}function Cl(e){var t=qs(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?Al(e):Ls=t,As.current=null}function Al(e){var t=e;do{var n=t.alternate;if(e=t.return,2048&t.flags){if(null!==(n=is(t)))return n.flags&=2047,void(Ls=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(null!==(n=rs(n,t,Is)))return void(Ls=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||1073741824&Is||!(4&n.mode)){for(var o=0,a=n.child;null!==a;)o|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=o}null!==e&&!(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(null!==(t=t.sibling))return void(Ls=t);Ls=t=e}while(null!==t);0===Rs&&(Rs=5)}function Dl(e){var t=Ua();return qa(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Nl()}while(null!==Qs);if(48&Ds)throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var o=n.lanes|n.childLanes,a=o,r=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<r;){var c=31-Vt(r),d=1<<c;a[c]=0,s[c]=-1,l[c]=-1,r&=~d}if(null!==nl&&!(24&o)&&nl.has(e)&&nl.delete(e),e===Ps&&(Ls=Ps=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){if(a=Ds,Ds|=32,As.current=null,Bo=Gt,vo(s=go())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(d=l.getSelection&&l.getSelection())&&0!==d.rangeCount){l=d.anchorNode,r=d.anchorOffset,c=d.focusNode,d=d.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var u=0,p=-1,h=-1,m=0,f=0,g=s,v=null;t:for(;;){for(var _;g!==l||0!==r&&3!==g.nodeType||(p=u+r),g!==c||0!==d&&3!==g.nodeType||(h=u+d),3===g.nodeType&&(u+=g.nodeValue.length),null!==(_=g.firstChild);)v=g,g=_;for(;;){if(g===s)break t;if(v===l&&++m===r&&(p=u),v===c&&++f===d&&(h=u),null!==(_=g.nextSibling))break;v=(g=v).parentNode}g=_}l=-1===p||-1===h?null:{start:p,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Ho={focusedElem:s,selectionRange:l},Gt=!1,ll=null,cl=!1,$s=o;do{try{Ll()}catch(e){if(null===$s)throw Error(i(330));jl($s,e),$s=$s.nextEffect}}while(null!==$s);ll=null,$s=o;do{try{for(s=e;null!==$s;){var b=$s.flags;if(16&b&&ve($s.stateNode,""),128&b){var y=$s.alternate;if(null!==y){var w=y.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:ys($s),$s.flags&=-3;break;case 6:ys($s),$s.flags&=-3,Es($s.alternate,$s);break;case 1024:$s.flags&=-1025;break;case 1028:$s.flags&=-1025,Es($s.alternate,$s);break;case 4:Es($s.alternate,$s);break;case 8:xs(s,l=$s);var k=l.alternate;_s(l),null!==k&&_s(k)}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(i(330));jl($s,e),$s=$s.nextEffect}}while(null!==$s);if(w=Ho,y=go(),b=w.focusedElem,s=w.selectionRange,y!==b&&b&&b.ownerDocument&&fo(b.ownerDocument.documentElement,b)){null!==s&&vo(b)&&(y=s.start,void 0===(w=s.end)&&(w=y),"selectionStart"in b?(b.selectionStart=y,b.selectionEnd=Math.min(w,b.value.length)):(w=(y=b.ownerDocument||document)&&y.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!w.extend&&k>s&&(l=s,s=k,k=l),l=mo(b,k),r=mo(b,s),l&&r&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==r.node||w.focusOffset!==r.offset)&&((y=y.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>s?(w.addRange(y),w.extend(r.node,r.offset)):(y.setEnd(r.node,r.offset),w.addRange(y))))),y=[];for(w=b;w=w.parentNode;)1===w.nodeType&&y.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<y.length;b++)(w=y[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Bo,Ho=Bo=null,e.current=n,$s=o;do{try{for(b=e;null!==$s;){var x=$s.flags;if(36&x&&fs(b,$s.alternate,$s),128&x){y=void 0;var E=$s.ref;if(null!==E){var S=$s.stateNode;$s.tag,y=S,"function"==typeof E?E(y):E.current=y}}$s=$s.nextEffect}}catch(e){if(null===$s)throw Error(i(330));jl($s,e),$s=$s.nextEffect}}while(null!==$s);$s=null,ja(),Ds=a}else e.current=n;if(Xs)Xs=!1,Qs=e,Zs=t;else for($s=o;null!==$s;)t=$s.nextEffect,$s.nextEffect=null,8&$s.flags&&((x=$s).sibling=null,x.stateNode=null),$s=t;if(0===(o=e.pendingLanes)&&(Js=null),1===o?e===al?ol++:(ol=0,al=e):ol=0,n=n.stateNode,Ea&&"function"==typeof Ea.onCommitFiberRoot)try{Ea.onCommitFiberRoot(xa,n,void 0,!(64&~n.current.flags))}catch(e){}if(ml(e,Va()),Gs)throw Gs=!1,e=Ks,Ks=null,e;return 8&Ds||Ga(),null}function Ll(){for(;null!==$s;){var e=$s.alternate;cl||null===ll||(8&$s.flags?Ze($s,ll)&&(cl=!0):13===$s.tag&&Ms(e,$s)&&Ze($s,ll)&&(cl=!0));var t=$s.flags;256&t&&ms(e,$s),!(512&t)||Xs||(Xs=!0,$a(97,(function(){return Nl(),null}))),$s=$s.nextEffect}}function Nl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,qa(e,Rl)}return!1}function Il(e,t){el.push(t,e),Xs||(Xs=!0,$a(97,(function(){return Nl(),null})))}function Ol(e,t){tl.push(t,e),Xs||(Xs=!0,$a(97,(function(){return Nl(),null})))}function Rl(){if(null===Qs)return!1;var e=Qs;if(Qs=null,48&Ds)throw Error(i(331));var t=Ds;Ds|=32;var n=tl;tl=[];for(var o=0;o<n.length;o+=2){var a=n[o],r=n[o+1],s=a.destroy;if(a.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===r)throw Error(i(330));jl(r,e)}}for(n=el,el=[],o=0;o<n.length;o+=2){a=n[o],r=n[o+1];try{var l=a.create;a.destroy=l()}catch(e){if(null===r)throw Error(i(330));jl(r,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ds=t,Ga(),!0}function Fl(e,t,n){ur(e,t=ds(0,t=ss(n,t),1)),t=dl(),null!==(e=hl(e,1))&&(Ht(e,1,t),ml(e,t))}function jl(e,t){if(3===e.tag)Fl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fl(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===Js||!Js.has(o))){var a=us(n,e=ss(t,e),1);if(ur(n,a),a=dl(),null!==(n=hl(n,1)))Ht(n,1,a),ml(n,a);else if("function"==typeof o.componentDidCatch&&(null===Js||!Js.has(o)))try{o.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Yl(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=dl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ns&n)===n&&(4===Rs||3===Rs&&(62914560&Ns)===Ns&&500>Va()-Vs?kl(e,0):Bs|=n),ml(e,t)}function zl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(2&(t=e.mode)?4&t?(0===il&&(il=js),0===(t=zt(62914560&~il))&&(t=4194304)):t=99===Ua()?1:2:t=1),n=dl(),null!==(e=hl(e,t))&&(Ht(e,t,n),ml(e,n))}function Bl(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,o){return new Bl(e,t,n,o)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ul(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wl(e,t,n,o,a,r){var s=2;if(o=e,"function"==typeof e)Vl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return ql(n.children,a,r,t);case R:s=8,a|=16;break;case S:s=8,a|=1;break;case M:return(e=Hl(12,n,t,8|a)).elementType=M,e.type=M,e.lanes=r,e;case D:return(e=Hl(13,n,t,a)).type=D,e.elementType=D,e.lanes=r,e;case P:return(e=Hl(19,n,t,a)).elementType=P,e.lanes=r,e;case F:return $l(n,a,r,t);case j:return(e=Hl(24,n,t,a)).elementType=j,e.lanes=r,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case C:s=9;break e;case A:s=11;break e;case L:s=14;break e;case N:s=16,o=null;break e;case I:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,a)).elementType=e,t.type=o,t.lanes=r,t}function ql(e,t,n,o){return(e=Hl(7,e,o,t)).lanes=n,e}function $l(e,t,n,o){return(e=Hl(23,e,o,t)).elementType=F,e.lanes=n,e}function Gl(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function Kl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Xl(e,t,n,o){var a=t.current,r=dl(),s=ul(a);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(va(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===n.tag){var c=n.type;if(va(c)){n=ya(n,c,l);break e}}n=l}else n=pa;return null===t.context?t.context=n:t.pendingContext=n,(t=dr(r,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),ur(a,t),pl(a,s,r),s}function Ql(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function tc(e,t,n){var o=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,lr(t),e[ea]=n.current,Lo(8===e.nodeType?e.parentNode:e),o)for(e=0;e<o.length;e++){var a=(t=o[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,n,o,a){var r=n._reactRootContainer;if(r){var i=r._internalRoot;if("function"==typeof a){var s=a;a=function(){var e=Ql(i);s.call(e)}}Xl(t,i,e,a)}else{if(r=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,o),i=r._internalRoot,"function"==typeof a){var l=a;a=function(){var e=Ql(i);l.call(e)}}bl((function(){Xl(t,i,e,a)}))}return Ql(i)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(i(200));return function(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}qs=function(e,t,n){var o=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ma.current)Ri=!0;else{if(!(n&o)){switch(Ri=!1,t.tag){case 3:qi(t),$r();break;case 5:Or(t);break;case 1:va(t.type)&&wa(t);break;case 4:Nr(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value;var a=t.type._context;ua(Qa,a._currentValue),a._currentValue=o;break;case 13:if(null!==t.memoizedState)return n&t.child.childLanes?Qi(e,t,n):(ua(Fr,1&Fr.current),null!==(t=os(e,t,n))?t.sibling:null);ua(Fr,1&Fr.current);break;case 19:if(o=!!(n&t.childLanes),64&e.flags){if(o)return ns(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ua(Fr,Fr.current),o)break;return null;case 23:case 24:return t.lanes=0,Bi(e,t,n)}return os(e,t,n)}Ri=!!(16384&e.flags)}else Ri=!1;switch(t.lanes=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ga(t,ha.current),rr(t,n),a=ii(null,t,o,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,va(o)){var r=!0;wa(t)}else r=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,lr(t);var s=o.getDerivedStateFromProps;"function"==typeof s&&gr(t,o,s,e),a.updater=vr,t.stateNode=a,a._reactInternals=t,wr(t,o,e,n),t=Wi(null,t,o,!0,r,n)}else t.tag=0,Fi(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(r=a._init)(a._payload),t.type=a,r=t.tag=function(e){if("function"==typeof e)return Vl(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===L)return 14}return 2}(a),e=Xa(a,e),r){case 0:t=Vi(null,t,a,e,n);break e;case 1:t=Ui(null,t,a,e,n);break e;case 11:t=ji(null,t,a,e,n);break e;case 14:t=Yi(null,t,a,Xa(a.type,e),o,n);break e}throw Error(i(306,a,""))}return t;case 0:return o=t.type,a=t.pendingProps,Vi(e,t,o,a=t.elementType===o?a:Xa(o,a),n);case 1:return o=t.type,a=t.pendingProps,Ui(e,t,o,a=t.elementType===o?a:Xa(o,a),n);case 3:if(qi(t),o=t.updateQueue,null===e||null===o)throw Error(i(282));if(o=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,cr(e,t),hr(t,o,null,n),(o=t.memoizedState.element)===a)$r(),t=os(e,t,n);else{if((r=(a=t.stateNode).hydrate)&&(zr=Go(t.stateNode.containerInfo.firstChild),Yr=t,r=Br=!0),r){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(r=e[a])._workInProgressVersionPrimary=e[a+1],Gr.push(r);for(n=Tr(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fi(e,t,o,n),$r();t=t.child}return t;case 5:return Or(t),null===e&&Ur(t),o=t.type,a=t.pendingProps,r=null!==e?e.memoizedProps:null,s=a.children,Uo(o,a)?s=null:null!==r&&Uo(o,r)&&(t.flags|=16),Hi(e,t),Fi(e,t,s,n),t.child;case 6:return null===e&&Ur(t),null;case 13:return Qi(e,t,n);case 4:return Nr(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Mr(t,null,o,n):Fi(e,t,o,n),t.child;case 11:return o=t.type,a=t.pendingProps,ji(e,t,o,a=t.elementType===o?a:Xa(o,a),n);case 7:return Fi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fi(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,a=t.pendingProps,s=t.memoizedProps,r=a.value;var l=t.type._context;if(ua(Qa,l._currentValue),l._currentValue=r,null!==s)if(l=s.value,0==(r=co(l,r)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(l,r):1073741823))){if(s.children===a.children&&!ma.current){t=os(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var d=c.firstContext;null!==d;){if(d.context===o&&d.observedBits&r){1===l.tag&&((d=dr(-1,n&-n)).tag=2,ur(l,d)),l.lanes|=n,null!==(d=l.alternate)&&(d.lanes|=n),ar(l.return,n),c.lanes|=n;break}d=d.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=(r=t.pendingProps).children,rr(t,n),o=o(a=ir(a,r.unstable_observedBits)),t.flags|=1,Fi(e,t,o,n),t.child;case 14:return r=Xa(a=t.type,t.pendingProps),Yi(e,t,a,r=Xa(a.type,r),o,n);case 15:return zi(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:Xa(o,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,va(o)?(e=!0,wa(t)):e=!1,rr(t,n),br(t,o,a),wr(t,o,a,n),Wi(null,t,o,!0,e,n);case 19:return ns(e,t,n);case 23:case 24:return Bi(e,t,n)}throw Error(i(156,t.tag))},tc.prototype.render=function(e){Xl(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xl(null,e,null,(function(){t[ea]=null}))},et=function(e){13===e.tag&&(pl(e,4,dl()),ec(e,4))},tt=function(e){13===e.tag&&(pl(e,67108864,dl()),ec(e,67108864))},nt=function(e){if(13===e.tag){var t=dl(),n=ul(e);pl(e,n,t),ec(e,n)}},ot=function(e,t){return t()},Me=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var a=ra(o);if(!a)throw Error(i(90));X(o),ne(o,a)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Le=_l,Ne=function(e,t,n,o,a){var r=Ds;Ds|=4;try{return qa(98,e.bind(null,t,n,o,a))}finally{0===(Ds=r)&&(Ws(),Ga())}},Ie=function(){!(49&Ds)&&(function(){if(null!==nl){var e=nl;nl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ml(e,Va())}))}Ga()}(),Nl())},Oe=function(e,t){var n=Ds;Ds|=2;try{return e(t)}finally{0===(Ds=n)&&(Ws(),Ga())}};var rc={Events:[oa,aa,ra,De,Pe,Nl,{current:!1}]},ic={findFiberByHostInstance:na,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{xa=lc.inject(sc),Ea=lc}catch(fe){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rc,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ds;if(48&n)return e(t);Ds|=1;try{if(e)return qa(99,e.bind(null,t))}finally{Ds=n,Ga()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(i(200));return oc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(i(200));return oc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(i(40));return!!e._reactRootContainer&&(bl((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ea]=null}))})),!0)},t.unstable_batchedUpdates=_l,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!nc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return oc(e,t,n,!1,o)},t.version="17.0.2"},2563:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getMinutes()}},2572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),o=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},2648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var o=100*e+t;return o<600?"凌晨":o<900?"早上":o<1130?"上午":o<1230?"中午":o<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(5093))},2657:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(9852),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.default)(e,-n)}},2682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(5093))},2694:(e,t,n)=>{"use strict";var o=n(6925);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,i){if(i!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},2702:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}},2711:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Qe});var o=n(2284),a=n(7800);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,a.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw i}}}}var i=n(4274),s=n(5654),l=n(123);function c(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var d=n(1788),u=n(7044),p=n(1109),h=n(4188),m=n(551),f=n(9417),g=n(5501),v=n(8293),_=n(3029),b=n(2901),y=n(4467),w=function(){function e(){(0,_.A)(this,e),(0,y.A)(this,"priority",void 0),(0,y.A)(this,"subPriority",0)}return(0,b.A)(e,[{key:"validate",value:function(e,t){return!0}}]),e}(),k=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(e,o,a,r,i){var s;return(0,_.A)(this,n),(s=t.call(this)).value=e,s.validateValue=o,s.setValue=a,s.priority=r,i&&(s.subPriority=i),s}return(0,b.A)(n,[{key:"validate",value:function(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(w),x=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",10),(0,y.A)((0,f.A)(e),"subPriority",-1),e}return(0,b.A)(n,[{key:"set",value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),n}(w),E=function(){function e(){(0,_.A)(this,e),(0,y.A)(this,"incompatibleTokens",void 0),(0,y.A)(this,"priority",void 0),(0,y.A)(this,"subPriority",void 0)}return(0,b.A)(e,[{key:"run",value:function(e,t,n,o){var a=this.parse(e,t,n,o);return a?{setter:new k(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(e,t,n){return!0}}]),e}(),S=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",140),(0,y.A)((0,f.A)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),M=n(7499),T=/^(1[0-2]|0?\d)/,C=/^(3[0-1]|[0-2]?\d)/,A=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,D=/^(5[0-3]|[0-4]?\d)/,P=/^(2[0-3]|[0-1]?\d)/,L=/^(2[0-4]|[0-1]?\d)/,N=/^(1[0-1]|0?\d)/,I=/^(1[0-2]|0?\d)/,O=/^[0-5]?\d/,R=/^[0-5]?\d/,F=/^\d/,j=/^\d{1,2}/,Y=/^\d{1,3}/,z=/^\d{1,4}/,B=/^-?\d+/,H=/^-?\d/,V=/^-?\d{1,2}/,U=/^-?\d{1,3}/,W=/^-?\d{1,4}/,q=/^([+-])(\d{2})(\d{2})?|Z/,$=/^([+-])(\d{2})(\d{2})|Z/,G=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,K=/^([+-])(\d{2}):(\d{2})|Z/,J=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function X(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Q(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Z(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var o="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,r=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:o*(a*M.s0+r*M.Cg+i*M._m),rest:t.slice(n[0].length)}}function ee(e){return Q(B,e)}function te(e,t){switch(e){case 1:return Q(F,t);case 2:return Q(j,t);case 3:return Q(Y,t);case 4:return Q(z,t);default:return Q(new RegExp("^\\d{1,"+e+"}"),t)}}function ne(e,t){switch(e){case 1:return Q(H,t);case 2:return Q(V,t);case 3:return Q(U,t);case 4:return Q(W,t);default:return Q(new RegExp("^-?\\d{1,"+e+"}"),t)}}function oe(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ae(e,t){var n,o=t>0,a=o?t:1-t;if(a<=50)n=e||100;else{var r=a+50;n=e+100*Math.floor(r/100)-(e>=r%100?100:0)}return o?n:1-n}function re(e){return e%400==0||e%4==0&&e%100!=0}var ie=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",130),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return X(te(4,e),o);case"yo":return X(n.ordinalNumber(e,{unit:"year"}),o);default:return X(te(t.length,e),o)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var a=ae(n.year,o);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var r="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),se=n(464),le=n(9742),ce=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",130),(0,y.A)((0,f.A)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return X(te(4,e),o);case"Yo":return X(n.ordinalNumber(e,{unit:"year"}),o);default:return X(te(t.length,e),o)}}},{key:"validate",value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function(e,t,n,o){var a=(0,se.A)(e,o);if(n.isTwoDigitYear){var r=ae(n.year,a);return e.setUTCFullYear(r,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,le.A)(e,o)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,o.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,le.A)(e,o)}}]),n}(E),de=n(9411),ue=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",130),(0,y.A)((0,f.A)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t){return ne("R"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),(0,de.A)(o)}}]),n}(E),pe=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",130),(0,y.A)((0,f.A)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t){return ne("u"===t?4:t.length,e)}},{key:"set",value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),he=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",120),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return te(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(E),me=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",120),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"q":case"qq":return te(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}}]),n}(E),fe=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,y.A)((0,f.A)(e),"priority",110),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){var o=function(e){return e-1};switch(t){case"M":return X(Q(T,e),o);case"MM":return X(te(2,e),o);case"Mo":return X(n.ordinalNumber(e,{unit:"month"}),o);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),ge=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",110),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){var o=function(e){return e-1};switch(t){case"L":return X(Q(T,e),o);case"LL":return X(te(2,e),o);case"Lo":return X(n.ordinalNumber(e,{unit:"month"}),o);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),n}(E),ve=n(6894),_e=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",100),(0,y.A)((0,f.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"w":return Q(D,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n,o){return(0,le.A)(function(e,t,n){(0,m.A)(2,arguments);var o=(0,l.default)(e),a=(0,h.A)(t),r=(0,ve.A)(o,n)-a;return o.setUTCDate(o.getUTCDate()-7*r),o}(e,n,o),o)}}]),n}(E),be=n(1053),ye=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",100),(0,y.A)((0,f.A)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"I":return Q(D,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=53}},{key:"set",value:function(e,t,n){return(0,de.A)(function(e,t){(0,m.A)(2,arguments);var n=(0,l.default)(e),o=(0,h.A)(t),a=(0,be.A)(n)-o;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n))}}]),n}(E),we=[31,28,31,30,31,30,31,31,30,31,30,31],ke=[31,29,31,30,31,30,31,31,30,31,30,31],xe=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",90),(0,y.A)((0,f.A)(e),"subPriority",1),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"d":return Q(C,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){var n=re(e.getUTCFullYear()),o=e.getUTCMonth();return n?t>=1&&t<=ke[o]:t>=1&&t<=we[o]}},{key:"set",value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),n}(E),Ee=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",90),(0,y.A)((0,f.A)(e),"subpriority",1),(0,y.A)((0,f.A)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"D":case"DD":return Q(A,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return re(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),n}(E),Se=n(1858);function Me(e,t,n){var o,a,r,i,s,c,d,u;(0,m.A)(2,arguments);var p=(0,Se.q)(),f=(0,h.A)(null!==(o=null!==(a=null!==(r=null!==(i=null==n?void 0:n.weekStartsOn)&&void 0!==i?i:null==n||null===(s=n.locale)||void 0===s||null===(c=s.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:p.weekStartsOn)&&void 0!==a?a:null===(d=p.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,l.default)(e),v=(0,h.A)(t),_=((v%7+7)%7<f?7:0)+v-g.getUTCDay();return g.setUTCDate(g.getUTCDate()+_),g}var Te=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",90),(0,y.A)((0,f.A)(e),"incompatibleTokens",["D","i","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=Me(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(E),Ce=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",90),(0,y.A)((0,f.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n,o){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return X(te(t.length,e),a);case"eo":return X(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=Me(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(E),Ae=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",90),(0,y.A)((0,f.A)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n,o){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+o.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return X(te(t.length,e),a);case"co":return X(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,o){return(e=Me(e,n,o)).setUTCHours(0,0,0,0),e}}]),n}(E),De=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",90),(0,y.A)((0,f.A)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return te(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return X(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return X(n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return X(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);default:return X(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(e,t){return t>=1&&t<=7}},{key:"set",value:function(e,t,n){return e=function(e,t){(0,m.A)(2,arguments);var n=(0,h.A)(t);n%7==0&&(n-=7);var o=(0,l.default)(e),a=((n%7+7)%7<1?7:0)+n-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+a),o}(e,n),e.setUTCHours(0,0,0,0),e}}]),n}(E),Pe=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",80),(0,y.A)((0,f.A)(e),"incompatibleTokens",["b","B","H","k","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(oe(n),0,0,0),e}}]),n}(E),Le=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",80),(0,y.A)((0,f.A)(e),"incompatibleTokens",["a","B","H","k","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(oe(n),0,0,0),e}}]),n}(E),Ne=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",80),(0,y.A)((0,f.A)(e),"incompatibleTokens",["a","b","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(e,t,n){return e.setUTCHours(oe(n),0,0,0),e}}]),n}(E),Ie=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",70),(0,y.A)((0,f.A)(e),"incompatibleTokens",["H","K","k","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"h":return Q(I,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=12}},{key:"set",value:function(e,t,n){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}}]),n}(E),Oe=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",70),(0,y.A)((0,f.A)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"H":return Q(P,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=23}},{key:"set",value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),n}(E),Re=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",70),(0,y.A)((0,f.A)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return Q(N,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(E),Fe=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",70),(0,y.A)((0,f.A)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"k":return Q(L,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=1&&t<=24}},{key:"set",value:function(e,t,n){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e}}]),n}(E),je=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",60),(0,y.A)((0,f.A)(e),"incompatibleTokens",["t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"m":return Q(O,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),n}(E),Ye=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",50),(0,y.A)((0,f.A)(e),"incompatibleTokens",["t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t,n){switch(t){case"s":return Q(R,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return te(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=59}},{key:"set",value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),n}(E),ze=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",30),(0,y.A)((0,f.A)(e),"incompatibleTokens",["t","T"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t){return X(te(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}},{key:"set",value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),n}(E),Be=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",10),(0,y.A)((0,f.A)(e),"incompatibleTokens",["t","T","x"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t){switch(t){case"X":return Z(q,e);case"XX":return Z($,e);case"XXXX":return Z(G,e);case"XXXXX":return Z(J,e);default:return Z(K,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(E),He=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",10),(0,y.A)((0,f.A)(e),"incompatibleTokens",["t","T","X"]),e}return(0,b.A)(n,[{key:"parse",value:function(e,t){switch(t){case"x":return Z(q,e);case"xx":return Z($,e);case"xxxx":return Z(G,e);case"xxxxx":return Z(J,e);default:return Z(K,e)}}},{key:"set",value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),n}(E),Ve=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",40),(0,y.A)((0,f.A)(e),"incompatibleTokens","*"),e}return(0,b.A)(n,[{key:"parse",value:function(e){return ee(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(E),Ue=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){var e;(0,_.A)(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return e=t.call.apply(t,[this].concat(a)),(0,y.A)((0,f.A)(e),"priority",20),(0,y.A)((0,f.A)(e),"incompatibleTokens","*"),e}return(0,b.A)(n,[{key:"parse",value:function(e){return ee(e)}},{key:"set",value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),n}(E),We={G:new S,y:new ie,Y:new ce,R:new ue,u:new pe,Q:new he,q:new me,M:new fe,L:new ge,w:new _e,I:new ye,d:new xe,D:new Ee,E:new Te,e:new Ce,c:new Ae,i:new De,a:new Pe,b:new Le,B:new Ne,h:new Ie,H:new Oe,K:new Re,k:new Fe,m:new je,s:new Ye,S:new ze,X:new Be,x:new He,t:new Ve,T:new Ue},qe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ge=/^'([^]*?)'?$/,Ke=/''/g,Je=/\S/,Xe=/[a-zA-Z]/;function Qe(e,t,n,a){var f,g,v,_,b,y,w,k,E,S,M,T,C,A,D,P,L,N;(0,m.A)(3,arguments);var I=String(e),O=String(t),R=(0,Se.q)(),F=null!==(f=null!==(g=null==a?void 0:a.locale)&&void 0!==g?g:R.locale)&&void 0!==f?f:i.A;if(!F.match)throw new RangeError("locale must contain match property");var j=(0,h.A)(null!==(v=null!==(_=null!==(b=null!==(y=null==a?void 0:a.firstWeekContainsDate)&&void 0!==y?y:null==a||null===(w=a.locale)||void 0===w||null===(k=w.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==b?b:R.firstWeekContainsDate)&&void 0!==_?_:null===(E=R.locale)||void 0===E||null===(S=E.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==v?v:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=(0,h.A)(null!==(M=null!==(T=null!==(C=null!==(A=null==a?void 0:a.weekStartsOn)&&void 0!==A?A:null==a||null===(D=a.locale)||void 0===D||null===(P=D.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==C?C:R.weekStartsOn)&&void 0!==T?T:null===(L=R.locale)||void 0===L||null===(N=L.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==M?M:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===O)return""===I?(0,l.default)(n):new Date(NaN);var z,B={firstWeekContainsDate:j,weekStartsOn:Y,locale:F},H=[new x],V=O.match($e).map((function(e){var t=e[0];return t in d.A?(0,d.A[t])(e,F.formatLong):e})).join("").match(qe),U=[],W=r(V);try{var q=function(){var t=z.value;null!=a&&a.useAdditionalWeekYearTokens||!(0,p.xM)(t)||(0,p.lJ)(t,O,e),null!=a&&a.useAdditionalDayOfYearTokens||!(0,p.ef)(t)||(0,p.lJ)(t,O,e);var n=t[0],o=We[n];if(o){var r=o.incompatibleTokens;if(Array.isArray(r)){var i=U.find((function(e){return r.includes(e.token)||e.token===n}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===o.incompatibleTokens&&U.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));U.push({token:n,fullToken:t});var s=o.run(I,t,F.match,B);if(!s)return{v:new Date(NaN)};H.push(s.setter),I=s.rest}else{if(n.match(Xe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=t.match(Ge)[1].replace(Ke,"'")),0!==I.indexOf(t))return{v:new Date(NaN)};I=I.slice(t.length)}};for(W.s();!(z=W.n()).done;){var $=q();if("object"===(0,o.A)($))return $.v}}catch(e){W.e(e)}finally{W.f()}if(I.length>0&&Je.test(I))return new Date(NaN);var G=H.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return H.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),K=(0,l.default)(n);if(isNaN(K.getTime()))return new Date(NaN);var J,X=(0,s.A)(K,(0,u.A)(K)),Q={},Z=r(G);try{for(Z.s();!(J=Z.n()).done;){var ee=J.value;if(!ee.validate(X,B))return new Date(NaN);var te=ee.set(X,Q,B);Array.isArray(te)?(X=te[0],c(Q,te[1])):X=te}}catch(e){Z.e(e)}finally{Z.f()}return X}},2819:(e,t)=>{!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Break text":"Break text","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image",Green:"Green",Grey:"Grey","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Orange:"Orange",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on",Turquoise:"Turquoise",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window,e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=110)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));class o extends Error{constructor(e,t,n){super(function(e,t){const n=new WeakSet,o=t?" "+JSON.stringify(t,((e,t)=>{if("object"==typeof t&&null!==t){if(n.has(t))return`[object ${t.constructor.name}]`;n.add(t)}return t})):"";return e+o+r(e)}(e,n)),this.name="CKEditorError",this.context=t,this.data=n}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const n=new o(e.message,t);throw n.stack=e.stack,n}}function a(e,t){console.warn(...function(e,t){const n=r(e);return t?[e,t,n]:[e,n]}(e,t))}function r(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}},function(e,t,n){"use strict";var o,a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),r=[];function i(e){for(var t=-1,n=0;n<r.length;n++)if(r[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},o=[],a=0;a<e.length;a++){var s=e[a],l=t.base?s[0]+t.base:s[0],c=n[l]||0,d="".concat(l," ").concat(c);n[l]=c+1;var u=i(d),p={css:s[1],media:s[2],sourceMap:s[3]};-1!==u?(r[u].references++,r[u].updater(p)):r.push({identifier:d,updater:f(p,t),references:1}),o.push(d)}return o}function l(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=a(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var c,d=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function u(e,t,n,o){var a=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var r=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(r,i[t]):e.appendChild(r)}}function p(e,t,n){var o=n.css,a=n.media,r=n.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var h=null,m=0;function f(e,t){var n,o,a;if(t.singleton){var r=m++;n=h||(h=l(t)),o=u.bind(null,n,r,!1),a=u.bind(null,n,r,!0)}else n=l(t),o=p.bind(null,n,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var a=i(n[o]);r[a].references--}for(var l=s(e,t),c=0;c<n.length;c++){var d=i(n[c]);0===r[d].references&&(r[d].updater(),r.splice(d,1))}n=l}}}},,function(e,t,n){"use strict";var o=n(8),a="object"==typeof self&&self&&self.Object===Object&&self,r=o.a||a||Function("return this")();t.a=r},function(e,n,o){"use strict";(function(e){var a=o(3),r=o(14),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=s&&s.exports===i?a.a.Buffer:void 0,c=(l?l.isBuffer:void 0)||r.a;n.a=c}).call(this,o(10)(e))},function(e,n,o){"use strict";(function(e){var a=o(8),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===r&&a.a.process,l=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();n.a=l}).call(this,o(10)(e))},function(e,t,n){"use strict";(function(e){var t=n(0);const o="object"==typeof window?window:e;if(o.CKEDITOR_VERSION)throw new t.a("ckeditor-duplicated-modules",null);o.CKEDITOR_VERSION="31.1.0"}).call(this,n(12))},function(e,t,n){var o=n(1),a=n(78);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(12))},function(e,n,o){"use strict";(function(e){var a=o(3),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===r?a.a.Buffer:void 0,l=s?s.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}}).call(this,o(10)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var o=n(1),a=n(79);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var o=n(1),a=n(73);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){var o=n(1),a=n(16);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}"},function(e,t,n){var o=n(1),a=n(18);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var o=n(1),a=n(20);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var o=n(1),a=n(22);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_se,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{right:auto;left:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{right:auto;left:0;transform:translateX(50%)}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--ck-color-tooltip-background);border-top-color:transparent;border-left-width:0;border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_w{right:calc(100% + var(--ck-tooltip-arrow-size));left:auto;top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:var(--ck-color-tooltip-background);border-bottom-color:transparent;border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:0;border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var o=n(1),a=n(24);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var o=n(1),a=n(26);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}"},function(e,t,n){var o=n(1),a=n(28);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}"},function(e,t,n){var o=n(1),a=n(30);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{content:"";position:absolute;width:1px;height:100%;background-color:var(--ck-color-split-button-hover-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}'},function(e,t,n){var o=n(1),a=n(32);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);max-width:var(--ck-dropdown-max-width);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var o=n(1),a=n(34);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var o=n(1),a=n(36);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var o=n(1),a=n(38);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var o=n(1),a=n(40);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var o=n(1),a=n(42);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var o=n(1),a=n(44);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var o=n(1),a=n(46);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-form__header{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{padding:var(--ck-spacing-small) var(--ck-spacing-large);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-form__header .ck-form__header__label{font-weight:700}"},function(e,t,n){var o=n(1),a=n(48);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var o=n(1),a=n(50);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;transform-origin:0 0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);background:var(--ck-color-labeled-field-label-background);padding:0 calc(var(--ck-font-size-tiny)*0.5);line-height:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden;max-width:100%;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*0.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*0.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:transparent;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}"},function(e,t,n){var o=n(1),a=n(52);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}'},function(e,t,n){var o=n(1),a=n(54);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var o=n(1),a=n(56);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var o=n(1),a=n(58);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var o=n(1),a=n(60);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}"},function(e,t,n){var o=n(1),a=n(62);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-placeholder,.ck .ck-placeholder{position:relative}.ck.ck-placeholder:before,.ck .ck-placeholder:before{position:absolute;left:0;right:0;content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var o=n(1),a=n(64);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var o=n(1),a=n(66);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(e,t,n){var o=n(1),a=n(68);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:0 var(--ck-spacing-small);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{top:calc(var(--ck-resizer-tooltip-height)*-1);left:50%;transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness));top:0}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var o=n(1),a=n(70);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;position:relative;pointer-events:none}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);border:1px solid var(--ck-clipboard-drop-target-color);background:var(--ck-clipboard-drop-target-color);margin-left:-1px}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{content:"";width:0;height:0;display:block;position:absolute;left:50%;top:calc(var(--ck-clipboard-drop-target-dot-height)*-0.5);transform:translateX(-50%);border-left:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-bottom:0 solid transparent;border-right:calc(var(--ck-clipboard-drop-target-dot-width)*0.5) solid transparent;border-top:calc(var(--ck-clipboard-drop-target-dot-height)) solid var(--ck-clipboard-drop-target-color)}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}'},function(e,t,n){var o=n(1),a=n(72);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var o=n(1),a=n(75);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}"},function(e,t,n){var o=n(1),a=n(77);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}"},function(e,t){e.exports='.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}'},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:.9em auto;min-width:50px}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{display:inline-flex;max-width:100%;align-items:flex-start}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{padding-left:inherit;padding-right:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}"},function(e,t,n){var o=n(1),a=n(81);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:var(--ck-color-image-caption-text);background-color:var(--ck-color-image-caption-background);padding:.6em;font-size:.75em;outline-offset:-1px}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}"},function(e,t,n){var o=n(1),a=n(83);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-right:0;margin-left:auto}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-top:var(--ck-inline-image-style-spacing);margin-bottom:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}"},function(e,t,n){var o=n(1),a=n(85);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image-inline .ck-progress-bar,.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image-inline .ck-progress-bar,.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var o=n(1),a=n(87);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:min(var(--ck-spacing-medium),6%);right:min(var(--ck-spacing-medium),6%);border-radius:50%;z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:calc(1px*var(--ck-image-upload-icon-size));animation-delay:0ms,3s;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var o=n(1),a=n(89);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t,n){var o=n(1),a=n(91);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var o=n(1),a=n(93);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var o=n(1),a=n(95);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}"},function(e,t,n){var o=n(1),a=n(97);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(var(--ck-spacing-standard)*3);background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var o=n(1),a=n(99);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}"},function(e,t,n){var o=n(1),a=n(101);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck-content .media{clear:both;margin:.9em 0;display:block;min-width:15em}"},function(e,t,n){var o=n(1),a=n(103);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var o=n(1),a=n(105);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var o=n(1),a=n(107);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}'},function(e,t,n){var o=n(1),a=n(109);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.i,a,""]]),o(a,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=a.locals||{}},function(e,t){e.exports=".ck-content .table{margin:.9em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}"},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return iv}));class o{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}}}const a=new Array(256).fill().map(((e,t)=>("0"+t.toString(16)).slice(-2)));function r(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+a[255&e]+a[e>>8&255]+a[e>>16&255]+a[e>>24&255]+a[255&t]+a[t>>8&255]+a[t>>16&255]+a[t>>24&255]+a[255&n]+a[n>>8&255]+a[n>>16&255]+a[n>>24&255]+a[255&o]+a[o>>8&255]+a[o>>16&255]+a[o>>24&255]}var i={get(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},s=(n(6),n(0));const l=Symbol("listeningTo"),c=Symbol("emitterId");var d={on(e,t,n={}){this.listenTo(this,e,t,n)},once(e,t,n){let o=!1;this.listenTo(this,e,(function(e,...n){o||(o=!0,e.off(),t.call(this,e,...n))}),n)},off(e,t){this.stopListening(this,e,t)},listenTo(e,t,n,o={}){let a,r;this[l]||(this[l]={});const i=this[l];p(e)||u(e);const s=p(e);(a=i[s])||(a=i[s]={emitter:e,callbacks:{}}),(r=a.callbacks[t])||(r=a.callbacks[t]=[]),r.push(n),function(e,t,n,o,a){t._addEventListener?t._addEventListener(n,o,a):e._addEventListener.call(t,n,o,a)}(this,e,t,n,o)},stopListening(e,t,n){const o=this[l];let a=e&&p(e);const r=o&&a&&o[a],i=r&&t&&r.callbacks[t];if(!(!o||e&&!r||t&&!i))if(n)g(this,e,t,n),-1!==i.indexOf(n)&&(1===i.length?delete r.callbacks[t]:g(this,e,t,n));else if(i){for(;n=i.pop();)g(this,e,t,n);delete r.callbacks[t]}else if(r){for(t in r.callbacks)this.stopListening(e,t);delete o[a]}else{for(a in o)this.stopListening(o[a].emitter);delete this[l]}},fire(e,...t){try{const n=e instanceof o?e:new o(this,e),a=n.name;let r=function e(t,n){let o;return t._events&&(o=t._events[n])&&o.callbacks.length?o.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,a);if(n.path.push(this),r){const e=[n,...t];r=Array.from(r);for(let t=0;t<r.length&&(r[t].callback.apply(this,e),n.off.called&&(delete n.off.called,this._removeEventListener(a,r[t].callback)),!n.stop.called);t++);}if(this._delegations){const e=this._delegations.get(a),o=this._delegations.get("*");e&&f(e,n,t),o&&f(o,n,t)}return n.return}catch(e){s.a.rethrowUnexpectedError(e,this)}},delegate(...e){return{to:(t,n)=>{this._delegations||(this._delegations=new Map),e.forEach((e=>{const o=this._delegations.get(e);o?o.set(t,n):this._delegations.set(e,new Map([[t,n]]))}))}}},stopDelegating(e,t){if(this._delegations)if(e)if(t){const n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()},_addEventListener(e,t,n){!function(e,t){const n=h(e);if(n[t])return;let o=t,a=null;const r=[];for(;""!==o&&!n[o];)n[o]={callbacks:[],childEvents:[]},r.push(n[o]),a&&n[o].childEvents.push(a),a=o,o=o.substr(0,o.lastIndexOf(":"));if(""!==o){for(const e of r)e.callbacks=n[o].callbacks.slice();n[o].childEvents.push(a)}}(this,e);const o=m(this,e),a=i.get(n.priority),r={callback:t,priority:a};for(const e of o){let t=!1;for(let n=0;n<e.length;n++)if(e[n].priority<a){e.splice(n,0,r),t=!0;break}t||e.push(r)}},_removeEventListener(e,t){const n=m(this,e);for(const e of n)for(let n=0;n<e.length;n++)e[n].callback==t&&(e.splice(n,1),n--)}};function u(e,t){e[c]||(e[c]=t||r())}function p(e){return e[c]}function h(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function m(e,t){const n=h(e)[t];if(!n)return[];let o=[n.callbacks];for(let t=0;t<n.childEvents.length;t++){const a=m(e,n.childEvents[t]);o=o.concat(a)}return o}function f(e,t,n){for(let[a,r]of e){r?"function"==typeof r&&(r=r(t.name)):r=t.name;const e=new o(t.source,r);e.path=[...t.path],a.fire(e,...n)}}function g(e,t,n,o){t._removeEventListener?t._removeEventListener(n,o):e._removeEventListener.call(t,n,o)}var v,_=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},b=n(3),y=b.a.Symbol,w=Object.prototype,k=w.hasOwnProperty,x=w.toString,E=y?y.toStringTag:void 0,S=Object.prototype.toString,M=y?y.toStringTag:void 0,T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?function(e){var t=k.call(e,E),n=e[E];try{e[E]=void 0;var o=!0}catch(e){}var a=x.call(e);return o&&(t?e[E]=n:delete e[E]),a}(e):function(e){return S.call(e)}(e)},C=function(e){if(!_(e))return!1;var t=T(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b.a["__core-js_shared__"],D=(v=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",P=Function.prototype.toString,L=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""},N=/^\[object .+?Constructor\]$/,I=Function.prototype,O=Object.prototype,R=I.toString,F=O.hasOwnProperty,j=RegExp("^"+R.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=function(e){return!(!_(e)||function(e){return!!D&&D in e}(e))&&(C(e)?j:N).test(L(e))},z=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Y(n)?n:void 0},B=function(){try{var e=z(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),H=function(e,t,n){"__proto__"==t&&B?B(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},V=function(e,t){return e===t||e!=e&&t!=t},U=Object.prototype.hasOwnProperty,W=function(e,t,n){var o=e[t];U.call(e,t)&&V(o,n)&&(void 0!==n||t in e)||H(e,t,n)},q=function(e,t,n,o){var a=!n;n||(n={});for(var r=-1,i=t.length;++r<i;){var s=t[r],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?H(n,s,l):W(n,s,l)}return n},$=function(e){return e},G=Math.max,K=function(e){return function(){return e}},J=B?function(e,t){return B(e,"toString",{configurable:!0,enumerable:!1,value:K(t),writable:!0})}:$,X=Date.now,Q=function(e){var t=0,n=0;return function(){var o=X(),a=16-(o-n);if(n=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(J),Z=function(e,t){return Q(function(e,t,n){return t=G(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,r=G(o.length-t,0),i=Array(r);++a<r;)i[a]=o[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=o[a];return s[t]=n(i),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,$),e+"")},ee=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},te=function(e){return null!=e&&ee(e.length)&&!C(e)},ne=/^(?:0|[1-9]\d*)$/,oe=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ne.test(e))&&e>-1&&e%1==0&&e<t},ae=function(e){return Z((function(t,n){var o=-1,a=n.length,r=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(a--,r):void 0,i&&function(e,t,n){if(!_(n))return!1;var o=typeof t;return!!("number"==o?te(n)&&oe(t,n.length):"string"==o&&t in n)&&V(n[t],e)}(n[0],n[1],i)&&(r=a<3?void 0:r,a=1),t=Object(t);++o<a;){var s=n[o];s&&e(t,s,o,r)}return t}))},re=function(e){return null!=e&&"object"==typeof e},ie=function(e){return re(e)&&"[object Arguments]"==T(e)},se=Object.prototype,le=se.hasOwnProperty,ce=se.propertyIsEnumerable,de=ie(function(){return arguments}())?ie:function(e){return re(e)&&le.call(e,"callee")&&!ce.call(e,"callee")},ue=Array.isArray,pe=n(4),he={};he["[object Float32Array]"]=he["[object Float64Array]"]=he["[object Int8Array]"]=he["[object Int16Array]"]=he["[object Int32Array]"]=he["[object Uint8Array]"]=he["[object Uint8ClampedArray]"]=he["[object Uint16Array]"]=he["[object Uint32Array]"]=!0,he["[object Arguments]"]=he["[object Array]"]=he["[object ArrayBuffer]"]=he["[object Boolean]"]=he["[object DataView]"]=he["[object Date]"]=he["[object Error]"]=he["[object Function]"]=he["[object Map]"]=he["[object Number]"]=he["[object Object]"]=he["[object RegExp]"]=he["[object Set]"]=he["[object String]"]=he["[object WeakMap]"]=!1;var me=function(e){return function(t){return e(t)}},fe=n(5),ge=fe.a&&fe.a.isTypedArray,ve=ge?me(ge):function(e){return re(e)&&ee(e.length)&&!!he[T(e)]},_e=Object.prototype.hasOwnProperty,be=function(e,t){var n=ue(e),o=!n&&de(e),a=!n&&!o&&Object(pe.a)(e),r=!n&&!o&&!a&&ve(e),i=n||o||a||r,s=i?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],l=s.length;for(var c in e)!t&&!_e.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oe(c,l))||s.push(c);return s},ye=Object.prototype,we=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ye)},ke=Object.prototype.hasOwnProperty,xe=function(e){if(!_(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=we(e),n=[];for(var o in e)("constructor"!=o||!t&&ke.call(e,o))&&n.push(o);return n},Ee=function(e){return te(e)?be(e,!0):xe(e)},Se=ae((function(e,t){q(t,Ee(t),e)}));const Me=Symbol("observableProperties"),Te=Symbol("boundObservables"),Ce=Symbol("boundProperties"),Ae=Symbol("decoratedMethods"),De=Symbol("decoratedOriginal"),Pe={set(e,t){if(_(e))return void Object.keys(e).forEach((t=>{this.set(t,e[t])}),this);Ne(this);const n=this[Me];if(e in this&&!n.has(e))throw new s.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>n.get(e),set(t){const o=n.get(e);let a=this.fire("set:"+e,e,t,o);void 0===a&&(a=t),o===a&&n.has(e)||(n.set(e,a),this.fire("change:"+e,e,a,o))}}),this[e]=t},bind(...e){if(!e.length||!Re(e))throw new s.a("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new s.a("observable-bind-duplicate-properties",this);Ne(this);const t=this[Ce];e.forEach((e=>{if(t.has(e))throw new s.a("observable-bind-rebind",this)}));const n=new Map;return e.forEach((e=>{const o={property:e,to:[]};t.set(e,o),n.set(e,o)})),{to:Ie,toMany:Oe,_observable:this,_bindProperties:e,_to:[],_bindings:n}},unbind(...e){if(!this[Me])return;const t=this[Ce],n=this[Te];if(e.length){if(!Re(e))throw new s.a("observable-unbind-wrong-properties",this);e.forEach((e=>{const o=t.get(e);if(!o)return;let a,r,i,s;o.to.forEach((e=>{a=e[0],r=e[1],i=n.get(a),s=i[r],s.delete(o),s.size||delete i[r],Object.keys(i).length||(n.delete(a),this.stopListening(a,"change"))})),t.delete(e)}))}else n.forEach(((e,t)=>{this.stopListening(t,"change")})),n.clear(),t.clear()},decorate(e){const t=this[e];if(!t)throw new s.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,((e,n)=>{e.return=t.apply(this,n)})),this[e]=function(...t){return this.fire(e,t)},this[e][De]=t,this[Ae]||(this[Ae]=[]),this[Ae].push(e)}};Se(Pe,d),Pe.stopListening=function(e,t,n){if(!e&&this[Ae]){for(const e of this[Ae])this[e]=this[e][De];delete this[Ae]}d.stopListening.call(this,e,t,n)};var Le=Pe;function Ne(e){e[Me]||(Object.defineProperty(e,Me,{value:new Map}),Object.defineProperty(e,Te,{value:new Map}),Object.defineProperty(e,Ce,{value:new Map}))}function Ie(...e){const t=function(...e){if(!e.length)throw new s.a("observable-bind-to-parse-error",null);const t={to:[]};let n;return"function"==typeof e[e.length-1]&&(t.callback=e.pop()),e.forEach((e=>{if("string"==typeof e)n.properties.push(e);else{if("object"!=typeof e)throw new s.a("observable-bind-to-parse-error",null);n={observable:e,properties:[]},t.to.push(n)}})),t}(...e),n=Array.from(this._bindings.keys()),o=n.length;if(!t.callback&&t.to.length>1)throw new s.a("observable-bind-to-no-callback",this);if(o>1&&t.callback)throw new s.a("observable-bind-to-extra-callback",this);var a;t.to.forEach((e=>{if(e.properties.length&&e.properties.length!==o)throw new s.a("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)})),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),a=this._observable,this._to.forEach((e=>{const t=a[Te];let n;t.get(e.observable)||a.listenTo(e.observable,"change",((o,r)=>{n=t.get(e.observable)[r],n&&n.forEach((e=>{Fe(a,e.property)}))}))})),function(e){let t;e._bindings.forEach(((n,o)=>{e._to.forEach((a=>{t=a.properties[n.callback?0:e._bindProperties.indexOf(o)],n.to.push([a.observable,t]),function(e,t,n,o){const a=e[Te],r=a.get(n),i=r||{};i[o]||(i[o]=new Set),i[o].add(t),r||a.set(n,i)}(e._observable,n,a.observable,t)}))}))}(this),this._bindProperties.forEach((e=>{Fe(this._observable,e)}))}function Oe(e,t,n){if(this._bindings.size>1)throw new s.a("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const n=e.map((e=>[e,t]));return Array.prototype.concat.apply([],n)}(e,t),n)}function Re(e){return e.every((e=>"string"==typeof e))}function Fe(e,t){const n=e[Ce].get(t);let o;n.callback?o=n.callback.apply(e,n.to.map((e=>e[0][e[1]]))):(o=n.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=o:e.set(t,o)}function je(e,...t){t.forEach((t=>{Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((n=>{if(n in e.prototype)return;const o=Object.getOwnPropertyDescriptor(t,n);o.enumerable=!1,Object.defineProperty(e.prototype,n,o)}))}))}class Ye{constructor(e){this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",ze,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",ze),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function ze(e){e.return=!1,e.stop()}je(Ye,Le);class Be{constructor(e){this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(e=>{this.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(e,"change:isReadOnly",((e,t,n)=>{n&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",He,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",He),this.refresh())}execute(){}destroy(){this.stopListening()}}function He(e){e.return=!1,e.stop()}je(Be,Le);class Ve extends Be{constructor(e){super(e),this._childCommands=[]}refresh(){}execute(...e){const t=this._getFirstEnabledCommand ();return null!=t&&t.execute(e)}registerChildCommand (e){this._childCommands.push(e),e.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand ()}_getFirstEnabledCommand (){return this._childCommands.find((e=>e.isEnabled))}}var Ue=function(e,t){return function(n){return e(t(n))}},We=Ue(Object.getPrototypeOf,Object),qe=Function.prototype,$e=Object.prototype,Ge=qe.toString,Ke=$e.hasOwnProperty,Je=Ge.call(Object),Xe=function(e){if(!re(e)||"[object Object]"!=T(e))return!1;var t=We(e);if(null===t)return!0;var n=Ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ge.call(n)==Je},Qe=function(e,t){for(var n=e.length;n--;)if(V(e[n][0],t))return n;return-1},Ze=Array.prototype.splice;function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}et.prototype.clear=function(){this.__data__=[],this.size=0},et.prototype.delete=function(e){var t=this.__data__,n=Qe(t,e);return!(n<0||(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,0))},et.prototype.get=function(e){var t=this.__data__,n=Qe(t,e);return n<0?void 0:t[n][1]},et.prototype.has=function(e){return Qe(this.__data__,e)>-1},et.prototype.set=function(e,t){var n=this.__data__,o=Qe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var tt=et,nt=z(b.a,"Map"),ot=z(Object,"create"),at=Object.prototype.hasOwnProperty,rt=Object.prototype.hasOwnProperty;function it(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}it.prototype.clear=function(){this.__data__=ot?ot(null):{},this.size=0},it.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},it.prototype.get=function(e){var t=this.__data__;if(ot){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return at.call(t,e)?t[e]:void 0},it.prototype.has=function(e){var t=this.__data__;return ot?void 0!==t[e]:rt.call(t,e)},it.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ot&&void 0===t?"__lodash_hash_undefined__":t,this};var st=it,lt=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function ct(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ct.prototype.clear=function(){this.size=0,this.__data__={hash:new st,map:new(nt||tt),string:new st}},ct.prototype.delete=function(e){var t=lt(this,e).delete(e);return this.size-=t?1:0,t},ct.prototype.get=function(e){return lt(this,e).get(e)},ct.prototype.has=function(e){return lt(this,e).has(e)},ct.prototype.set=function(e,t){var n=lt(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};var dt=ct;function ut(e){var t=this.__data__=new tt(e);this.size=t.size}ut.prototype.clear=function(){this.__data__=new tt,this.size=0},ut.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ut.prototype.get=function(e){return this.__data__.get(e)},ut.prototype.has=function(e){return this.__data__.has(e)},ut.prototype.set=function(e,t){var n=this.__data__;if(n instanceof tt){var o=n.__data__;if(!nt||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(o)}return n.set(e,t),this.size=n.size,this};var pt=ut,ht=Ue(Object.keys,Object),mt=Object.prototype.hasOwnProperty,ft=function(e){return te(e)?be(e):function(e){if(!we(e))return ht(e);var t=[];for(var n in Object(e))mt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},gt=n(9),vt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t},_t=function(){return[]},bt=Object.prototype.propertyIsEnumerable,yt=Object.getOwnPropertySymbols,wt=yt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,a=0,r=[];++n<o;){var i=e[n];t(i,n,e)&&(r[a++]=i)}return r}(yt(e),(function(t){return bt.call(e,t)})))}:_t,kt=function(e,t){for(var n=-1,o=t.length,a=e.length;++n<o;)e[a+n]=t[n];return e},xt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)kt(t,wt(e)),e=We(e);return t}:_t,Et=function(e,t,n){var o=t(e);return ue(e)?o:kt(o,n(e))},St=function(e){return Et(e,ft,wt)},Mt=function(e){return Et(e,Ee,xt)},Tt=z(b.a,"DataView"),Ct=z(b.a,"Promise"),At=z(b.a,"Set"),Dt=z(b.a,"WeakMap"),Pt=L(Tt),Lt=L(nt),Nt=L(Ct),It=L(At),Ot=L(Dt),Rt=T;(Tt&&"[object DataView]"!=Rt(new Tt(new ArrayBuffer(1)))||nt&&"[object Map]"!=Rt(new nt)||Ct&&"[object Promise]"!=Rt(Ct.resolve())||At&&"[object Set]"!=Rt(new At)||Dt&&"[object WeakMap]"!=Rt(new Dt))&&(Rt=function(e){var t=T(e),n="[object Object]"==t?e.constructor:void 0,o=n?L(n):"";if(o)switch(o){case Pt:return"[object DataView]";case Lt:return"[object Map]";case Nt:return"[object Promise]";case It:return"[object Set]";case Ot:return"[object WeakMap]"}return t});var Ft=Rt,jt=Object.prototype.hasOwnProperty,Yt=b.a.Uint8Array,zt=function(e){var t=new e.constructor(e.byteLength);return new Yt(t).set(new Yt(e)),t},Bt=/\w*$/,Ht=y?y.prototype:void 0,Vt=Ht?Ht.valueOf:void 0,Ut=function(e,t){var n=t?zt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Wt=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return zt(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?zt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ut(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Bt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return Vt?Object(Vt.call(e)):{}}(e)}},qt=Object.create,$t=function(){function e(){}return function(t){if(!_(t))return{};if(qt)return qt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Gt=function(e){return"function"!=typeof e.constructor||we(e)?{}:$t(We(e))},Kt=fe.a&&fe.a.isMap,Jt=Kt?me(Kt):function(e){return re(e)&&"[object Map]"==Ft(e)},Xt=fe.a&&fe.a.isSet,Qt=Xt?me(Xt):function(e){return re(e)&&"[object Set]"==Ft(e)},Zt={};Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object DataView]"]=Zt["[object Boolean]"]=Zt["[object Date]"]=Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object Symbol]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object WeakMap]"]=!1;var en=function e(t,n,o,a,r,i){var s,l=1&n,c=2&n,d=4&n;if(o&&(s=r?o(t,a,r,i):o(t)),void 0!==s)return s;if(!_(t))return t;var u=ue(t);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&jt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return vt(t,s)}else{var p=Ft(t),h="[object Function]"==p||"[object GeneratorFunction]"==p;if(Object(pe.a)(t))return Object(gt.a)(t,l);if("[object Object]"==p||"[object Arguments]"==p||h&&!r){if(s=c||h?{}:Gt(t),!l)return c?function(e,t){return q(e,xt(e),t)}(t,function(e,t){return e&&q(t,Ee(t),e)}(s,t)):function(e,t){return q(e,wt(e),t)}(t,function(e,t){return e&&q(t,ft(t),e)}(s,t))}else{if(!Zt[p])return r?t:{};s=Wt(t,p,l)}}i||(i=new pt);var m=i.get(t);if(m)return m;i.set(t,s),Qt(t)?t.forEach((function(a){s.add(e(a,n,o,a,t,i))})):Jt(t)&&t.forEach((function(a,r){s.set(r,e(a,n,o,r,t,i))}));var f=u?void 0:(d?c?Mt:St:c?Ee:ft)(t);return function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););}(f||t,(function(a,r){f&&(a=t[r=a]),W(s,r,e(a,n,o,r,t,i))})),s},tn=function(e,t){return en(e,5,t="function"==typeof t?t:void 0)},nn=function(e){return re(e)&&1===e.nodeType&&!Xe(e)};class on{constructor(e,t){this._config={},t&&this.define(an(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,n,o=!1){if(Xe(t))return void this._setObjectToTarget(e,t,o);const a=t.split(".");t=a.pop();for(const t of a)Xe(e[t])||(e[t]={}),e=e[t];if(Xe(n))return Xe(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,o);o&&void 0!==e[t]||(e[t]=n)}_getFromSource(e,t){const n=t.split(".");t=n.pop();for(const t of n){if(!Xe(e[t])){e=null;break}e=e[t]}return e?an(e[t]):void 0}_setObjectToTarget(e,t,n){Object.keys(t).forEach((o=>{this._setToTarget(e,o,t[o],n)}))}}function an(e){return tn(e,rn)}function rn(e){return nn(e)?e:void 0}function sn(e){return!(!e||!e[Symbol.iterator])}class ln{constructor(e={},t={}){const n=sn(e);if(n||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const t of e)this._items.push(t),this._itemMap.set(this._getItemIdBeforeAdding(t),t)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new s.a("collection-add-item-invalid-index",this);for(let n=0;n<e.length;n++){const o=e[n],a=this._getItemIdBeforeAdding(o),r=t+n;this._items.splice(r,0,o),this._itemMap.set(a,o),this.fire("add",o,r)}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new s.a("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{const t=e[this._idProperty];return this._itemMap.has(t)}}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}remove(e){const[t,n]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:n}),t}map(e,t){return this._items.map(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new s.a("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding((t=>new e(t)))},using:e=>{"function"==typeof e?this._setUpBindToBinding((t=>e(t))):this._setUpBindToBinding((t=>t[e]))}}}_setUpBindToBinding(e){const t=this._bindToCollection,n=(n,o,a)=>{const r=t._bindToCollection==this,i=t._bindToInternalToExternalMap.get(o);if(r&&i)this._bindToExternalToInternalMap.set(o,i),this._bindToInternalToExternalMap.set(i,o);else{const n=e(o);if(!n)return void this._skippedIndexesFromExternal.push(a);let r=a;for(const e of this._skippedIndexesFromExternal)a>e&&r--;for(const e of t._skippedIndexesFromExternal)r>=e&&r++;this._bindToExternalToInternalMap.set(o,n),this._bindToInternalToExternalMap.set(n,o),this.add(n,r);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)r<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const e of t)n(0,e,t.getIndex(e));this.listenTo(t,"add",n),this.listenTo(t,"remove",((e,t,n)=>{const o=this._bindToExternalToInternalMap.get(t);o&&this.remove(o),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((e,t)=>(n<t&&e.push(t-1),n>t&&e.push(t),e)),[])}))}_getItemIdBeforeAdding(e){const t=this._idProperty;let n;if(t in e){if(n=e[t],"string"!=typeof n)throw new s.a("collection-add-invalid-id",this);if(this.get(n))throw new s.a("collection-add-item-already-exists",this)}else e[t]=n=r();return n}_remove(e){let t,n,o,a=!1;const r=this._idProperty;if("string"==typeof e?(n=e,o=this._itemMap.get(n),a=!o,o&&(t=this._items.indexOf(o))):"number"==typeof e?(t=e,o=this._items[t],a=!o,o&&(n=o[r])):(o=e,n=o[r],t=this._items.indexOf(o),a=-1==t||!this._itemMap.get(n)),a)throw new s.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);const i=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(i),this.fire("remove",o,t),[o,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}je(ln,d);class cn{constructor(e,t=[],n=[]){this._context=e,this._plugins=new Map,this._availablePlugins=new Map;for(const e of t)e.pluginName&&this._availablePlugins.set(e.pluginName,e);this._contextPlugins=new Map;for(const[e,t]of n)this._contextPlugins.set(e,t),this._contextPlugins.set(t,e),e.pluginName&&this._availablePlugins.set(e.pluginName,e)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new s.a("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],n=[]){const o=this,a=this._context;!function e(t,n=new Set){t.forEach((t=>{l(t)&&(n.has(t)||(n.add(t),t.pluginName&&!o._availablePlugins.has(t.pluginName)&&o._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,n)))}))}(e),p(e);const r=[...function e(t,n=new Set){return t.map((e=>l(e)?e:o._availablePlugins.get(e))).reduce(((t,o)=>n.has(o)?t:(n.add(o),o.requires&&(p(o.requires,o),e(o.requires,n).forEach((e=>t.add(e)))),t.add(o))),new Set)}(e.filter((e=>!d(e,t))))];!function(e,t){for(const n of t){if("function"!=typeof n)throw new s.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const t=n.pluginName;if(!t)throw new s.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new s.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const a=o._availablePlugins.get(t);if(!a)throw new s.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const r=e.indexOf(a);if(-1===r){if(o._contextPlugins.has(a))return;throw new s.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(a.requires&&a.requires.length)throw new s.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(r,1,n),o._availablePlugins.set(t,n)}}(r,n);const i=function(e){return e.map((e=>{const t=o._contextPlugins.get(e)||new e(a);return o._add(e,t),t}))}(r);return h(i,"init").then((()=>h(i,"afterInit"))).then((()=>i));function l(e){return"function"==typeof e}function c(e){return l(e)&&e.isContextPlugin}function d(e,t){return t.some((t=>t===e||u(e)===t||u(t)===e))}function u(e){return l(e)?e.pluginName||e.name:e}function p(e,n=null){e.map((e=>l(e)?e:o._availablePlugins.get(e)||e)).forEach((e=>{!function(e,t){if(!l(e)){if(t)throw new s.a("plugincollection-soft-required",a,{missingPlugin:e,requiredBy:u(t)});throw new s.a("plugincollection-plugin-not-found",a,{plugin:e})}}(e,n),function(e,t){if(c(t)&&!c(e))throw new s.a("plugincollection-context-required",a,{plugin:u(e),requiredBy:u(t)})}(e,n),function(e,n){if(n&&d(e,t))throw new s.a("plugincollection-required",a,{plugin:u(e),requiredBy:u(n)})}(e,n)}))}function h(e,t){return e.reduce(((e,n)=>n[t]?o._contextPlugins.has(n)?e:e.then(n[t].bind(n)):e),Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const n=e.pluginName;if(n){if(this._plugins.has(n))throw new s.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}function dn(e){return Array.isArray(e)?e:[e]}je(cn,d),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});const un=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function pn(e){return un.includes(e)?"rtl":"ltr"}class hn{constructor(e={}){this.uiLanguage=e.uiLanguage||"en",this.contentLanguage=e.contentLanguage||this.uiLanguage,this.uiLanguageDirection=pn(this.uiLanguage),this.contentLanguageDirection=pn(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(e,t=[]){t=dn(t),"string"==typeof e&&(e={string:e});const n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,((e,n)=>n<t.length?t[n]:e))}(function(e,t,n=1){if("number"!=typeof n)throw new s.a("translation-service-quantity-not-a-number",null,{quantity:n});const o=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===o&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const a=t.id||t.string;if(0===o||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,a))return 1!==n?t.plural:t.string;const r=window.CKEDITOR_TRANSLATIONS[e].dictionary,i=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>1===e?0:1);if("string"==typeof r[a])return r[a];const l=Number(i(n));return r[a][l]}(this.uiLanguage,e,n),t)}}class mn{constructor(e){this.config=new on(e,this.constructor.defaultConfig);const t=this.constructor.builtinPlugins;this.config.define("plugins",t),this.plugins=new cn(this,t);const n=this.config.get("language")||{};this.locale=new hn({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new ln,this._contextOwner=null}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const n of e.concat(t)){if("function"!=typeof n)throw new s.a("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new s.a("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,(e=>e.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(e,t){if(this._contextOwner)throw new s.a("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise((t=>{const n=new this(e);t(n.initPlugins().then((()=>n)))}))}}class fn{constructor(e){this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}function gn(e,t){const n=Math.min(e.length,t.length);for(let o=0;o<n;o++)if(e[o]!=t[o])return o;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}je(fn,Le);var vn=function(e){return en(e,4)};class _n{constructor(e){this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new s.a("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t),o=e.getAncestors(t);let a=0;for(;n[a]==o[a]&&n[a];)a++;return 0===a?null:n[a-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),o=gn(t,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return t[o]<n[o]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=vn(this);return delete e.parent,e}is(e){return"node"===e||"view:node"===e}}je(_n,d);class bn extends _n{constructor(e,t){super(e),this._textData=t}is(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof bn&&(this===e||this.data===e.data)}_clone(){return new bn(this.document,this.data)}}class yn{constructor(e,t,n){if(this.textNode=e,t<0||t>e.data.length)throw new s.a("view-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.data.length)throw new s.a("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this.textNode:this.parent;for(;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}function wn(e){return sn(e)?new Map(e):function(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}(e)}class kn{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(const t of e)for(const e of this._patterns){const n=xn(t,e);if(n)return{element:t,pattern:e,match:n}}return null}matchAll(...e){const t=[];for(const n of e)for(const e of this._patterns){const o=xn(n,e);o&&t.push({element:n,pattern:e,match:o})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function xn(e,t){if("function"==typeof t)return t(e);const n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?!!t.match(e):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){const n=new Set(t.getAttributeKeys());return Xe(e)?(void 0!==e.style&&Object(s.b)("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&Object(s.b)("matcher-pattern-deprecated-attributes-class-key",e)):(n.delete("style"),n.delete("class")),En(e,n,(e=>t.getAttribute(e)))}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){return En(e,t.getClassNames())}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){return En(e,t.getStyleNames(!0),(e=>t.getStyle(e)))}(t.styles,e),!n.styles))&&n}function En(e,t,n){const o=function(e){return Array.isArray(e)?e.map((e=>Xe(e)?(void 0!==e.key&&void 0!==e.value||Object(s.b)("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0])):Xe(e)?Object.entries(e):[[e,!0]]}(e),a=Array.from(t),r=[];return o.forEach((([e,t])=>{a.forEach((o=>{(function(e,t){return!0===e||e===t||e instanceof RegExp&&t.match(e)})(e,o)&&function(e,t,n){if(!0===e)return!0;const o=n(t);return e===o||e instanceof RegExp&&!!String(o).match(e)}(t,o,n)&&r.push(o)}))})),!o.length||r.length<o.length?null:r}var Sn=function(e){return"symbol"==typeof e||re(e)&&"[object Symbol]"==T(e)},Mn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/;function Cn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],r=n.cache;if(r.has(a))return r.get(a);var i=e.apply(this,o);return n.cache=r.set(a,i)||r,i};return n.cache=new(Cn.Cache||dt),n}Cn.Cache=dt;var An=Cn,Dn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pn=/\\(\\)?/g,Ln=function(){var e=An((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Dn,(function(e,n,o,a){t.push(o?a.replace(Pn,"$1"):n||e)})),t}),(function(e){return 500===t.size&&t.clear(),e})),t=e.cache;return e}(),Nn=y?y.prototype:void 0,In=Nn?Nn.toString:void 0,On=function e(t){if("string"==typeof t)return t;if(ue(t))return function(e,t){for(var n=-1,o=null==e?0:e.length,a=Array(o);++n<o;)a[n]=t(e[n],n,e);return a}(t,e)+"";if(Sn(t))return In?In.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Rn=function(e){return null==e?"":On(e)},Fn=function(e,t){return ue(e)?e:function(e,t){if(ue(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Sn(e))||Tn.test(e)||!Mn.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Ln(Rn(e))},jn=function(e){if("string"==typeof e||Sn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Yn=function(e,t){for(var n=0,o=(t=Fn(t,e)).length;null!=e&&n<o;)e=e[jn(t[n++])];return n&&n==o?e:void 0},zn=function(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++o<a;)r[o]=e[o+t];return r},Bn=function(e,t){return null==(e=function(e,t){return t.length<2?e:Yn(e,zn(t,0,-1))}(e,t=Fn(t,e)))||delete e[jn(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},Hn=function(e,t,n){var o=null==e?void 0:Yn(e,t);return void 0===o?n:o},Vn=function(e,t,n){(void 0!==n&&!V(e[t],n)||void 0===n&&!(t in e))&&H(e,t,n)},Un=function(e,t,n){for(var o=-1,a=Object(e),r=n(e),i=r.length;i--;){var s=r[++o];if(!1===t(a[s],s,a))break}return e},Wn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},qn=function(e,t,n,o,a,r,i){var s=Wn(e,n),l=Wn(t,n),c=i.get(l);if(c)Vn(e,n,c);else{var d=r?r(s,l,n+"",e,t,i):void 0,u=void 0===d;if(u){var p=ue(l),h=!p&&Object(pe.a)(l),m=!p&&!h&&ve(l);d=l,p||h||m?ue(s)?d=s:function(e){return re(e)&&te(e)}(s)?d=vt(s):h?(u=!1,d=Object(gt.a)(l,!0)):m?(u=!1,d=Ut(l,!0)):d=[]:Xe(l)||de(l)?(d=s,de(s)?d=function(e){return q(e,Ee(e))}(s):_(s)&&!C(s)||(d=Gt(l))):u=!1}u&&(i.set(l,d),a(d,l,o,r,i),i.delete(l)),Vn(e,n,d)}},$n=function e(t,n,o,a,r){t!==n&&Un(n,(function(i,s){if(r||(r=new pt),_(i))qn(t,n,s,o,e,a,r);else{var l=a?a(Wn(t,s),i,s+"",t,n,r):void 0;void 0===l&&(l=i),Vn(t,s,l)}}),Ee)},Gn=ae((function(e,t,n){$n(e,t,n)})),Kn=function(e,t,n){return null==e?e:function(e,t,n,o){if(!_(e))return e;for(var a=-1,r=(t=Fn(t,e)).length,i=r-1,s=e;null!=s&&++a<r;){var l=jn(t[a]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(a!=i){var d=s[l];void 0===(c=o?o(d,l,s):void 0)&&(c=_(d)?d:oe(t[a+1])?[]:{})}W(s,l,c),s=s[l]}return e}(e,t,n)};class Jn{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){const e=Object.entries(this._styles);return!Array.from(e).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=Array.from(function(e){let t=null,n=0,o=0,a=null;const r=new Map;if(""===e)return r;";"!=e.charAt(e.length-1)&&(e+=";");for(let i=0;i<e.length;i++){const s=e.charAt(i);if(null===t)switch(s){case":":a||(a=e.substr(n,i-n),o=i+1);break;case'"':case"'":t=s;break;case";":{const t=e.substr(o,i-o);a&&r.set(a.trim(),t.trim()),a=null,n=i+1;break}}else s===t&&(t=null)}return r}(e).entries());for(const[e,n]of t)this._styleProcessor.toNormalizedForm(e,n,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find((([t])=>t===e));return Array.isArray(t)}set(e,t){if(_(e))for(const[t,n]of Object.entries(e))this._styleProcessor.toNormalizedForm(t,n,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=Qn(e);(function(e,t){null==e||Bn(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((e=>e.join(":"))).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!_(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find((([t])=>t===e));return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map((([e])=>e))}clear(){this._styles={}}_getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const n of t)e.push(...this._styleProcessor.getReducedForm(n,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const n=t.splice(0,t.length-1).join("."),o=Hn(this._styles,n);o&&!Array.from(Object.keys(o)).length&&this.remove(n)}}class Xn{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,n){if(_(t))Zn(n,Qn(e),t);else if(this._normalizers.has(e)){const o=this._normalizers.get(e),{path:a,value:r}=o(t);Zn(n,a,r)}else Zn(n,e,t)}getNormalized(e,t){if(!e)return Gn({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const n=this._extractors.get(e);if("string"==typeof n)return Hn(t,n);const o=n(e,t);if(o)return o}return Hn(t,Qn(e))}getReducedForm(e,t){const n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter((t=>{const n=this.getNormalized(t,e);return n&&"object"==typeof n?Object.keys(n).length:n})),n=new Set([...t,...Object.keys(e)]);return Array.from(n.values())}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const n of t)this._mapStyleNames(n,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function Qn(e){return e.replace("-",".")}function Zn(e,t,n){let o=n;_(n)&&(o=Gn({},Hn(e,t),n)),Kn(e,t,o)}class eo extends _n{constructor(e,t,n,o){if(super(e),this.name=t,this._attrs=function(e){e=wn(e);for(const[t,n]of e)null===n?e.delete(t):"string"!=typeof n&&e.set(t,String(n));return e}(n),this._children=[],o&&this._insertChild(0,o),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");to(this._classes,e),this._attrs.delete("class")}this._styles=new Jn(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._isAllowedInsideAttributeElement=!1,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}is(e,t=null){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof eo))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this.isAllowedInsideAttributeElement!=e.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,n]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==n)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(const t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e=!1){return this._styles.getStyleNames(e)}hasStyle(...e){for(const t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new kn(...e);let n=this.parent;for(;n;){if(t.match(n))return n;n=n.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((e=>`${e[0]}="${e[1]}"`)).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==n?"":" "+n)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){const t=[];if(e)for(const n of this.getChildren())t.push(n._clone(e));const n=new this.constructor(this.document,this.name,this._attrs,t);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,n}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let n=0;const o=function(e,t){return"string"==typeof t?[new bn(e,t)]:(sn(t)||(t=[t]),Array.from(t).map((t=>"string"==typeof t?new bn(e,t):t instanceof yn?new bn(e,t.data):t)))}(this.document,t);for(const t of o)null!==t.parent&&t._remove(),t.parent=this,t.document=this.document,this._children.splice(e,0,t),e++,n++;return n}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?to(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this);for(const t of dn(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of dn(e))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this);for(const t of dn(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function to(e,t){const n=t.split(/\s+/);e.clear(),n.forEach((t=>e.add(t)))}class no extends eo{constructor(e,t,n,o){super(e,t,n,o),this.getFillerOffset=oo}is(e,t=null){return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}function oo(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const t of e)if(!t.is("uiElement"))return null;return this.childCount}class ao extends no{constructor(e,t,n,o){super(e,t,n,o),this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(e),this.bind("isFocused").to(e,"isFocused",(t=>t&&e.selection.editableElement==this)),this.listenTo(e.selection,"change",(()=>{this.isFocused=e.isFocused&&e.selection.editableElement==this}))}is(e,t=null){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}destroy(){this.stopListening()}}je(ao,Le);const ro=Symbol("rootName");class io extends ao{constructor(e,t){super(e,t),this.rootName="main"}is(e,t=null){return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}get rootName(){return this.getCustomProperty(ro)}set rootName(e){this._setCustomProperty(ro,e)}set _name(e){this.name=e}}class so{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new s.a("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new s.a("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=lo._createAt(e.startPosition):this.position=lo._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(e){let t,n,o;do{o=this.position,({done:t,value:n}=this.next())}while(!t&&e(n));t||(this.position=o)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,n=e.parent;if(null===n.parent&&e.offset===n.childCount)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};let o;if(n instanceof bn){if(e.isAtEnd)return this.position=lo._createAfter(n),this._next();o=n.data[e.offset]}else o=n.getChild(e.offset);if(o instanceof eo)return this.shallow?e.offset++:e=new lo(o,0),this.position=e,this._formatReturnValue("elementStart",o,t,e,1);if(o instanceof bn){if(this.singleCharacters)return e=new lo(o,0),this.position=e,this._next();{let n,a=o.data.length;return o==this._boundaryEndParent?(a=this.boundaries.end.offset,n=new yn(o,0,a),e=lo._createAfter(n)):(n=new yn(o,0,o.data.length),e.offset++),this.position=e,this._formatReturnValue("text",n,t,e,a)}}if("string"==typeof o){let o;o=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-e.offset;const a=new yn(n,e.offset,o);return e.offset+=o,this.position=e,this._formatReturnValue("text",a,t,e,o)}return e=lo._createAfter(n),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,t,e)}_previous(){let e=this.position.clone();const t=this.position,n=e.parent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};let o;if(n instanceof bn){if(e.isAtStart)return this.position=lo._createBefore(n),this._previous();o=n.data[e.offset-1]}else o=n.getChild(e.offset-1);if(o instanceof eo)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",o,t,e,1)):(e=new lo(o,o.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",o,t,e));if(o instanceof bn){if(this.singleCharacters)return e=new lo(o,o.data.length),this.position=e,this._previous();{let n,a=o.data.length;if(o==this._boundaryStartParent){const t=this.boundaries.start.offset;n=new yn(o,t,o.data.length-t),a=n.data.length,e=lo._createBefore(n)}else n=new yn(o,0,o.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",n,t,e,a)}}if("string"==typeof o){let o;if(this.singleCharacters)o=1;else{const t=n===this._boundaryStartParent?this.boundaries.start.offset:0;o=e.offset-t}e.offset-=o;const a=new yn(n,e.offset,o);return this.position=e,this._formatReturnValue("text",a,t,e,o)}return e=lo._createBefore(n),this.position=e,this._formatReturnValue("elementStart",n,t,e,1)}_formatReturnValue(e,t,n,o,a){return t instanceof yn&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=lo._createAfter(t.textNode):(o=lo._createAfter(t.textNode),this.position=o)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=lo._createBefore(t.textNode):(o=lo._createBefore(t.textNode),this.position=o))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:o,length:a}}}}class lo{constructor(e,t){this.parent=e,this.offset=t}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof ao);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=lo._createAt(this),n=t.offset+e;return t.offset=n<0?0:n,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new so(t);return n.skip(e),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let o=0;for(;t[o]==n[o]&&t[o];)o++;return 0===o?null:t[o-1]}is(e){return"position"===e||"view:position"===e}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);const o=gn(t,n);switch(o){case"prefix":return"before";case"extension":return"after";default:return t[o]<n[o]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new so(e)}clone(){return new lo(this.parent,this.offset)}static _createAt(e,t){if(e instanceof lo)return new this(e.parent,e.offset);{const n=e;if("end"==t)t=n.is("$text")?n.data.length:n.childCount;else{if("before"==t)return this._createBefore(n);if("after"==t)return this._createAfter(n);if(0!==t&&!t)throw new s.a("view-createpositionat-offset-required",n)}return new lo(n,t)}}static _createAfter(e){if(e.is("$textProxy"))return new lo(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new s.a("view-position-after-root",e,{root:e});return new lo(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new lo(e.textNode,e.offsetInText);if(!e.parent)throw new s.a("view-position-before-root",e,{root:e});return new lo(e.parent,e.index)}}class co{constructor(e,t=null){this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new so({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let e=this.start.getLastMatchingPosition(uo,{direction:"backward"}),t=this.end.getLastMatchingPosition(uo);return e.parent.is("$text")&&e.isAtStart&&(e=lo._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=lo._createAfter(t.parent)),new co(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(uo);if(e.isAfter(this.end)||e.isEqual(this.end))return new co(e,e);let t=this.end.getLastMatchingPosition(uo,{direction:"backward"});const n=e.nodeAfter,o=t.nodeBefore;return n&&n.is("$text")&&(e=new lo(n,0)),o&&o.is("$text")&&(t=new lo(o,o.data.length)),new co(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),o=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&o}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new co(this.start,e.start)),this.containsPosition(e.end)&&t.push(new co(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new co(t,n)}return null}getWalker(e={}){return e.boundaries=this,new so(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new co(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new so(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new so(e);yield t.position;for(const e of t)yield e.nextPosition}is(e){return"range"===e||"view:range"===e}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,n,o){return new this(new lo(e,t),new lo(n,o))}static _createFromPositionAndShift(e,t){const n=e,o=e.getShiftedBy(t);return t>0?new this(n,o):new this(o,n)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(lo._createBefore(e),t)}}function uo(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function po(e){let t=0;for(const n of e)t++;return t}class ho{constructor(e=null,t,n){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(e,t,n)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const o of e._ranges)if(t.isEqual(o)){n=!0;break}if(!n)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=po(this.getRanges());if(t!=po(e.getRanges()))return!1;if(0==t)return!0;for(let t of this.getRanges()){t=t.getTrimmed();let n=!1;for(let o of e.getRanges())if(o=o.getTrimmed(),t.start.isEqual(o.start)&&t.end.isEqual(o.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(e,t,n){if(null===e)this._setRanges([]),this._setFakeOptions(t);else if(e instanceof ho||e instanceof mo)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof co)this._setRanges([e],t&&t.backward),this._setFakeOptions(t);else if(e instanceof lo)this._setRanges([new co(e)]),this._setFakeOptions(t);else if(e instanceof _n){const o=!!n&&!!n.backward;let a;if(void 0===t)throw new s.a("view-selection-setto-required-second-parameter",this);a="in"==t?co._createIn(e):"on"==t?co._createOn(e):new co(lo._createAt(e,t)),this._setRanges([a],o),this._setFakeOptions(n)}else{if(!sn(e))throw new s.a("view-selection-setto-not-selectable",this);this._setRanges(e,t&&t.backward),this._setFakeOptions(t)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new s.a("view-selection-setfocus-no-ranges",this);const n=lo._createAt(e,t);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.pop(),"before"==n.compareWith(o)?this._addRange(new co(n,o),!0):this._addRange(new co(o,n)),this.fire("change")}is(e){return"selection"===e||"view:selection"===e}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(const t of e)this._addRange(t);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof co))throw new s.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new s.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new co(e.start,e.end))}}je(ho,d);class mo{constructor(e=null,t,n){this._selection=new ho,this._selection.delegate("change").to(this),this._selection.setTo(e,t,n)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}is(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setFocus(e,t){this._selection.setFocus(e,t)}}je(mo,d);class fo extends o{constructor(e,t,n){super(e,t),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const go=Symbol("bubbling contexts");var vo={fire(e,...t){try{const n=e instanceof o?e:new o(this,e),a=wo(this);if(!a.size)return;if(_o(n,"capturing",this),bo(a,"$capture",n,...t))return n.return;const r=n.startRange||this.selection.getFirstRange(),i=r?r.getContainedElement():null,s=!!i&&Boolean(yo(a,i));let l=i||function(e){if(!e)return null;const t=e.start.parent,n=e.end.parent,o=t.getPath(),a=n.getPath();return o.length>a.length?t:n}(r);if(_o(n,"atTarget",l),!s){if(bo(a,"$text",n,...t))return n.return;_o(n,"bubbling",l)}for(;l;){if(l.is("rootElement")){if(bo(a,"$root",n,...t))return n.return}else if(l.is("element")&&bo(a,l.name,n,...t))return n.return;if(bo(a,l,n,...t))return n.return;l=l.parent,_o(n,"bubbling",l)}return _o(n,"bubbling",this),bo(a,"$document",n,...t),n.return}catch(e){s.a.rethrowUnexpectedError(e,this)}},_addEventListener(e,t,n){const o=dn(n.context||"$document"),a=wo(this);for(const r of o){let o=a.get(r);o||(o=Object.create(d),a.set(r,o)),this.listenTo(o,e,t,n)}},_removeEventListener(e,t){const n=wo(this);for(const o of n.values())this.stopListening(o,e,t)}};function _o(e,t,n){e instanceof fo&&(e._eventPhase=t,e._currentTarget=n)}function bo(e,t,n,...o){const a="string"==typeof t?e.get(t):yo(e,t);return!!a&&(a.fire(n,...o),n.stop.called)}function yo(e,t){for(const[n,o]of e)if("function"==typeof n&&n(t))return o;return null}function wo(e){return e[go]||(e[go]=new Map),e[go]}class ko{constructor(e){this.selection=new mo,this.roots=new ln({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.map((e=>e.destroy())),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const n of this._postFixers)if(t=n(e),t)break}while(t)}}je(ko,vo),je(ko,Le);class xo extends eo{constructor(e,t,n,o){super(e,t,n,o),this.getFillerOffset=Eo,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new s.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(e,t=null){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function Eo(){if(So(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(So(e)>1)return null;e=e.parent}return!e||So(e)>1?null:this.childCount}function So(e){return Array.from(e.getChildren()).filter((e=>!e.is("uiElement"))).length}xo.DEFAULT_PRIORITY=10;class Mo extends eo{constructor(e,t,n,o){super(e,t,n,o),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=To}is(e,t=null){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof _n||Array.from(t).length>0))throw new s.a("view-emptyelement-cannot-add",[this,t])}}function To(){return null}const Co=navigator.userAgent.toLowerCase();var Ao=Oo(Co),Do=function(e){return e.indexOf("windows")>-1}(Co),Po=function(e){return!!e.match(/gecko\/\d+/)}(Co),Lo=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Co),No=(function(e){!!e.match(/iphone|ipad/i)||Oo(e)&&navigator.maxTouchPoints}(Co),function(e){return e.indexOf("android")>-1}(Co)),Io=function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(Co);!function(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}}();function Oo(e){return e.indexOf("macintosh")>-1}const Ro={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Fo={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},jo=function(){const e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;for(const t of"`-=[];',./\\")e[t]=t.charCodeAt(0);return e}(),Yo=Object.fromEntries(Object.entries(jo).map((([e,t])=>[t,e.charAt(0).toUpperCase()+e.slice(1)])));function zo(e){let t;if("string"==typeof e){if(t=jo[e.toLowerCase()],!t)throw new s.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?jo.alt:0)+(e.ctrlKey?jo.ctrl:0)+(e.shiftKey?jo.shift:0)+(e.metaKey?jo.cmd:0);return t}function Bo(e){return"string"==typeof e&&(e=function(e){return e.split("+").map((e=>e.trim()))}(e)),e.map((e=>"string"==typeof e?function(e){if(e.endsWith("!"))return zo(e.slice(0,-1));const t=zo(e);return Ao&&t==jo.ctrl?jo.cmd:t}(e):e)).reduce(((e,t)=>t+e),0)}function Ho(e){let t=Bo(e);return Object.entries(Ao?Ro:Fo).reduce(((e,[n,o])=>(!!(t&jo[n])&&(t&=~jo[n],e+=o),e)),"")+(t?Yo[t]:"")}function Vo(e,t){const n="ltr"===t;switch(e){case jo.arrowleft:return n?"left":"right";case jo.arrowright:return n?"right":"left";case jo.arrowup:return"up";case jo.arrowdown:return"down"}}class Uo extends eo{constructor(e,t,n,o){super(e,t,n,o),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=Wo}is(e,t=null){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof _n||Array.from(t).length>0))throw new s.a("view-uielement-cannot-add",this)}render(e){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const e of this.getAttributeKeys())t.setAttribute(e,this.getAttribute(e));return t}}function Wo(){return null}class qo extends eo{constructor(e,t,n,o){super(e,t,n,o),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=$o}is(e,t=null){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}_insertChild(e,t){if(t&&(t instanceof _n||Array.from(t).length>0))throw new s.a("view-rawelement-cannot-add",[this,t])}}function $o(){return null}class Go{constructor(e,t){this.document=e,this._children=[],t&&this._insertChild(0,t)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(e){return"documentFragment"===e||"view:documentFragment"===e}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let n=0;const o=function(e,t){return"string"==typeof t?[new bn(e,t)]:(sn(t)||(t=[t]),Array.from(t).map((t=>"string"==typeof t?new bn(e,t):t instanceof yn?new bn(e,t.data):t)))}(this.document,t);for(const t of o)null!==t.parent&&t._remove(),t.parent=this,this._children.splice(e,0,t),e++,n++;return n}_removeChildren(e,t=1){this._fireChange("children",this);for(let n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}}je(Go,d);class Ko{constructor(e){this.document=e,this._cloneGroups=new Map}setSelection(e,t,n){this.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this.document.selection._setFocus(e,t)}createDocumentFragment(e){return new Go(this.document,e)}createText(e){return new bn(this.document,e)}createAttributeElement(e,t,n={}){const o=new xo(this.document,e,t);return"number"==typeof n.priority&&(o._priority=n.priority),n.id&&(o._id=n.id),n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createContainerElement(e,t,n={}){const o=new no(this.document,e,t);return void 0!==n.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createEditableElement(e,t,n={}){const o=new ao(this.document,e,t);return o._document=this.document,n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createEmptyElement(e,t,n={}){const o=new Mo(this.document,e,t);return void 0!==n.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=n.isAllowedInsideAttributeElement),n.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),o}createUIElement(e,t,n,o={}){const a=new Uo(this.document,e,t);return n&&(a.render=n),void 0!==o.isAllowedInsideAttributeElement&&(a._isAllowedInsideAttributeElement=o.isAllowedInsideAttributeElement),a}createRawElement(e,t,n,o={}){const a=new qo(this.document,e,t);return a.render=n||(()=>{}),void 0!==o.isAllowedInsideAttributeElement&&(a._isAllowedInsideAttributeElement=o.isAllowedInsideAttributeElement),o.renderUnsafeAttributes&&a._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),a}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){Xe(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof lo?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new s.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new s.a("view-writer-break-root",this.document);if(e.isAtStart)return lo._createBefore(t);if(!e.isAtEnd){const n=t._clone(!1);this.insert(lo._createAfter(t),n);const o=new co(e,lo._createAt(t,"end")),a=new lo(n,0);this.move(o,a)}return lo._createAfter(t)}mergeAttributes(e){const t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){const e=n.parent,t=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new lo(e,t))}const o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return ea(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){const e=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new lo(o,e))}return e}mergeContainers(e){const t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new s.a("view-writer-merge-containers-invalid-position",this.document);const o=t.getChild(t.childCount-1),a=o instanceof bn?lo._createAt(o,"end"):lo._createAt(t,"end");return this.move(co._createIn(n),lo._createAt(t,"end")),this.remove(co._createOn(n)),a}insert(e,t){!function e(t,n){for(const o of t){if(!ta.some((e=>o instanceof e)))throw new s.a("view-writer-insert-invalid-node-type",n);o.is("$text")||e(o.getChildren(),n)}}(t=sn(t)?[...t]:[t],this.document);const n=t.reduce(((e,t)=>{const n=e[e.length-1],o=!(t.is("uiElement")&&t.isAllowedInsideAttributeElement);return n&&n.breakAttributes==o?n.nodes.push(t):e.push({breakAttributes:o,nodes:[t]}),e}),[]);let o=null,a=e;for(const{nodes:e,breakAttributes:t}of n){const n=this._insertNodes(a,e,t);o||(o=n.start),a=n.end}return o?new co(o,a):new co(e)}remove(e){const t=e instanceof co?e:co._createOn(e);if(oa(t,this.document),t.isCollapsed)return new Go(this.document);const{start:n,end:o}=this._breakAttributesRange(t,!0),a=n.parent,r=o.offset-n.offset,i=a._removeChildren(n.offset,r);for(const e of i)this._removeFromClonedElementsGroup(e);const s=this.mergeAttributes(n);return t.start=s,t.end=s.clone(),new Go(this.document,i)}clear(e,t){oa(e,this.document);const n=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const o of n){const n=o.item;let a;if(n.is("element")&&t.isSimilar(n))a=co._createOn(n);else if(!o.nextPosition.isAfter(e.start)&&n.is("$textProxy")){const e=n.getAncestors().find((e=>e.is("element")&&t.isSimilar(e)));e&&(a=co._createIn(e))}a&&(a.end.isAfter(e.end)&&(a.end=e.end),a.start.isBefore(e.start)&&(a.start=e.start),this.remove(a))}}move(e,t){let n;if(t.isAfter(e.end)){const o=(t=this._breakAttributes(t,!0)).parent,a=o.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=o.childCount-a}else n=this.remove(e);return this.insert(t,n)}wrap(e,t){if(!(t instanceof xo))throw new s.a("view-writer-wrap-invalid-attribute",this.document);if(oa(e,this.document),e.isCollapsed){let o=e.start;o.parent.is("element")&&(n=o.parent,!Array.from(n.getChildren()).some((e=>!e.is("uiElement"))))&&(o=o.getLastMatchingPosition((e=>e.item.is("uiElement")))),o=this._wrapPosition(o,t);const a=this.document.selection;return a.isCollapsed&&a.getFirstPosition().isEqual(e.start)&&this.setSelection(o),new co(o)}return this._wrapRange(e,t);var n}unwrap(e,t){if(!(t instanceof xo))throw new s.a("view-writer-unwrap-invalid-attribute",this.document);if(oa(e,this.document),e.isCollapsed)return e;const{start:n,end:o}=this._breakAttributesRange(e,!0),a=n.parent,r=this._unwrapChildren(a,n.offset,o.offset,t),i=this.mergeAttributes(r.start);i.isEqual(r.start)||r.end.offset--;const l=this.mergeAttributes(r.end);return new co(i,l)}rename(e,t){const n=new no(this.document,e,t.getAttributes());return this.insert(lo._createAfter(t),n),this.move(co._createIn(t),lo._createAt(n,0)),this.remove(co._createOn(t)),n}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return lo._createAt(e,t)}createPositionAfter(e){return lo._createAfter(e)}createPositionBefore(e){return lo._createBefore(e)}createRange(e,t){return new co(e,t)}createRangeOn(e){return co._createOn(e)}createRangeIn(e){return co._createIn(e)}createSelection(e,t,n){return new ho(e,t,n)}_insertNodes(e,t,n){let o,a;if(o=n?Jo(e):e.parent.is("$text")?e.parent.parent:e.parent,!o)throw new s.a("view-writer-invalid-position-container",this.document);a=n?this._breakAttributes(e,!0):e.parent.is("$text")?Zo(e):e;const r=o._insertChild(a.offset,t);for(const e of t)this._addToClonedElementsGroup(e);const i=a.getShiftedBy(r),l=this.mergeAttributes(a);l.isEqual(a)||i.offset--;const c=this.mergeAttributes(i);return new co(l,c)}_wrapChildren(e,t,n,o){let a=t;const r=[];for(;a<n;){const t=e.getChild(a),n=t.is("$text"),i=t.is("attributeElement"),s=t.isAllowedInsideAttributeElement;if(i&&this._wrapAttributeElement(o,t))r.push(new lo(e,a));else if(n||s||i&&Xo(o,t)){const n=o._clone();t._remove(),n._appendChild(t),e._insertChild(a,n),this._addToClonedElementsGroup(n),r.push(new lo(e,a))}else i&&this._wrapChildren(t,0,t.childCount,o);a++}let i=0;for(const e of r)e.offset-=i,e.offset!=t&&(this.mergeAttributes(e).isEqual(e)||(i++,n--));return co._createFromParentsAndOffsets(e,t,e,n)}_unwrapChildren(e,t,n,o){let a=t;const r=[];for(;a<n;){const t=e.getChild(a);if(t.is("attributeElement"))if(t.isSimilar(o)){const o=t.getChildren(),i=t.childCount;t._remove(),e._insertChild(a,o),this._removeFromClonedElementsGroup(t),r.push(new lo(e,a),new lo(e,a+i)),a+=i,n+=i-1}else this._unwrapAttributeElement(o,t)?(r.push(new lo(e,a),new lo(e,a+1)),a++):(this._unwrapChildren(t,0,t.childCount,o),a++);else a++}let i=0;for(const e of r)e.offset-=i,e.offset!=t&&e.offset!=n&&(this.mergeAttributes(e).isEqual(e)||(i++,n--));return co._createFromParentsAndOffsets(e,t,e,n)}_wrapRange(e,t){const{start:n,end:o}=this._breakAttributesRange(e,!0),a=n.parent,r=this._wrapChildren(a,n.offset,o.offset,t),i=this.mergeAttributes(r.start);i.isEqual(r.start)||r.end.offset--;const s=this.mergeAttributes(r.end);return new co(i,s)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return Qo(e.clone());e.parent.is("$text")&&(e=Zo(e));const n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,e.parent._insertChild(e.offset,n);const o=new co(e,e.getShiftedBy(1));this.wrap(o,t);const a=new lo(n.parent,n.index);n._remove();const r=a.nodeBefore,i=a.nodeAfter;return r instanceof bn&&i instanceof bn?ea(r,i):Qo(a)}_wrapAttributeElement(e,t){if(!aa(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&t.hasAttribute(n)&&t.getAttribute(n)!==e.getAttribute(n))return!1;for(const n of e.getStyleNames())if(t.hasStyle(n)&&t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())"class"!==n&&"style"!==n&&(t.hasAttribute(n)||this.setAttribute(n,e.getAttribute(n),t));for(const n of e.getStyleNames())t.hasStyle(n)||this.setStyle(n,e.getStyle(n),t);for(const n of e.getClassNames())t.hasClass(n)||this.addClass(n,t);return!0}_unwrapAttributeElement(e,t){if(!aa(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const n of e.getAttributeKeys())if("class"!==n&&"style"!==n&&(!t.hasAttribute(n)||t.getAttribute(n)!==e.getAttribute(n)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const n of e.getStyleNames())if(!t.hasStyle(n)||t.getStyle(n)!==e.getStyle(n))return!1;for(const n of e.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const n=e.start,o=e.end;if(oa(e,this.document),e.isCollapsed){const n=this._breakAttributes(e.start,t);return new co(n,n)}const a=this._breakAttributes(o,t),r=a.parent.childCount,i=this._breakAttributes(n,t);return a.offset+=a.parent.childCount-r,new co(i,a)}_breakAttributes(e,t=!1){const n=e.offset,o=e.parent;if(e.parent.is("emptyElement"))throw new s.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new s.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new s.a("view-writer-cannot-break-raw-element",this.document);if(!t&&o.is("$text")&&na(o.parent))return e.clone();if(na(o))return e.clone();if(o.is("$text"))return this._breakAttributes(Zo(e),t);if(n==o.childCount){const e=new lo(o.parent,o.index+1);return this._breakAttributes(e,t)}if(0===n){const e=new lo(o.parent,o.index);return this._breakAttributes(e,t)}{const e=o.index+1,a=o._clone();o.parent._insertChild(e,a),this._addToClonedElementsGroup(a);const r=o.childCount-n,i=o._removeChildren(n,r);a._appendChild(i);const s=new lo(o.parent,e);return this._breakAttributes(s,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const t of e.getChildren())this._addToClonedElementsGroup(t);const t=e.id;if(!t)return;let n=this._cloneGroups.get(t);n||(n=new Set,this._cloneGroups.set(t,n)),n.add(e),e._clonesGroup=n}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const t of e.getChildren())this._removeFromClonedElementsGroup(t);const t=e.id;if(!t)return;const n=this._cloneGroups.get(t);n&&n.delete(e)}}function Jo(e){let t=e.parent;for(;!na(t);){if(!t)return;t=t.parent}return t}function Xo(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function Qo(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new lo(t,t.data.length);const n=e.nodeAfter;return n&&n.is("$text")?new lo(n,0):e}function Zo(e){if(e.offset==e.parent.data.length)return new lo(e.parent.parent,e.parent.index+1);if(0===e.offset)return new lo(e.parent.parent,e.parent.index);const t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new bn(e.root.document,t)),new lo(e.parent.parent,e.parent.index+1)}function ea(e,t){const n=e.data.length;return e._data+=t.data,t._remove(),new lo(e,n)}const ta=[bn,xo,no,Mo,qo,Uo];function na(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function oa(e,t){const n=Jo(e.start),o=Jo(e.end);if(!n||!o||n!==o)throw new s.a("view-writer-invalid-range-container",t)}function aa(e,t){return null===e.id&&null===t.id}function ra(e){return"[object Text]"==Object.prototype.toString.call(e)}const ia=e=>e.createTextNode(" "),sa=e=>{const t=e.createElement("span");return t.dataset.ckeFiller=!0,t.innerHTML=" ",t},la=e=>{const t=e.createElement("br");return t.dataset.ckeFiller=!0,t},ca="⁠".repeat(7);function da(e){return ra(e)&&e.data.substr(0,7)===ca}function ua(e){return 7==e.data.length&&da(e)}function pa(e){return da(e)?e.data.slice(7):e.data}function ha(e,t){if(t.keyCode==jo.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,n=e.getRangeAt(0).startOffset;da(t)&&n<=7&&e.collapse(t,0)}}}function ma(e,t,n,o=!1){n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));const a=function(e,t,n){const o=fa(e,t,n);if(-1===o)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const a=fa(ga(e,o),ga(t,o),n);return{firstIndex:o,lastIndexOld:e.length-a,lastIndexNew:t.length-a}}(e,t,n);return o?function(e,t){const{firstIndex:n,lastIndexOld:o,lastIndexNew:a}=e;if(-1===n)return Array(t).fill("equal");let r=[];return n>0&&(r=r.concat(Array(n).fill("equal"))),a-n>0&&(r=r.concat(Array(a-n).fill("insert"))),o-n>0&&(r=r.concat(Array(o-n).fill("delete"))),a<t&&(r=r.concat(Array(t-a).fill("equal"))),r}(a,t.length):function(e,t){const n=[],{firstIndex:o,lastIndexOld:a,lastIndexNew:r}=t;return r-o>0&&n.push({index:o,type:"insert",values:e.slice(o,r)}),a-o>0&&n.push({index:o+(r-o),type:"delete",howMany:a-o}),n}(t,a)}function fa(e,t,n){for(let o=0;o<Math.max(e.length,t.length);o++)if(void 0===e[o]||void 0===t[o]||!n(e[o],t[o]))return o;return-1}function ga(e,t){return e.slice(t).reverse()}function va(e,t,n){n=n||function(e,t){return e===t};const o=e.length,a=t.length;if(o>200||a>200||o+a>300)return va.fastDiff(e,t,n,!0);let r,i;if(a<o){const n=e;e=t,t=n,r="delete",i="insert"}else r="insert",i="delete";const s=e.length,l=t.length,c=l-s,d={},u={};function p(o){const a=(void 0!==u[o-1]?u[o-1]:-1)+1,c=void 0!==u[o+1]?u[o+1]:-1,p=a>c?-1:1;d[o+p]&&(d[o]=d[o+p].slice(0)),d[o]||(d[o]=[]),d[o].push(a>c?r:i);let h=Math.max(a,c),m=h-o;for(;m<s&&h<l&&n(e[m],t[h]);)m++,h++,d[o].push("equal");return h}let h,m=0;do{for(h=-m;h<c;h++)u[h]=p(h);for(h=c+m;h>c;h--)u[h]=p(h);u[c]=p(c),m++}while(u[c]!==l);return d[c].slice(1)}function _a(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function ba(e){const t=e.parentNode;t&&t.removeChild(e)}function ya(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}va.fastDiff=ma,n(15);class wa{constructor(e,t){this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),Io&&!No&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new s.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}render(){let e;const t=!(Io&&!No&&this.isSelecting);for(const e of this.markedChildren)this._updateChildrenMappings(e);t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller));for(const e of this.markedAttributes)this._updateAttrs(e);for(const t of this.markedChildren)this._updateChildren(t,{inlineFillerPosition:e});for(const t of this.markedTexts)!this.markedChildren.has(t.parent)&&this.domConverter.mapViewToDom(t.parent)&&this._updateText(t,{inlineFillerPosition:e});if(t)if(e){const t=this.domConverter.viewPositionToDom(e),n=t.parent.ownerDocument;da(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=ka(n,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(this.domConverter.mapViewToDom(e).childNodes),o=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),a=this._diffNodeLists(n,o),r=this._findReplaceActions(a,n,o);if(-1!==r.indexOf("replace")){const t={equal:0,insert:0,delete:0};for(const a of r)if("replace"===a){const a=t.equal+t.insert,r=t.equal+t.delete,i=e.getChild(a);!i||i.is("uiElement")||i.is("rawElement")||this._updateElementMappings(i,n[r]),ba(o[a]),t.equal++}else t[a]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?lo._createBefore(this.selection.getFirstPosition().parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&ra(t.parent)&&da(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!da(e))throw new s.a("view-renderer-filler-was-lost",this);ua(e)?e.remove():e.data=e.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor((e=>e.hasAttribute("contenteditable")));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;const o=e.nodeBefore,a=e.nodeAfter;return!(o instanceof bn||a instanceof bn)}_updateText(e,t){const n=this.domConverter.findCorrespondingDomText(e),o=this.domConverter.viewToDom(e,n.ownerDocument),a=n.data;let r=o.data;const i=t.inlineFillerPosition;if(i&&i.parent==e.parent&&i.offset==e.index&&(r=ca+r),a!=r){const e=ma(a,r);for(const t of e)"insert"===t.type?n.insertData(t.index,t.values.join("")):n.deleteData(t.index,t.howMany)}}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const n=Array.from(t.attributes).map((e=>e.name)),o=e.getAttributeKeys();for(const n of o)this.domConverter.setDomElementAttribute(t,n,e.getAttribute(n),e);for(const o of n)e.hasAttribute(o)||this.domConverter.removeDomElementAttribute(t,o)}_updateChildren(e,t){const n=this.domConverter.mapViewToDom(e);if(!n)return;const o=t.inlineFillerPosition,a=this.domConverter.mapViewToDom(e).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0}));o&&o.parent===e&&ka(n.ownerDocument,r,o.offset);const i=this._diffNodeLists(a,r);let s=0;const l=new Set;for(const e of i)"delete"===e?(l.add(a[s]),ba(a[s])):"equal"===e&&s++;s=0;for(const e of i)"insert"===e?(_a(n,s,r[s]),s++):"equal"===e&&(this._markDescendantTextToSync(this.domConverter.domToView(r[s])),s++);for(const e of l)e.parentNode||this.domConverter.unbindDomElement(e)}_diffNodeLists(e,t){return va(e=function(e,t){const n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,Ea.bind(null,this.domConverter))}_findReplaceActions(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let o=[],a=[],r=[];const i={equal:0,insert:0,delete:0};for(const s of e)"insert"===s?r.push(n[i.equal+i.insert]):"delete"===s?a.push(t[i.equal+i.delete]):(o=o.concat(va(a,r,xa).map((e=>"equal"===e?"replace":e))),o.push("equal"),a=[],r=[]),i[s]++;return o.concat(va(a,r,xa).map((e=>"equal"===e?"replace":e)))}_markDescendantTextToSync(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}_updateSelection(){if(Io&&!No&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(e))return;n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const o=t.getSelection(),a=t.createRange();o.removeAllRanges(),a.selectNodeContents(n),o.addRange(a)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);t.collapse(n.parent,n.offset),t.extend(o.parent,o.offset),Po&&function(e,t){const n=e.parent;if(n.nodeType!=Node.ELEMENT_NODE||e.offset!=n.childNodes.length-1)return;const o=n.childNodes[e.offset];o&&"BR"==o.tagName&&t.addRange(t.getRangeAt(0))}(o,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments)if(e.getSelection().rangeCount){const t=e.activeElement,n=this.domConverter.mapDomToView(t);t&&n&&e.getSelection().removeAllRanges()}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function ka(e,t,n){const o=t instanceof Array?t:t.childNodes,a=o[n];if(ra(a))return a.data=ca+a.data,a;{const a=e.createTextNode(ca);return Array.isArray(t)?o.splice(n,0,a):_a(t,n,a),a}}function xa(e,t){return ya(e)&&ya(t)&&!ra(e)&&!ra(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Ea(e,t,n){return t===n||(ra(t)&&ra(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}je(wa,Le);var Sa={window,document};function Ma(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Ta(e){const t=[];for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}const Ca=la(document),Aa=ia(document),Da=sa(document);class Pa{constructor(e,t={}){this.document=e,this.renderingMode=t.renderingMode||"editing",this.blockFillerMode=t.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new kn,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new ho(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of e.childNodes)this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,n){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===e||"srcset"===e)||"source"===n&&"srcset"===e||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(e,t){if("data"===this.renderingMode)return void(e.innerHTML=t);const n=(new DOMParser).parseFromString(t,"text/html"),o=n.createDocumentFragment(),a=n.body.childNodes;for(;a.length>0;)o.appendChild(a[0]);const r=n.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),i=[];let l;for(;l=r.nextNode();)i.push(l);for(const e of i){for(const t of e.getAttributeNames())this.setDomElementAttribute(e,t,e.getAttribute(t));const t=e.tagName.toLowerCase();this._shouldRenameElement(t)&&(Object(s.b)("domconverter-unsafe-element-detected",{unsafeElement:e}),e.replaceWith(this._createReplacementDomElement(t,e)))}for(;e.firstChild;)e.firstChild.remove();e.append(o)}viewToDom(e,t,n={}){if(e.is("$text")){const n=this._processDataFromViewText(e);return t.createTextNode(n)}{if(this.mapViewToDom(e))return this.mapViewToDom(e);let o;if(e.is("documentFragment"))o=t.createDocumentFragment(),n.bind&&this.bindDocumentFragments(o,e);else{if(e.is("uiElement"))return o="$comment"===e.name?t.createComment(e.getCustomProperty("$rawContent")):e.render(t,this),n.bind&&this.bindElements(o,e),o;this._shouldRenameElement(e.name)?(Object(s.b)("domconverter-unsafe-element-detected",{unsafeElement:e}),o=this._createReplacementDomElement(e.name)):o=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(o,this),n.bind&&this.bindElements(o,e);for(const t of e.getAttributeKeys())this.setDomElementAttribute(o,t,e.getAttribute(t),e)}if(!1!==n.withChildren)for(const a of this.viewChildrenToDom(e,t,n))o.appendChild(a);return o}}setDomElementAttribute(e,t,n,o=null){const a=this.shouldRenderAttribute(t,n,e.tagName.toLowerCase())||o&&o.shouldRenderUnsafeAttribute(t);a||Object(s.b)("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:n}),e.hasAttribute(t)&&!a?e.removeAttribute(t):e.hasAttribute("data-ck-unsafe-attribute-"+t)&&a&&e.removeAttribute("data-ck-unsafe-attribute-"+t),e.setAttribute(a?t:"data-ck-unsafe-attribute-"+t,n)}removeDomElementAttribute(e,t){"data-ck-unsafe-element"!=t&&(e.removeAttribute(t),e.removeAttribute("data-ck-unsafe-attribute-"+t))}*viewChildrenToDom(e,t,n={}){const o=e.getFillerOffset&&e.getFillerOffset();let a=0;for(const r of e.getChildren())o===a&&(yield this._getBlockFiller(t)),yield this.viewToDom(r,t,n),a++;o===a&&(yield this._getBlockFiller(t))}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),o=document.createRange();return o.setStart(t.parent,t.offset),o.setEnd(n.parent,n.offset),o}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const n=this.findCorrespondingDomText(t);if(!n)return null;let o=e.offset;return da(n)&&(o+=7),{parent:n,offset:o}}{let n,o,a;if(0===e.offset){if(n=this.mapViewToDom(t),!n)return null;a=n.childNodes[0]}else{const t=e.nodeBefore;if(o=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(e.nodeBefore),!o)return null;n=o.parentNode,a=o.nextSibling}return ra(a)&&da(a)?{parent:a,offset:7}:{parent:n,offset:o?Ma(o)+1:0}}}domToView(e,t={}){if(this.isBlockFiller(e))return null;const n=this.getHostViewElement(e);if(n)return n;if(this.isComment(e)&&t.skipComments)return null;if(ra(e)){if(ua(e))return null;{const t=this._processDataFromDomText(e);return""===t?null:new bn(this.document,t)}}{if(this.mapDomToView(e))return this.mapDomToView(e);let n;if(this.isDocumentFragment(e))n=new Go(this.document),t.bind&&this.bindDocumentFragments(e,n);else{n=this._createViewElement(e,t),t.bind&&this.bindElements(e,n);const o=e.attributes;if(o)for(let e=o.length-1;e>=0;e--)n._setAttribute(o[e].name,o[e].value);if(this._isViewElementWithRawContent(n,t)||this.isComment(e)){const t=this.isComment(e)?e.data:e.innerHTML;return n._setCustomProperty("$rawContent",t),this._encounteredRawContentDomNodes.add(e),n}}if(!1!==t.withChildren)for(const o of this.domChildrenToView(e,t))n._appendChild(o);return n}}*domChildrenToView(e,t={}){for(let n=0;n<e.childNodes.length;n++){const o=e.childNodes[n],a=this.domToView(o,t);null!==a&&(yield a)}}domSelectionToView(e){if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;ra(t)&&(t=t.parentNode);const n=this.fakeSelectionToView(t);if(n)return n}const t=this.isDomSelectionBackward(e),n=[];for(let t=0;t<e.rangeCount;t++){const o=e.getRangeAt(t),a=this.domRangeToView(o);a&&n.push(a)}return new ho(n,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new co(t,n):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,Ma(e));const n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return lo._createBefore(n);if(ra(e)){if(ua(e))return this.domPositionToView(e.parentNode,Ma(e));const n=this.findCorrespondingViewText(e);let o=t;return n?(da(e)&&(o-=7,o=o<0?0:o),new lo(n,o)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new lo(t,0)}else{const n=e.childNodes[t-1],o=ra(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(o&&o.parent)return new lo(o.parent,o.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(ua(e))return null;const t=this.getHostViewElement(e);if(t)return t;const n=e.previousSibling;if(n){if(!this.isElement(n))return null;const e=this.mapDomToView(n);if(e)return e.nextSibling instanceof bn?e.nextSibling:null}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof bn?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:e,scrollY:n}=Sa.window,o=[];La(t,(e=>{const{scrollLeft:t,scrollTop:n}=e;o.push([t,n])})),t.focus(),La(t,(e=>{const[t,n]=o.shift();e.scrollLeft=t,e.scrollTop=n})),Sa.window.scrollTo(e,n)}}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(e){return e&&e.nodeType==Node.COMMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(Ca):!("BR"!==e.tagName||!Na(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(Da)||function(e,t){return e.isEqualNode(Aa)&&Na(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed;return t.detach(),n}getHostViewElement(e){const t=Ta(e);for(t.pop();t.length;){const e=t.pop(),n=this._domToViewMapping.get(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}_getBlockFiller(e){switch(this.blockFillerMode){case"nbsp":return ia(e);case"markedNbsp":return sa(e);case"br":return la(e)}}_isDomSelectionPositionCorrect(e,t){if(ra(e)&&da(e)&&t<7)return!1;if(this.isElement(e)&&da(e.childNodes[t]))return!1;const n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return t;if(" "==t.charAt(0)){const n=this._getTouchingInlineViewNode(e,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){const n=this._getTouchingInlineViewNode(e,!0),o=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=t.charAt(t.length-2)&&n&&!o||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(e){if(e.getAncestors().some((e=>this.preElements.includes(e.name))))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_processDataFromDomText(e){let t=e.data;if(function(e,t){return Ta(e).some((e=>e.tagName&&t.includes(e.tagName.toLowerCase())))}(e,this.preElements))return pa(e);t=t.replace(/[ \n\t\r]{1,}/g," ");const n=this._getTouchingInlineDomNode(e,!1),o=this._getTouchingInlineDomNode(e,!0),a=this._checkShouldLeftTrimDomText(e,n),r=this._checkShouldRightTrimDomText(e,o);a&&(t=t.replace(/^ /,"")),r&&(t=t.replace(/ $/,"")),t=pa(new Text(t)),t=t.replace(/ \u00A0/g,"  ");const i=o&&this.isElement(o)&&"BR"!=o.tagName,s=o&&ra(o)&&" "==o.data.charAt(0);return(/(|\u00A0)\u00A0$/.test(t)||!o||i||s)&&(t=t.replace(/\u00A0$/," ")),(a||n&&this.isElement(n)&&"BR"!=n.tagName)&&(t=t.replace(/^\u00A0/," ")),t}_checkShouldLeftTrimDomText(e,t){return!t||(this.isElement(t)?"BR"===t.tagName:!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1)))}_checkShouldRightTrimDomText(e,t){return!t&&!da(e)}_getTouchingInlineViewNode(e,t){const n=new so({startPosition:t?lo._createAfter(e):lo._createBefore(e),direction:t?"forward":"backward"});for(const e of n){if(e.item.is("element")&&this.inlineObjectElements.includes(e.item.name))return e.item;if(e.item.is("containerElement"))return null;if(e.item.is("element","br"))return null;if(e.item.is("$textProxy"))return e.item}return null}_getTouchingInlineDomNode(e,t){if(!e.parentNode)return null;const n=t?"firstChild":"lastChild",o=t?"nextSibling":"previousSibling";let a=!0;do{if(!a&&e[n]?e=e[n]:e[o]?(e=e[o],a=!1):(e=e.parentNode,a=!0),!e||this._isBlockElement(e))return null}while(!ra(e)&&"BR"!=e.tagName&&!this._isInlineObjectElement(e));return e}_isBlockElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isInlineObjectElement(e){return this.isElement(e)&&this.inlineObjectElements.includes(e.tagName.toLowerCase())}_createViewElement(e,t){if(this.isComment(e))return new Uo(this.document,"$comment");const n=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new eo(this.document,n)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){return"editing"==this.renderingMode&&"script"==e.toLowerCase()}_createReplacementDomElement(e,t=null){const n=document.createElement("span");if(n.setAttribute("data-ck-unsafe-element",e),t){for(;t.firstChild;)n.appendChild(t.firstChild);for(const e of t.getAttributeNames())n.setAttribute(e,t.getAttribute(e))}return n}}function La(e,t){for(;e&&e!=Sa.document;)t(e),e=e.parentNode}function Na(e,t){const n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function Ia(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var Oa=Se({},d,{listenTo(e,t,n,o={}){if(ya(e)||Ia(e)){const a={capture:!!o.useCapture,passive:!!o.usePassive},r=this._getProxyEmitter(e,a)||new Ra(e,a);this.listenTo(r,t,n,o)}else d.listenTo.call(this,e,t,n,o)},stopListening(e,t,n){if(ya(e)||Ia(e)){const o=this._getAllProxyEmitters(e);for(const e of o)this.stopListening(e,t,n)}else d.stopListening.call(this,e,t,n)},_getProxyEmitter(e,t){return n=this,o=Fa(e,t),n[l]&&n[l][o]?n[l][o].emitter:null;var n,o},_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((t=>this._getProxyEmitter(e,t))).filter((e=>!!e))}});class Ra{constructor(e,t){u(this,Fa(e,t)),this._domNode=e,this._options=t}}function Fa(e,t){let n=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=r())}(e);for(const e of Object.keys(t).sort())t[e]&&(n+="-"+e);return n}Se(Ra.prototype,d,{attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t},detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_addEventListener(e,t,n){this.attach(e),d._addEventListener.call(this,e,t,n)},_removeEventListener(e,t){d._removeEventListener.call(this,e,t),this.detach(e)},_createDomListener(e){const t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}});class ja{constructor(e){this.view=e,this.document=e.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}je(ja,Oa);function Ya(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])}Ya.prototype.add=Ya.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ya.prototype.has=function(e){return this.__data__.has(e)};var za=Ya,Ba=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1},Ha=function(e,t){return e.has(t)},Va=function(e,t,n,o,a,r){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,h=2&n?new za:void 0;for(r.set(e,t),r.set(t,e);++u<s;){var m=e[u],f=t[u];if(o)var g=i?o(f,m,u,t,e,r):o(m,f,u,e,t,r);if(void 0!==g){if(g)continue;p=!1;break}if(h){if(!Ba(t,(function(e,t){if(!Ha(h,t)&&(m===e||a(m,e,n,o,r)))return h.push(t)}))){p=!1;break}}else if(m!==f&&!a(m,f,n,o,r)){p=!1;break}}return r.delete(e),r.delete(t),p},Ua=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n},Wa=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},qa=y?y.prototype:void 0,$a=qa?qa.valueOf:void 0,Ga=Object.prototype.hasOwnProperty,Ka=Object.prototype.hasOwnProperty,Ja=function(e,t,n,o,a,r){var i=ue(e),s=ue(t),l=i?"[object Array]":Ft(e),c=s?"[object Array]":Ft(t),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),p=l==c;if(p&&Object(pe.a)(e)){if(!Object(pe.a)(t))return!1;i=!0,d=!1}if(p&&!d)return r||(r=new pt),i||ve(e)?Va(e,t,n,o,a,r):function(e,t,n,o,a,r,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new Yt(e),new Yt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ua;case"[object Set]":var l=1&o;if(s||(s=Wa),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;o|=2,i.set(e,t);var d=Va(s(e),s(t),o,a,r,i);return i.delete(e),d;case"[object Symbol]":if($a)return $a.call(e)==$a.call(t)}return!1}(e,t,l,n,o,a,r);if(!(1&n)){var h=d&&Ka.call(e,"__wrapped__"),m=u&&Ka.call(t,"__wrapped__");if(h||m){var f=h?e.value():e,g=m?t.value():t;return r||(r=new pt),a(f,g,n,o,r)}}return!!p&&(r||(r=new pt),function(e,t,n,o,a,r){var i=1&n,s=St(e),l=s.length;if(l!=St(t).length&&!i)return!1;for(var c=l;c--;){var d=s[c];if(!(i?d in t:Ga.call(t,d)))return!1}var u=r.get(e),p=r.get(t);if(u&&p)return u==t&&p==e;var h=!0;r.set(e,t),r.set(t,e);for(var m=i;++c<l;){var f=e[d=s[c]],g=t[d];if(o)var v=i?o(g,f,d,t,e,r):o(f,g,d,e,t,r);if(!(void 0===v?f===g||a(f,g,n,o,r):v)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(h=!1)}return r.delete(e),r.delete(t),h}(e,t,n,o,a,r))},Xa=function e(t,n,o,a,r){return t===n||(null==t||null==n||!re(t)&&!re(n)?t!=t&&n!=n:Ja(t,n,o,a,e,r))},Qa=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?Xa(e,t,void 0,n):!!o};class Za extends ja{constructor(e){super(e),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,n=new Map,o=new Set;for(const n of e)if("childList"===n.type){const e=t.mapDomToView(n.target);if(e&&(e.is("uiElement")||e.is("rawElement")))continue;e&&!this._isBogusBrMutation(n)&&o.add(e)}for(const a of e){const e=t.mapDomToView(a.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===a.type){const e=t.findCorrespondingViewText(a.target);e&&!o.has(e.parent)?n.set(e,{type:"text",oldText:e.data,newText:pa(a.target),node:e}):!e&&da(a.target)&&o.add(t.mapDomToView(a.target.parentNode))}}const a=[];for(const e of n.values())this.renderer.markToSync("text",e.node),a.push(e);for(const e of o){const n=t.mapViewToDom(e),o=Array.from(e.getChildren()),r=Array.from(t.domChildrenToView(n,{withChildren:!1}));Qa(o,r,s)||(this.renderer.markToSync("children",e),a.push({type:"children",oldChildren:o,newChildren:r,node:e}))}const r=e[0].target.ownerDocument.getSelection();let i=null;if(r&&r.anchorNode){const e=t.domPositionToView(r.anchorNode,r.anchorOffset),n=t.domPositionToView(r.focusNode,r.focusOffset);e&&n&&(i=new ho(e),i.setFocus(n))}function s(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}a.length&&(this.document.fire("mutations",a,i),this.view.forceRender())}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}class er{constructor(e,t,n){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,Se(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class tr extends ja{constructor(e){super(e),this.useCapture=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((t=>{this.listenTo(e,t,((e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)}),{useCapture:this.useCapture})}))}fire(e,t,n){this.isEnabled&&this.document.fire(e,new er(this.view,t,n))}}class nr extends tr{constructor(e){super(e),this.domEventType=["keydown","keyup"]}onDomEvent(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return zo(this)}})}}var or=function(){return b.a.Date.now()},ar=/\s/,rr=/^\s+/,ir=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ar.test(e.charAt(t)););return t}(e)+1).replace(rr,""):e},sr=/^[-+]0x[0-9a-f]+$/i,lr=/^0b[01]+$/i,cr=/^0o[0-7]+$/i,dr=parseInt,ur=function(e){if("number"==typeof e)return e;if(Sn(e))return NaN;if(_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ir(e);var n=lr.test(e);return n||cr.test(e)?dr(e.slice(2),n?2:8):sr.test(e)?NaN:+e},pr=Math.max,hr=Math.min,mr=function(e,t,n){var o,a,r,i,s,l,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=o,r=a;return o=a=void 0,c=t,i=e.apply(r,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=r}function f(){var e=or();if(m(e))return g(e);s=setTimeout(f,function(e){var n=t-(e-l);return u?hr(n,r-(e-c)):n}(e))}function g(e){return s=void 0,p&&o?h(e):(o=a=void 0,i)}function v(){var e=or(),n=m(e);if(o=arguments,a=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(f,t),d?h(e):i}(l);if(u)return clearTimeout(s),s=setTimeout(f,t),h(l)}return void 0===s&&(s=setTimeout(f,t)),i}return t=ur(t)||0,_(n)&&(d=!!n.leading,r=(u="maxWait"in n)?pr(ur(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=a=s=void 0},v.flush=function(){return void 0===s?i:g(or())},v};class fr extends ja{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=mr((e=>this.document.fire("selectionChangeDone",e)),200)}observe(){const e=this.document;e.on("arrowKey",((t,n)=>{e.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),e.on("arrowKey",((t,n)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,n=new ho(t.getRanges(),{backward:t.isBackward,fake:!1});e!=jo.arrowleft&&e!=jo.arrowup||n.setTo(n.getFirstPosition()),e!=jo.arrowright&&e!=jo.arrowdown||n.setTo(n.getLastPosition());const o={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}class gr extends ja{constructor(e){super(e),this.mutationObserver=e.getObserver(Za),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=mr((e=>this.document.fire("selectionChangeDone",e)),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=mr((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument,n=()=>{this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel()};this.listenTo(e,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(e,"keydown",n,{priority:"highest"}),this.listenTo(e,"keyup",n,{priority:"highest"}),this._documents.has(t)||(this.listenTo(t,"mouseup",n,{priority:"highest"}),this.listenTo(t,"selectionchange",((e,n)=>{this._handleSelectionChange(n,t),this._documentIsSelectingInactivityTimeoutDebounced()})),this._documents.add(t))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(e,t){if(!this.isEnabled)return;const n=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const o=this.domConverter.domSelectionToView(n);if(0!=o.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(o)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(o))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:o,domSelection:n};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class vr extends tr{constructor(e){super(e),this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",(()=>{t.isFocused=!0,this._renderTimeoutId=setTimeout((()=>e.change((()=>{}))),50)})),t.on("blur",((n,o)=>{const a=t.selection.editableElement;null!==a&&a!==o.target||(t.isFocused=!1,e.change((()=>{})))}))}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class _r extends tr{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",(()=>{t.isComposing=!0})),t.on("compositionend",(()=>{t.isComposing=!1}))}onDomEvent(e){this.fire(e.type,e)}}class br extends tr{constructor(e){super(e),this.domEventType=["beforeinput"]}onDomEvent(e){this.fire(e.type,e)}}class yr{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach((({element:e,newElement:t})=>{e.style.display="",t&&t.remove()})),this._replacedElements=[]}}var wr=function(e){return"string"==typeof e||!ue(e)&&re(e)&&"[object String]"==T(e)};function kr(e){return"[object Range]"==Object.prototype.toString.apply(e)}function xr(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}const Er=["top","right","bottom","left","width","height"];class Sr{constructor(e){const t=kr(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),nn(e)||t)if(t){const t=Sr.getDomRangeRects(e);Mr(this,Sr.getBoundingRect(t))}else Mr(this,e.getBoundingClientRect());else if(Ia(e)){const{innerWidth:t,innerHeight:n}=e;Mr(this,{top:0,right:t,bottom:n,left:0,width:t,height:n})}else Mr(this,e)}clone(){return new Sr(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new Sr(t)}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!Tr(e)){let n=e.parentNode||e.commonAncestorContainer;for(;n&&!Tr(n);){const e=new Sr(n),o=t.getIntersection(e);if(!o)return null;o.getArea()<t.getArea()&&(t=o),n=n.parentNode}}return t}isEqual(e){for(const t of Er)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}excludeScrollbarsAndBorders(){const e=this._source;let t,n,o;if(Ia(e))t=e.innerWidth-e.document.documentElement.clientWidth,n=e.innerHeight-e.document.documentElement.clientHeight,o=e.getComputedStyle(e.document.documentElement).direction;else{const a=xr(this._source);t=e.offsetWidth-e.clientWidth-a.left-a.right,n=e.offsetHeight-e.clientHeight-a.top-a.bottom,o=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=a.left,this.top+=a.top,this.right-=a.right,this.bottom-=a.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===o?this.right-=t:this.left+=t,this.height-=n,this.bottom-=n,this}static getDomRangeRects(e){const t=[],n=Array.from(e.getClientRects());if(n.length)for(const e of n)t.push(new Sr(e));else{let n=e.startContainer;ra(n)&&(n=n.parentNode);const o=new Sr(n.getBoundingClientRect());o.right=o.left,o.width=0,t.push(o)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY};let n=0;for(const o of e)n++,t.left=Math.min(t.left,o.left),t.top=Math.min(t.top,o.top),t.right=Math.max(t.right,o.right),t.bottom=Math.max(t.bottom,o.bottom);return 0==n?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Sr(t))}}function Mr(e,t){for(const n of Er)e[n]=t[n]}function Tr(e){return!!nn(e)&&e===e.ownerDocument.body}class Cr{constructor(e,t){Cr._observerInstance||Cr._createObserver(),this._element=e,this._callback=t,Cr._addElementCallback(e,t),Cr._observerInstance.observe(e)}destroy(){Cr._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){Cr._elementCallbacks||(Cr._elementCallbacks=new Map);let n=Cr._elementCallbacks.get(e);n||(n=new Set,Cr._elementCallbacks.set(e,n)),n.add(t)}static _deleteElementCallback(e,t){const n=Cr._getElementCallbacks(e);n&&(n.delete(t),n.size||(Cr._elementCallbacks.delete(e),Cr._observerInstance.unobserve(e))),Cr._elementCallbacks&&!Cr._elementCallbacks.size&&(Cr._observerInstance=null,Cr._elementCallbacks=null)}static _getElementCallbacks(e){return Cr._elementCallbacks?Cr._elementCallbacks.get(e):null}static _createObserver(){let e;e="function"==typeof Sa.window.ResizeObserver?Sa.window.ResizeObserver:Ar,Cr._observerInstance=new e((e=>{for(const t of e){const e=Cr._getElementCallbacks(t.target);if(e)for(const n of e)n(t)}}))}}Cr._observerInstance=null,Cr._elementCallbacks=null;class Ar{constructor(e){this._callback=e,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const e=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(e,100)};this.listenTo(Sa.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(e,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const e=[];for(const t of this._elements)this._hasRectChanged(t)&&e.push({target:t,contentRect:this._previousRects.get(t)});e.length&&this._callback(e)}_hasRectChanged(e){if(!e.ownerDocument.body.contains(e))return!1;const t=new Sr(e),n=this._previousRects.get(e),o=!n||!n.isEqual(t);return this._previousRects.set(e,t),o}}function Dr(e){return t=>t+e}function Pr(e){const t=e.next();return t.done?null:t.value}je(Ar,Oa);class Lr{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(e){if(this._elements.has(e))throw new s.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(()=>this._focus(e)),{useCapture:!0}),this.listenTo(e,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}je(Lr,Oa),je(Lr,Le);class Nr{constructor(){this._listener=Object.create(Oa)}listenTo(e){this._listener.listenTo(e,"keydown",((e,t)=>{this._listener.fire("_keydown:"+zo(t),t)}))}set(e,t,n={}){const o=Bo(e),a=n.priority;this._listener.listenTo(this._listener,"_keydown:"+o,((e,n)=>{t(n,(()=>{n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:a})}press(e){return!!this._listener.fire("_keydown:"+zo(e),e)}destroy(){this._listener.stopListening()}}class Ir extends ja{constructor(e){super(e),this.document.on("keydown",((e,t)=>{if(this.isEnabled&&((n=t.keyCode)==jo.arrowright||n==jo.arrowleft||n==jo.arrowup||n==jo.arrowdown)){const n=new fo(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,t),n.stop.called&&e.stop()}var n}))}observe(){}}function Or({target:e,viewportOffset:t=0}){const n=Hr(e);let o=n,a=null;for(;o;){let r;r=Vr(o==n?e:a),Fr(r,(()=>Ur(e,o)));const i=Ur(e,o);if(Rr(o,i,t),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function Rr(e,t,n){const o=t.clone().moveBy(0,n),a=t.clone().moveBy(0,-n),r=new Sr(e).excludeScrollbarsAndBorders();if(![a,o].every((e=>r.contains(e)))){let{scrollX:i,scrollY:s}=e;Yr(a,r)?s-=r.top-t.top+n:jr(o,r)&&(s+=t.bottom-r.bottom+n),zr(t,r)?i-=r.left-t.left+n:Br(t,r)&&(i+=t.right-r.right+n),e.scrollTo(i,s)}}function Fr(e,t){const n=Hr(e);let o,a;for(;e!=n.document.body;)a=t(),o=new Sr(e).excludeScrollbarsAndBorders(),o.contains(a)||(Yr(a,o)?e.scrollTop-=o.top-a.top:jr(a,o)&&(e.scrollTop+=a.bottom-o.bottom),zr(a,o)?e.scrollLeft-=o.left-a.left:Br(a,o)&&(e.scrollLeft+=a.right-o.right)),e=e.parentNode}function jr(e,t){return e.bottom>t.bottom}function Yr(e,t){return e.top<t.top}function zr(e,t){return e.left<t.left}function Br(e,t){return e.right>t.right}function Hr(e){return kr(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Vr(e){if(kr(e)){let t=e.commonAncestorContainer;return ra(t)&&(t=t.parentNode),t}return e.parentNode}function Ur(e,t){const n=Hr(e),o=new Sr(e);if(n===t)return o;{let e=n;for(;e!=t;){const t=e.frameElement,n=new Sr(t).excludeScrollbarsAndBorders();o.moveBy(n.left,n.top),e=e.parent}}return o}Object.assign({},{scrollViewportToShowTarget:Or,scrollAncestorsToShowTarget:function(e){Fr(Vr(e),(()=>new Sr(e)))}});class Wr{constructor(e){this.document=new ko(e),this.domConverter=new Pa(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new wa(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Ko(this.document),this.addObserver(Za),this.addObserver(gr),this.addObserver(vr),this.addObserver(nr),this.addObserver(fr),this.addObserver(_r),this.addObserver(Ir),No&&this.addObserver(br),this.document.on("arrowKey",ha,{priority:"low"}),function(e){e.document.on("arrowKey",((t,n)=>function(e,t,n){if(t.keyCode==jo.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),o=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(o||t.shiftKey){const t=e.focusNode,a=e.focusOffset,r=n.domPositionToView(t,a);if(null===r)return;let i=!1;const s=r.getLastMatchingPosition((e=>(e.item.is("uiElement")&&(i=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement")))));if(i){const t=n.viewPositionToDom(s);o?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,n,e.domConverter)),{priority:"low"})}(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0}))}attachDomRoot(e,t="main"){const n=this.document.getRoot(t);n._name=e.tagName.toLowerCase();const o={};for(const{name:t,value:a}of Array.from(e.attributes))o[t]=a,"class"===t?this._writer.addClass(a.split(" "),n):this._writer.setAttribute(t,a,n);this._initialDomRootAttributes.set(e,o);const a=()=>{this._writer.setAttribute("contenteditable",!n.isReadOnly,n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};a(),this.domRoots.set(t,e),this.domConverter.bindElements(e,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(e.ownerDocument),n.on("change:children",((e,t)=>this._renderer.markToSync("children",t))),n.on("change:attributes",((e,t)=>this._renderer.markToSync("attributes",t))),n.on("change:text",((e,t)=>this._renderer.markToSync("text",t))),n.on("change:isReadOnly",(()=>this.change(a))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const n of this._observers.values())n.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach((({name:e})=>t.removeAttribute(e)));const n=this._initialDomRootAttributes.get(t);for(const e in n)t.setAttribute(e,n[e]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[e,n]of this.domRoots)t.observe(n,e);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection(){const e=this.document.selection.getFirstRange();e&&Or({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new s.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){s.a.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change((()=>{}))}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return lo._createAt(e,t)}createPositionAfter(e){return lo._createAfter(e)}createPositionBefore(e){return lo._createBefore(e)}createRange(e,t){return new co(e,t)}createRangeOn(e){return co._createOn(e)}createRangeIn(e){return co._createIn(e)}createSelection(e,t,n){return new ho(e,t,n)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}je(Wr,Le);class qr{constructor(e){this.parent=null,this._attrs=wn(e)}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new s.a("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new s.a("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}getCommonAncestor(e,t={}){const n=this.getAncestors(t),o=e.getAncestors(t);let a=0;for(;n[a]==o[a]&&n[a];)a++;return 0===a?null:n[a-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),n=e.getPath(),o=gn(t,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return t[o]<n[o]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce(((e,t)=>(e[t[0]]=t[1],e)),{})),e}is(e){return"node"===e||"model:node"===e}_clone(){return new qr(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=wn(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}class $r extends qr{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}is(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new $r(this.data,this.getAttributes())}static fromJSON(e){return new $r(e.data,e.attributes)}}class Gr{constructor(e,t,n){if(this.textNode=e,t<0||t>e.offsetSize)throw new s.a("model-textproxy-wrong-offsetintext",this);if(n<0||t+n>e.offsetSize)throw new s.a("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+n),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={includeSelf:!1,parentFirst:!1}){const t=[];let n=e.includeSelf?this:this.parent;for(;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}class Kr{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((e,t)=>e+t.offsetSize),0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return-1==t?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce(((e,t)=>e+t.offsetSize),0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new s.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const n of this._nodes){if(e>=t&&e<t+n.offsetSize)return this.getNodeIndex(n);t+=n.offsetSize}if(t!=e)throw new s.a("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}_insertNodes(e,t){for(const e of t)if(!(e instanceof qr))throw new s.a("model-nodelist-insertnodes-not-node",this);this._nodes.splice(e,0,...t)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map((e=>e.toJSON()))}}class Jr extends qr{constructor(e,t,n){super(t),this.name=e,this._children=new Kr,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(e,t=null){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}findAncestor(e,t={includeSelf:!1}){let n=t.includeSelf?this:this.parent;for(;n;){if(n.name===e)return n;n=n.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?Array.from(this._children).map((e=>e._clone(!0))):null;return new Jr(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(e){return"string"==typeof e?[new $r(e)]:(sn(e)||(e=[e]),Array.from(e).map((e=>"string"==typeof e?new $r(e):e instanceof Gr?new $r(e.data,e.getAttributes()):e)))}(t);for(const e of n)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const e of n)e.parent=null;return n}static fromJSON(e){let t=null;if(e.children){t=[];for(const n of e.children)n.name?t.push(Jr.fromJSON(n)):t.push($r.fromJSON(n))}return new Jr(e.name,e.attributes,t)}}class Xr{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new s.a("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new s.a("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this.position=e.startPosition.clone():this.position=Zr._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(e){let t,n,o,a;do{o=this.position,a=this._visitedParent,({done:t,value:n}=this.next())}while(!t&&e(n));t||(this.position=o,this._visitedParent=a)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};const o=t.parent,a=ei(t,o),r=a||ti(t,o,a);if(r instanceof Jr)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=r),this.position=t,Qr("elementStart",r,e,t,1);if(r instanceof $r){let o;if(this.singleCharacters)o=1;else{let e=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),o=e-t.offset}const a=t.offset-r.startOffset,i=new Gr(r,a,o);return t.offset+=o,this.position=t,Qr("text",i,e,t,o)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Qr("elementEnd",n,e,t)}_previous(){const e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};const o=t.parent,a=ei(t,o),r=a||ni(t,o,a);if(r instanceof Jr)return t.offset--,this.shallow?(this.position=t,Qr("elementStart",r,e,t,1)):(t.path.push(r.maxOffset),this.position=t,this._visitedParent=r,this.ignoreElementEnd?this._previous():Qr("elementEnd",r,e,t));if(r instanceof $r){let o;if(this.singleCharacters)o=1;else{let e=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),o=t.offset-e}const a=t.offset-r.startOffset,i=new Gr(r,a-o,o);return t.offset-=o,this.position=t,Qr("text",i,e,t,o)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Qr("elementStart",n,e,t,1)}}function Qr(e,t,n,o,a){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:o,length:a}}}class Zr{constructor(e,t,n="toNone"){if(!e.is("element")&&!e.is("documentFragment"))throw new s.a("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new s.a("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new s.a("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new s.a("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return ei(this,this.parent)}get nodeAfter(){const e=this.parent;return ti(this,e,ei(this,e))}get nodeBefore(){const e=this.parent;return ni(this,e,ei(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=gn(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e,t={}){t.startPosition=this;const n=new Xr(t);return n.skip(e),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=gn(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}getCommonAncestor(e){const t=this.getAncestors(),n=e.getAncestors();let o=0;for(;t[o]==n[o]&&t[o];)o++;return 0===o?null:t[o-1]}getShiftedBy(e){const t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){let t=null,n=null;switch(this.compareWith(e)){case"same":return!0;case"before":t=Zr._createAt(this),n=Zr._createAt(e);break;case"after":t=Zr._createAt(e),n=Zr._createAt(this);break;default:return!1}let o=t.parent;for(;t.path.length+n.path.length;){if(t.isEqual(n))return!0;if(t.path.length>n.path.length){if(t.offset!==o.maxOffset)return!1;t.path=t.path.slice(0,-1),o=o.parent,t.offset++}else{if(0!==n.offset)return!1;n.path=n.path.slice(0,-1)}}}is(e){return"position"===e||"model:position"===e}hasSameParentAs(e){return this.root===e.root&&"same"==gn(this.getParentPath(),e.getParentPath())}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=Zr._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let n;return t.containsPosition(this)||t.start.isEqual(this)?(n=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(n=n._getTransformedByDeletion(e.deletionPosition,1))):n=this.isEqual(e.deletionPosition)?Zr._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),n}_getTransformedByDeletion(e,t){const n=Zr._createAt(this);if(this.root!=e.root)return n;if("same"==gn(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;n.offset-=t}}else if("prefix"==gn(e.getParentPath(),this.getParentPath())){const o=e.path.length-1;if(e.offset<=this.path[o]){if(e.offset+t>this.path[o])return null;n.path[o]-=t}}return n}_getTransformedByInsertion(e,t){const n=Zr._createAt(this);if(this.root!=e.root)return n;if("same"==gn(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=t);else if("prefix"==gn(e.getParentPath(),this.getParentPath())){const o=e.path.length-1;e.offset<=this.path[o]&&(n.path[o]+=t)}return n}_getTransformedByMove(e,t,n){if(t=t._getTransformedByDeletion(e,n),e.isEqual(t))return Zr._createAt(this);const o=this._getTransformedByDeletion(e,n);return null===o||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):o._getTransformedByInsertion(t,n)}_getCombined(e,t){const n=e.path.length-1,o=Zr._createAt(t);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[n]-e.offset,o.path=[...o.path,...this.path.slice(n+1)],o}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(e,t,n="toNone"){if(e instanceof Zr)return new Zr(e.root,e.path,e.stickiness);{const o=e;if("end"==t)t=o.maxOffset;else{if("before"==t)return this._createBefore(o,n);if("after"==t)return this._createAfter(o,n);if(0!==t&&!t)throw new s.a("model-createpositionat-offset-required",[this,e])}if(!o.is("element")&&!o.is("documentFragment"))throw new s.a("model-position-parent-incorrect",[this,e]);const a=o.getPath();return a.push(t),new this(o.root,a,n)}}static _createAfter(e,t){if(!e.parent)throw new s.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new s.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const n=new Zr(t.graveyard,e.path);return n.stickiness=e.stickiness,n}if(!t.getRoot(e.root))throw new s.a("model-position-fromjson-no-root",t,{rootName:e.root});return new Zr(t.getRoot(e.root),e.path,e.stickiness)}}function ei(e,t){const n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ti(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function ni(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}class oi{constructor(e,t=null){this.start=Zr._createAt(e),this.end=t?Zr._createAt(t):Zr._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Xr({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==gn(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),o=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&o}containsItem(e){const t=Zr._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}is(e){return"range"===e||"model:range"===e}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new oi(this.start,e.start)),this.containsPosition(e.end)&&t.push(new oi(e.end,this.end))):t.push(new oi(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new oi(t,n)}return null}getJoined(e,t=!1){let n=this.isIntersecting(e);if(n||(n=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!n)return null;let o=this.start,a=this.end;return e.start.isBefore(o)&&(o=e.start),e.end.isAfter(a)&&(a=e.end),new oi(o,a)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,n=Zr._createAt(this.start);let o=n.parent;for(;n.path.length>t+1;){const t=o.maxOffset-n.offset;0!==t&&e.push(new oi(n,n.getShiftedBy(t))),n.path=n.path.slice(0,-1),n.offset++,o=o.parent}for(;n.path.length<=this.end.path.length;){const t=this.end.path[n.path.length-1],o=t-n.offset;0!==o&&e.push(new oi(n,n.getShiftedBy(o))),n.offset=t,n.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new Xr(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new Xr(e);for(const e of t)yield e.item}*getPositions(e={}){e.boundaries=this;const t=new Xr(e);yield t.position;for(const e of t)yield e.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new oi(this.start,this.end)]}getTransformedByOperations(e){const t=[new oi(this.start,this.end)];for(const n of e)for(let e=0;e<t.length;e++){const o=t[e].getTransformedByOperation(n);t.splice(e,1,...o),e+=o.length-1}for(let e=0;e<t.length;e++){const n=t[e];for(let o=e+1;o<t.length;o++){const e=t[o];(n.containsRange(e)||e.containsRange(n)||n.isEqual(e))&&t.splice(o,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){const n=e.sourcePosition,o=e.howMany,a=e.targetPosition;return this._getTransformedByMove(n,a,o,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let n=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(n=this.end.getShiftedBy(1)),t.root!=n.root&&(n=this.end.getShiftedBy(-1)),new oi(t,n)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new oi(this.start);let t=this.start._getTransformedByMergeOperation(e),n=this.end._getTransformedByMergeOperation(e);return t.root!=n.root&&(n=this.end.getShiftedBy(-1)),t.isAfter(n)?(e.sourcePosition.isBefore(e.targetPosition)?(t=Zr._createAt(n),t.offset=0):(e.deletionPosition.isEqual(t)||(n=e.deletionPosition),t=e.targetPosition),new oi(t,n)):new oi(t,n)}_getTransformedByInsertion(e,t,n=!1){if(n&&this.containsPosition(e))return[new oi(this.start,e),new oi(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const n=new oi(this.start,this.end);return n.start=n.start._getTransformedByInsertion(e,t),n.end=n.end._getTransformedByInsertion(e,t),[n]}}_getTransformedByMove(e,t,n,o=!1){if(this.isCollapsed){const o=this.start._getTransformedByMove(e,t,n);return[new oi(o)]}const a=oi._createFromPositionAndShift(e,n),r=t._getTransformedByDeletion(e,n);if(this.containsPosition(t)&&!o&&(a.containsPosition(this.start)||a.containsPosition(this.end))){const o=this.start._getTransformedByMove(e,t,n),a=this.end._getTransformedByMove(e,t,n);return[new oi(o,a)]}let i;const s=this.getDifference(a);let l=null;const c=this.getIntersection(a);if(1==s.length?l=new oi(s[0].start._getTransformedByDeletion(e,n),s[0].end._getTransformedByDeletion(e,n)):2==s.length&&(l=new oi(this.start,this.end._getTransformedByDeletion(e,n))),i=l?l._getTransformedByInsertion(r,n,null!==c||o):[],c){const e=new oi(c.start._getCombined(a.start,r),c.end._getCombined(a.start,r));2==i.length?i.splice(1,0,e):i.push(e)}return i}_getTransformedByDeletion(e,t){let n=this.start._getTransformedByDeletion(e,t),o=this.end._getTransformedByDeletion(e,t);return null==n&&null==o?null:(null==n&&(n=e),null==o&&(o=e),new oi(n,o))}static _createFromPositionAndShift(e,t){const n=e,o=e.getShiftedBy(t);return t>0?new this(n,o):new this(o,n)}static _createIn(e){return new this(Zr._createAt(e,0),Zr._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Zr._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new s.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort(((e,t)=>e.start.isAfter(t.start)?1:-1));const n=e.indexOf(t),o=new this(t.start,t.end);if(n>0)for(let t=n-1;e[t].end.isEqual(o.start);t++)o.start=Zr._createAt(e[t].start);for(let t=n+1;t<e.length&&e[t].start.isEqual(o.end);t++)o.end=Zr._createAt(e[t].end);return o}static fromJSON(e,t){return new this(Zr.fromJSON(e.start,t),Zr.fromJSON(e.end,t))}}class ai{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",((e,t)=>{if(t.viewPosition)return;const n=this._modelToViewMapping.get(t.modelPosition.parent);t.viewPosition=this.findPositionIn(n,t.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((e,t)=>{if(t.modelPosition)return;const n=this.findMappedViewAncestor(t.viewPosition),o=this._viewToModelMapping.get(n),a=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,n);t.modelPosition=Zr._createAt(o,a)}),{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e){const t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e))for(const t of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(t);this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const n=this._markerNameToElements.get(t)||new Set;n.add(e);const o=this._elementToMarkerNames.get(e)||new Set;o.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,o)}unbindElementFromMarkerName(e,t){const n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));const o=this._elementToMarkerNames.get(e);o&&(o.delete(t),0==o.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new oi(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new co(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={isPhantom:!1}){const n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const n=new Set;for(const e of t)if(e.is("attributeElement"))for(const t of e.getElementsWithSameId())n.add(t);else n.add(e);return n}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let o=0;for(let n=0;n<t;n++)o+=this.getModelLength(e.getChild(n));return o}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const n of e.getChildren())t+=this.getModelLength(n);return t}}findPositionIn(e,t){let n,o=0,a=0,r=0;if(e.is("$text"))return new lo(e,t);for(;a<t;)n=e.getChild(r),o=this.getModelLength(n),a+=o,r++;return a==t?this._moveViewPositionToTextNode(new lo(e,r)):this.findPositionIn(n,t-(a-o))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,n=e.nodeAfter;return t instanceof bn?new lo(t,t.data.length):n instanceof bn?new lo(n,0):e}}je(ai,d);class ri{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=ii(t),e instanceof Gr&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=ii(t),e instanceof Gr&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=ii(t),e instanceof Gr&&(e=this._getSymbolForTextProxy(e));const n=this._consumable.get(e);if(void 0===n)return null;const o=n.get(t);return void 0===o?null:o}revert(e,t){t=ii(t),e instanceof Gr&&(e=this._getSymbolForTextProxy(e));const n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}_getSymbolForTextProxy(e){let t=null;const n=this._textProxyRegistry.get(e.startOffset);if(n){const o=n.get(e.endOffset);o&&(t=o.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}_addSymbolForTextProxy(e,t,n){const o=Symbol("textProxySymbol");let a,r;return a=this._textProxyRegistry.get(e),a||(a=new Map,this._textProxyRegistry.set(e,a)),r=a.get(t),r||(r=new Map,a.set(t,r)),r.set(n,o),o}}function ii(e){const t=e.split(":");return"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}class si{constructor(e){this.conversionApi=Object.assign({dispatcher:this},e),this._reconversionEventsMapping=new Map}convertChanges(e,t,n){for(const t of e.getMarkersToRemove())this.convertMarkerRemove(t.name,t.range,n);const o=this._mapChangesWithAutomaticReconversion(e);for(const e of o)"insert"===e.type?this.convertInsert(oi._createFromPositionAndShift(e.position,e.length),n):"remove"===e.type?this.convertRemove(e.position,e.length,e.name,n):"reconvert"===e.type?this.reconvertElement(e.element,n):this.convertAttribute(e.range,e.attributeKey,e.attributeOldValue,e.attributeNewValue,n);for(const e of this.conversionApi.mapper.flushUnboundMarkerNames()){const o=t.get(e).getRange();this.convertMarkerRemove(e,o,n),this.convertMarkerAdd(e,o,n)}for(const t of e.getMarkersToAdd())this.convertMarkerAdd(t.name,t.range,n)}convertInsert(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);for(const t of Array.from(e).map(ci))this._convertInsertWithAttributes(t);this._clearConversionApi()}convertRemove(e,t,n,o){this.conversionApi.writer=o,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}convertAttribute(e,t,n,o,a){this.conversionApi.writer=a,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);for(const a of e){const e={item:a.item,range:oi._createFromPositionAndShift(a.previousPosition,a.length),attributeKey:t,attributeOldValue:n,attributeNewValue:o};this._testAndFire("attribute:"+t,e)}this._clearConversionApi()}reconvertElement(e,t){const n=oi._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);const o=this.conversionApi.mapper,a=o.toViewElement(e);t.remove(a),this._convertInsertWithAttributes({item:e,range:n});const r=o.toViewElement(e);for(const n of oi._createIn(e)){const{item:e}=n,a=di(e,o);a?a.root!==r.root&&t.move(t.createRangeOn(a),o.toViewPosition(Zr._createBefore(e))):this._convertInsertWithAttributes(ci(n))}o.unbindViewElement(a),this._clearConversionApi()}convertSelection(e,t,n){const o=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,o),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){for(const t of o){const n=t.getRange();if(!li(e.getFirstPosition(),t,this.conversionApi.mapper))continue;const o={item:e,markerName:t.name,markerRange:n};this.conversionApi.consumable.test(e,"addMarker:"+t.name)&&this.fire("addMarker:"+t.name,o,this.conversionApi)}for(const t of e.getAttributeKeys()){const n={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};this.conversionApi.consumable.test(e,"attribute:"+n.attributeKey)&&this.fire("attribute:"+n.attributeKey+":$text",n,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerAdd(e,t,n){if("$graveyard"==t.root.rootName)return;this.conversionApi.writer=n;const o="addMarker:"+e,a=new ri;if(a.add(t,o),this.conversionApi.consumable=a,this.fire(o,{markerName:e,markerRange:t},this.conversionApi),a.test(t,o)){this.conversionApi.consumable=this._createConsumableForRange(t,o);for(const n of t.getItems()){if(!this.conversionApi.consumable.test(n,o))continue;const a={item:n,range:oi._createOn(n),markerName:e,markerRange:t};this.fire(o,a,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerRemove(e,t,n){"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}_mapReconversionTriggerEvent(e,t){this._reconversionEventsMapping.set(t,e)}_createInsertConsumable(e){const t=new ri;for(const n of e){const e=n.item;t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}return t}_createConsumableForRange(e,t){const n=new ri;for(const o of e.getItems())n.add(o,t);return n}_createSelectionConsumable(e,t){const n=new ri;n.add(e,"selection");for(const o of t)n.add(e,"addMarker:"+o.name);for(const t of e.getAttributeKeys())n.add(e,"attribute:"+t);return n}_testAndFire(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){return`${e}:${t.item.name||"$text"}`}(e,t),t,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}_convertInsertWithAttributes(e){this._testAndFire("insert",e);for(const t of e.item.getAttributeKeys())e.attributeKey=t,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(t),this._testAndFire("attribute:"+t,e)}_mapChangesWithAutomaticReconversion(e){const t=new Set,n=[];for(const o of e.getChanges()){const e=o.position||o.range.start,a=e.parent;if(ei(e,a)){n.push(o);continue}const r="attribute"===o.type?ti(e,a,null):a;if(r.is("$text")){n.push(o);continue}let i;if(i="attribute"===o.type?`attribute:${o.attributeKey}:${r.name}`:`${o.type}:${o.name}`,this._isReconvertTriggerEvent(i,r.name)){if(t.has(r))continue;t.add(r),n.push({type:"reconvert",element:r})}else n.push(o)}return n}_isReconvertTriggerEvent(e,t){return this._reconversionEventsMapping.get(e)===t}}function li(e,t,n){const o=t.getRange(),a=Array.from(e.getAncestors());return a.shift(),a.reverse(),!a.some((e=>{if(o.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function ci(e){return{item:e.item,range:oi._createFromPositionAndShift(e.previousPosition,e.length)}}function di(e,t){if(e.is("textProxy")){const n=t.toViewPosition(Zr._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}je(si,d);class ui{constructor(e,t,n){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,e&&this.setTo(e,t,n)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let n=!1;for(const o of e._ranges)if(t.isEqual(o)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new oi(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new oi(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new oi(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(e,t,n){if(null===e)this._setRanges([]);else if(e instanceof ui)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof oi)this._setRanges([e],!!t&&!!t.backward);else if(e instanceof Zr)this._setRanges([new oi(e)]);else if(e instanceof qr){const o=!!n&&!!n.backward;let a;if("in"==t)a=oi._createIn(e);else if("on"==t)a=oi._createOn(e);else{if(void 0===t)throw new s.a("model-selection-setto-required-second-parameter",[this,e]);a=new oi(Zr._createAt(e,t))}this._setRanges([a],o)}else{if(!sn(e))throw new s.a("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,t&&!!t.backward)}}_setRanges(e,t=!1){const n=(e=Array.from(e)).some((t=>{if(!(t instanceof oi))throw new s.a("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every((e=>!e.isEqual(t)))}));if(e.length!==this._ranges.length||n){this._removeAllRanges();for(const t of e)this._pushRange(t);this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0})}}setFocus(e,t){if(null===this.anchor)throw new s.a("model-selection-setfocus-no-ranges",[this,e]);const n=Zr._createAt(e,t);if("same"==n.compareWith(this.focus))return;const o=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(o)?(this._pushRange(new oi(n,o)),this._lastRangeBackward=!0):(this._pushRange(new oi(o,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(e){return"selection"===e||"model:selection"===e}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const n=mi(t.start,e);n&&fi(n,t)&&(yield n);for(const n of t.getWalker()){const o=n.item;"elementEnd"==n.type&&hi(o,e,t)&&(yield o)}const o=mi(t.end,e);o&&!t.end.isTouching(Zr._createAt(o,0))&&fi(o,t)&&(yield o)}}containsEntireContent(e=this.anchor.root){const t=Zr._createAt(e,0),n=Zr._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new oi(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new s.a("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function pi(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function hi(e,t,n){return pi(e,t)&&fi(e,n)}function mi(e,t){const n=e.parent.root.document.model.schema,o=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let a=!1;const r=o.find((e=>!a&&(a=n.isLimit(e),!a&&pi(e,t))));return o.forEach((e=>t.add(e))),r}function fi(e,t){const n=function(e){const t=e.root.document.model.schema;let n=e.parent;for(;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(oi._createOn(n),!0)}je(ui,d);class gi extends oi{constructor(e,t){super(e,t),vi.call(this)}detach(){this.stopListening()}is(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}toRange(){return new oi(this.start,this.end)}static fromRange(e){return new gi(e.start,e.end)}}function vi(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&_i.call(this,n)}),{priority:"low"})}function _i(e){const t=this.getTransformedByOperation(e),n=oi._createFromRanges(t),o=!n.isEqual(this),a=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let r=null;if(o){"$graveyard"==n.root.rootName&&(r="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",t,{deletionPosition:r})}else a&&this.fire("change:content",this.toRange(),{deletionPosition:r})}je(gi,d);class bi{constructor(e){this._selection=new yi(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}is(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(e,t,n){this._selection.setTo(e,t,n)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return"selection:"+e}static _isStoreAttributeKey(e){return e.startsWith("selection:")}}je(bi,d);class yi extends ui{constructor(e){super(),this.markers=new ln({idProperty:"name"}),this._model=e.model,this._document=e,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const e of this.getRanges())if(!this._document._validateSelectionRange(e))throw new s.a("document-selection-wrong-position",this,{range:e})})),this.listenTo(this._model.markers,"update",((e,t,n,o)=>{this._updateMarker(t,o)})),this.listenTo(this._document,"change",((e,t)=>{!function(e,t){const n=e.document.differ;for(const o of n.getChanges()){if("insert"!=o.type)continue;const n=o.position.parent;o.length===n.maxOffset&&e.enqueueChange(t,(e=>{const t=Array.from(n.getAttributeKeys()).filter((e=>e.startsWith("selection:")));for(const o of t)e.removeAttribute(o,n)}))}}(this._model,t)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(e,t,n){super.setTo(e,t,n),this._updateAttributes(!0),this._updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this._updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=r();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new s.a("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this._updateMarkers()}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=gi.fromRange(e);return t.on("change:range",((e,n,o)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=o.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}})),t}_updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const t of this._model.markers){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const o=t.getRange();for(const n of this.getRanges())o.containsRange(n,!n.isCollapsed)&&e.push(t)}const n=Array.from(this.markers);for(const n of e)this.markers.has(n)||(this.markers.add(n),t=!0);for(const n of Array.from(this.markers))e.includes(n)||(this.markers.remove(n),t=!0);t&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(e,t){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let o=!1;const a=Array.from(this.markers),r=this.markers.has(e);if(t){let n=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){n=!0;break}n&&!r?(this.markers.add(e),o=!0):!n&&r&&(this.markers.remove(e),o=!0)}else r&&(this.markers.remove(e),o=!0);o&&this.fire("change:marker",{oldMarkers:a,directChange:!1})}_updateAttributes(e){const t=wn(this._getSurroundingAttributes()),n=wn(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[e,t]of this._attributePriority)"low"==t&&(this._attrs.delete(e),this._attributePriority.delete(e));this._setAttributesTo(t);const o=[];for(const[e,t]of this.getAttributes())n.has(e)&&n.get(e)===t||o.push(e);for(const[e]of n)this.hasAttribute(e)||o.push(e);o.length>0&&this.fire("change:attribute",{attributeKeys:o,directChange:!1})}_setAttribute(e,t,n=!0){const o=n?"normal":"low";return("low"!=o||"normal"!=this._attributePriority.get(e))&&super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,o),!0)}_removeAttribute(e,t=!0){const n=t?"normal":"low";return!("low"==n&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,n),!super.hasAttribute(e)||(this._attrs.delete(e),0)))}_setAttributesTo(e){const t=new Set;for(const[t,n]of this.getAttributes())e.get(t)!==n&&this._removeAttribute(t,!1);for(const[n,o]of e)this._setAttribute(n,o,!1)&&t.add(n);return t}*_getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith("selection:")){const n=t.substr(10);yield[n,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;let n=null;if(this.isCollapsed){const o=e.textNode?e.textNode:e.nodeBefore,a=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=wi(o)),n||(n=wi(a)),!this.isGravityOverridden&&!n){let e=o;for(;e&&!t.isInline(e)&&!n;)e=e.previousSibling,n=wi(e)}if(!n){let e=a;for(;e&&!t.isInline(e)&&!n;)e=e.nextSibling,n=wi(e)}n||(n=this._getStoredAttributes())}else{const e=this.getFirstRange();for(const o of e){if(o.item.is("element")&&t.isObject(o.item))break;if("text"==o.type){n=o.item.getAttributes();break}}}return n}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function wi(e){return e instanceof Gr||e instanceof $r?e.getAttributes():null}class ki{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}var xi=function(e){return en(e,5)};class Ei extends ki{elementToElement(e){return this.add(function(e){return(e=xi(e)).view=Ti(e.view,"container"),t=>{var n;if(t.on("insert:"+e.model,(n=e.view,(e,t,o)=>{const a=n(t.item,o);if(!a)return;if(!o.consumable.consume(t.item,"insert"))return;const r=o.mapper.toViewPosition(t.range.start);o.mapper.bindElements(t.item,a),o.writer.insert(r,a)}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes)for(const n of e.triggerBy.attributes)t._mapReconversionTriggerEvent(e.model,`attribute:${n}:${e.model}`);if(e.triggerBy.children)for(const n of e.triggerBy.children)t._mapReconversionTriggerEvent(e.model,"insert:"+n),t._mapReconversionTriggerEvent(e.model,"remove:"+n)}}}(e))}attributeToElement(e){return this.add(function(e){let t="attribute:"+((e=xi(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values)for(const t of e.model.values)e.view[t]=Ti(e.view[t],"attribute");else e.view=Ti(e.view,"attribute");const n=Ci(e);return o=>{o.on(t,function(e){return(t,n,o)=>{const a=e(n.attributeOldValue,o),r=e(n.attributeNewValue,o);if(!a&&!r)return;if(!o.consumable.consume(n.item,t.name))return;const i=o.writer,s=i.document.selection;if(n.item instanceof ui||n.item instanceof bi)i.wrap(s.getFirstRange(),r);else{let e=o.mapper.toViewRange(n.range);null!==n.attributeOldValue&&a&&(e=i.unwrap(e,a)),null!==n.attributeNewValue&&r&&i.wrap(e,r)}}}(n),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t="attribute:"+((e=xi(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values)for(const t of e.model.values)e.view[t]=Ai(e.view[t]);else e.view=Ai(e.view);const n=Ci(e);return o=>{var a;o.on(t,(a=n,(e,t,n)=>{const o=a(t.attributeOldValue,n),r=a(t.attributeNewValue,n);if(!o&&!r)return;if(!n.consumable.consume(t.item,e.name))return;const i=n.mapper.toViewElement(t.item),l=n.writer;if(!i)throw new s.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&o)if("class"==o.key){const e=dn(o.value);for(const t of e)l.removeClass(t,i)}else if("style"==o.key){const e=Object.keys(o.value);for(const t of e)l.removeStyle(t,i)}else l.removeAttribute(o.key,i);if(null!==t.attributeNewValue&&r)if("class"==r.key){const e=dn(r.value);for(const t of e)l.addClass(t,i)}else if("style"==r.key){const e=Object.keys(r.value);for(const t of e)l.setStyle(t,r.value[t],i)}else l.setAttribute(r.key,r.value,i)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){return(e=xi(e)).view=Ti(e.view,"ui"),t=>{var n;t.on("addMarker:"+e.model,(n=e.view,(e,t,o)=>{t.isOpening=!0;const a=n(t,o);t.isOpening=!1;const r=n(t,o);if(!a||!r)return;const i=t.markerRange;if(i.isCollapsed&&!o.consumable.consume(i,e.name))return;for(const t of i)if(!o.consumable.consume(t.item,e.name))return;const s=o.mapper,l=o.writer;l.insert(s.toViewPosition(i.start),a),o.mapper.bindElementToMarker(a,t.markerName),i.isCollapsed||(l.insert(s.toViewPosition(i.end),r),o.mapper.bindElementToMarker(r,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e.view,(e,t,n)=>{const o=n.mapper.markerNameToElements(t.markerName);if(o){for(const e of o)n.mapper.unbindElementFromMarkerName(e,t.markerName),n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var n;t.on("addMarker:"+e.model,(n=e.view,(e,t,o)=>{if(!t.item)return;if(!(t.item instanceof ui||t.item instanceof bi||t.item.is("$textProxy")))return;const a=Di(n,t,o);if(!a)return;if(!o.consumable.consume(t.item,e.name))return;const r=o.writer,i=Si(r,a),s=r.document.selection;if(t.item instanceof ui||t.item instanceof bi)r.wrap(s.getFirstRange(),i,s);else{const e=o.mapper.toViewRange(t.range),n=r.wrap(e,i);for(const e of n.getItems())if(e.is("attributeElement")&&e.isSimilar(i)){o.mapper.bindElementToMarker(e,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return(t,n,o)=>{if(!n.item)return;if(!(n.item instanceof Jr))return;const a=Di(e,n,o);if(!a)return;if(!o.consumable.test(n.item,t.name))return;const r=o.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){o.consumable.consume(n.item,t.name);for(const e of oi._createIn(n.item))o.consumable.consume(e.item,t.name);r.getCustomProperty("addHighlight")(r,a,o.writer),o.mapper.bindElementToMarker(r,n.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return(t,n,o)=>{if(n.markerRange.isCollapsed)return;const a=Di(e,n,o);if(!a)return;const r=Si(o.writer,a),i=o.mapper.markerNameToElements(n.markerName);if(i){for(const e of i)o.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("attributeElement")?o.writer.unwrap(o.writer.createRangeOn(e),r):e.getCustomProperty("removeHighlight")(e,a.id,o.writer);o.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){const t=(e=xi(e)).model;return e.view||(e.view=n=>({group:t,name:n.substr(e.model.length+1)})),n=>{var o;n.on("addMarker:"+t,(o=e.view,(e,t,n)=>{const a=o(t.markerName,n);if(!a)return;const r=t.markerRange;n.consumable.consume(r,e.name)&&(Mi(r,!1,n,t,a),Mi(r,!0,n,t,a),e.stop())}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return(t,n,o)=>{const a=e(n.markerName,o);if(!a)return;const r=o.mapper.markerNameToElements(n.markerName);if(r){for(const e of r)o.mapper.unbindElementFromMarkerName(e,n.markerName),e.is("containerElement")?(i(`data-${a.group}-start-before`,e),i(`data-${a.group}-start-after`,e),i(`data-${a.group}-end-before`,e),i(`data-${a.group}-end-after`,e)):o.writer.clear(o.writer.createRangeOn(e),e);o.writer.clearClonedElementsGroup(n.markerName),t.stop()}function i(e,t){if(t.hasAttribute(e)){const n=new Set(t.getAttribute(e).split(","));n.delete(a.name),0==n.size?o.writer.removeAttribute(e,t):o.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}function Si(e,t){const n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),"number"==typeof t.priority&&(n._priority=t.priority),n._id=t.id,n}function Mi(e,t,n,o,a){const r=t?e.start:e.end,i=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,s=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(i||s){let e,r;t&&i||!t&&!s?(e=i,r=!0):(e=s,r=!1);const l=n.mapper.toViewElement(e);if(l)return void function(e,t,n,o,a,r){const i=`data-${r.group}-${t?"start":"end"}-${n?"before":"after"}`,s=e.hasAttribute(i)?e.getAttribute(i).split(","):[];s.unshift(r.name),o.writer.setAttribute(i,s.join(","),e),o.mapper.bindElementToMarker(e,a.markerName)}(l,t,r,n,o,a)}!function(e,t,n,o,a){const r=`${a.group}-${t?"start":"end"}`,i=a.name?{name:a.name}:null,s=n.writer.createUIElement(r,i);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,o.markerName)}(n.mapper.toViewPosition(r),t,n,o,a)}function Ti(e,t){return"function"==typeof e?e:(n,o)=>function(e,t,n){let o;"string"==typeof e&&(e={name:e});const a=t.writer,r=Object.assign({},e.attributes);if("container"==n)o=a.createContainerElement(e.name,r);else if("attribute"==n){const t={priority:e.priority||xo.DEFAULT_PRIORITY};o=a.createAttributeElement(e.name,r,t)}else o=a.createUIElement(e.name,r);if(e.styles){const t=Object.keys(e.styles);for(const n of t)a.setStyle(n,e.styles[n],o)}if(e.classes){const t=e.classes;if("string"==typeof t)a.addClass(t,o);else for(const e of t)a.addClass(e,o)}return o}(e,o,t)}function Ci(e){return e.model.values?(t,n)=>{const o=e.view[t];return o?o(t,n):null}:e.view}function Ai(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function Di(e,t,n){const o="function"==typeof e?e(t,n):e;return o?(o.priority||(o.priority=10),o.id||(o.id=t.markerName),o):null}function Pi(e){const{schema:t,document:n}=e.model;for(const o of n.getRootNames()){const a=n.getRoot(o);if(a.isEmpty&&!t.checkChild(a,"$text")&&t.checkChild(a,"paragraph"))return e.insertElement("paragraph",a),!0}return!1}function Li(e,t,n){const o=n.createContext(e);return!!n.checkChild(o,"paragraph")&&!!n.checkChild(o.push("paragraph"),t)}function Ni(e,t){const n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}class Ii extends ki{elementToElement(e){return this.add(Oi(e))}elementToAttribute(e){return this.add(function(e){ji(e=xi(e));const t=Yi(e,!1),n=Ri(e.view),o=n?"element:"+n:"element";return n=>{n.on(o,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){let t=null;("string"==typeof(e=xi(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let n;if("class"==t||"style"==t)n={["class"==t?"classes":"styles"]:e.view.value};else{const o=void 0===e.view.value?/[\s\S]*/:e.view.value;n={attributes:{[t]:o}}}return e.view.name&&(n.name=e.view.name),e.view=n,t}(e)),ji(e,t);const n=Yi(e,!0);return t=>{t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){return function(e){const t=e.model;e.model=(e,n)=>{const o="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":o})}}(e=xi(e)),Oi(e)}(e))}dataToMarker(e){return this.add(function(e){(e=xi(e)).model||(e.model=t=>t?e.view+":"+t:e.view);const t=Fi(zi(e,"start")),n=Fi(zi(e,"end"));return o=>{o.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),o.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});const a=i.get("low"),r=i.get("highest"),s=i.get(e.converterPriority)/r;o.on("element",function(e){return(t,n,o)=>{const a="data-"+e.view;function r(t,a){for(const r of a){const a=e.model(r,o),i=o.writer.createElement("$marker",{"data-name":a});o.writer.insert(i,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}(o.consumable.test(n.viewItem,{attributes:a+"-end-after"})||o.consumable.test(n.viewItem,{attributes:a+"-start-after"})||o.consumable.test(n.viewItem,{attributes:a+"-end-before"})||o.consumable.test(n.viewItem,{attributes:a+"-start-before"}))&&(n.modelRange||Object.assign(n,o.convertChildren(n.viewItem,n.modelCursor)),o.consumable.consume(n.viewItem,{attributes:a+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(a+"-end-after").split(",")),o.consumable.consume(n.viewItem,{attributes:a+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(a+"-start-after").split(",")),o.consumable.consume(n.viewItem,{attributes:a+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(a+"-end-before").split(",")),o.consumable.consume(n.viewItem,{attributes:a+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(a+"-start-before").split(",")))}}(e),{priority:a+s})}}(e))}}function Oi(e){const t=Fi(e=xi(e)),n=Ri(e.view),o=n?"element:"+n:"element";return n=>{n.on(o,t,{priority:e.converterPriority||"normal"})}}function Ri(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function Fi(e){const t=new kn(e.view);return(n,o,a)=>{const r=t.match(o.viewItem);if(!r)return;const i=r.match;if(i.name=!0,!a.consumable.test(o.viewItem,i))return;const s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,o.viewItem,a);s&&a.safeInsert(s,o.modelCursor)&&(a.consumable.consume(o.viewItem,i),a.convertChildren(o.viewItem,s),a.updateConversionResult(s,o))}}function ji(e,t=null){const n=null===t||(e=>e.getAttribute(t)),o="object"!=typeof e.model?e.model:e.model.key,a="object"!=typeof e.model||void 0===e.model.value?n:e.model.value;e.model={key:o,value:a}}function Yi(e,t){const n=new kn(e.view);return(o,a,r)=>{const i=n.match(a.viewItem);if(!i)return;if(function(e,t){const n="function"==typeof e?e(t):e;return!("object"==typeof n&&!Ri(n)||n.classes||n.attributes||n.styles)}(e.view,a.viewItem)?i.match.name=!0:delete i.match.name,!r.consumable.test(a.viewItem,i.match))return;const s=e.model.key,l="function"==typeof e.model.value?e.model.value(a.viewItem,r):e.model.value;null!==l&&(a.modelRange||Object.assign(a,r.convertChildren(a.viewItem,a.modelCursor)),function(e,t,n,o){let a=!1;for(const r of Array.from(e.getItems({shallow:n})))o.schema.checkAttribute(r,t.key)&&(a=!0,r.hasAttribute(t.key)||o.writer.setAttribute(t.key,t.value,r));return a}(a.modelRange,{key:s,value:l},t,r)&&r.consumable.consume(a.viewItem,i.match))}}function zi(e,t){const n={};return n.view=e.view+"-"+t,n.model=(t,n)=>{const o=t.getAttribute("name"),a=e.model(o,n);return n.writer.createElement("$marker",{"data-name":a})},n}class Bi{constructor(e,t){this.model=e,this.view=new Wr(t),this.mapper=new ai,this.downcastDispatcher=new si({mapper:this.mapper,schema:e.schema});const n=this.model.document,o=n.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((e=>{this.downcastDispatcher.convertChanges(n.differ,a,e),this.downcastDispatcher.convertSelection(o,a,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(n,o)=>{const a=o.newSelection,r=[];for(const e of a.getRanges())r.push(t.toModelRange(e));const i=e.createSelection(r,{backward:a.isBackward});i.isEqual(e.document.selection)||e.change((e=>{e.setSelection(i)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",((e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const o=n.writer,a=n.mapper.toViewPosition(t.range.start),r=o.createText(t.item.data);o.insert(a,r)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((e,t,n)=>{const o=n.mapper.toViewPosition(t.position),a=t.position.getShiftedBy(t.length),r=n.mapper.toViewPosition(a,{isPhantom:!0}),i=n.writer.createRange(o,r),s=n.writer.remove(i.getTrimmed());for(const e of n.writer.createRangeIn(s).getItems())n.mapper.unbindViewElement(e)}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,n)=>{const o=n.writer,a=o.document.selection;for(const e of a.getRanges())e.isCollapsed&&e.end.parent.isAttached()&&n.writer.mergeAttributes(e.start);o.setSelection(null)}),{priority:"high"}),this.downcastDispatcher.on("selection",((e,t,n)=>{const o=t.selection;if(o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const a=[];for(const e of o.getRanges()){const t=n.mapper.toViewRange(e);a.push(t)}n.writer.setSelection(a,{backward:o.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((e,t,n)=>{const o=t.selection;if(!o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;const a=n.writer,r=o.getFirstPosition(),i=n.mapper.toViewPosition(r),s=a.breakAttributes(i);a.setSelection(s)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((e=>{if("$graveyard"==e.rootName)return null;const t=new io(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t}))}destroy(){this.view.destroy(),this.stopListening()}}je(Bi,Le);class Hi{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const n=this.get(e);if(!n)throw new s.a("commandcollection-command-not-found",this,{commandName:e});return n.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class Vi{constructor(){this._consumables=new Map}add(e,t){let n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Ui(e),this._consumables.set(e,n)),n.add(t))}test(e,t){const n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},n=e.getAttributeKeys();for(const e of n)"style"!=e&&"class"!=e&&t.attributes.push(e);const o=e.getClassNames();for(const e of o)t.classes.push(e);const a=e.getStyleNames();for(const e of a)t.styles.push(e);return t}static createFrom(e,t){if(t||(t=new Vi(e)),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,Vi.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const n of e.getChildren())t=Vi.createFrom(n,t);return t}}class Ui{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t in this._consumables)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t in this._consumables)if(t in e){const n=this._test(t,e[t]);if(!0!==n)return n}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t in this._consumables)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t in this._consumables)t in e&&this._revert(t,e[t])}_add(e,t){const n=ue(t)?t:[t],o=this._consumables[e];for(const t of n){if("attributes"===e&&("class"===t||"style"===t))throw new s.a("viewconsumable-invalid-attribute",this);if(o.set(t,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))o.set(e,!0)}}_test(e,t){const n=ue(t)?t:[t],o=this._consumables[e];for(const t of n)if("attributes"!==e||"class"!==t&&"style"!==t){const e=o.get(t);if(void 0===e)return null;if(!e)return!1}else{const e="class"==t?"classes":"styles",n=this._test(e,[...this._consumables[e].keys()]);if(!0!==n)return n}return!0}_consume(e,t){const n=ue(t)?t:[t],o=this._consumables[e];for(const t of n)if("attributes"!==e||"class"!==t&&"style"!==t){if(o.set(t,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(t))o.set(e,!1)}else{const e="class"==t?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const n=ue(t)?t:[t],o=this._consumables[e];for(const t of n)if("attributes"!==e||"class"!==t&&"style"!==t)!1===o.get(t)&&o.set(t,!0);else{const e="class"==t?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class Wi{constructor(){this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((e,t)=>{t[0]=new qi(t[0])}),{priority:"highest"}),this.on("checkChild",((e,t)=>{t[0]=new qi(t[0]),t[1]=this.getDefinition(t[1])}),{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new s.a("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new s.a("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){const t=this.getDefinition(e);return!(!t||!t.isSelectable&&!t.isObject)}isContent(e){const t=this.getDefinition(e);return!(!t||!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}checkMerge(e,t=null){if(e instanceof Zr){const t=e.nodeBefore,n=e.nodeAfter;if(!(t instanceof Jr))throw new s.a("schema-check-merge-no-element-before",this);if(!(n instanceof Jr))throw new s.a("schema-check-merge-no-element-after",this);return this.checkMerge(t,n)}for(const n of t.getChildren())if(!this.checkChild(e,n))return!1;return!0}addChildCheck(e){this.on("checkChild",((t,[n,o])=>{if(!o)return;const a=e(n,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",((t,[n,o])=>{const a=e(n,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(t=e instanceof Zr?e.parent:(e instanceof oi?[e]:Array.from(e.getRanges())).reduce(((e,t)=>{const n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const n=[...e.getFirstPosition().getAncestors(),new $r("",e.getAttributes())];return this.checkAttribute(n,t)}{const n=e.getRanges();for(const e of n)for(const n of e)if(this.checkAttribute(n.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const n of e)yield*this._getValidRangesForRange(n,t)}getNearestSelectionRange(e,t="both"){if(this.checkChild(e,"$text"))return new oi(e);let n,o;const a=e.getAncestors().reverse().find((e=>this.isLimit(e)))||e.root;"both"!=t&&"backward"!=t||(n=new Xr({boundaries:oi._createIn(a),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(o=new Xr({boundaries:oi._createIn(a),startPosition:e}));for(const e of function*(e,t){let n=!1;for(;!n;){if(n=!0,e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}}}(n,o)){const t=e.walker==n?"elementEnd":"elementStart",o=e.value;if(o.type==t&&this.isObject(o.item))return oi._createOn(o.item);if(this.checkChild(o.nextPosition,"$text"))return new oi(o.nextPosition)}return null}findAllowedParent(e,t){let n=e.parent;for(;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}removeDisallowedAttributes(e,t){for(const n of e)if(n.is("$text"))rs(this,n,t);else{const e=oi._createIn(n).getPositions();for(const n of e)rs(this,n.nodeBefore||n.parent,t)}}createContext(e){return new qi(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,n=Object.keys(t);for(const o of n)e[o]=$i(t[o],o);for(const t of n)Gi(e,t);for(const t of n)Ki(e,t);for(const t of n)Ji(e,t);for(const t of n)Xi(e,t),Qi(e,t);for(const t of n)Zi(e,t),es(e,t),ts(e,t);this._compiledDefinitions=e}_checkContextMatch(e,t,n=t.length-1){const o=t.getItem(n);if(e.allowIn.includes(o.name)){if(0==n)return!0;{const e=this.getDefinition(o);return this._checkContextMatch(e,t,n-1)}}return!1}*_getValidRangesForRange(e,t){let n=e.start,o=e.start;for(const a of e.getItems({shallow:!0}))a.is("element")&&(yield*this._getValidRangesForRange(oi._createIn(a),t)),this.checkAttribute(a,t)||(n.isEqual(o)||(yield new oi(n,o)),n=Zr._createAfter(a)),o=Zr._createAfter(a);n.isEqual(o)||(yield new oi(n,o))}}je(Wi,Le);class qi{constructor(e){if(e instanceof qi)return e;"string"==typeof e?e=[e]:Array.isArray(e)||(e=e.getAncestors({includeSelf:!0})),this._items=e.map(as)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new qi([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map((e=>e.name))}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function $i(e,t){const n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(const n of e){const e=Object.keys(n).filter((e=>e.startsWith("is")));for(const o of e)t[o]=n[o]}}(e,n),ns(e,n,"allowIn"),ns(e,n,"allowContentOf"),ns(e,n,"allowWhere"),ns(e,n,"allowAttributes"),ns(e,n,"allowAttributesOf"),ns(e,n,"allowChildren"),ns(e,n,"inheritTypesFrom"),function(e,t){for(const n of e){const e=n.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,n),n}function Gi(e,t){const n=e[t];for(const o of n.allowChildren){const n=e[o];n&&n.allowIn.push(t)}n.allowChildren.length=0}function Ki(e,t){for(const n of e[t].allowContentOf)e[n]&&os(e,n).forEach((e=>{e.allowIn.push(t)}));delete e[t].allowContentOf}function Ji(e,t){for(const n of e[t].allowWhere){const o=e[n];if(o){const n=o.allowIn;e[t].allowIn.push(...n)}}delete e[t].allowWhere}function Xi(e,t){for(const n of e[t].allowAttributesOf){const o=e[n];if(o){const n=o.allowAttributes;e[t].allowAttributes.push(...n)}}delete e[t].allowAttributesOf}function Qi(e,t){const n=e[t];for(const t of n.inheritTypesFrom){const o=e[t];if(o){const e=Object.keys(o).filter((e=>e.startsWith("is")));for(const t of e)t in n||(n[t]=o[t])}}delete n.inheritTypesFrom}function Zi(e,t){const n=e[t],o=n.allowIn.filter((t=>e[t]));n.allowIn=Array.from(new Set(o))}function es(e,t){const n=e[t];for(const o of n.allowIn)e[o].allowChildren.push(t)}function ts(e,t){const n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function ns(e,t,n){for(const o of e)"string"==typeof o[n]?t[n].push(o[n]):Array.isArray(o[n])&&t[n].push(...o[n])}function os(e,t){const n=e[t];return(o=e,Object.keys(o).map((e=>o[e]))).filter((e=>e.allowIn.includes(n.name)));var o}function as(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}function rs(e,t,n){for(const o of t.getAttributeKeys())e.checkAttribute(t,o)||n.removeAttribute(o,t)}class is{constructor(e={}){this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},e),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(e,t,n=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let n;for(const o of new qi(e)){const e={};for(const t of o.getAttributeKeys())e[t]=o.getAttribute(t);const a=t.createElement(o.name,e);n&&t.append(a,n),n=Zr._createAt(a,0)}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Vi.createFrom(e),this.conversionApi.store={};const{modelRange:o}=this._convertItem(e,this._modelCursor),a=t.createDocumentFragment();if(o){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,a);a.markers=function(e,t){const n=new Set,o=new Map,a=oi._createIn(e).getItems();for(const e of a)"$marker"==e.name&&n.add(e);for(const e of n){const n=e.getAttribute("data-name"),a=t.createPositionBefore(e);o.has(n)?o.get(n).end=a.clone():o.set(n,new oi(a.clone())),t.remove(e)}return o}(a,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,a}_convertItem(e,t){const n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof oi))throw new s.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(e,t){let n=t.is("position")?t:Zr._createAt(t,0);const o=new oi(n);for(const t of Array.from(e.getChildren())){const e=this._convertItem(t,n);e.modelRange instanceof oi&&(o.end=e.modelRange.end,n=e.modelCursor)}return{modelRange:o,modelCursor:n}}_safeInsert(e,t){const n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}_updateConversionResult(e,t){const n=this._getSplitParts(e),o=this.conversionApi.writer;t.modelRange||(t.modelRange=o.createRange(o.createPositionBefore(e),o.createPositionAfter(n[n.length-1])));const a=this._cursorParents.get(e);t.modelCursor=a?o.createPositionAt(a,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:n,writer:o}=this.conversionApi;let a=n.findAllowedParent(t,e);if(a){if(a===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(a)&&(a=null)}if(!a)return Li(t,e,n)?{position:Ni(t,o)}:null;const r=this.conversionApi.writer.split(t,a),i=[];for(const e of r.range.getWalker())if("elementEnd"==e.type)i.push(e.item);else{const t=i.pop(),n=e.item;this._registerSplitPair(t,n)}const s=r.range.end.parent;return this._cursorParents.set(e,s),{position:r.position,cursorParent:s}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}je(is,d);class ss{getHtml(e){const t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class ls{constructor(e){this.domParser=new DOMParser,this.domConverter=new Pa(e,{renderingMode:"data"}),this.htmlWriter=new ss}toData(e){const t=this.domConverter.viewToDom(e,document);return this.htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this.domConverter.domToView(t)}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){const t=this.domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment();let o=t.firstChild;for(;!o.isSameNode(t.documentElement);){const e=o;o=o.nextSibling,e.nodeType==Node.COMMENT_NODE&&n.appendChild(e)}const a=t.body.childNodes;for(;a.length>0;)n.appendChild(a[0]);return n}}class cs{constructor(e,t){this.model=e,this.mapper=new ai,this.downcastDispatcher=new si({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",((e,t,n)=>{if(!n.consumable.consume(t.item,"insert"))return;const o=n.writer,a=n.mapper.toViewPosition(t.range.start),r=o.createText(t.item.data);o.insert(a,r)}),{priority:"lowest"}),this.upcastDispatcher=new is({schema:e.schema}),this.viewDocument=new ko(t),this.stylesProcessor=t,this.htmlProcessor=new ls(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Ko(this.viewDocument),this.upcastDispatcher.on("text",((e,t,{schema:n,consumable:o,writer:a})=>{let r=t.modelCursor;if(!o.test(t.viewItem))return;if(!n.checkChild(r,"$text")){if(!Li(r,"$text",n))return;r=Ni(r,a)}o.consume(t.viewItem);const i=a.createText(t.viewItem.data);a.insert(i,r),t.modelRange=a.createRange(r,r.getShiftedBy(i.offsetSize)),t.modelCursor=t.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:o}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((e,t,n)=>{if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:o}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.decorate("get"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange("transparent",Pi)}),{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:n="empty"}=e;if(!this._checkIfRootsExists([t]))throw new s.a("datacontroller-get-non-existent-root",this);const o=this.model.document.getRoot(t);return"empty"!==n||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}stringify(e,t={}){const n=this.toView(e,t);return this.processor.toData(n)}toView(e,t={}){const n=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();const a=oi._createIn(e),r=new Go(n);this.mapper.bindElements(e,r),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(a,o);const i=e.is("documentFragment")?Array.from(e.markers):function(e){const t=[],n=e.root.document;if(!n)return[];const o=oi._createIn(e);for(const e of n.model.markers){const n=e.getRange(),a=n.isCollapsed,r=n.start.isEqual(o.start)||n.end.isEqual(o.end);if(a&&r)t.push([e.name,n]);else{const a=o.getIntersection(n);a&&t.push([e.name,a])}}return t.sort((([e,t],[n,o])=>{if("after"!==t.end.compareWith(o.start))return 1;if("before"!==t.start.compareWith(o.end))return-1;switch(t.start.compareWith(o.start)){case"before":return 1;case"after":return-1;default:switch(t.end.compareWith(o.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(e)}}}))}(e);for(const[e,t]of i)this.downcastDispatcher.convertMarkerAdd(e,t,o);return delete this.downcastDispatcher.conversionApi.options,r}init(e){if(this.model.document.version)throw new s.a("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new s.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(e=>{for(const n of Object.keys(t)){const o=this.model.document.getRoot(n);e.insert(this.parse(t[n],o),o,0)}})),Promise.resolve()}set(e,t={}){let n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new s.a("datacontroller-set-non-existent-root",this);const o=t.batchType||"default";this.model.enqueueChange(o,(e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const t of Object.keys(n)){const o=this.model.document.getRoot(t);e.remove(e.createRangeIn(o)),e.insert(this.parse(n[t],o),o,0)}}))}parse(e,t="$root"){const n=this.processor.toView(e);return this.toModel(n,t)}toModel(e,t="$root"){return this.model.change((n=>this.upcastDispatcher.convert(e,n,t)))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRootNames().includes(t))return!1;return!0}}je(cs,Le);class ds{constructor(e,t){this._helpers=new Map,this._downcast=dn(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=dn(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new s.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}for(e){if(!this._helpers.has(e))throw new s.a("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:n}of us(e))this.for("upcast").elementToElement({model:t,view:n,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:n}of us(e))this.for("upcast").elementToAttribute({view:n,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:n}of us(e))this.for("upcast").attributeToAttribute({view:n,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:n}){if(this._helpers.has(e))throw new s.a("conversion-group-exists",this);const o=n?new Ei(t):new Ii(t);this._helpers.set(e,o)}}function*us(e){if(e.model.values)for(const t of e.model.values){const n={key:e.model.key,value:t},o=e.view[t],a=e.upcastAlso?e.upcastAlso[t]:void 0;yield*ps(n,o,a)}else yield*ps(e.model,e.view,e.upcastAlso)}function*ps(e,t,n){if(yield{model:e,view:t},n)for(const t of dn(n))yield{model:e,view:t}}class hs{constructor(e="default"){this.operations=[],this.type=e}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}class ms{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e){return new this(e.baseVersion)}}class fs{constructor(e){this.markers=new Map,this._children=new Kr,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(e){return"documentFragment"===e||"model:documentFragment"===e}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const n of e)t=t.getChild(t.offsetToIndex(n));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const n of e)n.name?t.push(Jr.fromJSON(n)):t.push($r.fromJSON(n));return new fs(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const n=function(e){return"string"==typeof e?[new $r(e)]:(sn(e)||(e=[e]),Array.from(e).map((e=>"string"==typeof e?new $r(e):e instanceof Gr?new $r(e.data,e.getAttributes()):e)))}(t);for(const e of n)null!==e.parent&&e._remove(),e.parent=this;this._children._insertNodes(e,n)}_removeChildren(e,t=1){const n=this._children._removeNodes(e,t);for(const e of n)e.parent=null;return n}}function gs(e,t){const n=(t=bs(t)).reduce(((e,t)=>e+t.offsetSize),0),o=e.parent;ws(e);const a=e.index;return o._insertChild(a,t),ys(o,a+t.length),ys(o,a),new oi(e,e.getShiftedBy(n))}function vs(e){if(!e.isFlat)throw new s.a("operation-utils-remove-range-not-flat",this);const t=e.start.parent;ws(e.start),ws(e.end);const n=t._removeChildren(e.start.index,e.end.index-e.start.index);return ys(t,e.start.index),n}function _s(e,t){if(!e.isFlat)throw new s.a("operation-utils-move-range-not-flat",this);const n=vs(e);return gs(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function bs(e){const t=[];e instanceof Array||(e=[e]);for(let n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new $r(e[n]));else if(e[n]instanceof Gr)t.push(new $r(e[n].data,e[n].getAttributes()));else if(e[n]instanceof fs||e[n]instanceof Kr)for(const o of e[n])t.push(o);else e[n]instanceof qr&&t.push(e[n]);for(let e=1;e<t.length;e++){const n=t[e],o=t[e-1];n instanceof $r&&o instanceof $r&&ks(n,o)&&(t.splice(e-1,2,new $r(o.data+n.data,o.getAttributes())),e--)}return t}function ys(e,t){const n=e.getChild(t-1),o=e.getChild(t);if(n&&o&&n.is("$text")&&o.is("$text")&&ks(n,o)){const a=new $r(n.data+o.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,a)}}function ws(e){const t=e.textNode,n=e.parent;if(t){const o=e.offset-t.startOffset,a=t.index;n._removeChildren(a,1);const r=new $r(t.data.substr(0,o),t.getAttributes()),i=new $r(t.data.substr(o),t.getAttributes());n._insertChild(a,[r,i])}}function ks(e,t){const n=e.getAttributes(),o=t.getAttributes();for(const e of n){if(e[1]!==t.getAttribute(e[0]))return!1;o.next()}return o.next().done}var xs=function(e,t){return Xa(e,t)};class Es extends ms{constructor(e,t,n,o,a){super(a),this.range=e.clone(),this.key=t,this.oldValue=void 0===n?null:n,this.newValue=void 0===o?null:o}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new Es(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Es(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new s.a("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!xs(e.getAttribute(this.key),this.oldValue))throw new s.a("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new s.a("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){xs(this.oldValue,this.newValue)||function(e,t,n){ws(e.start),ws(e.end);for(const o of e.getItems({shallow:!0})){const e=o.is("$textProxy")?o.textNode:o;null!==n?e._setAttribute(t,n):e._removeAttribute(t),ys(e.parent,e.index)}ys(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new Es(oi.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Ss extends ms{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new s.a("detach-operation-on-document-node",this)}_execute(){vs(oi._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Ms extends ms{constructor(e,t,n,o){super(o),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,o=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new s.a("move-operation-nodes-do-not-exist",this);if(e===t&&n<o&&o<n+this.howMany)throw new s.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==gn(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=n&&this.targetPosition.path[e]<n+this.howMany)throw new s.a("move-operation-node-into-itself",this)}}_execute(){_s(oi._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const n=Zr.fromJSON(e.sourcePosition,t),o=Zr.fromJSON(e.targetPosition,t);return new this(n,e.howMany,o,e.baseVersion)}}class Ts extends ms{constructor(e,t,n){super(n),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new Kr(bs(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const e=new Kr([...this.nodes].map((e=>e._clone(!0)))),t=new Ts(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new Zr(e,[0]);return new Ms(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new s.a("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new Kr([...e].map((e=>e._clone(!0)))),gs(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const n=[];for(const t of e.nodes)t.name?n.push(Jr.fromJSON(t)):n.push($r.fromJSON(t));const o=new Ts(Zr.fromJSON(e.position,t),n,e.baseVersion);return o.shouldReceiveAttributes=e.shouldReceiveAttributes,o}}class Cs extends ms{constructor(e,t,n,o,a,r){super(r),this.name=e,this.oldRange=t?t.clone():null,this.newRange=n?n.clone():null,this.affectsData=a,this._markers=o}get type(){return"marker"}clone(){return new Cs(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Cs(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const e=this.newRange?"_set":"_remove";this._markers[e](this.name,this.newRange,!0,this.affectsData)}toJSON(){const e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new Cs(e.name,e.oldRange?oi.fromJSON(e.oldRange,t):null,e.newRange?oi.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}class As extends ms{constructor(e,t,n,o){super(o),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=n}get type(){return"rename"}clone(){return new As(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new As(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof Jr))throw new s.a("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new s.a("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new As(Zr.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class Ds extends ms{constructor(e,t,n,o,a){super(a),this.root=e,this.key=t,this.oldValue=n,this.newValue=o}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Ds(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Ds(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new s.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new s.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new s.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new s.a("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new Ds(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Ps extends ms{constructor(e,t,n,o,a){super(a),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=o.clone()}get type(){return"merge"}get deletionPosition(){return new Zr(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new oi(this.sourcePosition,e)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Zr(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Ls(e,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new s.a("merge-operation-source-position-invalid",this);if(!t.parent)throw new s.a("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new s.a("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;_s(oi._createIn(e),this.targetPosition),_s(oi._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const n=Zr.fromJSON(e.sourcePosition,t),o=Zr.fromJSON(e.targetPosition,t),a=Zr.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,o,a,e.baseVersion)}}class Ls extends ms{constructor(e,t,n,o,a){super(a),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=n,this.graveyardPosition=o?o.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new Zr(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new oi(this.splitPosition,e)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new Zr(e,[0]);return new Ps(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new s.a("split-operation-position-invalid",this);if(!e.parent)throw new s.a("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new s.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new s.a("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)_s(oi._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();gs(this.insertionPosition,t)}_s(new oi(Zr._createAt(e,this.splitPosition.offset),Zr._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new Zr(e.root,t,"toPrevious")}static fromJSON(e,t){const n=Zr.fromJSON(e.splitPosition,t),o=Zr.fromJSON(e.insertionPosition,t),a=e.graveyardPosition?Zr.fromJSON(e.graveyardPosition,t):null;return new this(n,e.howMany,o,a,e.baseVersion)}}class Ns extends Jr{constructor(e,t,n="main"){super(t),this._document=e,this.rootName=n}get document(){return this._document}is(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}toJSON(){return this.rootName}}class Is{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new $r(e,t)}createElement(e,t){return new Jr(e,t)}createDocumentFragment(){return new fs}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,n=0){if(this._assertWriterUsedCorrectly(),e instanceof $r&&""==e.data)return;const o=Zr._createAt(t,n);if(e.parent){if(Ys(e.root,o.root))return void this.move(oi._createOn(e),o);if(e.root.document)throw new s.a("model-writer-insert-forbidden-move",this);this.remove(e)}const a=o.root.document?o.root.document.version:null,r=new Ts(o,e,a);if(e instanceof $r&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof fs)for(const[t,n]of e.markers){const e=Zr._createAt(n.root,0),a={range:new oi(n.start._getCombined(e,o),n.end._getCombined(e,o)),usingOperation:!0,affectsData:!0};this.model.markers.has(t)?this.updateMarker(t,a):this.addMarker(t,a)}}insertText(e,t,n,o){t instanceof fs||t instanceof Jr||t instanceof Zr?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,o)}insertElement(e,t,n,o){t instanceof fs||t instanceof Jr||t instanceof Zr?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,o)}append(e,t){this.insert(e,t,"end")}appendText(e,t,n){t instanceof fs||t instanceof Jr?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}appendElement(e,t,n){t instanceof fs||t instanceof Jr?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}setAttribute(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof oi){const o=n.getMinimalFlatRanges();for(const n of o)Os(this,e,t,n)}else Rs(this,e,t,n)}setAttributes(e,t){for(const[n,o]of wn(e))this.setAttribute(n,o,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof oi){const n=t.getMinimalFlatRanges();for(const t of n)Os(this,e,null,t)}else Rs(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof oi)for(const n of e.getItems())t(n);else t(e)}move(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof oi))throw new s.a("writer-move-invalid-range",this);if(!e.isFlat)throw new s.a("writer-move-range-not-flat",this);const o=Zr._createAt(t,n);if(o.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!Ys(e.root,o.root))throw new s.a("writer-move-different-document",this);const a=e.root.document?e.root.document.version:null,r=new Ms(e.start,e.end.offset-e.start.offset,o,a);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof oi?e:oi._createOn(e)).getMinimalFlatRanges().reverse();for(const e of t)this._addOperationForAffectedMarkers("move",e),js(e.start,e.end.offset-e.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Jr))throw new s.a("writer-merge-no-element-before",this);if(!(n instanceof Jr))throw new s.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,n){return this.model.createPositionFromPath(e,t,n)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(e,t,n){return this.model.createSelection(e,t,n)}_mergeDetached(e){const t=e.nodeBefore,n=e.nodeAfter;this.move(oi._createIn(n),Zr._createAt(t,"end")),this.remove(n)}_merge(e){const t=Zr._createAt(e.nodeBefore,"end"),n=Zr._createAt(e.nodeAfter,0),o=e.root.document.graveyard,a=new Zr(o,[0]),r=e.root.document.version,i=new Ps(n,e.nodeAfter.maxOffset,t,a,r);this.batch.addOperation(i),this.model.applyOperation(i)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Jr))throw new s.a("writer-rename-not-element-instance",this);const n=e.root.document?e.root.document.version:null,o=new As(Zr._createBefore(e),e.name,t,n);this.batch.addOperation(o),this.model.applyOperation(o)}split(e,t){this._assertWriterUsedCorrectly();let n,o,a=e.parent;if(!a.parent)throw new s.a("writer-split-element-no-parent",this);if(t||(t=a.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new s.a("writer-split-invalid-limit-element",this);do{const t=a.root.document?a.root.document.version:null,r=a.maxOffset-e.offset,i=Ls.getInsertionPosition(e),s=new Ls(e,r,i,null,t);this.batch.addOperation(s),this.model.applyOperation(s),n||o||(n=a,o=e.parent.nextSibling),a=(e=this.createPositionAfter(e.parent)).parent}while(a!==t);return{position:e,range:new oi(Zr._createAt(n,"end"),Zr._createAt(o,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new s.a("writer-wrap-range-not-flat",this);const n=t instanceof Jr?t:new Jr(t);if(n.childCount>0)throw new s.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new s.a("writer-wrap-element-attached",this);this.insert(n,e.start);const o=new oi(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(o,Zr._createAt(n,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new s.a("writer-unwrap-element-no-parent",this);this.move(oi._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new s.a("writer-addmarker-no-usingoperation",this);const n=t.usingOperation,o=t.range,a=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new s.a("writer-addmarker-marker-exists",this);if(!o)throw new s.a("writer-addmarker-no-range",this);return n?(Fs(this,e,null,o,a),this.model.markers.get(e)):this.model.markers._set(e,o,n,a)}updateMarker(e,t){this._assertWriterUsedCorrectly();const n="string"==typeof e?e:e.name,o=this.model.markers.get(n);if(!o)throw new s.a("writer-updatemarker-marker-not-exists",this);if(!t)return void this.model.markers._refresh(o);const a="boolean"==typeof t.usingOperation,r="boolean"==typeof t.affectsData,i=r?t.affectsData:o.affectsData;if(!a&&!t.range&&!r)throw new s.a("writer-updatemarker-wrong-options",this);const l=o.getRange(),c=t.range?t.range:l;a&&t.usingOperation!==o.managedUsingOperations?t.usingOperation?Fs(this,n,null,c,i):(Fs(this,n,l,null,i),this.model.markers._set(n,c,void 0,i)):o.managedUsingOperations?Fs(this,n,l,c,i):this.model.markers._set(n,c,void 0,i)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new s.a("writer-removemarker-no-marker",this);const n=this.model.markers.get(t);n.managedUsingOperations?Fs(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}setSelection(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[t,n]of wn(e))this._setSelectionAttribute(t,n)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const o=bi._getStoreAttributeKey(e);this.setAttribute(o,t,n.anchor.parent)}n._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const n=bi._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new s.a("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const o=n.getRange();let a=!1;if("move"===e)a=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end);else{const e=t.nodeBefore,n=t.nodeAfter,r=o.start.parent==e&&o.start.isAtEnd,i=o.end.parent==n&&0==o.end.offset,s=o.end.nodeAfter==n,l=o.start.nodeAfter==n;a=r||i||s||l}a&&this.updateMarker(n.name,{range:o})}}}function Os(e,t,n,o){const a=e.model,r=a.document;let i,s,l,c=o.start;for(const e of o.getWalker({shallow:!0}))l=e.item.getAttribute(t),i&&s!=l&&(s!=n&&d(),c=i),i=e.nextPosition,s=l;function d(){const o=new oi(c,i),l=o.root.document?r.version:null,d=new Es(o,t,s,n,l);e.batch.addOperation(d),a.applyOperation(d)}i instanceof Zr&&i!=c&&s!=n&&d()}function Rs(e,t,n,o){const a=e.model,r=a.document,i=o.getAttribute(t);let s,l;if(i!=n){if(o.root===o){const e=o.document?r.version:null;l=new Ds(o,t,i,n,e)}else{s=new oi(Zr._createBefore(o),e.createPositionAfter(o));const a=s.root.document?r.version:null;l=new Es(s,t,i,n,a)}e.batch.addOperation(l),a.applyOperation(l)}}function Fs(e,t,n,o,a){const r=e.model,i=r.document,s=new Cs(t,n,o,r.markers,a,i.version);e.batch.addOperation(s),r.applyOperation(s)}function js(e,t,n,o){let a;if(e.root.document){const n=o.document,r=new Zr(n.graveyard,[0]);a=new Ms(e,t,r,n.version)}else a=new Ss(e,t);n.addOperation(a),o.applyOperation(a)}function Ys(e,t){return e===t||e instanceof Ns&&t instanceof Ns}class zs{constructor(e){this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);const t=oi._createOn(e);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getRange();this.bufferMarkerChange(e.name,t,t,e.affectsData)}this._cachedChanges=null}bufferOperation(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=oi._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getRange();this.bufferMarkerChange(e.name,t,t,e.affectsData)}break}case"split":{const t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);const n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1);const o=e.targetPosition.parent;this._isInInsertedElement(o)||this._markInsert(o,e.targetPosition.offset,t.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(e,t,n,o){const a=this._changedMarkers.get(e);a?(a.newRange=n,a.affectsData=o,null==a.oldRange&&null==a.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:o})}getMarkersToRemove(){const e=[];for(const[t,n]of this._changedMarkers)null!=n.oldRange&&e.push({name:t,range:n.oldRange});return e}getMarkersToAdd(){const e=[];for(const[t,n]of this._changedMarkers)null!=n.newRange&&e.push({name:t,range:n.newRange});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map((e=>({name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}})))}hasDataChanges(){for(const[,e]of this._changedMarkers)if(e.affectsData)return!0;return this._changesInElement.size>0}getChanges(e={includeChangesInGraveyard:!1}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const e of this._changesInElement.keys()){const n=this._changesInElement.get(e).sort(((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1)),o=this._elementSnapshots.get(e),a=Bs(e.getChildren()),r=Hs(o.length,n);let i=0,s=0;for(const n of r)if("i"===n)t.push(this._getInsertDiff(e,i,a[i].name)),i++;else if("r"===n)t.push(this._getRemoveDiff(e,i,o[s].name)),s++;else if("a"===n){const n=a[i].attributes,r=o[s].attributes;let l;if("$text"==a[i].name)l=new oi(Zr._createAt(e,i),Zr._createAt(e,i+1));else{const t=e.offsetToIndex(i);l=new oi(Zr._createAt(e,i),Zr._createAt(e.getChild(t),0))}t.push(...this._getAttributesDiff(l,r,n)),i++,s++}else i++,s++}t.sort(((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1));for(let e=1,n=0;e<t.length;e++){const o=t[n],a=t[e],r="remove"==o.type&&"remove"==a.type&&"$text"==o.name&&"$text"==a.name&&o.position.isEqual(a.position),i="insert"==o.type&&"insert"==a.type&&"$text"==o.name&&"$text"==a.name&&o.position.parent==a.position.parent&&o.position.offset+o.length==a.position.offset,s="attribute"==o.type&&"attribute"==a.type&&o.position.parent==a.position.parent&&o.range.isFlat&&a.range.isFlat&&o.position.offset+o.length==a.position.offset&&o.attributeKey==a.attributeKey&&o.attributeOldValue==a.attributeOldValue&&o.attributeNewValue==a.attributeNewValue;r||i||s?(o.length++,s&&(o.range.end=o.range.end.getShiftedBy(1)),t[e]=null):n=e}t=t.filter((e=>e));for(const e of t)delete e.changeCount,"attribute"==e.type&&(delete e.position,delete e.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t.slice(),this._cachedChanges=t.filter(Vs),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}_markInsert(e,t,n){const o={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,o)}_markRemove(e,t,n){const o={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,o),this._removeAllNestedChanges(e,t,n)}_markAttribute(e){const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(let e=0;e<n.length;e++)n[e].howMany<1&&(n.splice(e,1),e--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Bs(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const n of t){const o=e.offset+e.howMany,a=n.offset+n.howMany;if("insert"==e.type&&("insert"==n.type&&(e.offset<=n.offset?n.offset+=e.howMany:e.offset<a&&(n.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==n.type&&e.offset<n.offset&&(n.offset+=e.howMany),"attribute"==n.type))if(e.offset<=n.offset)n.offset+=e.howMany;else if(e.offset<a){const a=n.howMany;n.howMany=e.offset-n.offset,t.unshift({type:"attribute",offset:o,howMany:a-n.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==n.type)if(o<=n.offset)n.offset-=e.howMany;else if(o<=a)if(e.offset<n.offset){const t=o-n.offset;n.offset=e.offset,n.howMany-=t,e.nodesToHandle-=t}else n.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=n.offset)e.nodesToHandle-=n.howMany,n.howMany=0;else if(e.offset<a){const t=a-e.offset;n.howMany-=t,e.nodesToHandle-=t}if("remove"==n.type&&(o<=n.offset?n.offset-=e.howMany:e.offset<n.offset&&(e.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(o<=n.offset)n.offset-=e.howMany;else if(e.offset<n.offset){const t=o-n.offset;n.offset=e.offset,n.howMany-=t}else if(e.offset<a)if(o<=a){const o=n.howMany;n.howMany=e.offset-n.offset;const a=o-n.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:a,count:this._changeCount++})}else n.howMany-=a-e.offset}if("attribute"==e.type){if("insert"==n.type)if(e.offset<n.offset&&o>n.offset){if(o>a){const e={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=n.offset&&e.offset<a&&(o>a?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==n.type&&e.offset<n.offset&&o>n.offset){const a={type:"attribute",offset:n.offset,howMany:o-n.offset,count:this._changeCount++};this._handleChange(a,t),t.push(a),e.nodesToHandle=n.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==n.type&&(e.offset>=n.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=n.offset&&o>=a&&(n.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,n){return{type:"insert",position:Zr._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,n){return{type:"remove",position:Zr._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,n){const o=[];n=new Map(n);for(const[a,r]of t){const t=n.has(a)?n.get(a):null;t!==r&&o.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:a,attributeOldValue:r,attributeNewValue:t,changeCount:this._changeCount++}),n.delete(a)}for(const[t,a]of n)o.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:t,attributeOldValue:null,attributeNewValue:a,changeCount:this._changeCount++});return o}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const n=this._changesInElement.get(t),o=e.startOffset;if(n)for(const e of n)if("insert"==e.type&&o>=e.offset&&o<e.offset+e.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,n){const o=new oi(Zr._createAt(e,t),Zr._createAt(e,t+n));for(const e of o.getItems({shallow:!0}))e.is("element")&&(this._elementSnapshots.delete(e),this._changesInElement.delete(e),this._removeAllNestedChanges(e,0,e.maxOffset))}}function Bs(e){const t=[];for(const n of e)if(n.is("$text"))for(let e=0;e<n.data.length;e++)t.push({name:"$text",attributes:new Map(n.getAttributes())});else t.push({name:n.name,attributes:new Map(n.getAttributes())});return t}function Hs(e,t){const n=[];let o=0,a=0;for(const e of t){if(e.offset>o){for(let t=0;t<e.offset-o;t++)n.push("e");a+=e.offset-o}if("insert"==e.type){for(let t=0;t<e.howMany;t++)n.push("i");o=e.offset+e.howMany}else if("remove"==e.type){for(let t=0;t<e.howMany;t++)n.push("r");o=e.offset,a+=e.howMany}else n.push(..."a".repeat(e.howMany).split("")),o=e.offset+e.howMany,a+=e.howMany}if(a<e)for(let t=0;t<e-a-o;t++)n.push("e");return n}function Vs(e){const t=e.position&&"$graveyard"==e.position.root.rootName,n=e.range&&"$graveyard"==e.range.root.rootName;return!t&&!n}class Us{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}addOperation(e){this._operations.includes(e)||this._operations.push(e)}getOperations(e=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY){const n=[];for(const o of this._operations)o.baseVersion>=e&&o.baseVersion<t&&n.push(o);return n}getOperation(e){for(const t of this._operations)if(t.baseVersion==e)return t}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}}function Ws(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function qs(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}class $s{constructor(e){this.model=e,this.version=0,this.history=new Us(this),this.selection=new bi(this),this.roots=new ln({idProperty:"rootName"}),this.differ=new zs(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root","$graveyard"),this.listenTo(e,"applyOperation",((e,t)=>{const n=t[0];if(n.isDocumentOperation&&n.baseVersion!==this.version)throw new s.a("model-document-applyoperation-wrong-version",this,{operation:n})}),{priority:"highest"}),this.listenTo(e,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(e,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&(this.version++,this.history.addOperation(n))}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(e.markers,"update",((e,t,n,o)=>{this.differ.bufferMarkerChange(t.name,n,o,t.affectsData),null===n&&t.on("change",((e,n)=>{this.differ.bufferMarkerChange(t.name,n,t.getRange(),t.affectsData)}))}))}get graveyard(){return this.getRoot("$graveyard")}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new s.a("model-document-createroot-name-exists",this,{name:t});const n=new Ns(this,e,t);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(){return Array.from(this.roots,(e=>e.rootName)).filter((e=>"$graveyard"!=e))}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=vn(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const e of this.roots)if(e!==this.graveyard)return e;return this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,n=t.schema,o=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(o)||t.createRange(o)}_validateSelectionRange(e){return Gs(e.start)&&Gs(e.end)}_callPostFixers(e){let t=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),t=n(e),t)break}while(t)}}function Gs(e){const t=e.textNode;if(t){const n=t.data,o=e.offset-t.startOffset;return!Ws(n,o)&&!qs(n,o)}return!0}je($s,d);class Ks{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof Js?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,n=!1,o=!1){const a=e instanceof Js?e.name:e;if(a.includes(","))throw new s.a("markercollection-incorrect-marker-name",this);const r=this._markers.get(a);if(r){const e=r.getRange();let i=!1;return e.isEqual(t)||(r._attachLiveRange(gi.fromRange(t)),i=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,i=!0),"boolean"==typeof o&&o!=r.affectsData&&(r._affectsData=o,i=!0),i&&this.fire("update:"+a,r,e,t),r}const i=gi.fromRange(t),l=new Js(a,i,n,o);return this._markers.set(a,l),this.fire("update:"+a,l,null,t),l}_remove(e){const t=e instanceof Js?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}_refresh(e){const t=e instanceof Js?e.name:e,n=this._markers.get(t);if(!n)throw new s.a("markercollection-refresh-marker-not-exists",this);const o=n.getRange();this.fire("update:"+t,n,o,o,n.managedUsingOperations,n.affectsData)}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}je(Ks,d);class Js{constructor(e,t,n,o){this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=n,this._affectsData=o}get managedUsingOperations(){if(!this._liveRange)throw new s.a("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new s.a("marker-destroyed",this);return this._affectsData}getStart(){if(!this._liveRange)throw new s.a("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new s.a("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new s.a("marker-destroyed",this);return this._liveRange.toRange()}is(e){return"marker"===e||"model:marker"===e}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}je(Js,d);class Xs extends ms{get type(){return"noop"}clone(){return new Xs(this.baseVersion)}getReversed(){return new Xs(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}const Qs={};Qs[Es.className]=Es,Qs[Ts.className]=Ts,Qs[Cs.className]=Cs,Qs[Ms.className]=Ms,Qs[Xs.className]=Xs,Qs[ms.className]=ms,Qs[As.className]=As,Qs[Ds.className]=Ds,Qs[Ls.className]=Ls,Qs[Ps.className]=Ps;class Zs extends Zr{constructor(e,t,n="toNone"){if(super(e,t,n),!this.root.is("rootElement"))throw new s.a("model-liveposition-root-not-rootelement",e);el.call(this)}detach(){this.stopListening()}is(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}toPosition(){return new Zr(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function el(){this.listenTo(this.root.document.model,"applyOperation",((e,t)=>{const n=t[0];n.isDocumentOperation&&tl.call(this,n)}),{priority:"low"})}function tl(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}je(Zs,d);class nl{constructor(e,t,n){this.model=e,this.writer=t,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(e){for(const t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(e);if(n.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new s.a("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this.nodeToSelect?oi._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new oi(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(this.schema.isObject(e))return void this._handleObject(e);let t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e),t)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=Zs.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleObject(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}_handleDisallowedNode(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new s.a("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=e:this.nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=Zs.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Zs.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof Jr))return;if(!this._canMergeLeft(e))return;const t=Zs._createBefore(e);t.stickiness="toNext";const n=Zs.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=Zs._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Zs._createAt(t.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof Jr))return;if(!this._canMergeRight(e))return;const t=Zs._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new s.a("insertcontent-invalid-insertion-position",this);this.position=Zr._createAt(t.nodeBefore,"end");const n=Zs.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=Zs._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Zs._createAt(t.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof Jr&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof Jr&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_tryAutoparagraphing(e){const t=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,t)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}_checkAndAutoParagraphToAllowedPosition(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();const t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){const e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function ol(e,t,n){const o=t.parent,a=n.parent;return o!=a&&!e.isLimit(o)&&!e.isLimit(a)&&function(e,t,n){const o=new oi(e,t);for(const e of o.getWalker())if(n.isLimit(e.item))return!1;return!0}(t,n,e)}function al(e,t,n){const o=e.createElement("paragraph");e.insert(o,t),rl(e,n,e.createPositionAt(o,0))}function rl(e,t,n){t instanceof bi?e.setSelection(n):t.setTo(n)}function il(e,t){const{isForward:n,walker:o,unit:a,schema:r}=e,{type:i,item:s,nextPosition:l}=t;if("text"==i)return"word"===e.unit?function(e,t){let n=e.position.textNode;if(n){let o=e.position.offset-n.startOffset;for(;!ll(n.data,o,t)&&!cl(n,o,t);){e.next();const a=t?e.position.nodeAfter:e.position.nodeBefore;if(a&&a.is("$text")){const o=a.data.charAt(t?0:a.data.length-1);' ,.?!:;"-()'.includes(o)||(e.next(),n=e.position.textNode)}o=e.position.offset-n.startOffset}}return e.position}(o,n):function(e,t){const n=e.position.textNode;if(n){const o=n.data;let a=e.position.offset-n.startOffset;for(;Ws(o,a)||"character"==t&&qs(o,a);)e.next(),a=e.position.offset-n.startOffset}return e.position}(o,a);if(i==(n?"elementStart":"elementEnd")){if(r.isSelectable(s))return Zr._createAt(s,n?"after":"before");if(r.checkChild(l,"$text"))return l}else{if(r.isLimit(s))return void o.skip((()=>!0));if(r.checkChild(l,"$text"))return l}}function sl(e,t){const n=e.root,o=Zr._createAt(n,t?"end":0);return t?new oi(e,o):new oi(o,e)}function ll(e,t,n){const o=t+(n?0:-1);return' ,.?!:;"-()'.includes(e.charAt(o))}function cl(e,t,n){return t===(n?e.endOffset:0)}function dl(e,t){const n=[];Array.from(e.getItems({direction:"backward"})).map((e=>t.createRangeOn(e))).filter((t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end)))).forEach((e=>{n.push(e.start.parent),t.remove(e)})),n.forEach((e=>{let n=e;for(;n.parent&&n.isEmpty;){const e=t.createRangeOn(n);n=n.parent,t.remove(e)}}))}function ul(e,t){return e.isCollapsed?function(e,t){const n=e.start,o=t.getNearestSelectionRange(n);if(!o){const e=n.getAncestors().reverse().find((e=>t.isObject(e)));return e?oi._createOn(e):null}if(!o.isCollapsed)return o;const a=o.start;return n.isEqual(a)?null:new oi(a)}(e,t):function(e,t){const{start:n,end:o}=e,a=t.checkChild(n,"$text"),r=t.checkChild(o,"$text"),i=t.getLimitElement(n),s=t.getLimitElement(o);if(i===s){if(a&&r)return null;if(function(e,t,n){const o=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),a=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return o||a}(n,o,t)){const e=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),a=o.nodeBefore&&t.isSelectable(o.nodeBefore)?null:t.getNearestSelectionRange(o,"backward"),r=e?e.start:n,i=a?a.end:o;return new oi(r,i)}}const l=i&&!i.is("rootElement"),c=s&&!s.is("rootElement");if(l||c){const e=n.nodeAfter&&o.nodeBefore&&n.nodeAfter.parent===o.nodeBefore.parent,a=l&&(!e||!hl(n.nodeAfter,t)),r=c&&(!e||!hl(o.nodeBefore,t));let d=n,u=o;return a&&(d=Zr._createBefore(pl(i,t))),r&&(u=Zr._createAfter(pl(s,t))),new oi(d,u)}return null}(e,t)}function pl(e,t){let n=e,o=n;for(;t.isLimit(o)&&o.parent;)n=o,o=o.parent;return n}function hl(e,t){return e&&t.isSelectable(e)}class ml{constructor(){this.markers=new Ks,this.document=new $s(this),this.schema=new Wi,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((e=>this.decorate(e))),this.on("applyOperation",((e,t)=>{t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((e,t)=>{if("$marker"===t.name)return!0})),function(e){e.document.registerPostFixer((t=>function(e,t){const n=t.document.selection,o=t.schema,a=[];let r=!1;for(const e of n.getRanges()){const t=ul(e,o);t&&!t.isEqual(e)?(a.push(t),r=!0):a.push(e)}r&&e.setSelection(function(e){const t=[...e],n=new Set;let o=1;for(;o<t.length;){const e=t[o],a=t.slice(0,o);for(const[r,i]of a.entries())if(!n.has(r))if(e.isEqual(i))n.add(r);else if(e.isIntersecting(i)){n.add(r),n.add(o);const a=e.getJoined(i);t.push(a)}o++}return t.filter(((e,t)=>!n.has(t)))}(a),{backward:n.isBackward})}(t,e)))}(this),this.document.registerPostFixer(Pi)}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new hs,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){s.a.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{"string"==typeof e?e=new hs(e):"function"==typeof e&&(t=e,e=new hs),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){s.a.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,n){return function(e,t,n,o){return e.change((a=>{let r;r=n?n instanceof ui||n instanceof bi?n:a.createSelection(n,o):e.document.selection,r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});const i=new nl(e,a,r.anchor);let s;s=t.is("documentFragment")?t.getChildren():[t],i.handleNodes(s);const l=i.getSelectionRange();l&&(r instanceof bi?a.setSelection(l):r.setTo(l));const c=i.getAffectedRange()||e.createRange(r.anchor);return i.destroy(),c}))}(this,e,t,n)}deleteContent(e,t){!function(e,t,n={}){if(t.isCollapsed)return;const o=t.getFirstRange();if("$graveyard"==o.root.rootName)return;const a=e.schema;e.change((e=>{if(!n.doNotResetEntireContent&&function(e,t){const n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;const o=t.getFirstRange();return o.start.parent!=o.end.parent&&e.checkChild(n,"paragraph")}(a,t))return void function(e,t){const n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),al(e,e.createPositionAt(n,0),t)}(e,t);const[r,i]=function(e){const t=e.root.document.model,n=e.start;let o=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const n=function(e){const t=e.parent,n=t.root.document.model.schema,o=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const e of o){if(n.isLimit(e))return null;if(n.isBlock(e))return e}}(o);if(n&&o.isTouching(t.createPositionAt(n,0))){const n=t.createSelection(e);t.modifySelection(n,{direction:"backward"});const a=n.getLastPosition(),r=t.createRange(a,o);t.hasContent(r,{ignoreMarkers:!0})||(o=a)}}return[Zs.fromPosition(n,"toPrevious"),Zs.fromPosition(o,"toNext")]}(o);r.isTouching(i)||e.remove(e.createRange(r,i)),n.leaveUnmerged||(function(e,t,n){const o=e.model;if(!ol(e.model.schema,t,n))return;const[a,r]=function(e,t){const n=e.getAncestors(),o=t.getAncestors();let a=0;for(;n[a]&&n[a]==o[a];)a++;return[n[a],o[a]]}(t,n);a&&r&&(!o.hasContent(a,{ignoreMarkers:!0})&&o.hasContent(r,{ignoreMarkers:!0})?function e(t,n,o,a){const r=n.parent,i=o.parent;if(r!=a&&i!=a){for(n=t.createPositionAfter(r),(o=t.createPositionBefore(i)).isEqual(n)||t.insert(r,o);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}o=t.createPositionBefore(i),function(e,t){const n=t.nodeBefore,o=t.nodeAfter;n.name!=o.name&&e.rename(n,o.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(o.getAttributes()),n),e.merge(t)}(t,o),ol(t.model.schema,n,o)&&e(t,n,o,a)}}(e,t,n,a.parent):function e(t,n,o,a){const r=n.parent,i=o.parent;if(r!=a&&i!=a){for(n=t.createPositionAfter(r),(o=t.createPositionBefore(i)).isEqual(n)||t.insert(i,n),t.merge(n);o.parent.isEmpty;){const e=o.parent;o=t.createPositionBefore(e),t.remove(e)}ol(t.model.schema,n,o)&&e(t,n,o,a)}}(e,t,n,a.parent))}(e,r,i),a.removeDisallowedAttributes(r.parent.getChildren(),e)),rl(e,t,r),!n.doNotAutoparagraph&&function(e,t){const n=e.checkChild(t,"$text"),o=e.checkChild(t,"paragraph");return!n&&o}(a,r)&&al(e,r,t),r.detach(),i.detach()}))}(this,e,t)}modifySelection(e,t){!function(e,t,n={}){const o=e.schema,a="backward"!=n.direction,r=n.unit?n.unit:"character",i=t.focus,s=new Xr({boundaries:sl(i,a),singleCharacters:!0,direction:a?"forward":"backward"}),l={walker:s,schema:o,isForward:a,unit:r};let c;for(;c=s.next();){if(c.done)return;const n=il(l,c.value);if(n)return void(t instanceof bi?e.change((e=>{e.setSelectionFocus(n)})):t.setFocus(n))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change((e=>{const n=e.createDocumentFragment(),o=t.getFirstRange();if(!o||o.isCollapsed)return n;const a=o.start.root,r=o.start.getCommonPath(o.end),i=a.getNodeByPath(r);let s;s=o.start.parent==o.end.parent?o:e.createRange(e.createPositionAt(i,o.start.path[r.length]),e.createPositionAt(i,o.end.path[r.length]+1));const l=s.end.offset-s.start.offset;for(const t of s.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),n):e.append(e.cloneElement(t,!0),n);if(s!=o){const t=o._getTransformedByMove(s.start,e.createPositionAt(n,0),l)[0],a=e.createRange(e.createPositionAt(n,0),t.start);dl(e.createRange(t.end,e.createPositionAt(n,"end")),e),dl(a,e)}return n}))}(this,e)}hasContent(e,t={}){const n=e instanceof Jr?oi._createIn(e):e;if(n.isCollapsed)return!1;const{ignoreWhitespaces:o=!1,ignoreMarkers:a=!1}=t;if(!a)for(const e of this.markers.getMarkersIntersectingRange(n))if(e.affectsData)return!0;for(const e of n.getItems())if(this.schema.isContent(e)){if(!e.is("$textProxy"))return!0;if(!o)return!0;if(-1!==e.data.search(/\S/))return!0}return!1}createPositionFromPath(e,t,n){return new Zr(e,t,n)}createPositionAt(e,t){return Zr._createAt(e,t)}createPositionAfter(e){return Zr._createAfter(e)}createPositionBefore(e){return Zr._createBefore(e)}createRange(e,t){return new oi(e,t)}createRangeIn(e){return oi._createIn(e)}createRangeOn(e){return oi._createOn(e)}createSelection(e,t,n){return new ui(e,t,n)}createBatch(e){return new hs(e)}createOperationFromJSON(e){return class{static fromJSON(e,t){return Qs[e.__className].fromJSON(e,t)}}.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const t=this._pendingChanges[0].batch;this._currentWriter=new Is(this,t);const n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}je(ml,Le);class fl extends Nr{constructor(e){super(),this.editor=e}set(e,t,n={}){if("string"==typeof t){const e=t;t=(t,n)=>{this.editor.execute(e),n()}}super.set(e,t,n)}}class gl{constructor(e={}){const t=e.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=e.context||new mn({language:t}),this._context._addEditor(this,!e.context);const n=Array.from(this.constructor.builtinPlugins||[]);this.config=new on(e,this.constructor.defaultConfig),this.config.define("plugins",n),this.config.define(this._context._getEditorConfig()),this.plugins=new cn(this,n,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Hi,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.set("isReadOnly",!1),this.model=new ml;const o=new Xn;this.data=new cs(this.model,o),this.editing=new Bi(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new ds([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new fl(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],o=e.get("extraPlugins")||[],a=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(o),n,a)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((e=>this.once("ready",e)))),e.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(...e){try{return this.commands.execute(...e)}catch(e){s.a.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}}je(gl,Le);class vl{constructor(e){this.editor=e,this._components=new Map}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(_l(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new s.a("componentfactory-item-missing",this,{name:e});return this._components.get(_l(e)).callback(this.editor.locale)}has(e){return this._components.has(_l(e))}}function _l(e){return String(e).toLowerCase()}class bl{constructor(e){this.editor=e,this.componentFactory=new vl(e),this.focusTracker=new Lr,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(e.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const e of this._editableElementsMap.values())e.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;const n=e.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}}je(bl,Le);var yl={setData(e){this.data.set(e)},getData(e){return this.data.get(e)}},wl={updateSourceElement(){if(!this.sourceElement)throw new s.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}};class kl extends fn{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new ln({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new s.a("pendingactions-add-invalid-message",this);const t=Object.create(Le);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}var xl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>';const El={cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:xl};function Sl({emitter:e,activator:t,callback:n,contextElements:o}){e.listenTo(document,"mousedown",((e,a)=>{if(!t())return;const r="function"==typeof a.composedPath?a.composedPath():[];for(const e of o)if(e.contains(a.target)||r.includes(e))return;n()}))}function Ml(e){e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=()=>{e._isCssTransitionsDisabled=!0},e.enableCssTransitions=()=>{e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Tl({view:e}){e.listenTo(e.element,"submit",((t,n)=>{n.preventDefault(),e.fire("submit")}),{useCapture:!0})}class Cl extends ln{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",((e,t,n)=>{this._renderViewIntoCollectionParent(t,n)})),this.on("remove",((e,t)=>{t.element&&this._parentElement&&t.element.remove()})),this._parentElement=null}destroy(){this.map((e=>e.destroy()))}setParent(e){this._parentElement=e;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...e){if(!e.length||!e.every((e=>"string"==typeof e)))throw new s.a("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const n of this)for(const o of e)n.delegate(o).to(t);this.on("add",((n,o)=>{for(const n of e)o.delegate(n).to(t)})),this.on("remove",((n,o)=>{for(const n of e)o.stopDelegating(n,t)}))}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}n(17);class Al{constructor(e){this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new ln,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((t,n)=>{n.locale=e})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Dl.bind(this,this)}createCollection(e){const t=new Cl(e);return this._viewCollections.add(t),t}registerChild(e){sn(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){sn(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new Dl(e)}extendTemplate(e){Dl.extend(this.template,e)}render(){if(this.isRendered)throw new s.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((e=>e.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}je(Al,Oa),je(Al,Le);class Dl{constructor(e){Object.assign(this,zl(Yl(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new s.a("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const n of t.children)Wl(n)?yield n:ql(n)&&(yield*e(n))}(this)}static bind(e,t){return{to:(n,o)=>new Ll({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:o}),if:(n,o,a)=>new Nl({observable:e,emitter:t,attribute:n,valueIfTrue:o,callback:a})}}static extend(e,t){if(e._isRendered)throw new s.a("template-extend-render",[this,e]);!function e(t,n){if(n.attributes&&(t.attributes||(t.attributes={}),Vl(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),Vl(t.eventListeners,n.eventListeners)),n.text&&t.text.push(...n.text),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new s.a("ui-template-extend-children-mismatch",t);let o=0;for(const a of n.children)e(t.children[o++],a)}}(e,zl(Yl(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new s.a("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Il(this.text)?this._bindToObservable({schema:this.text,updater:Rl(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){let t,n,o,a;if(!this.attributes)return;const r=e.node,i=e.revertData;for(t in this.attributes)if(o=r.getAttribute(t),n=this.attributes[t],i&&(i.attributes[t]=o),a=_(n[0])&&n[0].ns?n[0].ns:null,Il(n)){const s=a?n[0].value:n;i&&Gl(t)&&s.unshift(o),this._bindToObservable({schema:s,updater:Fl(r,t,a),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(i&&o&&Gl(t)&&n.unshift(o),n=n.map((e=>e&&e.value||e)).reduce(((e,t)=>e.concat(t)),[]).reduce(Hl,""),Ul(n)||r.setAttributeNS(a,t,n))}_renderStyleAttribute(e,t){const n=t.node;for(const o in e){const a=e[o];Il(a)?this._bindToObservable({schema:[a],updater:jl(n,o),data:t}):n.style[o]=a}}_renderElementChildren(e){const t=e.node,n=e.intoFragment?document.createDocumentFragment():t,o=e.isApplying;let a=0;for(const r of this.children)if($l(r)){if(!o){r.setParent(t);for(const e of r)n.appendChild(e.element)}}else if(Wl(r))o||(r.isRendered||r.render(),n.appendChild(r.element));else if(ya(r))n.appendChild(r);else if(o){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),r._renderNode({node:n.childNodes[a++],isApplying:!0,revertData:t})}else n.appendChild(r.render());e.intoFragment&&t.appendChild(n)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const n=this.eventListeners[t].map((n=>{const[o,a]=t.split("@");return n.activateDomEventListener(o,a,e)}));e.revertData&&e.revertData.bindings.push(n)}}_bindToObservable({schema:e,updater:t,data:n}){const o=n.revertData;Ol(e,t,n);const a=e.filter((e=>!Ul(e))).filter((e=>e.observable)).map((o=>o.activateAttributeListener(e,t,n)));o&&o.bindings.push(a)}_revertTemplateFromNode(e,t){for(const e of t.bindings)for(const t of e)t();if(t.text)e.textContent=t.text;else{for(const n in t.attributes){const o=t.attributes[n];null===o?e.removeAttribute(n):e.setAttribute(n,o)}for(let n=0;n<t.children.length;++n)this._revertTemplateFromNode(e.childNodes[n],t.children[n])}}}je(Dl,d);class Pl{constructor(e){Object.assign(this,e)}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,n){const o=()=>Ol(e,t,n);return this.emitter.listenTo(this.observable,"change:"+this.attribute,o),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,o)}}}class Ll extends Pl{activateDomEventListener(e,t,n){const o=(e,n)=>{t&&!n.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,o),()=>{this.emitter.stopListening(n.node,e,o)}}}class Nl extends Pl{getValue(e){return!Ul(super.getValue(e))&&(this.valueIfTrue||!0)}}function Il(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Il):e instanceof Pl)}function Ol(e,t,{node:n}){let o=function(e,t){return e.map((e=>e instanceof Pl?e.getValue(t):e))}(e,n);o=1==e.length&&e[0]instanceof Nl?o[0]:o.reduce(Hl,""),Ul(o)?t.remove():t.set(o)}function Rl(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function Fl(e,t,n){return{set(o){e.setAttributeNS(n,t,o)},remove(){e.removeAttributeNS(n,t)}}}function jl(e,t){return{set(n){e.style[t]=n},remove(){e.style[t]=null}}}function Yl(e){return tn(e,(e=>{if(e&&(e instanceof Pl||ql(e)||Wl(e)||$l(e)))return e}))}function zl(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=dn(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)Bl(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=dn(e[t].value)),Bl(e,t)}(e.attributes);const t=[];if(e.children)if($l(e.children))t.push(e.children);else for(const n of e.children)ql(n)||Wl(n)||ya(n)?t.push(n):t.push(new Dl(n));e.children=t}return e}function Bl(e,t){e[t]=dn(e[t])}function Hl(e,t){return Ul(t)?e:Ul(e)?t:`${e} ${t}`}function Vl(e,t){for(const n in t)e[n]?e[n].push(...t[n]):e[n]=t[n]}function Ul(e){return!e&&0!==e}function Wl(e){return e instanceof Al}function ql(e){return e instanceof Dl}function $l(e){return e instanceof Cl}function Gl(e){return"class"==e||"style"==e}class Kl extends Cl{constructor(e,t=[]){super(t),this.locale=e}attachToDom(){this._bodyCollectionContainer=new Dl({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t,n={},o=[]){const a=n&&n.xmlns,r=a?e.createElementNS(a,t):e.createElement(t);for(const e in n)r.setAttribute(e,n[e]);!wr(o)&&sn(o)||(o=[o]);for(let t of o)wr(t)&&(t=e.createTextNode(t)),r.appendChild(t);return r}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}n(19);class Jl extends Al{constructor(){super();const e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((e=>{e.style.fill=this.fillColor}))}}n(21);class Xl extends Al{constructor(e){super(e),this.set("text",""),this.set("position","s");const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",t.to("position",(e=>"ck-tooltip_"+e)),t.if("text","ck-hidden",(e=>!e.trim()))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:t.to("text")}]}]})}}n(23);class Ql extends Al{constructor(e){super(e);const t=this.bindTemplate,n=r();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(n),this.iconView=new Jl,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",t.to("class"),t.if("isEnabled","ck-disabled",(e=>!e)),t.if("isVisible","ck-hidden",(e=>!e)),t.to("isOn",(e=>e?"ck-on":"ck-off")),t.if("withText","ck-button_with-text"),t.if("withKeystroke","ck-button_with-keystroke")],type:t.to("type",(e=>e||"button")),tabindex:t.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+n,"aria-disabled":t.if("isEnabled",!0,(e=>!e)),"aria-pressed":t.to("isOn",(e=>!!this.isToggleable&&String(e)))},children:this.children,on:{mousedown:t.to((e=>{e.preventDefault()})),click:t.to((e=>{this.isEnabled?this.fire("execute"):e.preventDefault()}))}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const e=new Xl;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}_createLabelView(e){const t=new Al,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}_createKeystrokeView(){const e=new Al;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(e=>Ho(e)))}]}),e}_getTooltipString(e,t,n){return e?"string"==typeof e?e:(n&&(n=Ho(n)),e instanceof Function?e(t,n):`${t}${n?` (${n})`:""}`):""}}n(25);class Zl extends Ql{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new Al;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}class ec{constructor(e){if(Object.assign(this,e),e.actions&&e.keystrokeHandler)for(const t in e.actions){let n=e.actions[t];"string"==typeof n&&(n=[n]);for(const o of n)e.keystrokeHandler.set(o,((e,n)=>{this[t](),n()}))}}get first(){return this.focusables.find(tc)||null}get last(){return this.focusables.filter(tc).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((t,n)=>{const o=t.element===this.focusTracker.focusedElement;return o&&(e=n),o})),e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){e&&e.focus()}_getFocusableItem(e){const t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];let o=(t+n+e)%n;do{const t=this.focusables.get(o);if(tc(t))return t;o=(o+n+e)%n}while(o!==t);return null}}function tc(e){return!(!e.focus||"none"==Sa.window.getComputedStyle(e.element).display)}n(27);var nc='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class oc extends Ql{constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new Jl;return e.content=nc,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}n(29);class ac extends Al{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new Nr,this.focusTracker=new Lr,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.to("class"),t.if("isVisible","ck-hidden",(e=>!e)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())})),this.keystrokes.set("arrowleft",((e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const e=new Ql;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const e=new Ql,t=e.bindTemplate;return e.icon=nc,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(e=>String(e)))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}class rc extends Al{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",t.to("position",(e=>"ck-dropdown__panel_"+e)),t.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:t.to((e=>e.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}function ic({element:e,target:t,positions:n,limiter:o,fitInViewport:a,viewportOffsetConfig:r}){C(t)&&(t=t()),C(o)&&(o=o());const i=function(e){return e&&e.parentNode?e.offsetParent===Sa.document.body?null:e.offsetParent:null}(e),s=new Sr(e);let l;const c={targetRect:new Sr(t),elementRect:s,positionedElementAncestor:i};if(o||a){const e=o&&new Sr(o).getVisible(),t=a&&function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new Sr(Sa.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}(r);Object.assign(c,{limiterRect:e,viewportRect:t}),l=function(e,t){const{elementRect:n}=t,o=n.getArea(),a=e.map((e=>new lc(e,t))).filter((e=>!!e.name));let r=0,i=null;for(const e of a){const{_limiterIntersectionArea:t,_viewportIntersectionArea:n}=e;if(t===o)return e;const a=n**2+t**2;a>r&&(r=a,i=e)}return i}(n,c)||new lc(n[0],c)}else l=new lc(n[0],c);return l}function sc(e){const{scrollX:t,scrollY:n}=Sa.window;return e.clone().moveBy(t,n)}n(31);class lc{constructor(e,t){const n=e(t.targetRect,t.elementRect,t.viewportRect);if(!n)return;const{left:o,top:a,name:r,config:i}=n;Object.assign(this,{name:r,config:i}),this._positioningFunctionCorrdinates={left:o,top:a},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get _limiterIntersectionArea(){const e=this._options.limiterRect;if(e){const t=this._options.viewportRect;if(!t)return e.getIntersectionArea(this._rect);{const n=e.getIntersection(t);if(n)return n.getIntersectionArea(this._rect)}}return 0}get _viewportIntersectionArea(){const e=this._options.viewportRect;return e?e.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=sc(this._rect),this._options.positionedElementAncestor&&function(e,t){const n=sc(new Sr(t)),o=xr(t);let a=0,r=0;a-=n.left,r-=n.top,a+=t.scrollLeft,r+=t.scrollTop,a-=o.left,r-=o.top,e.moveBy(a,r)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}class cc extends Al{constructor(e,t,n){super(e);const o=this.bindTemplate;this.buttonView=t,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new Nr,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",o.to("class"),o.if("isEnabled","ck-disabled",(e=>!e))],id:o.to("id"),"aria-describedby":o.to("ariaDescribedById")},children:[t,n]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=cc._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,t())};this.keystrokes.set("arrowdown",((e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())})),this.keystrokes.set("arrowright",((e,t)=>{this.isOpen&&t()})),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:e,north:t,southEast:n,southWest:o,northEast:a,northWest:r,southMiddleEast:i,southMiddleWest:s,northMiddleEast:l,northMiddleWest:c}=cc.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,o,i,s,e,a,r,l,c,t]:[o,n,s,i,e,r,a,c,l,t]}}cc.defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}),southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"})},cc._getOptimalPosition=ic;class dc extends Al{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class uc extends Al{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function pc(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}n(33);class hc extends Al{constructor(e,t){super(e);const n=this.bindTemplate,o=this.t;this.options=t||{},this.set("ariaLabel",o("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Lr,this.keystrokes=new Nr,this.set("class"),this.set("isCompact",!1),this.itemsView=new mc(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const a="rtl"===e.uiLanguageDirection;this._focusCycler=new ec({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[a?"arrowright":"arrowleft","arrowup"],focusNext:[a?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var i;this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:this.children,on:{mousedown:(i=this,i.bindTemplate.to((e=>{e.target===i.element&&e.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new gc(this):new fc(this)}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t){const n=pc(e),o=n.items.filter(((e,o,a)=>"|"===e||-1===n.removeItems.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(Object(s.b)("toolbarview-line-break-ignored-when-grouping-items",a),!1):!!t.has(e)||(Object(s.b)("toolbarview-item-unavailable",{name:e}),!1)))),a=this._cleanSeparators(o).map((e=>"|"===e?new dc:"-"===e?new uc:t.create(e)));this.items.addMany(a)}_cleanSeparators(e){const t=e=>"-"!==e&&"|"!==e,n=e.length,o=e.findIndex(t),a=n-e.slice().reverse().findIndex(t);return e.slice(o,a).filter(((e,n,o)=>!!t(e)||!(n>0&&o[n-1]===e)))}}class mc extends Al{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class fc{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((e=>e)),e.focusables.bindTo(e.items).using((e=>e)),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class gc{constructor(e){this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using((e=>e)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",((e,t)=>{const n=t.index;for(const e of t.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(e):this.ungroupedItems.remove(e);for(let e=n;e<n+t.added.length;e++){const o=t.added[e-n];e>this.ungroupedItems.length?this.groupedItems.add(o,e-this.ungroupedItems.length):this.ungroupedItems.add(o,e)}this._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Sr(e.lastChild),o=new Sr(e);if(!this.cachedPadding){const n=Sa.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[o])}return"ltr"===t?n.right>o.right-this.cachedPadding:n.left<o.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new Cr(this.viewElement,(t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new dc),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,n=yc(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",wc(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:xl}),n.toolbarView.items.bindTo(this.groupedItems).using((e=>e)),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((e=>{this.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}n(35);class vc extends Al{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new Lr,this.keystrokes=new Nr,this._focusCycler=new ec({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",((e,t)=>{this.focusTracker.add(t.element)})),this.items.on("remove",((e,t)=>{this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class _c extends Al{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}class bc extends Al{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}function yc(e,t=oc){const n=new t(e),o=new rc(e),a=new cc(e,n,o);return n.bind("isEnabled").to(a),n instanceof oc?n.bind("isOn").to(a,"isOpen"):n.arrowView.bind("isOn").to(a,"isOpen"),function(e){(function(e){e.on("render",(()=>{Sl({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(t=>{t.source instanceof Zl||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",((t,n)=>{e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",((t,n)=>{e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(a),a}function wc(e,t){const n=e.locale,o=n.t,a=e.toolbarView=new hc(n);a.set("ariaLabel",o("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((e=>a.items.add(e))),e.panelView.children.add(a),a.items.delegate("execute").to(e)}function kc(e,t){const n=e.locale,o=e.listView=new vc(n);o.items.bindTo(t).using((({type:e,model:t})=>{if("separator"===e)return new bc(n);if("button"===e||"switchbutton"===e){const o=new _c(n);let a;return a="button"===e?new Ql(n):new Zl(n),a.bind(...Object.keys(t)).to(t),a.delegate("execute").to(o),o.children.add(a),o}})),e.panelView.children.add(o),o.items.delegate("execute").to(e)}n(37),n(39),n(41);class xc extends Al{constructor(e){super(e),this.body=new Kl(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}n(43);class Ec extends Al{constructor(e){super(e),this.set("text"),this.set("for"),this.id="ck-editor__label_"+r();const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class Sc extends xc{constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const e=this.t,t=new Ec;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class Mc extends Al{constructor(e,t,n){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const e=this._editingView;function t(t){e.change((n=>{const o=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",o),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",o)}))}e.isRenderingInProgress?function n(o){e.once("change:isRenderingInProgress",((e,a,r)=>{r?n(o):t(o)}))}(this):t(this)}}class Tc extends Mc{constructor(e,t,n){super(e,t,n),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const e=this._editingView,t=this.t;e.change((n=>{const o=e.document.getRoot(this.name);n.setAttribute("aria-label",t("Rich Text Editor, %0",this.name),o)}))}}n(45),n(47);class Cc extends Al{constructor(e){super(e),this.set("value"),this.set("id"),this.set("placeholder"),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById"),this.focusTracker=new Lr,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to(((...e)=>{this.fire("input",...e),this._updateIsEmpty()})),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((e,t,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}n(49);class Ac extends Al{constructor(e,t){super(e);const n="ck-labeled-field-view-"+r(),o="ck-labeled-field-view-status-"+r();this.fieldView=t(this,n,o),this.set("label"),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class"),this.set("placeholder"),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(o),this.bind("_statusText").to(this,"errorText",this,"infoText",((e,t)=>e||t));const a=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",a.to("class"),a.if("isEnabled","ck-disabled",(e=>!e)),a.if("isEmpty","ck-labeled-field-view_empty"),a.if("isFocused","ck-labeled-field-view_focused"),a.if("placeholder","ck-labeled-field-view_placeholder"),a.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[this.fieldView,this.labelView]},this.statusView]})}_createLabelView(e){const t=new Ec(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new Al(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(e=>!e))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}focus(){this.fieldView.focus()}}function Dc(e,t,n){const o=new Cc(e.locale);return o.set({id:t,ariaDescribedById:n}),o.bind("isReadOnly").to(e,"isEnabled",(e=>!e)),o.bind("hasError").to(e,"errorText",(e=>!!e)),o.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(o),o}class Pc extends fn{static get pluginName(){return"Notification"}init(){this.on("show:warning",((e,t)=>{window.alert(t.message)}),{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}class Lc{constructor(e,t){t&&Se(this,t),e&&this.set(e)}}je(Lc,Le),n(51);const Nc=Dr("px"),Ic=Sa.document.body;class Oc extends Al{constructor(e){super(e);const t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class"),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",(e=>"ck-balloon-panel_"+e)),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",Nc),left:t.to("left",Nc)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=Oc.defaultPositions,n=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:Ic,fitInViewport:!0},e),o=Oc._getOptimalPosition(n),a=parseInt(o.left),r=parseInt(o.top),{name:i,config:s={}}=o,{withArrow:l=!0}=s;Object.assign(this,{top:r,left:a,position:i,withArrow:l})}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){this.attachTo(e);const t=Rc(e.target),n=e.limiter?Rc(e.limiter):Ic;this.listenTo(Sa.document,"scroll",((o,a)=>{const r=a.target,i=t&&r.contains(t),s=n&&r.contains(n);!i&&!s&&t&&n||this.attachTo(e)}),{useCapture:!0}),this.listenTo(Sa.window,"resize",(()=>{this.attachTo(e)}))}_stopPinning(){this.stopListening(Sa.document,"scroll"),this.stopListening(Sa.window,"resize")}}function Rc(e){return nn(e)?e:kr(e)?e.commonAncestorContainer:"function"==typeof e?Rc(e()):null}Oc.arrowHorizontalOffset=25,Oc.arrowVerticalOffset=10,Oc.stickyVerticalOffset=20,Oc._getOptimalPosition=ic,Oc.defaultPositions=function({horizontalOffset:e=Oc.arrowHorizontalOffset,verticalOffset:t=Oc.arrowVerticalOffset,stickyVerticalOffset:n=Oc.stickyVerticalOffset,config:o}={}){return{northWestArrowSouthWest:(t,n)=>({top:a(t,n),left:t.left-e,name:"arrow_sw",...o&&{config:o}}),northWestArrowSouthMiddleWest:(t,n)=>({top:a(t,n),left:t.left-.25*n.width-e,name:"arrow_smw",...o&&{config:o}}),northWestArrowSouth:(e,t)=>({top:a(e,t),left:e.left-t.width/2,name:"arrow_s",...o&&{config:o}}),northWestArrowSouthMiddleEast:(t,n)=>({top:a(t,n),left:t.left-.75*n.width+e,name:"arrow_sme",...o&&{config:o}}),northWestArrowSouthEast:(t,n)=>({top:a(t,n),left:t.left-n.width+e,name:"arrow_se",...o&&{config:o}}),northArrowSouthWest:(t,n)=>({top:a(t,n),left:t.left+t.width/2-e,name:"arrow_sw",...o&&{config:o}}),northArrowSouthMiddleWest:(t,n)=>({top:a(t,n),left:t.left+t.width/2-.25*n.width-e,name:"arrow_smw",...o&&{config:o}}),northArrowSouth:(e,t)=>({top:a(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s",...o&&{config:o}}),northArrowSouthMiddleEast:(t,n)=>({top:a(t,n),left:t.left+t.width/2-.75*n.width+e,name:"arrow_sme",...o&&{config:o}}),northArrowSouthEast:(t,n)=>({top:a(t,n),left:t.left+t.width/2-n.width+e,name:"arrow_se",...o&&{config:o}}),northEastArrowSouthWest:(t,n)=>({top:a(t,n),left:t.right-e,name:"arrow_sw",...o&&{config:o}}),northEastArrowSouthMiddleWest:(t,n)=>({top:a(t,n),left:t.right-.25*n.width-e,name:"arrow_smw",...o&&{config:o}}),northEastArrowSouth:(e,t)=>({top:a(e,t),left:e.right-t.width/2,name:"arrow_s",...o&&{config:o}}),northEastArrowSouthMiddleEast:(t,n)=>({top:a(t,n),left:t.right-.75*n.width+e,name:"arrow_sme",...o&&{config:o}}),northEastArrowSouthEast:(t,n)=>({top:a(t,n),left:t.right-n.width+e,name:"arrow_se",...o&&{config:o}}),southWestArrowNorthWest:(t,n)=>({top:r(t),left:t.left-e,name:"arrow_nw",...o&&{config:o}}),southWestArrowNorthMiddleWest:(t,n)=>({top:r(t),left:t.left-.25*n.width-e,name:"arrow_nmw",...o&&{config:o}}),southWestArrowNorth:(e,t)=>({top:r(e),left:e.left-t.width/2,name:"arrow_n",...o&&{config:o}}),southWestArrowNorthMiddleEast:(t,n)=>({top:r(t),left:t.left-.75*n.width+e,name:"arrow_nme",...o&&{config:o}}),southWestArrowNorthEast:(t,n)=>({top:r(t),left:t.left-n.width+e,name:"arrow_ne",...o&&{config:o}}),southArrowNorthWest:(t,n)=>({top:r(t),left:t.left+t.width/2-e,name:"arrow_nw",...o&&{config:o}}),southArrowNorthMiddleWest:(t,n)=>({top:r(t),left:t.left+t.width/2-.25*n.width-e,name:"arrow_nmw",...o&&{config:o}}),southArrowNorth:(e,t)=>({top:r(e),left:e.left+e.width/2-t.width/2,name:"arrow_n",...o&&{config:o}}),southArrowNorthMiddleEast:(t,n)=>({top:r(t),left:t.left+t.width/2-.75*n.width+e,name:"arrow_nme",...o&&{config:o}}),southArrowNorthEast:(t,n)=>({top:r(t),left:t.left+t.width/2-n.width+e,name:"arrow_ne",...o&&{config:o}}),southEastArrowNorthWest:(t,n)=>({top:r(t),left:t.right-e,name:"arrow_nw",...o&&{config:o}}),southEastArrowNorthMiddleWest:(t,n)=>({top:r(t),left:t.right-.25*n.width-e,name:"arrow_nmw",...o&&{config:o}}),southEastArrowNorth:(e,t)=>({top:r(e),left:e.right-t.width/2,name:"arrow_n",...o&&{config:o}}),southEastArrowNorthMiddleEast:(t,n)=>({top:r(t),left:t.right-.75*n.width+e,name:"arrow_nme",...o&&{config:o}}),southEastArrowNorthEast:(t,n)=>({top:r(t),left:t.right-n.width+e,name:"arrow_ne",...o&&{config:o}}),viewportStickyNorth:(e,t,a)=>e.getIntersection(a)?{top:a.top+n,left:e.left+e.width/2-t.width/2,name:"arrowless",config:{withArrow:!1,...o}}:null};function a(e,n){return e.top-n.height-t}function r(e){return e.bottom+t}}(),n(53),n(55);const Fc=Dr("px");class jc extends Ye{static get pluginName(){return"ContextualBalloon"}constructor(e){super(e),this.positionLimiter=()=>{const e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this.view=new Oc(e.locale),e.ui.view.body.add(this.view),e.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this.hasView(e.view))throw new s.a("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new s.a("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new s.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find((t=>t[1]===e))[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new Yc(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>1)),e.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((e,n)=>{if(n<2)return"";const o=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[o,n])})),e.buttonNextView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),e.buttonPrevView.on("execute",(()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),e}_createFakePanelsView(){const e=new zc(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((e,t)=>!t&&e>=2?Math.min(e-1,2):0)),e.listenTo(this.view,"change:top",(()=>e.updatePosition())),e.listenTo(this.view,"change:left",(()=>e.updatePosition())),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:n=!0,singleViewMode:o=!1}){this.view.class=t,this.view.withArrow=n,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class Yc extends Al{constructor(e){super(e);const t=e.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Lr,this.buttonPrevView=this._createButtonView(t("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),this.buttonNextView=this._createButtonView(t("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(e=>e?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const n=new Ql(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}class zc extends Al{constructor(e,t){super(e);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(e=>e?"":"ck-hidden"))],style:{top:n.to("top",Fc),left:n.to("left",Fc),width:n.to("width",Fc),height:n.to("height",Fc)}},children:this.content}),this.on("change:numberOfPanels",((e,t,n,o)=>{n>o?this._addPanels(n-o):this._removePanels(o-n),this.updatePosition()}))}_addPanels(e){for(;e--;){const e=new Al;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:n,height:o}=new Sr(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:n,height:o})}}}n(57);const Bc=Dr("px");class Hc extends Al{constructor(e){super(e);const t=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Dl({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",(e=>e?"block":"none")),height:t.to("isSticky",(e=>e?Bc(this._panelRect.height):null))}}}).render(),this._contentPanel=new Dl({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",(e=>e?Bc(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:t.to("_hasViewportTopOffset",(e=>e?Bc(this.viewportTopOffset):null)),bottom:t.to("_isStickyToTheLimiter",(e=>e?Bc(this.limiterBottomOffset):null)),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Sa.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const e=this._panelRect=this._contentPanel.getBoundingClientRect();let t;this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Bc(-Sa.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}Dr("px"),n(59),Dr("px"),Dr("px"),n(61);const Vc=new WeakMap;function Uc(e){const{view:t,element:n,text:o,isDirectHost:a=!0,keepOnFocus:r=!1}=e,i=t.document;Vc.has(i)||(Vc.set(i,new Map),i.registerPostFixer((e=>Wc(i,e)))),Vc.get(i).set(n,{text:o,isDirectHost:a,keepOnFocus:r,hostElement:a?n:null}),t.change((e=>Wc(i,e)))}function Wc(e,t){const n=Vc.get(e),o=[];let a=!1;for(const[e,r]of n)r.isDirectHost&&(o.push(e),qc(t,e,r)&&(a=!0));for(const[e,r]of n){if(r.isDirectHost)continue;const n=$c(e);n&&(o.includes(n)||(r.hostElement=n,qc(t,e,r)&&(a=!0)))}return a}function qc(e,t,n){const{text:o,isDirectHost:a,hostElement:r}=n;let i=!1;return r.getAttribute("data-placeholder")!==o&&(e.setAttribute("data-placeholder",o,r),i=!0),(a||1==t.childCount)&&function(e,t){if(!e.isAttached())return!1;if(Array.from(e.getChildren()).some((e=>!e.is("uiElement"))))return!1;if(t)return!0;const n=e.document;if(!n.isFocused)return!0;const o=n.selection.anchor;return o&&o.parent!==e}(r,n.keepOnFocus)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,r)&&(i=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,r)&&(i=!0),i}function $c(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}const Gc=new Map;function Kc(e,t,n){let o=Gc.get(e);o||(o=new Map,Gc.set(e,o)),o.set(t,n)}function Jc(e){return[e]}function Xc(e,t,n={}){const o=function(e,t){const n=Gc.get(e);return n&&n.has(t)?n.get(t):Jc}(e.constructor,t.constructor);try{return o(e=e.clone(),t,n)}catch(e){throw e}}function Qc(e,t,n){e=e.slice(),t=t.slice();const o=new Zc(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(e),o.setOriginalOperations(t);const a=o.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:a};const r=new WeakMap;for(const t of e)r.set(t,0);const i={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let s=0;for(;s<e.length;){const n=e[s],a=r.get(n);if(a==t.length){s++;continue}const i=t[a],l=Xc(n,i,o.getContext(n,i,!0)),c=Xc(i,n,o.getContext(i,n,!1));o.updateRelation(n,i),o.setOriginalOperations(l,n),o.setOriginalOperations(c,i);for(const e of l)r.set(e,a+c.length);e.splice(s,1,...l),t.splice(a,1,...c)}if(n.padWithNoOps){const n=e.length-i.originalOperationsACount,o=t.length-i.originalOperationsBCount;td(e,o-n),td(t,n-o)}return ed(e,i.nextBaseVersionB),ed(t,i.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:a}}class Zc{constructor(e,t,n=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(e,t=null){const n=t?this.originalOperations.get(t):null;for(const t of e)this.originalOperations.set(t,n||t)}updateRelation(e,t){switch(e.constructor){case Ms:switch(t.constructor){case Ps:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case Ms:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Ls:switch(t.constructor){case Ps:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case Ms:if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const n=oi._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){const o=n.end.offset-e.splitPosition.offset,a=e.splitPosition.offset-n.start.offset;this._setRelation(e,t,{howMany:o,offset:a})}}}break;case Ps:switch(t.constructor){case Ps:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Ls:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case Cs:{const n=e.newRange;if(!n)return;switch(t.constructor){case Ms:{const o=oi._createFromPositionAndShift(t.sourcePosition,t.howMany),a=o.containsPosition(n.start)||o.start.isEqual(n.start),r=o.containsPosition(n.end)||o.end.isEqual(n.end);!a&&!r||o.containsRange(n)||this._setRelation(e,t,{side:a?"left":"right",path:a?n.start.path.slice():n.end.path.slice()});break}case Ps:{const o=n.start.isEqual(t.targetPosition),a=n.start.isEqual(t.deletionPosition),r=n.end.isEqual(t.deletionPosition),i=n.end.isEqual(t.sourcePosition);(o||a||r||i)&&this._setRelation(e,t,{wasInLeftElement:o,wasStartBeforeMergedElement:a,wasEndBeforeMergedElement:r,wasInRightElement:i});break}}break}}}getContext(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const n=this.originalOperations.get(t),o=this._history.getUndoneOperation(n);if(!o)return null;const a=this.originalOperations.get(e),r=this._relations.get(a);return r&&r.get(o)||null}_setRelation(e,t,n){const o=this.originalOperations.get(e),a=this.originalOperations.get(t);let r=this._relations.get(o);r||(r=new Map,this._relations.set(o,r)),r.set(a,n)}}function ed(e,t){for(const n of e)n.baseVersion=t++}function td(e,t){for(let n=0;n<t;n++)e.push(new Xs(0))}function nd(e,t,n){const o=e.nodes.getNode(0).getAttribute(t);if(o==n)return null;const a=new oi(e.position,e.position.getShiftedBy(e.howMany));return new Es(a,t,o,n,0)}function od(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function ad(e,t){const n=[];for(let o=0;o<e.length;o++){const a=e[o],r=new Ms(a.start,a.end.offset-a.start.offset,t,0);n.push(r);for(let t=o+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return n}Kc(Es,Es,((e,t,n)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const o=e.range.getDifference(t.range).map((t=>new Es(t,e.key,e.oldValue,e.newValue,0))),a=e.range.getIntersection(t.range);return a&&n.aIsStrong&&o.push(new Es(a,t.key,t.newValue,e.newValue,0)),0==o.length?[new Xs(0)]:o}return[e]})),Kc(Es,Ts,((e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((t=>new Es(t,e.key,e.oldValue,e.newValue,e.baseVersion)));if(t.shouldReceiveAttributes){const o=nd(t,e.key,e.oldValue);o&&n.unshift(o)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),Kc(Es,Ps,((e,t)=>{const n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(oi._createFromPositionAndShift(t.graveyardPosition,1));const o=e.range._getTransformedByMergeOperation(t);return o.isCollapsed||n.push(o),n.map((t=>new Es(t,e.key,e.oldValue,e.newValue,e.baseVersion)))})),Kc(Es,Ms,((e,t)=>function(e,t){const n=oi._createFromPositionAndShift(t.sourcePosition,t.howMany);let o=null,a=[];n.containsRange(e,!0)?o=e:e.start.hasSameParentAs(n.start)?(a=e.getDifference(n),o=e.getIntersection(n)):a=[e];const r=[];for(let e of a){e=e._getTransformedByDeletion(t.sourcePosition,t.howMany);const n=t.getMovedRangeStart(),o=e.start.hasSameParentAs(n);e=e._getTransformedByInsertion(n,t.howMany,o),r.push(...e)}return o&&r.push(o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),r}(e.range,t).map((t=>new Es(t,e.key,e.oldValue,e.newValue,e.baseVersion))))),Kc(Es,Ls,((e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const n=e.clone();return n.range=new oi(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),Kc(Ts,Es,((e,t)=>{const n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const o=nd(e,t.key,t.newValue);o&&n.push(o)}return n})),Kc(Ts,Ts,((e,t,n)=>(e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]))),Kc(Ts,Ms,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),Kc(Ts,Ls,((e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e]))),Kc(Ts,Ps,((e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e]))),Kc(Cs,Ts,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]))),Kc(Cs,Cs,((e,t,n)=>{if(e.name==t.name){if(!n.aIsStrong)return[new Xs(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),Kc(Cs,Ps,((e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]))),Kc(Cs,Ms,((e,t,n)=>{if(e.oldRange&&(e.oldRange=oi._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){const o=oi._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=o.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=o.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=oi._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),Kc(Cs,Ls,((e,t,n)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){const o=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Zr._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Zr._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=Zr._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=Zr._createAt(t.insertionPosition):e.newRange.end=o.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),Kc(Ps,Ts,((e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]))),Kc(Ps,Ps,((e,t,n)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),e.sourcePosition=new Zr(t.graveyardPosition.root,n),e.howMany=0,[e]}return[new Xs(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const o="$graveyard"==e.targetPosition.root.rootName,a="$graveyard"==t.targetPosition.root.rootName;if(a&&!o||(!o||a)&&n.aIsStrong){const n=t.targetPosition._getTransformedByMergeOperation(t),o=e.targetPosition._getTransformedByMergeOperation(t);return[new Ms(n,e.howMany,o,0)]}return[new Xs(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Kc(Ps,Ms,((e,t,n)=>{const o=oi._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.sourcePosition)?[new Xs(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),Kc(Ps,Ls,((e,t,n)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){const o=0!=t.howMany,a=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(o||a||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),Kc(Ms,Ts,((e,t)=>{const n=oi._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),Kc(Ms,Ms,((e,t,n)=>{const o=oi._createFromPositionAndShift(e.sourcePosition,e.howMany),a=oi._createFromPositionAndShift(t.sourcePosition,t.howMany);let r,i=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),r=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),od(e,t)&&od(t,e))return[t.getReversed()];if(o.containsPosition(t.targetPosition)&&o.containsRange(a,!0))return o.start=o.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),o.end=o.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),ad([o],r);if(a.containsPosition(e.targetPosition)&&a.containsRange(o,!0))return o.start=o.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),o.end=o.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),ad([o],r);const l=gn(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return o.start=o.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),o.end=o.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),ad([o],r);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(i=!1):i=!0;const c=[],d=o.getDifference(a);for(const e of d){e.start=e.start._getTransformedByDeletion(t.sourcePosition,t.howMany),e.end=e.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const n="same"==gn(e.start.getParentPath(),t.getMovedRangeStart().getParentPath()),o=e._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,n);c.push(...o)}const u=o.getIntersection(a);return null!==u&&i&&(u.start=u.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.end=u.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===c.length?c.push(u):1==c.length?a.start.isBefore(o.start)||a.start.isEqual(o.start)?c.unshift(u):c.push(u):c.splice(1,0,u)),0===c.length?[new Xs(e.baseVersion)]:ad(c,r)})),Kc(Ms,Ls,((e,t,n)=>{let o=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(o=e.targetPosition._getTransformedBySplitOperation(t));const a=oi._createFromPositionAndShift(e.sourcePosition,e.howMany);if(a.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=o,[e];if(a.start.hasSameParentAs(t.splitPosition)&&a.containsPosition(t.splitPosition)){let e=new oi(t.splitPosition,a.end);return e=e._getTransformedBySplitOperation(t),ad([new oi(a.start,t.splitPosition),e],o)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(o=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(o=e.targetPosition);const r=[a._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const o=a.start.isEqual(t.graveyardPosition)||a.containsPosition(t.graveyardPosition);e.howMany>1&&o&&!n.aWasUndone&&r.push(oi._createFromPositionAndShift(t.insertionPosition,1))}return ad(r,o)})),Kc(Ms,Ps,((e,t,n)=>{const o=oi._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Xs(0)]}else if(!n.aWasUndone){const n=[];let o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(n.push(new Ms(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const r=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),i=new Ms(o,1,r,0),s=i.getMovedRangeStart().path.slice();s.push(0);const l=new Zr(i.targetPosition.root,s);a=a._getTransformedByMove(o,r,1);const c=new Ms(a,t.howMany,l,0);return n.push(i),n.push(c),n}const a=oi._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=a.start,e.howMany=a.end.offset-a.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),Kc(As,Ts,((e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e]))),Kc(As,Ps,((e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e]))),Kc(As,Ms,((e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e]))),Kc(As,As,((e,t,n)=>{if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Xs(0)];e.oldName=t.newName}return[e]})),Kc(As,Ls,((e,t)=>{if("same"==gn(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const t=new As(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Kc(Ds,Ds,((e,t,n)=>{if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Xs(0)];e.oldValue=t.newValue}return[e]})),Kc(Ls,Ts,((e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e]))),Kc(Ls,Ps,((e,t,n)=>{if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const o=new Zr(t.graveyardPosition.root,n),a=Ls.getInsertionPosition(new Zr(t.graveyardPosition.root,n)),r=new Ls(o,0,a,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Ls.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Ls.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Kc(Ls,Ms,((e,t,n)=>{const o=oi._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const a=o.start.isEqual(e.graveyardPosition)||o.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&a){const n=e.splitPosition._getTransformedByMoveOperation(t),o=e.graveyardPosition._getTransformedByMoveOperation(t),a=o.path.slice();a.push(0);const r=new Zr(o.root,a);return[new Ms(n,e.howMany,r,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const a=e.splitPosition.isEqual(t.targetPosition);if(a&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Ls.getInsertionPosition(e.splitPosition),[e];if(a&&n.abRelation&&n.abRelation.howMany){const{howMany:t,offset:o}=n.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(o),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.splitPosition)){const n=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=n,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Ls.getInsertionPosition(e.splitPosition),[e]}return t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Ls.getInsertionPosition(e.splitPosition),[e]})),Kc(Ls,Ls,((e,t,n)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Xs(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Xs(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const o="$graveyard"==e.splitPosition.root.rootName,a="$graveyard"==t.splitPosition.root.rootName;if(a&&!o||(!o||a)&&n.aIsStrong){const n=[];return t.howMany&&n.push(new Ms(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&n.push(new Ms(e.splitPosition,e.howMany,e.moveTargetPosition,0)),n}return[new Xs(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){const n=t.insertionPosition.path.slice();n.push(0);const o=new Zr(t.insertionPosition.root,n);return[e,new Ms(e.insertionPosition,1,o,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Ls.getInsertionPosition(e.splitPosition),[e]}));class rd extends tr{constructor(e){super(e),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class id extends tr{constructor(e){super(e),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class sd{constructor(e){this.document=e}createDocumentFragment(e){return new Go(this.document,e)}createElement(e,t,n){return new eo(this.document,e,t,n)}createText(e){return new bn(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,n){return n._insertChild(e,t)}removeChildren(e,t,n){return n._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const n=e.parent;if(n){const o=n.getChildIndex(e);return this.removeChildren(o,1,n),this.insertChild(o,t,n),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}rename(e,t){const n=new eo(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}setAttribute(e,t,n){n._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,n){Xe(e)&&void 0===n&&(n=t),n._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,n){n._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return lo._createAt(e,t)}createPositionAfter(e){return lo._createAfter(e)}createPositionBefore(e){return lo._createBefore(e)}createRange(e,t){return new co(e,t)}createRangeOn(e){return co._createOn(e)}createRangeIn(e){return co._createIn(e)}createSelection(e,t,n){return new ho(e,t,n)}}new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);class ld extends bl{constructor(e,t){super(e),this.view=t,this._toolbarConfig=pc(e.config.get("toolbar")),this._elementReplacer=new yr}get element(){return this.view.element}init(e){const t=this.editor,n=this.view,o=t.editing.view,a=n.editable,r=o.document.getRoot();a.name=r.rootName,n.render();const i=a.element;this.setEditableElement(a.name,i),this.focusTracker.add(i),n.editable.bind("isFocused").to(this.focusTracker),o.attachDomRoot(i),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),super.destroy()}_initToolbar(){const e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(({top:e})=>e)),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),function({origin:e,originKeystrokeHandler:t,originFocusTracker:n,toolbar:o,beforeFocus:a,afterBlur:r}){n.add(o.element),t.set("Alt+F10",((e,t)=>{n.isFocused&&!o.focusTracker.isFocused&&(a&&a(),o.focus(),t())})),o.keystrokes.set("Esc",((t,n)=>{o.focusTracker.isFocused&&(e.focus(),r&&r(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}_initPlaceholder(){const e=this.editor,t=e.editing.view,n=t.document.getRoot(),o=e.sourceElement,a=e.config.get("placeholder")||o&&"textarea"===o.tagName.toLowerCase()&&o.getAttribute("placeholder");a&&Uc({view:t,element:n,text:a,isDirectHost:!1,keepOnFocus:!0})}}n(63);class cd extends Sc{constructor(e,t,n={}){super(e),this.stickyPanel=new Hc(e),this.toolbar=new hc(e,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new Tc(e,t)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class dd extends gl{constructor(e,t){super(t),nn(e)&&(this.sourceElement=e),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),o=new cd(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new ld(this,o),function(e){if(!C(e.updateSourceElement))throw new s.a("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){let n;const o=t.form,a=()=>e.updateSourceElement();C(o.submit)&&(n=o.submit,o.submit=()=>{a(),n.apply(o)}),o.addEventListener("submit",a),e.on("destroy",(()=>{o.removeEventListener("submit",a),n&&(o.submit=n)}))}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise((n=>{const o=new this(e,t);n(o.initPlugins().then((()=>o.ui.init(nn(e)?e:null))).then((()=>{if(!nn(e)&&t.initialData)throw new s.a("editor-create-initial-data",null);const n=void 0!==t.initialData?t.initialData:function(e){return nn(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return o.data.init(n)})).then((()=>o.fire("ready"))).then((()=>o)))}))}}je(dd,yl),je(dd,wl);class ud{constructor(e){this.files=function(e){const t=Array.from(e.files||[]),n=Array.from(e.items||[]);return t.length?t:n.filter((e=>"file"===e.kind)).map((e=>e.getAsFile()))}(e),this._native=e}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}class pd extends tr{constructor(e){super(e);const t=this.document;function n(e){return(n,a)=>{a.preventDefault();const r=a.dropRange?[a.dropRange]:null,i=new o(t,e);t.fire(i,{dataTransfer:a.dataTransfer,method:n.name,targetRanges:r,target:a.target}),i.stop.called&&a.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(t,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",n("dragging"),{priority:"low"})}onDomEvent(e){const t={dataTransfer:new ud(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"!=e.type&&"dragover"!=e.type||(t.dropRange=function(e,t){const n=t.target.ownerDocument,o=t.clientX,a=t.clientY;let r;return n.caretRangeFromPoint&&n.caretRangeFromPoint(o,a)?r=n.caretRangeFromPoint(o,a):t.rangeParent&&(r=n.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0)),r?e.domConverter.domRangeToView(r):null}(this.view,e)),this.fire(e.type,e,t)}}const hd=["figcaption","li"];class md extends Ye{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(pd),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const e=this.editor,t=e.model,n=e.editing.view,a=n.document;this.listenTo(a,"clipboardInput",(t=>{e.isReadOnly&&t.stop()}),{priority:"highest"}),this.listenTo(a,"clipboardInput",((e,t)=>{const a=t.dataTransfer;let r=t.content||"";var i;r||(a.getData("text/html")?r=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1==t.length?" ":t)).replace(/<!--[\s\S]*?-->/g,"")}(a.getData("text/html")):a.getData("text/plain")&&(((i=(i=a.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||i.includes("<br>"))&&(i=`<p>${i}</p>`),r=i),r=this.editor.data.htmlProcessor.toView(r));const s=new o(this,"inputTransformation");this.fire(s,{content:r,dataTransfer:a,targetRanges:t.targetRanges,method:t.method}),s.stop.called&&e.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((e,n)=>{if(n.content.isEmpty)return;const o=this.editor.data.toModel(n.content,"$clipboardHolder");0!=o.childCount&&(e.stop(),t.change((()=>{this.fire("contentInsertion",{content:o,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((e,n)=>{n.resultRange=t.insertContent(n.content)}),{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,n=e.editing.view.document;function o(o,a){const r=a.dataTransfer;a.preventDefault();const i=e.data.toView(e.model.getSelectedContent(t.selection));n.fire("clipboardOutput",{dataTransfer:r,content:i,method:o.name})}this.listenTo(n,"copy",o,{priority:"low"}),this.listenTo(n,"cut",((t,n)=>{e.isReadOnly?n.preventDefault():o(t,n)}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,o)=>{o.content.isEmpty||(o.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",function e(t){let n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else if(t.is("element","br"))n="\n";else{let o=null;for(const a of t.getChildren()){const t=e(a);o&&(o.is("containerElement")||a.is("containerElement"))&&(hd.includes(o.name)||hd.includes(a.name)?n+="\n":n+="\n\n"),n+=t,o=a}}return n}(o.content))),"cut"==o.method&&e.model.deleteContent(t.selection)}),{priority:"low"})}}function*fd(e,t){for(const n of t)n&&e.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class gd extends Be{execute(){const e=this.editor.model,t=e.document;e.change((n=>{!function(e,t,n,o){const a=n.isCollapsed,r=n.getFirstRange(),i=r.start.parent,s=r.end.parent;if(o.isLimit(i)||o.isLimit(s))a||i!=s||e.deleteContent(n);else if(a){const e=fd(t.model.schema,n.getAttributes());vd(t,r.start),t.setSelectionAttribute(e)}else{const o=!(r.start.isAtStart&&r.end.isAtEnd),a=i==s;e.deleteContent(n,{leaveUnmerged:o}),o&&(a?vd(t,n.focus):t.setSelection(s,0))}}(this.editor.model,n,t.selection,e.schema),this.fire("afterExecute",{writer:n})}))}}function vd(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}class _d extends ja{constructor(e){super(e);const t=this.document;t.on("keydown",((e,n)=>{if(this.isEnabled&&n.keyCode==jo.enter){const o=new fo(t,"enter",t.selection.getFirstRange());t.fire(o,new er(t,n.domEvent,{isSoft:n.shiftKey})),o.stop.called&&e.stop()}}))}observe(){}}class bd extends Ye{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,n=t.document;t.addObserver(_d),e.commands.add("enter",new gd(e)),this.listenTo(n,"enter",((n,o)=>{o.preventDefault(),o.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}class yd{constructor(e,t=20){this.model=e,this.size=0,this.limit=t,this.isLocked=!1,this._changeCallback=(e,t)=>{"transparent"!=t.type&&t!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(e){this.isLocked&&!e||(this._batch=null,this.size=0)}}class wd extends Be{constructor(e,t){super(e),this.direction=t,this._buffer=new yd(e.model,e.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,(o=>{this._buffer.lock();const a=o.createSelection(e.selection||n.selection),r=e.sequence||1,i=a.isCollapsed;if(a.isCollapsed&&t.modifySelection(a,{direction:this.direction,unit:e.unit}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(o);if(this._shouldReplaceFirstBlockWithParagraph(a,r))return void this.editor.execute("paragraph",{selection:a});if(a.isCollapsed)return;let s=0;a.getFirstRange().getMinimalFlatRanges().forEach((e=>{s+=po(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),t.deleteContent(a,{doNotResetEntireContent:i,direction:this.direction}),this._buffer.input(s),o.setSelection(a),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,n=t.document.selection,o=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(o))return!1;if(!t.schema.checkChild(o,"paragraph"))return!1;const a=o.getChild(0);return!a||"paragraph"!==a.name}_replaceEntireContentWithParagraph(e){const t=this.editor.model,n=t.document.selection,o=t.schema.getLimitElement(n),a=e.createElement("paragraph");e.remove(e.createRangeIn(o)),e.insert(a,o),e.setSelection(a,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const n=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const o=e.getFirstPosition(),a=n.schema.getLimitElement(o),r=a.getChild(0);return o.parent==r&&!!e.containsEntireContent(r)&&!!n.schema.checkChild(a,"paragraph")&&"paragraph"!=r.name}}function kd(e){if(e.newChildren.length-e.oldChildren.length!=1)return;const t=function(e,t){const n=[];let o,a=0;return e.forEach((e=>{"equal"==e?(r(),a++):"insert"==e?(i("insert")?o.values.push(t[a]):(r(),o={type:"insert",index:a,values:[t[a]]}),a++):i("delete")?o.howMany++:(r(),o={type:"delete",index:a,howMany:1})})),r(),n;function r(){o&&(n.push(o),o=null)}function i(e){return o&&o.type==e}}(va(e.oldChildren,e.newChildren,xd),e.newChildren);if(t.length>1)return;const n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}function xd(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}function Ed(e,t){const n=t.selection,o=e.shiftKey&&e.keyCode===jo.delete,a=!n.isCollapsed;return o&&a}class Sd extends ja{constructor(e){super(e);const t=e.document;let n=0;function o(e,n,o){const a=new fo(t,"delete",t.selection.getFirstRange());t.fire(a,new er(t,n,o)),a.stop.called&&e.stop()}t.on("keyup",((e,t)=>{t.keyCode!=jo.delete&&t.keyCode!=jo.backspace||(n=0)})),t.on("keydown",((e,a)=>{if(Do&&Ed(a,t))return;const r={};if(a.keyCode==jo.delete)r.direction="forward",r.unit="character";else{if(a.keyCode!=jo.backspace)return;r.direction="backward",r.unit="codePoint"}const i=Ao?a.altKey:a.ctrlKey;r.unit=i?"word":r.unit,r.sequence=++n,o(e,a.domEvent,r)})),No&&t.on("beforeinput",((t,n)=>{if("deleteContentBackward"!=n.domEvent.inputType)return;const a={unit:"codepoint",direction:"backward",sequence:1},r=n.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(a.selectionToRemove=e.domConverter.domSelectionToView(r)),o(t,n.domEvent,a)}))}observe(){}}class Md extends Ye{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,n=t.document,o=e.model.document;t.addObserver(Sd),this._undoOnBackspace=!1;const a=new wd(e,"forward");if(e.commands.add("deleteForward",a),e.commands.add("forwardDelete",a),e.commands.add("delete",new wd(e,"backward")),this.listenTo(n,"delete",((n,o)=>{const a={unit:o.unit,sequence:o.sequence};if(o.selectionToRemove){const t=e.model.createSelection(),n=[];for(const t of o.selectionToRemove.getRanges())n.push(e.editing.mapper.toModelRange(t));t.setTo(n),a.selection=t}e.execute("forward"==o.direction?"deleteForward":"delete",a),o.preventDefault(),t.scrollToTheSelection()}),{priority:"low"}),No){let e=null;this.listenTo(n,"delete",((t,n)=>{const o=n.domTarget.ownerDocument.defaultView.getSelection();e={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",((t,n)=>{if(e){const t=n.domTarget.ownerDocument.defaultView.getSelection();t.collapse(e.anchorNode,e.anchorOffset),t.extend(e.focusNode,e.focusOffset),e=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",((t,n)=>{this._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(this._undoOnBackspace=!1,e.execute("undo"),n.preventDefault(),t.stop())}),{context:"$capture"}),this.listenTo(o,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Td{constructor(){this._stack=[]}add(e,t){const n=this._stack,o=n[0];this._insertDescriptor(e);const a=n[0];o===a||Cd(o,a)||this.fire("change:top",{oldDescriptor:o,newDescriptor:a,writer:t})}remove(e,t){const n=this._stack,o=n[0];this._removeDescriptor(e);const a=n[0];o===a||Cd(o,a)||this.fire("change:top",{oldDescriptor:o,newDescriptor:a,writer:t})}_insertDescriptor(e){const t=this._stack,n=t.findIndex((t=>t.id===e.id));if(Cd(e,t[n]))return;n>-1&&t.splice(n,1);let o=0;for(;t[o]&&Ad(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,n=t.findIndex((t=>t.id===e));n>-1&&t.splice(n,1)}}function Cd(e,t){return e&&t&&e.priority==t.priority&&Dd(e.classes)==Dd(t.classes)}function Ad(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Dd(e.classes)>Dd(t.classes)}function Dd(e){return Array.isArray(e)?e.sort().join(","):e}function Pd(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Ld(e,t,n={}){if(!e.is("containerElement"))throw new s.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Yd,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){const n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){const t=this.toDomElement(e),n=new Jl;return n.set("content",'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Od(e,t),e}function Nd(e,t,n){if(t.classes&&n.addClass(dn(t.classes),e),t.attributes)for(const o in t.attributes)n.setAttribute(o,t.attributes[o],e)}function Id(e,t,n){if(t.classes&&n.removeClass(dn(t.classes),e),t.attributes)for(const o in t.attributes)n.removeAttribute(o,e)}function Od(e,t,n=Nd,o=Id){const a=new Td;a.on("change:top",((t,a)=>{a.oldDescriptor&&o(e,a.oldDescriptor,a.writer),a.newDescriptor&&n(e,a.newDescriptor,a.writer)})),t.setCustomProperty("addHighlight",((e,t,n)=>a.add(t,n)),e),t.setCustomProperty("removeHighlight",((e,t,n)=>a.remove(t,n)),e)}function Rd(e){const t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Fd(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",((n,o,a)=>{t.setAttribute("contenteditable",a?"false":"true",e)})),e.on("change:isFocused",((n,o,a)=>{a?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),Od(e,t),e}function jd(e,t){const n=e.getSelectedElement();if(n){const o=Bd(e);if(o)return t.createRange(t.createPositionAt(n,o));if(t.schema.isObject(n)&&!t.schema.isInline(n))return t.createRangeOn(n)}const o=e.getSelectedBlocks().next().value;if(o){if(o.isEmpty)return t.createRange(t.createPositionAt(o,0));const n=t.createPositionAfter(o);return e.focus.isTouching(n)?t.createRange(n):t.createRange(t.createPositionBefore(o))}return t.createRange(e.focus)}function Yd(){return null}function zd(e,t,n){return e&&Pd(e)&&!n.isInline(t)}function Bd(e){return e.getAttribute("widget-type-around")}je(Td,d);const Hd=[zo("arrowUp"),zo("arrowRight"),zo("arrowDown"),zo("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let e=112;e<=135;e++)Hd.push(e);function Vd(e){return!(!e.ctrlKey&&!e.metaKey)||Hd.includes(e.keyCode)}n(65);const Ud=["before","after"],Wd=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild;class qd extends Ye{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[bd,Md]}constructor(e){super(e),this._currentFakeCaretModelElement=null}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",((n,o,a)=>{t.change((e=>{for(const n of t.document.roots)a?e.removeClass("ck-widget__type-around_disabled",n):e.addClass("ck-widget__type-around_disabled",n)})),a||e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableDeleteContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const n=this.editor,o=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,n,o){this.listenTo(e,t,((...e)=>{this.isEnabled&&n(...e)}),o)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=Bd(e);if(!t)return!1;const n=e.getSelectedElement();return this._insertParagraph(n,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,n=e.locale.t,o={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",((e,n,a)=>{const r=a.mapper.toViewElement(n.item);zd(r,n.item,t)&&function(e,t,n){const o=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){const n=this.toDomElement(e);return function(e,t){for(const n of Ud){const o=new Dl({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+n],title:t[n]},children:[e.ownerDocument.importNode(Wd,!0)]});e.appendChild(o.render())}}(n,t),function(e){const t=new Dl({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),o)}(a.writer,o,r)}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,n=t.document.selection,o=t.schema,a=e.editing.view;function r(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(a.document,"arrowKey",((e,t)=>{this._handleArrowKeyPress(e,t)}),{context:[Pd,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((t,n)=>{n.directChange&&e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(t.document,"change:data",(()=>{const t=n.getSelectedElement();t&&zd(e.editing.mapper.toViewElement(t),t,o)||e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",((e,t,n)=>{const a=n.writer;if(this._currentFakeCaretModelElement){const e=n.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(a.removeClass(Ud.map(r),e),this._currentFakeCaretModelElement=null)}const i=t.selection.getSelectedElement();if(!i)return;const s=n.mapper.toViewElement(i);if(!zd(s,i,o))return;const l=Bd(t.selection);l&&(a.addClass(r(l),s),this._currentFakeCaretModelElement=i)})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",((t,n,o)=>{o||e.model.change((e=>{e.removeSelectionAttribute("widget-type-around")}))}))}_handleArrowKeyPress(e,t){const n=this.editor,o=n.model,a=o.document.selection,r=o.schema,i=n.editing.view,s=function(e,t){const n=Vo(e,t);return"down"===n||"right"===n}(t.keyCode,n.locale.contentLanguageDirection),l=i.document.selection.getSelectedElement();let c;zd(l,n.editing.mapper.toModelElement(l),r)?c=this._handleArrowKeyPressOnSelectedWidget(s):a.isCollapsed?c=this._handleArrowKeyPressWhenSelectionNextToAWidget(s):t.shiftKey||(c=this._handleArrowKeyPressWhenNonCollapsedSelection(s)),c&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,n=Bd(t.document.selection);return t.change((t=>n?n!==(e?"after":"before")&&(t.removeSelectionAttribute("widget-type-around"),!0):(t.setSelectionAttribute("widget-type-around",e?"after":"before"),!0)))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,n=t.model,o=n.schema,a=t.plugins.get("Widget"),r=a._getObjectElementNextToSelection(e);return!!zd(t.editing.mapper.toViewElement(r),r,o)&&(n.change((t=>{a._setSelectionOverElement(r),t.setSelectionAttribute("widget-type-around",e?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,n=t.model,o=n.schema,a=t.editing.mapper,r=n.document.selection,i=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!zd(a.toViewElement(i),i,o)&&(n.change((t=>{t.setSelection(i,"on"),t.setSelectionAttribute("widget-type-around",e?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",((n,o)=>{const a=o.domTarget.closest(".ck-widget__type-around__button");if(!a)return;const r=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(a),i=function(e,t){const n=e.closest(".ck-widget");return t.mapDomToView(n)}(a,t.domConverter),s=e.editing.mapper.toModelElement(i);this._insertParagraph(s,r),o.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,n=e.editing.view;this._listenToIfEnabled(n.document,"enter",((n,o)=>{if("atTarget"!=n.eventPhase)return;const a=t.getSelectedElement(),r=e.editing.mapper.toViewElement(a),i=e.model.schema;let s;this._insertParagraphAccordingToFakeCaretPosition()?s=!0:zd(r,a,i)&&(this._insertParagraph(a,o.isSoft?"before":"after"),s=!0),s&&(o.preventDefault(),n.stop())}),{context:Pd})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view,t=[jo.enter,jo.delete,jo.backspace];this._listenToIfEnabled(e.document,"keydown",((e,n)=>{t.includes(n.keyCode)||Vd(n)||this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,n=e.model,o=n.schema;this._listenToIfEnabled(t.document,"delete",((t,a)=>{if("atTarget"!=t.eventPhase)return;const r=Bd(n.document.selection);if(!r)return;const i=a.direction,s=n.document.selection.getSelectedElement(),l="forward"==i;if("before"===r===l)e.execute("delete",{selection:n.createSelection(s,"on")});else{const t=o.getNearestSelectionRange(n.createPositionAt(s,r),i);if(t)if(t.isCollapsed){const a=n.createSelection(t.start);if(n.modifySelection(a,{direction:i}),a.focus.isEqual(t.start)){const e=function(e,t){let n=t;for(const o of t.getAncestors({parentFirst:!0})){if(o.childCount>1||e.isLimit(o))break;n=o}return n}(o,t.start.parent);n.deleteContent(n.createSelection(e,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(t),e.execute(l?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(t),e.execute(l?"deleteForward":"delete")}))}a.preventDefault(),t.stop()}),{context:Pd})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",((e,[o,a])=>{if(a&&!a.is("documentSelection"))return;const r=Bd(n);return r?(e.stop(),t.change((e=>{const a=n.getSelectedElement(),i=t.createPositionAt(a,r),s=e.createSelection(i),l=t.insertContent(o,s);return e.setSelection(s),l}))):void 0}),{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",((e,[n])=>{n&&!n.is("documentSelection")||Bd(t)&&e.stop()}),{priority:"high"})}}function $d(e,t,n){const o=e.schema,a=e.createRangeIn(t.root),r="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:e,item:i,type:s}of a.getWalker({startPosition:t,direction:n})){if(o.isLimit(i)&&!o.isInline(i))return e;if(s==r&&o.isBlock(i))return null}return null}function Gd(e,t,n){const o="backward"==n?t.end:t.start;if(e.checkChild(o,"$text"))return o;for(const{nextPosition:o}of t.getWalker({direction:n}))if(e.checkChild(o,"$text"))return o;return null}n(67);class Kd extends Ye{static get pluginName(){return"Widget"}static get requires(){return[qd,Md]}init(){const e=this.editor,t=e.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",((t,n,o)=>{const a=o.writer,r=n.selection;if(r.isCollapsed)return;const i=r.getSelectedElement();if(!i)return;const s=e.editing.mapper.toViewElement(i);Pd(s)&&o.consumable.consume(r,"selection")&&a.setSelection(a.createRangeOn(s),{fake:!0,label:Rd(s)})})),this.editor.editing.downcastDispatcher.on("selection",((e,t,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const o=n.writer,a=o.document.selection;let r=null;for(const e of a.getRanges())for(const t of e){const e=t.item;Pd(e)&&!Jd(e,r)&&(o.addClass("ck-widget_selected",e),this._previouslySelected.add(e),r=e)}}),{priority:"low"}),t.addObserver(id),this.listenTo(n,"mousedown",((...e)=>this._onMousedown(...e))),this.listenTo(n,"arrowKey",((...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)}),{context:[Pd,"$text"]}),this.listenTo(n,"arrowKey",((...e)=>{this._preventDefaultOnArrowKeyPress(...e)}),{context:"$root"}),this.listenTo(n,"arrowKey",function(e){const t=e.model;return(n,o)=>{const a=o.keyCode==jo.arrowup,r=o.keyCode==jo.arrowdown,i=o.shiftKey,s=t.document.selection;if(!a&&!r)return;const l=r;if(i&&function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,l))return;const c=function(e,t,n){const o=e.model;if(n){const e=t.isCollapsed?t.focus:t.getLastPosition(),n=$d(o,e,"forward");if(!n)return null;const a=o.createRange(e,n),r=Gd(o.schema,a,"backward");return r?o.createRange(e,r):null}{const e=t.isCollapsed?t.focus:t.getFirstPosition(),n=$d(o,e,"backward");if(!n)return null;const a=o.createRange(n,e),r=Gd(o.schema,a,"forward");return r?o.createRange(r,e):null}}(e,s,l);if(c){if(c.isCollapsed){if(s.isCollapsed)return;if(i)return}(c.isCollapsed||function(e,t,n){const o=e.model,a=e.view.domConverter;if(n){const e=o.createSelection(t.start);o.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=o.createRange(e.focus,t.end))}const r=e.mapper.toViewRange(t),i=a.viewRangeToDom(r),s=Sr.getDomRangeRects(i);let l;for(const e of s)if(void 0!==l){if(Math.round(e.top)>=l)return!1;l=Math.max(l,Math.round(e.bottom))}else l=Math.round(e.bottom);return!0}(e,c,l))&&(t.change((e=>{const n=l?c.end:c.start;if(i){const o=t.createSelection(s.anchor);o.setFocus(n),e.setSelection(o)}else e.setSelection(n)})),n.stop(),o.preventDefault(),o.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",((e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())}),{context:"$root"})}_onMousedown(e,t){const n=this.editor,o=n.editing.view,a=o.document;let r=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Pd(e))return!1;e=e.parent}return!1}(r)){if((Lo||Po)&&t.domEvent.detail>=3){const e=n.editing.mapper,o=r.is("attributeElement")?r.findAncestor((e=>!e.is("attributeElement"))):r,a=e.toModelElement(o);t.preventDefault(),this.editor.model.change((e=>{e.setSelection(a,"in")}))}return}if(!Pd(r)&&(r=r.findAncestor(Pd),!r))return;No&&t.preventDefault(),a.isFocused||o.focus();const i=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(i)}_handleSelectionChangeOnArrowKeyPress(e,t){const n=t.keyCode,o=this.editor.model,a=o.schema,r=o.document.selection,i=r.getSelectedElement(),s=Vo(n,this.editor.locale.contentLanguageDirection),l="down"==s||"right"==s,c="up"==s||"down"==s;if(i&&a.isObject(i)){const n=l?r.getLastPosition():r.getFirstPosition(),i=a.getNearestSelectionRange(n,l?"forward":"backward");return void(i&&(o.change((e=>{e.setSelection(i)})),t.preventDefault(),e.stop()))}if(!r.isCollapsed&&!t.shiftKey){const n=r.getFirstPosition(),i=r.getLastPosition(),s=n.nodeAfter,c=i.nodeBefore;return void((s&&a.isObject(s)||c&&a.isObject(c))&&(o.change((e=>{e.setSelection(l?i:n)})),t.preventDefault(),e.stop()))}if(!r.isCollapsed)return;const d=this._getObjectElementNextToSelection(l);if(d&&a.isObject(d)){if(a.isInline(d)&&c)return;this._setSelectionOverElement(d),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const n=this.editor.model,o=n.schema,a=n.document.selection.getSelectedElement();a&&o.isObject(a)&&(t.preventDefault(),e.stop())}_handleDelete(e){if(this.editor.isReadOnly)return;const t=this.editor.model.document.selection;if(!t.isCollapsed)return;const n=this._getObjectElementNextToSelection(e);return n?(this.editor.model.change((e=>{let o=t.anchor.parent;for(;o.isEmpty;){const t=o;o=t.parent,e.remove(t)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(e){this.editor.model.change((t=>{t.setSelection(t.createRangeOn(e))}))}_getObjectElementNextToSelection(e){const t=this.editor.model,n=t.schema,o=t.document.selection,a=t.createSelection(o);if(t.modifySelection(a,{direction:e?"forward":"backward"}),a.isEqual(o))return null;const r=e?a.focus.nodeBefore:a.focus.nodeAfter;return r&&n.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass("ck-widget_selected",t);this._previouslySelected.clear()}}function Jd(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var Xd=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return _(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),mr(e,t,{leading:o,maxWait:t,trailing:a})};n(69);class Qd extends Ye{static get pluginName(){return"DragDrop"}static get requires(){return[md,Kd]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Xd((e=>this._updateDropMarker(e)),40),this._removeDropMarkerDelayed=tu((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=tu((()=>this._clearDraggableAttributes()),40),t.addObserver(pd),t.addObserver(id),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",((e,t,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((e,t,n)=>{n||this._finalizeDragging(!1)})),No&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,n=t.document,o=e.editing.view,a=o.document;this.listenTo(a,"dragstart",((o,i)=>{const s=n.selection;if(i.target&&i.target.is("editableElement"))return void i.preventDefault();const l=i.target?nu(i.target):null;if(l){const n=e.editing.mapper.toModelElement(l);this._draggedRange=gi.fromRange(t.createRangeOn(n)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!a.selection.isCollapsed){const e=a.selection.getSelectedElement();e&&Pd(e)||(this._draggedRange=gi.fromRange(s.getFirstRange()))}if(!this._draggedRange)return void i.preventDefault();this._draggingUid=r(),i.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",i.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=t.createSelection(this._draggedRange.toRange()),d=e.data.toView(t.getSelectedContent(c));a.fire("clipboardOutput",{dataTransfer:i.dataTransfer,content:d,method:o.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(a,"dragend",((e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(a,"dragenter",(()=>{this.isEnabled&&o.focus()})),this.listenTo(a,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(a,"dragging",((t,n)=>{if(!this.isEnabled)return void(n.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const o=Zd(e,n.targetRanges,n.target);this._draggedRange||(n.dataTransfer.dropEffect="copy"),Po||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),o&&this._updateDropMarkerThrottled(o)}),{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"clipboardInput",((t,n)=>{if("drop"!=n.method)return;const o=Zd(e,n.targetRanges,n.target);return this._removeDropMarker(),o?(this._draggedRange&&this._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==eu(n.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(o,!0)?(this._finalizeDragging(!1),void t.stop()):void(n.targetRanges=[e.editing.mapper.toViewRange(o)])):(this._finalizeDragging(!1),void t.stop())}),{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(md);e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const n=t.targetRanges.map((e=>this.editor.editing.mapper.toModelRange(e)));this.editor.model.change((e=>e.setSelection(n)))}),{priority:"high"}),e.on("contentInsertion",((e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const n="move"==eu(t.dataTransfer),o=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(o&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,n=t.document;this.listenTo(n,"mousedown",((o,a)=>{if(No||!a)return;this._clearDraggableAttributesDelayed.cancel();let r=nu(a.target);if(Io&&!e.isReadOnly&&!r&&!n.selection.isCollapsed){const e=n.selection.getSelectedElement();e&&Pd(e)||(r=n.selection.editableElement)}r&&(t.change((e=>{e.setAttribute("draggable","true",r)})),this._draggableElement=e.editing.mapper.toModelElement(r))})),this.listenTo(n,"mouseup",(()=>{No||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change((t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:n})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return n.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.innerHTML="&NoBreak;<span></span>&NoBreak;",t}))}})}_updateDropMarker(e){const t=this.editor,n=t.model.markers;t.model.change((t=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change((e=>{e.removeMarker("drop-target")}))}_finalizeDragging(e){const t=this.editor,n=t.model;this._removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function Zd(e,t,n){const o=e.model,a=e.editing.mapper;let r=null;const i=t?t[0].start:null;if(n.is("uiElement")&&(n=n.parent),r=function(e,t){const n=e.model,o=e.editing.mapper;if(Pd(t))return n.createRangeOn(o.toModelElement(t));if(!t.is("editableElement")){const e=t.findAncestor((e=>Pd(e)||e.is("editableElement")));if(Pd(e))return n.createRangeOn(o.toModelElement(e))}return null}(e,n),r)return r;const s=function(e,t){const n=e.editing.mapper,o=e.editing.view,a=n.toModelElement(t);if(a)return a;const r=o.createPositionBefore(t),i=n.findMappedViewAncestor(r);return n.toModelElement(i)}(e,n),l=i?a.toModelPosition(i):null;return l?(r=function(e,t,n){const o=e.model;if(!o.schema.checkChild(n,"$block"))return null;const a=o.createPositionAt(n,0),r=t.path.slice(0,a.path.length),i=o.createPositionFromPath(t.root,r).nodeAfter;return i&&o.schema.isObject(i)?o.createRangeOn(i):null}(e,l,s),r||(r=o.schema.getNearestSelectionRange(l,Po?"forward":"backward"),r||function(e,t){const n=e.model;for(;t;){if(n.schema.isObject(t))return n.createRangeOn(t);t=t.parent}}(e,l.parent))):function(e,t){const n=e.model,o=n.schema,a=n.createPositionAt(t,0);return o.getNearestSelectionRange(a,"forward")}(e,s)}function eu(e){return Po?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function tu(e,t){let n;function o(...a){o.cancel(),n=setTimeout((()=>e(...a)),t)}return o.cancel=()=>{clearTimeout(n)},o}function nu(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(Pd);if(Pd(e))return e;const t=e.findAncestor((e=>Pd(e)||e.is("editableElement")));return Pd(t)?t:null}class ou extends Ye{static get pluginName(){return"PastePlainText"}static get requires(){return[md]}init(){const e=this.editor,t=e.model,n=e.editing.view,o=n.document,a=t.document.selection;let r=!1;n.addObserver(pd),this.listenTo(o,"keydown",((e,t)=>{r=t.shiftKey})),e.plugins.get(md).on("contentInsertion",((e,n)=>{(r||function(e,t){if(e.childCount>1)return!1;const n=e.getChild(0);return!t.isObject(n)&&0==[...n.getAttributeKeys()].length}(n.content,t.schema))&&t.change((e=>{const o=Array.from(a.getAttributes()).filter((([e])=>t.schema.getAttributeProperties(e).isFormatting));a.isCollapsed||t.deleteContent(a,{doNotAutoparagraph:!0}),o.push(...a.getAttributes());const r=e.createRangeIn(n.content);for(const t of r.getItems())t.is("$textProxy")&&e.setAttributes(o,t)}))}))}}class au extends Ye{static get pluginName(){return"Clipboard"}static get requires(){return[md,Qd,ou]}}class ru extends Be{execute(){const e=this.editor.model,t=e.document;e.change((n=>{!function(e,t,n){const o=n.isCollapsed,a=n.getFirstRange(),r=a.start.parent,i=a.end.parent,s=r==i;if(o){const o=fd(e.schema,n.getAttributes());iu(e,t,a.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(o)}else{const o=!(a.start.isAtStart&&a.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:o}),s?iu(e,t,n.focus):o&&t.setSelection(i,0)}}(e,n,t.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;const o=t.getFirstRange(),a=o.start.parent,r=o.end.parent;return!su(a,e)&&!su(r,e)||a===r}(e.schema,t.selection)}}function iu(e,t,n){const o=t.createElement("softBreak");e.insertContent(o,n),t.setSelection(o,"after")}function su(e,t){return!e.is("rootElement")&&(t.isLimit(e)||su(e.parent,t))}class lu extends Ye{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,n=e.conversion,o=e.editing.view,a=o.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),o.addObserver(_d),e.commands.add("shiftEnter",new ru(e)),this.listenTo(a,"enter",((t,n)=>{n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),o.scrollToTheSelection())}),{priority:"low"})}}class cu extends Be{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!du(e.schema,n))do{if(n=n.parent,!n)return}while(!du(e.schema,n));e.change((e=>{e.setSelection(n,"in")}))}}function du(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const uu=Bo("Ctrl+A");class pu extends Ye{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new cu(e)),this.listenTo(t,"keydown",((t,n)=>{zo(n)===uu&&(e.execute("selectAll"),n.preventDefault())}))}}class hu extends Ye{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",(t=>{const n=e.commands.get("selectAll"),o=new Ql(t),a=t.t;return o.set({label:a("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),o.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(o,"execute",(()=>{e.execute("selectAll"),e.editing.view.focus()})),o}))}}class mu extends Ye{static get requires(){return[pu,hu]}static get pluginName(){return"SelectAll"}}class fu extends Be{constructor(e,t){super(e),this._buffer=new yd(e.model,t),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,n=t.document,o=e.text||"",a=o.length,r=e.range?t.createSelection(e.range):n.selection,i=e.resultRange;t.enqueueChange(this._buffer.batch,(e=>{this._buffer.lock(),this._batches.add(this._buffer.batch),t.deleteContent(r),o&&t.insertContent(e.createText(o,n.selection.getAttributes()),r),i?e.setSelection(i):r.is("documentSelection")||e.setSelection(r),this._buffer.unlock(),this._buffer.input(a)}))}}class gu{constructor(e){this.editor=e,this.editing=this.editor.editing}handle(e,t){if(function(e){if(0==e.length)return!1;for(const t of e)if("children"===t.type&&!kd(t))return!0;return!1}(e))this._handleContainerChildrenMutations(e,t);else for(const n of e)this._handleTextMutation(n,t),this._handleTextNodeInsertion(n)}_handleContainerChildrenMutations(e,t){const n=function(e){const t=e.map((e=>e.node)).reduce(((e,t)=>e.getCommonAncestor(t,{includeSelf:!0})));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((e=>e.is("containerElement")||e.is("rootElement")))}(e);if(!n)return;const o=this.editor.editing.view.domConverter.mapViewToDom(n),a=new Pa(this.editor.editing.view.document),r=this.editor.data.toModel(a.domToView(o)).getChild(0),i=this.editor.editing.mapper.toModelElement(n);if(!i)return;const s=Array.from(r.getChildren()),l=Array.from(i.getChildren()),c=s[s.length-1],d=l[l.length-1],u=c&&c.is("element","softBreak"),p=d&&!d.is("element","softBreak");u&&p&&s.pop();const h=this.editor.model.schema;if(!vu(s,h)||!vu(l,h))return;const m=s.map((e=>e.is("$text")?e.data:"@")).join("").replace(/\u00A0/g," "),f=l.map((e=>e.is("$text")?e.data:"@")).join("").replace(/\u00A0/g," ");if(f===m)return;const g=va(f,m),{firstChangeAt:v,insertions:_,deletions:b}=_u(g);let y=null;t&&(y=this.editing.mapper.toModelRange(t.getFirstRange()));const w=m.substr(v,_),k=this.editor.model.createRange(this.editor.model.createPositionAt(i,v),this.editor.model.createPositionAt(i,v+b));this.editor.execute("input",{text:w,range:k,resultRange:y})}_handleTextMutation(e,t){if("text"!=e.type)return;const n=e.newText.replace(/\u00A0/g," "),o=e.oldText.replace(/\u00A0/g," ");if(o===n)return;const a=va(o,n),{firstChangeAt:r,insertions:i,deletions:s}=_u(a);let l=null;t&&(l=this.editing.mapper.toModelRange(t.getFirstRange()));const c=this.editing.view.createPositionAt(e.node,r),d=this.editing.mapper.toModelPosition(c),u=this.editor.model.createRange(d,d.getShiftedBy(s)),p=n.substr(r,i);this.editor.execute("input",{text:p,range:u,resultRange:l})}_handleTextNodeInsertion(e){if("children"!=e.type)return;const t=kd(e),n=this.editing.view.createPositionAt(e.node,t.index),o=this.editing.mapper.toModelPosition(n),a=t.values[0].data;this.editor.execute("input",{text:a.replace(/\u00A0/g," "),range:this.editor.model.createRange(o)})}}function vu(e,t){return e.every((e=>t.isInline(e)))}function _u(e){let t=null,n=null;for(let o=0;o<e.length;o++)"equal"!=e[o]&&(t=null===t?o:t,n=o);let o=0,a=0;for(let r=t;r<=n;r++)"insert"!=e[r]&&o++,"delete"!=e[r]&&a++;return{insertions:a,deletions:o,firstChangeAt:t}}class bu extends Ye{static get pluginName(){return"Input"}init(){const e=this.editor,t=new fu(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){let t=null;const n=e.model,o=e.editing.view,a=e.commands.get("input");function r(e){if(Do&&Ed(e,o.document))return;const r=n.document,s=o.document.isComposing,l=t&&t.isEqual(r.selection);t=null,a.isEnabled&&(Vd(e)||r.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&l||i())}function i(){const e=a.buffer;e.lock();const t=e.batch;a._batches.add(t),n.enqueueChange(t,(()=>{n.deleteContent(n.document.selection)})),e.unlock()}No?o.document.on("beforeinput",((e,t)=>r(t)),{priority:"lowest"}):o.document.on("keydown",((e,t)=>r(t)),{priority:"lowest"}),o.document.on("compositionstart",(function(){const e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||i()}),{priority:"lowest"}),o.document.on("compositionend",(()=>{t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",((t,n,o)=>{new gu(e).handle(n,o)}))}(e)}isInput(e){return this.editor.commands.get("input")._batches.has(e)}}class yu extends Ye{static get requires(){return[bu,Md]}static get pluginName(){return"Typing"}}function wu(e,t){let n=e.start;return{text:Array.from(e.getItems()).reduce(((e,o)=>o.is("$text")||o.is("$textProxy")?e+o.data:(n=t.createPositionAfter(o),"")),""),range:t.createRange(n,e.end)}}class ku{constructor(e,t){this.model=e,this.testCallback=t,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))})),this._startListening()}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",((t,{directChange:n})=>{n&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(e,"change:data",((e,t)=>{"transparent"!=t.type&&this._evaluateTextBeforeSelection("data",{batch:t})}))}_evaluateTextBeforeSelection(e,t={}){const n=this.model,o=n.document.selection,a=n.createRange(n.createPositionAt(o.focus.parent,0),o.focus),{text:r,range:i}=wu(a,n),s=this.testCallback(r);if(!s&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!s,s){const n=Object.assign(t,{text:r,range:i});"object"==typeof s&&Object.assign(n,s),this.fire("matched:"+e,n)}}}je(ku,Le);class xu extends Ye{static get pluginName(){return"TwoStepCaretMovement"}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){const e=this.editor,t=e.model,n=e.editing.view,o=e.locale,a=t.document.selection;this.listenTo(n.document,"arrowKey",((e,t)=>{if(!a.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const n=t.keyCode==jo.arrowright,r=t.keyCode==jo.arrowleft;if(!n&&!r)return;const i=o.contentLanguageDirection;let s=!1;s="ltr"===i&&n||"rtl"===i&&r?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===s&&e.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(a,"change:range",((e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&Tu(a.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,n=this.editor.model.document.selection,o=n.getFirstPosition();return!this._isGravityOverridden&&(!o.isAtStart||!Eu(n,t))&&(Tu(o,t)?(Mu(e),this._overrideGravity(),!0):void 0)}_handleBackwardMovement(e){const t=this.attributes,n=this.editor.model,o=n.document.selection,a=o.getFirstPosition();return this._isGravityOverridden?(Mu(e),this._restoreGravity(),Su(n,t,a),!0):a.isAtStart?!!Eu(o,t)&&(Mu(e),Su(n,t,a),!0):function(e,t){return Tu(e.getShiftedBy(-1),t)}(a,t)?a.isAtEnd&&!Eu(o,t)&&Tu(a,t)?(Mu(e),Su(n,t,a),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((e=>e.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function Eu(e,t){for(const n of t)if(e.hasAttribute(n))return!0;return!1}function Su(e,t,n){const o=n.nodeBefore;e.change((e=>{o?e.setSelectionAttribute(o.getAttributes()):e.removeSelectionAttribute(t)}))}function Mu(e){e.preventDefault()}function Tu(e,t){const{nodeBefore:n,nodeAfter:o}=e;for(const e of t){const t=n?n.getAttribute(e):void 0;if((o?o.getAttribute(e):void 0)!==t)return!0}return!1}var Cu=/[\\^$.*+?()[\]{}|]/g,Au=RegExp(Cu.source);const Du={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^|)(--)()$/,to:[null,"–",null]},emDash:{from:/(^|)(---)()$/,to:[null,"—",null]},quotesPrimary:{from:Ru('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Ru("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Ru("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Ru('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Ru('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Ru("'"),to:[null,"‚",null,"’"]}},Pu={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Lu=["symbols","mathematical","typography","quotes"];function Nu(e){return"string"==typeof e?new RegExp(`(${function(e){return(e=Rn(e))&&Au.test(e)?e.replace(Cu,"\\$&"):e}(e)})$`):e}function Iu(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function Ou(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Ru(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function Fu(e,t,n,o){return o.createRange(ju(e,t,n,!0,o),ju(e,t,n,!1,o))}function ju(e,t,n,o,a){let r=e.textNode||(o?e.nodeBefore:e.nodeAfter),i=null;for(;r&&r.getAttribute(t)==n;)i=r,r=o?r.previousSibling:r.nextSibling;return i?a.createPositionAt(i,o?"before":"after"):e}class Yu extends Be{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(e.data,"set",((e,t)=>{t[1]={...t[1]};const n=t[1];n.batchType||(n.batchType="transparent")}),{priority:"high"}),this.listenTo(e.data,"set",((e,t)=>{"transparent"===t[1].batchType&&this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}addBatch(e){const t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,n){const o=this.editor.model,a=o.document,r=[],i=e.map((e=>e.getTransformedByOperations(n))),s=i.flat();for(const e of i){const t=e.filter((e=>e.root!=a.graveyard)).filter((e=>!Bu(e,s)));t.length&&(zu(t),r.push(t[0]))}r.length&&o.change((e=>{e.setSelection(r,{backward:t})}))}_undo(e,t){const n=this.editor.model,o=n.document;this._createdBatches.add(t);const a=e.operations.slice().filter((e=>e.isDocumentOperation));a.reverse();for(const e of a){const a=e.baseVersion+1,r=Array.from(o.history.getOperations(a)),i=Qc([e.getReversed()],r,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const a of i)t.addOperation(a),n.applyOperation(a),o.history.setOperationAsUndone(e,a)}}}function zu(e){e.sort(((e,t)=>e.start.isBefore(t.start)?-1:1));for(let t=1;t<e.length;t++){const n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Bu(e,t){return t.some((t=>t!==e&&t.containsRange(e,!0)))}class Hu extends Yu{execute(e=null){const t=e?this._stack.findIndex((t=>t.batch==e)):this._stack.length-1,n=this._stack.splice(t,1)[0],o=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(o,(()=>{this._undo(n.batch,o);const e=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,e),this.fire("revert",n.batch,o)})),this.refresh()}}class Vu extends Yu{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(t,(()=>{const n=e.batch.operations[e.batch.operations.length-1].baseVersion+1,o=this.editor.model.document.history.getOperations(n);this._restoreSelection(e.selection.ranges,e.selection.isBackward,o),this._undo(e.batch,t)})),this.refresh()}}class Uu extends Ye{static get pluginName(){return"UndoEditing"}constructor(e){super(e),this._batchRegistry=new WeakSet}init(){const e=this.editor;this._undoCommand=new Hu(e),this._redoCommand=new Vu(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",((e,t)=>{const n=t[0];if(!n.isDocumentOperation)return;const o=n.batch,a=this._redoCommand._createdBatches.has(o),r=this._undoCommand._createdBatches.has(o);this._batchRegistry.has(o)||"transparent"==o.type&&!a&&!r||(a?this._undoCommand.addBatch(o):r||(this._undoCommand.addBatch(o),this._redoCommand.clearStack()),this._batchRegistry.add(o))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((e,t,n)=>{this._redoCommand.addBatch(n)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}var Wu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',qu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class $u extends Ye{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,n=e.t,o="ltr"==t.uiLanguageDirection?Wu:qu,a="ltr"==t.uiLanguageDirection?qu:Wu;this._addButton("undo",n("Undo"),"CTRL+Z",o),this._addButton("redo",n("Redo"),"CTRL+Y",a)}_addButton(e,t,n,o){const a=this.editor;a.ui.componentFactory.add(e,(r=>{const i=a.commands.get(e),s=new Ql(r);return s.set({label:t,icon:o,keystroke:n,tooltip:!0}),s.bind("isEnabled").to(i,"isEnabled"),this.listenTo(s,"execute",(()=>{a.execute(e),a.editing.view.focus()})),s}))}}class Gu extends Ye{static get requires(){return[Uu,$u]}static get pluginName(){return"Undo"}}class Ku{constructor(){const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise(((n,o)=>{t.onload=()=>{const e=t.result;this._data=e,n(e)},t.onerror=()=>{o("error")},t.onabort=()=>{o("aborted")},this._reader.readAsDataURL(e)}))}abort(){this._reader.abort()}}je(Ku,Le);class Ju extends Ye{static get pluginName(){return"FileRepository"}static get requires(){return[kl]}init(){this.loaders=new ln,this.loaders.on("add",(()=>this._updatePendingAction())),this.loaders.on("remove",(()=>this._updatePendingAction())),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0))}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return Object(s.b)("filerepository-no-upload-adapter"),null;const t=new Xu(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then((e=>{this._loadersMap.set(e,t)})).catch((()=>{})),t.on("change:uploaded",(()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e})),t.on("change:uploadTotal",(()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e})),t}destroyLoader(e){const t=e instanceof Xu?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach(((e,n)=>{e===t&&this._loadersMap.delete(n)}))}_updatePendingAction(){const e=this.editor.plugins.get(kl);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,n=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}je(Ju,Le);class Xu{constructor(e,t){this.id=r(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new Ku,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((e,t)=>t?e/t*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((e=>this._filePromiseWrapper?e:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new s.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((e=>this._reader.read(e))).then((e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e})).catch((e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e}))}upload(){if("idle"!=this.status)throw new s.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((e=>(this.uploadResponse=e,this.status="idle",e))).catch((e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e}))}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise(((n,o)=>{t.rejecter=o,t.isFulfilled=!1,e.then((e=>{t.isFulfilled=!0,n(e)})).catch((e=>{t.isFulfilled=!0,o(e)}))})),t}}je(Xu,Le);class Qu extends Al{constructor(e){super(e),this.buttonView=new Ql(e),this._fileInputView=new Zu(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",(()=>{this._fileInputView.open()}))}focus(){this.buttonView.focus()}}class Zu extends Al{constructor(e){super(e),this.set("acceptedType"),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}class ep{constructor(e,t,n){this.loader=e,this.url=t,this.t=n}upload(){return this.loader.file.then((e=>new Promise(((t,n)=>{this._initRequest(),this._initListeners(t,n,e),this._sendRequest(e)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}_initListeners(e,t,n){const o=this.xhr,a=this.loader,r=(0,this.t)("Cannot upload file:")+` ${n.name}.`;o.addEventListener("error",(()=>t(r))),o.addEventListener("abort",(()=>t())),o.addEventListener("load",(()=>{const n=o.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:r);e({default:n.url})})),o.upload&&o.upload.addEventListener("progress",(e=>{e.lengthComputable&&(a.uploadTotal=e.total,a.uploaded=e.loaded)}))}_sendRequest(e){const t=new FormData;t.append("upload",e),t.append("ckCsrfToken",function(){let e=function(e){e=e.toLowerCase();const t=document.cookie.split(";");for(const n of t){const t=n.split("=");if(decodeURIComponent(t[0].trim().toLowerCase())===e)return decodeURIComponent(t[1])}return null}("ckCsrfToken");var t;return e&&40==e.length||(e=function(){let e="";const t=new Uint8Array(40);window.crypto.getRandomValues(t);for(let n=0;n<t.length;n++){const o="abcdefghijklmnopqrstuvwxyz0123456789".charAt(t[n]%36);e+=Math.random()>.5?o.toUpperCase():o}return e}(),t=e,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(t)+";path=/"),e}()),this.xhr.send(t)}}function tp(e,t,n,o){let a,r=null;"function"==typeof o?a=o:(r=e.commands.get(o),a=()=>{e.execute(o)}),e.model.document.on("change:data",((i,s)=>{if(r&&!r.isEnabled||!t.isEnabled)return;const l=Pr(e.model.document.selection.getRanges());if(!l.isCollapsed)return;if("transparent"==s.type)return;const c=Array.from(e.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof o&&!["numberedList","bulletedList","todoList"].includes(o))return;if(r&&!0===r.value)return;const p=u.getChild(0),h=e.model.createRangeOn(p);if(!h.containsRange(l)&&!l.end.isEqual(h.end))return;const m=n.exec(p.data.substr(0,l.end.offset));m&&e.model.enqueueChange((t=>{const n=t.createPositionAt(u,0),o=t.createPositionAt(u,m[0].length),r=new gi(n,o);if(!1!==a({match:m})){t.remove(r);const n=e.model.document.selection.getFirstRange(),o=t.createRangeIn(u);!u.isEmpty||o.isEqual(n)||o.containsRange(n,!0)||t.remove(u)}r.detach(),e.model.enqueueChange((()=>{e.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function np(e,t,n,o){let a,r;n instanceof RegExp?a=n:r=n,r=r||(e=>{let t;const n=[],o=[];for(;null!==(t=a.exec(e))&&!(t&&t.length<4);){let{index:e,1:a,2:r,3:i}=t;const s=a+r+i;e+=t[0].length-s.length;const l=[e,e+a.length],c=[e+a.length+r.length,e+a.length+r.length+i.length];n.push(l),n.push(c),o.push([e+a.length,e+a.length+r.length])}return{remove:n,format:o}}),e.model.document.on("change:data",((n,a)=>{if("transparent"==a.type||!t.isEnabled)return;const i=e.model,s=i.document.selection;if(!s.isCollapsed)return;const l=Array.from(i.document.differ.getChanges()),c=l[0];if(1!=l.length||"insert"!==c.type||"$text"!=c.name||1!=c.length)return;const d=s.focus,u=d.parent,{text:p,range:h}=function(e,t){let n=e.start;return{text:Array.from(e.getItems()).reduce(((e,o)=>!o.is("$text")&&!o.is("$textProxy")||o.getAttribute("code")?(n=t.createPositionAfter(o),""):e+o.data),""),range:t.createRange(n,e.end)}}(i.createRange(i.createPositionAt(u,0),d),i),m=r(p),f=op(h.start,m.format,i),g=op(h.start,m.remove,i);f.length&&g.length&&i.enqueueChange((t=>{if(!1!==o(t,f)){for(const e of g.reverse())t.remove(e);i.enqueueChange((()=>{e.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function op(e,t,n){return t.filter((e=>void 0!==e[0]&&void 0!==e[1])).map((t=>n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1]))))}function ap(e,t){return(n,o)=>{if(!e.commands.get(t).isEnabled)return!1;const a=e.model.schema.getValidRanges(o,t);for(const e of a)n.setAttribute(t,!0,e);n.removeSelectionAttribute(t)}}class rp extends Be{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){const t=this.editor.model,n=t.document.selection,o=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(n.isCollapsed)o?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else{const a=t.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const t of a)o?e.setAttribute(this.attributeKey,o,t):e.removeAttribute(this.attributeKey,t)}}))}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const e of n.getRanges())for(const n of e.getItems())if(t.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}class ip extends Ye{static get pluginName(){return"BoldEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"bold"}),e.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",e=>{const t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add("bold",new rp(e,"bold")),e.keystrokes.set("CTRL+B","bold")}}class sp extends Ye{static get pluginName(){return"BoldUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("bold",(n=>{const o=e.commands.get("bold"),a=new Ql(n);return a.set({label:t("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(a,"execute",(()=>{e.execute("bold"),e.editing.view.focus()})),a}))}}class lp extends Ye{static get pluginName(){return"ItalicEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"italic"}),e.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add("italic",new rp(e,"italic")),e.keystrokes.set("CTRL+I","italic")}}class cp extends Ye{static get pluginName(){return"ItalicUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("italic",(n=>{const o=e.commands.get("italic"),a=new Ql(n);return a.set({label:t("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(a,"execute",(()=>{e.execute("italic"),e.editing.view.focus()})),a}))}}class dp extends Be{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.schema,o=t.document.selection,a=Array.from(o.getSelectedBlocks()),r=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(r){const t=a.filter((e=>up(e)||hp(n,e)));this._applyQuote(e,t)}else this._removeQuote(e,a.filter(up))}))}_getValue(){const e=Pr(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!up(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,n=Pr(e.getSelectedBlocks());return!!n&&hp(t,n)}_removeQuote(e,t){pp(e,t).reverse().forEach((t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const n=e.createPositionBefore(t.start.parent);return void e.move(t,n)}t.end.isAtEnd||e.split(t.end);const n=e.createPositionAfter(t.end.parent);e.move(t,n)}))}_applyQuote(e,t){const n=[];pp(e,t).reverse().forEach((t=>{let o=up(t.start);o||(o=e.createElement("blockQuote"),e.wrap(t,o)),n.push(o)})),n.reverse().reduce(((t,n)=>t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n))}}function up(e){return"blockQuote"==e.parent.name?e.parent:null}function pp(e,t){let n,o=0;const a=[];for(;o<t.length;){const r=t[o],i=t[o+1];n||(n=e.createPositionBefore(r)),i&&r.nextSibling==i||(a.push(e.createRange(n,e.createPositionAfter(r))),n=null),o++}return a}function hp(e,t){const n=e.checkChild(t.parent,"blockQuote"),o=e.checkChild(["$root","blockQuote"],t);return n&&o}class mp extends Ye{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[bd,Md]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new dp(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((n=>{const o=e.model.document.differ.getChanges();for(const e of o)if("insert"==e.type){const o=e.position.nodeAfter;if(!o)continue;if(o.is("element","blockQuote")&&o.isEmpty)return n.remove(o),!0;if(o.is("element","blockQuote")&&!t.checkChild(e.position,o))return n.unwrap(o),!0;if(o.is("element")){const e=n.createRangeIn(o);for(const o of e.getItems())if(o.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(o),o))return n.unwrap(o),!0}}else if("remove"==e.type){const t=e.position.parent;if(t.is("element","blockQuote")&&t.isEmpty)return n.remove(t),!0}return!1}));const n=this.editor.editing.view.document,o=e.model.document.selection,a=e.commands.get("blockQuote");this.listenTo(n,"enter",((t,n)=>{o.isCollapsed&&a.value&&o.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((t,n)=>{if("backward"!=n.direction||!o.isCollapsed||!a.value)return;const r=o.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),n.preventDefault(),t.stop())}),{context:"blockquote"})}}n(71);class fp extends Ye{static get pluginName(){return"BlockQuoteUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("blockQuote",(n=>{const o=e.commands.get("blockQuote"),a=new Ql(n);return a.set({label:t("Block quote"),icon:El.quote,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),this.listenTo(a,"execute",(()=>{e.execute("blockQuote"),e.editing.view.focus()})),a}))}}class gp extends Ye{static get pluginName(){return"CKFinderUI"}init(){const e=this.editor,t=e.ui.componentFactory,n=e.t;t.add("ckfinder",(t=>{const o=e.commands.get("ckfinder"),a=new Ql(t);return a.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),a.bind("isEnabled").to(o),a.on("execute",(()=>{e.execute("ckfinder"),e.editing.view.focus()})),a}))}}class vp extends Be{constructor(e){super(e),this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",(()=>this.refresh()),{priority:"low"})}refresh(){const e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}execute(){const e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new s.a("ckfinder-unknown-openermethod",e);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const o=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=t=>{o&&o(t),t.on("files:choose",(n=>{const o=n.data.files.toArray(),a=o.filter((e=>!e.isImage())),r=o.filter((e=>e.isImage()));for(const t of a)e.execute("link",t.getUrl());const i=[];for(const e of r){const n=e.getUrl();i.push(n||t.request("file:getProxyUrl",{file:e}))}i.length&&_p(e,i)})),t.on("file:choose:resizedImage",(t=>{const n=t.data.resizedUrl;if(n)_p(e,[n]);else{const t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not obtain resized image URL."),{title:n("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}function _p(e,t){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:t});else{const t=e.plugins.get("Notification"),n=e.locale.t;t.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class bp extends Ye{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Pc,"LinkEditing"]}init(){const e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new s.a("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new vp(e))}}class yp extends Ye{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",Ju]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),n=t.token,o=t.uploadUrl;n&&(this._uploadGateway=e.plugins.get("CloudServicesCore").createUploadGateway(n,o),e.plugins.get(Ju).createUploadAdapter=e=>new wp(this._uploadGateway,e))}}class wp{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then((e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",((e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded})),this.fileUploader.send())))}abort(){this.fileUploader.abort()}}class kp extends Be{refresh(){const e=this.editor.model,t=Pr(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&xp(t,e.schema)}execute(e={}){const t=this.editor.model,n=t.document;t.change((o=>{const a=(e.selection||n.selection).getSelectedBlocks();for(const e of a)!e.is("element","paragraph")&&xp(e,t.schema)&&o.rename(e,"paragraph")}))}}function xp(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class Ep extends Be{execute(e){const t=this.editor.model;let n=e.position;t.change((e=>{const o=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,o)){const a=t.schema.findAllowedParent(n,o);if(!a)return;n=e.split(n,a).position}t.insertContent(o,n),e.setSelection(o,"in")}))}}class Sp extends Ye{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new kp(e)),e.commands.add("insertParagraph",new Ep(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>Sp.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}Sp.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class Mp extends Be{constructor(e,t){super(e),this.modelElements=t}refresh(){const e=Pr(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some((t=>Tp(e,t,this.editor.model.schema)))}execute(e){const t=this.editor.model,n=t.document,o=e.value;t.change((e=>{const a=Array.from(n.selection.getSelectedBlocks()).filter((e=>Tp(e,o,t.schema)));for(const t of a)t.is("element",o)||e.rename(t,o)}))}}function Tp(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}class Cp extends Ye{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Sp]}init(){const e=this.editor,t=e.config.get("heading.options"),n=[];for(const o of t)"paragraph"!==o.model&&(e.model.schema.register(o.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(o),n.push(o.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new Mp(e,n))}afterInit(){const e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",((t,o)=>{const a=e.model.document.selection.getFirstPosition().parent;n.some((e=>a.is("element",e.model)))&&!a.is("element","paragraph")&&0===a.childCount&&o.writer.rename(a,"paragraph")}))}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:i.get("low")+1})}}n(13);class Ap extends Ye{static get pluginName(){return"HeadingUI"}init(){const e=this.editor,t=e.t,n=function(e){const t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((e=>{const t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(e),o=t("Choose heading"),a=t("Heading");e.ui.componentFactory.add("heading",(t=>{const r={},i=new ln,s=e.commands.get("heading"),l=e.commands.get("paragraph"),c=[s];for(const e of n){const t={type:"button",model:new Lc({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(l,"value"),t.model.set("commandName","paragraph"),c.push(l)):(t.model.bind("isOn").to(s,"value",(t=>t===e.model)),t.model.set({commandName:"heading",commandValue:e.model})),i.add(t),r[e.model]=e.title}const d=yc(t);return kc(d,i),d.buttonView.set({isOn:!1,withText:!0,tooltip:a}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",((...e)=>e.some((e=>e)))),d.buttonView.bind("label").to(s,"value",l,"value",((e,t)=>{const n=e||t&&"paragraph";return r[n]?r[n]:o})),this.listenTo(d,"execute",(t=>{e.execute(t.source.commandName,t.source.commandValue?{value:t.source.commandValue}:void 0),e.editing.view.focus()})),d}))}}class Dp extends Ye{static get requires(){return[jc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",(t=>{(function(e){const t=e.getSelectedElement();return!(!t||!Pd(t))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:n,getRelatedElement:o,balloonClassName:a="ck-toolbar-container"}){if(!n.length)return void Object(s.b)("widget-toolbar-no-items",{toolbarId:e});const r=this.editor,i=r.t,l=new hc(r.locale);if(l.ariaLabel=t||i("Widget toolbar"),this._toolbarDefinitions.has(e))throw new s.a("widget-toolbar-duplicated",this,{toolbarId:e});l.fillFromConfig(n,r.ui.componentFactory),this._toolbarDefinitions.set(e,{view:l,getRelatedElement:o,balloonClassName:a})}_updateToolbarsVisibility(){let e=0,t=null,n=null;for(const o of this._toolbarDefinitions.values()){const a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){const r=a.getAncestors().length;r>e&&(e=r,t=a,n=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}n&&this._showToolbar(n,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?Pp(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:Lp(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);Pp(this.editor,t)}})))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function Pp(e,t){const n=e.plugins.get("ContextualBalloon"),o=Lp(e,t);n.updatePosition(o)}function Lp(e,t){const n=e.editing.view,o=Oc.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}class Np{constructor(e){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}begin(e,t,n){const o=new Sr(t);this.activeHandlePosition=function(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const n of t)if(e.classList.contains("ck-widget__resizer__handle-"+n))return n}(e),this._referenceCoordinates=function(e,t){const n=new Sr(e),o=t.split("-"),a={x:"right"==o[1]?n.right:n.left,y:"bottom"==o[0]?n.bottom:n.top};return a.x+=e.ownerDocument.defaultView.scrollX,a.y+=e.ownerDocument.defaultView.scrollY,a}(t,function(e){const t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return`${n[t[0]]}-${n[t[1]]}`}(this.activeHandlePosition)),this.originalWidth=o.width,this.originalHeight=o.height,this.aspectRatio=o.width/o.height;const a=n.style.width;a&&a.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(a):this.originalWidthPercents=function(e,t){const n=e.parentElement,o=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/o*100}(n,o)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}je(Np,Le);class Ip extends Al{constructor(){super();const e=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",e.to("_viewPosition",(e=>e?"ck-orientation-"+e:""))],style:{display:e.if("_isVisible","none",(e=>!e))}},children:[{text:e.to("_label")}]})}_bindToState(e,t){this.bind("_isVisible").to(t,"proposedWidth",t,"proposedHeight",((e,t)=>null!==e&&null!==t)),this.bind("_label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",((t,n,o)=>"px"===e.unit?`${t}×${n}`:o+"%")),this.bind("_viewPosition").to(t,"activeHandlePosition",t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",((e,t,n)=>t<50||n<50?"above-center":e))}_dismiss(){this.unbind(),this._isVisible=!1}}class Op{constructor(e){this._options=e,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(e=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change((n=>{const o=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){const n=this.toDomElement(t);return e._appendHandles(n),e._appendSizeUI(n),e.on("change:isEnabled",((e,t,o)=>{n.style.display=o?"":"none"})),n.style.display=e.isEnabled?"":"none",n}));n.insert(n.createPositionAt(t,"end"),o),n.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=o}))}begin(e){this.state=new Np(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change((e=>{const n=this._options.unit||"%",o=("%"===n?t.widthPercents:t.width)+n;e.setStyle("width",o,this._options.viewElement)}));const n=this._getHandleHost(),o=new Sr(n);t.handleHostWidth=Math.round(o.width),t.handleHostHeight=Math.round(o.height);const a=new Sr(n);t.width=Math.round(a.width),t.height=Math.round(a.height),this.redraw(o),this.state.update(t)}commit(){const e=this._options.unit||"%",t=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(t)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;const o=t.parentElement,a=this._getHandleHost(),r=this._viewResizerWrapper,i=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let s;if(o.isSameNode(a)){const t=e||new Sr(a);s=[t.width+"px",t.height+"px",void 0,void 0]}else s=[a.offsetWidth+"px",a.offsetHeight+"px",a.offsetLeft+"px",a.offsetTop+"px"];"same"!==gn(i,s)&&this._options.editor.editing.view.change((e=>{e.setStyle({width:s[0],height:s[1],left:s[2],top:s[3]},r)}))}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change((e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(e){const t=this.state,n=(a=e).pageX,o=a.pageY;var a;const r=!this._options.isCentered||this._options.isCentered(this),i={x:t._referenceCoordinates.x-(n+t.originalWidth),y:o-t.originalHeight-t._referenceCoordinates.y};r&&t.activeHandlePosition.endsWith("-right")&&(i.x=n-(t._referenceCoordinates.x+t.originalWidth)),r&&(i.x*=2);const s={width:Math.abs(t.originalWidth+i.x),height:Math.abs(t.originalHeight+i.y)};s.dominant=s.width/t.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];const l={width:s.width,height:s.height};return"width"==s.dominant?l.height=l.width/t.aspectRatio:l.width=l.height*t.aspectRatio,{width:Math.round(l.width),height:Math.round(l.height),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*l.width*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const o of t)e.appendChild(new Dl({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=o,"ck-widget__resizer__handle-"+n)}}).render());var n}_appendSizeUI(e){this._sizeView=new Ip,this._sizeView.render(),e.appendChild(this._sizeView.element)}}je(Op,Le),n(74),je(class extends Ye{static get pluginName(){return"WidgetResize"}init(){const e=this.editor.editing,t=Sa.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,e.view.addObserver(id),this._observer=Object.create(Oa),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));const n=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Xd(n,200),this.on("change:visibleResizer",n),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[e,t]of this._resizers)e.isAttached()||(this._resizers.delete(e),t.destroy())}),{priority:"lowest"}),this._observer.listenTo(Sa.window,"resize",this._redrawFocusedResizerThrottled);const o=this.editor.editing.view.document.selection;o.on("change",(()=>{const e=o.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(e)||null}))}destroy(){this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(e){const t=new Op(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){const e=n.get("WidgetToolbarRepository");t.on("begin",(()=>{e.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(()=>{e.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(e.viewElement,t);const o=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(o)==t&&(this.visibleResizer=t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const n=t.domTarget;Op.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}},Le);class Rp extends Be{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,n=t.plugins.get("ImageUtils"),o=t.model,a=n.getClosestSelectedImageElement(o.document.selection);o.change((t=>{t.setAttribute("alt",e.newValue,a)}))}}function Fp(e,t){const n=e.createEmptyElement("img"),o="imageBlock"===t?e.createContainerElement("figure",{class:"image"}):e.createContainerElement("span",{class:"image-inline"},{isAllowedInsideAttributeElement:!0});return e.insert(e.createPositionAt(o,0),n),o}function jp(e,t){if(e.plugins.has("ImageInlineEditing")!==e.plugins.has("ImageBlockEditing"))return{name:"img"};const n=e.plugins.get("ImageUtils");return e=>n.isInlineImageView(e)?(e.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==t?null:{name:!0}:null}function Yp(e,t){const n=Pr(t.getSelectedBlocks());return!n||e.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}class zp extends Ye{static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,n=null){const o=this.editor,a=o.model,r=a.document.selection;n=Bp(o,t||r,n),e={...Object.fromEntries(r.getAttributes()),...e};for(const t in e)a.schema.checkAttribute(n,t)||delete e[t];return a.change((o=>{const i=o.createElement(n,e);return t||"imageInline"==n||(t=jd(r,a)),a.insertContent(i,t),i.parent?(o.setSelection(i,"on"),i):null}))}getClosestSelectedImageWidget(e){const t=e.getSelectedElement();if(t&&this.isImageWidget(t))return t;let n=e.getFirstPosition().parent;for(;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const e=this.editor.model.document.selection;return function(e,t){if("imageBlock"==Bp(e,t)){const n=function(e,t){const n=jd(e,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,e.model);if(e.model.schema.checkChild(n,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(e){return[...e.focus.getAncestors()].every((e=>!e.is("element","imageBlock")))}(e)}toImageWidget(e,t,n){return t.setCustomProperty("image",!0,e),Ld(e,t,{label:()=>{const t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${n}`:n}})}isImageWidget(e){return!!e.getCustomProperty("image")&&Pd(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:n}of t.createRangeIn(e))if(this.isInlineImageView(n))return n}}function Bp(e,t,n){const o=e.model.schema,a=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?n||("inline"===a?"imageInline":"block"===a?"imageBlock":t.is("selection")?Yp(o,t):o.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Hp extends Ye{static get requires(){return[zp]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Rp(this.editor))}}n(76),n(7);class Vp extends Al{constructor(e){super(e);const t=this.locale.t;this.focusTracker=new Lr,this.keystrokes=new Nr,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),El.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),El.cancel,"ck-button-cancel","cancel"),this._focusables=new Cl,this._focusCycler=new ec({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),Ml(this)}render(){super.render(),this.keystrokes.listenTo(this.element),Tl({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,n,o){const a=new Ql(this.locale);return a.set({label:e,icon:t,tooltip:!0}),a.extendTemplate({attributes:{class:n}}),o&&a.delegate("execute").to(this,o),a}_createLabeledInputView(){const e=this.locale.t,t=new Ac(this.locale,Dc);return t.label=e("Text alternative"),t}}function Up(e){const t=e.editing.view,n=Oc.defaultPositions,o=e.plugins.get("ImageUtils");return{target:t.domConverter.viewToDom(o.getClosestSelectedImageWidget(t.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class Wp extends Ye{static get requires(){return[jc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton(),this._createForm()}destroy(){super.destroy(),this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",(n=>{const o=e.commands.get("imageTextAlternative"),a=new Ql(n);return a.set({label:t("Change image text alternative"),icon:El.lowVision,tooltip:!0}),a.bind("isEnabled").to(o,"isEnabled"),this.listenTo(a,"execute",(()=>{this._showForm()})),a}))}_createForm(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Vp(e.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((e,t)=>{this._hideForm(!0),t()})),this.listenTo(e.ui,"update",(()=>{n.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const n=Up(e);t.updatePosition(n)}}(e):this._hideForm(!0)})),Sl({emitter:this._form,activator:()=>this._isVisible,contextElements:[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;const e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Up(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return this._balloon.visibleView===this._form}get _isInBalloon(){return this._balloon.hasView(this._form)}}class qp extends Ye{static get requires(){return[Hp,Wp]}static get pluginName(){return"ImageTextAlternative"}}function $p(e,t){return e=>{e.on("attribute:srcset:"+t,n)};function n(t,n,o){if(!o.consumable.consume(n.item,t.name))return;const a=o.writer,r=o.mapper.toViewElement(n.item),i=e.findViewImgElement(r);if(null===n.attributeNewValue){const e=n.attributeOldValue;e.data&&(a.removeAttribute("srcset",i),a.removeAttribute("sizes",i),e.width&&a.removeAttribute("width",i))}else{const e=n.attributeNewValue;e.data&&(a.setAttribute("srcset",e.data,i),a.setAttribute("sizes","100vw",i),e.width&&a.setAttribute("width",e.width,i))}}}function Gp(e,t,n){return e=>{e.on(`attribute:${n}:${t}`,o)};function o(t,n,o){if(!o.consumable.consume(n.item,t.name))return;const a=o.writer,r=o.mapper.toViewElement(n.item),i=e.findViewImgElement(r);a.setAttribute(n.attributeKey,n.attributeNewValue||"",i)}}class Kp extends ja{observe(e){this.listenTo(e,"load",((e,t)=>{const n=t.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(t)}),{useCapture:!0})}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class Jp extends Be{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&Object(s.b)("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&Object(s.b)("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(e){const t=dn(e.source),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),a=Object.fromEntries(n.getAttributes());t.forEach(((e,t)=>{const r=n.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&r&&o.isImage(r)){const t=this.editor.model.createPositionAfter(r);o.insertImage({...e,...a},t)}else o.insertImage({...e,...a})}))}}class Xp extends Ye{static get requires(){return[zp]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(Kp),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:e=>{const t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}});const n=new Jp(e);e.commands.add("insertImage",n),e.commands.add("imageInsert",n)}}class Qp extends Be{constructor(e,t){super(e),this._modelElementName=t}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(){const e=this.editor,t=this.editor.model,n=e.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(t.document.selection),a=Object.fromEntries(o.getAttributes());return a.src||a.uploadId?t.change((e=>{const r=Array.from(t.markers).filter((e=>e.getRange().containsItem(o))),i=n.insertImage(a,t.createSelection(o,"on"),this._modelElementName);if(!i)return null;const s=e.createRangeOn(i);for(const t of r){const n=t.getRange(),o="$graveyard"!=n.root.rootName?n.getJoined(s,!0):s;e.updateMarker(t,{range:o})}return{oldElement:o,newElement:i}})):null}}class Zp extends Ye{static get requires(){return[Xp,zp,md]}static get pluginName(){return"ImageBlockEditing"}init(){const e=this.editor;e.model.schema.register("imageBlock",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new Qp(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,n=e.conversion,o=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageBlock",view:(e,{writer:t})=>Fp(t,"imageBlock")}),n.for("editingDowncast").elementToElement({model:"imageBlock",view:(e,{writer:n})=>o.toImageWidget(Fp(n,"imageBlock"),n,t("image widget"))}),n.for("downcast").add(Gp(o,"imageBlock","src")).add(Gp(o,"imageBlock","alt")).add($p(o,"imageBlock")),n.for("upcast").elementToElement({view:jp(e,"imageBlock"),model:(e,{writer:t})=>t.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)}).add(function(e){return e=>{e.on("element:figure",t)};function t(t,n,o){if(!o.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const a=e.findViewImgElement(n.viewItem);if(!a||!o.consumable.test(a,{name:!0}))return;o.consumable.consume(n.viewItem,{name:!0,classes:"image"});const r=Pr(o.convertItem(a,n.modelCursor).modelRange.getItems());r?(o.convertChildren(n.viewItem,r),o.updateConversionResult(r,n)):o.consumable.revert(n.viewItem,{name:!0,classes:"image"})}}(o))}_setupClipboardIntegration(){const e=this.editor,t=e.model,n=e.editing.view,o=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",((a,r)=>{const i=Array.from(r.content.getChildren());let s;if(!i.every(o.isInlineImageView))return;s=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();const l=t.createSelection(s);if("imageBlock"===Yp(t.schema,l)){const e=new sd(n.document),t=i.map((t=>e.createElement("figure",{class:"image"},t)));r.content=e.createDocumentFragment(t)}}))}}n(11);class eh extends Ye{static get requires(){return[Zp,Kd,qp]}static get pluginName(){return"ImageBlock"}}class th extends Ye{static get requires(){return[Xp,zp,md]}static get pluginName(){return"ImageInlineEditing"}init(){const e=this.editor,t=e.model.schema;t.register("imageInline",{isObject:!0,isInline:!0,allowWhere:"$text",allowAttributesOf:"$text",allowAttributes:["alt","src","srcset"]}),t.addChildCheck(((e,t)=>{if(e.endsWith("caption")&&"imageInline"===t.name)return!1})),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new Qp(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,n=e.conversion,o=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(e,{writer:t})=>t.createEmptyElement("img")}),n.for("editingDowncast").elementToElement({model:"imageInline",view:(e,{writer:n})=>o.toImageWidget(Fp(n,"imageInline"),n,t("image widget"))}),n.for("downcast").add(Gp(o,"imageInline","src")).add(Gp(o,"imageInline","alt")).add($p(o,"imageInline")),n.for("upcast").elementToElement({view:jp(e,"imageInline"),model:(e,{writer:t})=>t.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)})}_setupClipboardIntegration(){const e=this.editor,t=e.model,n=e.editing.view,o=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",((a,r)=>{const i=Array.from(r.content.getChildren());let s;if(!i.every(o.isBlockImageView))return;s=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();const l=t.createSelection(s);if("imageInline"===Yp(t.schema,l)){const e=new sd(n.document),t=i.map((t=>1===t.childCount?(Array.from(t.getAttributes()).forEach((n=>e.setAttribute(...n,o.findViewImgElement(t)))),t.getChild(0)):t));r.content=e.createDocumentFragment(t)}}))}}class nh extends Ye{static get requires(){return[th,Kd,qp]}static get pluginName(){return"ImageInline"}}function oh(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}function ah(e,t){const n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}class rh extends Be{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils");if(!e.plugins.has(Zp))return this.isEnabled=!1,void(this.value=!1);const n=e.model.document.selection,o=n.getSelectedElement();if(!o){const e=ah(t,n);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(o),this.isEnabled?this.value=!!oh(o):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change((e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)}))}_showImageCaption(e,t){const n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageCaptionEditing");let a=n.getSelectedElement();const r=o._getSavedCaption(a);this.editor.plugins.get("ImageUtils").isInlineImage(a)&&(this.editor.execute("imageTypeBlock"),a=n.getSelectedElement());const i=r||e.createElement("caption");e.append(i,a),t&&e.setSelection(i,"in")}_hideImageCaption(e){const t=this.editor,n=t.model.document.selection,o=t.plugins.get("ImageCaptionEditing"),a=t.plugins.get("ImageUtils");let r,i=n.getSelectedElement();i?r=oh(i):(r=ah(a,n),i=r.parent),o._saveCaption(i,r),e.setSelection(i,"on"),e.remove(r)}}class ih extends Ye{static get requires(){return[zp]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new rh(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration()}_setupConversion(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),o=e.t;e.conversion.for("upcast").elementToElement({view:e=>function(e,t){return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}(n,e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>n.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:a})=>{if(!n.isBlockImage(e.parent))return null;const r=a.createEditableElement("figcaption");return a.setCustomProperty("imageCaption",!0,r),Uc({view:t,element:r,text:o("Enter image caption"),keepOnFocus:!0}),Fd(r,a)}}),e.editing.mapper.on("modelToViewPosition",sh(t)),e.data.mapper.on("modelToViewPosition",sh(t))}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),a=e=>{if(!e.return)return;const{oldElement:n,newElement:o}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=oh(n);if(e)return void this._saveCaption(o,e)}const a=this._getSavedCaption(n);a&&this._saveCaption(o,a)};n&&this.listenTo(n,"execute",a,{priority:"low"}),o&&this.listenTo(o,"execute",a,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Jr.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}function sh(e){return(t,n)=>{const o=n.modelPosition,a=o.parent;if(!a.is("element","imageBlock"))return;const r=n.mapper.toViewElement(a);n.viewPosition=e.createPositionAt(r,o.offset+1)}}class lh extends Ye{static get requires(){return[zp]}static get pluginName(){return"ImageCaptionUI"}init(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),o=e.t;e.ui.componentFactory.add("toggleImageCaption",(a=>{const r=e.commands.get("toggleImageCaption"),i=new Ql(a);return i.set({icon:El.caption,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.bind("label").to(r,"value",(e=>o(e?"Toggle caption off":"Toggle caption on"))),this.listenTo(i,"execute",(()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});const o=ah(n,e.model.document.selection);if(o){const n=e.editing.mapper.toViewElement(o);t.scrollToTheSelection(),t.change((e=>{e.addClass("image__caption_highlighted",n)}))}})),i}))}}n(80);class ch extends Be{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map((e=>{if(e.isDefault)for(const t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]})))}refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){const t=this.editor,n=t.model,o=t.plugins.get("ImageUtils");n.change((t=>{const a=e.value;let r=o.getClosestSelectedImageElement(n.document.selection);a&&this.shouldConvertImageType(a,r)&&(this.editor.execute(o.isBlockImage(r)?"imageTypeInline":"imageTypeBlock"),r=o.getClosestSelectedImageElement(n.document.selection)),!a||this._styles.get(a).isDefault?t.removeAttribute("imageStyle",r):t.setAttribute("imageStyle",a,r)}))}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const{objectFullWidth:dh,objectInline:uh,objectLeft:ph,objectRight:hh,objectCenter:mh,objectBlockLeft:fh,objectBlockRight:gh}=El,vh={inline:{name:"inline",title:"In line",icon:uh,modelElements:["imageInline"],isDefault:!0},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:ph,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"},alignBlockLeft:{name:"alignBlockLeft",title:"Left aligned image",icon:fh,modelElements:["imageBlock"],className:"image-style-block-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:mh,modelElements:["imageBlock"],className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:hh,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"},alignBlockRight:{name:"alignBlockRight",title:"Right aligned image",icon:gh,modelElements:["imageBlock"],className:"image-style-block-align-right"},block:{name:"block",title:"Centered image",icon:mh,modelElements:["imageBlock"],isDefault:!0},side:{name:"side",title:"Side image",icon:hh,modelElements:["imageBlock"],className:"image-style-side"}},_h={full:dh,left:fh,right:gh,center:mh,inlineLeft:ph,inlineRight:hh,inline:uh},bh=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function yh(e){Object(s.b)("image-style-configuration-definition-invalid",e)}var wh={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map((e=>function(e){return e="string"==typeof e?vh[e]?{...vh[e]}:{name:e}:function(e,t){const n={...t};for(const o in e)Object.prototype.hasOwnProperty.call(t,o)||(n[o]=e[o]);return n}(vh[e.name],e),"string"==typeof e.icon&&(e.icon=_h[e.icon]||e.icon),e}(e))).filter((t=>function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:n}){const{modelElements:o,name:a}=e;if(!(o&&o.length&&a))return yh({style:e}),!1;{const a=[t?"imageBlock":null,n?"imageInline":null];if(!o.some((e=>a.includes(e))))return Object(s.b)("image-style-missing-dependency",{style:e,missingPlugins:o.map((e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(t,e)))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...bh]:[]},warnInvalidStyle:yh,DEFAULT_OPTIONS:vh,DEFAULT_ICONS:_h,DEFAULT_DROPDOWN_DEFINITIONS:bh};function kh(e,t){for(const n of t)if(n.name===e)return n}class xh extends Ye{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[zp]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=wh,n=this.editor,o=n.plugins.has("ImageBlockEditing"),a=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(o,a)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:o,isInlinePluginLoaded:a}),this._setupConversion(o,a),this._setupPostFixer(),n.commands.add("imageStyle",new ch(n,this.normalizedStyles))}_setupConversion(e,t){const n=this.editor,o=n.model.schema,a=(r=this.normalizedStyles,(e,t,n)=>{if(!n.consumable.consume(t.item,e.name))return;const o=kh(t.attributeNewValue,r),a=kh(t.attributeOldValue,r),i=n.mapper.toViewElement(t.item),s=n.writer;a&&s.removeClass(a.className,i),o&&s.addClass(o.className,i)});var r;const i=function(e){const t={imageInline:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageInline"))),imageBlock:e.filter((e=>!e.isDefault&&e.modelElements.includes("imageBlock")))};return(e,n,o)=>{if(!n.modelRange)return;const a=n.viewItem,r=Pr(n.modelRange.getItems());if(r&&o.schema.checkAttribute(r,"imageStyle"))for(const e of t[r.name])o.consumable.consume(a,{classes:e.className})&&o.writer.setAttribute("imageStyle",e.name,r)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",a),n.data.downcastDispatcher.on("attribute:imageStyle",a),e&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",i,{priority:"low"})),t&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",i,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,n=e.plugins.get(zp),o=new Map(this.normalizedStyles.map((e=>[e.name,e])));t.registerPostFixer((e=>{let a=!1;for(const r of t.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let t="insert"==r.type?r.position.nodeAfter:r.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!n.isImage(t))continue;const i=t.getAttribute("imageStyle");if(!i)continue;const s=o.get(i);s&&s.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),a=!0)}return a}))}}n(82);class Eh extends Ye{static get requires(){return[xh]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],n=Sh(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const e of n)this._createButton(e);const o=Sh([...t.filter(_),...wh.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const e of o)this._createDropdown(e,n)}_createDropdown(e,t){const n=this.editor.ui.componentFactory;n.add(e.name,(o=>{let a;const{defaultItem:r,items:i,title:s}=e,l=i.filter((e=>t.find((({name:t})=>Mh(t)===e)))).map((e=>{const t=n.create(e);return e===r&&(a=t),t}));i.length!==l.length&&wh.warnInvalidStyle({dropdown:e});const c=yc(o,ac),d=c.buttonView;return wc(c,l),d.set({label:Th(s,a.label),class:null,tooltip:!0}),d.bind("icon").toMany(l,"isOn",((...e)=>{const t=e.findIndex($);return t<0?a.icon:l[t].icon})),d.bind("label").toMany(l,"isOn",((...e)=>{const t=e.findIndex($);return Th(s,t<0?a.label:l[t].label)})),d.bind("isOn").toMany(l,"isOn",((...e)=>e.some($))),d.bind("class").toMany(l,"isOn",((...e)=>e.some($)?"ck-splitbutton_flatten":null)),d.on("execute",(()=>{l.some((({isOn:e})=>e))?c.isOpen=!c.isOpen:a.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",((...e)=>e.some($))),c}))}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(Mh(t),(n=>{const o=this.editor.commands.get("imageStyle"),a=new Ql(n);return a.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),a.bind("isEnabled").to(o,"isEnabled"),a.bind("isOn").to(o,"value",(e=>e===t)),a.on("execute",this._executeCommand.bind(this,t)),a}))}_executeCommand (e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function Sh(e,t){for(const n of e)t[n.title]&&(n.title=t[n.title]);return e}function Mh(e){return"imageStyle:"+e}function Th(e,t){return(e?e+": ":"")+t}function Ch(e){const t=e.map((e=>e.replace("+","\\+")));return new RegExp(`^image\\/(${t.join("|")})$`)}function Ah(e){return new Promise(((t,n)=>{const o=e.getAttribute("src");fetch(o).then((e=>e.blob())).then((e=>{const n=Dh(e,o),a=n.replace("image/",""),r=new File([e],"image."+a,{type:n});t(r)})).catch((e=>e&&"TypeError"===e.name?function(e){return function(e){return new Promise(((t,n)=>{const o=Sa.document.createElement("img");o.addEventListener("load",(()=>{const e=Sa.document.createElement("canvas");e.width=o.width,e.height=o.height,e.getContext("2d").drawImage(o,0,0),e.toBlob((e=>e?t(e):n()))})),o.addEventListener("error",(()=>n())),o.src=e}))}(e).then((t=>{const n=Dh(t,e),o=n.replace("image/","");return new File([t],"image."+o,{type:n})}))}(o).then(t).catch(n):n(e)))}))}function Dh(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Ph extends Ye{static get pluginName(){return"ImageUploadUI"}init(){const e=this.editor,t=e.t,n=n=>{const o=new Qu(n),a=e.commands.get("uploadImage"),r=e.config.get("image.upload.types"),i=Ch(r);return o.set({acceptedType:r.map((e=>"image/"+e)).join(","),allowMultipleFiles:!0}),o.buttonView.set({label:t("Insert image"),icon:El.image,tooltip:!0}),o.buttonView.bind("isEnabled").to(a),o.on("done",((t,n)=>{const o=Array.from(n).filter((e=>i.test(e.type)));o.length&&e.execute("uploadImage",{file:o})})),o};e.ui.componentFactory.add("uploadImage",n),e.ui.componentFactory.add("imageUpload",n)}}n(84),n(86),n(88);class Lh extends Ye{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",((...e)=>this.uploadStatusChange(...e))),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",((...e)=>this.uploadStatusChange(...e)))}uploadStatusChange(e,t,n){const o=this.editor,a=t.item,r=a.getAttribute("uploadId");if(!n.consumable.consume(t.item,e.name))return;const i=o.plugins.get("ImageUtils"),s=o.plugins.get(Ju),l=r?t.attributeNewValue:null,c=this.placeholder,d=o.editing.mapper.toViewElement(a),u=n.writer;if("reading"==l)return Nh(d,u),void Ih(i,c,d,u);if("uploading"==l){const e=s.loaders.get(r);return Nh(d,u),void(e?(Oh(d,u),function(e,t,n,o){const a=function(e){const t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),a),n.on("change:uploadedPercent",((e,t,n)=>{o.change((e=>{e.setStyle("width",n+"%",a)}))}))}(d,u,e,o.editing.view),function(e,t,n,o){if(o.data){const a=e.findViewImgElement(t);n.setAttribute("src",o.data,a)}}(i,d,u,e)):Ih(i,c,d,u))}"complete"==l&&s.loaders.get(r)&&function(e,t,n){const o=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),o),setTimeout((()=>{n.change((e=>e.remove(e.createRangeOn(o))))}),3e3)}(d,u,o.editing.view),function(e,t){Fh(e,t,"progressBar")}(d,u),Oh(d,u),function(e,t){t.removeClass("ck-appear",e)}(d,u)}}function Nh(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Ih(e,t,n,o){n.hasClass("ck-image-upload-placeholder")||o.addClass("ck-image-upload-placeholder",n);const a=e.findViewImgElement(n);a.getAttribute("src")!==t&&o.setAttribute("src",t,a),Rh(n,"placeholder")||o.insert(o.createPositionAfter(a),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(o))}function Oh(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Fh(e,t,"placeholder")}function Rh(e,t){for(const n of e.getChildren())if(n.getCustomProperty(t))return n}function Fh(e,t,n){const o=Rh(e,n);o&&t.remove(t.createRangeOn(o))}class jh extends Be{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(n)}execute(e){const t=dn(e.file),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),a=Object.fromEntries(n.getAttributes());t.forEach(((e,t)=>{const r=n.getSelectedElement();if(t&&r&&o.isImage(r)){const t=this.editor.model.createPositionAfter(r);this._uploadImage(e,a,t)}else this._uploadImage(e,a)}))}_uploadImage(e,t,n){const o=this.editor,a=o.plugins.get(Ju).createLoader(e),r=o.plugins.get("ImageUtils");a&&r.insertImage({...t,uploadId:a.id},n)}}class Yh extends Ye{static get requires(){return[Ju,Pc,md,zp]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const e=this.editor,t=e.model.document,n=e.conversion,o=e.plugins.get(Ju),a=e.plugins.get("ImageUtils"),r=Ch(e.config.get("image.upload.types")),i=new jh(e);e.commands.add("uploadImage",i),e.commands.add("imageUpload",i),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",((t,n)=>{if(o=n.dataTransfer,Array.from(o.types).includes("text/html")&&""!==o.getData("text/html"))return;var o;const a=Array.from(n.dataTransfer.files).filter((e=>!!e&&r.test(e.type)));a.length&&(t.stop(),e.model.change((t=>{n.targetRanges&&t.setSelection(n.targetRanges.map((t=>e.editing.mapper.toModelRange(t)))),e.model.enqueueChange("default",(()=>{e.execute("uploadImage",{file:a})}))})))})),this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",((t,n)=>{const r=Array.from(e.editing.view.createRangeIn(n.content)).filter((e=>function(e,t){return!(!e.isInlineImageView(t)||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))}(a,e.item)&&!e.item.getAttribute("uploadProcessed"))).map((e=>({promise:Ah(e.item),imageElement:e.item})));if(!r.length)return;const i=new sd(e.editing.view.document);for(const e of r){i.setAttribute("uploadProcessed",!0,e.imageElement);const t=o.createLoader(e.promise);t&&(i.setAttribute("src","",e.imageElement),i.setAttribute("uploadId",t.id,e.imageElement))}})),e.editing.view.document.on("dragover",((e,t)=>{t.preventDefault()})),t.on("change",(()=>{const n=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),a=new Set;for(const t of n)if("insert"==t.type&&"$text"!=t.name){const n=t.position.nodeAfter,r="$graveyard"==t.position.root.rootName;for(const t of zh(e,n)){const e=t.getAttribute("uploadId");if(!e)continue;const n=o.loaders.get(e);n&&(r?a.has(e)||n.abort():(a.add(e),this._uploadImageElements.set(e,t),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((e,{imageElement:t,data:n})=>{const o=n.urls?n.urls:n;this.editor.model.change((e=>{e.setAttribute("src",o.default,t),this._parseAndSetSrcsetAttributeOnImage(o,t,e)}))}),{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){const t=this.editor,n=t.model,o=t.locale.t,a=t.plugins.get(Ju),r=t.plugins.get(Pc),i=t.plugins.get("ImageUtils"),s=this._uploadImageElements;return n.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","reading",s.get(e.id))})),e.read().then((()=>{const o=e.upload(),a=s.get(e.id);if(Lo){const e=t.editing.mapper.toViewElement(a),n=i.findViewImgElement(e);t.editing.view.once("render",(()=>{if(!n.parent)return;const e=t.editing.view.domConverter.mapViewToDom(n.parent);if(!e)return;const o=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=o}))}return n.enqueueChange("transparent",(e=>{e.setAttribute("uploadStatus","uploading",a)})),o})).then((t=>{n.enqueueChange("transparent",(n=>{const o=s.get(e.id);n.setAttribute("uploadStatus","complete",o),this.fire("uploadComplete",{data:t,imageElement:o})})),l()})).catch((t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&r.showWarning(t,{title:o("Upload failed"),namespace:"upload"}),n.enqueueChange("transparent",(t=>{t.remove(s.get(e.id))})),l()}));function l(){n.enqueueChange("transparent",(t=>{const n=s.get(e.id);t.removeAttribute("uploadId",n),t.removeAttribute("uploadStatus",n),s.delete(e.id)})),a.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,n){let o=0;const a=Object.keys(e).filter((e=>{const t=parseInt(e,10);if(!isNaN(t))return o=Math.max(o,t),!0})).map((t=>`${e[t]} ${t}w`)).join(", ");""!=a&&n.setAttribute("srcset",{data:a,width:o},t)}}function zh(e,t){const n=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter((e=>n.isImage(e.item))).map((e=>e.item))}class Bh extends Ye{static get pluginName(){return"IndentEditing"}init(){const e=this.editor;e.commands.add("indent",new Ve(e)),e.commands.add("outdent",new Ve(e))}}var Hh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',Vh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class Uh extends Ye{static get pluginName(){return"IndentUI"}init(){const e=this.editor,t=e.locale,n=e.t,o="ltr"==t.uiLanguageDirection?Hh:Vh,a="ltr"==t.uiLanguageDirection?Vh:Hh;this._defineButton("indent",n("Increase indent"),o),this._defineButton("outdent",n("Decrease indent"),a)}_defineButton(e,t,n){const o=this.editor;o.ui.componentFactory.add(e,(a=>{const r=o.commands.get(e),i=new Ql(a);return i.set({label:t,icon:n,tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",(()=>{o.execute(e),o.editing.view.focus()})),i}))}}class Wh{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach((e=>this._definitions.add(e))):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",((e,t,n)=>{if(!n.consumable.test(t.item,"attribute:linkHref"))return;const o=n.writer,a=o.document.selection;for(const e of this._definitions){const r=o.createAttributeElement("a",e.attributes,{priority:5});e.classes&&o.addClass(e.classes,r);for(const t in e.styles)o.setStyle(t,e.styles[t],r);o.setCustomProperty("link",!0,r),e.callback(t.attributeNewValue)?t.item.is("selection")?o.wrap(a.getFirstRange(),r):o.wrap(n.mapper.toViewRange(t.range),r):o.unwrap(n.mapper.toViewRange(t.range),r)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",((e,t,{writer:n,mapper:o})=>{const a=o.toViewElement(t.item),r=Array.from(a.getChildren()).find((e=>"a"===e.name));for(const e of this._definitions){const o=wn(e.attributes);if(e.callback(t.attributeNewValue)){for(const[e,t]of o)"class"===e?n.addClass(t,r):n.setAttribute(e,t,r);e.classes&&n.addClass(e.classes,r);for(const t in e.styles)n.setStyle(t,e.styles[t],r)}else{for(const[e,t]of o)"class"===e?n.removeClass(t,r):n.removeAttribute(e,r);e.classes&&n.removeClass(e.classes,r);for(const t in e.styles)n.removeStyle(t,r)}}}))}}}var qh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),$h=function(e){return qh.test(e)},Gh="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Kh="\\ud83c[\\udffb-\\udfff]",Jh="[^\\ud800-\\udfff]",Xh="(?:\\ud83c[\\udde6-\\uddff]){2}",Qh="[\\ud800-\\udbff][\\udc00-\\udfff]",Zh="(?:"+Gh+"|"+Kh+")?",em="[\\ufe0e\\ufe0f]?"+Zh+"(?:\\u200d(?:"+[Jh,Xh,Qh].join("|")+")[\\ufe0e\\ufe0f]?"+Zh+")*",tm="(?:"+[Jh+Gh+"?",Gh,Xh,Qh,"[\\ud800-\\udfff]"].join("|")+")",nm=RegExp(Kh+"(?="+Kh+")|"+tm+em,"g"),om=function(e){return $h(e)?function(e){return e.match(nm)||[]}(e):function(e){return e.split("")}(e)},am=function(e){e=Rn(e);var t=$h(e)?om(e):void 0,n=t?t[0]:e.charAt(0),o=t?function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:zn(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+o};const rm=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,im=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,sm=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,lm=/^((\w+:(\/{2,})?)|(\W))/i;function cm(e,{writer:t}){const n=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,n),n}function dm(e){return function(e){return e.replace(rm,"").match(im)}(e=String(e))?e:"#"}function um(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function pm(e,t){const n=(o=e,sm.test(o)?"mailto:":t);var o;const a=!!n&&!lm.test(e);return e&&a?n+e:e}function hm(e){window.open(e,"_blank","noopener")}class mm extends Be{constructor(e){super(e),this.manualDecorators=new ln,this.automaticDecorators=new Wh}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||Pr(t.getSelectedBlocks());um(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}execute(e,t={}){const n=this.editor.model,o=n.document.selection,a=[],r=[];for(const e in t)t[e]?a.push(e):r.push(e);n.change((t=>{if(o.isCollapsed){const i=o.getFirstPosition();if(o.hasAttribute("linkHref")){const s=Fu(i,"linkHref",o.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,s),a.forEach((e=>{t.setAttribute(e,!0,s)})),r.forEach((e=>{t.removeAttribute(e,s)})),t.setSelection(t.createPositionAfter(s.end.nodeBefore))}else if(""!==e){const r=wn(o.getAttributes());r.set("linkHref",e),a.forEach((e=>{r.set(e,!0)}));const{end:s}=n.insertContent(t.createText(e,r),i);t.setSelection(s)}["linkHref",...a,...r].forEach((e=>{t.removeSelectionAttribute(e)}))}else{const i=n.schema.getValidRanges(o.getRanges(),"linkHref"),s=[];for(const e of o.getSelectedBlocks())n.schema.checkAttribute(e,"linkHref")&&s.push(t.createRangeOn(e));const l=s.slice();for(const e of i)this._isRangeToUpdate(e,s)&&l.push(e);for(const n of l)t.setAttribute("linkHref",e,n),a.forEach((e=>{t.setAttribute(e,!0,n)})),r.forEach((e=>{t.removeAttribute(e,n)}))}}))}_getDecoratorStateFromModel(e){const t=this.editor.model,n=t.document.selection,o=n.getSelectedElement();return um(o,t.schema)?o.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(const n of t)if(n.containsRange(e))return!1;return!0}}class fm extends Be{refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();um(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,t=this.editor.model,n=t.document.selection,o=e.commands.get("link");t.change((e=>{const a=n.isCollapsed?[Fu(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:t.schema.getValidRanges(n.getRanges(),"linkHref");for(const t of a)if(e.removeAttribute("linkHref",t),o)for(const n of o.manualDecorators)e.removeAttribute(n.id,t)}))}}class gm{constructor({id:e,label:t,attributes:n,classes:o,styles:a,defaultValue:r}){this.id=e,this.set("value"),this.defaultValue=r,this.label=t,this.attributes=n,this.classes=o,this.styles=a}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}je(gm,Le),n(90);const vm=/^(https?:)?\/\//;class _m extends Ye{static get pluginName(){return"LinkEditing"}static get requires(){return[xu,bu,md]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:cm}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>cm(dm(e),t)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new mm(e)),e.commands.add("unlink",new fm(e));const t=function(e,t){const n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((e=>(e.label&&n[e.label]&&(e.label=n[e.label]),e))),t}(e.t,function(e){const t=[];if(e)for(const[n,o]of Object.entries(e)){const e=Object.assign({},o,{id:"link"+am(n)});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((e=>"automatic"===e.mode))),this._enableManualDecorators(t.filter((e=>"manual"===e.mode))),e.plugins.get(xu).registerAttribute("linkHref"),function(e,t,n,o){const a=e.editing.view,r=new Set;a.document.registerPostFixer((n=>{const a=e.model.document.selection;let i=!1;if(a.hasAttribute(t)){const s=Fu(a.getFirstPosition(),t,a.getAttribute(t),e.model),l=e.editing.mapper.toViewRange(s);for(const e of l.getItems())e.is("element","a")&&!e.hasClass(o)&&(n.addClass(o,e),r.add(e),i=!0)}return i})),e.conversion.for("editingDowncast").add((e=>{function t(){a.change((e=>{for(const t of r.values())e.removeClass(o,t),r.delete(t)}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}_enableAutomaticDecorators(e){const t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:"automatic",callback:e=>vm.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((e=>{t.model.schema.extend("$text",{allowAttributes:e.id}),e=new gm(e),n.add(e),t.conversion.for("downcast").attributeToElement({model:e.id,view:(t,{writer:n})=>{if(t){const t=n.createAttributeElement("a",e.attributes,{priority:5});e.classes&&n.addClass(e.classes,t);for(const o in e.styles)n.setStyle(o,e.styles[o],t);return n.setCustomProperty("link",!0,t),t}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...e._createPattern()},model:{key:e.id}})}))}_enableLinkOpen(){const e=this.editor,t=e.editing.view.document,n=e.model.document;this.listenTo(t,"click",((e,t)=>{if(!(Ao?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let n=t.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const o=n.getAttribute("href");o&&(e.stop(),t.preventDefault(),hm(o))}),{context:"$capture"}),this.listenTo(t,"enter",((e,t)=>{const o=n.selection,a=o.getSelectedElement(),r=a?a.getAttribute("linkHref"):o.getAttribute("linkHref");r&&t.domEvent.altKey&&(e.stop(),hm(r))}),{context:"a"})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(e,"insertContent",(()=>{const n=t.anchor.nodeBefore,o=t.anchor.nodeAfter;t.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(o&&o.hasAttribute("linkHref")||e.change((t=>{bm(t,wm(e.schema))})))}),{priority:"low"})}_enableClickingAfterLink(){const e=this.editor,t=e.model;e.editing.view.addObserver(id);let n=!1;this.listenTo(e.editing.view.document,"mousedown",(()=>{n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(()=>{if(!n)return;n=!1;const e=t.document.selection;if(!e.isCollapsed)return;if(!e.hasAttribute("linkHref"))return;const o=e.getFirstPosition(),a=Fu(o,"linkHref",e.getAttribute("linkHref"),t);(o.isTouching(a.start)||o.isTouching(a.end))&&t.change((e=>{bm(e,wm(t.schema))}))}))}_enableTypingOverLink(){const e=this.editor,t=e.editing.view;let n,o;this.listenTo(t.document,"delete",(()=>{o=!0}),{priority:"high"}),this.listenTo(e.model,"deleteContent",(()=>{const t=e.model.document.selection;t.isCollapsed||(o?o=!1:ym(e)&&function(e){const t=e.document.selection,n=t.getFirstPosition(),o=t.getLastPosition(),a=n.nodeAfter;return!!a&&!!a.is("$text")&&!!a.hasAttribute("linkHref")&&(a===(o.textNode||o.nodeBefore)||Fu(n,"linkHref",a.getAttribute("linkHref"),e).containsRange(e.createRange(n,o),!0))}(e.model)&&(n=t.getAttributes()))}),{priority:"high"}),this.listenTo(e.model,"insertContent",((t,[a])=>{o=!1,ym(e)&&n&&(e.model.change((e=>{for(const[t,o]of n)e.setAttribute(t,o,a)})),n=null)}),{priority:"high"})}_handleDeleteContentAfterLink(){const e=this.editor,t=e.model,n=t.document.selection,o=e.editing.view;let a=!1,r=!1;this.listenTo(o.document,"delete",((e,t)=>{r=t.domEvent.keyCode===jo.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{a=!1;const e=n.getFirstPosition(),o=n.getAttribute("linkHref");if(!o)return;const r=Fu(e,"linkHref",o,t);a=r.containsPosition(e)||r.end.isEqual(e)}),{priority:"high"}),this.listenTo(t,"deleteContent",(()=>{r&&(r=!1,a||e.model.enqueueChange((e=>{bm(e,wm(t.schema))})))}),{priority:"low"})}}function bm(e,t){e.removeSelectionAttribute("linkHref");for(const n of t)e.removeSelectionAttribute(n)}function ym(e){return e.plugins.get("Input").isInput(e.model.change((e=>e.batch)))}function wm(e){return e.getDefinition("$text").allowAttributes.filter((e=>e.startsWith("link")))}n(92);class km extends Al{constructor(e,t){super(e);const n=e.t;this.focusTracker=new Lr,this.keystrokes=new Nr,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),El.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),El.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusables=new Cl,this._focusCycler=new ec({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children}),Ml(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((e,t)=>(e[t.name]=t.isOn,e)),{})}render(){super.render(),Tl({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const e=this.locale.t,t=new Ac(this.locale,Dc);return t.label=e("Link URL"),t}_createButton(e,t,n,o){const a=new Ql(this.locale);return a.set({label:e,icon:t,tooltip:!0}),a.extendTemplate({attributes:{class:n}}),o&&a.delegate("execute").to(this,o),a}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const n of e.manualDecorators){const o=new Zl(this.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,e],"value",((e,t)=>void 0===t&&void 0===e?n.defaultValue:e)),o.on("execute",(()=>{n.set("value",!o.isOn)})),t.add(o)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const e=new Al;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}n(94);class xm extends Al{constructor(e){super(e);const t=e.t;this.focusTracker=new Lr,this.keystrokes=new Nr,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(t("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(t("Edit link"),El.pencil,"edit"),this.set("href"),this._focusables=new Cl,this._focusCycler=new ec({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(e,t,n){const o=new Ql(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.delegate("execute").to(this,n),o}_createPreviewButton(){const e=new Ql(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(e=>e&&dm(e))),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(e=>e||n("This link has no URL"))),e.bind("isEnabled").to(this,"href",(e=>!!e)),e.template.tag="a",e.template.eventListeners={},e}}class Em extends Ye{static get requires(){return[jc]}static get pluginName(){return"LinkUI"}init(){const e=this.editor;e.editing.view.addObserver(rd),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(jc),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView.destroy()}_createActionsView(){const e=this.editor,t=new xm(e.locale),n=e.commands.get("link"),o=e.commands.get("unlink");return t.bind("href").to(n,"value"),t.editButtonView.bind("isEnabled").to(n),t.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(t,"edit",(()=>{this._addFormView()})),this.listenTo(t,"unlink",(()=>{e.execute("unlink"),this._hideUI()})),t.keystrokes.set("Esc",((e,t)=>{this._hideUI(),t()})),t.keystrokes.set("Ctrl+K",((e,t)=>{this._addFormView(),t()})),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),n=e.config.get("link.defaultProtocol"),o=new km(e.locale,t);return o.urlInputView.fieldView.bind("value").to(t,"value"),o.urlInputView.bind("isReadOnly").to(t,"isEnabled",(e=>!e)),o.saveButtonView.bind("isEnabled").to(t),this.listenTo(o,"submit",(()=>{const{value:t}=o.urlInputView.fieldView.element,a=pm(t,n);e.execute("link",a,o.getDecoratorSwitchesState()),this._closeFormView()})),this.listenTo(o,"cancel",(()=>{this._closeFormView()})),o.keystrokes.set("Esc",((e,t)=>{this._closeFormView(),t()})),o}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link"),n=e.t;e.keystrokes.set("Ctrl+K",((e,n)=>{n(),t.isEnabled&&this._showUI(!0)})),e.ui.componentFactory.add("link",(e=>{const o=new Ql(e);return o.isEnabled=!0,o.label=n("Link"),o.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',o.keystroke="Ctrl+K",o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(t,"isEnabled"),o.bind("isOn").to(t,"value",(e=>!!e)),this.listenTo(o,"execute",(()=>this._showUI(!0))),o}))}_enableUserBalloonInteractions(){const e=this.editor.editing.view.document;this.listenTo(e,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),this.editor.keystrokes.set("Tab",((e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((e,t)=>{this._isUIVisible&&(this._hideUI(),t())})),Sl({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this._isFormInPanel)return;const e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){const e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let n=this._getSelectedLinkElement(),o=r();const a=()=>{const e=this._getSelectedLinkElement(),t=r();n&&!e||!n&&t!==o?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=e,o=t};function r(){return t.selection.focus.getAncestors().reverse().find((e=>e.is("element")))}this.listenTo(e.ui,"update",a),this.listenTo(this._balloon,"change:visibleView",a)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,n=e.document;let o=null;if(t.markers.has("link-ui")){const t=Array.from(this.editor.editing.mapper.markerNameToElements("link-ui")),n=e.createRange(e.createPositionBefore(t[0]),e.createPositionAfter(t[t.length-1]));o=e.domConverter.viewRangeToDom(n)}else o=()=>{const t=this._getSelectedLinkElement();return t?e.domConverter.mapViewToDom(t):e.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:o}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&Pd(n))return Sm(t.getFirstPosition());{const n=t.getFirstRange().getTrimmed(),o=Sm(n.start),a=Sm(n.end);return o&&o==a&&e.createRangeIn(o).getTrimmed().isEqual(n)?o:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change((t=>{const n=e.document.selection.getFirstRange();if(e.markers.has("link-ui"))t.updateMarker("link-ui",{range:n});else if(n.start.isAtEnd){const o=n.start.getLastMatchingPosition((({item:t})=>!e.schema.isContent(t)),{boundaries:n});t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:t.createRange(o,n.end)})}else t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has("link-ui")&&e.change((e=>{e.removeMarker("link-ui")}))}}function Sm(e){return e.getAncestors().find((e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}const Mm=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class Tm extends Ye{static get requires(){return[Md]}static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const e=this.editor,t=new ku(e.model,(e=>{if(!function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=Cm(e.substr(0,e.length-1));return t?{url:t}:void 0})),n=e.plugins.get("Input");t.on("matched:data",((t,o)=>{const{batch:a,range:r,url:i}=o;if(!n.isInput(a))return;const s=r.end.getShiftedBy(-1),l=s.getShiftedBy(-i.length),c=e.model.createRange(l,s);this._applyAutoLink(i,c)})),t.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("enter");n&&n.on("execute",(()=>{const e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;const n=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const e=this.editor,t=e.model,n=e.commands.get("shiftEnter");n&&n.on("execute",(()=>{const e=t.document.selection.getFirstPosition(),n=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:n,range:o}=wu(e,t),a=Cm(n);if(a){const e=t.createRange(o.end.getShiftedBy(-a.length),o.end);this._applyAutoLink(a,e)}}_applyAutoLink(e,t){const n=this.editor.model,o=this.editor.plugins.get("Delete");this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,n)&&n.enqueueChange((a=>{const r=this.editor.config.get("link.defaultProtocol"),i=pm(e,r);a.setAttribute("linkHref",i,t),n.enqueueChange((()=>{o.requestUndoOnBackspace()}))}))}}function Cm(e){const t=Mm.exec(e);return t?t[2]:null}class Am extends Be{constructor(e,t){super(e),this.type=t}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,n=t.document,o=Array.from(n.selection.getSelectedBlocks()).filter((e=>Pm(e,t.schema))),a=void 0!==e.forceValue?!e.forceValue:this.value;t.change((e=>{if(a){let t=o[o.length-1].nextSibling,n=Number.POSITIVE_INFINITY,a=[];for(;t&&"listItem"==t.name&&0!==t.getAttribute("listIndent");){const e=t.getAttribute("listIndent");e<n&&(n=e);const o=e-n;a.push({element:t,listIndent:o}),t=t.nextSibling}a=a.reverse();for(const t of a)e.setAttribute("listIndent",t.listIndent,t.element)}if(!a){let e=Number.POSITIVE_INFINITY;for(const t of o)t.is("element","listItem")&&t.getAttribute("listIndent")<e&&(e=t.getAttribute("listIndent"));e=0===e?1:e,Dm(o,!0,e),Dm(o,!1,e)}for(const t of o.reverse())a&&"listItem"==t.name?e.rename(t,"paragraph"):a||"listItem"==t.name?a||"listItem"!=t.name||t.getAttribute("listType")==this.type||e.setAttribute("listType",this.type,t):(e.setAttributes({listType:this.type,listIndent:0},t),e.rename(t,"listItem"));this.fire("_executeCleanup",o)}))}_getValue(){const e=Pr(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,n=Pr(e.getSelectedBlocks());return!!n&&Pm(n,t)}}function Dm(e,t,n){const o=t?e[0]:e[e.length-1];if(o.is("element","listItem")){let a=o[t?"previousSibling":"nextSibling"],r=o.getAttribute("listIndent");for(;a&&a.is("element","listItem")&&a.getAttribute("listIndent")>=n;)r>a.getAttribute("listIndent")&&(r=a.getAttribute("listIndent")),a.getAttribute("listIndent")==r&&e[t?"unshift":"push"](a),a=a[t?"previousSibling":"nextSibling"]}}function Pm(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}class Lm extends Be{constructor(e,t){super(e),this._indentBy="forward"==t?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=e.document;let n=Array.from(t.selection.getSelectedBlocks());e.change((e=>{const t=n[n.length-1];let o=t.nextSibling;for(;o&&"listItem"==o.name&&o.getAttribute("listIndent")>t.getAttribute("listIndent");)n.push(o),o=o.nextSibling;this._indentBy<0&&(n=n.reverse());for(const t of n){const n=t.getAttribute("listIndent")+this._indentBy;n<0?e.rename(t,"paragraph"):e.setAttribute("listIndent",n,t)}this.fire("_executeCleanup",n)}))}_checkEnabled(){const e=Pr(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){const t=e.getAttribute("listIndent"),n=e.getAttribute("listType");let o=e.previousSibling;for(;o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=t;){if(o.getAttribute("listIndent")==t)return o.getAttribute("listType")==n;o=o.previousSibling}return!1}return!0}}function Nm(e,t,n,o){const a=t.parent,r=n.mapper,i=n.writer;let s=r.toViewPosition(o.createPositionBefore(e));const l=Rm(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),c=e.previousSibling;if(l&&l.getAttribute("listIndent")==e.getAttribute("listIndent")){const e=r.toViewElement(l);s=i.breakContainer(i.createPositionAfter(e))}else if(c&&"listItem"==c.name){s=r.toViewPosition(o.createPositionAt(c,"end"));const e=r.findMappedViewAncestor(s),t=function(e){for(const t of e.getChildren())if("ul"==t.name||"ol"==t.name)return t;return null}(e);s=t?i.createPositionBefore(t):i.createPositionAt(e,"end")}else s=r.toViewPosition(o.createPositionBefore(e));if(s=Om(s),i.insert(s,a),c&&"listItem"==c.name){const e=r.toViewElement(c),n=i.createRange(i.createPositionAt(e,0),s).getWalker({ignoreElementEnd:!0});for(const e of n)if(e.item.is("element","li")){const o=i.breakContainer(i.createPositionBefore(e.item)),a=e.item.parent,r=i.createPositionAt(t,"end");Im(i,r.nodeBefore,r.nodeAfter),i.move(i.createRangeOn(a),r),n.position=o}}else{const n=a.nextSibling;if(n&&(n.is("element","ul")||n.is("element","ol"))){let o=null;for(const t of n.getChildren()){const n=r.toModelElement(t);if(!(n&&n.getAttribute("listIndent")>e.getAttribute("listIndent")))break;o=t}o&&(i.breakContainer(i.createPositionAfter(o)),i.move(i.createRangeOn(o.parent),i.createPositionAt(t,"end")))}}Im(i,a,a.nextSibling),Im(i,a.previousSibling,a)}function Im(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function Om(e){return e.getLastMatchingPosition((e=>e.item.is("uiElement")))}function Rm(e,t){const n=!!t.sameIndent,o=!!t.smallerIndent,a=t.listIndent;let r=e;for(;r&&"listItem"==r.name;){const e=r.getAttribute("listIndent");if(n&&a==e||o&&a>e)return r;r="forward"===t.direction?r.nextSibling:r.previousSibling}return null}function Fm(e,t,n,o){e.ui.componentFactory.add(t,(a=>{const r=e.commands.get(t),i=new Ql(a);return i.set({label:n,icon:o,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.on("execute",(()=>{e.execute(t),e.editing.view.focus()})),i}))}function jm(){const e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:oo.call(this)}function Ym(e){return(t,n,o)=>{const a=o.consumable;if(!a.test(n.item,"insert")||!a.test(n.item,"attribute:listType")||!a.test(n.item,"attribute:listIndent"))return;a.consume(n.item,"insert"),a.consume(n.item,"attribute:listType"),a.consume(n.item,"attribute:listIndent");const r=n.item;Nm(r,function(e,t){const n=t.mapper,o=t.writer,a="numbered"==e.getAttribute("listType")?"ol":"ul",r=function(e){const t=e.createContainerElement("li");return t.getFillerOffset=jm,t}(o),i=o.createContainerElement(a,null);return o.insert(o.createPositionAt(i,0),r),n.bindElements(e,r),r}(r,o),o,e)}}function zm(e,t,n){if(!n.consumable.consume(t.item,"attribute:listType"))return;const o=n.mapper.toViewElement(t.item),a=n.writer;a.breakContainer(a.createPositionBefore(o)),a.breakContainer(a.createPositionAfter(o));const r=o.parent,i="numbered"==t.attributeNewValue?"ol":"ul";a.rename(i,r)}function Bm(e,t,n){const o=n.mapper.toViewElement(t.item).parent,a=n.writer;Im(a,o,o.nextSibling),Im(a,o.previousSibling,o);for(const e of t.item.getChildren())n.consumable.consume(e,"insert")}function Hm(e,t,n){if("listItem"!=t.item.name){let e=n.mapper.toViewPosition(t.range.start);const o=n.writer,a=[];for(;("ul"==e.parent.name||"ol"==e.parent.name)&&(e=o.breakContainer(e),"li"==e.parent.name);){const t=e,n=o.createPositionAt(e.parent,"end");if(!t.isEqual(n)){const e=o.remove(o.createRange(t,n));a.push(e)}e=o.createPositionAfter(e.parent)}if(a.length>0){for(let t=0;t<a.length;t++){const n=e.nodeBefore;if(e=o.insert(e,a[t]).end,t>0){const t=Im(o,n,n.nextSibling);t&&t.parent==n&&e.offset--}}Im(o,e.nodeBefore,e.nodeAfter)}}}function Vm(e,t,n){const o=n.mapper.toViewPosition(t.position),a=o.nodeBefore,r=o.nodeAfter;Im(n.writer,a,r)}function Um(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){const e=n.writer,o=e.createElement("listItem"),a=function(e){let t=0,n=e.parent;for(;n;){if(n.is("element","li"))t++;else{const e=n.previousSibling;e&&e.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);e.setAttribute("listIndent",a,o);const r=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(e.setAttribute("listType",r,o),!n.safeInsert(o,t.modelCursor))return;const i=function(e,t,n){const{writer:o,schema:a}=n;let r=o.createPositionAfter(e);for(const i of t)if("ul"==i.name||"ol"==i.name)r=n.convertItem(i,r).modelCursor;else{const t=n.convertItem(i,o.createPositionAt(e,"end")),s=t.modelRange.start.nodeAfter;s&&s.is("element")&&!a.checkChild(e,s.name)&&(e=t.modelCursor.parent.is("element","listItem")?t.modelCursor.parent:Km(t.modelCursor),r=o.createPositionAfter(e))}return r}(o,t.viewItem.getChildren(),n);t.modelRange=e.createRange(t.modelCursor,i),n.updateConversionResult(o,t)}}function Wm(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){const e=Array.from(t.viewItem.getChildren());for(const t of e)!t.is("element","li")&&!Xm(t)&&t._remove()}}function qm(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const e=[...t.viewItem.getChildren()];let n=!1;for(const t of e)n&&!Xm(t)&&t._remove(),Xm(t)&&(n=!0)}}function $m(e){return(t,n)=>{if(n.isPhantom)return;const o=n.modelPosition.nodeBefore;if(o&&o.is("element","listItem")){const t=n.mapper.toViewElement(o),a=t.getAncestors().find(Xm),r=e.createPositionAt(t,0).getWalker();for(const e of r){if("elementStart"==e.type&&e.item.is("element","li")){n.viewPosition=e.previousPosition;break}if("elementEnd"==e.type&&e.item==a){n.viewPosition=e.nextPosition;break}}}}}function Gm(e,[t,n]){let o,a=t.is("documentFragment")?t.getChild(0):t;if(o=n?this.createSelection(n):this.document.selection,a&&a.is("element","listItem")){const e=o.getFirstPosition();let t=null;if(e.parent.is("element","listItem")?t=e.parent:e.nodeBefore&&e.nodeBefore.is("element","listItem")&&(t=e.nodeBefore),t){const e=t.getAttribute("listIndent");if(e>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+e),a=a.nextSibling}}}function Km(e){const t=new Xr({startPosition:e});let n;do{n=t.next()}while(!n.value.item.is("element","listItem"));return n.value.item}function Jm(e,t,n,o,a,r){const i=Rm(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),s=a.mapper,l=a.writer,c=i?i.getAttribute("listIndent"):null;let d;if(i)if(c==e){const e=s.toViewElement(i).parent;d=l.createPositionAfter(e)}else{const e=r.createPositionAt(i,"end");d=s.toViewPosition(e)}else d=n;d=Om(d);for(const e of[...o.getChildren()])Xm(e)&&(d=l.move(l.createRangeOn(e),d).end,Im(l,e,e.nextSibling),Im(l,e.previousSibling,e))}function Xm(e){return e.is("element","ol")||e.is("element","ul")}class Qm extends Ye{static get pluginName(){return"ListEditing"}static get requires(){return[bd,Md]}init(){const e=this.editor;e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const t=e.data,n=e.editing;var o;e.model.document.registerPostFixer((t=>function(e,t){const n=e.document.differ.getChanges(),o=new Map;let a=!1;for(const o of n)if("insert"==o.type&&"listItem"==o.name)r(o.position);else if("insert"==o.type&&"listItem"!=o.name){if("$text"!=o.name){const n=o.position.nodeAfter;n.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",n),a=!0),n.hasAttribute("listType")&&(t.removeAttribute("listType",n),a=!0),n.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",n),a=!0);for(const t of Array.from(e.createRangeIn(n)).filter((e=>e.item.is("element","listItem"))))r(t.previousPosition)}r(o.position.getShiftedBy(o.length))}else"remove"==o.type&&"listItem"==o.name?r(o.position):("attribute"==o.type&&"listIndent"==o.attributeKey||"attribute"==o.type&&"listType"==o.attributeKey)&&r(o.range.start);for(const e of o.values())i(e),s(e);return a;function r(e){const t=e.nodeBefore;if(t&&t.is("element","listItem")){let e=t;if(o.has(e))return;for(let t=e.previousSibling;t&&t.is("element","listItem");t=e.previousSibling)if(e=t,o.has(e))return;o.set(t,e)}else{const t=e.nodeAfter;t&&t.is("element","listItem")&&o.set(t,t)}}function i(e){let n=0,o=null;for(;e&&e.is("element","listItem");){const r=e.getAttribute("listIndent");if(r>n){let i;null===o?(o=r-n,i=n):(o>r&&(o=r),i=r-o),t.setAttribute("listIndent",i,e),a=!0}else o=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function s(e){let n=[],o=null;for(;e&&e.is("element","listItem");){const r=e.getAttribute("listIndent");if(o&&o.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){const o=n[r];e.getAttribute("listType")!=o&&(t.setAttribute("listType",o,e),a=!0)}else n[r]=e.getAttribute("listType");o=e,e=e.nextSibling}}}(e.model,t))),n.mapper.registerViewToModelLength("li",Zm),t.mapper.registerViewToModelLength("li",Zm),n.mapper.on("modelToViewPosition",$m(n.view)),n.mapper.on("viewToModelPosition",(o=e.model,(e,t)=>{const n=t.viewPosition,a=n.parent,r=t.mapper;if("ul"==a.name||"ol"==a.name){if(n.isAtEnd){const e=r.toModelElement(n.nodeBefore),a=r.getModelLength(n.nodeBefore);t.modelPosition=o.createPositionBefore(e).getShiftedBy(a)}else{const e=r.toModelElement(n.nodeAfter);t.modelPosition=o.createPositionBefore(e)}e.stop()}else if("li"==a.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){const i=r.toModelElement(a);let s=1,l=n.nodeBefore;for(;l&&Xm(l);)s+=r.getModelLength(l),l=l.previousSibling;t.modelPosition=o.createPositionBefore(i).getShiftedBy(s),e.stop()}})),t.mapper.on("modelToViewPosition",$m(n.view)),e.conversion.for("editingDowncast").add((t=>{t.on("insert",Hm,{priority:"high"}),t.on("insert:listItem",Ym(e.model)),t.on("attribute:listType:listItem",zm,{priority:"high"}),t.on("attribute:listType:listItem",Bm,{priority:"low"}),t.on("attribute:listIndent:listItem",function(e){return(t,n,o)=>{if(!o.consumable.consume(n.item,"attribute:listIndent"))return;const a=o.mapper.toViewElement(n.item),r=o.writer;r.breakContainer(r.createPositionBefore(a)),r.breakContainer(r.createPositionAfter(a));const i=a.parent,s=i.previousSibling,l=r.createRangeOn(i);r.remove(l),s&&s.nextSibling&&Im(r,s,s.nextSibling),Jm(n.attributeOldValue+1,n.range.start,l.start,a,o,e),Nm(n.item,a,o,e);for(const e of n.item.getChildren())o.consumable.consume(e,"insert")}}(e.model)),t.on("remove:listItem",function(e){return(t,n,o)=>{const a=o.mapper.toViewPosition(n.position).getLastMatchingPosition((e=>!e.item.is("element","li"))).nodeAfter,r=o.writer;r.breakContainer(r.createPositionBefore(a)),r.breakContainer(r.createPositionAfter(a));const i=a.parent,s=i.previousSibling,l=r.createRangeOn(i),c=r.remove(l);s&&s.nextSibling&&Im(r,s,s.nextSibling),Jm(o.mapper.toModelElement(a).getAttribute("listIndent")+1,n.position,l.start,a,o,e);for(const e of r.createRangeIn(c).getItems())o.mapper.unbindViewElement(e);t.stop()}}(e.model)),t.on("remove",Vm,{priority:"low"})})),e.conversion.for("dataDowncast").add((t=>{t.on("insert",Hm,{priority:"high"}),t.on("insert:listItem",Ym(e.model))})),e.conversion.for("upcast").add((e=>{e.on("element:ul",Wm,{priority:"high"}),e.on("element:ol",Wm,{priority:"high"}),e.on("element:li",qm,{priority:"high"}),e.on("element:li",Um)})),e.model.on("insertContent",Gm,{priority:"high"}),e.commands.add("numberedList",new Am(e,"numbered")),e.commands.add("bulletedList",new Am(e,"bulleted")),e.commands.add("indentList",new Lm(e,"forward")),e.commands.add("outdentList",new Lm(e,"backward"));const a=n.view.document;this.listenTo(a,"enter",((e,t)=>{const n=this.editor.model.document,o=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(this.editor.execute("outdentList"),t.preventDefault(),e.stop())}),{context:"li"}),this.listenTo(a,"delete",((e,t)=>{if("backward"!==t.direction)return;const n=this.editor.model.document.selection;if(!n.isCollapsed)return;const o=n.getFirstPosition();if(!o.isAtStart)return;const a=o.parent;"listItem"===a.name&&(a.previousSibling&&"listItem"===a.previousSibling.name||(this.editor.execute("outdentList"),t.preventDefault(),e.stop()))}),{context:"li"});const r=e=>(t,n)=>{this.editor.commands.get(e).isEnabled&&(this.editor.execute(e),n())};e.keystrokes.set("Tab",r("indentList")),e.keystrokes.set("Shift+Tab",r("outdentList"))}afterInit(){const e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand (e.get("indentList")),n&&n.registerChildCommand (e.get("outdentList"))}}function Zm(e){let t=1;for(const n of e.getChildren())if("ul"==n.name||"ol"==n.name)for(const e of n.getChildren())t+=Zm(e);return t}class ef extends Ye{static get pluginName(){return"ListUI"}init(){const e=this.editor.t;Fm(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),Fm(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}function tf(e,t){return e=>{e.on("attribute:url:media",n)};function n(n,o,a){if(!a.consumable.consume(o.item,n.name))return;const r=o.attributeNewValue,i=a.writer,s=a.mapper.toViewElement(o.item),l=[...s.getChildren()].find((e=>e.getCustomProperty("media-content")));i.remove(l);const c=e.getMediaViewElement(i,r,t);i.insert(i.createPositionAt(s,0),c)}}function nf(e,t,n,o){const a=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(a,0),t.getMediaViewElement(e,n,o)),a}function of(e){const t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function af(e,t,n){e.change((o=>{const a=o.createElement("media",{url:t});e.insertContent(a,n),o.setSelection(a,"on")}))}class rf extends Be{refresh(){const e=this.editor.model,t=e.document.selection,n=of(t);this.value=n?n.getAttribute("url"):null,this.isEnabled=function(e){const t=e.getSelectedElement();return!!t&&"media"===t.name}(t)||function(e,t){let n=jd(e,t).start.parent;return n.isEmpty&&!t.schema.isLimit(n)&&(n=n.parent),t.schema.checkChild(n,"media")}(t,e)}execute(e){const t=this.editor.model,n=t.document.selection,o=of(n);o?t.change((t=>{t.setAttribute("url",e,o)})):af(t,e,jd(n,t))}}class sf{constructor(e,t){const n=t.providers,o=t.extraProviders||[],a=new Set(t.removeProviders),r=n.concat(o).filter((e=>{const t=e.name;return t?!a.has(t):(Object(s.b)("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=e,this.providerDefinitions=r}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,n){return this._getMedia(t).getViewElement(e,n)}_getMedia(e){if(!e)return new lf(this.locale);e=e.trim();for(const t of this.providerDefinitions){const n=t.html,o=dn(t.url);for(const t of o){const o=this._getUrlMatches(e,t);if(o)return new lf(this.locale,e,o,n)}}return null}_getUrlMatches(e,t){let n=e.match(t);if(n)return n;let o=e.replace(/^https?:\/\//,"");return n=o.match(t),n||(o=o.replace(/^www\./,""),n=o.match(t),n||null)}}class lf{constructor(e,t,n,o){this.url=this._getValidUrl(t),this._t=e.t,this._match=n,this._previewRenderer=o}getViewElement(e,t){const n={};let o;if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),t.renderForEditingView&&(n.class="ck-media__wrapper");const a=this._getPreviewHtml(t);o=e.createRawElement("div",n,((e,t)=>{t.setContentOf(e,a)}))}else this.url&&(n.url=this.url),o=e.createEmptyElement(t.elementName,n);return e.setCustomProperty("media-content",!0,o),o}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const e=new Xl,t=new Jl;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Dl({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}n(96);class cf extends Ye{static get pluginName(){return"MediaEmbedEditing"}constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new sf(e.locale,e.config.get("mediaEmbed"))}init(){const e=this.editor,t=e.model.schema,n=e.t,o=e.conversion,a=e.config.get("mediaEmbed.previewsInData"),r=e.config.get("mediaEmbed.elementName"),i=this.registry;e.commands.add("mediaEmbed",new rf(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),o.for("dataDowncast").elementToElement({model:"media",view:(e,{writer:t})=>{const n=e.getAttribute("url");return nf(t,i,n,{elementName:r,renderMediaPreview:n&&a})}}),o.for("dataDowncast").add(tf(i,{elementName:r,renderMediaPreview:a})),o.for("editingDowncast").elementToElement({model:"media",view:(e,{writer:t})=>{const o=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),Ld(e,t,{label:n})}(nf(t,i,o,{elementName:r,renderForEditingView:!0}),t,n("media widget"))}}),o.for("editingDowncast").add(tf(i,{elementName:r,renderForEditingView:!0})),o.for("upcast").elementToElement({view:e=>["oembed",r].includes(e.name)&&e.getAttribute("url")?{name:!0}:null,model:(e,{writer:t})=>{const n=e.getAttribute("url");if(i.hasMedia(n))return t.createElement("media",{url:n})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,{writer:t})=>{const n=e.getAttribute("data-oembed-url");if(i.hasMedia(n))return t.createElement("media",{url:n})}}).add((e=>{e.on("element:figure",(function(e,t,n){if(!n.consumable.consume(t.viewItem,{name:!0,classes:"media"}))return;const{modelRange:o,modelCursor:a}=n.convertChildren(t.viewItem,t.modelCursor);t.modelRange=o,t.modelCursor=a,Pr(o.getItems())||n.consumable.revert(t.viewItem,{name:!0,classes:"media"})}))}))}}const df=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class uf extends Ye{static get requires(){return[au,Md,Gu]}static get pluginName(){return"AutoMediaEmbed"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(()=>{const e=t.selection.getFirstRange(),n=Zs.fromPosition(e.start);n.stickiness="toPrevious";const o=Zs.fromPosition(e.end);o.stickiness="toNext",t.once("change:data",(()=>{this._embedMediaBetweenPositions(n,o),n.detach(),o.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(()=>{this._timeoutId&&(Sa.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_embedMediaBetweenPositions(e,t){const n=this.editor,o=n.plugins.get(cf).registry,a=new gi(e,t),r=a.getWalker({ignoreElementEnd:!0});let i="";for(const e of r)e.item.is("$textProxy")&&(i+=e.item.data);i=i.trim(),i.match(df)&&o.hasMedia(i)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Zs.fromPosition(e),this._timeoutId=Sa.window.setTimeout((()=>{n.model.change((e=>{let t;this._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),af(n.model,i,t),this._positionToInsert.detach(),this._positionToInsert=null})),n.plugins.get("Delete").requestUndoOnBackspace()}),100)):a.detach()}}n(98);class pf extends Al{constructor(e,t){super(t);const n=t.t;this.focusTracker=new Lr,this.keystrokes=new Nr,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),El.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",(e=>!!e)),this.cancelButtonView=this._createButton(n("Cancel"),El.cancel,"ck-button-cancel","cancel"),this._focusables=new Cl,this._focusCycler=new ec({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),Ml(this)}render(){super.render(),Tl({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((e=>{this._focusables.add(e),this.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",((e,t)=>{t.stopPropagation()}),{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new Ac(this.locale,Dc),n=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,n.on("input",(()=>{t.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),t}_createButton(e,t,n,o){const a=new Ql(this.locale);return a.set({label:e,icon:t,tooltip:!0}),a.extendTemplate({attributes:{class:n}}),o&&a.delegate("execute").to(this,o),a}}class hf extends Ye{static get requires(){return[cf]}static get pluginName(){return"MediaEmbedUI"}init(){const e=this.editor,t=e.commands.get("mediaEmbed"),n=e.plugins.get(cf).registry;e.ui.componentFactory.add("mediaEmbed",(o=>{const a=yc(o),r=new pf(function(e,t){return[t=>{if(!t.url.length)return e("The URL must not be empty.")},n=>{if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(e.t,n),e.locale);return this._setUpDropdown(a,r,t,e),this._setUpForm(a,r,t),a}))}_setUpDropdown(e,t,n){const o=this.editor,a=o.t,r=e.buttonView;function i(){o.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),r.set({label:a("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),r.on("open",(()=>{t.disableCssTransitions(),t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus(),t.enableCssTransitions()}),{priority:"low"}),e.on("submit",(()=>{t.isValid()&&(o.execute("mediaEmbed",t.url),i())})),e.on("change:isOpen",(()=>t.resetFormStatus())),e.on("cancel",(()=>i()))}_setUpForm(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(e=>!e))}}function mf(e){switch(e){case"arabic-leading-zero":return"decimal-leading-zero";case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}function ff(e,t,n){const o=t.parent,a=n.createElement(e.type),r=o.getChildIndex(t)+1;return n.insertChild(r,a,o),e.style&&n.setStyle("list-style-type",e.style,a),a}function gf(e){const t={},n=e.getStyle("mso-list");if(n){const e=n.match(/(^|\s{1,100})l(\d+)/i),o=n.match(/\s{0,100}lfo(\d+)/i),a=n.match(/\s{0,100}level(\d+)/i);e&&o&&a&&(t.id=e[2],t.order=o[1],t.indent=a[1])}return t}n(100);const vf=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class _f{constructor(e){this.document=e}isActive(e){return vf.test(e)}execute(e){const t=new sd(this.document),{body:n}=e._parsedData;!function(e,t){for(const n of e.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const o=e.getChildIndex(n);t.remove(n),t.insertChild(o,n.getChildren(),e)}}(n,t),function(e,t){for(const n of t.createRangeIn(e)){const e=n.item;if(e.is("element","li")){const n=e.getChild(0);n&&n.is("element","p")&&t.unwrapElement(n)}}}(n,t),e.content=n}}const bf=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,yf=/xmlns:o="urn:schemas-microsoft-com/i;class wf{constructor(e){this.document=e}isActive(e){return bf.test(e)||yf.test(e)}execute(e){const{body:t,stylesString:n}=e._parsedData;(function(e,t){if(!e.childCount)return;const n=new sd(e.document),o=function(e,t){const n=t.createRangeIn(e),o=new kn({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),a=[];for(const e of n)if("elementStart"===e.type&&o.match(e.item)){const t=gf(e.item);a.push({element:e.item,id:t.id,order:t.order,indent:t.indent})}return a}(e,n);if(!o.length)return;let a=null,r=1;o.forEach(((e,i)=>{const s=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const n=t.element.previousSibling;return!n||!((o=n).is("element","ol")||o.is("element","ul"));var o}(o[i-1],e),l=(d=e,(c=s?null:o[i-1])?d.indent-c.indent:d.indent-1);var c,d;if(s&&(a=null,r=1),!a||0!==l){const o=function(e,t){const n=/mso-level-number-format:([^;]{0,100});/gi,o=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi").exec(t);let a="decimal",r="ol";if(o&&o[1]){const t=n.exec(o[1]);if(t&&t[1]&&(a=t[1].trim(),r="bullet"!==a&&"image"!==a?"ol":"ul"),"bullet"===a){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);return e.is("$text")?e:e.getChild(0)}}(e);if(!t)return null;const n=t._data;return"o"===n?"circle":"·"===n?"disc":"§"===n?"square":null}(e.element);t&&(a=t)}}return{type:r,style:mf(a)}}(e,t);if(a){if(e.indent>r){const e=a.getChild(a.childCount-1),t=e.getChild(e.childCount-1);a=ff(o,t,n),r+=1}else if(e.indent<r){const t=r-e.indent;a=function(e,t){const n=e.getAncestors({parentFirst:!0});let o=null,a=0;for(const e of n)if("ul"!==e.name&&"ol"!==e.name||a++,a===t){o=e;break}return o}(a,t),r=parseInt(e.indent)}}else a=ff(o,e.element,n);e.indent<=r&&(a.is("element",o.type)||(a=n.rename(o.type,a)))}const u=function(e,t){return function(e,t){const n=new kn({name:"span",styles:{"mso-list":"Ignore"}}),o=t.createRangeIn(e);for(const e of o)"elementStart"===e.type&&n.match(e.item)&&t.remove(e.item)}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(u,a)}))})(t,n),function(e,t){if(!e.childCount)return;const n=new sd;!function(e,t,n){const o=n.createRangeIn(t),a=new kn({name:"img"}),r=[];for(const t of o)if(a.match(t.item)){const n=t.item,o=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];o.length&&o.every((t=>e.indexOf(t)>-1))?r.push(n):n.getAttribute("src")||r.push(n)}for(const e of r)n.remove(e)}(function(e,t){const n=t.createRangeIn(e),o=new kn({name:/v:(.+)/}),a=[];for(const e of n){if("elementStart"!=e.type)continue;const t=e.item,n=t.previousSibling&&t.previousSibling.name||null;o.match(t)&&t.getAttribute("o:gfxdata")&&"v:shapetype"!==n&&a.push(e.item.getAttribute("id"))}return a}(e,n),e,n),function(e,t){const n=t.createRangeIn(e),o=new kn({name:/v:(.+)/}),a=[];for(const e of n)"elementStart"==e.type&&o.match(e.item)&&a.push(e.item);for(const e of a)t.remove(e)}(e,n);const o=function(e,t){const n=t.createRangeIn(e),o=new kn({name:"img"}),a=[];for(const e of n)o.match(e.item)&&e.item.getAttribute("src").startsWith("file://")&&a.push(e.item);return a}(e,n);o.length&&function(e,t,n){if(e.length===t.length)for(let a=0;a<e.length;a++){const r=`data:${t[a].type};base64,${o=t[a].hex,btoa(o.match(/\w{2}/g).map((e=>String.fromCharCode(parseInt(e,16)))).join(""))}`;n.setAttribute("src",r,e[a])}var o}(o,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),o=e.match(n),a=[];if(o)for(const e of o){let n=!1;e.includes("\\pngblip")?n="image/png":e.includes("\\jpegblip")&&(n="image/jpeg"),n&&a.push({hex:e.replace(t,"").replace(/[^\da-fA-F]/g,""),type:n})}return a}(t),n)}(t,e.dataTransfer.getData("text/rtf")),e.content=t}}function kf(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((e,t)=>1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length)))}function xf(e,t,n,o,a=1){t>a?o.setAttribute(e,t,n):o.removeAttribute(e,n)}function Ef(e,t,n={}){const o=e.createElement("tableCell",n);return e.insertElement("paragraph",o),e.insert(o,t),o}function Sf(e,t){const n=t.parent.parent,o=parseInt(n.getAttribute("headingColumns")||0),{column:a}=e.getCellLocation(t);return!!o&&a<o}function Mf(e){return t=>{t.on("element:"+e,((e,t,n)=>{if(t.modelRange&&t.viewItem.isEmpty){const e=t.modelRange.start.nodeAfter,o=n.writer.createPositionAt(e,0);n.writer.insertElement("paragraph",o)}}),{priority:"low"})}}function Tf(e){let t=0,n=0;const o=Array.from(e.getChildren()).filter((e=>"th"===e.name||"td"===e.name));for(;n<o.length&&"th"===o[n].name;){const e=o[n];t+=parseInt(e.getAttribute("colspan")||1),n++}return t}class Cf{constructor(e,t={}){this._table=e,this._startRow=void 0!==t.row?t.row:t.startRow||0,this._endRow=void 0!==t.row?t.row:t.endRow,this._startColumn=void 0!==t.column?t.column:t.startColumn||0,this._endColumn=void 0!==t.column?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{const n=e.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const o=parseInt(n.getAttribute("colspan")||1),a=parseInt(n.getAttribute("rowspan")||1);(o>1||a>1)&&this._recordSpans(n,a,o),this._shouldSkipSlot()||(t=this._formatOutValue(n)),this._nextCellAtColumn=this._column+o}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e,t=this._row,n=this._column){return{done:!1,value:new Af(this,e,t,n)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,o=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||o}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,n){const o={cell:e,row:this._row,column:this._column};for(let e=this._row;e<this._row+t;e++)for(let t=this._column;t<this._column+n;t++)e==this._row&&t==this._column||this._markSpannedCell(e,t,o)}_markSpannedCell(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}class Af{constructor(e,t,n,o){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=n,this.cellAnchorColumn=o,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||1)}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||1)}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Df(e={}){return t=>t.on("insert:table",((t,n,o)=>{const a=n.item;if(!o.consumable.consume(a,"insert"))return;o.consumable.consume(a,"attribute:headingRows:table"),o.consumable.consume(a,"attribute:headingColumns:table");const r=e&&e.asWidget,i=o.writer.createContainerElement("figure",{class:"table"}),s=o.writer.createContainerElement("table");let l;var c,d;o.writer.insert(o.writer.createPositionAt(i,0),s),r&&(c=i,(d=o.writer).setCustomProperty("table",!0,c),l=Ld(c,d,{hasSelectionHandle:!0}));const u=new Cf(a),p={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},h=new Map;for(const t of u){const{row:n,cell:r}=t,i=a.getChild(n),l=h.get(n)||Of(s,i,n,p,o);h.set(n,l),o.consumable.consume(r,"insert"),If(t,p,o.writer.createPositionAt(l,"end"),o,e)}for(const e of a.getChildren()){const t=e.index;e.is("element","tableRow")&&!h.has(t)&&h.set(t,Of(s,e,t,p,o))}const m=o.mapper.toViewPosition(n.range.start);o.mapper.bindElements(a,r?l:i),o.writer.insert(m,r?l:i)}))}function Pf(e,t){const{writer:n}=t;if(e.parent.is("element","tableCell"))return Lf(e)?n.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):n.createContainerElement("p")}function Lf(e){return 1===e.parent.childCount&&!Yf(e)}function Nf(e,t,n){const{cell:o}=e,a=Rf(e,t),r=n.mapper.toViewElement(o);r&&r.name!==a&&function(e,t,n){const o=n.writer,a=n.mapper.toViewElement(e),r=Fd(o.createEditableElement(t,a.getAttributes()),o);o.insert(o.createPositionAfter(a),r),o.move(o.createRangeIn(a),o.createPositionAt(r,0)),o.remove(o.createRangeOn(a)),n.mapper.unbindViewElement(a),n.mapper.bindElements(e,r)}(o,a,n)}function If(e,t,n,o,a){const r=a&&a.asWidget,i=Rf(e,t),s=r?Fd(o.writer.createEditableElement(i),o.writer):o.writer.createContainerElement(i),l=e.cell,c=l.getChild(0),d=1===l.childCount&&"paragraph"===c.name;if(o.writer.insert(n,s),o.mapper.bindElements(l,s),!r&&d&&!Yf(c)){const e=l.getChild(0);o.consumable.consume(e,"insert"),o.mapper.bindElements(e,s)}}function Of(e,t,n,o,a){a.consumable.consume(t,"insert");const r=t.isEmpty?a.writer.createEmptyElement("tr"):a.writer.createContainerElement("tr");a.mapper.bindElements(t,r);const i=o.headingRows,s=function(e,t,n){return Ff(e,t)||function(e,t,n){const o=n.writer.createContainerElement(e),a=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(a,o),o}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,o),e,a),l=i>0&&n>=i?n-i:n,c=a.writer.createPositionAt(s,l);return a.writer.insert(c,r),r}function Rf(e,t){const{row:n,column:o}=e,{headingColumns:a,headingRows:r}=t;return r&&r>n||a&&a>o?"th":"td"}function Ff(e,t){for(const n of t.getChildren())if(n.name==e)return n}function jf(e,t,n){const o=Ff(e,t);o&&0===o.childCount&&n.writer.remove(n.writer.createRangeOn(o))}function Yf(e){return!![...e.getAttributeKeys()].length}class zf extends Be{refresh(){const e=this.editor.model,t=e.document.selection,n=e.schema;this.isEnabled=function(e,t){const n=e.getFirstPosition().parent,o=n===n.root?n:n.parent;return t.checkChild(o,"table")}(t,n)}execute(e={}){const t=this.editor.model,n=t.document.selection,o=this.editor.plugins.get("TableUtils"),a=this.editor.config.get("table"),r=jd(n,t),i=a.defaultHeadings.rows,s=a.defaultHeadings.columns;void 0===e.headingRows&&i&&(e.headingRows=i),void 0===e.headingColumns&&s&&(e.headingColumns=s),t.change((n=>{const a=o.createTable(n,e);t.insertContent(a,r),n.setSelection(n.createPositionAt(a.getNodeByPath([0,0,0]),0))}))}}function Bf(e){const t=[];for(const n of $f(e.getRanges())){const e=n.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}function Hf(e){const t=[];for(const n of e.getRanges()){const e=n.start.findAncestor("tableCell");e&&t.push(e)}return t}function Vf(e){const t=Bf(e);return t.length?t:Hf(e)}function Uf(e){return Gf(e.map((e=>e.parent.index)))}function Wf(e){const t=e[0].findAncestor("table");return Gf([...new Cf(t)].filter((t=>e.includes(t.cell))).map((e=>e.column)))}function qf(e,t){if(e.length<2||!function(e){const t=e[0].findAncestor("table");if(!Jf(Uf(e),parseInt(t.getAttribute("headingRows")||0)))return!1;const n=parseInt(t.getAttribute("headingColumns")||0);return Jf(Wf(e),n)}(e))return!1;const n=new Set,o=new Set;let a=0;for(const r of e){const{row:e,column:i}=t.getCellLocation(r),s=parseInt(r.getAttribute("rowspan")||1),l=parseInt(r.getAttribute("colspan")||1);n.add(e),o.add(i),s>1&&n.add(e+s-1),l>1&&o.add(i+l-1),a+=s*l}return function(e,t){const n=Array.from(e.values()),o=Array.from(t.values());return(Math.max(...n)-Math.min(...n)+1)*(Math.max(...o)-Math.min(...o)+1)}(n,o)==a}function $f(e){return Array.from(e).sort(Kf)}function Gf(e){const t=e.sort(((e,t)=>e-t));return{first:t[0],last:t[t.length-1]}}function Kf(e,t){const n=e.start,o=t.start;return n.isBefore(o)?-1:1}function Jf({first:e,last:t},n){return e<n==t<n}class Xf extends Be{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=!!Vf(this.editor.model.document.selection).length;this.isEnabled=e}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),o="above"===this.order,a=Vf(t),r=Uf(a),i=o?r.first:r.last,s=a[0].findAncestor("table");n.insertRows(s,{at:o?i:i+1,copyStructureFromAbove:!o})}}class Qf extends Be{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=!!Vf(this.editor.model.document.selection).length;this.isEnabled=e}execute(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),o="left"===this.order,a=Vf(t),r=Wf(a),i=o?r.first:r.last,s=a[0].findAncestor("table");n.insertColumns(s,{columns:1,at:o?i:i+1})}}class Zf extends Be{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const e=Vf(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){const e=Vf(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}function eg(e,t,n){const{startRow:o,startColumn:a,endRow:r,endColumn:i}=t,s=n.createElement("table"),l=r-o+1;for(let e=0;e<l;e++)n.insertElement("tableRow",s,"end");const c=[...new Cf(e,{startRow:o,endRow:r,startColumn:a,endColumn:i,includeAllSlots:!0})];for(const{row:e,column:t,cell:l,isAnchor:d,cellAnchorRow:u,cellAnchorColumn:p}of c){const c=e-o,h=s.getChild(c);if(d){const o=n.cloneElement(l);n.append(o,h),rg(o,e,t,r,i,n)}else(u<o||p<a)&&Ef(n,n.createPositionAt(h,"end"))}return function(e,t,n,o,a){const r=parseInt(t.getAttribute("headingRows")||0);r>0&&xf("headingRows",r-n,e,a,0);const i=parseInt(t.getAttribute("headingColumns")||0);i>0&&xf("headingColumns",i-o,e,a,0)}(s,e,o,a,n),s}function tg(e,t,n=0){const o=[],a=new Cf(e,{startRow:n,endRow:t-1});for(const e of a){const{row:n,cellHeight:a}=e;n<t&&t<=n+a-1&&o.push(e)}return o}function ng(e,t,n){const o=e.parent,a=o.parent,r=o.index,i=t-r,s={},l=parseInt(e.getAttribute("rowspan"))-i;l>1&&(s.rowspan=l);const c=parseInt(e.getAttribute("colspan")||1);c>1&&(s.colspan=c);const d=r+i,u=[...new Cf(a,{startRow:r,endRow:d,includeAllSlots:!0})];let p,h=null;for(const t of u){const{row:o,column:a,cell:r}=t;r===e&&void 0===p&&(p=a),void 0!==p&&p===a&&o===d&&(h=Ef(n,t.getPositionBefore(),s))}return xf("rowspan",i,e,n),h}function og(e,t){const n=[],o=new Cf(e);for(const e of o){const{column:o,cellWidth:a}=e;o<t&&t<=o+a-1&&n.push(e)}return n}function ag(e,t,n,o){const a=n-t,r={},i=parseInt(e.getAttribute("colspan"))-a;i>1&&(r.colspan=i);const s=parseInt(e.getAttribute("rowspan")||1);s>1&&(r.rowspan=s);const l=Ef(o,o.createPositionAfter(e),r);return xf("colspan",a,e,o),l}function rg(e,t,n,o,a,r){const i=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+i-1>a&&xf("colspan",a-n+1,e,r,1),t+s-1>o&&xf("rowspan",o-t+1,e,r,1)}function ig(e,t){const n=t.getColumns(e),o=new Array(n).fill(0);for(const{column:t}of new Cf(e))o[t]++;const a=o.reduce(((e,t,n)=>t?e:[...e,n]),[]);if(a.length>0){const n=a[a.length-1];return t.removeColumns(e,{at:n}),!0}return!1}function sg(e,t){const n=[],o=t.getRows(e);for(let t=0;t<o;t++)e.getChild(t).isEmpty&&n.push(t);if(n.length>0){const o=n[n.length-1];return t.removeRows(e,{at:o}),!0}return!1}function lg(e,t){ig(e,t)||sg(e,t)}function cg(e,t){const n=Array.from(new Cf(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every((({cellHeight:e})=>1===e)))return t.lastRow;const o=n[0].cellHeight-1;return t.lastRow+o}function dg(e,t){const n=Array.from(new Cf(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every((({cellWidth:e})=>1===e)))return t.lastColumn;const o=n[0].cellWidth-1;return t.lastColumn+o}class ug extends Be{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=Hf(e.document.selection)[0],n=this.value,o=this.direction;e.change((e=>{const a="right"==o||"down"==o,r=a?t:n,i=a?n:t,s=i.parent;!function(e,t,n){pg(e)||(pg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(i,r,e);const l=this.isHorizontal?"colspan":"rowspan",c=parseInt(t.getAttribute(l)||1),d=parseInt(n.getAttribute(l)||1);e.setAttribute(l,c+d,r),e.setSelection(e.createRangeIn(r));const u=this.editor.plugins.get("TableUtils");lg(s.findAncestor("table"),u)}))}_getMergeableCell(){const e=Hf(this.editor.model.document.selection)[0];if(!e)return;const t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){const o=e.parent.parent,a="right"==t?e.nextSibling:e.previousSibling,r=(o.getAttribute("headingColumns")||0)>0;if(!a)return;const i="right"==t?e:a,s="right"==t?a:e,{column:l}=n.getCellLocation(i),{column:c}=n.getCellLocation(s),d=parseInt(i.getAttribute("colspan")||1),u=Sf(n,i),p=Sf(n,s);return r&&u!=p?void 0:l+d===c?a:void 0}(e,this.direction,t):function(e,t,n){const o=e.parent,a=o.parent,r=a.getChildIndex(o);if("down"==t&&r===n.getRows(a)-1||"up"==t&&0===r)return;const i=parseInt(e.getAttribute("rowspan")||1),s=a.getAttribute("headingRows")||0;if(s&&("down"==t&&r+i===s||"up"==t&&r===s))return;const l=parseInt(e.getAttribute("rowspan")||1),c="down"==t?r+l:r,d=[...new Cf(a,{endRow:c})],u=d.find((t=>t.cell===e)).column,p=d.find((({row:e,cellHeight:n,column:o})=>o===u&&("down"==t?e===c:c===e+n)));return p&&p.cell}(e,this.direction,t);if(!n)return;const o=this.isHorizontal?"rowspan":"colspan",a=parseInt(e.getAttribute(o)||1);return parseInt(n.getAttribute(o)||1)===a?n:void 0}}function pg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}class hg extends Be{refresh(){const e=Vf(this.editor.model.document.selection),t=e[0];if(t){const n=t.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getRows(n)-1,a=Uf(e),r=0===a.first&&a.last===o;this.isEnabled=!r}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),n=Vf(e.document.selection),o=Uf(n),a=n[0],r=a.findAncestor("table"),i=t.getCellLocation(a).column;e.change((e=>{const n=o.last-o.first+1;t.removeRows(r,{at:o.first,rows:n});const a=function(e,t,n,o){const a=e.getChild(Math.min(t,o-1));let r=a.getChild(0),i=0;for(const e of a.getChildren()){if(i>n)return r;r=e,i+=parseInt(e.getAttribute("colspan")||1)}return r}(r,o.first,i,t.getRows(r));e.setSelection(e.createPositionAt(a,0))}))}}class mg extends Be{refresh(){const e=Vf(this.editor.model.document.selection),t=e[0];if(t){const n=t.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getColumns(n),{first:a,last:r}=Wf(e);this.isEnabled=r-a<o-1}else this.isEnabled=!1}execute(){const[e,t]=function(e){const t=Vf(e),n=t[0],o=t.pop(),a=[n,o];return n.isBefore(o)?a:a.reverse()}(this.editor.model.document.selection),n=e.parent.parent,o=[...new Cf(n)],a={first:o.find((t=>t.cell===e)).column,last:o.find((e=>e.cell===t)).column},r=function(e,t,n,o){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:o.first?e.reverse().find((({column:e})=>e<o.first)).cell:e.reverse().find((({column:e})=>e>o.last)).cell}(o,e,t,a);this.editor.model.change((e=>{const t=a.last-a.first+1;this.editor.plugins.get("TableUtils").removeColumns(n,{at:a.first,columns:t}),e.setSelection(e.createPositionAt(r,0))}))}}class fg extends Be{refresh(){const e=Vf(this.editor.model.document.selection),t=e.length>0;this.isEnabled=t,this.value=t&&e.every((e=>this._isInHeading(e,e.parent.parent)))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.model,n=Vf(t.document.selection),o=n[0].findAncestor("table"),{first:a,last:r}=Uf(n),i=this.value?a:r+1,s=o.getAttribute("headingRows")||0;t.change((e=>{if(i){const t=tg(o,i,i>s?s:0);for(const{cell:n}of t)ng(n,i,e)}xf("headingRows",i,o,e,0)}))}_isInHeading(e,t){const n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}class gg extends Be{refresh(){const e=Vf(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((e=>Sf(t,e)))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.model,n=Vf(t.document.selection),o=n[0].findAncestor("table"),{first:a,last:r}=Wf(n),i=this.value?a:r+1;t.change((e=>{if(i){const t=og(o,i);for(const{cell:n,column:o}of t)ag(n,o,i,e)}xf("headingColumns",i,o,e,0)}))}}class vg extends Ye{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,n=t.parent,o=n.getChildIndex(t),a=new Cf(n,{row:o});for(const{cell:t,row:n,column:o}of a)if(t===e)return{row:n,column:o}}createTable(e,t){const n=e.createElement("table"),o=parseInt(t.rows)||2,a=parseInt(t.columns)||2;return _g(e,n,0,o,a),t.headingRows&&xf("headingRows",Math.min(t.headingRows,o),n,e,0),t.headingColumns&&xf("headingColumns",Math.min(t.headingColumns,a),n,e,0),n}insertRows(e,t={}){const n=this.editor.model,o=t.at||0,a=t.rows||1,r=void 0!==t.copyStructureFromAbove,i=t.copyStructureFromAbove?o-1:o,l=this.getRows(e),c=this.getColumns(e);if(o>l)throw new s.a("tableutils-insertrows-insert-out-of-range",this,{options:t});n.change((t=>{const n=e.getAttribute("headingRows")||0;if(n>o&&xf("headingRows",n+a,e,t,0),!r&&(0===o||o===l))return void _g(t,e,o,a,c);const s=r?Math.max(o,i):o,d=new Cf(e,{endRow:s}),u=new Array(c).fill(1);for(const{row:e,column:n,cellHeight:s,cellWidth:l,cell:c}of d){const d=e+s-1,p=e<=i&&i<=d;e<o&&o<=d?(t.setAttribute("rowspan",s+a,c),u[n]=-l):r&&p&&(u[n]=l)}for(let n=0;n<a;n++){const n=t.createElement("tableRow");t.insert(n,e,o);for(let e=0;e<u.length;e++){const o=u[e],a=t.createPositionAt(n,"end");o>0&&Ef(t,a,o>1?{colspan:o}:null),e+=Math.abs(o)-1}}}))}insertColumns(e,t={}){const n=this.editor.model,o=t.at||0,a=t.columns||1;n.change((t=>{const n=e.getAttribute("headingColumns");o<n&&t.setAttribute("headingColumns",n+a,e);const r=this.getColumns(e);if(0===o||r===o){for(const n of e.getChildren())n.is("element","tableRow")&&bg(a,t,t.createPositionAt(n,o?"end":0));return}const i=new Cf(e,{column:o,includeAllSlots:!0});for(const e of i){const{row:n,cell:r,cellAnchorColumn:s,cellAnchorRow:l,cellWidth:c,cellHeight:d}=e;if(s<o){t.setAttribute("colspan",c+a,r);const e=l+d-1;for(let t=n;t<=e;t++)i.skipRow(t)}else bg(a,t,e.getPositionBefore())}}))}removeRows(e,t){const n=this.editor.model,o=t.rows||1,a=this.getRows(e),r=t.at,i=r+o-1;if(i>a-1)throw new s.a("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});n.change((t=>{const{cellsToMove:n,cellsToTrim:o}=function(e,t,n){const o=new Map,a=[];for(const{row:r,column:i,cellHeight:s,cell:l}of new Cf(e,{endRow:n})){const e=r+s-1;if(r>=t&&r<=n&&e>n){const e=s-(n-r+1);o.set(i,{cell:l,rowspan:e})}if(r<t&&e>=t){let o;o=e>=n?n-t+1:e-t+1,a.push({cell:l,rowspan:s-o})}}return{cellsToMove:o,cellsToTrim:a}}(e,r,i);n.size&&function(e,t,n,o){const a=[...new Cf(e,{includeAllSlots:!0,row:t})],r=e.getChild(t);let i;for(const{column:e,cell:t,isAnchor:s}of a)if(n.has(e)){const{cell:t,rowspan:a}=n.get(e),s=i?o.createPositionAfter(i):o.createPositionAt(r,0);o.move(o.createRangeOn(t),s),xf("rowspan",a,t,o),i=t}else s&&(i=t)}(e,i+1,n,t);for(let n=i;n>=r;n--)t.remove(e.getChild(n));for(const{rowspan:e,cell:n}of o)xf("rowspan",e,n,t);!function(e,t,n,o){const a=e.getAttribute("headingRows")||0;t<a&&xf("headingRows",n<a?a-(n-t+1):t,e,o,0)}(e,r,i,t),ig(e,this)||sg(e,this)}))}removeColumns(e,t){const n=this.editor.model,o=t.at,a=t.columns||1,r=t.at+a-1;n.change((t=>{!function(e,t,n){const o=e.getAttribute("headingColumns")||0;if(o&&t.first<o){const a=Math.min(o-1,t.last)-t.first+1;n.setAttribute("headingColumns",o-a,e)}}(e,{first:o,last:r},t);for(let n=r;n>=o;n--)for(const{cell:o,column:a,cellWidth:r}of[...new Cf(e)])a<=n&&r>1&&a+r>n?xf("colspan",r-1,o,t):a===n&&t.remove(o);sg(e,this)||ig(e,this)}))}splitCellVertically(e,t=2){const n=this.editor.model,o=e.parent.parent,a=parseInt(e.getAttribute("rowspan")||1),r=parseInt(e.getAttribute("colspan")||1);n.change((n=>{if(r>1){const{newCellsSpan:o,updatedSpan:i}=yg(r,t);xf("colspan",i,e,n);const s={};o>1&&(s.colspan=o),a>1&&(s.rowspan=a),bg(r>t?t-1:r-1,n,n.createPositionAfter(e),s)}if(r<t){const i=t-r,s=[...new Cf(o)],{column:l}=s.find((({cell:t})=>t===e)),c=s.filter((({cell:t,cellWidth:n,column:o})=>t!==e&&o===l||o<l&&o+n>l));for(const{cell:e,cellWidth:t}of c)n.setAttribute("colspan",t+i,e);const d={};a>1&&(d.rowspan=a),bg(i,n,n.createPositionAfter(e),d);const u=o.getAttribute("headingColumns")||0;u>l&&xf("headingColumns",u+i,o,n)}}))}splitCellHorizontally(e,t=2){const n=this.editor.model,o=e.parent,a=o.parent,r=a.getChildIndex(o),i=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((n=>{if(i>1){const o=[...new Cf(a,{startRow:r,endRow:r+i-1,includeAllSlots:!0})],{newCellsSpan:l,updatedSpan:c}=yg(i,t);xf("rowspan",c,e,n);const{column:d}=o.find((({cell:t})=>t===e)),u={};l>1&&(u.rowspan=l),s>1&&(u.colspan=s);for(const e of o){const{column:t,row:o}=e;o>=r+c&&t===d&&(o+r+c)%l==0&&bg(1,n,e.getPositionBefore(),u)}}if(i<t){const o=t-i,l=[...new Cf(a,{startRow:0,endRow:r})];for(const{cell:t,cellHeight:a,row:i}of l)if(t!==e&&i+a>r){const e=a+o;n.setAttribute("rowspan",e,t)}const c={};s>1&&(c.colspan=s),_g(n,a,r+1,o,1,c);const d=a.getAttribute("headingRows")||0;d>r&&xf("headingRows",d+o,a,n)}}))}getColumns(e){return[...e.getChild(0).getChildren()].reduce(((e,t)=>e+parseInt(t.getAttribute("colspan")||1)),0)}getRows(e){return Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0)}}function _g(e,t,n,o,a,r={}){for(let i=0;i<o;i++){const o=e.createElement("tableRow");e.insert(o,t,n),bg(a,e,e.createPositionAt(o,"end"),r)}}function bg(e,t,n,o={}){for(let a=0;a<e;a++)Ef(t,n,o)}function yg(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}class wg extends Be{refresh(){const e=Bf(this.editor.model.document.selection);this.isEnabled=qf(e,this.editor.plugins.get(vg))}execute(){const e=this.editor.model,t=this.editor.plugins.get(vg);e.change((n=>{const o=Bf(e.document.selection),a=o.shift(),{mergeWidth:r,mergeHeight:i}=function(e,t,n){let o=0,a=0;for(const e of t){const{row:t,column:r}=n.getCellLocation(e);o=Eg(e,r,o,"colspan"),a=Eg(e,t,a,"rowspan")}const{row:r,column:i}=n.getCellLocation(e);return{mergeWidth:o-i,mergeHeight:a-r}}(a,o,t);xf("colspan",r,a,n),xf("rowspan",i,a,n);for(const e of o)kg(e,a,n);lg(a.findAncestor("table"),t),n.setSelection(a,"in")}))}}function kg(e,t,n){xg(e)||(xg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function xg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function Eg(e,t,n,o){const a=parseInt(e.getAttribute(o)||1);return Math.max(n,t+a)}class Sg extends Be{constructor(e){super(e),this.affectsData=!1}refresh(){const e=Vf(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=Vf(e.document.selection),n=Uf(t),o=t[0].findAncestor("table"),a=[];for(let t=n.first;t<=n.last;t++)for(const n of o.getChild(t).getChildren())a.push(e.createRangeOn(n));e.change((e=>{e.setSelection(a)}))}}class Mg extends Be{constructor(e){super(e),this.affectsData=!1}refresh(){const e=Vf(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=Vf(e.document.selection),n=t[0],o=t.pop(),a=n.findAncestor("table"),r=this.editor.plugins.get("TableUtils"),i=r.getCellLocation(n),s=r.getCellLocation(o),l=Math.min(i.column,s.column),c=Math.max(i.column,s.column),d=[];for(const t of new Cf(a,{startColumn:l,endColumn:c}))d.push(e.createRangeOn(t.cell));e.change((e=>{e.setSelection(d)}))}}function Tg(e,t){let n=!1;const o=function(e){const t=parseInt(e.getAttribute("headingRows")||0),n=Array.from(e.getChildren()).reduce(((e,t)=>t.is("element","tableRow")?e+1:e),0),o=[];for(const{row:a,cell:r,cellHeight:i}of new Cf(e)){if(i<2)continue;const e=a<t?t:n;if(a+i>e){const t=e-a;o.push({cell:r,rowspan:t})}}return o}(e);if(o.length){n=!0;for(const e of o)xf("rowspan",e.rowspan,e.cell,t,1)}return n}function Cg(e,t){let n=!1;const o=function(e){const t=new Array(e.childCount).fill(0);for(const{rowIndex:n}of new Cf(e,{includeAllSlots:!0}))t[n]++;return t}(e),a=[];for(const[t,n]of o.entries())!n&&e.getChild(t).is("element","tableRow")&&a.push(t);if(a.length){n=!0;for(const n of a.reverse())t.remove(e.getChild(n)),o.splice(n,1)}const r=o.filter(((t,n)=>e.getChild(n).is("element","tableRow"))),i=r[0];if(!r.every((e=>e===i))){const o=r.reduce(((e,t)=>t>e?t:e),0);for(const[a,i]of r.entries()){const r=o-i;if(r){for(let n=0;n<r;n++)Ef(t,t.createPositionAt(e.getChild(a),"end"));n=!0}}}return n}function Ag(e){const t="attribute"===e.type,n=e.attributeKey;return t&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function Dg(e,t){let n=!1;for(const o of e.getChildren())o.is("element","tableRow")&&(n=Pg(o,t)||n);return n}function Pg(e,t){let n=!1;for(const o of e.getChildren())n=Lg(o,t)||n;return n}function Lg(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;const n=Array.from(e.getChildren()).filter((e=>e.is("$text")));for(const e of n)t.wrap(t.createRangeOn(e),"paragraph");return!!n.length}function Ng(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function Ig(e,t){if(!e.is("element","paragraph"))return!1;const n=t.toViewElement(e);return!!n&&Lf(e)!==n.is("element","span")}n(102);class Og extends Ye{static get pluginName(){return"TableEditing"}init(){const e=this.editor,t=e.model,n=t.schema,o=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowChildren:"$block",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),o.for("upcast").add((e=>{e.on("element:figure",((e,t,n)=>{if(!n.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const o=function(e){for(const t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!o||!n.consumable.test(o,{name:!0}))return;n.consumable.consume(t.viewItem,{name:!0,classes:"table"});const a=Pr(n.convertItem(o,t.modelCursor).modelRange.getItems());a?(n.convertChildren(t.viewItem,n.writer.createPositionAt(a,"end")),n.updateConversionResult(a,t)):n.consumable.revert(t.viewItem,{name:!0,classes:"table"})}))})),o.for("upcast").add((e=>{e.on("element:table",((e,t,n)=>{const o=t.viewItem;if(!n.consumable.test(o,{name:!0}))return;const{rows:a,headingRows:r,headingColumns:i}=function(e){const t={headingRows:0,headingColumns:0},n=[],o=[];let a;for(const r of Array.from(e.getChildren()))if("tbody"===r.name||"thead"===r.name||"tfoot"===r.name){"thead"!==r.name||a||(a=r);const e=Array.from(r.getChildren()).filter((e=>e.is("element","tr")));for(const r of e)if("thead"===r.parent.name&&r.parent===a)t.headingRows++,n.push(r);else{o.push(r);const e=Tf(r);e>t.headingColumns&&(t.headingColumns=e)}}return t.rows=[...n,...o],t}(o),s={};i&&(s.headingColumns=i),r&&(s.headingRows=r);const l=n.writer.createElement("table",s);if(n.safeInsert(l,t.modelCursor)){if(n.consumable.consume(o,{name:!0}),a.forEach((e=>n.convertItem(e,n.writer.createPositionAt(l,"end")))),n.convertChildren(o,n.writer.createPositionAt(l,"end")),l.isEmpty){const e=n.writer.createElement("tableRow");n.writer.insert(e,n.writer.createPositionAt(l,"end")),Ef(n.writer,n.writer.createPositionAt(e,"end"))}n.updateConversionResult(l,t)}}))})),o.for("editingDowncast").add(Df({asWidget:!0})),o.for("dataDowncast").add(Df()),o.for("upcast").elementToElement({model:"tableRow",view:"tr"}),o.for("upcast").add((e=>{e.on("element:tr",((e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),o.for("editingDowncast").add((e=>e.on("insert:tableRow",((e,t,n)=>{const o=t.item;if(!n.consumable.consume(o,"insert"))return;const a=o.parent,r=function(e){for(const t of e.getChildren())if("table"===t.name)return t}(n.mapper.toViewElement(a)),i=a.getChildIndex(o),s=new Cf(a,{row:i}),l={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},c=new Map;for(const e of s){const t=c.get(i)||Of(r,o,i,l,n);c.set(i,t),n.consumable.consume(e.cell,"insert"),If(e,l,n.writer.createPositionAt(t,"end"),n,{asWidget:!0})}})))),o.for("editingDowncast").add((e=>e.on("remove:tableRow",((e,t,n)=>{e.stop();const o=n.writer,a=n.mapper,r=a.toViewPosition(t.position).getLastMatchingPosition((e=>!e.item.is("element","tr"))).nodeAfter,i=r.parent.parent,s=o.createRangeOn(r),l=o.remove(s);for(const e of o.createRangeIn(l).getItems())a.unbindViewElement(e);jf("thead",i,n),jf("tbody",i,n)}),{priority:"higher"}))),o.for("upcast").elementToElement({model:"tableCell",view:"td"}),o.for("upcast").elementToElement({model:"tableCell",view:"th"}),o.for("upcast").add(Mf("td")),o.for("upcast").add(Mf("th")),o.for("editingDowncast").add((e=>e.on("insert:tableCell",((e,t,n)=>{const o=t.item;if(!n.consumable.consume(o,"insert"))return;const a=o.parent,r=a.parent,i=r.getChildIndex(a),s=new Cf(r,{row:i}),l={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0};for(const e of s)if(e.cell===o){const t=n.mapper.toViewElement(a);return void If(e,l,n.writer.createPositionAt(t,a.getChildIndex(o)),n,{asWidget:!0})}})))),o.for("editingDowncast").elementToElement({model:"paragraph",view:Pf,converterPriority:"high"}),o.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),o.for("upcast").attributeToAttribute({model:{key:"colspan",value:Rg("colspan")},view:"colspan"}),o.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),o.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Rg("rowspan")},view:"rowspan"}),o.for("editingDowncast").add((e=>e.on("attribute:headingColumns:table",((e,t,n)=>{const o=t.item;if(!n.consumable.consume(t.item,e.name))return;const a={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},r=t.attributeOldValue,i=t.attributeNewValue,s=(r>i?r:i)-1;for(const e of new Cf(o,{endColumn:s}))Nf(e,a,n)})))),e.data.mapper.on("modelToViewPosition",((e,t)=>{const n=t.modelPosition.parent,o=t.modelPosition.nodeBefore;if(!n.is("element","tableCell"))return;if(!o||!o.is("element","paragraph"))return;const a=t.mapper.toViewElement(o),r=t.mapper.toViewElement(n);a===r&&(t.viewPosition=t.mapper.findPositionIn(r,o.maxOffset))})),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new zf(e)),e.commands.add("insertTableRowAbove",new Xf(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Xf(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new Qf(e,{order:"left"})),e.commands.add("insertTableColumnRight",new Qf(e,{order:"right"})),e.commands.add("removeTableRow",new hg(e)),e.commands.add("removeTableColumn",new mg(e)),e.commands.add("splitTableCellVertically",new Zf(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new Zf(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new wg(e)),e.commands.add("mergeTableCellRight",new ug(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new ug(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new ug(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new ug(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new gg(e)),e.commands.add("setTableRowHeader",new fg(e)),e.commands.add("selectTableRow",new Sg(e)),e.commands.add("selectTableColumn",new Mg(e)),function(e){e.document.registerPostFixer((()=>function(e){const t=e.document.differ,n=new Set;for(const e of t.getChanges())if("attribute"===e.type){const t=e.range.start.nodeAfter;t&&t.is("element","table")&&"headingRows"===e.attributeKey&&n.add(t)}else if("insert"===e.type||"remove"===e.type)if("tableRow"===e.name){const t=e.position.findAncestor("table"),o=t.getAttribute("headingRows")||0;e.position.offset<o&&n.add(t)}else if("tableCell"===e.name){const t=e.position.findAncestor("table"),o=t.getAttribute("headingColumns")||0;e.position.offset<o&&n.add(t)}if(n.size){for(const e of n.values())t.refreshItem(e);return!0}return!1}(e)))}(t),function(e){e.document.registerPostFixer((t=>function(e,t){const n=t.document.differ.getChanges();let o=!1;const a=new Set;for(const t of n){let n;"table"==t.name&&"insert"==t.type&&(n=t.position.nodeAfter),"tableRow"!=t.name&&"tableCell"!=t.name||(n=t.position.findAncestor("table")),Ag(t)&&(n=t.range.start.findAncestor("table")),n&&!a.has(n)&&(o=Tg(n,e)||o,o=Cg(n,e)||o,a.add(n))}return o}(t,e)))}(t),function(e,t){e.document.registerPostFixer((()=>function(e,t){const n=new Set;for(const t of e.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","tableCell")&&n.add(e)}for(const o of n.values())for(const n of[...o.getChildren()].filter((e=>Ig(e,t))))e.refreshItem(n);return!1}(e.document.differ,t)))}(t,e.editing.mapper),function(e){e.document.registerPostFixer((t=>function(e,t){const n=t.document.differ.getChanges();let o=!1;for(const t of n)"insert"==t.type&&"table"==t.name&&(o=Dg(t.position.nodeAfter,e)||o),"insert"==t.type&&"tableRow"==t.name&&(o=Pg(t.position.nodeAfter,e)||o),"insert"==t.type&&"tableCell"==t.name&&(o=Lg(t.position.nodeAfter,e)||o),Ng(t)&&(o=Lg(t.position.parent,e)||o);return o}(t,e)))}(t)}static get requires(){return[vg]}}function Rg(e){return t=>{const n=parseInt(t.getAttribute(e));return Number.isNaN(n)||n<=0?null:n}}n(104);class Fg extends Al{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((e,t)=>`${t} × ${e}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:t.to("label")}]}],on:{mousedown:t.to((e=>{e.preventDefault()})),click:t.to((()=>{this.fire("execute")}))}}),this.on("boxover",((e,t)=>{const{row:n,column:o}=t.target.dataset;this.set({rows:parseInt(n),columns:parseInt(o)})})),this.on("change:columns",(()=>{this._highlightGridBoxes()})),this.on("change:rows",(()=>{this._highlightGridBoxes()}))}focus(){}focusLast(){}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map(((n,o)=>{const a=Math.floor(o/10)<e&&o%10<t;n.set("isOn",a)}))}_createGridCollection(){const e=[];for(let t=0;t<100;t++){const n=Math.floor(t/10),o=t%10;e.push(new jg(this.locale,n+1,o+1))}return this.createCollection(e)}}class jg extends Al{constructor(e,t,n){super(e);const o=this.bindTemplate;this.set("isOn",!1),this.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",o.if("isOn","ck-on")],"data-row":t,"data-column":n}})}}class Yg extends Ye{static get pluginName(){return"TableUI"}init(){const e=this.editor,t=this.editor.t,n="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",(n=>{const o=e.commands.get("insertTable"),a=yc(n);let r;return a.bind("isEnabled").to(o),a.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:t("Insert table"),tooltip:!0}),a.on("change:isOpen",(()=>{r||(r=new Fg(n),a.panelView.children.add(r),r.delegate("execute").to(a),a.buttonView.on("open",(()=>{r.rows=0,r.columns=0})),a.on("execute",(()=>{e.execute("insertTable",{rows:r.rows,columns:r.columns}),e.editing.view.focus()})))})),a})),e.ui.componentFactory.add("tableColumn",(e=>{const o=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',o,e)})),e.ui.componentFactory.add("tableRow",(e=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,e)})),e.ui.componentFactory.add("mergeTableCells",(e=>{const o=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',o,e)}))}_prepareDropdown(e,t,n,o){const a=this.editor,r=yc(o),i=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:e,icon:t,tooltip:!0}),r.bind("isEnabled").toMany(i,"isEnabled",((...e)=>e.some((e=>e)))),this.listenTo(r,"execute",(e=>{a.execute(e.source.commandName),a.editing.view.focus()})),r}_prepareMergeSplitButtonDropdown(e,t,n,o){const a=this.editor,r=yc(o,ac),i=a.commands.get("mergeTableCells"),s=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([i,...s],"isEnabled",((...e)=>e.some((e=>e)))),this.listenTo(r.buttonView,"execute",(()=>{a.execute("mergeTableCells"),a.editing.view.focus()})),this.listenTo(r,"execute",(e=>{a.execute(e.source.commandName),a.editing.view.focus()})),r}_fillDropdownWithListOptions(e,t){const n=this.editor,o=[],a=new ln;for(const e of t)zg(e,n,o,a);return kc(e,a,n.ui.componentFactory),o}}function zg(e,t,n,o){const a=e.model=new Lc(e.model),{commandName:r,bindIsOn:i}=e.model;if("button"===e.type||"switchbutton"===e.type){const e=t.commands.get(r);n.push(e),a.set({commandName:r}),a.bind("isEnabled").to(e),i&&a.bind("isOn").to(e,"value")}a.set({withText:!0}),o.add(e)}n(106);class Bg extends Ye{static get pluginName(){return"TableSelection"}static get requires(){return[vg]}init(){const e=this.editor.model;this.listenTo(e,"deleteContent",((e,t)=>this._handleDeleteContent(e,t)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=Bf(this.editor.model.document.selection);return 0==e.length?null:e}getSelectionAsFragment(){const e=this.getSelectedTableCells();return e?this.editor.model.change((t=>{const n=t.createDocumentFragment(),o=this.editor.plugins.get("TableUtils"),{first:a,last:r}=Wf(e),{first:i,last:s}=Uf(e),l=e[0].findAncestor("table");let c=s,d=r;if(qf(e,o)){const e={firstColumn:a,lastColumn:r,firstRow:i,lastRow:s};c=cg(l,e),d=dg(l,e)}const u=eg(l,{startRow:i,startColumn:a,endRow:c,endColumn:d},t);return t.insert(u,n,0),n})):null}setCellSelection(e,t){const n=this._getCellsToSelect(e,t);this.editor.model.change((e=>{e.setSelection(n.cells.map((t=>e.createRangeOn(t))),{backward:n.backward})}))}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=Pr(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add((e=>e.on("selection",((e,n,o)=>{const a=o.writer;!function(e){for(const n of t)e.removeClass("ck-editor__editable_selected",n);t.clear()}(a);const r=this.getSelectedTableCells();if(!r)return;for(const e of r){const n=o.mapper.toViewElement(e);a.addClass("ck-editor__editable_selected",n),t.add(n)}const i=o.mapper.toViewElement(r[r.length-1]);a.setSelection(i,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change((n=>{const o=n.createPositionAt(t[0],0),a=e.model.schema.getNearestSelectionRange(o);n.setSelection(a)}))}}))}_handleDeleteContent(e,t){const[n,o]=t,a=this.editor.model,r=!o||"backward"==o.direction,i=Bf(n);i.length&&(e.stop(),a.change((e=>{const t=i[r?i.length-1:0];a.change((e=>{for(const t of i)a.deleteContent(e.createSelection(t,"in"))}));const o=a.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(o):n.setTo(o)})))}_getCellsToSelect(e,t){const n=this.editor.plugins.get("TableUtils"),o=n.getCellLocation(e),a=n.getCellLocation(t),r=Math.min(o.row,a.row),i=Math.max(o.row,a.row),s=Math.min(o.column,a.column),l=Math.max(o.column,a.column),c=new Array(i-r+1).fill(null).map((()=>[])),d={startRow:r,endRow:i,startColumn:s,endColumn:l};for(const{row:t,cell:n}of new Cf(e.findAncestor("table"),d))c[t-r].push(n);const u=a.row<o.row,p=a.column<o.column;return u&&c.reverse(),p&&c.forEach((e=>e.reverse())),{cells:c.flat(),backward:u||p}}}class Hg extends Ye{static get pluginName(){return"TableClipboard"}static get requires(){return[Bg,vg]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",((e,t)=>this._onCopyCut(e,t))),this.listenTo(t,"cut",((e,t)=>this._onCopyCut(e,t))),this.listenTo(e.model,"insertContent",((e,t)=>this._onInsertContent(e,...t)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const n=this.editor.plugins.get(Bg);if(!n.getSelectedTableCells())return;if("cut"==e.name&&this.editor.isReadOnly)return;t.preventDefault(),e.stop();const o=this.editor.data,a=this.editor.editing.view.document,r=o.toView(n.getSelectionAsFragment());a.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:r,method:e.name})}_onInsertContent(e,t,n){if(n&&!n.is("documentSelection"))return;const o=this.editor.model,a=this.editor.plugins.get(vg);let r=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);const n=t.createRangeIn(e);for(const e of n.getItems())if(e.is("element","table")){const o=t.createRange(n.start,t.createPositionBefore(e));if(t.hasContent(o,{ignoreWhitespaces:!0}))return null;const a=t.createRange(t.createPositionAfter(e),n.end);return t.hasContent(a,{ignoreWhitespaces:!0})?null:e}return null}(t,o);if(!r)return;const i=Vf(o.document.selection);i.length?(e.stop(),o.change((e=>{const t={width:a.getColumns(r),height:a.getRows(r)},n=function(e,t,n,o){const a=e[0].findAncestor("table"),r=Wf(e),i=Uf(e),s={firstColumn:r.first,lastColumn:r.last,firstRow:i.first,lastRow:i.last},l=1===e.length;return l&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,o){const a=o.getColumns(e),r=o.getRows(e);n>a&&o.insertColumns(e,{at:a,columns:n-a}),t>r&&o.insertRows(e,{at:r,rows:t-r})}(a,s.lastRow+1,s.lastColumn+1,o)),l||!qf(e,o)?function(e,t,n){const{firstRow:o,lastRow:a,firstColumn:r,lastColumn:i}=t,s={first:o,last:a},l={first:r,last:i};Ug(e,r,s,n),Ug(e,i+1,s,n),Vg(e,o,l,n),Vg(e,a+1,l,n,o)}(a,s,n):(s.lastRow=cg(a,s),s.lastColumn=dg(a,s)),s}(i,t,e,a),o=n.lastRow-n.firstRow+1,s=n.lastColumn-n.firstColumn+1,l={startRow:0,startColumn:0,endRow:Math.min(o,t.height)-1,endColumn:Math.min(s,t.width)-1};r=eg(r,l,e);const c=i[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(r,t,c,n,e);if(this.editor.plugins.get("TableSelection").isEnabled){const t=$f(d.map((t=>e.createRangeOn(t))));e.setSelection(t)}else e.setSelection(d[0],0)}))):lg(r,a)}_replaceSelectedCellsWithPasted(e,t,n,o,a){const{width:r,height:i}=t,s=function(e,t,n){const o=new Array(n).fill(null).map((()=>new Array(t).fill(null)));for(const{column:t,row:n,cell:a}of new Cf(e))o[n][t]=a;return o}(e,r,i),l=[...new Cf(n,{startRow:o.firstRow,endRow:o.lastRow,startColumn:o.firstColumn,endColumn:o.lastColumn,includeAllSlots:!0})],c=[];let d;for(const e of l){const{row:t,column:n}=e;n===o.firstColumn&&(d=e.getPositionBefore());const l=t-o.firstRow,u=n-o.firstColumn,p=s[l%i][u%r],h=p?a.cloneElement(p):null,m=this._replaceTableSlotCell(e,h,d,a);m&&(rg(m,t,n,o.lastRow,o.lastColumn,a),c.push(m),d=a.createPositionAfter(m))}const u=parseInt(n.getAttribute("headingRows")||0),p=parseInt(n.getAttribute("headingColumns")||0),h=o.firstRow<u&&u<=o.lastRow,m=o.firstColumn<p&&p<=o.lastColumn;if(h){const e=Vg(n,u,{first:o.firstColumn,last:o.lastColumn},a,o.firstRow);c.push(...e)}if(m){const e=Ug(n,p,{first:o.firstRow,last:o.lastRow},a);c.push(...e)}return c}_replaceTableSlotCell(e,t,n,o){const{cell:a,isAnchor:r}=e;return r&&o.remove(a),t?(o.insert(t,n),t):null}}function Vg(e,t,n,o,a=0){if(!(t<1))return tg(e,t,a).filter((({column:e,cellWidth:t})=>Wg(e,t,n))).map((({cell:e})=>ng(e,t,o)))}function Ug(e,t,n,o){if(!(t<1))return og(e,t).filter((({row:e,cellHeight:t})=>Wg(e,t,n))).map((({cell:e,column:n})=>ag(e,n,t,o)))}function Wg(e,t,n){const o=e+t-1,{first:a,last:r}=n;return e>=a&&e<=r||e<a&&o>=a}class qg extends Ye{static get pluginName(){return"TableKeyboard"}static get requires(){return[Bg]}init(){const e=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",((...e)=>this._handleTabOnSelectedTable(...e)),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(e,"arrowKey",((...e)=>this._onArrowKey(...e)),{context:"table"})}_handleTabOnSelectedTable(e,t){const n=this.editor,o=n.model.document.selection.getSelectedElement();o&&o.is("element","table")&&(t(),n.model.change((e=>{e.setSelection(e.createRangeIn(o.getChild(0).getChild(0)))})))}_getTabHandler(e){const t=this.editor;return(n,o)=>{let a=Hf(t.model.document.selection)[0];if(a||(a=this.editor.plugins.get("TableSelection").getFocusCell()),!a)return;o();const r=a.parent,i=r.parent,s=i.getChildIndex(r),l=r.getChildIndex(a),c=0===l;if(!e&&c&&0===s)return void t.model.change((e=>{e.setSelection(e.createRangeOn(i))}));const d=this.editor.plugins.get("TableUtils"),u=l===r.childCount-1,p=s===d.getRows(i)-1;if(e&&p&&u&&(t.execute("insertTableRowBelow"),s===d.getRows(i)-1))return void t.model.change((e=>{e.setSelection(e.createRangeOn(i))}));let h;if(e&&u){const e=i.getChild(s+1);h=e.getChild(0)}else if(!e&&c){const e=i.getChild(s-1);h=e.getChild(e.childCount-1)}else h=r.getChild(l+(e?1:-1));t.model.change((e=>{e.setSelection(e.createRangeIn(h))}))}}_onArrowKey(e,t){const n=this.editor,o=Vo(t.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(o,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const n=this.editor.model,o=n.document.selection,a=["right","down"].includes(e),r=Bf(o);if(r.length){let n;return n=t?this.editor.plugins.get("TableSelection").getFocusCell():a?r[r.length-1]:r[0],this._navigateFromCellInDirection(n,e,t),!0}const i=o.focus.findAncestor("tableCell");if(!i)return!1;if(!o.isCollapsed)if(t){if(o.isBackward==a&&!o.containsEntireContent(i))return!1}else{const e=o.getSelectedElement();if(!e||!n.schema.isObject(e))return!1}return!!this._isSelectionAtCellEdge(o,i,a)&&(this._navigateFromCellInDirection(i,e,t),!0)}_isSelectionAtCellEdge(e,t,n){const o=this.editor.model,a=this.editor.model.schema,r=n?e.getLastPosition():e.getFirstPosition();if(!a.getLimitElement(r).is("element","tableCell"))return o.createPositionAt(t,n?"end":0).isTouching(r);const i=o.createSelection(r);return o.modifySelection(i,{direction:n?"forward":"backward"}),r.isEqual(i.focus)}_navigateFromCellInDirection(e,t,n=!1){const o=this.editor.model,a=e.findAncestor("table"),r=[...new Cf(a,{includeAllSlots:!0})],{row:i,column:s}=r[r.length-1],l=r.find((({cell:t})=>t==e));let{row:c,column:d}=l;switch(t){case"left":d--;break;case"up":c--;break;case"right":d+=l.cellWidth;break;case"down":c+=l.cellHeight}if(c<0||c>i||d<0&&c<=0||d>s&&c>=i)return void o.change((e=>{e.setSelection(e.createRangeOn(a))}));d<0?(d=n?0:s,c--):d>s&&(d=n?s:0,c++);const u=r.find((e=>e.row==c&&e.column==d)).cell,p=["right","down"].includes(t),h=this.editor.plugins.get("TableSelection");if(n&&h.isEnabled){const t=h.getAnchorCell()||e;h.setCellSelection(t,u)}else{const e=o.createPositionAt(u,p?0:"end");o.change((t=>{t.setSelection(e)}))}}}class $g extends tr{constructor(e){super(e),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class Gg extends Ye{static get pluginName(){return"TableMouse"}static get requires(){return[Bg]}init(){this.editor.editing.view.addObserver($g),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor;let t=!1;const n=e.plugins.get(Bg);this.listenTo(e.editing.view.document,"mousedown",((o,a)=>{if(!this.isEnabled||!n.isEnabled)return;if(!a.domEvent.shiftKey)return;const r=n.getAnchorCell()||Hf(e.model.document.selection)[0];if(!r)return;const i=this._getModelTableCellFromDomEvent(a);i&&Kg(r,i)&&(t=!0,n.setCellSelection(r,i),a.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{t=!1})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{t&&e.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,n,o=!1,a=!1;const r=e.plugins.get(Bg);this.listenTo(e.editing.view.document,"mousedown",((e,n)=>{this.isEnabled&&r.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(n)))})),this.listenTo(e.editing.view.document,"mousemove",((e,i)=>{if(!i.domEvent.buttons)return;if(!t)return;const s=this._getModelTableCellFromDomEvent(i);s&&Kg(t,s)&&(n=s,o||n==t||(o=!0)),o&&(a=!0,r.setCellSelection(t,n),i.preventDefault())})),this.listenTo(e.editing.view.document,"mouseup",(()=>{o=!1,a=!1,t=null,n=null})),this.listenTo(e.editing.view.document,"selectionChange",(e=>{a&&e.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function Kg(e,t){return e.parent.parent==t.parent.parent}function Jg(e){const t=e.getSelectedElement();return t&&Qg(t)?t:null}function Xg(e){let t=e.getFirstPosition().parent;for(;t;){if(t.is("element")&&Qg(t))return t;t=t.parent}return null}function Qg(e){return!!e.getCustomProperty("table")&&Pd(e)}n(108);const Zg={autoRefresh:!0};class ev{constructor(e,t=Zg){if(!e)throw new s.a("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),this._refresh="function"==typeof e?e:()=>{return t=e,new Promise(((e,n)=>{const o=new XMLHttpRequest;o.open("GET",t),o.addEventListener("load",(()=>{const t=o.status,a=o.response;return t<200||t>299?n(new s.a("token-cannot-download-new-token",null)):e(a)})),o.addEventListener("error",(()=>n(new Error("Network Error")))),o.addEventListener("abort",(()=>n(new Error("Abort")))),o.send()}));var t},this._options=Object.assign({},Zg,t)}init(){return new Promise(((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)}))}refreshToken(){return this._refresh().then((e=>{this._validateTokenValue(e),this.set("value",e),this._options.autoRefresh&&this._registerRefreshTokenTimeout()})).then((()=>this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t="string"==typeof e,n=!/^".*"$/.test(e),o=t&&3===e.split(".").length;if(!n||!o)throw new s.a("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((()=>{this.refreshToken()}),e)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?Math.floor((1e3*t-Date.now())/2):36e5}catch(e){return 36e5}}static create(e,t=Zg){return new ev(e,t).init()}}je(ev,Le);var tv=ev;const nv=/^data:(\S*?);base64,/;class ov{constructor(e,t,n){if(!e)throw new s.a("fileuploader-missing-file",null);if(!t)throw new s.a("fileuploader-missing-token",null);if(!n)throw new s.a("fileuploader-missing-api-address",null);this.file=function(e){if("string"!=typeof e)return!1;const t=e.match(nv);return!(!t||!t.length)}(e)?function(e,t=512){try{const n=e.match(nv)[1],o=atob(e.replace(nv,"")),a=[];for(let e=0;e<o.length;e+=t){const n=o.slice(e,e+t),r=new Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);a.push(new Uint8Array(r))}return new Blob(a,{type:n})}catch(e){throw new s.a("fileuploader-decoding-image-data-error",null)}}(e):e,this._token=t,this._apiAddress=n}onProgress(e){return this.on("progress",((t,n)=>e(n))),this}onError(e){return this.once("error",((t,n)=>e(n))),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this,t=this.xhr;function n(t){return()=>e.fire("error",t)}t.addEventListener("error",n("Network Error")),t.addEventListener("abort",n("Abort")),t.upload&&t.upload.addEventListener("progress",(e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})})),t.addEventListener("load",(()=>{const e=t.status,n=t.response;if(e<200||e>299)return this.fire("error",n.message||n.error)}))}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise(((n,o)=>{t.addEventListener("load",(()=>{const e=t.status,a=t.response;return e<200||e>299?a.message?o(new s.a("fileuploader-uploading-data-failed",this,{message:a.message})):o(a.error):n(a)})),t.addEventListener("error",(()=>o(new Error("Network Error")))),t.addEventListener("abort",(()=>o(new Error("Abort")))),t.send(e)}))}}je(ov,d);class av{constructor(e,t){if(!e)throw new s.a("uploadgateway-missing-token",null);if(!t)throw new s.a("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new ov(e,this._token,this._apiAddress)}}class rv extends fn{static get pluginName(){return"CloudServicesCore"}createToken(e,t){return new tv(e,t)}createUploadGateway(e,t){return new av(e,t)}}class iv extends dd{}iv.builtinPlugins=[class extends Ye{static get requires(){return[au,bd,mu,lu,yu,Gu]}static get pluginName(){return"Essentials"}},class extends Ye{static get requires(){return[Ju]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(Ju).createUploadAdapter=t=>new ep(t,e,this.editor.t))}},class extends Ye{static get requires(){return[Md]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const e=this.editor.commands;e.get("bulletedList")&&tp(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&tp(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&tp(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&tp(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const e=this.editor.commands;if(e.get("bold")){const e=ap(this.editor,"bold");np(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),np(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(e.get("italic")){const e=ap(this.editor,"italic");np(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),np(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(e.get("code")){const e=ap(this.editor,"code");np(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(e.get("strikethrough")){const e=ap(this.editor,"strikethrough");np(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const e=this.editor.commands.get("heading");e&&e.modelElements.filter((e=>e.match(/^heading[1-6]$/))).forEach((t=>{const n=t[7],o=new RegExp(`^(#{${n}})\\s$`);tp(this.editor,this,o,(()=>{if(!e.isEnabled||e.value===t)return!1;this.editor.execute("heading",{value:t})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&tp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const e=this.editor,t=e.model.document.selection;e.commands.get("codeBlock")&&tp(e,this,/^```$/,(()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&tp(this.editor,this,/^---$/,"horizontalLine")}},class extends Ye{static get requires(){return[ip,sp]}static get pluginName(){return"Bold"}},class extends Ye{static get requires(){return[lp,cp]}static get pluginName(){return"Italic"}},class extends Ye{static get requires(){return[mp,fp]}static get pluginName(){return"BlockQuote"}},class extends Ye{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",bp,gp]}},class extends fn{static get pluginName(){return"CloudServices"}static get requires(){return[rv]}init(){const e=this.context.config.get("cloudServices")||{};for(const t in e)this[t]=e[t];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}registerTokenUrl(e){if(this._tokens.has(e))return Promise.resolve(this.getTokenFor(e));const t=this.context.plugins.get("CloudServicesCore").createToken(e);return this._tokens.set(e,t),t.init()}getTokenFor(e){const t=this._tokens.get(e);if(!t)throw new s.a("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const e of this._tokens.values())e.destroy()}},class extends Ye{static get requires(){return[yp,"ImageUpload"]}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||Object(s.b)("easy-image-image-feature-missing",e)}static get pluginName(){return"EasyImage"}},class extends Ye{static get requires(){return[Cp,Ap]}static get pluginName(){return"Heading"}},class extends Ye{static get requires(){return[eh,nh]}static get pluginName(){return"Image"}},class extends Ye{static get requires(){return[ih,lh]}static get pluginName(){return"ImageCaption"}},class extends Ye{static get requires(){return[xh,Eh]}static get pluginName(){return"ImageStyle"}},class extends Ye{static get requires(){return[Dp,zp]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(Dp),o=e.plugins.get("ImageUtils");var a;n.register("image",{ariaLabel:t("Image toolbar"),items:(a=e.config.get("image.toolbar")||[],a.map((e=>_(e)?e.name:e))),getRelatedElement:e=>o.getClosestSelectedImageWidget(e)})}},class extends Ye{static get pluginName(){return"ImageUpload"}static get requires(){return[Yh,Ph,Lh]}},class extends Ye{static get pluginName(){return"Indent"}static get requires(){return[Bh,Uh]}},class extends Ye{static get requires(){return[_m,Em,Tm]}static get pluginName(){return"Link"}},class extends Ye{static get requires(){return[Qm,ef]}static get pluginName(){return"List"}},class extends Ye{static get requires(){return[cf,hf,uf,Kd]}static get pluginName(){return"MediaEmbed"}},Sp,class extends Ye{static get pluginName(){return"PasteFromOffice"}static get requires(){return[md]}init(){const e=this.editor,t=e.editing.view.document,n=[];n.push(new wf(t)),n.push(new _f(t)),e.plugins.get("ClipboardPipeline").on("inputTransformation",((e,o)=>{if(o._isTransformedWithPasteFromOffice)return;const a=o.dataTransfer.getData("text/html"),r=n.find((e=>e.isActive(a)));r&&(o._parsedData=function(e,t){const n=new DOMParser,o=function(e){return kf(kf(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(e){const t=e.indexOf("</body>");if(t<0)return e;const n=e.indexOf("</html>",t+7);return e.substring(0,t+7)+(n>=0?e.substring(n):"")}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),a=n.parseFromString(o,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((e=>{const t=e.innerText.length||0;e.innerHTML=Array(t+1).join("  ").substr(0,t)}))}(a);const r=a.body.innerHTML,i=function(e,t){const n=new ko(t),o=new Pa(n,{renderingMode:"data"}),a=e.createDocumentFragment(),r=e.body.childNodes;for(;r.length>0;)a.appendChild(r[0]);return o.domToView(a,{skipComments:!0})}(a,t),s=function(e){const t=[],n=[],o=Array.from(e.getElementsByTagName("style"));for(const e of o)e.sheet&&e.sheet.cssRules&&e.sheet.cssRules.length&&(t.push(e.sheet),n.push(e.innerHTML));return{styles:t,stylesString:n.join(" ")}}(a);return{body:i,bodyString:r,styles:s.styles,stylesString:s.stylesString}}(a,t.stylesProcessor),r.execute(o),o._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}},class extends Ye{static get requires(){return[Og,Yg,Bg,Gg,qg,Hg,Kd]}static get pluginName(){return"Table"}},class extends Ye{static get requires(){return[Dp]}static get pluginName(){return"TableToolbar"}afterInit(){const e=this.editor,t=e.t,n=e.plugins.get(Dp),o=e.config.get("table.contentToolbar"),a=e.config.get("table.tableToolbar");o&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:o,getRelatedElement:Xg}),a&&n.register("table",{ariaLabel:t("Table toolbar"),items:a,getRelatedElement:Jg})}},class extends Ye{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:Lu}})}init(){const e=this.editor.model.document.selection;e.on("change:range",(()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,n=e.plugins.get("Input"),o=e.plugins.get("Delete"),a=function(e){const t=e.extra||[],n=e.remove||[],o=e=>!n.includes(e);return function(e){const t=new Set;for(const n of e)if(Pu[n])for(const e of Pu[n])t.add(e);else t.add(n);return Array.from(t)}(e.include.concat(t).filter(o)).filter(o).map((e=>Du[e]||e)).map((e=>({from:Nu(e.from),to:Iu(e.to)})))}(e.config.get("typing.transformations")),r=new ku(e.model,(e=>{for(const t of a)if(t.from.test(e))return{normalizedTransformation:t}}));r.on("matched:data",((e,a)=>{if(!n.isInput(a.batch))return;const{from:r,to:i}=a.normalizedTransformation,s=r.exec(a.text),l=i(s.slice(1)),c=a.range;let d=s.index;t.enqueueChange((e=>{for(let n=1;n<s.length;n++){const o=s[n],a=l[n-1];if(null==a){d+=o.length;continue}const r=c.start.getShiftedBy(d),i=t.createRange(r,r.getShiftedBy(o.length)),u=Ou(r);t.insertContent(e.createText(a,u),i),d+=a.length}t.enqueueChange((()=>{o.requestUndoOnBackspace()}))}))})),r.bind("isEnabled").to(this)}}],iv.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","uploadImage","blockQuote","insertTable","mediaEmbed","undo","redo"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}]).default},2833:e=>{e.exports=function(e,t,n,o){var a=n?n.call(o,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<r.length;l++){var c=r[l];if(!s(c))return!1;var d=e[c],u=t[c];if(!1===(a=n?n.call(o,d,u,c):void 0)||void 0===a&&d!==u)return!1}return!0}},2890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(4188),a=n(7767),r=n(551),i=6e4;function s(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.A)(e,n*i)}},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(816);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,o.A)(a.key),a)}}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},2934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(5093))},2998:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t);return isNaN(i)?new Date(NaN):i?(n.setDate(n.getDate()+i),n):n}},3004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},3029:(e,t,n)=>{"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>o})},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:o?a[n][0]:a[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3039:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case r:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=r,t.Lazy=g,t.Memo=f,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===r},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===s||e===i||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},3139:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(1923)),a=i(n(6540)),r=n(3684);function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)("div",{target:"e1l5ho1t0"})("padding:10px;text-align:center;color:",(function(e){return e.color}),";");t.default=function(e){var t=e.props,n=e.state,o=e.methods;return t.noDataRenderer?t.noDataRenderer({props:t,state:n,methods:o}):a.default.createElement(s,{className:r.LIB_NAME+"-no-data",color:t.color},t.noDataLabel)}},3145:(e,t,n)=>{"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{A:()=>o})},3164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(5093))},3174:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(6289),r=!1,i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.A)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return m={name:t,styles:n,next:m},t}))}return 1===o[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return m={name:a.name,styles:a.styles,next:m},a.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)m={name:s.name,styles:s.styles,next:m},s=s.next;return i.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=h(e,t,n[a])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var l=s;null!=t&&void 0!==t[l]?o+=i+"{"+t[l]+"}":c(l)&&(o+=d(i)+":"+u(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&r)throw new Error(p);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var m=h(e,t,s);switch(i){case"animation":case"animationName":o+=d(i)+":"+m+";";break;default:o+=i+"{"+m+"}"}}else for(var f=0;f<s.length;f++)c(s[f])&&(o+=d(i)+":"+u(i,s[f])+";")}}return o}(e,t,n);case"function":if(void 0!==e){var l=m,f=n(e);return m=l,h(e,t,f)}}var g=n;if(null==t)return g;var v=t[g];return void 0!==v?v:g}var m,f=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";m=void 0;var r=e[0];null==r||void 0===r.raw?(o=!1,a+=h(n,t,r)):a+=r[0];for(var i=1;i<e.length;i++)a+=h(n,t,e[i]),o&&(a+=r[i]);f.lastIndex=0;for(var s,l="";null!==(s=f.exec(a));)l+="-"+s[1];var c=function(e){for(var t,n=0,o=0,a=e.length;a>=4;++o,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+l;return{name:c,styles:a,next:m}}},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,o,a){var r,i=t.words[o];return 1===o.length?"y"===o&&n?"једна година":a||n?i[0]:i[1]:(r=t.correctGrammaticalCase(e,i),"yy"===o&&n&&"годину"===r?e+" година":e+" "+r)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},3333:(e,t,n)=>{var o;window,e.exports=(o=n(6540),function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t,n){"use strict";var o=n(4),a="object"==typeof self&&self&&self.Object===Object&&self,r=o.a||a||Function("return this")();t.a=r},function(e,t,n){e.exports=n(9)()},function(e,n,o){"use strict";(function(e){var a=o(4),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===r&&a.a.process,l=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();n.a=l}).call(this,o(6)(e))},function(e,t){e.exports=o},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(11))},function(e,n,o){"use strict";(function(e){var a=o(0),r=o(7),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=s&&s.exports===i?a.a.Buffer:void 0,c=(l?l.isBuffer:void 0)||r.a;n.a=c}).call(this,o(6)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,n,o){"use strict";(function(e){var a=o(0),r=t&&!t.nodeType&&t,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===r?a.a.Buffer:void 0,l=s?s.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}}).call(this,o(6)(e))},function(e,t,n){"use strict";var o=n(10);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,i){if(i!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"CKEditor",(function(){return Ft})),n.d(t,"CKEditorContext",(function(){return Rt}));var o=n(3),a=n.n(o),r=n(1),i=n.n(r),s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},l=n(0),c=function(){return l.a.Date.now()},d=/\s/,u=/^\s+/,p=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&d.test(e.charAt(t)););return t}(e)+1).replace(u,""):e},h=l.a.Symbol,m=Object.prototype,f=m.hasOwnProperty,g=m.toString,v=h?h.toStringTag:void 0,_=Object.prototype.toString,b=h?h.toStringTag:void 0,y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?function(e){var t=f.call(e,v),n=e[v];try{e[v]=void 0;var o=!0}catch(e){}var a=g.call(e);return o&&(t?e[v]=n:delete e[v]),a}(e):function(e){return _.call(e)}(e)},w=function(e){return null!=e&&"object"==typeof e},k=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,S=parseInt,M=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==y(e)}(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=p(e);var n=x.test(e);return n||E.test(e)?S(e.slice(2),n?2:8):k.test(e)?NaN:+e},T=Math.max,C=Math.min,A=function(e,t,n){var o,a,r,i,l,d,u=0,p=!1,h=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=o,r=a;return o=a=void 0,u=t,i=e.apply(r,n)}function g(e){var n=e-d;return void 0===d||n>=t||n<0||h&&e-u>=r}function v(){var e=c();if(g(e))return _(e);l=setTimeout(v,function(e){var n=t-(e-d);return h?C(n,r-(e-u)):n}(e))}function _(e){return l=void 0,m&&o?f(e):(o=a=void 0,i)}function b(){var e=c(),n=g(e);if(o=arguments,a=this,d=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(v,t),p?f(e):i}(d);if(h)return clearTimeout(l),l=setTimeout(v,t),f(d)}return void 0===l&&(l=setTimeout(v,t)),i}return t=M(t)||0,s(n)&&(p=!!n.leading,r=(h="maxWait"in n)?T(M(n.maxWait)||0,t):r,m="trailing"in n?!!n.trailing:m),b.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=d=a=l=void 0},b.flush=function(){return void 0===l?i:_(c())},b},D=function(e,t){return e===t||e!=e&&t!=t},P=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return-1},L=Array.prototype.splice;function N(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}N.prototype.clear=function(){this.__data__=[],this.size=0},N.prototype.delete=function(e){var t=this.__data__,n=P(t,e);return!(n<0||(n==t.length-1?t.pop():L.call(t,n,1),--this.size,0))},N.prototype.get=function(e){var t=this.__data__,n=P(t,e);return n<0?void 0:t[n][1]},N.prototype.has=function(e){return P(this.__data__,e)>-1},N.prototype.set=function(e,t){var n=this.__data__,o=P(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var I,O=N,R=function(e){if(!s(e))return!1;var t=y(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},F=l.a["__core-js_shared__"],j=(I=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",Y=Function.prototype.toString,z=function(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""},B=/^\[object .+?Constructor\]$/,H=Function.prototype,V=Object.prototype,U=H.toString,W=V.hasOwnProperty,q=RegExp("^"+U.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=function(e){return!(!s(e)||function(e){return!!j&&j in e}(e))&&(R(e)?q:B).test(z(e))},G=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return $(n)?n:void 0},K=G(l.a,"Map"),J=G(Object,"create"),X=Object.prototype.hasOwnProperty,Q=Object.prototype.hasOwnProperty;function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Z.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(J){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return X.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:Q.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&void 0===t?"__lodash_hash_undefined__":t,this};var ee=Z,te=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ne.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(K||O),string:new ee}},ne.prototype.delete=function(e){var t=te(this,e).delete(e);return this.size-=t?1:0,t},ne.prototype.get=function(e){return te(this,e).get(e)},ne.prototype.has=function(e){return te(this,e).has(e)},ne.prototype.set=function(e,t){var n=te(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};var oe=ne;function ae(e){var t=this.__data__=new O(e);this.size=t.size}ae.prototype.clear=function(){this.__data__=new O,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof O){var o=n.__data__;if(!K||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(o)}return n.set(e,t),this.size=n.size,this};var re=ae,ie=function(){try{var e=G(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),se=function(e,t,n){"__proto__"==t&&ie?ie(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},le=Object.prototype.hasOwnProperty,ce=function(e,t,n){var o=e[t];le.call(e,t)&&D(o,n)&&(void 0!==n||t in e)||se(e,t,n)},de=function(e,t,n,o){var a=!n;n||(n={});for(var r=-1,i=t.length;++r<i;){var s=t[r],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?se(n,s,l):ce(n,s,l)}return n},ue=function(e){return w(e)&&"[object Arguments]"==y(e)},pe=Object.prototype,he=pe.hasOwnProperty,me=pe.propertyIsEnumerable,fe=ue(function(){return arguments}())?ue:function(e){return w(e)&&he.call(e,"callee")&&!me.call(e,"callee")},ge=Array.isArray,ve=n(5),_e=/^(?:0|[1-9]\d*)$/,be=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&_e.test(e))&&e>-1&&e%1==0&&e<t},ye=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},we={};we["[object Float32Array]"]=we["[object Float64Array]"]=we["[object Int8Array]"]=we["[object Int16Array]"]=we["[object Int32Array]"]=we["[object Uint8Array]"]=we["[object Uint8ClampedArray]"]=we["[object Uint16Array]"]=we["[object Uint32Array]"]=!0,we["[object Arguments]"]=we["[object Array]"]=we["[object ArrayBuffer]"]=we["[object Boolean]"]=we["[object DataView]"]=we["[object Date]"]=we["[object Error]"]=we["[object Function]"]=we["[object Map]"]=we["[object Number]"]=we["[object Object]"]=we["[object RegExp]"]=we["[object Set]"]=we["[object String]"]=we["[object WeakMap]"]=!1;var ke=function(e){return function(t){return e(t)}},xe=n(2),Ee=xe.a&&xe.a.isTypedArray,Se=Ee?ke(Ee):function(e){return w(e)&&ye(e.length)&&!!we[y(e)]},Me=Object.prototype.hasOwnProperty,Te=function(e,t){var n=ge(e),o=!n&&fe(e),a=!n&&!o&&Object(ve.a)(e),r=!n&&!o&&!a&&Se(e),i=n||o||a||r,s=i?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],l=s.length;for(var c in e)!t&&!Me.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,l))||s.push(c);return s},Ce=Object.prototype,Ae=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ce)},De=function(e,t){return function(n){return e(t(n))}},Pe=De(Object.keys,Object),Le=Object.prototype.hasOwnProperty,Ne=function(e){return null!=e&&ye(e.length)&&!R(e)},Ie=function(e){return Ne(e)?Te(e):function(e){if(!Ae(e))return Pe(e);var t=[];for(var n in Object(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Oe=Object.prototype.hasOwnProperty,Re=function(e){if(!s(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Ae(e),n=[];for(var o in e)("constructor"!=o||!t&&Oe.call(e,o))&&n.push(o);return n},Fe=function(e){return Ne(e)?Te(e,!0):Re(e)},je=n(8),Ye=function(){return[]},ze=Object.prototype.propertyIsEnumerable,Be=Object.getOwnPropertySymbols,He=Be?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,a=0,r=[];++n<o;){var i=e[n];t(i,n,e)&&(r[a++]=i)}return r}(Be(e),(function(t){return ze.call(e,t)})))}:Ye,Ve=function(e,t){for(var n=-1,o=t.length,a=e.length;++n<o;)e[a+n]=t[n];return e},Ue=De(Object.getPrototypeOf,Object),We=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ve(t,He(e)),e=Ue(e);return t}:Ye,qe=function(e,t,n){var o=t(e);return ge(e)?o:Ve(o,n(e))},$e=function(e){return qe(e,Ie,He)},Ge=function(e){return qe(e,Fe,We)},Ke=G(l.a,"DataView"),Je=G(l.a,"Promise"),Xe=G(l.a,"Set"),Qe=G(l.a,"WeakMap"),Ze=z(Ke),et=z(K),tt=z(Je),nt=z(Xe),ot=z(Qe),at=y;(Ke&&"[object DataView]"!=at(new Ke(new ArrayBuffer(1)))||K&&"[object Map]"!=at(new K)||Je&&"[object Promise]"!=at(Je.resolve())||Xe&&"[object Set]"!=at(new Xe)||Qe&&"[object WeakMap]"!=at(new Qe))&&(at=function(e){var t=y(e),n="[object Object]"==t?e.constructor:void 0,o=n?z(n):"";if(o)switch(o){case Ze:return"[object DataView]";case et:return"[object Map]";case tt:return"[object Promise]";case nt:return"[object Set]";case ot:return"[object WeakMap]"}return t});var rt=at,it=Object.prototype.hasOwnProperty,st=l.a.Uint8Array,lt=function(e){var t=new e.constructor(e.byteLength);return new st(t).set(new st(e)),t},ct=/\w*$/,dt=h?h.prototype:void 0,ut=dt?dt.valueOf:void 0,pt=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return lt(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?lt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?lt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,ct.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return function(e){return ut?Object(ut.call(e)):{}}(e)}},ht=Object.create,mt=function(){function e(){}return function(t){if(!s(t))return{};if(ht)return ht(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),ft=xe.a&&xe.a.isMap,gt=ft?ke(ft):function(e){return w(e)&&"[object Map]"==rt(e)},vt=xe.a&&xe.a.isSet,_t=vt?ke(vt):function(e){return w(e)&&"[object Set]"==rt(e)},bt={};bt["[object Arguments]"]=bt["[object Array]"]=bt["[object ArrayBuffer]"]=bt["[object DataView]"]=bt["[object Boolean]"]=bt["[object Date]"]=bt["[object Float32Array]"]=bt["[object Float64Array]"]=bt["[object Int8Array]"]=bt["[object Int16Array]"]=bt["[object Int32Array]"]=bt["[object Map]"]=bt["[object Number]"]=bt["[object Object]"]=bt["[object RegExp]"]=bt["[object Set]"]=bt["[object String]"]=bt["[object Symbol]"]=bt["[object Uint8Array]"]=bt["[object Uint8ClampedArray]"]=bt["[object Uint16Array]"]=bt["[object Uint32Array]"]=!0,bt["[object Error]"]=bt["[object Function]"]=bt["[object WeakMap]"]=!1;var yt=function e(t,n,o,a,r,i){var l,c=1&n,d=2&n,u=4&n;if(o&&(l=r?o(t,a,r,i):o(t)),void 0!==l)return l;if(!s(t))return t;var p=ge(t);if(p){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&it.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}(t,l)}else{var h=rt(t),m="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(ve.a)(t))return Object(je.a)(t,c);if("[object Object]"==h||"[object Arguments]"==h||m&&!r){if(l=d||m?{}:function(e){return"function"!=typeof e.constructor||Ae(e)?{}:mt(Ue(e))}(t),!c)return d?function(e,t){return de(e,We(e),t)}(t,function(e,t){return e&&de(t,Fe(t),e)}(l,t)):function(e,t){return de(e,He(e),t)}(t,function(e,t){return e&&de(t,Ie(t),e)}(l,t))}else{if(!bt[h])return r?t:{};l=pt(t,h,c)}}i||(i=new re);var f=i.get(t);if(f)return f;i.set(t,l),_t(t)?t.forEach((function(a){l.add(e(a,n,o,a,t,i))})):gt(t)&&t.forEach((function(a,r){l.set(r,e(a,n,o,r,t,i))}));var g=p?void 0:(u?d?Ge:$e:d?Fe:Ie)(t);return function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););}(g||t,(function(a,r){g&&(a=t[r=a]),ce(l,r,e(a,n,o,r,t,i))})),l},wt=Function.prototype,kt=Object.prototype,xt=wt.toString,Et=kt.hasOwnProperty,St=xt.call(Object),Mt=function(e){return w(e)&&1===e.nodeType&&!function(e){if(!w(e)||"[object Object]"!=y(e))return!1;var t=Ue(e);if(null===t)return!0;var n=Et.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xt.call(n)==St}(e)};function Tt(e,t=new Set){const n=[e],o=new Set;for(;n.length>0;){const a=n.shift();if(!(o.has(a)||Ct(a)||t.has(a)))if(o.add(a),a[Symbol.iterator])try{for(const e of a)n.push(e)}catch(e){}else for(const e in a)"defaultValue"!==e&&n.push(a[e])}return o}function Ct(e){const t=Object.prototype.toString.call(e),n=typeof e;return"number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e instanceof EventTarget||e instanceof Event}function At(e,t,n=new Set){if(e===t&&"object"==typeof(o=e)&&null!==o)return!0;var o;const a=Tt(e,n),r=Tt(t,n);for(const e of a)if(r.has(e))return!0;return!1}class Dt{constructor(e){if(this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof e.crashNumberLimit?e.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof e.minimumNonErrorTimePeriod?e.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const t=e.error||e.reason;t instanceof Error&&this._handleError(t,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}setCreator(e){this._creator=e}setDestructor(e){this._destructor=e}destroy(){this._stopErrorHandling(),this._listeners={}}on(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}off(e,t){this._listeners[e]=this._listeners[e].filter((e=>e!==t))}_fire(e,...t){const n=this._listeners[e]||[];for(const e of n)e.apply(this,[null,...t])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t.filename,lineno:t.lineno,colno:t.colno,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(e){return e.is&&e.is("CKEditorError")&&void 0!==e.context&&null!==e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}class Pt extends Dt{constructor(e,t={}){super(t),this._editor=null,this._throttledSave=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return s(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),A(e,t,{leading:o,maxWait:t,trailing:a})}(this._save.bind(this),"number"==typeof t.saveInterval?t.saveInterval:5e3),this._creator=(t,n)=>e.create(t,n),this._destructor=e=>e.destroy()}get editor(){return this._editor}get _item(){return this._editor}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((e=>{console.error("An error happened during the editor destroying.",e)})).then((()=>{if("string"==typeof this._elementOrData)return this.create(this._data,this._config,this._config.context);{const e=Object.assign({},this._config,{initialData:this._data});return this.create(this._elementOrData,e,e.context)}})).then((()=>{this._fire("restart")}))}create(e=this._elementOrData,t=this._config,n){return Promise.resolve().then((()=>(super._startErrorHandling(),this._elementOrData=e,this._config=this._cloneEditorConfiguration(t)||{},this._config.context=n,this._creator(e,this._config)))).then((e=>{this._editor=e,e.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=e.model.document.version,this._data=this._getData(),this.state="ready",this._fire("stateChange")}))}destroy(){return Promise.resolve().then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.flush();const e=this._editor;return this._editor=null,this._destructor(e)}))}_save(){const e=this._editor.model.document.version;if(e!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=e}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(e){this._excludedProps=e}_getData(){const e={};for(const t of this._editor.model.document.getRootNames())e[t]=this._editor.data.get({rootName:t});return e}_isErrorComingFromThisItem(e){return At(this._editor,e.context,this._excludedProps)}_cloneEditorConfiguration(e){return function(e,t){return yt(e,5,t="function"==typeof t?t:void 0)}(e,((e,t)=>Mt(e)||"context"===t?e:void 0))}}const Lt=new Array(256).fill().map(((e,t)=>("0"+t.toString(16)).slice(-2)));class Nt extends Dt{constructor(e,t={}){super(t),this._watchdogs=new Map,this._watchdogConfig=t,this._context=null,this._contextProps=new Set,this._actionQueue=new It,this._creator=t=>e.create(t),this._destructor=e=>e.destroy(),this._actionQueue.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}get context(){return this._context}create(e={}){return this._actionQueue.enqueue((()=>(this._contextConfig=e,this._create())))}getItem(e){return this._getWatchdog(e)._item}getItemState(e){return this._getWatchdog(e).state}add(e){const t=Array.isArray(e)?e:[e];return this._actionQueue.enqueue((()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");return Promise.all(t.map((e=>{let t;if(this._watchdogs.has(e.id))throw new Error(`Item with the given id is already added: '${e.id}'.`);if("editor"===e.type)return t=new Pt(this._watchdogConfig),t.setCreator(e.creator),t._setExcludedProperties(this._contextProps),e.destructor&&t.setDestructor(e.destructor),this._watchdogs.set(e.id,t),t.on("error",((n,{error:o,causesRestart:a})=>{this._fire("itemError",{itemId:e.id,error:o}),a&&this._actionQueue.enqueue((()=>new Promise((n=>{t.on("restart",function o(){t.off("restart",o),this._fire("itemRestart",{itemId:e.id}),n()}.bind(this))}))))})),t.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))}))}remove(e){const t=Array.isArray(e)?e:[e];return this._actionQueue.enqueue((()=>Promise.all(t.map((e=>{const t=this._getWatchdog(e);return this._watchdogs.delete(e),t.destroy()})))))}destroy(){return this._actionQueue.enqueue((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueue.enqueue((()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((e=>{console.error("An error happened during destroying the context or items.",e)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((e=>(this._context=e,this._contextProps=Tt(this._context),Promise.all(Array.from(this._watchdogs.values()).map((e=>(e._setExcludedProperties(this._contextProps),e.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const e=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((e=>e.destroy()))).then((()=>this._destructor(e)))}))}_getWatchdog(e){const t=this._watchdogs.get(e);if(!t)throw new Error(`Item with the given id was not registered: ${e}.`);return t}_isErrorComingFromThisItem(e){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(e))return!1;return At(this._context,e.context)}}class It{constructor(){this._promiseQueue=Promise.resolve(),this._onEmptyCallbacks=[]}onEmpty(e){this._onEmptyCallbacks.push(e)}enqueue(e){let t;const n=this._promiseQueue.then(e).then((()=>{this._promiseQueue===t&&this._onEmptyCallbacks.forEach((e=>e()))}));return t=this._promiseQueue=n.catch((()=>{})),n}}const Ot=a.a.createContext("contextWatchdog");class Rt extends a.a.Component{constructor(e,t){super(e,t),this.contextWatchdog=null,this.props.isLayoutReady&&this._initializeContextWatchdog(this.props.config)}shouldComponentUpdate(e){return e.id!==this.props.id&&(this.contextWatchdog&&this.contextWatchdog.destroy(),this._initializeContextWatchdog(e.config)),e.isLayoutReady&&!this.contextWatchdog?(this._initializeContextWatchdog(e.config),!0):this.props.children!==e.children}render(){return a.a.createElement(Ot.Provider,{value:this.contextWatchdog},this.props.children)}componentWillUnmount(){this._destroyContext()}_initializeContextWatchdog(e){this.contextWatchdog=new Nt(this.props.context),this.contextWatchdog.create(e).catch((e=>{this.props.onError(e,{phase:"initialization",willContextRestart:!1})})),this.contextWatchdog.on("error",((e,t)=>{this.props.onError(t.error,{phase:"runtime",willContextRestart:t.causesRestart})})),this.contextWatchdog.on("stateChange",(()=>{"ready"===this.contextWatchdog.state&&this.props.onReady&&this.props.onReady(this.contextWatchdog.context)}))}_destroyContext(){this.contextWatchdog&&(this.contextWatchdog.destroy(),this.contextWatchdog=null)}}Rt.defaultProps={isLayoutReady:!0,onError:(e,t)=>console.error(e,t)},Rt.propTypes={id:i.a.string,isLayoutReady:i.a.bool,context:i.a.func,config:i.a.object,onReady:i.a.func,onError:i.a.func};class Ft extends a.a.Component{constructor(e){super(e),this.domContainer=a.a.createRef(),this.watchdog=null}get editor(){return this.watchdog?this.watchdog.editor:null}shouldComponentUpdate(e){return!(!this.editor||e.id===this.props.id&&(this._shouldUpdateEditor(e)&&this.editor.setData(e.data),"disabled"in e&&(this.editor.isReadOnly=e.disabled),1))}componentDidMount(){this._initializeEditor()}componentDidUpdate(){this._destroyEditor(),this._initializeEditor()}componentWillUnmount(){this._destroyEditor()}render(){return a.a.createElement("div",{ref:this.domContainer})}_initializeEditor(){this.context instanceof Nt?this.watchdog=new jt(this.context):this.watchdog=new Ft._EditorWatchdog(this.props.editor),this.watchdog.setCreator(((e,t)=>this._createEditor(e,t))),this.watchdog.on("error",((e,{error:t,causesRestart:n})=>{this.props.onError(t,{phase:"runtime",willEditorRestart:n})})),this.watchdog.create(this.domContainer.current,this._getConfig()).catch((e=>this.props.onError(e,{phase:"initialization",willEditorRestart:!1})))}_createEditor(e,t){return this.props.editor.create(e,t).then((e=>{"disabled"in this.props&&(e.isReadOnly=this.props.disabled);const t=e.model.document,n=e.editing.view.document;return t.on("change:data",(t=>{this.props.onChange&&this.props.onChange(t,e)})),n.on("focus",(t=>{this.props.onFocus&&this.props.onFocus(t,e)})),n.on("blur",(t=>{this.props.onBlur&&this.props.onBlur(t,e)})),setTimeout((()=>{this.props.onReady&&this.props.onReady(this.editor)})),e}))}_destroyEditor(){this.watchdog&&(this.watchdog.destroy(),this.watchdog=null)}_shouldUpdateEditor(e){return this.props.data!==e.data&&this.editor.getData()!==e.data}_getConfig(){return this.props.data&&this.props.config.initialData&&console.warn("Editor data should be provided either using `config.initialData` or `data` properties. The config property is over the data value and the first one will be used when specified both."),{...this.props.config,initialData:this.props.config.initialData||this.props.data||""}}}class jt{constructor(e){this._contextWatchdog=e,this._id=function(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+Lt[255&e]+Lt[e>>8&255]+Lt[e>>16&255]+Lt[e>>24&255]+Lt[255&t]+Lt[t>>8&255]+Lt[t>>16&255]+Lt[t>>24&255]+Lt[255&n]+Lt[n>>8&255]+Lt[n>>16&255]+Lt[n>>24&255]+Lt[255&o]+Lt[o>>8&255]+Lt[o>>16&255]+Lt[o>>24&255]}()}setCreator(e){this._creator=e}create(e,t){return this._contextWatchdog.add({sourceElementOrData:e,config:t,creator:this._creator,id:this._id,type:"editor"})}on(e,t){this._contextWatchdog.on("itemError",((e,{itemId:n,causesRestart:o,error:a})=>{n===this._id&&t(null,{error:a,causesRestart:o})}))}destroy(){this._contextWatchdog.remove(this._id)}get editor(){return this._contextWatchdog.getItem(this._id)}}Ft.contextType=Ot,Ft.propTypes={editor:i.a.func.isRequired,data:i.a.string,config:i.a.object,onChange:i.a.func,onReady:i.a.func,onFocus:i.a.func,onBlur:i.a.func,onError:i.a.func,disabled:i.a.bool,onInit:(e,t)=>{if(e[t])return new Error('The "onInit" property is not supported anymore by the CKEditor component. Use the "onReady" property instead.')}},Ft.defaultProps={config:{},onError:(e,t)=>console.error(e,t)},Ft._EditorWatchdog=Pt}]))},3337:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(2238),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.default)(e,-n)}},3350:(e,t,n)=>{"use strict";var o,a,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.ZX=function(e){document.body.classList.add("react-confirm-alert-body-element"),function(){if(!document.getElementById("react-confirm-alert-firm-svg")){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"feGaussianBlur");t.setAttribute("stdDeviation","0.3");var n=document.createElementNS(e,"filter");n.setAttribute("id","gaussian-blur"),n.appendChild(t);var o=document.createElementNS(e,"svg");o.setAttribute("id","react-confirm-alert-firm-svg"),o.setAttribute("class","react-confirm-alert-svg"),o.appendChild(n),document.body.appendChild(o)}}(),function(e){var t=document.getElementById("react-confirm-alert");t||(document.body.children[0].classList.add("react-confirm-alert-blur"),(t=document.createElement("div")).id="react-confirm-alert",document.body.appendChild(t)),(0,c.render)(s.default.createElement(p,e),t)}(e)};var i=n(6540),s=d(i),l=d(n(5556)),c=n(961);function d(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=(a=o=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,r=Array(a),i=0;i<a;i++)r[i]=arguments[i];return n=o=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),o.handleClickButton=function(e){e.onClick&&e.onClick(),o.close()},o.handleClickOverlay=function(e){var t=o.props,n=t.closeOnClickOutside,a=t.onClickOutside,r=e.target===o.overlay;n&&r&&(a(),o.close())},o.close=function(){var e,t=o.props.afterClose;document.body.classList.remove("react-confirm-alert-body-element"),(e=document.getElementById("react-confirm-alert"))&&((0,c.unmountComponentAtNode)(e),e.parentNode.removeChild(e)),function(e){var t=document.getElementById("react-confirm-alert-firm-svg");t&&t.parentNode.removeChild(t),document.body.children[0].classList.remove("react-confirm-alert-blur"),e()}(t)},o.keyboardClose=function(e){var t=o.props,n=t.closeOnEscape,a=t.onKeypressEscape,r=t.keyCodeForClose,i=e.keyCode,s=27===i;r.includes(i)&&o.close(),n&&s&&(a(e),o.close())},o.componentDidMount=function(){document.addEventListener("keydown",o.keyboardClose,!1)},o.componentWillUnmount=function(){document.removeEventListener("keydown",o.keyboardClose,!1),o.props.willUnmount()},o.renderCustomUI=function(){var e=o.props,t=e.title,n=e.message,a=e.buttons;return(0,e.customUI)({title:t,message:n,buttons:a,onClose:o.close})},u(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.title,o=t.message,a=t.buttons,r=t.childrenElement,i=t.customUI,l=t.overlayClassName;return s.default.createElement("div",{className:"react-confirm-alert-overlay "+l,ref:function(t){return e.overlay=t},onClick:this.handleClickOverlay},s.default.createElement("div",{className:"react-confirm-alert"},i?this.renderCustomUI():s.default.createElement("div",{className:"react-confirm-alert-body"},n&&s.default.createElement("h1",null,n),o,r(),s.default.createElement("div",{className:"react-confirm-alert-button-group"},a.map((function(t,n){return s.default.createElement("button",{key:n,onClick:function(){return e.handleClickButton(t)},className:t.className},t.label)}))))))}}]),t}(i.Component),o.propTypes={title:l.default.string,message:l.default.string,buttons:l.default.array.isRequired,childrenElement:l.default.func,customUI:l.default.func,closeOnClickOutside:l.default.bool,closeOnEscape:l.default.bool,keyCodeForClose:l.default.arrayOf(l.default.number),willUnmount:l.default.func,afterClose:l.default.func,onClickOutside:l.default.func,onKeypressEscape:l.default.func,overlayClassName:l.default.string},o.defaultProps={buttons:[{label:"Cancel",onClick:function(){return null},className:null},{label:"Confirm",onClick:function(){return null},className:null}],childrenElement:function(){return null},closeOnClickOutside:!0,closeOnEscape:!0,keyCodeForClose:[],willUnmount:function(){return null},afterClose:function(){return null},onClickOutside:function(){return null},onKeypressEscape:function(){return null}},a)},3383:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return o?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(5093))},3386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(5093))},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},3478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},3601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},3635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(5093))},3652:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e).getTime(),r=(0,o.default)(t.start).getTime(),i=(0,o.default)(t.end).getTime();if(!(r<=i))throw new RangeError("Invalid interval");return n>=r&&n<=i}},3662:(e,t,n)=>{"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{A:()=>o})},3684:(e,t)=>{"use strict";t.__esModule=!0,t.LIB_NAME=void 0,t.LIB_NAME="react-dropdown-select"},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(5093))},3784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),o=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},3827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(5093))},3861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},o=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:o,longMonthsParse:o,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(5093))},3869:(e,t,n)=>{"use strict";t.__esModule=!0,t.valueExistInSelected=t.isomorphicWindow=t.isEqual=t.hexToRGBA=t.getProp=t.getByPath=t.debounce=void 0,t.valueExistInSelected=function(e,t,n){return!!t.find((function(t){return o(t,n.valueField)===e||o(t,n.labelField)===e}))},t.hexToRGBA=function(e,t){return 4===e.length&&(e=""+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"}"),"rgba("+parseInt(e.slice(1,3),16)+", "+parseInt(e.slice(3,5),16)+", "+parseInt(e.slice(5,7),16)+(t&&", "+t)+")"},t.debounce=function(e,t){var n;return void 0===t&&(t=0),function(){for(var o=arguments.length,a=Array(o),r=0;r<o;r++)a[r]=arguments[r];n&&clearTimeout(n),n=setTimeout((function(){e.apply(void 0,a),n=null}),t)}},t.isEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)};var o=function(e,t){return t?t.split(".").reduce((function(e,t){return e[t]}),e):void 0};t.getByPath=o;var a=function(e,t,n){if(!t)return e;var o=Array.isArray(t)?t:t.split(".").filter((function(e){return e.length}));return o.length?a(e[o.shift()],o,n):void 0===e?n:e};t.getProp=a,t.isomorphicWindow=function(){return"undefined"==typeof window&&(n.g.window={}),window}},3872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(5093))},3908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>m,default:()=>g});var o=n(6540),a=n(961);function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var l,c,d=(void 0===l&&(l=0),function(){return++l}),u={},p={},h=["touchstart","touchmove"],m="ignore-react-onclickoutside";function f(e,t){var n={};return-1!==h.indexOf(t)&&c&&(n.passive=!e.props.preventDefault),n}const g=function(e,t){var n,l,h=e.displayName||e.name||"Component";return l=n=function(n){var l,m;function g(e){var o;return(o=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof o.__clickOutsideHandlerProp){var t=o.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+h+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else o.__clickOutsideHandlerProp(e)},o.__getComponentNode=function(){var e=o.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,a.findDOMNode)(e)},o.enableOnClickOutside=function(){if("undefined"!=typeof document&&!p[o._uid]){void 0===c&&(c=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),p[o._uid]=!0;var e=o.props.eventTypes;e.forEach||(e=[e]),u[o._uid]=function(e){var t;null!==o.componentNode&&(o.initTimeStamp>e.timeStamp||(o.props.preventDefault&&e.preventDefault(),o.props.stopPropagation&&e.stopPropagation(),o.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&s(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,o.componentNode,o.props.outsideClickIgnoreClass)===document&&o.__outsideClickHandler(e)))},e.forEach((function(e){document.addEventListener(e,u[o._uid],f(i(o),e))}))}},o.disableOnClickOutside=function(){delete p[o._uid];var e=u[o._uid];if(e&&"undefined"!=typeof document){var t=o.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,f(i(o),t))})),delete u[o._uid]}},o.getRef=function(e){return o.instanceRef=e},o._uid=d(),o.initTimeStamp=performance.now(),o}m=n,(l=g).prototype=Object.create(m.prototype),l.prototype.constructor=l,r(l,m);var v=g.prototype;return v.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},v.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+h+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},v.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},v.componentWillUnmount=function(){this.disableOnClickOutside()},v.render=function(){var t=this.props;t.excludeScrollbar;var n=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,o.createElement)(e,n)},g}(o.Component),n.displayName="OnClickOutside("+h+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:m,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},l}},3954:(e,t,n)=>{"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{A:()=>o})},4051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},4063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(5093))},4074:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(2284),a=n(123),r=n(1104),i=n(4188),s=n(551);function l(e,t){if((0,s.A)(2,arguments),"object"!==(0,o.A)(t)||null===t)throw new RangeError("values parameter must be an object");var n=(0,a.default)(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,r.default)(n,t.month)),null!=t.date&&n.setDate((0,i.A)(t.date)),null!=t.hours&&n.setHours((0,i.A)(t.hours)),null!=t.minutes&&n.setMinutes((0,i.A)(t.minutes)),null!=t.seconds&&n.setSeconds((0,i.A)(t.seconds)),null!=t.milliseconds&&n.setMilliseconds((0,i.A)(t.milliseconds)),n)}},4081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return i=t||i},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var a,r=l(e)[Symbol.iterator]();!(t=(a=r.next()).done);t=!0)a.value.setAttribute("aria-hidden","true")}catch(e){n=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var a,r=l(e)[Symbol.iterator]();!(t=(a=r.next()).done);t=!0)a.value.removeAttribute("aria-hidden")}catch(e){n=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){i=null};var o,a=(o=n(9771))&&o.__esModule?o:{default:o},r=n(834),i=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},4125:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getFullYear()===r.getFullYear()}},4127:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(123),a=n(551),r=n(9411);function i(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=t.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var s=(0,r.A)(i),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,r.A)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},4146:(e,t,n)=>{"use strict";var o=n(3404),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return o.isMemo(e)?i:s[e.$$typeof]||a}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var a=h(n);a&&a!==m&&e(t,a,o)}var i=d(n);u&&(i=i.concat(u(n)));for(var s=l(t),f=l(n),g=0;g<i.length;++g){var v=i[g];if(!(r[v]||o&&o[v]||f&&f[v]||s&&s[v])){var _=p(n,v);try{c(t,v,_)}catch(e){}}}}return t}},4158:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e);return Math.floor(t.getMonth()/3)+1}},4188:(e,t,n)=>{"use strict";function o(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:()=>o})},4226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(5093))},4274:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var r,i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var o;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,r=null!=n&&n.width?String(n.width):a;o=e.formattingValues[r]||e.formattingValues[a]}else{var i=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[i]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function c(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],r=t.match(a);if(!r)return null;var i,s=r[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e){for(var t=0;t<e.length;t++)if(e[t].test(s))return t}(l):function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].test(s))return t}(l);return i=e.valueCallback?e.valueCallback(c):c,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(s.length)}}}const d={code:"en-US",formatDistance:function(e,t,n){var a,r=o[e];return a="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},formatLong:i,formatRelative:function(e,t,n,o){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var o=n[0],a=e.match(r.parsePattern);if(!a)return null;var i=r.valueCallback?r.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(o.length)}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},4327:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(2118),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.default)(e,-n)}},4405:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===r||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===l||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||void 0!==e.getModuleId)},t.QP=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case i:case r:case d:case u:case m:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case p:case s:return e;default:return t}}case o:return t}}}},4418:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),o=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var o=e+" ";switch(n){case"ss":return o+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return o+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return o+(a(e)?"godziny":"godzin");case"ww":return o+(a(e)?"tygodnie":"tygodni");case"MM":return o+(a(e)?"miesiące":"miesięcy");case"yy":return o+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,o){return e?/D MMMM/.test(o)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4429:function(e,t,n){!function(e){"use strict";function t(e,t,n){var o=e+" ";switch(n){case"ss":return o+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return o+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return o+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return o+(1===e?"dan":"dana");case"MM":return o+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return o+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,o){if("m"===n)return t?"jedna minuta":o?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},4451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(5093))},4457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var o=" ";return(e%100>=20||e>=100&&e%100==0)&&(o=" de "),e+o+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(5093))},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(816);function a(e,t,n){return(t=(0,o.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},4496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(5093))},4566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4633:(e,t,n)=>{var o=n(3738).default;function a(){"use strict";e.exports=a=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},r=Object.prototype,i=r.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",d=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function h(e,t,n,o){var a=t&&t.prototype instanceof y?t:y,r=Object.create(a.prototype),i=new N(o||[]);return s(r,"_invoke",{value:A(e,n,i)}),r}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var f="suspendedStart",g="suspendedYield",v="executing",_="completed",b={};function y(){}function w(){}function k(){}var x={};p(x,c,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(I([])));S&&S!==r&&i.call(S,c)&&(x=S);var M=k.prototype=y.prototype=Object.create(x);function T(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,r,s,l){var c=m(e[a],e,r);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"==o(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var a;s(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,a){n(e,o,t,a)}))}return a=a?a.then(r,r):r()}})}function A(e,n,o){var a=f;return function(r,i){if(a===v)throw Error("Generator is already running");if(a===_){if("throw"===r)throw i;return{value:t,done:!0}}for(o.method=r,o.arg=i;;){var s=o.delegate;if(s){var l=D(s,o);if(l){if(l===b)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(a===f)throw a=_,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a=v;var c=m(e,n,o);if("normal"===c.type){if(a=o.done?_:g,c.arg===b)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(a=_,o.method="throw",o.arg=c.arg)}}}function D(e,n){var o=n.method,a=e.iterator[o];if(a===t)return n.delegate=null,"throw"===o&&e.iterator.return&&(n.method="return",n.arg=t,D(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),b;var r=m(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,b;var i=r.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(o(e)+" is not iterable")}return w.prototype=k,s(M,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:w,configurable:!0}),w.displayName=p(k,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,p(e,u,"GeneratorFunction")),e.prototype=Object.create(M),e},n.awrap=function(e){return{__await:e}},T(C.prototype),p(C.prototype,d,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,o,a,r){void 0===r&&(r=Promise);var i=new C(h(e,t,o,a),r);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},T(M),p(M,u,"Generator"),p(M,c,(function(){return this})),p(M,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},n.values=I,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(o,a){return s.type="throw",s.arg=e,n.next=o,a&&(n.method="next",n.arg=t),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var r=a?a.completion:{};return r.type=e,r.arg=t,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(r)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var a=o.arg;L(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:I(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),b}},n}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},4691:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,o=this._calendarEl[e],a=t&&t.hours();return n=o,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(o=o.apply(t)),o.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(5093))},4693:(e,t,n)=>{"use strict";Object.defineProperty(t,"sx",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"gL",{enumerable:!0,get:function(){return a.default}});var o=r(n(9089)),a=r(n(9626));function r(e){return e&&e.__esModule?e:{default:e}}},4697:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},4756:(e,t,n)=>{var o=n(4633)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime=r")(o)}},4838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var r=document.body;for(var i in o)a(r,o[i]);n={},o={}},t.log=function(){};var n={},o={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return a=e.classList,r="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(r,e),a.add(e)}));var a,r},t.remove=function(e,t){return a=e.classList,r="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(r,e),0===r[e]&&a.remove(e)}));var a,r}},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},4903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(5093))},5010:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getTime()===r.getTime()}},5050:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(5093))},5056:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5072:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var r={},i=[],s=0;s<e.length;s++){var l=e[s],c=o.base?l[0]+o.base:l[0],d=r[c]||0,u="".concat(c," ").concat(d);r[c]=d+1;var p=n(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var m=a(h,o);o.byIndex=s,t.splice(s,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var r=o(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<r.length;i++){var s=n(r[i]);t[s].references--}for(var l=o(e,a),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},5093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,o;function a(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,o=[],a=e.length;for(n=0;n<a;++n)o.push(t(e[n],n));return o}function h(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,o){return It(e,t,n,o,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,n=!1,a=e._d&&!isNaN(e._d.getTime());return a&&(t=f(e),n=o.call(t.parsedDateParts,(function(e){return null!=e})),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?a:(e._isValid=a,e._isValid)}function v(e){var t=m(NaN);return null!=e?h(f(t),e):f(t).userInvalidated=!0,t}o=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),o=n.length>>>0;for(t=0;t<o;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var _=a.momentProperties=[],b=!1;function y(e,t){var n,o,a,r=_.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=f(t)),c(t._locale)||(e._locale=t._locale),r>0)for(n=0;n<r;n++)c(a=t[o=_[n]])||(e[o]=a);return e}function w(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,a.updateOffset(this),b=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function x(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var n=!0;return h((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var o,r,i,l=[],c=arguments.length;for(r=0;r<c;r++){if(o="","object"==typeof arguments[r]){for(i in o+="\n["+r+"] ",arguments[0])s(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[r];l.push(o)}x(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var S,M={};function T(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),M[e]||(x(t),M[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,o=h({},e);for(n in t)s(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},h(o[n],e[n]),h(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)s(e,n)&&!s(t,n)&&i(e[n])&&(o[n]=h({},o[n]));return o}function D(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};function P(e,t,n){var o=""+Math.abs(e),a=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},O={};function R(e,t,n,o){var a=o;"string"==typeof o&&(a=function(){return this[o]()}),e&&(O[e]=a),t&&(O[t[0]]=function(){return P(a.apply(this,arguments),t[1],t[2])}),n&&(O[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=j(t,e.localeData()),I[t]=I[t]||function(e){var t,n,o,a=e.match(L);for(t=0,n=a.length;t<n;t++)O[a[t]]?a[t]=O[a[t]]:a[t]=(o=a[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,r="";for(o=0;o<n;o++)r+=C(a[o])?a[o].call(t,e):a[o];return r}}(t),I[t](e)):e.localeData().invalidDate()}function j(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,o),N.lastIndex=0,n-=1;return e}var Y={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function z(e){return"string"==typeof e?Y[e]||Y[e.toLowerCase()]:void 0}function B(e){var t,n,o={};for(n in e)s(e,n)&&(t=z(n))&&(o[t]=e[n]);return o}var H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var V,U=/\d/,W=/\d\d/,q=/\d{3}/,$=/\d{4}/,G=/[+-]?\d{6}/,K=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,Z=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ie=/^[1-9]\d?/,se=/^([1-9]\d|\d)/;function le(e,t,n){V[e]=C(t)?t:function(e,o){return e&&n?n:t}}function ce(e,t){return s(V,e)?V[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,o,a){return t||n||o||a}))))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}V={};var he={};function me(e,t){var n,o,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,n){n[t]=pe(e)}),o=e.length,n=0;n<o;n++)he[e[n]]=a}function fe(e,t){me(e,(function(e,n,o,a){o._w=o._w||{},t(e,o._w,o,a)}))}function ge(e,t,n){null!=t&&s(he,e)&&he[e](t,n._a,n,e)}function ve(e){return e%4==0&&e%100!=0||e%400==0}var _e=0,be=1,ye=2,we=3,ke=4,xe=5,Ee=6,Se=7,Me=8;function Te(e){return ve(e)?366:365}R("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",K,W),le("YYYY",Z,$),le("YYYYY",ee,G),le("YYYYYY",ee,G),me(["YYYYY","YYYYYY"],_e),me("YYYY",(function(e,t){t[_e]=2===e.length?a.parseTwoDigitYear(e):pe(e)})),me("YY",(function(e,t){t[_e]=a.parseTwoDigitYear(e)})),me("Y",(function(e,t){t[_e]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var Ce,Ae=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Le(this,e,n),a.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Le(e,t,n){var o,a,r,i,s;if(e.isValid()&&!isNaN(n)){switch(o=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(a?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(a?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(a?o.setUTCHours(n):o.setHours(n));case"Date":return void(a?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}r=n,i=e.month(),s=29!==(s=e.date())||1!==i||ve(r)?s:28,a?o.setUTCFullYear(r,i,s):o.setFullYear(r,i,s)}}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,o=(t%(n=12)+n)%n;return e+=(t-o)/12,1===o?ve(e)?29:28:31-o%7%2}Ce=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),le("M",K,ie),le("MM",K,W),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),me(["M","MM"],(function(e,t){t[be]=pe(e)-1})),me(["MMM","MMMM"],(function(e,t,n,o){var a=n._locale.monthsParse(e,o,n._strict);null!=a?t[be]=a:f(n).invalidMonth=e}));var Ie="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Fe=re,je=re;function Ye(e,t,n){var o,a,r,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=m([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ce.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ce.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Ce.call(this._shortMonthsParse,i))||-1!==(a=Ce.call(this._longMonthsParse,i))?a:null:-1!==(a=Ce.call(this._longMonthsParse,i))||-1!==(a=Ce.call(this._shortMonthsParse,i))?a:null}function ze(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=pe(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,o=e.date();return o=o<29?o:Math.min(o,Ne(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function Be(e){return null!=e?(ze(this,e),a.updateOffset(this,!0),this):Pe(this,"Month")}function He(){function e(e,t){return t.length-e.length}var t,n,o,a,r=[],i=[],s=[];for(t=0;t<12;t++)n=m([2e3,t]),o=de(this.monthsShort(n,"")),a=de(this.months(n,"")),r.push(o),i.push(a),s.push(a),s.push(o);r.sort(e),i.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ve(e,t,n,o,a,r,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,o,a,r,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,o,a,r,i),s}function Ue(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,n){var o=7+t-n;return-(7+Ue(e,0,o).getUTCDay()-t)%7+o-1}function qe(e,t,n,o,a){var r,i,s=1+7*(t-1)+(7+n-o)%7+We(e,o,a);return s<=0?i=Te(r=e-1)+s:s>Te(e)?(r=e+1,i=s-Te(e)):(r=e,i=s),{year:r,dayOfYear:i}}function $e(e,t,n){var o,a,r=We(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1;return i<1?o=i+Ge(a=e.year()-1,t,n):i>Ge(e.year(),t,n)?(o=i-Ge(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function Ge(e,t,n){var o=We(e,t,n),a=We(e+1,t,n);return(Te(e)-o+a)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),le("w",K,ie),le("ww",K,W),le("W",K,ie),le("WW",K,W),fe(["w","ww","W","WW"],(function(e,t,n,o){t[o.substr(0,1)]=pe(e)}));function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),le("d",K),le("e",K),le("E",K),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),fe(["dd","ddd","dddd"],(function(e,t,n,o){var a=n._locale.weekdaysParse(e,o,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e})),fe(["d","e","E"],(function(e,t,n,o){t[o]=pe(e)}));var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=re,et=re,tt=re;function nt(e,t,n){var o,a,r,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=m([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ce.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Ce.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ce.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Ce.call(this._weekdaysParse,i))||-1!==(a=Ce.call(this._shortWeekdaysParse,i))||-1!==(a=Ce.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Ce.call(this._shortWeekdaysParse,i))||-1!==(a=Ce.call(this._weekdaysParse,i))||-1!==(a=Ce.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ce.call(this._minWeekdaysParse,i))||-1!==(a=Ce.call(this._weekdaysParse,i))||-1!==(a=Ce.call(this._shortWeekdaysParse,i))?a:null}function ot(){function e(e,t){return t.length-e.length}var t,n,o,a,r,i=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),o=de(this.weekdaysMin(n,"")),a=de(this.weekdaysShort(n,"")),r=de(this.weekdays(n,"")),i.push(o),s.push(a),l.push(r),c.push(o),c.push(a),c.push(r);i.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function at(){return this.hours()%12||12}function rt(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function it(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,at),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+at.apply(this)+P(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+at.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),rt("a",!0),rt("A",!1),le("a",it),le("A",it),le("H",K,se),le("h",K,ie),le("k",K,ie),le("HH",K,W),le("hh",K,W),le("kk",K,W),le("hmm",J),le("hmmss",X),le("Hmm",J),le("Hmmss",X),me(["H","HH"],we),me(["k","kk"],(function(e,t,n){var o=pe(e);t[we]=24===o?0:o})),me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),me(["h","hh"],(function(e,t,n){t[we]=pe(e),f(n).bigHour=!0})),me("hmm",(function(e,t,n){var o=e.length-2;t[we]=pe(e.substr(0,o)),t[ke]=pe(e.substr(o)),f(n).bigHour=!0})),me("hmmss",(function(e,t,n){var o=e.length-4,a=e.length-2;t[we]=pe(e.substr(0,o)),t[ke]=pe(e.substr(o,2)),t[xe]=pe(e.substr(a)),f(n).bigHour=!0})),me("Hmm",(function(e,t,n){var o=e.length-2;t[we]=pe(e.substr(0,o)),t[ke]=pe(e.substr(o))})),me("Hmmss",(function(e,t,n){var o=e.length-4,a=e.length-2;t[we]=pe(e.substr(0,o)),t[ke]=pe(e.substr(o,2)),t[xe]=pe(e.substr(a))}));var st=De("Hours",!0);var lt,ct={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},dt={},ut={};function pt(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function mt(t){var o=null;if(void 0===dt[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{o=lt._abbr,n(5358)("./"+t),ft(o)}catch(e){dt[t]=null}return dt[t]}function ft(e,t){var n;return e&&((n=c(t)?vt(e):gt(e,t))?lt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function gt(e,t){if(null!==t){var n,o=ct;if(t.abbr=e,null!=dt[e])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=dt[e]._config;else if(null!=t.parentLocale)if(null!=dt[t.parentLocale])o=dt[t.parentLocale]._config;else{if(null==(n=mt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;o=n._config}return dt[e]=new D(A(o,t)),ut[e]&&ut[e].forEach((function(e){gt(e.name,e.config)})),ft(e),dt[e]}return delete dt[e],null}function vt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!r(e)){if(t=mt(e))return t;e=[e]}return function(e){for(var t,n,o,a,r=0;r<e.length;){for(t=(a=ht(e[r]).split("-")).length,n=(n=ht(e[r+1]))?n.split("-"):null;t>0;){if(o=mt(a.slice(0,t).join("-")))return o;if(n&&n.length>=t&&pt(a,n)>=t-1)break;t--}r++}return lt}(e)}function _t(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[be]<0||n[be]>11?be:n[ye]<1||n[ye]>Ne(n[_e],n[be])?ye:n[we]<0||n[we]>24||24===n[we]&&(0!==n[ke]||0!==n[xe]||0!==n[Ee])?we:n[ke]<0||n[ke]>59?ke:n[xe]<0||n[xe]>59?xe:n[Ee]<0||n[Ee]>999?Ee:-1,f(e)._overflowDayOfYear&&(t<_e||t>ye)&&(t=ye),f(e)._overflowWeeks&&-1===t&&(t=Se),f(e)._overflowWeekday&&-1===t&&(t=Me),f(e).overflow=t),e}var bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T|)(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T|)(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Et=/^\/?Date\((-?\d+)/i,St=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,o,a,r,i,s=e._i,l=bt.exec(s)||yt.exec(s),c=kt.length,d=xt.length;if(l){for(f(e).iso=!0,t=0,n=c;t<n;t++)if(kt[t][1].exec(l[1])){a=kt[t][0],o=!1!==kt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=d;t<n;t++)if(xt[t][1].exec(l[3])){r=(l[2]||" ")+xt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!wt.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(r||"")+(i||""),Lt(e)}else e._isValid=!1}function Ct(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function At(e){var t,n,o,a,r,i,s,l,c=St.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],o=c[3],a=c[2],r=c[5],i=c[6],s=c[7],l=[Ct(n),Oe.indexOf(o),parseInt(a,10),parseInt(r,10),parseInt(i,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,n){return!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Mt[e];if(t)return 0;var o=parseInt(n,10),a=o%100;return(o-a)/100*60+a}(c[8],c[9],c[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Dt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,o,r,i,s=[];if(!e._d){for(o=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[be]&&function(e){var t,n,o,a,r,i,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,i=4,n=Dt(t.GG,e._a[_e],$e(Ot(),1,4).year),o=Dt(t.W,1),((a=Dt(t.E,1))<1||a>7)&&(l=!0)):(r=e._locale._week.dow,i=e._locale._week.doy,c=$e(Ot(),r,i),n=Dt(t.gg,e._a[_e],c.year),o=Dt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(l=!0)):a=r),o<1||o>Ge(n,r,i)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=qe(n,o,a,r,i),e._a[_e]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=Dt(e._a[_e],o[_e]),(e._dayOfYear>Te(i)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ue(i,0,e._dayOfYear),e._a[be]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[ke]&&0===e._a[xe]&&0===e._a[Ee]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ue:Ve).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(f(e).weekdayMismatch=!0)}}function Lt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],f(e).empty=!0;var t,n,o,r,i,s,l,c=""+e._i,d=c.length,u=0;for(l=(o=j(e._f,e._locale).match(L)||[]).length,t=0;t<l;t++)r=o[t],(n=(c.match(ce(r,e))||[])[0])&&((i=c.substr(0,c.indexOf(n))).length>0&&f(e).unusedInput.push(i),c=c.slice(c.indexOf(n)+n.length),u+=n.length),O[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),ge(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=d-u,c.length>0&&f(e).unusedInput.push(c),e._a[we]<=12&&!0===f(e).bigHour&&e._a[we]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),null!==(s=f(e).era)&&(e._a[_e]=e._locale.erasConvertYear(s,e._a[_e])),Pt(e),_t(e)}else At(e);else Tt(e)}function Nt(e){var t=e._i,n=e._f;return e._locale=e._locale||vt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(_t(t)):(u(t)?e._d=t:r(n)?function(e){var t,n,o,a,r,i,s=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<l;a++)r=0,i=!1,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Lt(t),g(t)&&(i=!0),r+=f(t).charsLeftOver,r+=10*f(t).unusedTokens.length,f(t).score=r,s?r<o&&(o=r,n=t):(null==o||r<o||i)&&(o=r,n=t,i&&(s=!0));h(e,n||t)}(e):n?Lt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=Et.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,At(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),Pt(e)):i(t)?function(e){if(!e._d){var t=B(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Pt(e)}}(e):d(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function It(e,t,n,o,a){var s,c={};return!0!==t&&!1!==t||(o=t,t=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(i(e)&&l(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=o,(s=new w(_t(Nt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ot(e,t,n,o){return It(e,t,n,o,!1)}a.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Rt=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Ft=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function jt(e,t){var n,o;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var Yt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zt(e){var t=B(e),n=t.year||0,o=t.quarter||0,a=t.month||0,r=t.week||t.isoWeek||0,i=t.day||0,l=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,o=!1,a=Yt.length;for(t in e)if(s(e,t)&&(-1===Ce.call(Yt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[Yt[n]]){if(o)return!1;parseFloat(e[Yt[n]])!==pe(e[Yt[n]])&&(o=!0)}return!0}(t),this._milliseconds=+u+1e3*d+6e4*c+1e3*l*60*60,this._days=+i+7*r,this._months=+a+3*o+12*n,this._data={},this._locale=vt(),this._bubble()}function Bt(e){return e instanceof zt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Vt(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}Vt("Z",":"),Vt("ZZ",""),le("Z",ae),le("ZZ",ae),me(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Wt(ae,e)}));var Ut=/([\+\-]|\d\d)/gi;function Wt(e,t){var n,o,a=(t||"").match(e);return null===a?null:0===(o=60*(n=((a[a.length-1]||[])+"").match(Ut)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?o:-o}function qt(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(k(e)||u(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),a.updateOffset(n,!1),n):Ot(e).local()}function $t(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Kt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Jt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xt(e,t){var n,o,a,r,i,l,c=e,u=null;return Bt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(u=Kt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:pe(u[ye])*n,h:pe(u[we])*n,m:pe(u[ke])*n,s:pe(u[xe])*n,ms:pe(Ht(1e3*u[Ee]))*n}):(u=Jt.exec(e))?(n="-"===u[1]?-1:1,c={y:Qt(u[2],n),M:Qt(u[3],n),w:Qt(u[4],n),d:Qt(u[5],n),h:Qt(u[6],n),m:Qt(u[7],n),s:Qt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(r=Ot(c.from),i=Ot(c.to),a=r.isValid()&&i.isValid()?(i=qt(i,r),r.isBefore(i)?l=Zt(r,i):((l=Zt(i,r)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),o=new zt(c),Bt(e)&&s(e,"_locale")&&(o._locale=e._locale),Bt(e)&&s(e,"_isValid")&&(o._isValid=e._isValid),o}function Qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,o){var a;return null===o||isNaN(+o)||(T(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=o,o=a),tn(this,Xt(n,o),e),this}}function tn(e,t,n,o){var r=t._milliseconds,i=Ht(t._days),s=Ht(t._months);e.isValid()&&(o=null==o||o,s&&ze(e,Pe(e,"Month")+s*n),i&&Le(e,"Date",Pe(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&a.updateOffset(e,i||s))}Xt.fn=zt.prototype,Xt.invalid=function(){return Xt(NaN)};var nn=en(1,"add"),on=en(-1,"subtract");function an(e){return"string"==typeof e||e instanceof String}function rn(e){return k(e)||u(e)||an(e)||d(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&an(e)})).length),t&&n}(e)||function(e){var t,n,o=i(e)&&!l(e),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=r.length;for(t=0;t<c;t+=1)n=r[t],a=a||s(e,n);return o&&a}(e)||null==e}function sn(e,t){if(e.date()<t.date())return-sn(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(n+1,"months")-o)))||0}function ln(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function dn(){return this._locale}var un=1e3,pn=6e4,hn=36e5,mn=126227808e5;function fn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mn:new Date(e,t,n).valueOf()}function vn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mn:Date.UTC(e,t,n)}function _n(e,t){return t.erasAbbrRegex(e)}function bn(){var e,t,n,o,a,r=[],i=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=de(c[e].name),o=de(c[e].abbr),a=de(c[e].narrow),i.push(n),r.push(o),s.push(a),l.push(n),l.push(o),l.push(a);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function yn(e,t){R(0,[e,e.length],0,t)}function wn(e,t,n,o,a){var r;return null==e?$e(this,o,a).year:(t>(r=Ge(e,o,a))&&(t=r),kn.call(this,e,t,n,o,a))}function kn(e,t,n,o,a){var r=qe(e,t,n,o,a),i=Ue(r.year,0,r.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),le("N",_n),le("NN",_n),le("NNN",_n),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),me(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,o){var a=n._locale.erasParse(e,o,n._strict);a?f(n).era=a:f(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),me(["y","yy","yyy","yyyy"],_e),me(["yo"],(function(e,t,n,o){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_e]=n._locale.eraYearOrdinalParse(e,a):t[_e]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),yn("gggg","weekYear"),yn("ggggg","weekYear"),yn("GGGG","isoWeekYear"),yn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",K,W),le("gg",K,W),le("GGGG",Z,$),le("gggg",Z,$),le("GGGGG",ee,G),le("ggggg",ee,G),fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,o){t[o.substr(0,2)]=pe(e)})),fe(["gg","GG"],(function(e,t,n,o){t[o]=a.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),le("Q",U),me("Q",(function(e,t){t[be]=3*(pe(e)-1)})),R("D",["DD",2],"Do","date"),le("D",K,ie),le("DD",K,W),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),me(["D","DD"],ye),me("Do",(function(e,t){t[ye]=pe(e.match(K)[0])}));var xn=De("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Q),le("DDDD",q),me(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=pe(e)})),R("m",["mm",2],0,"minute"),le("m",K,se),le("mm",K,W),me(["m","mm"],ke);var En=De("Minutes",!1);R("s",["ss",2],0,"second"),le("s",K,se),le("ss",K,W),me(["s","ss"],xe);var Sn,Mn,Tn=De("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",Q,U),le("SS",Q,W),le("SSS",Q,q),Sn="SSSS";Sn.length<=9;Sn+="S")le(Sn,te);function Cn(e,t){t[Ee]=pe(1e3*("0."+e))}for(Sn="S";Sn.length<=9;Sn+="S")me(Sn,Cn);Mn=De("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var An=w.prototype;function Dn(e){return e}An.add=nn,An.calendar=function(e,t){1===arguments.length&&(arguments[0]?rn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=i(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)o=o||s(e,a[t]);return n&&o}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),o=qt(n,this).startOf("day"),r=a.calendarFormat(this,o)||"sameElse",c=t&&(C(t[r])?t[r].call(this,n):t[r]);return this.format(c||this.localeData().calendar(r,this,Ot(n)))},An.clone=function(){return new w(this)},An.diff=function(e,t,n){var o,a,r;if(!this.isValid())return NaN;if(!(o=qt(e,this)).isValid())return NaN;switch(a=6e4*(o.utcOffset()-this.utcOffset()),t=z(t)){case"year":r=sn(this,o)/12;break;case"month":r=sn(this,o);break;case"quarter":r=sn(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-a)/864e5;break;case"week":r=(this-o-a)/6048e5;break;default:r=this-o}return n?r:ue(r)},An.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-fn(t+(this._isUTC?0:this.utcOffset()*pn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=pn-fn(t,pn)-1;break;case"second":t=this._d.valueOf(),t+=un-fn(t,un)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},An.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},An.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ot(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},An.fromNow=function(e){return this.from(Ot(),e)},An.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||Ot(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},An.toNow=function(e){return this.to(Ot(),e)},An.get=function(e){return C(this[e=z(e)])?this[e]():this},An.invalidAt=function(){return f(this).overflow},An.isAfter=function(e,t){var n=k(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},An.isBefore=function(e,t){var n=k(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},An.isBetween=function(e,t,n,o){var a=k(e)?e:Ot(e),r=k(t)?t:Ot(t);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(o=o||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===o[1]?this.isBefore(r,n):!this.isAfter(r,n))},An.isSame=function(e,t){var n,o=k(e)?e:Ot(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},An.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},An.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},An.isValid=function(){return g(this)},An.lang=cn,An.locale=ln,An.localeData=dn,An.max=Ft,An.min=Rt,An.parsingFlags=function(){return h({},f(this))},An.set=function(e,t){if("object"==typeof e){var n,o=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:H[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=B(e)),a=o.length;for(n=0;n<a;n++)this[o[n].unit](e[o[n].unit])}else if(C(this[e=z(e)]))return this[e](t);return this},An.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fn(t+(this._isUTC?0:this.utcOffset()*pn),hn);break;case"minute":t=this._d.valueOf(),t-=fn(t,pn);break;case"second":t=this._d.valueOf(),t-=fn(t,un)}return this._d.setTime(t),a.updateOffset(this,!0),this},An.subtract=on,An.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},An.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},An.toDate=function(){return new Date(this.valueOf())},An.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},An.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(An[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),An.toJSON=function(){return this.isValid()?this.toISOString():null},An.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},An.unix=function(){return Math.floor(this.valueOf()/1e3)},An.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},An.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},An.eraName=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""},An.eraNarrow=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""},An.eraAbbr=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""},An.eraYear=function(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-a(r[e].since).year())*n+r[e].offset;return this.year()},An.year=Ae,An.isLeapYear=function(){return ve(this.year())},An.weekYear=function(e){return wn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},An.isoWeekYear=function(e){return wn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},An.quarter=An.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},An.month=Be,An.daysInMonth=function(){return Ne(this.year(),this.month())},An.week=An.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},An.isoWeek=An.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},An.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},An.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},An.isoWeeksInYear=function(){return Ge(this.year(),1,4)},An.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},An.date=xn,An.day=An.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Pe(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},An.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},An.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},An.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},An.hour=An.hours=st,An.minute=An.minutes=En,An.second=An.seconds=Tn,An.millisecond=An.milliseconds=Mn,An.utcOffset=function(e,t,n){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=$t(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?tn(this,Xt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:$t(this)},An.utc=function(e){return this.utcOffset(0,e)},An.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract($t(this),"m")),this},An.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},An.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},An.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},An.isLocal=function(){return!!this.isValid()&&!this._isUTC},An.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},An.isUtc=Gt,An.isUTC=Gt,An.zoneAbbr=function(){return this._isUTC?"UTC":""},An.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},An.dates=E("dates accessor is deprecated. Use date instead.",xn),An.months=E("months accessor is deprecated. Use month instead",Be),An.years=E("years accessor is deprecated. Use year instead",Ae),An.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),An.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return y(t,this),(t=Nt(t))._a?(e=t._isUTC?m(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var o,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0;for(o=0;o<a;o++)(n&&e[o]!==t[o]||!n&&pe(e[o])!==pe(t[o]))&&i++;return i+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Pn=D.prototype;function Ln(e,t,n,o){var a=vt(),r=m().set(o,t);return a[n](r,e)}function Nn(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ln(e,t,n,"month");var o,a=[];for(o=0;o<12;o++)a[o]=Ln(e,o,n,"month");return a}function In(e,t,n,o){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var a,r=vt(),i=e?r._week.dow:0,s=[];if(null!=n)return Ln(t,(n+i)%7,o,"day");for(a=0;a<7;a++)s[a]=Ln(t,(a+i)%7,o,"day");return s}Pn.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return C(o)?o.call(t,n):o},Pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(L).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Pn.invalidDate=function(){return this._invalidDate},Pn.ordinal=function(e){return this._ordinal.replace("%d",e)},Pn.preparse=Dn,Pn.postformat=Dn,Pn.relativeTime=function(e,t,n,o){var a=this._relativeTime[n];return C(a)?a(e,t,n,o):a.replace(/%d/i,e)},Pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)},Pn.set=function(e){var t,n;for(n in e)s(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Pn.eras=function(e,t){var n,o,r,i=this._eras||vt("en")._eras;for(n=0,o=i.length;n<o;++n)switch("string"==typeof i[n].since&&(r=a(i[n].since).startOf("day"),i[n].since=r.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=a(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}return i},Pn.erasParse=function(e,t,n){var o,a,r,i,s,l=this.eras();for(e=e.toUpperCase(),o=0,a=l.length;o<a;++o)if(r=l[o].name.toUpperCase(),i=l[o].abbr.toUpperCase(),s=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[o];break;case"NNNN":if(r===e)return l[o];break;case"NNNNN":if(s===e)return l[o]}else if([r,i,s].indexOf(e)>=0)return l[o]},Pn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},Pn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||bn.call(this),e?this._erasAbbrRegex:this._erasRegex},Pn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||bn.call(this),e?this._erasNameRegex:this._erasRegex},Pn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||bn.call(this),e?this._erasNarrowRegex:this._erasRegex},Pn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},Pn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Pn.monthsParse=function(e,t,n){var o,a,r;if(this._monthsParseExact)return Ye.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(a=m([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},Pn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=je),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Pn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Pn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},Pn.firstDayOfYear=function(){return this._week.doy},Pn.firstDayOfWeek=function(){return this._week.dow},Pn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ke(n,this._week.dow):e?n[e.day()]:n},Pn.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Pn.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Pn.weekdaysParse=function(e,t,n){var o,a,r;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(a=m([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},Pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ot.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=E("moment.lang is deprecated. Use moment.locale instead.",ft),a.langData=E("moment.langData is deprecated. Use moment.localeData instead.",vt);var On=Math.abs;function Rn(e,t,n,o){var a=Xt(t,n);return e._milliseconds+=o*a._milliseconds,e._days+=o*a._days,e._months+=o*a._months,e._bubble()}function Fn(e){return e<0?Math.floor(e):Math.ceil(e)}function jn(e){return 4800*e/146097}function Yn(e){return 146097*e/4800}function zn(e){return function(){return this.as(e)}}var Bn=zn("ms"),Hn=zn("s"),Vn=zn("m"),Un=zn("h"),Wn=zn("d"),qn=zn("w"),$n=zn("M"),Gn=zn("Q"),Kn=zn("y"),Jn=Bn;function Xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Qn=Xn("milliseconds"),Zn=Xn("seconds"),eo=Xn("minutes"),to=Xn("hours"),no=Xn("days"),oo=Xn("months"),ao=Xn("years");var ro=Math.round,io={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function so(e,t,n,o,a){return a.relativeTime(t||1,!!n,e,o)}var lo=Math.abs;function co(e){return(e>0)-(e<0)||+e}function uo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o,a,r,i,s,l=lo(this._milliseconds)/1e3,c=lo(this._days),d=lo(this._months),u=this.asSeconds();return u?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(d/12),d%=12,o=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=u<0?"-":"",r=co(this._months)!==co(u)?"-":"",i=co(this._days)!==co(u)?"-":"",s=co(this._milliseconds)!==co(u)?"-":"",a+"P"+(n?r+n+"Y":"")+(d?r+d+"M":"")+(c?i+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+o+"S":"")):"P0D"}var po=zt.prototype;return po.isValid=function(){return this._isValid},po.abs=function(){var e=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),e.milliseconds=On(e.milliseconds),e.seconds=On(e.seconds),e.minutes=On(e.minutes),e.hours=On(e.hours),e.months=On(e.months),e.years=On(e.years),this},po.add=function(e,t){return Rn(this,e,t,1)},po.subtract=function(e,t){return Rn(this,e,t,-1)},po.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+jn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},po.asMilliseconds=Bn,po.asSeconds=Hn,po.asMinutes=Vn,po.asHours=Un,po.asDays=Wn,po.asWeeks=qn,po.asMonths=$n,po.asQuarters=Gn,po.asYears=Kn,po.valueOf=Jn,po._bubble=function(){var e,t,n,o,a,r=this._milliseconds,i=this._days,s=this._months,l=this._data;return r>=0&&i>=0&&s>=0||r<=0&&i<=0&&s<=0||(r+=864e5*Fn(Yn(s)+i),i=0,s=0),l.milliseconds=r%1e3,e=ue(r/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,i+=ue(n/24),s+=a=ue(jn(i)),i-=Fn(Yn(a)),o=ue(s/12),s%=12,l.days=i,l.months=s,l.years=o,this},po.clone=function(){return Xt(this)},po.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},po.milliseconds=Qn,po.seconds=Zn,po.minutes=eo,po.hours=to,po.days=no,po.weeks=function(){return ue(this.days()/7)},po.months=oo,po.years=ao,po.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,o,a=!1,r=io;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(r=Object.assign({},io,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),o=function(e,t,n,o){var a=Xt(e).abs(),r=ro(a.as("s")),i=ro(a.as("m")),s=ro(a.as("h")),l=ro(a.as("d")),c=ro(a.as("M")),d=ro(a.as("w")),u=ro(a.as("y")),p=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||d<=1&&["w"]||d<n.w&&["ww",d]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,p[3]=+e>0,p[4]=o,so.apply(null,p)}(this,!a,r,n=this.localeData()),a&&(o=n.pastFuture(+this,o)),n.postformat(o)},po.toISOString=uo,po.toString=uo,po.toJSON=uo,po.locale=ln,po.localeData=dn,po.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),po.lang=cn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),me("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),me("x",(function(e,t,n){n._d=new Date(pe(e))})),a.version="2.30.1",t=Ot,a.fn=An,a.min=function(){return jt("isBefore",[].slice.call(arguments,0))},a.max=function(){return jt("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=m,a.unix=function(e){return Ot(1e3*e)},a.months=function(e,t){return Nn(e,t,"months")},a.isDate=u,a.locale=ft,a.invalid=v,a.duration=Xt,a.isMoment=k,a.weekdays=function(e,t,n){return In(e,t,n,"weekdays")},a.parseZone=function(){return Ot.apply(null,arguments).parseZone()},a.localeData=vt,a.isDuration=Bt,a.monthsShort=function(e,t){return Nn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return In(e,t,n,"weekdaysMin")},a.defineLocale=gt,a.updateLocale=function(e,t){if(null!=t){var n,o,a=ct;null!=dt[e]&&null!=dt[e].parentLocale?dt[e].set(A(dt[e]._config,t)):(null!=(o=mt(e))&&(a=o._config),t=A(a,t),null==o&&(t.abbr=e),(n=new D(t)).parentLocale=dt[e],dt[e]=n),ft(e)}else null!=dt[e]&&(null!=dt[e].parentLocale?(dt[e]=dt[e].parentLocale,e===ft()&&ft(e)):null!=dt[e]&&delete dt[e]);return dt[e]},a.locales=function(){return S(dt)},a.weekdaysShort=function(e,t,n){return In(e,t,n,"weekdaysShort")},a.normalizeUnits=z,a.relativeTimeRounding=function(e){return void 0===e?ro:"function"==typeof e&&(ro=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==io[e]&&(void 0===t?io[e]:(io[e]=t,"s"===e&&(io.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=An,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},5096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var o=e%10;return e+(t[o]||t[e%100-o]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(5093))},5177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},5178:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(1923)),a=i(n(6540)),r=n(3684);function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)("div",{target:"e1l5cpc30"})("@keyframes dual-ring-spin{0%{transform:rotate(0deg);}100%{transform:rotate(180deg);}}padding:0 5px;display:block;width:auto;height:auto;:after{content:' ';display:block;width:16px;height:16px;border-radius:50%;border-width:1px;border-style:solid;border-color:",(function(e){return e.color})," transparent;animation:dual-ring-spin 0.7s ease-in-out infinite;margin:0 0 0 -10px;}");t.default=function(e){var t=e.props;return t.loadingRenderer?t.loadingRenderer({props:t}):a.default.createElement(s,{className:r.LIB_NAME+"-loading",color:t.color})}},5185:(e,t,n)=>{"use strict";var o,a=(o=n(5556))&&o.__esModule?o:{default:o};t.__esModule=!0,t.default=void 0;var r=Object.freeze({activeCursorItem:a.default.func,addItem:a.default.func.isRequired,areAllSelected:a.default.func.isRequired,clearAll:a.default.func.isRequired,createNew:a.default.func.isRequired,dropDown:a.default.func.isRequired,getInputSize:a.default.func.isRequired,getSelectBounds:a.default.func.isRequired,getSelectRef:a.default.func.isRequired,handleKeyDown:a.default.func.isRequired,isSelected:a.default.func.isRequired,removeItem:a.default.func.isRequired,safeString:a.default.func.isRequired,searchResults:a.default.func.isRequired,selectAll:a.default.func.isRequired,setSearch:a.default.func.isRequired,sortBy:a.default.func.isRequired,toggleSelectAll:a.default.func.isRequired});t.default=r},5228:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var r,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))n.call(r,c)&&(s[c]=r[c]);if(t){i=t(r);for(var d=0;d<i.length;d++)o.call(r,i[d])&&(s[i[d]]=r[i[d]])}}return s}},5241:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=c(n(1923)),a=c(n(6540)),r=n(3684),i=c(n(3139)),s=c(n(1039)),l=n(3869);function c(e){return e&&e.__esModule?e:{default:e}}var d=function(e,t){var n=t.getSelectRef().getBoundingClientRect(),o=n.bottom+parseInt(e.dropdownHeight,10)+parseInt(e.dropdownGap,10);return"auto"===e.dropdownPosition?o>(0,l.isomorphicWindow)().innerHeight&&o>n.top?"top":"bottom":e.dropdownPosition},u=(0,o.default)("div",{target:"e1qjn9k92"})("position:absolute;",(function(e){var t=e.selectBounds,n=e.dropdownGap;return"top"===e.dropdownPosition?"bottom: "+(t.height+2+n)+"px":"top: "+(t.height+2+n)+"px"}),";",(function(e){var t=e.selectBounds,n=e.dropdownGap,o=e.dropdownPosition;return e.portal?"\n      position: fixed;\n      "+("bottom"===o?"top: "+(t.bottom+n)+"px;":"bottom: "+((0,l.isomorphicWindow)().innerHeight-t.top+n)+"px;")+"\n      left: "+(t.left-1)+"px;":"left: -1px;"}),";border:1px solid #ccc;width:",(function(e){return e.selectBounds.width}),"px;padding:0;display:flex;flex-direction:column;background:#fff;border-radius:2px;box-shadow:0 0 10px 0 ",(function(){return(0,l.hexToRGBA)("#000000",.2)}),";max-height:",(function(e){return e.dropdownHeight}),";overflow:auto;z-index:9;:focus{outline:none;}"),p=(0,o.default)("div",{target:"e1qjn9k91"})("color:",(function(e){return e.color}),";padding:5px 10px;:hover{background:",(function(e){var t=e.color;return t&&(0,l.hexToRGBA)(t,.1)}),";outline:none;cursor:pointer;}"),h=(0,o.default)("div",{target:"e1qjn9k90"})("color:",(function(e){return e.color}),";padding:5px 10px;position:sticky;bottom:0;margin:0;opacity:1;background:#fff;box-shadow:0 0 10px 0 ",(function(){return(0,l.hexToRGBA)("#000000",.2)}),";:hover{outline:none;cursor:pointer;}");t.default=function(e){var t=e.props,n=e.state,o=e.methods;return a.default.createElement(u,{tabIndex:"-1","aria-expanded":"true",role:"list",dropdownPosition:d(t,o),selectBounds:n.selectBounds,portal:t.portal,dropdownGap:t.dropdownGap,dropdownHeight:t.dropdownHeight,className:r.LIB_NAME+"-dropdown "+r.LIB_NAME+"-dropdown-position-"+d(t,o)},t.dropdownRenderer?t.dropdownRenderer({props:t,state:n,methods:o}):a.default.createElement(a.default.Fragment,null,t.create&&n.search&&!(0,l.valueExistInSelected)(n.search,[].concat(n.values,t.options),t)&&a.default.createElement(p,{role:"button",className:r.LIB_NAME+"-dropdown-add-new",color:t.color,onClick:function(){return o.createNew(n.search)}},t.createNewLabel.replace("{search}",'"'+n.search+'"')),0===n.searchResults.length?a.default.createElement(i.default,{className:r.LIB_NAME+"-no-data",state:n,props:t,methods:o}):n.searchResults.map((function(e,r){return a.default.createElement(s.default,{key:e[t.valueField].toString(),item:e,itemIndex:r,state:n,props:t,methods:o})})),t.selectAll&&t.options&&t.multi&&a.default.createElement(h,{role:"button",className:r.LIB_NAME+"-dropdown-select-all",color:t.color,onClick:function(){return o.areAllSelected()?o.clearAll():o.selectAll()}},o.areAllSelected()?t.clearAllLabel:t.selectAllLabel)))}},5287:(e,t,n)=>{"use strict";var o=n(5228),a=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,d=60116;if("function"==typeof Symbol&&Symbol.for){var u=Symbol.for;a=u("react.element"),r=u("react.portal"),t.Fragment=u("react.fragment"),t.StrictMode=u("react.strict_mode"),t.Profiler=u("react.profiler"),i=u("react.provider"),s=u("react.context"),l=u("react.forward_ref"),t.Suspense=u("react.suspense"),c=u("react.memo"),d=u("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f={};function g(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}function v(){}function _(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=_.prototype=new v;b.constructor=_,o(b,g.prototype),b.isPureReactComponent=!0;var y={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var o,r={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,o)&&!k.hasOwnProperty(o)&&(r[o]=t[o]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];r.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===r[o]&&(r[o]=l[o]);return{$$typeof:a,type:e,key:i,ref:s,props:r,_owner:y.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var S=/\/+/g;function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case a:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+M(l,0):o,Array.isArray(i)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),T(i,t,n,"",(function(e){return e}))):null!=i&&(E(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(S,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var d=o+M(s=e[c],c);l+=T(s,t,n,d,i)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof d)for(e=d.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,d=o+M(s,c++),i);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function C(e,t,n){if(null==e)return e;var o=[],a=0;return T(e,o,"","",(function(e){return t.call(n,e,a++)})),o}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var D={current:null};function P(){var e=D.current;if(null===e)throw Error(h(321));return e}var L={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(h(143));return e}},t.Component=g,t.PureComponent=_,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var r=o({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=y.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)w.call(t,d)&&!k.hasOwnProperty(d)&&(r[d]=void 0===t[d]&&void 0!==c?c[d]:t[d])}var d=arguments.length-2;if(1===d)r.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];r.children=c}return{$$typeof:a,type:e.type,key:i,ref:s,props:r,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},5290:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(2284),a=n(551);function r(e){return(0,a.A)(1,arguments),e instanceof Date||"object"===(0,o.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}},5358:(e,t,n)=>{var o={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function a(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=r,e.exports=a,a.id=5358},5498:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(3662);function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.A)(e,t)}},5533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},5543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},5556:(e,t,n)=>{e.exports=n(2694)()},5654:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(7767),a=n(551),r=n(4188);function i(e,t){(0,a.A)(2,arguments);var n=(0,r.A)(t);return(0,o.A)(e,-n)}},5655:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var o=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),a=Math.abs,r=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,n){return e.slice(t,n)}function p(e){return e.length}function h(e){return e.length}function m(e,t){return t.push(e),e}var f=1,g=1,v=0,_=0,b=0,y="";function w(e,t,n,o,a,r,i){return{value:e,root:t,parent:n,type:o,props:a,children:r,line:f,column:g,length:i,return:""}}function k(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return b=_>0?d(y,--_):0,g--,10===b&&(g=1,f--),b}function E(){return b=_<v?d(y,_++):0,g++,10===b&&(g=1,f++),b}function S(){return d(y,_)}function M(){return _}function T(e,t){return u(y,e,t)}function C(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A(e){return f=g=1,v=p(y=e),_=0,[]}function D(e){return y="",e}function P(e){return s(T(_-1,I(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=S())&&b<33;)E();return C(e)>2||C(b)>3?"":" "}function N(e,t){for(;--t&&E()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return T(e,M()+(t<6&&32==S()&&32==E()))}function I(e){for(;E();)switch(b){case e:return _;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:E()}return _}function O(e,t){for(;E()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+T(t,_-1)+"*"+r(47===e?e:E())}function R(e){for(;!C(S());)E();return T(e,_)}var F="-ms-",j="-moz-",Y="-webkit-",z="comm",B="rule",H="decl",V="@keyframes";function U(e,t){for(var n="",o=h(e),a=0;a<o;a++)n+=t(e[a],a,e,t)||"";return n}function W(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case z:return"";case V:return e.return=e.value+"{"+U(e.children,o)+"}";case B:e.value=e.props.join(",")}return p(n=U(e.children,o))?e.return=e.value+"{"+n+"}":""}function q(e){return D($("",null,null,null,[""],e=A(e),0,[0],e))}function $(e,t,n,o,a,i,s,u,h){for(var f=0,g=0,v=s,_=0,b=0,y=0,w=1,k=1,T=1,C=0,A="",D=a,I=i,F=o,j=A;k;)switch(y=C,C=E()){case 40:if(108!=y&&58==d(j,v-1)){-1!=c(j+=l(P(C),"&","&\f"),"&\f")&&(T=-1);break}case 34:case 39:case 91:j+=P(C);break;case 9:case 10:case 13:case 32:j+=L(y);break;case 92:j+=N(M()-1,7);continue;case 47:switch(S()){case 42:case 47:m(K(O(E(),M()),t,n),h);break;default:j+="/"}break;case 123*w:u[f++]=p(j)*T;case 125*w:case 59:case 0:switch(C){case 0:case 125:k=0;case 59+g:-1==T&&(j=l(j,/\f/g,"")),b>0&&p(j)-v&&m(b>32?J(j+";",o,n,v-1):J(l(j," ","")+";",o,n,v-2),h);break;case 59:j+=";";default:if(m(F=G(j,t,n,f,g,a,u,A,D=[],I=[],v),i),123===C)if(0===g)$(j,t,F,F,D,i,v,u,I);else switch(99===_&&110===d(j,3)?100:_){case 100:case 108:case 109:case 115:$(e,F,F,o&&m(G(e,F,F,0,0,a,u,A,a,D=[],v),I),a,I,v,u,o?D:I);break;default:$(j,F,F,F,[""],I,0,u,I)}}f=g=b=0,w=T=1,A=j="",v=s;break;case 58:v=1+p(j),b=y;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==x())continue;switch(j+=r(C),C*w){case 38:T=g>0?1:(j+="\f",-1);break;case 44:u[f++]=(p(j)-1)*T,T=1;break;case 64:45===S()&&(j+=P(E())),_=S(),g=v=p(A=j+=R(M())),C++;break;case 45:45===y&&2==p(j)&&(w=0)}}return i}function G(e,t,n,o,r,i,c,d,p,m,f){for(var g=r-1,v=0===r?i:[""],_=h(v),b=0,y=0,k=0;b<o;++b)for(var x=0,E=u(e,g+1,g=a(y=c[b])),S=e;x<_;++x)(S=s(y>0?v[x]+" "+E:l(E,/&\f/g,v[x])))&&(p[k++]=S);return w(e,t,n,0===r?B:d,p,m,f)}function K(e,t,n){return w(e,t,n,z,r(b),u(e,2,-2),0)}function J(e,t,n,o){return w(e,t,n,H,u(e,0,o),u(e,o+1,-1),o)}var X=function(e,t,n){for(var o=0,a=0;o=a,a=S(),38===o&&12===a&&(t[n]=1),!C(a);)E();return T(e,_)},Q=new WeakMap,Z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!o){Q.set(e,!0);for(var a=[],i=function(e,t){return D(function(e,t){var n=-1,o=44;do{switch(C(o)){case 0:38===o&&12===S()&&(t[n]=1),e[n]+=X(_-1,t,n);break;case 2:e[n]+=P(o);break;case 4:if(44===o){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=r(o)}}while(o=E());return e}(A(e),t))}(t,a),s=n.props,l=0,c=0;l<i.length;l++)for(var d=0;d<s.length;d++,c++)e.props[c]=a[l]?i[l].replace(/&\f/g,s[d]):s[d]+" "+i[l]}}},ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function te(e,t){switch(function(e,t){return 45^d(e,0)?(((t<<2^d(e,0))<<2^d(e,1))<<2^d(e,2))<<2^d(e,3):0}(e,t)){case 5103:return Y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+j+e+F+e+e;case 6828:case 4268:return Y+e+F+e+e;case 6165:return Y+e+F+"flex-"+e+e;case 5187:return Y+e+l(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return Y+e+F+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return Y+e+F+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+F+l(e,"shrink","negative")+e;case 5292:return Y+e+F+l(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+l(e,"-grow","")+Y+e+F+l(e,"grow","positive")+e;case 4554:return Y+l(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,Y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(p(e)-1-t>6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+j+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+Y)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(45===d(e,14)?"inline-":"")+"box$3$1"+Y+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return Y+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+F+e+e}return e}var ne=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case V:return U([k(e,{value:l(e.value,"@","@"+Y)})],o);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return U([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return U([k(e,{props:[l(t,/:(plac\w+)/,":"+Y+"input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],o)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a,r,i=e.stylisPlugins||ne,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,d,u,p,m=[W,(p=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(d=[Z,ee].concat(i,m),u=h(d),function(e,t,n,o){for(var a="",r=0;r<u;r++)a+=d[r](e,t,n,o)||"";return a});r=function(e,t,n,o){c=n,U(q(e?e+"{"+t.styles+"}":t.styles),f),o&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new o({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:r};return g.sheet.hydrate(l),g}},5684:(e,t,n)=>{"use strict";n.d(t,{E:()=>g,T:()=>p,c:()=>m,h:()=>c,i:()=>l,w:()=>u});var o=n(6540),a=n(5655),r=n(41),i=n(3174),s=n(1287),l=!0,c={}.hasOwnProperty,d=o.createContext("undefined"!=typeof HTMLElement?(0,a.A)({key:"css"}):null);d.Provider;var u=function(e){return(0,o.forwardRef)((function(t,n){var a=(0,o.useContext)(d);return e(t,a,n)}))};l||(u=function(e){return function(t){var n=(0,o.useContext)(d);return null===n?(n=(0,a.A)({key:"css"}),o.createElement(d.Provider,{value:n},e(t,n))):e(t,n)}});var p=o.createContext({}),h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var n={};for(var o in t)c.call(t,o)&&(n[o]=t[o]);return n[h]=e,n},f=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return(0,r.SF)(t,n,o),(0,s.s)((function(){return(0,r.sk)(t,n,o)})),null},g=u((function(e,t,n){var a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var s=e[h],l=[a],d="";"string"==typeof e.className?d=(0,r.Rk)(t.registered,l,e.className):null!=e.className&&(d=e.className+" ");var u=(0,i.J)(l,void 0,o.useContext(p));d+=t.key+"-"+u.name;var m={};for(var g in e)c.call(e,g)&&"css"!==g&&g!==h&&(m[g]=e[g]);return m.ref=n,m.className=d,o.createElement(o.Fragment,null,o.createElement(f,{cache:t,serialized:u,isStringTag:"string"==typeof s}),o.createElement(s,m))}))},5719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,o,a){var r,i=t.words[o];return 1===o.length?"y"===o&&n?"jedna godina":a||n?i[0]:i[1]:(r=t.correctGrammaticalCase(e,i),"yy"===o&&n&&"godinu"===r?e+" godina":e+" "+r)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},5766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,o){return t?a(n)[0]:o?a(n)[1]:a(n)[2]}function o(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function r(e,t,r,i){var s=e+" ";return 1===e?s+n(0,t,r[0],i):t?s+(o(e)?a(r)[1]:a(r)[0]):i?s+a(r)[1]:s+(o(e)?a(r)[1]:a(r)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,o){return t?"kelios sekundės":o?"kelių sekundžių":"kelias sekundes"},ss:r,m:n,mm:r,h:n,hh:r,d:n,dd:r,M:n,MM:r,y:n,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(5093))},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function o(e){return e>1&&e<5}function a(e,t,n,a){var r=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?r+(o(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?r+(o(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?r+(o(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?r+(o(e)?"dni":"dní"):r+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?r+(o(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?r+(o(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},5802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(5093))},5867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(5093))},5995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},6e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(5093))},6090:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(4188),a=n(123),r=n(1104),i=n(551);function s(e,t){(0,i.A)(2,arguments);var n=(0,a.default)(e),s=(0,o.A)(t)-(Math.floor(n.getMonth()/3)+1);return(0,r.default)(n,n.getMonth()+3*s)}},6111:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function o(e,t,n,o){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(5093))},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?a[n][0]:a[n][1]}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}(e)},week:{dow:1,doy:4}})}(n(5093))},6195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e);return t.setHours(23,59,59,999),t}},6289:(e,t,n)=>{"use strict";function o(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>o})},6308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var o=e+" ";switch(n){case"ss":return o+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return o+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return o+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return o+(1===e?"dan":"dana");case"MM":return o+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return o+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],"){")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);o&&i[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),a&&(d[4]?(d[1]="@supports (".concat(d[4],"){").concat(d[1],"}"),d[4]=a):d[4]="".concat(a)),t.push(d))}},t}},6435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(5093))},6462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(1858),a=n(123),r=n(4188),i=n(551);function s(e,t){var n,s,l,c,d,u,p,h;(0,i.A)(1,arguments);var m=(0,o.q)(),f=(0,r.A)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==s?s:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,a.default)(e),v=g.getDay(),_=6+(v<f?-7:0)-(v-f);return g.setDate(g.getDate()+_),g.setHours(23,59,59,999),g}},6464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),o=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function r(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"pár sekund":"pár sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":o?"minutu":"minutou";case"mm":return t||o?a+(r(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||o?"den":"dnem";case"dd":return t||o?a+(r(e)?"dny":"dní"):a+"dny";case"M":return t||o?"měsíc":"měsícem";case"MM":return t||o?a+(r(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||o?"rok":"rokem";case"yy":return t||o?a+(r(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6489:(e,t,n)=>{"use strict";var o,a=(o=n(5556))&&o.__esModule?o:{default:o};t.__esModule=!0,t.default=void 0;var r=Object.freeze({addPlaceholder:a.default.string,additionalProps:a.default.object,autoFocus:a.default.bool,backspaceDelete:a.default.bool,className:a.default.string,clearAllLabel:a.default.string,clearOnBlur:a.default.bool,clearOnSelect:a.default.bool,clearRenderer:a.default.func,clearable:a.default.bool,closeOnScroll:a.default.bool,closeOnSelect:a.default.bool,closeOnClickInput:a.default.bool,color:a.default.string,compareValuesFunc:a.default.func,contentRenderer:a.default.func,create:a.default.bool,createNewLabel:a.default.string,debounceDelay:a.default.number,direction:a.default.string,disabled:a.default.bool,disabledLabel:a.default.string,dropdownGap:a.default.number,dropdownHandle:a.default.bool,dropdownHandleRenderer:a.default.func,dropdownHeight:a.default.string,dropdownPosition:a.default.oneOf(["top","bottom","auto"]),dropdownRenderer:a.default.func,handleKeyDownFn:a.default.func,inputRenderer:a.default.func,itemRenderer:a.default.func,keepOpen:a.default.bool,keepSelectedInList:a.default.bool,labelField:a.default.string,loading:a.default.bool,loadingRenderer:a.default.func,multi:a.default.bool,name:a.default.string,noDataLabel:a.default.string,noDataRenderer:a.default.func,onChange:a.default.func.isRequired,onClearAll:a.default.func,onCreateNew:a.default.func,onDropdownClose:a.default.func,onDropdownCloseRequest:a.default.func,onDropdownOpen:a.default.func,onSelectAll:a.default.func,optionRenderer:a.default.func,options:a.default.array.isRequired,pattern:a.default.string,placeholder:a.default.string,portal:a.default.element,required:a.default.bool,searchBy:a.default.string,searchFn:a.default.func,searchable:a.default.bool,selectAll:a.default.bool,selectAllLabel:a.default.string,separator:a.default.bool,separatorRenderer:a.default.func,sortBy:a.default.string,style:a.default.object,valueField:a.default.string,values:a.default.array,defaultMenuIsOpen:a.default.bool});t.default=r},6527:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=c(n(1923)),a=c(n(6540)),r=(c(n(5556)),c(n(7469))),i=c(n(862)),s=n(3684),l=n(3869);function c(e){return e&&e.__esModule?e:{default:e}}c(n(6489)),c(n(5185)),c(n(8640));var d=(0,o.default)("div",{target:"e1gn6jc30"})({name:"1m5113o",styles:"display:flex;flex:1;flex-wrap:wrap"});t.default=function(e){var t=e.props,n=e.state,o=e.methods;return a.default.createElement(d,{className:s.LIB_NAME+"-content "+(t.multi?s.LIB_NAME+"-type-multi":s.LIB_NAME+"-type-single"),onClick:function(e){return e.stopPropagation(),!0===n.dropdown&&t.closeOnClickInput&&!n.search?o.dropDown("close"):o.dropDown("open")}},t.contentRenderer?t.contentRenderer({props:t,state:n,methods:o}):a.default.createElement(a.default.Fragment,null,t.multi?n.values&&n.values.map((function(e){return a.default.createElement(r.default,{key:""+(0,l.getByPath)(e,t.valueField)+(0,l.getByPath)(e,t.labelField),item:e,state:n,props:t,methods:o})})):n.values&&0<n.values.length&&a.default.createElement("span",null,(0,l.getByPath)(n.values[0],t.labelField)),a.default.createElement(i.default,{props:t,methods:o,state:n})))}},6540:(e,t,n)=>{"use strict";e.exports=n(5287)},6571:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},6575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(5093))},6584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},6618:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(o=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),o%10==1&&o%100!=11?a[0]:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?a[1]:a[2]);var o,a}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(5093))},6637:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"nekaj sekund":"nekaj sekundami";case"ss":return a+(1===e?t?"sekundo":"sekundi":2===e?t||o?"sekundi":"sekundah":e<5?t||o?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return a+(1===e?t?"minuta":"minuto":2===e?t||o?"minuti":"minutama":e<5?t||o?"minute":"minutami":t||o?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return a+(1===e?t?"ura":"uro":2===e?t||o?"uri":"urama":e<5?t||o?"ure":"urami":t||o?"ur":"urami");case"d":return t||o?"en dan":"enim dnem";case"dd":return a+(1===e?t||o?"dan":"dnem":2===e?t||o?"dni":"dnevoma":t||o?"dni":"dnevi");case"M":return t||o?"en mesec":"enim mesecem";case"MM":return a+(1===e?t||o?"mesec":"mesecem":2===e?t||o?"meseca":"mesecema":e<5?t||o?"mesece":"meseci":t||o?"mesecev":"meseci");case"y":return t||o?"eno leto":"enim letom";case"yy":return a+(1===e?t||o?"leto":"letom":2===e?t||o?"leti":"letoma":e<5?t||o?"leta":"leti":t||o?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},6757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}},6794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},6822:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(2284),a=n(9417);function r(e,t){if(t&&("object"==(0,o.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}},6828:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(5290),a=n(123),r=n(551);function i(e){if((0,r.A)(1,arguments),!(0,o.default)(e)&&"number"!=typeof e)return!1;var t=(0,a.default)(e);return!isNaN(Number(t))}},6870:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(5093))},6894:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(123),a=n(9742),r=n(464),i=n(551),s=n(4188),l=n(1858),c=6048e5;function d(e,t){(0,i.A)(1,arguments);var n=(0,o.default)(e),d=(0,a.A)(n,t).getTime()-function(e,t){var n,o,c,d,u,p,h,m;(0,i.A)(1,arguments);var f=(0,l.q)(),g=(0,s.A)(null!==(n=null!==(o=null!==(c=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t||null===(u=t.locale)||void 0===u||null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==c?c:f.firstWeekContainsDate)&&void 0!==o?o:null===(h=f.locale)||void 0===h||null===(m=h.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,r.A)(e,t),_=new Date(0);return _.setUTCFullYear(v,0,g),_.setUTCHours(0,0,0,0),(0,a.A)(_,t)}(n,t).getTime();return Math.round(d/c)+1}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},6947:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(5093))},7044:(e,t,n)=>{"use strict";function o(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:()=>o})},7054:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},7067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,a.default)(e);if(n.length){var o=void 0,i=t.shiftKey,s=n[0],l=n[n.length-1],c=r();if(e===c){if(!i)return;o=l}if(l!==c||i||(o=s),s===c&&i&&(o=l),o)return t.preventDefault(),void o.focus();var d=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=d&&"Chrome"!=d[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=n.indexOf(c);if(u>-1&&(u+=i?-1:1),void 0===(o=n[u]))return t.preventDefault(),void(o=i?l:s).focus();t.preventDefault(),o.focus()}}else t.preventDefault()};var o,a=(o=n(2411))&&o.__esModule?o:{default:o};function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?r(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},7071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(5093))},7075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},7160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(5093))},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},7329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},7357:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(5093))},7375:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t);return n.setMinutes(i),n}},7440:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(2284),a=n(123),r=n(551);function i(e){var t,n;if((0,r.A)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,o.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,a.default)(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}},7463:(e,t)=>{"use strict";var n,o,a,r;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,d=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(u,0))},o=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var f=!1,g=null,v=-1,_=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},r=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,w=y.port2;y.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+_;try{g(!0,e)?w.postMessage(null):(f=!1,g=null)}catch(e){throw w.postMessage(null),e}}else f=!1},n=function(e){g=e,f||(f=!0,w.postMessage(null))},o=function(e,n){v=p((function(){e(t.unstable_now())}),n)},a=function(){h(v),v=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,a=e[o];if(!(void 0!==a&&0<S(a,t)))break e;e[o]=t,e[n]=a,n=o}}function x(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,a=e.length;o<a;){var r=2*(o+1)-1,i=e[r],s=r+1,l=e[s];if(void 0!==i&&0>S(i,n))void 0!==l&&0>S(l,i)?(e[o]=l,e[s]=n,o=s):(e[o]=i,e[r]=n,o=r);else{if(!(void 0!==l&&0>S(l,n)))break e;e[o]=l,e[s]=n,o=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],T=[],C=1,A=null,D=3,P=!1,L=!1,N=!1;function I(e){for(var t=x(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,k(M,t)}t=x(T)}}function O(e){if(N=!1,I(e),!L)if(null!==x(M))L=!0,n(R);else{var t=x(T);null!==t&&o(O,t.startTime-e)}}function R(e,n){L=!1,N&&(N=!1,a()),P=!0;var r=D;try{for(I(n),A=x(M);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=A.callback;if("function"==typeof i){A.callback=null,D=A.priorityLevel;var s=i(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===x(M)&&E(M),I(n)}else E(M);A=x(M)}if(null!==A)var l=!0;else{var c=x(T);null!==c&&o(O,c.startTime-n),l=!1}return l}finally{A=null,D=r,P=!1}}var F=r;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||P||(L=!0,n(R))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return x(M)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:C++,callback:r,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,k(T,e),null===x(M)&&e===x(T)&&(N?a():N=!0,o(O,i-s))):(e.sortIndex=l,k(M,e),L||P||(L=!0,n(R))),e},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},7469:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=s(n(1923)),a=s(n(6540)),r=n(3869),i=n(3684);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,o.default)("span",{target:"e1l4eby50"})("padding:0 5px;border-radius:2px;line-height:21px;margin:3px 0 3px 5px;background:",(function(e){return e.color}),";color:#fff;display:flex;flex-direction:",(function(e){return"rtl"===e.direction?"row-reverse":"row"}),";.",i.LIB_NAME,"-option-remove{cursor:pointer;width:22px;height:22px;display:inline-block;text-align:center;margin:0 -5px 0 0px;border-radius:0 3px 3px 0;:hover{color:tomato;}}:hover,:hover>span{opacity:0.9;}");t.default=function(e){var t=e.item,n=e.props,o=e.state,s=e.methods;return t&&n.optionRenderer?n.optionRenderer({item:t,props:n,state:o,methods:s}):a.default.createElement(l,{role:"listitem",disabled:n.disabled,direction:n.direction,className:i.LIB_NAME+"-option",color:n.color},a.default.createElement("span",{className:i.LIB_NAME+"-option-label"},(0,r.getByPath)(t,n.labelField)),a.default.createElement("span",{className:i.LIB_NAME+"-option-remove",onClick:function(e){return s.removeItem(e,t,n.closeOnSelect)}},"×"))}},7499:(e,t,n)=>{"use strict";n.d(t,{Cg:()=>o,_m:()=>r,s0:()=>a}),Math.pow(10,8);var o=6e4,a=36e5,r=1e3},7512:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getDay()}},7538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(5093))},7609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(5093))},7650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},7659:e=>{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},7711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(5093))},7727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[r,i],t=0;t<e.length;t++){var n=e[t];n&&n.parentNode&&n.parentNode.removeChild(n)}r=i=null,s=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(s.length);for(var e=[r,i],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,a=(o=n(9628))&&o.__esModule?o:{default:o},r=void 0,i=void 0,s=[];function l(){0!==s.length&&s[s.length-1].focusContent()}a.default.subscribe((function(e,t){r||i||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",l),(i=r.cloneNode()).addEventListener("focus",l)),(s=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(r.parentElement&&r.parentElement.removeChild(r),i.parentElement&&i.parentElement.removeChild(i))}))},7730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(5093))},7767:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e).getTime(),i=(0,o.A)(t);return new Date(n+i)}},7777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(5093))},7791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){r=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){r.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==r.length&&(t=r.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){r.length>0&&r.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var o,a=(o=n(2411))&&o.__esModule?o:{default:o},r=[],i=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,a.default)(i)[0]||i).focus()}),0)}}},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(3145);function a(e,t){if(e){if("string"==typeof e)return(0,o.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.A)(e,t):void 0}}},7813:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getTime()<r.getTime()}},7825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,"){")),n.media&&(o+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,a&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7827:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(123),a=n(4188),r=n(551),i=n(1858);function s(e,t){var n,s,l,c,d,u,p,h;(0,r.A)(1,arguments);var m=(0,i.q)(),f=(0,a.A)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==s?s:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.default)(e),v=g.getDay(),_=(v<f?7:0)+v-f;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}},7853:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},7892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(5093))},7901:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t);return n.setHours(i),n}},7920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toArray:function(e){for(var t=[],n=e.length>>>0;n--;)t[n]=e[n];return t}}},8076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,o){var a=t.words[o];return 1===o.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(5093))},8089:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getHours()}},8168:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(null,arguments)}n.d(t,{A:()=>o})},8174:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:o,monthsShort:o,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(5093))},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(5093))},8293:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(3954);function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}var r=n(6822);function i(e){var t=a();return function(){var n,a=(0,o.A)(e);if(t){var i=(0,o.A)(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return(0,r.A)(this,n)}}},8298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(5093))},8303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(5093))},8383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},8414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var o=100*e+t;return o<600?"يېرىم كېچە":o<900?"سەھەر":o<1130?"چۈشتىن بۇرۇن":o<1230?"چۈش":o<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(5093))},8457:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(2284),a=n(123),r=n(551);function i(e){var t,n;if((0,r.A)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,o.A)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,a.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},8474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(5093))},8519:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getTime()}},8631:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(1923)),a=i(n(6540)),r=n(3684);function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)("div",{target:"e11qlq5e0"})({name:"992gsg",styles:"line-height:25px;margin:0 10px;cursor:pointer;:focus{outline:none;}:hover{color:tomato;}"});t.default=function(e){var t=e.props,n=e.state,o=e.methods;return t.clearRenderer?t.clearRenderer({props:t,state:n,methods:o}):a.default.createElement(s,{className:r.LIB_NAME+"-clear",tabIndex:"-1",onClick:function(){return o.clearAll()},onKeyPress:function(){return o.clearAll()}},"×")}},8640:(e,t,n)=>{"use strict";var o,a=(o=n(5556))&&o.__esModule?o:{default:o};t.__esModule=!0,t.default=void 0;var r=Object.freeze({dropdown:a.default.bool.isRequired,values:a.default.arrayOf(a.default.shape({})),search:a.default.string.isRequired,selectBounds:a.default.shape({}),cursor:a.default.number,searchResults:a.default.arrayOf(a.default.shape({}))});t.default=r},8676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(5093))},8736:function(e){e.exports=function(){"use strict";const e=new Map,t={set(t,n,o){e.has(t)||e.set(t,new Map);const a=e.get(t);a.has(n)||0===a.size?a.set(n,o):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const o=e.get(t);o.delete(n),0===o.size&&e.delete(t)}},n="transitionend",o=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),a=e=>{e.dispatchEvent(new Event(n))},r=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),i=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(o(e)):null,s=e=>{if(!r(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},d=()=>{},u=e=>{e.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,h=[],m=()=>"rtl"===document.documentElement.dir,f=e=>{var t;t=()=>{const t=p();if(t){const n=e.NAME,o=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=o,e.jQueryInterface)}},"loading"===document.readyState?(h.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of h)e()})),h.push(t)):t()},g=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,v=(e,t,o=!0)=>{if(!o)return void g(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const o=Number.parseFloat(t),a=Number.parseFloat(n);return o||a?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let i=!1;const s=({target:o})=>{o===t&&(i=!0,t.removeEventListener(n,s),g(e))};t.addEventListener(n,s),setTimeout((()=>{i||a(t)}),r)},_=(e,t,n,o)=>{const a=e.length;let r=e.indexOf(t);return-1===r?!n&&o?e[a-1]:e[0]:(r+=n?1:-1,o&&(r=(r+a)%a),e[Math.max(0,Math.min(r,a-1))])},b=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,k={};let x=1;const E={mouseenter:"mouseover",mouseleave:"mouseout"},S=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function M(e,t){return t&&`${t}::${x++}`||e.uidEvent||x++}function T(e){const t=M(e);return e.uidEvent=t,k[t]=k[t]||{},k[t]}function C(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function A(e,t,n){const o="string"==typeof t,a=o?n:t||n;let r=N(e);return S.has(r)||(r=e),[o,a,r]}function D(e,t,n,o,a){if("string"!=typeof t||!e)return;let[r,i,s]=A(t,n,o);if(t in E){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i=e(i)}const l=T(e),c=l[s]||(l[s]={}),d=C(c,i,r?n:null);if(d)return void(d.oneOff=d.oneOff&&a);const u=M(i,t.replace(b,"")),p=r?function(e,t,n){return function o(a){const r=e.querySelectorAll(t);for(let{target:i}=a;i&&i!==this;i=i.parentNode)for(const s of r)if(s===i)return O(a,{delegateTarget:i}),o.oneOff&&I.off(e,a.type,t,n),n.apply(i,[a])}}(e,n,i):function(e,t){return function n(o){return O(o,{delegateTarget:e}),n.oneOff&&I.off(e,o.type,t),t.apply(e,[o])}}(e,i);p.delegationSelector=r?n:null,p.callable=i,p.oneOff=a,p.uidEvent=u,c[u]=p,e.addEventListener(s,p,r)}function P(e,t,n,o,a){const r=C(t[n],o,a);r&&(e.removeEventListener(n,r,Boolean(a)),delete t[n][r.uidEvent])}function L(e,t,n,o){const a=t[n]||{};for(const[r,i]of Object.entries(a))r.includes(o)&&P(e,t,n,i.callable,i.delegationSelector)}function N(e){return e=e.replace(y,""),E[e]||e}const I={on(e,t,n,o){D(e,t,n,o,!1)},one(e,t,n,o){D(e,t,n,o,!0)},off(e,t,n,o){if("string"!=typeof t||!e)return;const[a,r,i]=A(t,n,o),s=i!==t,l=T(e),c=l[i]||{},d=t.startsWith(".");if(void 0===r){if(d)for(const n of Object.keys(l))L(e,l,n,t.slice(1));for(const[n,o]of Object.entries(c)){const a=n.replace(w,"");s&&!t.includes(a)||P(e,l,i,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;P(e,l,i,r,a?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const o=p();let a=null,r=!0,i=!0,s=!1;t!==N(t)&&o&&(a=o.Event(t,n),o(e).trigger(a),r=!a.isPropagationStopped(),i=!a.isImmediatePropagationStopped(),s=a.isDefaultPrevented());const l=O(new Event(t,{bubbles:r,cancelable:!0}),n);return s&&l.preventDefault(),i&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function O(e,t={}){for(const[n,o]of Object.entries(t))try{e[n]=o}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>o})}return e}function R(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function F(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const j={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${F(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${F(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const o of n){let n=o.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=R(e.dataset[o])}return t},getDataAttribute:(e,t)=>R(e.getAttribute(`data-bs-${F(t)}`))};class Y{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=r(t)?j.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...r(t)?j.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[o,a]of Object.entries(t)){const t=e[o],i=r(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(a).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${i}" but expected type "${a}".`)}var n}}class z extends Y{constructor(e,n){super(),(e=i(e))&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){v(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(i(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.5"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const B=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map((e=>o(e))).join(","):null},H={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let o=e.parentNode.closest(t);for(;o;)n.push(o),o=o.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!l(e)&&s(e)))},getSelectorFromElement(e){const t=B(e);return t&&H.findOne(t)?t:null},getElementFromSelector(e){const t=B(e);return t?H.findOne(t):null},getMultipleElementsFromSelector(e){const t=B(e);return t?H.find(t):[]}},V=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;I.on(document,n,`[data-bs-dismiss="${o}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),l(this))return;const a=H.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(a)[t]()}))},U=".bs.alert",W=`close${U}`,q=`closed${U}`;class $ extends z{static get NAME(){return"alert"}close(){if(I.trigger(this._element,W).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),I.trigger(this._element,q),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=$.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}V($,"close"),f($);const G='[data-bs-toggle="button"]';class K extends z{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=K.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}I.on(document,"click.bs.button.data-api",G,(e=>{e.preventDefault();const t=e.target.closest(G);K.getOrCreateInstance(t).toggle()})),f(K);const J=".bs.swipe",X=`touchstart${J}`,Q=`touchmove${J}`,Z=`touchend${J}`,ee=`pointerdown${J}`,te=`pointerup${J}`,ne={endCallback:null,leftCallback:null,rightCallback:null},oe={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ae extends Y{constructor(e,t){super(),this._element=e,e&&ae.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ne}static get DefaultType(){return oe}static get NAME(){return"swipe"}dispose(){I.off(this._element,J)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&g(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(I.on(this._element,ee,(e=>this._start(e))),I.on(this._element,te,(e=>this._end(e))),this._element.classList.add("pointer-event")):(I.on(this._element,X,(e=>this._start(e))),I.on(this._element,Q,(e=>this._move(e))),I.on(this._element,Z,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const re=".bs.carousel",ie=".data-api",se="ArrowLeft",le="ArrowRight",ce="next",de="prev",ue="left",pe="right",he=`slide${re}`,me=`slid${re}`,fe=`keydown${re}`,ge=`mouseenter${re}`,ve=`mouseleave${re}`,_e=`dragstart${re}`,be=`load${re}${ie}`,ye=`click${re}${ie}`,we="carousel",ke="active",xe=".active",Ee=".carousel-item",Se=xe+Ee,Me={[se]:pe,[le]:ue},Te={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ce={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ae extends z{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=H.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===we&&this.cycle()}static get Default(){return Te}static get DefaultType(){return Ce}static get NAME(){return"carousel"}next(){this._slide(ce)}nextWhenVisible(){!document.hidden&&s(this._element)&&this.next()}prev(){this._slide(de)}pause(){this._isSliding&&a(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?I.one(this._element,me,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void I.one(this._element,me,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const o=e>n?ce:de;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&I.on(this._element,fe,(e=>this._keydown(e))),"hover"===this._config.pause&&(I.on(this._element,ge,(()=>this.pause())),I.on(this._element,ve,(()=>this._maybeEnableCycle()))),this._config.touch&&ae.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of H.find(".carousel-item img",this._element))I.on(e,_e,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(ue)),rightCallback:()=>this._slide(this._directionToOrder(pe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new ae(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Me[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=H.findOne(xe,this._indicatorsElement);t.classList.remove(ke),t.removeAttribute("aria-current");const n=H.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ke),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),o=e===ce,a=t||_(this._getItems(),n,o,this._config.wrap);if(a===n)return;const r=this._getItemIndex(a),i=t=>I.trigger(this._element,t,{relatedTarget:a,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(i(he).defaultPrevented)return;if(!n||!a)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=a;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";a.classList.add(c),u(a),n.classList.add(l),a.classList.add(l),this._queueCallback((()=>{a.classList.remove(l,c),a.classList.add(ke),n.classList.remove(ke,c,l),this._isSliding=!1,i(me)}),n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return H.findOne(Se,this._element)}_getItems(){return H.find(Ee,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return m()?e===ue?de:ce:e===ue?ce:de}_orderToDirection(e){return m()?e===de?ue:pe:e===de?pe:ue}static jQueryInterface(e){return this.each((function(){const t=Ae.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}I.on(document,ye,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=H.getElementFromSelector(this);if(!t||!t.classList.contains(we))return;e.preventDefault();const n=Ae.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(n.to(o),void n._maybeEnableCycle()):"next"===j.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),I.on(window,be,(()=>{const e=H.find('[data-bs-ride="carousel"]');for(const t of e)Ae.getOrCreateInstance(t)})),f(Ae);const De=".bs.collapse",Pe=`show${De}`,Le=`shown${De}`,Ne=`hide${De}`,Ie=`hidden${De}`,Oe=`click${De}.data-api`,Re="show",Fe="collapse",je="collapsing",Ye=`:scope .${Fe} .${Fe}`,ze='[data-bs-toggle="collapse"]',Be={parent:null,toggle:!0},He={parent:"(null|element)",toggle:"boolean"};class Ve extends z{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=H.find(ze);for(const e of n){const t=H.getSelectorFromElement(e),n=H.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Be}static get DefaultType(){return He}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Ve.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(I.trigger(this._element,Pe).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Fe),this._element.classList.add(je),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(je),this._element.classList.add(Fe,Re),this._element.style[t]="",I.trigger(this._element,Le)}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(I.trigger(this._element,Ne).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add(je),this._element.classList.remove(Fe,Re);for(const e of this._triggerArray){const t=H.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(je),this._element.classList.add(Fe),I.trigger(this._element,Ie)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(Re)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=i(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(ze);for(const t of e){const e=H.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=H.find(Ye,this._config.parent);return H.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=Ve.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}I.on(document,Oe,ze,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of H.getMultipleElementsFromSelector(this))Ve.getOrCreateInstance(e,{toggle:!1}).toggle()})),f(Ve);var Ue="top",We="bottom",qe="right",$e="left",Ge="auto",Ke=[Ue,We,qe,$e],Je="start",Xe="end",Qe="clippingParents",Ze="viewport",et="popper",tt="reference",nt=Ke.reduce((function(e,t){return e.concat([t+"-"+Je,t+"-"+Xe])}),[]),ot=[].concat(Ke,[Ge]).reduce((function(e,t){return e.concat([t,t+"-"+Je,t+"-"+Xe])}),[]),at="beforeRead",rt="read",it="afterRead",st="beforeMain",lt="main",ct="afterMain",dt="beforeWrite",ut="write",pt="afterWrite",ht=[at,rt,it,st,lt,ct,dt,ut,pt];function mt(e){return e?(e.nodeName||"").toLowerCase():null}function ft(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function gt(e){return e instanceof ft(e).Element||e instanceof Element}function vt(e){return e instanceof ft(e).HTMLElement||e instanceof HTMLElement}function _t(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ft(e).ShadowRoot||e instanceof ShadowRoot)}const bt={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]||{},o=t.attributes[e]||{},a=t.elements[e];vt(a)&&mt(a)&&(Object.assign(a.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?a.removeAttribute(e):a.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.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],a=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});vt(o)&&mt(o)&&(Object.assign(o.style,r),Object.keys(a).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function yt(e){return e.split("-")[0]}var wt=Math.max,kt=Math.min,xt=Math.round;function Et(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function St(){return!/^((?!chrome|android).)*safari/i.test(Et())}function Mt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),a=1,r=1;t&&vt(e)&&(a=e.offsetWidth>0&&xt(o.width)/e.offsetWidth||1,r=e.offsetHeight>0&&xt(o.height)/e.offsetHeight||1);var i=(gt(e)?ft(e):window).visualViewport,s=!St()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/a,c=(o.top+(s&&i?i.offsetTop:0))/r,d=o.width/a,u=o.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Tt(e){var t=Mt(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_t(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function At(e){return ft(e).getComputedStyle(e)}function Dt(e){return["table","td","th"].indexOf(mt(e))>=0}function Pt(e){return((gt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lt(e){return"html"===mt(e)?e:e.assignedSlot||e.parentNode||(_t(e)?e.host:null)||Pt(e)}function Nt(e){return vt(e)&&"fixed"!==At(e).position?e.offsetParent:null}function It(e){for(var t=ft(e),n=Nt(e);n&&Dt(n)&&"static"===At(n).position;)n=Nt(n);return n&&("html"===mt(n)||"body"===mt(n)&&"static"===At(n).position)?t:n||function(e){var t=/firefox/i.test(Et());if(/Trident/i.test(Et())&&vt(e)&&"fixed"===At(e).position)return null;var n=Lt(e);for(_t(n)&&(n=n.host);vt(n)&&["html","body"].indexOf(mt(n))<0;){var o=At(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Ot(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rt(e,t,n){return wt(e,kt(t,n))}function Ft(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function jt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Yt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,a=e.options,r=n.elements.arrow,i=n.modifiersData.popperOffsets,s=yt(n.placement),l=Ot(s),c=[$e,qe].indexOf(s)>=0?"height":"width";if(r&&i){var d=function(e,t){return Ft("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:jt(e,Ke))}(a.padding,n),u=Tt(r),p="y"===l?Ue:$e,h="y"===l?We:qe,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],f=i[l]-n.rects.reference[l],g=It(r),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=m/2-f/2,b=d[p],y=v-u[c]-d[h],w=v/2-u[c]/2+_,k=Rt(b,w,y),x=l;n.modifiersData[o]=((t={})[x]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Ct(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(e){return e.split("-")[1]}var Bt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ht(e){var t,n=e.popper,o=e.popperRect,a=e.placement,r=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,p=i.x,h=void 0===p?0:p,m=i.y,f=void 0===m?0:m,g="function"==typeof d?d({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var v=i.hasOwnProperty("x"),_=i.hasOwnProperty("y"),b=$e,y=Ue,w=window;if(c){var k=It(n),x="clientHeight",E="clientWidth";k===ft(n)&&"static"!==At(k=Pt(n)).position&&"absolute"===s&&(x="scrollHeight",E="scrollWidth"),(a===Ue||(a===$e||a===qe)&&r===Xe)&&(y=We,f-=(u&&k===w&&w.visualViewport?w.visualViewport.height:k[x])-o.height,f*=l?1:-1),a!==$e&&(a!==Ue&&a!==We||r!==Xe)||(b=qe,h-=(u&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-o.width,h*=l?1:-1)}var S,M=Object.assign({position:s},c&&Bt),T=!0===d?function(e,t){var n=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:xt(n*a)/a||0,y:xt(o*a)/a||0}}({x:h,y:f},ft(n)):{x:h,y:f};return h=T.x,f=T.y,l?Object.assign({},M,((S={})[y]=_?"0":"",S[b]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",S)):Object.assign({},M,((t={})[y]=_?f+"px":"",t[b]=v?h+"px":"",t.transform="",t))}const Vt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,a=void 0===o||o,r=n.adaptive,i=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:yt(t.placement),variation:zt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ht(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ht(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Ut={passive:!0};const Wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,r=void 0===a||a,i=o.resize,s=void 0===i||i,l=ft(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ut)})),s&&l.addEventListener("resize",n.update,Ut),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ut)})),s&&l.removeEventListener("resize",n.update,Ut)}},data:{}};var qt={left:"right",right:"left",bottom:"top",top:"bottom"};function $t(e){return e.replace(/left|right|bottom|top/g,(function(e){return qt[e]}))}var Gt={start:"end",end:"start"};function Kt(e){return e.replace(/start|end/g,(function(e){return Gt[e]}))}function Jt(e){var t=ft(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xt(e){return Mt(Pt(e)).left+Jt(e).scrollLeft}function Qt(e){var t=At(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Zt(e){return["html","body","#document"].indexOf(mt(e))>=0?e.ownerDocument.body:vt(e)&&Qt(e)?e:Zt(Lt(e))}function en(e,t){var n;void 0===t&&(t=[]);var o=Zt(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),r=ft(o),i=a?[r].concat(r.visualViewport||[],Qt(o)?o:[]):o,s=t.concat(i);return a?s:s.concat(en(Lt(i)))}function tn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nn(e,t,n){return t===Ze?tn(function(e,t){var n=ft(e),o=Pt(e),a=n.visualViewport,r=o.clientWidth,i=o.clientHeight,s=0,l=0;if(a){r=a.width,i=a.height;var c=St();(c||!c&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:r,height:i,x:s+Xt(e),y:l}}(e,n)):gt(t)?function(e,t){var n=Mt(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):tn(function(e){var t,n=Pt(e),o=Jt(e),a=null==(t=e.ownerDocument)?void 0:t.body,r=wt(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=wt(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-o.scrollLeft+Xt(e),l=-o.scrollTop;return"rtl"===At(a||n).direction&&(s+=wt(n.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:s,y:l}}(Pt(e)))}function on(e){var t,n=e.reference,o=e.element,a=e.placement,r=a?yt(a):null,i=a?zt(a):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(r){case Ue:t={x:s,y:n.y-o.height};break;case We:t={x:s,y:n.y+n.height};break;case qe:t={x:n.x+n.width,y:l};break;case $e:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?Ot(r):null;if(null!=c){var d="y"===c?"height":"width";switch(i){case Je:t[c]=t[c]-(n[d]/2-o[d]/2);break;case Xe:t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}function an(e,t){void 0===t&&(t={});var n=t,o=n.placement,a=void 0===o?e.placement:o,r=n.strategy,i=void 0===r?e.strategy:r,s=n.boundary,l=void 0===s?Qe:s,c=n.rootBoundary,d=void 0===c?Ze:c,u=n.elementContext,p=void 0===u?et:u,h=n.altBoundary,m=void 0!==h&&h,f=n.padding,g=void 0===f?0:f,v=Ft("number"!=typeof g?g:jt(g,Ke)),_=p===et?tt:et,b=e.rects.popper,y=e.elements[m?_:p],w=function(e,t,n,o){var a="clippingParents"===t?function(e){var t=en(Lt(e)),n=["absolute","fixed"].indexOf(At(e).position)>=0&&vt(e)?It(e):e;return gt(n)?t.filter((function(e){return gt(e)&&Ct(e,n)&&"body"!==mt(e)})):[]}(e):[].concat(t),r=[].concat(a,[n]),i=r[0],s=r.reduce((function(t,n){var a=nn(e,n,o);return t.top=wt(a.top,t.top),t.right=kt(a.right,t.right),t.bottom=kt(a.bottom,t.bottom),t.left=wt(a.left,t.left),t}),nn(e,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(gt(y)?y:y.contextElement||Pt(e.elements.popper),l,d,i),k=Mt(e.elements.reference),x=on({reference:k,element:b,placement:a}),E=tn(Object.assign({},b,x)),S=p===et?E:k,M={top:w.top-S.top+v.top,bottom:S.bottom-w.bottom+v.bottom,left:w.left-S.left+v.left,right:S.right-w.right+v.right},T=e.modifiersData.offset;if(p===et&&T){var C=T[a];Object.keys(M).forEach((function(e){var t=[qe,We].indexOf(e)>=0?1:-1,n=[Ue,We].indexOf(e)>=0?"y":"x";M[e]+=C[n]*t}))}return M}const rn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=n.mainAxis,r=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=void 0===h||h,f=n.allowedAutoPlacements,g=t.options.placement,v=yt(g),_=l||(v!==g&&m?function(e){if(yt(e)===Ge)return[];var t=$t(e);return[Kt(e),t,Kt(t)]}(g):[$t(g)]),b=[g].concat(_).reduce((function(e,n){return e.concat(yt(n)===Ge?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,a=n.boundary,r=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ot:l,d=zt(o),u=d?s?nt:nt.filter((function(e){return zt(e)===d})):Ke,p=u.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=u);var h=p.reduce((function(t,n){return t[n]=an(e,{placement:n,boundary:a,rootBoundary:r,padding:i})[yt(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:f}):n)}),[]),y=t.rects.reference,w=t.rects.popper,k=new Map,x=!0,E=b[0],S=0;S<b.length;S++){var M=b[S],T=yt(M),C=zt(M)===Je,A=[Ue,We].indexOf(T)>=0,D=A?"width":"height",P=an(t,{placement:M,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),L=A?C?qe:$e:C?We:Ue;y[D]>w[D]&&(L=$t(L));var N=$t(L),I=[];if(r&&I.push(P[T]<=0),s&&I.push(P[L]<=0,P[N]<=0),I.every((function(e){return e}))){E=M,x=!1;break}k.set(M,I)}if(x)for(var O=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},R=m?3:1;R>0&&"break"!==O(R);R--);t.placement!==E&&(t.modifiersData[o]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sn(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 ln(e){return[Ue,qe,We,$e].some((function(t){return e[t]>=0}))}const cn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,i=an(t,{elementContext:"reference"}),s=an(t,{altBoundary:!0}),l=sn(i,o),c=sn(s,a,r),d=ln(l),u=ln(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},dn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.offset,r=void 0===a?[0,0]:a,i=ot.reduce((function(e,n){return e[n]=function(e,t,n){var o=yt(e),a=[$e,Ue].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=r[0],s=r[1];return i=i||0,s=(s||0)*a,[$e,qe].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,r),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},un={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=on({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},pn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,a=n.mainAxis,r=void 0===a||a,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,h=void 0===p||p,m=n.tetherOffset,f=void 0===m?0:m,g=an(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=yt(t.placement),_=zt(t.placement),b=!_,y=Ot(v),w="x"===y?"y":"x",k=t.modifiersData.popperOffsets,x=t.rects.reference,E=t.rects.popper,S="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,M="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(k){if(r){var A,D="y"===y?Ue:$e,P="y"===y?We:qe,L="y"===y?"height":"width",N=k[y],I=N+g[D],O=N-g[P],R=h?-E[L]/2:0,F=_===Je?x[L]:E[L],j=_===Je?-E[L]:-x[L],Y=t.elements.arrow,z=h&&Y?Tt(Y):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=B[D],V=B[P],U=Rt(0,x[L],z[L]),W=b?x[L]/2-R-U-H-M.mainAxis:F-U-H-M.mainAxis,q=b?-x[L]/2+R+U+V+M.mainAxis:j+U+V+M.mainAxis,$=t.elements.arrow&&It(t.elements.arrow),G=$?"y"===y?$.clientTop||0:$.clientLeft||0:0,K=null!=(A=null==T?void 0:T[y])?A:0,J=N+q-K,X=Rt(h?kt(I,N+W-K-G):I,N,h?wt(O,J):O);k[y]=X,C[y]=X-N}if(s){var Q,Z="x"===y?Ue:$e,ee="x"===y?We:qe,te=k[w],ne="y"===w?"height":"width",oe=te+g[Z],ae=te-g[ee],re=-1!==[Ue,$e].indexOf(v),ie=null!=(Q=null==T?void 0:T[w])?Q:0,se=re?oe:te-x[ne]-E[ne]-ie+M.altAxis,le=re?te+x[ne]+E[ne]-ie-M.altAxis:ae,ce=h&&re?function(e,t,n){var o=Rt(e,t,n);return o>n?n:o}(se,te,le):Rt(h?se:oe,te,h?le:ae);k[w]=ce,C[w]=ce-te}t.modifiersData[o]=C}},requiresIfExists:["offset"]};function hn(e,t,n){void 0===n&&(n=!1);var o,a,r=vt(t),i=vt(t)&&function(e){var t=e.getBoundingClientRect(),n=xt(t.width)/e.offsetWidth||1,o=xt(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=Pt(t),l=Mt(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==mt(t)||Qt(s))&&(c=(o=t)!==ft(o)&&vt(o)?{scrollLeft:(a=o).scrollLeft,scrollTop:a.scrollTop}:Jt(o)),vt(t)?((d=Mt(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Xt(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function mn(e){var t=new Map,n=new Set,o=[];function a(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&a(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||a(e)})),o}var fn={placement:"bottom",modifiers:[],strategy:"absolute"};function gn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function vn(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,a=t.defaultOptions,r=void 0===a?fn:a;return function(e,t,n){void 0===n&&(n=r);var a,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},fn,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:s,setOptions:function(n){var a="function"==typeof n?n(s.options):n;u(),s.options=Object.assign({},r,s.options,a),s.scrollParents={reference:gt(e)?en(e):e.contextElement?en(e.contextElement):[],popper:en(t)};var i,c,p=function(e){var t=mn(e);return ht.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(o,s.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var r=a({state:s,name:t,instance:d,options:o});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(gn(t,n)){s.rects={reference:hn(t,It(n),"fixed"===s.options.strategy),popper:Tt(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var a=s.orderedModifiers[o],r=a.fn,i=a.options,l=void 0===i?{}:i,u=a.name;"function"==typeof r&&(s=r({state:s,options:l,name:u,instance:d})||s)}else s.reset=!1,o=-1}}},update:(a=function(){return new Promise((function(e){d.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(a())}))}))),i}),destroy:function(){u(),c=!0}};if(!gn(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var _n=vn(),bn=vn({defaultModifiers:[Wt,un,Vt,bt]}),yn=vn({defaultModifiers:[Wt,un,Vt,bt,dn,rn,pn,Yt,cn]});const wn=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ct,afterRead:it,afterWrite:pt,applyStyles:bt,arrow:Yt,auto:Ge,basePlacements:Ke,beforeMain:st,beforeRead:at,beforeWrite:dt,bottom:We,clippingParents:Qe,computeStyles:Vt,createPopper:yn,createPopperBase:_n,createPopperLite:bn,detectOverflow:an,end:Xe,eventListeners:Wt,flip:rn,hide:cn,left:$e,main:lt,modifierPhases:ht,offset:dn,placements:ot,popper:et,popperGenerator:vn,popperOffsets:un,preventOverflow:pn,read:rt,reference:tt,right:qe,start:Je,top:Ue,variationPlacements:nt,viewport:Ze,write:ut},Symbol.toStringTag,{value:"Module"})),kn="dropdown",xn=".bs.dropdown",En=".data-api",Sn="ArrowUp",Mn="ArrowDown",Tn=`hide${xn}`,Cn=`hidden${xn}`,An=`show${xn}`,Dn=`shown${xn}`,Pn=`click${xn}${En}`,Ln=`keydown${xn}${En}`,Nn=`keyup${xn}${En}`,In="show",On='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Rn=`${On}.${In}`,Fn=".dropdown-menu",jn=m()?"top-end":"top-start",Yn=m()?"top-start":"top-end",zn=m()?"bottom-end":"bottom-start",Bn=m()?"bottom-start":"bottom-end",Hn=m()?"left-start":"right-start",Vn=m()?"right-start":"left-start",Un={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Wn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class qn extends z{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=H.next(this._element,Fn)[0]||H.prev(this._element,Fn)[0]||H.findOne(Fn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Un}static get DefaultType(){return Wn}static get NAME(){return kn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!I.trigger(this._element,An,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))I.on(e,"mouseover",d);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(In),this._element.classList.add(In),I.trigger(this._element,Dn,e)}}hide(){if(l(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!I.trigger(this._element,Tn,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))I.off(e,"mouseover",d);this._popper&&this._popper.destroy(),this._menu.classList.remove(In),this._element.classList.remove(In),this._element.setAttribute("aria-expanded","false"),j.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,Cn,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!r(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${kn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===wn)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:r(this._config.reference)?e=i(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=yn(e,this._menu,t)}_isShown(){return this._menu.classList.contains(In)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Hn;if(e.classList.contains("dropstart"))return Vn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Yn:jn:t?Bn:zn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(j.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...g(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=H.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>s(e)));n.length&&_(n,t,e===Mn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=qn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=H.find(Rn);for(const n of t){const t=qn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const o=e.composedPath(),a=o.includes(t._menu);if(o.includes(t._element)||"inside"===t._config.autoClose&&!a||"outside"===t._config.autoClose&&a)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const r={relatedTarget:t._element};"click"===e.type&&(r.clickEvent=e),t._completeHide(r)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,o=[Sn,Mn].includes(e.key);if(!o&&!n)return;if(t&&!n)return;e.preventDefault();const a=this.matches(On)?this:H.prev(this,On)[0]||H.next(this,On)[0]||H.findOne(On,e.delegateTarget.parentNode),r=qn.getOrCreateInstance(a);if(o)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),a.focus())}}I.on(document,Ln,On,qn.dataApiKeydownHandler),I.on(document,Ln,Fn,qn.dataApiKeydownHandler),I.on(document,Pn,qn.clearMenus),I.on(document,Nn,qn.clearMenus),I.on(document,Pn,On,(function(e){e.preventDefault(),qn.getOrCreateInstance(this).toggle()})),f(qn);const $n="backdrop",Gn="show",Kn=`mousedown.bs.${$n}`,Jn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Xn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Qn extends Y{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Jn}static get DefaultType(){return Xn}static get NAME(){return $n}show(e){if(!this._config.isVisible)return void g(e);this._append();const t=this._getElement();this._config.isAnimated&&u(t),t.classList.add(Gn),this._emulateAnimation((()=>{g(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Gn),this._emulateAnimation((()=>{this.dispose(),g(e)}))):g(e)}dispose(){this._isAppended&&(I.off(this._element,Kn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=i(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),I.on(e,Kn,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){v(e,this._getElement(),this._config.isAnimated)}}const Zn=".bs.focustrap",eo=`focusin${Zn}`,to=`keydown.tab${Zn}`,no="backward",oo={autofocus:!0,trapElement:null},ao={autofocus:"boolean",trapElement:"element"};class ro extends Y{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return oo}static get DefaultType(){return ao}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),I.off(document,Zn),I.on(document,eo,(e=>this._handleFocusin(e))),I.on(document,to,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,I.off(document,Zn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=H.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===no?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?no:"forward")}}const io=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",so=".sticky-top",lo="padding-right",co="margin-right";class uo{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,lo,(t=>t+e)),this._setElementAttributes(io,lo,(t=>t+e)),this._setElementAttributes(so,co,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,lo),this._resetElementAttributes(io,lo),this._resetElementAttributes(so,co)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const o=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+o)return;this._saveInitialAttribute(e,t);const a=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(a))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&j.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=j.getDataAttribute(e,t);null!==n?(j.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(r(e))t(e);else for(const n of H.find(e,this._element))t(n)}}const po=".bs.modal",ho=`hide${po}`,mo=`hidePrevented${po}`,fo=`hidden${po}`,go=`show${po}`,vo=`shown${po}`,_o=`resize${po}`,bo=`click.dismiss${po}`,yo=`mousedown.dismiss${po}`,wo=`keydown.dismiss${po}`,ko=`click${po}.data-api`,xo="modal-open",Eo="show",So="modal-static",Mo={backdrop:!0,focus:!0,keyboard:!0},To={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Co extends z{constructor(e,t){super(e,t),this._dialog=H.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new uo,this._addEventListeners()}static get Default(){return Mo}static get DefaultType(){return To}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||I.trigger(this._element,go,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(xo),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(I.trigger(this._element,ho).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Eo),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){I.off(window,po),I.off(this._dialog,po),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Qn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ro({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=H.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),u(this._element),this._element.classList.add(Eo),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,I.trigger(this._element,vo,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){I.on(this._element,wo,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),I.on(window,_o,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),I.on(this._element,yo,(e=>{I.one(this._element,bo,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(xo),this._resetAdjustments(),this._scrollBar.reset(),I.trigger(this._element,fo)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(I.trigger(this._element,mo).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(So)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(So),this._queueCallback((()=>{this._element.classList.remove(So),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=m()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=m()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Co.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}I.on(document,ko,'[data-bs-toggle="modal"]',(function(e){const t=H.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),I.one(t,go,(e=>{e.defaultPrevented||I.one(t,fo,(()=>{s(this)&&this.focus()}))}));const n=H.findOne(".modal.show");n&&Co.getInstance(n).hide(),Co.getOrCreateInstance(t).toggle(this)})),V(Co),f(Co);const Ao=".bs.offcanvas",Do=".data-api",Po=`load${Ao}${Do}`,Lo="show",No="showing",Io="hiding",Oo=".offcanvas.show",Ro=`show${Ao}`,Fo=`shown${Ao}`,jo=`hide${Ao}`,Yo=`hidePrevented${Ao}`,zo=`hidden${Ao}`,Bo=`resize${Ao}`,Ho=`click${Ao}${Do}`,Vo=`keydown.dismiss${Ao}`,Uo={backdrop:!0,keyboard:!0,scroll:!1},Wo={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qo extends z{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Uo}static get DefaultType(){return Wo}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||I.trigger(this._element,Ro,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new uo).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(No),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Lo),this._element.classList.remove(No),I.trigger(this._element,Fo,{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(I.trigger(this._element,jo).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Io),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Lo,Io),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new uo).reset(),I.trigger(this._element,zo)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Qn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():I.trigger(this._element,Yo)}:null})}_initializeFocusTrap(){return new ro({trapElement:this._element})}_addEventListeners(){I.on(this._element,Vo,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():I.trigger(this._element,Yo))}))}static jQueryInterface(e){return this.each((function(){const t=qo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}I.on(document,Ho,'[data-bs-toggle="offcanvas"]',(function(e){const t=H.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;I.one(t,zo,(()=>{s(this)&&this.focus()}));const n=H.findOne(Oo);n&&n!==t&&qo.getInstance(n).hide(),qo.getOrCreateInstance(t).toggle(this)})),I.on(window,Po,(()=>{for(const e of H.find(Oo))qo.getOrCreateInstance(e).show()})),I.on(window,Bo,(()=>{for(const e of H.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&qo.getOrCreateInstance(e).hide()})),V(qo),f(qo);const $o={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Go=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ko=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Jo=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Go.has(n)||Boolean(Ko.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))},Xo={allowList:$o,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Qo={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Zo={entry:"(string|element|function|null)",selector:"(string|element)"};class ea extends Y{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Xo}static get DefaultType(){return Qo}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Zo)}_setContent(e,t,n){const o=H.findOne(n,e);o&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(i(t),o):this._config.html?o.innerHTML=this._maybeSanitize(t):o.textContent=t:o.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const o=(new window.DOMParser).parseFromString(e,"text/html"),a=[].concat(...o.body.querySelectorAll("*"));for(const e of a){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const o=[].concat(...e.attributes),a=[].concat(t["*"]||[],t[n]||[]);for(const t of o)Jo(t,a)||e.removeAttribute(t.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return g(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ta=new Set(["sanitize","allowList","sanitizeFn"]),na="fade",oa="show",aa=".tooltip-inner",ra=".modal",ia="hide.bs.modal",sa="hover",la="focus",ca={AUTO:"auto",TOP:"top",RIGHT:m()?"left":"right",BOTTOM:"bottom",LEFT:m()?"right":"left"},da={allowList:$o,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ua={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class pa extends z{constructor(e,t){if(void 0===wn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return da}static get DefaultType(){return ua}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(ra),ia,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=I.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(n),I.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(oa),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))I.on(e,"mouseover",d);this._queueCallback((()=>{I.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!I.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(oa),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))I.off(e,"mouseover",d);this._activeTrigger.click=!1,this._activeTrigger[la]=!1,this._activeTrigger[sa]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(na,oa),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(na),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ea({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[aa]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(na)}_isShown(){return this.tip&&this.tip.classList.contains(oa)}_createPopper(e){const t=g(this._config.placement,[this,e,this._element]),n=ca[t.toUpperCase()];return yn(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return g(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...g(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)I.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===sa?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===sa?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");I.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?la:sa]=!0,t._enter()})),I.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?la:sa]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},I.on(this._element.closest(ra),ia,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=j.getDataAttributes(this._element);for(const e of Object.keys(t))ta.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:i(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=pa.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}f(pa);const ha=".popover-header",ma=".popover-body",fa={...pa.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},ga={...pa.DefaultType,content:"(null|string|element|function)"};class va extends pa{static get Default(){return fa}static get DefaultType(){return ga}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ha]:this._getTitle(),[ma]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=va.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}f(va);const _a=".bs.scrollspy",ba=`activate${_a}`,ya=`click${_a}`,wa=`load${_a}.data-api`,ka="active",xa="[href]",Ea=".nav-link",Sa=`${Ea}, .nav-item > ${Ea}, .list-group-item`,Ma={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ta={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ca extends z{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ma}static get DefaultType(){return Ta}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=i(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(I.off(this._config.target,ya),I.on(this._config.target,ya,xa,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:o,behavior:"smooth"});n.scrollTop=o}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},o=(this._rootElement||document.documentElement).scrollTop,a=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(a&&e){if(n(r),!o)return}else a||e||n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=H.find(xa,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=H.findOne(decodeURI(t.hash),this._element);s(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(ka),this._activateParents(e),I.trigger(this._element,ba,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))H.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(ka);else for(const t of H.parents(e,".nav, .list-group"))for(const e of H.prev(t,Sa))e.classList.add(ka)}_clearActiveClass(e){e.classList.remove(ka);const t=H.find(`${xa}.${ka}`,e);for(const e of t)e.classList.remove(ka)}static jQueryInterface(e){return this.each((function(){const t=Ca.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}I.on(window,wa,(()=>{for(const e of H.find('[data-bs-spy="scroll"]'))Ca.getOrCreateInstance(e)})),f(Ca);const Aa=".bs.tab",Da=`hide${Aa}`,Pa=`hidden${Aa}`,La=`show${Aa}`,Na=`shown${Aa}`,Ia=`click${Aa}`,Oa=`keydown${Aa}`,Ra=`load${Aa}`,Fa="ArrowLeft",ja="ArrowRight",Ya="ArrowUp",za="ArrowDown",Ba="Home",Ha="End",Va="active",Ua="fade",Wa="show",qa=".dropdown-toggle",$a=`:not(${qa})`,Ga='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ka=`.nav-link${$a}, .list-group-item${$a}, [role="tab"]${$a}, ${Ga}`,Ja=`.${Va}[data-bs-toggle="tab"], .${Va}[data-bs-toggle="pill"], .${Va}[data-bs-toggle="list"]`;class Xa extends z{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),I.on(this._element,Oa,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?I.trigger(t,Da,{relatedTarget:e}):null;I.trigger(e,La,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Va),this._activate(H.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),I.trigger(e,Na,{relatedTarget:t})):e.classList.add(Wa)}),e,e.classList.contains(Ua)))}_deactivate(e,t){e&&(e.classList.remove(Va),e.blur(),this._deactivate(H.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),I.trigger(e,Pa,{relatedTarget:t})):e.classList.remove(Wa)}),e,e.classList.contains(Ua)))}_keydown(e){if(![Fa,ja,Ya,za,Ba,Ha].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!l(e)));let n;if([Ba,Ha].includes(e.key))n=t[e.key===Ba?0:t.length-1];else{const o=[ja,za].includes(e.key);n=_(t,e.target,o,!0)}n&&(n.focus({preventScroll:!0}),Xa.getOrCreateInstance(n).show())}_getChildren(){return H.find(Ka,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=H.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const o=(e,o)=>{const a=H.findOne(e,n);a&&a.classList.toggle(o,t)};o(qa,Va),o(".dropdown-menu",Wa),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Va)}_getInnerElement(e){return e.matches(Ka)?e:H.findOne(Ka,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Xa.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}I.on(document,Ia,Ga,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Xa.getOrCreateInstance(this).show()})),I.on(window,Ra,(()=>{for(const e of H.find(Ja))Xa.getOrCreateInstance(e)})),f(Xa);const Qa=".bs.toast",Za=`mouseover${Qa}`,er=`mouseout${Qa}`,tr=`focusin${Qa}`,nr=`focusout${Qa}`,or=`hide${Qa}`,ar=`hidden${Qa}`,rr=`show${Qa}`,ir=`shown${Qa}`,sr="hide",lr="show",cr="showing",dr={animation:"boolean",autohide:"boolean",delay:"number"},ur={animation:!0,autohide:!0,delay:5e3};class pr extends z{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ur}static get DefaultType(){return dr}static get NAME(){return"toast"}show(){I.trigger(this._element,rr).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(sr),u(this._element),this._element.classList.add(lr,cr),this._queueCallback((()=>{this._element.classList.remove(cr),I.trigger(this._element,ir),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(I.trigger(this._element,or).defaultPrevented||(this._element.classList.add(cr),this._queueCallback((()=>{this._element.classList.add(sr),this._element.classList.remove(cr,lr),I.trigger(this._element,ar)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(lr),super.dispose()}isShown(){return this._element.classList.contains(lr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){I.on(this._element,Za,(e=>this._onInteraction(e,!0))),I.on(this._element,er,(e=>this._onInteraction(e,!1))),I.on(this._element,tr,(e=>this._onInteraction(e,!0))),I.on(this._element,nr,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=pr.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return V(pr),f(pr),{Alert:$,Button:K,Carousel:Ae,Collapse:Ve,Dropdown:qn,Modal:Co,Offcanvas:qo,Popover:va,ScrollSpy:Ca,Tab:Xa,Toast:pr,Tooltip:pa}}()},8850:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var o=n(123),a=n(7827),r=n(551);function i(e){return(0,r.A)(1,arguments),(0,a.default)(e,{weekStartsOn:1})}var s=6048e5;function l(e){(0,r.A)(1,arguments);var t=(0,o.default)(e),n=i(t).getTime()-function(e){(0,r.A)(1,arguments);var t=function(e){(0,r.A)(1,arguments);var t=(0,o.default)(e),n=t.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var s=i(a),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var c=i(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),i(n)}(t).getTime();return Math.round(n/s)+1}},8861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},8895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(123),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,a.default)(e),i=(0,o.A)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(i),n)}},8941:(e,t,n)=>{"use strict";t.Ay=void 0;var o=g(n(1923)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!=r&&Object.prototype.hasOwnProperty.call(e,r)){var i=a?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(o,r,i):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}(n(6540)),r=g(n(961)),i=g(n(751)),s=g(n(6527)),l=g(n(5241)),c=g(n(5178)),d=g(n(8631)),u=g(n(1581)),p=g(n(9015)),h=n(3869),m=n(3684);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function g(e){return e&&e.__esModule?e:{default:e}}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}g(n(6489));var y=function(e){function t(t){var n;return(n=e.call(this,t)||this).onDropdownClose=function(){n.setState({cursor:null}),n.props.onDropdownClose()},n.onScroll=function(){n.props.closeOnScroll&&n.dropDown("close"),n.updateSelectBounds()},n.updateSelectBounds=function(){return n.select.current&&n.setState({selectBounds:n.select.current.getBoundingClientRect()})},n.getSelectBounds=function(){return n.state.selectBounds},n.dropDown=function(e,t,o){void 0===e&&(e="toggle"),void 0===o&&(o=!1);var a=t&&t.target||t&&t.srcElement;return void 0!==n.props.onDropdownCloseRequest&&n.state.dropdown&&!1===o&&"close"===e?n.props.onDropdownCloseRequest({props:n.props,methods:n.methods,state:n.state,close:function(){return n.dropDown("close",null,!0)}}):n.props.portal&&!n.props.closeOnScroll&&!n.props.closeOnSelect&&t&&a&&a.offsetParent&&a.offsetParent.classList.contains("react-dropdown-select-dropdown")?void 0:n.props.keepOpen?n.setState({dropdown:!0}):"close"===e&&n.state.dropdown?(n.select.current.blur(),n.setState({dropdown:!1,search:n.props.clearOnBlur?"":n.state.search,searchResults:n.props.options})):"open"!==e||n.state.dropdown?"toggle"===e&&(n.select.current.focus(),n.setState({dropdown:!n.state.dropdown})):n.setState({dropdown:!0})},n.getSelectRef=function(){return n.select.current},n.addItem=function(e){if(n.props.multi){if((0,h.valueExistInSelected)((0,h.getByPath)(e,n.props.valueField),n.state.values,n.props))return n.removeItem(null,e,!1);n.setState({values:[].concat(n.state.values,[e])})}else n.setState({values:[e],dropdown:!1});return n.props.clearOnSelect&&n.setState({search:""},(function(){n.setState({searchResults:n.searchResults()})})),!0},n.removeItem=function(e,t,o){void 0===o&&(o=!1),e&&o&&(e.preventDefault(),e.stopPropagation(),n.dropDown("close")),n.setState({values:n.state.values.filter((function(e){return(0,h.getByPath)(e,n.props.valueField)!==(0,h.getByPath)(t,n.props.valueField)}))})},n.setSearch=function(e){n.setState({cursor:null}),n.setState({search:e.target.value},(function(){n.setState({searchResults:n.searchResults()})}))},n.getInputSize=function(){return n.state.search?n.state.search.length:0<n.state.values.length?n.props.addPlaceholder.length:n.props.placeholder.length},n.toggleSelectAll=function(){return n.setState({values:0===n.state.values.length?n.selectAll():n.clearAll()})},n.clearAll=function(){n.props.onClearAll(),n.setState({values:[]})},n.selectAll=function(e){void 0===e&&(e=[]),n.props.onSelectAll();var t=0<e.length?e:n.props.options.filter((function(e){return!e.disabled}));n.setState({values:t})},n.isSelected=function(e){return!!n.state.values.find((function(t){return(0,h.getByPath)(t,n.props.valueField)===(0,h.getByPath)(e,n.props.valueField)}))},n.areAllSelected=function(){return n.state.values.length===n.props.options.filter((function(e){return!e.disabled})).length},n.safeString=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},n.sortBy=function(){var e=n.props,t=e.sortBy,o=e.options;return t?(o.sort((function(e,n){return(0,h.getProp)(e,t)<(0,h.getProp)(n,t)?-1:(0,h.getProp)(e,t)>(0,h.getProp)(n,t)?1:0})),o):o},n.searchFn=function(e){var t=e.state,o=e.methods,a=new RegExp(o.safeString(t.search),"i");return o.sortBy().filter((function(e){return a.test((0,h.getByPath)(e,n.props.searchBy)||(0,h.getByPath)(e,n.props.valueField))}))},n.searchResults=function(){var e={state:n.state,props:n.props,methods:n.methods};return n.props.searchFn(e)||n.searchFn(e)},n.activeCursorItem=function(e){return n.setState({activeCursorItem:e})},n.handleKeyDown=function(e){var t={event:e,state:n.state,props:n.props,methods:n.methods,setState:n.setState.bind(_(n))};return n.props.handleKeyDownFn(t)||n.handleKeyDownFn(t)},n.handleKeyDownFn=function(e){var t=e.event,o=e.state,a=e.props,r=e.methods,i=e.setState,s=o.cursor,l=o.searchResults,c="Escape"===t.key,d="Enter"===t.key,u="ArrowUp"===t.key,p="ArrowDown"===t.key,m="Backspace"===t.key,f="Tab"===t.key&&!t.shiftKey,g=t.shiftKey&&"Tab"===t.key;if(p&&!o.dropdown)return t.preventDefault(),n.dropDown("open"),i({cursor:0});if((p||f&&o.dropdown)&&null===s)return i({cursor:0});if((u||p||g&&o.dropdown||f&&o.dropdown)&&t.preventDefault(),c&&n.dropDown("close"),d){var v=l[s];if(v&&!v.disabled){if(a.create&&(0,h.valueExistInSelected)(o.search,o.values,a))return null;r.addItem(v)}}return(p||f&&o.dropdown)&&l.length===s?i({cursor:0}):((p||f&&o.dropdown)&&i((function(e){return{cursor:e.cursor+1}})),(u||g&&o.dropdown)&&0<s&&i((function(e){return{cursor:e.cursor-1}})),(u||g&&o.dropdown)&&0===s&&i({cursor:l.length}),void(m&&a.backspaceDelete&&0===n.getInputSize()&&n.setState({values:n.state.values.slice(0,-1)})))},n.renderDropdown=function(){return n.props.portal?r.default.createPortal(a.default.createElement(l.default,{props:n.props,state:n.state,methods:n.methods}),n.dropdownRoot):a.default.createElement(l.default,{props:n.props,state:n.state,methods:n.methods})},n.createNew=function(e){var t,o=((t={})[n.props.labelField]=e,t[n.props.valueField]=e,t);n.addItem(o),n.props.onCreateNew(o),n.setState({search:""})},n.state={dropdown:!1,values:t.values,search:"",selectBounds:{},cursor:null,searchResults:t.options},n.methods={activeCursorItem:n.activeCursorItem,addItem:n.addItem,areAllSelected:n.areAllSelected,clearAll:n.clearAll,createNew:n.createNew,dropDown:n.dropDown,getInputSize:n.getInputSize,getSelectBounds:n.getSelectBounds,getSelectRef:n.getSelectRef,handleKeyDown:n.handleKeyDown,isSelected:n.isSelected,removeItem:n.removeItem,safeString:n.safeString,searchResults:n.searchResults,selectAll:n.selectAll,setSearch:n.setSearch,sortBy:n.sortBy,toggleSelectAll:n.toggleSelectAll},n.select=a.default.createRef(),n.dropdownRoot="undefined"!=typeof document&&document.createElement("div"),n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.portal&&this.props.portal.appendChild(this.dropdownRoot),(0,h.isomorphicWindow)().addEventListener("resize",(0,h.debounce)(this.updateSelectBounds)),(0,h.isomorphicWindow)().addEventListener("scroll",(0,h.debounce)(this.onScroll)),this.dropDown("close"),this.select&&this.updateSelectBounds(),this.props.defaultMenuIsOpen&&this.dropDown("open")},n.componentDidUpdate=function(e,t){var n=this;!this.props.compareValuesFunc(e.values,this.props.values)&&this.props.compareValuesFunc(e.values,t.values)&&(this.setState({values:this.props.values},(function(){n.props.onChange(n.state.values)})),this.updateSelectBounds()),e.options!==this.props.options&&this.setState({searchResults:this.searchResults()}),t.values!==this.state.values&&(this.props.onChange(this.state.values),this.updateSelectBounds()),t.search!==this.state.search&&this.updateSelectBounds(),t.values!==this.state.values&&this.props.closeOnSelect&&this.dropDown("close"),e.multi!==this.props.multi&&this.updateSelectBounds(),t.dropdown&&t.dropdown!==this.state.dropdown&&this.onDropdownClose(),t.dropdown||t.dropdown===this.state.dropdown||this.props.onDropdownOpen()},n.componentWillUnmount=function(){this.props.portal&&this.props.portal.removeChild(this.dropdownRoot),(0,h.isomorphicWindow)().removeEventListener("resize",(0,h.debounce)(this.updateSelectBounds,this.props.debounceDelay)),(0,h.isomorphicWindow)().removeEventListener("scroll",(0,h.debounce)(this.onScroll,this.props.debounceDelay))},n.render=function(){var e=this;return a.default.createElement(i.default,{onClickOutside:function(t){return e.dropDown("close",t)}},a.default.createElement(w,v({onKeyDown:this.handleKeyDown,"aria-label":"Dropdown select","aria-expanded":this.state.dropdown,onClick:function(t){return e.dropDown("open",t)},tabIndex:this.props.disabled?"-1":"0",direction:this.props.direction,style:this.props.style,ref:this.select,disabled:this.props.disabled,className:m.LIB_NAME+" "+this.props.className,color:this.props.color},this.props.additionalProps),a.default.createElement(s.default,{props:this.props,state:this.state,methods:this.methods}),(this.props.name||this.props.required)&&a.default.createElement("input",{tabIndex:-1,style:{opacity:0,width:0,position:"absolute"},name:this.props.name,required:this.props.required,pattern:this.props.pattern,defaultValue:this.state.values.map((function(t){return t[e.props.labelField]})).toString()||[],disabled:this.props.disabled}),this.props.loading&&a.default.createElement(c.default,{props:this.props}),this.props.clearable&&a.default.createElement(d.default,{props:this.props,state:this.state,methods:this.methods}),this.props.separator&&a.default.createElement(u.default,{props:this.props,state:this.state,methods:this.methods}),this.props.dropdownHandle&&a.default.createElement(p.default,{onClick:function(){return e.select.current.focus()},props:this.props,state:this.state,methods:this.methods}),this.state.dropdown&&!this.props.disabled&&this.renderDropdown()))},t}(a.Component);y.defaultProps={addPlaceholder:"",additionalProps:null,autoFocus:!1,backspaceDelete:!0,clearAllLabel:"Clear all",clearOnBlur:!0,clearOnSelect:!0,clearable:!1,closeOnScroll:!1,closeOnSelect:!1,closeOnClickInput:!1,color:"#0074D9",compareValuesFunc:h.isEqual,create:!1,createNewLabel:"add {search}",debounceDelay:0,direction:"ltr",disabled:!1,disabledLabel:"disabled",dropdownGap:5,dropdownHandle:!0,dropdownHeight:"300px",dropdownPosition:"bottom",handleKeyDownFn:function(){},keepOpen:!1,keepSelectedInList:!0,labelField:"label",loading:!1,multi:!1,name:null,noDataLabel:"No data",onChange:function(){},onClearAll:function(){},onCreateNew:function(){},onDropdownClose:function(){},onDropdownCloseRequest:void 0,onDropdownOpen:function(){},onSelectAll:function(){},options:[],pattern:void 0,placeholder:"Select...",portal:null,required:!1,searchBy:"label",searchFn:function(){},searchable:!0,selectAll:!1,selectAllLabel:"Select all",separator:!1,sortBy:null,valueField:"value",values:[],defaultMenuIsOpen:!1};var w=(0,o.default)("div",{target:"e1gzf2xs0"})("box-sizing:border-box;position:relative;display:flex;border:1px solid #ccc;width:100%;border-radius:2px;padding:2px 5px;flex-direction:row;direction:",(function(e){return e.direction}),";align-items:center;cursor:pointer;min-height:36px;",(function(e){return e.disabled?"cursor: not-allowed;pointer-events: none;opacity: 0.3;":"pointer-events: all;"})," :hover,:focus-within{border-color:",(function(e){return e.color}),";}:focus,:focus-within{outline:0;box-shadow:0 0 0 3px ",(function(e){var t=e.color;return(0,h.hexToRGBA)(t,.2)}),";}*{box-sizing:border-box;}"),k=y;t.Ay=k},8959:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(o=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),o%10==1&&o%100!=11?a[0]:o%10>=2&&o%10<=4&&(o%100<10||o%100>=20)?a[1]:a[2]);var o,a}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(5093))},9015:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(1923)),a=i(n(6540)),r=n(3684);function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,o.default)("div",{target:"e1vudypg0"})("text-align:center;",(function(e){var t=e.dropdownOpen,n=e.rotate;return t?"\n      pointer-events: all;\n      "+(n?"transform: rotate(0deg);margin: 0px 0 -3px 5px;":"")+"\n      ":"\n      pointer-events: none;\n      "+(n?"margin: 0 0 0 5px;transform: rotate(180deg);":"")+"\n      "}),";cursor:pointer;svg{width:16px;height:16px;}:hover{path{stroke:",(function(e){return e.color}),";}}:focus{outline:none;path{stroke:",(function(e){return e.color}),";}}");t.default=function(e){var t=e.props,n=e.state,o=e.methods;return a.default.createElement(s,{tabIndex:"-1",onClick:function(e){return o.dropDown(n.dropdown?"close":"open",e)},dropdownOpen:n.dropdown,onKeyPress:function(e){return o.dropDown("toggle",e)},onKeyDown:function(e){return o.dropDown("toggle",e)},className:r.LIB_NAME+"-dropdown-handle",rotate:t.dropdownHandleRenderer?0:1,color:t.color},t.dropdownHandleRenderer?t.dropdownHandleRenderer({props:t,state:n,methods:o}):a.default.createElement("svg",{fill:"currentColor",viewBox:"0 0 40 40"},a.default.createElement("path",{d:"M31 26.4q0 .3-.2.5l-1.1 1.2q-.3.2-.6.2t-.5-.2l-8.7-8.8-8.8 8.8q-.2.2-.5.2t-.5-.2l-1.2-1.2q-.2-.2-.2-.5t.2-.5l10.4-10.4q.3-.2.6-.2t.5.2l10.4 10.4q.2.2.2.5z"})))}},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(5093))},9053:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(5093))},9089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,a=(o=n(6540))&&o.__esModule?o:{default:o};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,s(t).apply(this,arguments))}var n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e="div",t=Object.assign({},this.props);return this.props.wrapperComponent&&(e=this.props.wrapperComponent.type,delete(t=Object.assign(t,this.props.wrapperComponent.props)).wrapperComponent),this.props.enabled&&(t.draggable="true",t.onDragEnd=this.onDragEnd.bind(this),t.onDragStart=this.onDragStart.bind(this)),delete t.enabled,a.default.createElement(e,t,t.children)}},{key:"onDragStart",value:function(e){"function"==typeof this.props.onDragStart&&this.props.onDragStart(e);var t=Object.assign({},this.props);this.props.wrapperComponent&&(t=Object.assign(t,this.props.wrapperComponent.props)),e.dataTransfer.setData(t.type,t.data)}},{key:"onDragEnd",value:function(e){"function"==typeof this.props.onDragEnd&&this.props.onDragEnd(e)}}])&&i(n.prototype,o),t}(a.default.Component);t.default=c,c.defaultProps={enabled:!0}},9090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(6540),s=g(n(5556)),l=f(n(7791)),c=g(n(7067)),d=f(n(4081)),u=f(n(4838)),p=n(834),h=g(p),m=g(n(9628));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}n(7727);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},_=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,a=e.htmlOpenClassName,r=e.bodyOpenClassName,i=e.parentSelector,s=i&&i().ownerDocument||document;r&&u.remove(s.body,r),a&&u.remove(s.getElementsByTagName("html")[0],a),o&&_>0&&0==(_-=1)&&d.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===(void 0===t?"undefined":a(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},r=o.base;return n.state.afterOpen&&(r=r+" "+o.afterOpen),n.state.beforeClose&&(r=r+" "+o.beforeClose),"string"==typeof t&&t?r+" "+t:r},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName,r=e.parentSelector,i=r&&r().ownerDocument||document;a&&u.add(i.body,a),o&&u.add(i.getElementsByTagName("html")[0],o),n&&(_+=1,d.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,a=e.overlayClassName,r=e.defaultStyles,i=e.children,s=n?{}:r.content,l=a?{}:r.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",a),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},d=o({id:t,ref:this.setContentRef,style:o({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),u=this.props.contentElement(d,i);return this.props.overlayElement(c,u)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},9231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(5093))},9251:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){return(0,a.A)(1,arguments),(0,o.default)(e).getSeconds()}},9312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},9317:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(2118),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.default)(e,12*n)}},9326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(9317),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=(0,o.A)(t);return(0,a.default)(e,-n)}},9330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(5093))},9374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,o,a){var r=e+" ";switch(o){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(n||a?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||a?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||a?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(a?"daga":"dögum"):n?r+"dagur":r+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(a?"mánuði":"mánuðum"):n?r+"mánuður":r+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?r+(n||a?"ár":"árum"):r+(n||a?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9386:function(e,t,n){!function(e,t,n,o,a,r,i,s,l,c,d,u,p,h,m,f,g,v,_,b,y,w,k,x,E,S,M,T,C,A,D,P,L,N,I,O,R,F,j,Y,z,B,H,V,U,W,q,$,G,K,J,X,Q,Z,ee,te,ne,oe,ae,re,ie,se,le,ce){"use strict";function de(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ue=de(t),pe=de(o),he=de(a),me=de(r),fe=de(i),ge=de(s),ve=de(l),_e=de(c),be=de(d),ye=de(u),we=de(p),ke=de(h),xe=de(m),Ee=de(f),Se=de(g),Me=de(v),Te=de(_),Ce=de(b),Ae=de(y),De=de(w),Pe=de(k),Le=de(x),Ne=de(E),Ie=de(S),Oe=de(M),Re=de(T),Fe=de(C),je=de(A),Ye=de(D),ze=de(P),Be=de(L),He=de(N),Ve=de(I),Ue=de(O),We=de(R),qe=de(F),$e=de(j),Ge=de(Y),Ke=de(z),Je=de(B),Xe=de(H),Qe=de(V),Ze=de(U),et=de(W),tt=de($),nt=de(G),ot=de(K),at=de(J),rt=de(X),it=de(Q),st=de(Z),lt=de(ee),ct=de(te),dt=de(ne),ut=de(oe),pt=de(ae),ht=de(re),mt=de(ie),ft=de(se),gt=de(ce);function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bt(e)}function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Lt(o.key),o)}}function kt(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xt(e,t,n){return(t=Lt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Et.apply(this,arguments)}function St(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}function Mt(e){return Mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mt(e)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function Ct(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Mt(e);if(t){var a=Mt(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ct(e)}(this,n)}}function Dt(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Lt(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var Nt=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},It=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ot={p:It,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],r=o[2];if(!r)return Nt(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Nt(a,t)).replace("{{time}}",It(r,t))}},Rt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ft(e){var t=e?"string"==typeof e||e instanceof String?ht.default(e):ut.default(e):new Date;return jt(t)?t:null}function jt(e,t){return t=t||new Date("1/1/1000"),me.default(e)&&!ct.default(e,t)}function Yt(e,t,n){if("en"===n)return fe.default(e,t,{awareOfUnicodeTokens:!0});var o=en(n);return n&&!o&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!o&&Zt()&&en(Zt())&&(o=en(Zt())),fe.default(e,t,{locale:o||null,awareOfUnicodeTokens:!0})}function zt(e,t){var n=t.dateFormat,o=t.locale;return e&&Yt(e,Array.isArray(n)?n[0]:n,o)||""}function Bt(e,t){var n=t.hour,o=void 0===n?0:n,a=t.minute,r=void 0===a?0:a,i=t.second,s=void 0===i?0:i;return ze.default(Ye.default(je.default(e,s),r),o)}function Ht(e,t,n){var o=en(t||Zt());return Je.default(e,{locale:o,weekStartsOn:n})}function Vt(e){return Xe.default(e)}function Ut(e){return Ze.default(e)}function Wt(e){return Qe.default(e)}function qt(){return Ke.default(Ft())}function $t(e,t){return e&&t?it.default(e,t):!e&&!t}function Gt(e,t){return e&&t?rt.default(e,t):!e&&!t}function Kt(e,t){return e&&t?st.default(e,t):!e&&!t}function Jt(e,t){return e&&t?at.default(e,t):!e&&!t}function Xt(e,t){return e&&t?ot.default(e,t):!e&&!t}function Qt(e,t,n){var o,a=Ke.default(t),r=et.default(n);try{o=dt.default(e,{start:a,end:r})}catch(e){o=!1}return o}function Zt(){return("undefined"!=typeof window?window:globalThis).__localeId__}function en(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function tn(e,t){return Yt(Be.default(Ft(),e),"LLLL",t)}function nn(e,t){return Yt(Be.default(Ft(),e),"LLL",t)}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,a=t.excludeDates,r=t.excludeDateIntervals,i=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return pn(e,{minDate:n,maxDate:o})||a&&a.some((function(t){return Jt(e,t)}))||r&&r.some((function(t){var n=t.start,o=t.end;return dt.default(e,{start:n,end:o})}))||i&&!i.some((function(t){return Jt(e,t)}))||s&&!s.some((function(t){var n=t.start,o=t.end;return dt.default(e,{start:n,end:o})}))||l&&!l(Ft(e))||!1}function an(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,o=t.excludeDateIntervals;return o&&o.length>0?o.some((function(t){var n=t.start,o=t.end;return dt.default(e,{start:n,end:o})})):n&&n.some((function(t){return Jt(e,t)}))||!1}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,a=t.excludeDates,r=t.includeDates,i=t.filterDate;return pn(e,{minDate:Xe.default(n),maxDate:tt.default(o)})||a&&a.some((function(t){return Gt(e,t)}))||r&&!r.some((function(t){return Gt(e,t)}))||i&&!i(Ft(e))||!1}function sn(e,t,n,o){var a=Re.default(e),r=Ie.default(e),i=Re.default(t),s=Ie.default(t),l=Re.default(o);return a===i&&a===l?r<=n&&n<=s:a<i?l===a&&r<=n||l===i&&s>=n||l<i&&l>a:void 0}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,a=t.excludeDates,r=t.includeDates,i=t.filterDate;return pn(e,{minDate:n,maxDate:o})||a&&a.some((function(t){return Kt(e,t)}))||r&&!r.some((function(t){return Kt(e,t)}))||i&&!i(Ft(e))||!1}function cn(e,t,n){if(!me.default(t)||!me.default(n))return!1;var o=Re.default(t),a=Re.default(n);return o<=e&&a>=e}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate,a=t.excludeDates,r=t.includeDates,i=t.filterDate,s=new Date(e,0,1);return pn(s,{minDate:Ze.default(n),maxDate:nt.default(o)})||a&&a.some((function(e){return $t(s,e)}))||r&&!r.some((function(e){return $t(s,e)}))||i&&!i(Ft(s))||!1}function un(e,t,n,o){var a=Re.default(e),r=Oe.default(e),i=Re.default(t),s=Oe.default(t),l=Re.default(o);return a===i&&a===l?r<=n&&n<=s:a<i?l===a&&r<=n||l===i&&s>=n||l<i&&l>a:void 0}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.maxDate;return n&&qe.default(e,n)<0||o&&qe.default(e,o)>0}function hn(e,t){return t.some((function(t){return De.default(t)===De.default(e)&&Ae.default(t)===Ae.default(e)}))}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,o=t.includeTimes,a=t.filterTime;return n&&hn(e,n)||o&&!hn(e,o)||a&&!a(e)||!1}function fn(e,t){var n=t.minTime,o=t.maxTime;if(!n||!o)throw new Error("Both minTime and maxTime props required");var a,r=Ft(),i=ze.default(Ye.default(r,Ae.default(e)),De.default(e)),s=ze.default(Ye.default(r,Ae.default(n)),De.default(n)),l=ze.default(Ye.default(r,Ae.default(o)),De.default(o));try{a=!dt.default(i,{start:s,end:l})}catch(e){a=!1}return a}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.includeDates,a=Se.default(e,1);return n&&$e.default(n,a)>0||o&&o.every((function(e){return $e.default(e,a)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,o=t.includeDates,a=ye.default(e,1);return n&&$e.default(a,n)>0||o&&o.every((function(e){return $e.default(a,e)>0}))||!1}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.includeDates,a=Te.default(e,1);return n&&Ge.default(n,a)>0||o&&o.every((function(e){return Ge.default(e,a)>0}))||!1}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,o=t.includeDates,a=ke.default(e,1);return n&&Ge.default(a,n)>0||o&&o.every((function(e){return Ge.default(a,e)>0}))||!1}function yn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var o=n.filter((function(e){return qe.default(e,t)>=0}));return Ue.default(o)}return n?Ue.default(n):t}function wn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var o=n.filter((function(e){return qe.default(e,t)<=0}));return We.default(o)}return n?We.default(n):t}function kn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,o=0,a=e.length;o<a;o++){var r=e[o];if(he.default(r)){var i=Yt(r,"MM.dd.yyyy"),s=n.get(i)||[];s.includes(t)||(s.push(t),n.set(i,s))}else if("object"===bt(r)){var l=Object.keys(r),c=l[0],d=r[l[0]];if("string"==typeof c&&d.constructor===Array)for(var u=0,p=d.length;u<p;u++){var h=Yt(d[u],"MM.dd.yyyy"),m=n.get(h)||[];m.includes(c)||(m.push(c),n.set(h,m))}}}return n}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach((function(e){var o=e.date,a=e.holidayName;if(he.default(o)){var r=Yt(o,"MM.dd.yyyy"),i=n.get(r)||{};if(!("className"in i)||i.className!==t||(s=i.holidayNames,l=[a],s.length!==l.length||!s.every((function(e,t){return e===l[t]})))){var s,l;i.className=t;var c=i.holidayNames;i.holidayNames=c?[].concat(Dt(c),[a]):[a],n.set(r,i)}}})),n}function En(e,t,n,o,a){for(var r=a.length,i=[],s=0;s<r;s++){var l=ge.default(ve.default(e,De.default(a[s])),Ae.default(a[s])),c=ge.default(e,(n+1)*o);lt.default(l,t)&&ct.default(l,c)&&i.push(a[s])}return i}function Sn(e){return e<10?"0".concat(e):"".concat(e)}function Mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=Math.ceil(Re.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Tn(e){var t=e.getSeconds(),n=e.getMilliseconds();return ut.default(e.getTime()-1e3*t-n)}function Cn(e,t,n,o){for(var a=[],r=0;r<2*t+1;r++){var i=e+t-r,s=!0;n&&(s=Re.default(n)<=i),o&&s&&(s=Re.default(o)>=i),s&&a.push(i)}return a}var An=function(e){St(o,e);var n=At(o);function o(e){var a;yt(this,o),xt(Ct(a=n.call(this,e)),"renderOptions",(function(){var e=a.props.year,t=a.state.yearsList.map((function(t){return ue.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:a.onChange.bind(Ct(a),t),"aria-selected":e===t?"true":void 0},e===t?ue.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=a.props.minDate?Re.default(a.props.minDate):null,o=a.props.maxDate?Re.default(a.props.maxDate):null;return o&&a.state.yearsList.find((function(e){return e===o}))||t.unshift(ue.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:a.incrementYears},ue.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&a.state.yearsList.find((function(e){return e===n}))||t.push(ue.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:a.decrementYears},ue.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),xt(Ct(a),"onChange",(function(e){a.props.onChange(e)})),xt(Ct(a),"handleClickOutside",(function(){a.props.onCancel()})),xt(Ct(a),"shiftYears",(function(e){var t=a.state.yearsList.map((function(t){return t+e}));a.setState({yearsList:t})})),xt(Ct(a),"incrementYears",(function(){return a.shiftYears(1)})),xt(Ct(a),"decrementYears",(function(){return a.shiftYears(-1)}));var r=e.yearDropdownItemNumber,i=e.scrollableYearDropdown,s=r||(i?10:5);return a.state={yearsList:Cn(a.props.year,s,a.props.minDate,a.props.maxDate)},a.dropdownRef=t.createRef(),a}return kt(o,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}}},{key:"render",value:function(){var e=pe.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ue.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),o}(ue.default.Component),Dn=mt.default(An),Pn=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"state",{dropdownVisible:!1}),xt(Ct(e),"renderSelectOptions",(function(){for(var t=e.props.minDate?Re.default(e.props.minDate):1900,n=e.props.maxDate?Re.default(e.props.maxDate):2100,o=[],a=t;a<=n;a++)o.push(ue.default.createElement("option",{key:a,value:a},a));return o})),xt(Ct(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),xt(Ct(e),"renderSelectMode",(function(){return ue.default.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),xt(Ct(e),"renderReadView",(function(t){return ue.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ue.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),ue.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))})),xt(Ct(e),"renderDropdown",(function(){return ue.default.createElement(Dn,{key:"dropdown",year:e.props.year,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableYearDropdown:e.props.scrollableYearDropdown,yearDropdownItemNumber:e.props.yearDropdownItemNumber})})),xt(Ct(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),xt(Ct(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)})),xt(Ct(e),"toggleDropdown",(function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},(function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)}))})),xt(Ct(e),"handleYearChange",(function(t,n){e.onSelect(t,n),e.setOpen()})),xt(Ct(e),"onSelect",(function(t,n){e.props.onSelect&&e.props.onSelect(t,n)})),xt(Ct(e),"setOpen",(function(){e.props.setOpen&&e.props.setOpen(!0)})),e}return kt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ue.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ue.default.Component),Ln=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"isSelectedMonth",(function(t){return e.props.month===t})),xt(Ct(e),"renderOptions",(function(){return e.props.monthNames.map((function(t,n){return ue.default.createElement("div",{className:e.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(Ct(e),n),"aria-selected":e.isSelectedMonth(n)?"true":void 0},e.isSelectedMonth(n)?ue.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)}))})),xt(Ct(e),"onChange",(function(t){return e.props.onChange(t)})),xt(Ct(e),"handleClickOutside",(function(){return e.props.onCancel()})),e}return kt(n,[{key:"render",value:function(){return ue.default.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}(ue.default.Component),Nn=mt.default(Ln),In=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"state",{dropdownVisible:!1}),xt(Ct(e),"renderSelectOptions",(function(e){return e.map((function(e,t){return ue.default.createElement("option",{key:t,value:t},e)}))})),xt(Ct(e),"renderSelectMode",(function(t){return ue.default.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(t){return e.onChange(t.target.value)}},e.renderSelectOptions(t))})),xt(Ct(e),"renderReadView",(function(t,n){return ue.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},ue.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),ue.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[e.props.month]))})),xt(Ct(e),"renderDropdown",(function(t){return ue.default.createElement(Nn,{key:"dropdown",month:e.props.month,monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown})})),xt(Ct(e),"renderScrollMode",(function(t){var n=e.state.dropdownVisible,o=[e.renderReadView(!n,t)];return n&&o.unshift(e.renderDropdown(t)),o})),xt(Ct(e),"onChange",(function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)})),xt(Ct(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return kt(n,[{key:"render",value:function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return nn(e,t.props.locale)}:function(e){return tn(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return ue.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ue.default.Component);function On(e,t){for(var n=[],o=Vt(e),a=Vt(t);!lt.default(o,a);)n.push(Ft(o)),o=ye.default(o,1);return n}var Rn=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),xt(Ct(o=t.call(this,e)),"renderOptions",(function(){return o.state.monthYearsList.map((function(e){var t=Fe.default(e),n=$t(o.props.date,e)&&Gt(o.props.date,e);return ue.default.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:o.onChange.bind(Ct(o),t),"aria-selected":n?"true":void 0},n?ue.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Yt(e,o.props.dateFormat,o.props.locale))}))})),xt(Ct(o),"onChange",(function(e){return o.props.onChange(e)})),xt(Ct(o),"handleClickOutside",(function(){o.props.onCancel()})),o.state={monthYearsList:On(o.props.minDate,o.props.maxDate)},o}return kt(n,[{key:"render",value:function(){var e=pe.default({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return ue.default.createElement("div",{className:e},this.renderOptions())}}]),n}(ue.default.Component),Fn=mt.default(Rn),jn=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"state",{dropdownVisible:!1}),xt(Ct(e),"renderSelectOptions",(function(){for(var t=Vt(e.props.minDate),n=Vt(e.props.maxDate),o=[];!lt.default(t,n);){var a=Fe.default(t);o.push(ue.default.createElement("option",{key:a,value:a},Yt(t,e.props.dateFormat,e.props.locale))),t=ye.default(t,1)}return o})),xt(Ct(e),"onSelectChange",(function(t){e.onChange(t.target.value)})),xt(Ct(e),"renderSelectMode",(function(){return ue.default.createElement("select",{value:Fe.default(Vt(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())})),xt(Ct(e),"renderReadView",(function(t){var n=Yt(e.props.date,e.props.dateFormat,e.props.locale);return ue.default.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(t){return e.toggleDropdown(t)}},ue.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),ue.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))})),xt(Ct(e),"renderDropdown",(function(){return ue.default.createElement(Fn,{key:"dropdown",date:e.props.date,dateFormat:e.props.dateFormat,onChange:e.onChange,onCancel:e.toggleDropdown,minDate:e.props.minDate,maxDate:e.props.maxDate,scrollableMonthYearDropdown:e.props.scrollableMonthYearDropdown,locale:e.props.locale})})),xt(Ct(e),"renderScrollMode",(function(){var t=e.state.dropdownVisible,n=[e.renderReadView(!t)];return t&&n.unshift(e.renderDropdown()),n})),xt(Ct(e),"onChange",(function(t){e.toggleDropdown();var n=Ft(parseInt(t));$t(e.props.date,n)&&Gt(e.props.date,n)||e.props.onChange(n)})),xt(Ct(e),"toggleDropdown",(function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})})),e}return kt(n,[{key:"render",value:function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return ue.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)}}]),n}(ue.default.Component),Yn=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"dayEl",ue.default.createRef()),xt(Ct(e),"handleClick",(function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)})),xt(Ct(e),"handleMouseEnter",(function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)})),xt(Ct(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),xt(Ct(e),"isSameDay",(function(t){return Jt(e.props.day,t)})),xt(Ct(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!(e.isSameDay(e.props.selected)||e.isSameWeek(e.props.selected))&&(e.isSameDay(e.props.preSelection)||e.isSameWeek(e.props.preSelection))})),xt(Ct(e),"isDisabled",(function(){return on(e.props.day,e.props)})),xt(Ct(e),"isExcluded",(function(){return an(e.props.day,e.props)})),xt(Ct(e),"isStartOfWeek",(function(){return Jt(e.props.day,Ht(e.props.day,e.props.locale,e.props.calendarStartDay))})),xt(Ct(e),"isSameWeek",(function(t){return e.props.showWeekPicker&&Jt(t,Ht(e.props.day,e.props.locale,e.props.calendarStartDay))})),xt(Ct(e),"getHighLightedClass",(function(){var t=e.props,n=t.day,o=t.highlightDates;if(!o)return!1;var a=Yt(n,"MM.dd.yyyy");return o.get(a)})),xt(Ct(e),"getHolidaysClass",(function(){var t=e.props,n=t.day,o=t.holidays;if(!o)return!1;var a=Yt(n,"MM.dd.yyyy");return o.has(a)?[o.get(a).className]:void 0})),xt(Ct(e),"isInRange",(function(){var t=e.props,n=t.day,o=t.startDate,a=t.endDate;return!(!o||!a)&&Qt(n,o,a)})),xt(Ct(e),"isInSelectingRange",(function(){var t,n=e.props,o=n.day,a=n.selectsStart,r=n.selectsEnd,i=n.selectsRange,s=n.selectsDisabledDaysInRange,l=n.startDate,c=n.endDate,d=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return!(!(a||r||i)||!d||!s&&e.isDisabled())&&(a&&c&&(ct.default(d,c)||Xt(d,c))?Qt(o,d,c):(r&&l&&(lt.default(d,l)||Xt(d,l))||!(!i||!l||c||!lt.default(d,l)&&!Xt(d,l)))&&Qt(o,l,d))})),xt(Ct(e),"isSelectingRangeStart",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,o=n.day,a=n.startDate,r=n.selectsStart,i=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Jt(o,r?i:a)})),xt(Ct(e),"isSelectingRangeEnd",(function(){var t;if(!e.isInSelectingRange())return!1;var n=e.props,o=n.day,a=n.endDate,r=n.selectsEnd,i=n.selectsRange,s=null!==(t=e.props.selectingDate)&&void 0!==t?t:e.props.preSelection;return Jt(o,r||i?s:a)})),xt(Ct(e),"isRangeStart",(function(){var t=e.props,n=t.day,o=t.startDate,a=t.endDate;return!(!o||!a)&&Jt(o,n)})),xt(Ct(e),"isRangeEnd",(function(){var t=e.props,n=t.day,o=t.startDate,a=t.endDate;return!(!o||!a)&&Jt(a,n)})),xt(Ct(e),"isWeekend",(function(){var t=Pe.default(e.props.day);return 0===t||6===t})),xt(Ct(e),"isAfterMonth",(function(){return void 0!==e.props.month&&(e.props.month+1)%12===Ie.default(e.props.day)})),xt(Ct(e),"isBeforeMonth",(function(){return void 0!==e.props.month&&(Ie.default(e.props.day)+1)%12===e.props.month})),xt(Ct(e),"isCurrentDay",(function(){return e.isSameDay(Ft())})),xt(Ct(e),"isSelected",(function(){return e.isSameDay(e.props.selected)||e.isSameWeek(e.props.selected)})),xt(Ct(e),"getClassNames",(function(t){var n=e.props.dayClassName?e.props.dayClassName(t):void 0;return pe.default("react-datepicker__day",n,"react-datepicker__day--"+Yt(e.props.day,"ddd",undefined),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass("react-datepicker__day--highlighted"),e.getHolidaysClass())})),xt(Ct(e),"getAriaLabel",(function(){var t=e.props,n=t.day,o=t.ariaLabelPrefixWhenEnabled,a=void 0===o?"Choose":o,r=t.ariaLabelPrefixWhenDisabled,i=void 0===r?"Not available":r,s=e.isDisabled()||e.isExcluded()?i:a;return"".concat(s," ").concat(Yt(n,"PPPP",e.props.locale))})),xt(Ct(e),"getTitle",(function(){var t=e.props,n=t.day,o=t.holidays,a=void 0===o?new Map:o,r=Yt(n,"MM.dd.yyyy");return a.has(r)&&a.get(r).holidayNames.length>0?a.get(r).holidayNames.join(", "):""})),xt(Ct(e),"getTabIndex",(function(t,n){var o=t||e.props.selected,a=n||e.props.preSelection;return(!e.props.showWeekPicker||!e.props.showWeekNumber&&e.isStartOfWeek())&&(e.isKeyboardSelected()||e.isSameDay(o)&&Jt(a,o))?0:-1})),xt(Ct(e),"handleFocusDay",(function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=!1;0===e.getTabIndex()&&!n.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(o=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(o=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(o=!0),e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()&&(o=!1),e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()&&(o=!1)),o&&(null===(t=e.dayEl.current)||void 0===t||t.focus({preventScroll:!0}))})),xt(Ct(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Le.default(e.props.day),e.props.day):Le.default(e.props.day)})),xt(Ct(e),"render",(function(){return ue.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),""!==e.getTitle()&&ue.default.createElement("span",{className:"holiday-overlay"},e.getTitle()))})),e}return kt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ue.default.Component),zn=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"weekNumberEl",ue.default.createRef()),xt(Ct(e),"handleClick",(function(t){e.props.onClick&&e.props.onClick(t)})),xt(Ct(e),"handleOnKeyDown",(function(t){" "===t.key&&(t.preventDefault(),t.key="Enter"),e.props.handleOnKeyDown(t)})),xt(Ct(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!Jt(e.props.date,e.props.selected)&&Jt(e.props.date,e.props.preSelection)})),xt(Ct(e),"getTabIndex",(function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||Jt(e.props.date,e.props.selected)&&Jt(e.props.preSelection,e.props.selected))?0:-1})),xt(Ct(e),"handleFocusWeekNumber",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&Jt(e.props.date,e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})})),e}return kt(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(e){this.handleFocusWeekNumber(e)}},{key:"render",value:function(){var e=this.props,t=e.weekNumber,n=e.ariaLabelPrefix,o=void 0===n?"week ":n,a={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!e.onClick,"react-datepicker__week-number--selected":Jt(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return ue.default.createElement("div",{ref:this.weekNumberEl,className:pe.default(a),"aria-label":"".concat(o," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(ue.default.Component),Bn=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n)})),xt(Ct(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),xt(Ct(e),"handleWeekClick",(function(t,n,o){if("function"==typeof e.props.onWeekSelect&&e.props.onWeekSelect(t,n,o),e.props.showWeekPicker){var a=Ht(t,e.props.locale,e.props.calendarStartDay);e.handleDayClick(a,o)}e.props.shouldCloseOnSelect&&e.props.setOpen(!1)})),xt(Ct(e),"formatWeekNumber",(function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):function(e){var t=Zt()&&en(Zt());return Ne.default(e,t?{locale:t}:null)}(t)})),xt(Ct(e),"renderDays",(function(){var t=Ht(e.props.day,e.props.locale,e.props.calendarStartDay),n=[],o=e.formatWeekNumber(t);if(e.props.showWeekNumber){var a=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(Ct(e),t,o):void 0;n.push(ue.default.createElement(zn,{key:"W",weekNumber:o,date:t,onClick:a,selected:e.props.selected,preSelection:e.props.preSelection,ariaLabelPrefix:e.props.ariaLabelPrefix,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef}))}return n.concat([0,1,2,3,4,5,6].map((function(n){var o=_e.default(t,n);return ue.default.createElement(Yn,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:o.valueOf(),day:o,month:e.props.month,onClick:e.handleDayClick.bind(Ct(e),o),onMouseEnter:e.handleDayMouseEnter.bind(Ct(e),o),minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,showWeekPicker:e.props.showWeekPicker,showWeekNumber:e.props.showWeekNumber,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,renderDayContents:e.props.renderDayContents,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart,locale:e.props.locale})})))})),xt(Ct(e),"startOfWeek",(function(){return Ht(e.props.day,e.props.locale,e.props.calendarStartDay)})),xt(Ct(e),"isKeyboardSelected",(function(){return!e.props.disabledKeyboardNavigation&&!Jt(e.startOfWeek(),e.props.selected)&&Jt(e.startOfWeek(),e.props.preSelection)})),e}return kt(n,[{key:"render",value:function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Jt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return ue.default.createElement("div",{className:pe.default(e)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(ue.default.Component),Hn="two_columns",Vn="three_columns",Un="four_columns",Wn=xt(xt(xt({},Hn,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),Vn,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),Un,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function qn(e,t){return e?Un:t?Hn:Vn}var $n=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"MONTH_REFS",Dt(Array(12)).map((function(){return ue.default.createRef()}))),xt(Ct(e),"QUARTER_REFS",Dt(Array(4)).map((function(){return ue.default.createRef()}))),xt(Ct(e),"isDisabled",(function(t){return on(t,e.props)})),xt(Ct(e),"isExcluded",(function(t){return an(t,e.props)})),xt(Ct(e),"handleDayClick",(function(t,n){e.props.onDayClick&&e.props.onDayClick(t,n,e.props.orderInDisplay)})),xt(Ct(e),"handleDayMouseEnter",(function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)})),xt(Ct(e),"handleMouseLeave",(function(){e.props.onMouseLeave&&e.props.onMouseLeave()})),xt(Ct(e),"isRangeStartMonth",(function(t){var n=e.props,o=n.day,a=n.startDate,r=n.endDate;return!(!a||!r)&&Gt(Be.default(o,t),a)})),xt(Ct(e),"isRangeStartQuarter",(function(t){var n=e.props,o=n.day,a=n.startDate,r=n.endDate;return!(!a||!r)&&Kt(He.default(o,t),a)})),xt(Ct(e),"isRangeEndMonth",(function(t){var n=e.props,o=n.day,a=n.startDate,r=n.endDate;return!(!a||!r)&&Gt(Be.default(o,t),r)})),xt(Ct(e),"isRangeEndQuarter",(function(t){var n=e.props,o=n.day,a=n.startDate,r=n.endDate;return!(!a||!r)&&Kt(He.default(o,t),r)})),xt(Ct(e),"isInSelectingRangeMonth",(function(t){var n,o=e.props,a=o.day,r=o.selectsStart,i=o.selectsEnd,s=o.selectsRange,l=o.startDate,c=o.endDate,d=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(r||i||s)||!d)&&(r&&c?sn(d,c,t,a):(i&&l||!(!s||!l||c))&&sn(l,d,t,a))})),xt(Ct(e),"isSelectingMonthRangeStart",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var o=e.props,a=o.day,r=o.startDate,i=o.selectsStart,s=Be.default(a,t),l=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return Gt(s,i?l:r)})),xt(Ct(e),"isSelectingMonthRangeEnd",(function(t){var n;if(!e.isInSelectingRangeMonth(t))return!1;var o=e.props,a=o.day,r=o.endDate,i=o.selectsEnd,s=o.selectsRange,l=Be.default(a,t),c=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return Gt(l,i||s?c:r)})),xt(Ct(e),"isInSelectingRangeQuarter",(function(t){var n,o=e.props,a=o.day,r=o.selectsStart,i=o.selectsEnd,s=o.selectsRange,l=o.startDate,c=o.endDate,d=null!==(n=e.props.selectingDate)&&void 0!==n?n:e.props.preSelection;return!(!(r||i||s)||!d)&&(r&&c?un(d,c,t,a):(i&&l||!(!s||!l||c))&&un(l,d,t,a))})),xt(Ct(e),"isWeekInMonth",(function(t){var n=e.props.day,o=_e.default(t,6);return Gt(t,n)||Gt(o,n)})),xt(Ct(e),"isCurrentMonth",(function(e,t){return Re.default(e)===Re.default(Ft())&&t===Ie.default(Ft())})),xt(Ct(e),"isCurrentQuarter",(function(e,t){return Re.default(e)===Re.default(Ft())&&t===Oe.default(Ft())})),xt(Ct(e),"isSelectedMonth",(function(e,t,n){return Ie.default(n)===t&&Re.default(e)===Re.default(n)})),xt(Ct(e),"isSelectedQuarter",(function(e,t,n){return Oe.default(e)===t&&Re.default(e)===Re.default(n)})),xt(Ct(e),"renderWeeks",(function(){for(var t=[],n=e.props.fixedHeight,o=0,a=!1,r=Ht(Vt(e.props.day),e.props.locale,e.props.calendarStartDay);t.push(ue.default.createElement(Bn,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:e.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:e.props.disabledDayAriaLabelPrefix,key:o,day:r,month:Ie.default(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,onWeekSelect:e.props.onWeekSelect,formatWeekNumber:e.props.formatWeekNumber,locale:e.props.locale,minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDates:e.props.includeDates,includeDateIntervals:e.props.includeDateIntervals,inline:e.props.inline,shouldFocusDayInline:e.props.shouldFocusDayInline,highlightDates:e.props.highlightDates,holidays:e.props.holidays,selectingDate:e.props.selectingDate,filterDate:e.props.filterDate,preSelection:e.props.preSelection,selected:e.props.selected,selectsStart:e.props.selectsStart,selectsEnd:e.props.selectsEnd,selectsRange:e.props.selectsRange,selectsDisabledDaysInRange:e.props.selectsDisabledDaysInRange,showWeekNumber:e.props.showWeekNumbers,showWeekPicker:e.props.showWeekPicker,startDate:e.props.startDate,endDate:e.props.endDate,dayClassName:e.props.dayClassName,setOpen:e.props.setOpen,shouldCloseOnSelect:e.props.shouldCloseOnSelect,disabledKeyboardNavigation:e.props.disabledKeyboardNavigation,renderDayContents:e.props.renderDayContents,handleOnKeyDown:e.props.handleOnKeyDown,isInputFocused:e.props.isInputFocused,containerRef:e.props.containerRef,calendarStartDay:e.props.calendarStartDay,monthShowsDuplicateDaysEnd:e.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:e.props.monthShowsDuplicateDaysStart})),!a;){o++,r=be.default(r,1);var i=n&&o>=6,s=!n&&!e.isWeekInMonth(r);if(i||s){if(!e.props.peekNextMonth)break;a=!0}}return t})),xt(Ct(e),"onMonthClick",(function(t,n){e.handleDayClick(Vt(Be.default(e.props.day,n)),t)})),xt(Ct(e),"onMonthMouseEnter",(function(t){e.handleDayMouseEnter(Vt(Be.default(e.props.day,t)))})),xt(Ct(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),xt(Ct(e),"onMonthKeyDown",(function(t,n){var o=e.props,a=o.selected,r=o.preSelection,i=o.disabledKeyboardNavigation,s=o.showTwoColumnMonthYearPicker,l=o.showFourColumnMonthYearPicker,c=o.setPreSelection,d=t.key;if("Tab"!==d&&t.preventDefault(),!i){var u=qn(l,s),p=Wn[u].verticalNavigationOffset,h=Wn[u].grid;switch(d){case"Enter":e.onMonthClick(t,n),c(a);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,ye.default(r,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Se.default(r,1));break;case"ArrowUp":e.handleMonthNavigation(h[0].includes(n)?n+12-p:n-p,Se.default(r,p));break;case"ArrowDown":e.handleMonthNavigation(h[h.length-1].includes(n)?n-12+p:n+p,ye.default(r,p))}}})),xt(Ct(e),"onQuarterClick",(function(t,n){e.handleDayClick(Wt(He.default(e.props.day,n)),t)})),xt(Ct(e),"onQuarterMouseEnter",(function(t){e.handleDayMouseEnter(Wt(He.default(e.props.day,t)))})),xt(Ct(e),"handleQuarterNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.QUARTER_REFS[t-1].current&&e.QUARTER_REFS[t-1].current.focus())})),xt(Ct(e),"onQuarterKeyDown",(function(t,n){var o=t.key;if(!e.props.disabledKeyboardNavigation)switch(o){case"Enter":e.onQuarterClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleQuarterNavigation(4===n?1:n+1,we.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleQuarterNavigation(1===n?4:n-1,Me.default(e.props.preSelection,1))}})),xt(Ct(e),"getMonthClassNames",(function(t){var n=e.props,o=n.day,a=n.startDate,r=n.endDate,i=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,d=n.monthClassName,u=n.excludeDates,p=n.includeDates,h=d?d(Be.default(o,t)):void 0,m=Be.default(o,t);return pe.default("react-datepicker__month-text","react-datepicker__month-".concat(t),h,{"react-datepicker__month-text--disabled":(s||l||u||p)&&rn(m,e.props),"react-datepicker__month-text--selected":e.isSelectedMonth(o,t,i),"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&Ie.default(c)===t,"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":sn(a,r,t,o),"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(o,t)})})),xt(Ct(e),"getTabIndex",(function(t){var n=Ie.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),xt(Ct(e),"getQuarterTabIndex",(function(t){var n=Oe.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),xt(Ct(e),"getAriaLabel",(function(t){var n=e.props,o=n.chooseDayAriaLabelPrefix,a=void 0===o?"Choose":o,r=n.disabledDayAriaLabelPrefix,i=void 0===r?"Not available":r,s=n.day,l=Be.default(s,t),c=e.isDisabled(l)||e.isExcluded(l)?i:a;return"".concat(c," ").concat(Yt(l,"MMMM yyyy"))})),xt(Ct(e),"getQuarterClassNames",(function(t){var n=e.props,o=n.day,a=n.startDate,r=n.endDate,i=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,d=n.disabledKeyboardNavigation;return pe.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":(s||l)&&ln(He.default(o,t),e.props),"react-datepicker__quarter-text--selected":e.isSelectedQuarter(o,t,i),"react-datepicker__quarter-text--keyboard-selected":!d&&Oe.default(c)===t,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":un(a,r,t,o),"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})})),xt(Ct(e),"getMonthContent",(function(t){var n=e.props,o=n.showFullMonthYearPicker,a=n.renderMonthContent,r=n.locale,i=n.day,s=nn(t,r),l=tn(t,r);return a?a(t,s,l,i):o?l:s})),xt(Ct(e),"getQuarterContent",(function(t){var n=e.props,o=n.renderQuarterContent,a=function(e,t){return Yt(He.default(Ft(),e),"QQQ",t)}(t,n.locale);return o?o(t,a):a})),xt(Ct(e),"renderMonths",(function(){var t=e.props,n=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,a=t.day,r=t.selected;return Wn[qn(o,n)].grid.map((function(t,n){return ue.default.createElement("div",{className:"react-datepicker__month-wrapper",key:n},t.map((function(t,n){return ue.default.createElement("div",{ref:e.MONTH_REFS[t],key:n,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},onMouseEnter:function(){return e.onMonthMouseEnter(t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,r)},e.getMonthContent(t))})))}))})),xt(Ct(e),"renderQuarters",(function(){var t=e.props,n=t.day,o=t.selected;return ue.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,a){return ue.default.createElement("div",{key:a,ref:e.QUARTER_REFS[a],role:"option",onClick:function(n){e.onQuarterClick(n,t)},onKeyDown:function(n){e.onQuarterKeyDown(n,t)},onMouseEnter:function(){return e.onQuarterMouseEnter(t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,o),tabIndex:e.getQuarterTabIndex(t),"aria-current":e.isCurrentQuarter(n,t)?"date":void 0},e.getQuarterContent(t))})))})),xt(Ct(e),"getClassNames",(function(){var t=e.props,n=t.selectingDate,o=t.selectsStart,a=t.selectsEnd,r=t.showMonthYearPicker,i=t.showQuarterYearPicker,s=t.showWeekPicker;return pe.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(o||a)},{"react-datepicker__monthPicker":r},{"react-datepicker__quarterPicker":i},{"react-datepicker__weekPicker":s})})),e}return kt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,o=e.day,a=e.ariaLabelPrefix,r=void 0===a?"month ":a;return ue.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(r," ").concat(Yt(o,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ue.default.Component),Gn=function(e){St(n,e);var t=At(n);function n(){var e;yt(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return xt(Ct(e=t.call.apply(t,[this].concat(a))),"state",{height:null}),xt(Ct(e),"scrollToTheSelectedTime",(function(){requestAnimationFrame((function(){e.list&&(e.list.scrollTop=e.centerLi&&n.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-e.header.clientHeight:e.list.clientHeight,e.centerLi))}))})),xt(Ct(e),"handleClick",(function(t){(e.props.minTime||e.props.maxTime)&&fn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&mn(t,e.props)||e.props.onChange(t)})),xt(Ct(e),"isSelectedTime",(function(t){return e.props.selected&&(n=t,Tn(e.props.selected).getTime()===Tn(n).getTime());var n})),xt(Ct(e),"isDisabledTime",(function(t){return(e.props.minTime||e.props.maxTime)&&fn(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&mn(t,e.props)})),xt(Ct(e),"liClasses",(function(t){var n=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t):void 0];return e.isSelectedTime(t)&&n.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(t)&&n.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(60*De.default(t)+Ae.default(t))%e.props.intervals!=0&&n.push("react-datepicker__time-list-item--injected"),n.join(" ")})),xt(Ct(e),"handleOnKeyDown",(function(t,n){" "===t.key&&(t.preventDefault(),t.key="Enter"),"ArrowUp"!==t.key&&"ArrowLeft"!==t.key||!t.target.previousSibling||(t.preventDefault(),t.target.previousSibling.focus()),"ArrowDown"!==t.key&&"ArrowRight"!==t.key||!t.target.nextSibling||(t.preventDefault(),t.target.nextSibling.focus()),"Enter"===t.key&&e.handleClick(n),e.props.handleOnKeyDown(t)})),xt(Ct(e),"renderTimes",(function(){for(var t,n=[],o=e.props.format?e.props.format:"p",a=e.props.intervals,r=e.props.selected||e.props.openToDate||Ft(),i=(t=r,Ke.default(t)),s=e.props.injectTimes&&e.props.injectTimes.sort((function(e,t){return e-t})),l=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(r),c=l/a,d=0;d<c;d++){var u=ge.default(i,d*a);if(n.push(u),s){var p=En(i,u,d,a,s);n=n.concat(p)}}var h=n.reduce((function(e,t){return t.getTime()<=r.getTime()?t:e}),n[0]);return n.map((function(t,n){return ue.default.createElement("li",{key:n,onClick:e.handleClick.bind(Ct(e),t),className:e.liClasses(t),ref:function(n){t===h&&(e.centerLi=n)},onKeyDown:function(n){e.handleOnKeyDown(n,t)},tabIndex:t===h?0:-1,role:"option","aria-selected":e.isSelectedTime(t)?"true":void 0,"aria-disabled":e.isDisabledTime(t)?"true":void 0},Yt(t,o,e.props.locale))}))})),e}return kt(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var e=this,t=this.state.height;return ue.default.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},ue.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(t){e.header=t}},ue.default.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),ue.default.createElement("div",{className:"react-datepicker__time"},ue.default.createElement("div",{className:"react-datepicker__time-box"},ue.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}(ue.default.Component);xt(Gn,"calcCenterPosition",(function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)}));var Kn=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),xt(Ct(o=t.call(this,e)),"YEAR_REFS",Dt(Array(o.props.yearItemNumber)).map((function(){return ue.default.createRef()}))),xt(Ct(o),"isDisabled",(function(e){return on(e,o.props)})),xt(Ct(o),"isExcluded",(function(e){return an(e,o.props)})),xt(Ct(o),"selectingDate",(function(){var e;return null!==(e=o.props.selectingDate)&&void 0!==e?e:o.props.preSelection})),xt(Ct(o),"updateFocusOnPaginate",(function(e){var t=function(){this.YEAR_REFS[e].current.focus()}.bind(Ct(o));window.requestAnimationFrame(t)})),xt(Ct(o),"handleYearClick",(function(e,t){o.props.onDayClick&&o.props.onDayClick(e,t)})),xt(Ct(o),"handleYearNavigation",(function(e,t){var n=o.props,a=n.date,r=n.yearItemNumber,i=Mn(a,r).startPeriod;o.isDisabled(t)||o.isExcluded(t)||(o.props.setPreSelection(t),e-i==-1?o.updateFocusOnPaginate(r-1):e-i===r?o.updateFocusOnPaginate(0):o.YEAR_REFS[e-i].current.focus())})),xt(Ct(o),"isSameDay",(function(e,t){return Jt(e,t)})),xt(Ct(o),"isCurrentYear",(function(e){return e===Re.default(Ft())})),xt(Ct(o),"isRangeStart",(function(e){return o.props.startDate&&o.props.endDate&&$t(Ve.default(Ft(),e),o.props.startDate)})),xt(Ct(o),"isRangeEnd",(function(e){return o.props.startDate&&o.props.endDate&&$t(Ve.default(Ft(),e),o.props.endDate)})),xt(Ct(o),"isInRange",(function(e){return cn(e,o.props.startDate,o.props.endDate)})),xt(Ct(o),"isInSelectingRange",(function(e){var t=o.props,n=t.selectsStart,a=t.selectsEnd,r=t.selectsRange,i=t.startDate,s=t.endDate;return!(!(n||a||r)||!o.selectingDate())&&(n&&s?cn(e,o.selectingDate(),s):(a&&i||!(!r||!i||s))&&cn(e,i,o.selectingDate()))})),xt(Ct(o),"isSelectingRangeStart",(function(e){if(!o.isInSelectingRange(e))return!1;var t=o.props,n=t.startDate,a=t.selectsStart;return $t(Ve.default(Ft(),e),a?o.selectingDate():n)})),xt(Ct(o),"isSelectingRangeEnd",(function(e){if(!o.isInSelectingRange(e))return!1;var t=o.props,n=t.endDate,a=t.selectsEnd,r=t.selectsRange;return $t(Ve.default(Ft(),e),a||r?o.selectingDate():n)})),xt(Ct(o),"isKeyboardSelected",(function(e){var t=Ut(Ve.default(o.props.date,e));return!o.props.disabledKeyboardNavigation&&!o.props.inline&&!Jt(t,Ut(o.props.selected))&&Jt(t,Ut(o.props.preSelection))})),xt(Ct(o),"onYearClick",(function(e,t){var n=o.props.date;o.handleYearClick(Ut(Ve.default(n,t)),e)})),xt(Ct(o),"onYearKeyDown",(function(e,t){var n=e.key;if(!o.props.disabledKeyboardNavigation)switch(n){case"Enter":o.onYearClick(e,t),o.props.setPreSelection(o.props.selected);break;case"ArrowRight":o.handleYearNavigation(t+1,ke.default(o.props.preSelection,1));break;case"ArrowLeft":o.handleYearNavigation(t-1,Te.default(o.props.preSelection,1))}})),xt(Ct(o),"getYearClassNames",(function(e){var t=o.props,n=t.minDate,a=t.maxDate,r=t.selected,i=t.excludeDates,s=t.includeDates,l=t.filterDate;return pe.default("react-datepicker__year-text",{"react-datepicker__year-text--selected":e===Re.default(r),"react-datepicker__year-text--disabled":(n||a||i||s||l)&&dn(e,o.props),"react-datepicker__year-text--keyboard-selected":o.isKeyboardSelected(e),"react-datepicker__year-text--range-start":o.isRangeStart(e),"react-datepicker__year-text--range-end":o.isRangeEnd(e),"react-datepicker__year-text--in-range":o.isInRange(e),"react-datepicker__year-text--in-selecting-range":o.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":o.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":o.isSelectingRangeEnd(e),"react-datepicker__year-text--today":o.isCurrentYear(e)})})),xt(Ct(o),"getYearTabIndex",(function(e){return o.props.disabledKeyboardNavigation?"-1":e===Re.default(o.props.preSelection)?"0":"-1"})),xt(Ct(o),"getYearContainerClassNames",(function(){var e=o.props,t=e.selectingDate,n=e.selectsStart,a=e.selectsEnd,r=e.selectsRange;return pe.default("react-datepicker__year",{"react-datepicker__year--selecting-range":t&&(n||a||r)})})),xt(Ct(o),"getYearContent",(function(e){return o.props.renderYearContent?o.props.renderYearContent(e):e})),o}return kt(n,[{key:"render",value:function(){for(var e=this,t=[],n=this.props,o=n.date,a=n.yearItemNumber,r=n.onYearMouseEnter,i=n.onYearMouseLeave,s=Mn(o,a),l=s.startPeriod,c=s.endPeriod,d=function(n){t.push(ue.default.createElement("div",{ref:e.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){e.onYearKeyDown(t,n)},tabIndex:e.getYearTabIndex(n),className:e.getYearClassNames(n),onMouseEnter:function(e){return r(e,n)},onMouseLeave:function(e){return i(e,n)},key:n,"aria-current":e.isCurrentYear(n)?"date":void 0},e.getYearContent(n)))},u=l;u<=c;u++)d(u);return ue.default.createElement("div",{className:this.getYearContainerClassNames()},ue.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},t))}}]),n}(ue.default.Component),Jn=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),xt(Ct(o=t.call(this,e)),"onTimeChange",(function(e){o.setState({time:e});var t=o.props.date,n=t instanceof Date&&!isNaN(t)?t:new Date;n.setHours(e.split(":")[0]),n.setMinutes(e.split(":")[1]),o.props.onChange(n)})),xt(Ct(o),"renderTimeInput",(function(){var e=o.state.time,t=o.props,n=t.date,a=t.timeString,r=t.customTimeInput;return r?ue.default.cloneElement(r,{date:n,value:e,onChange:o.onTimeChange}):ue.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:e,onChange:function(e){o.onTimeChange(e.target.value||a)}})})),o.state={time:o.props.timeString},o}return kt(n,[{key:"render",value:function(){return ue.default.createElement("div",{className:"react-datepicker__input-time-container"},ue.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),ue.default.createElement("div",{className:"react-datepicker-time__input-container"},ue.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.timeString!==t.time?{time:e.timeString}:null}}]),n}(ue.default.Component);function Xn(e){var t=e.className,n=e.children,o=e.showPopperArrow,a=e.arrowProps,r=void 0===a?{}:a;return ue.default.createElement("div",{className:t},o&&ue.default.createElement("div",Et({className:"react-datepicker__triangle"},r)),n)}var Qn=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Zn=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),xt(Ct(o=t.call(this,e)),"handleClickOutside",(function(e){o.props.onClickOutside(e)})),xt(Ct(o),"setClickOutsideRef",(function(){return o.containerRef.current})),xt(Ct(o),"handleDropdownFocus",(function(e){(function(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Qn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&o.props.onDropdownFocus()})),xt(Ct(o),"getDateInView",(function(){var e=o.props,t=e.preSelection,n=e.selected,a=e.openToDate,r=yn(o.props),i=wn(o.props),s=Ft();return a||n||t||(r&&ct.default(s,r)?r:i&&lt.default(s,i)?i:s)})),xt(Ct(o),"increaseMonth",(function(){o.setState((function(e){var t=e.date;return{date:ye.default(t,1)}}),(function(){return o.handleMonthChange(o.state.date)}))})),xt(Ct(o),"decreaseMonth",(function(){o.setState((function(e){var t=e.date;return{date:Se.default(t,1)}}),(function(){return o.handleMonthChange(o.state.date)}))})),xt(Ct(o),"handleDayClick",(function(e,t,n){o.props.onSelect(e,t,n),o.props.setPreSelection&&o.props.setPreSelection(e)})),xt(Ct(o),"handleDayMouseEnter",(function(e){o.setState({selectingDate:e}),o.props.onDayMouseEnter&&o.props.onDayMouseEnter(e)})),xt(Ct(o),"handleMonthMouseLeave",(function(){o.setState({selectingDate:null}),o.props.onMonthMouseLeave&&o.props.onMonthMouseLeave()})),xt(Ct(o),"handleYearMouseEnter",(function(e,t){o.setState({selectingDate:Ve.default(Ft(),t)}),o.props.onYearMouseEnter&&o.props.onYearMouseEnter(e,t)})),xt(Ct(o),"handleYearMouseLeave",(function(e,t){o.props.onYearMouseLeave&&o.props.onYearMouseLeave(e,t)})),xt(Ct(o),"handleYearChange",(function(e){o.props.onYearChange&&(o.props.onYearChange(e),o.setState({isRenderAriaLiveMessage:!0})),o.props.adjustDateOnChange&&(o.props.onSelect&&o.props.onSelect(e),o.props.setOpen&&o.props.setOpen(!0)),o.props.setPreSelection&&o.props.setPreSelection(e)})),xt(Ct(o),"handleMonthChange",(function(e){o.handleCustomMonthChange(e),o.props.adjustDateOnChange&&(o.props.onSelect&&o.props.onSelect(e),o.props.setOpen&&o.props.setOpen(!0)),o.props.setPreSelection&&o.props.setPreSelection(e)})),xt(Ct(o),"handleCustomMonthChange",(function(e){o.props.onMonthChange&&(o.props.onMonthChange(e),o.setState({isRenderAriaLiveMessage:!0}))})),xt(Ct(o),"handleMonthYearChange",(function(e){o.handleYearChange(e),o.handleMonthChange(e)})),xt(Ct(o),"changeYear",(function(e){o.setState((function(t){var n=t.date;return{date:Ve.default(n,e)}}),(function(){return o.handleYearChange(o.state.date)}))})),xt(Ct(o),"changeMonth",(function(e){o.setState((function(t){var n=t.date;return{date:Be.default(n,e)}}),(function(){return o.handleMonthChange(o.state.date)}))})),xt(Ct(o),"changeMonthYear",(function(e){o.setState((function(t){var n=t.date;return{date:Ve.default(Be.default(n,Ie.default(e)),Re.default(e))}}),(function(){return o.handleMonthYearChange(o.state.date)}))})),xt(Ct(o),"header",(function(){var e=Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.state.date,o.props.locale,o.props.calendarStartDay),t=[];return o.props.showWeekNumbers&&t.push(ue.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},o.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=_e.default(e,t),a=o.formatWeekday(n,o.props.locale),r=o.props.weekDayClassName?o.props.weekDayClassName(n):void 0;return ue.default.createElement("div",{key:t,className:pe.default("react-datepicker__day-name",r)},a)})))})),xt(Ct(o),"formatWeekday",(function(e,t){return o.props.formatWeekDay?function(e,t,n){return t(Yt(e,"EEEE",n))}(e,o.props.formatWeekDay,t):o.props.useWeekdaysShort?function(e,t){return Yt(e,"EEE",t)}(e,t):function(e,t){return Yt(e,"EEEEEE",t)}(e,t)})),xt(Ct(o),"decreaseYear",(function(){o.setState((function(e){var t=e.date;return{date:Te.default(t,o.props.showYearPicker?o.props.yearItemNumber:1)}}),(function(){return o.handleYearChange(o.state.date)}))})),xt(Ct(o),"clearSelectingDate",(function(){o.setState({selectingDate:null})})),xt(Ct(o),"renderPreviousButton",(function(){if(!o.props.renderCustomHeader){var e;switch(!0){case o.props.showMonthYearPicker:e=_n(o.state.date,o.props);break;case o.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,o=t.yearItemNumber,a=void 0===o?12:o,r=Mn(Ut(Te.default(e,a)),a).endPeriod,i=n&&Re.default(n);return i&&i>r||!1}(o.state.date,o.props);break;default:e=gn(o.state.date,o.props)}if((o.props.forceShowMonthNavigation||o.props.showDisabledMonthNavigation||!e)&&!o.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=o.decreaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(n=o.decreaseYear),e&&o.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var a=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,r=o.props,i=r.previousMonthButtonLabel,s=r.previousYearButtonLabel,l=o.props,c=l.previousMonthAriaLabel,d=void 0===c?"string"==typeof i?i:"Previous Month":c,u=l.previousYearAriaLabel,p=void 0===u?"string"==typeof s?s:"Previous Year":u;return ue.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:o.props.handleOnKeyDown,"aria-label":a?p:d},ue.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},a?o.props.previousYearButtonLabel:o.props.previousMonthButtonLabel))}}})),xt(Ct(o),"increaseYear",(function(){o.setState((function(e){var t=e.date;return{date:ke.default(t,o.props.showYearPicker?o.props.yearItemNumber:1)}}),(function(){return o.handleYearChange(o.state.date)}))})),xt(Ct(o),"renderNextButton",(function(){if(!o.props.renderCustomHeader){var e;switch(!0){case o.props.showMonthYearPicker:e=bn(o.state.date,o.props);break;case o.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,o=t.yearItemNumber,a=void 0===o?12:o,r=Mn(ke.default(e,a),a).startPeriod,i=n&&Re.default(n);return i&&i<r||!1}(o.state.date,o.props);break;default:e=vn(o.state.date,o.props)}if((o.props.forceShowMonthNavigation||o.props.showDisabledMonthNavigation||!e)&&!o.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];o.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),o.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=o.increaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(n=o.increaseYear),e&&o.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null);var a=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,r=o.props,i=r.nextMonthButtonLabel,s=r.nextYearButtonLabel,l=o.props,c=l.nextMonthAriaLabel,d=void 0===c?"string"==typeof i?i:"Next Month":c,u=l.nextYearAriaLabel,p=void 0===u?"string"==typeof s?s:"Next Year":u;return ue.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:o.props.handleOnKeyDown,"aria-label":a?p:d},ue.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},a?o.props.nextYearButtonLabel:o.props.nextMonthButtonLabel))}}})),xt(Ct(o),"renderCurrentMonth",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.state.date,t=["react-datepicker__current-month"];return o.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),o.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),o.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ue.default.createElement("div",{className:t.join(" ")},Yt(e,o.props.dateFormat,o.props.locale))})),xt(Ct(o),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(o.props.showYearDropdown&&!e)return ue.default.createElement(Pn,{adjustDateOnChange:o.props.adjustDateOnChange,date:o.state.date,onSelect:o.props.onSelect,setOpen:o.props.setOpen,dropdownMode:o.props.dropdownMode,onChange:o.changeYear,minDate:o.props.minDate,maxDate:o.props.maxDate,year:Re.default(o.state.date),scrollableYearDropdown:o.props.scrollableYearDropdown,yearDropdownItemNumber:o.props.yearDropdownItemNumber})})),xt(Ct(o),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(o.props.showMonthDropdown&&!e)return ue.default.createElement(In,{dropdownMode:o.props.dropdownMode,locale:o.props.locale,onChange:o.changeMonth,month:Ie.default(o.state.date),useShortMonthInDropdown:o.props.useShortMonthInDropdown})})),xt(Ct(o),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(o.props.showMonthYearDropdown&&!e)return ue.default.createElement(jn,{dropdownMode:o.props.dropdownMode,locale:o.props.locale,dateFormat:o.props.dateFormat,onChange:o.changeMonthYear,minDate:o.props.minDate,maxDate:o.props.maxDate,date:o.state.date,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown})})),xt(Ct(o),"handleTodayButtonClick",(function(e){o.props.onSelect(qt(),e),o.props.setPreSelection&&o.props.setPreSelection(qt())})),xt(Ct(o),"renderTodayButton",(function(){if(o.props.todayButton&&!o.props.showTimeSelectOnly)return ue.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return o.handleTodayButtonClick(e)}},o.props.todayButton)})),xt(Ct(o),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ue.default.createElement("div",{className:"react-datepicker__header ".concat(o.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},o.renderCurrentMonth(t),ue.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(o.props.dropdownMode),onFocus:o.handleDropdownFocus},o.renderMonthDropdown(0!==n),o.renderMonthYearDropdown(0!==n),o.renderYearDropdown(0!==n)),ue.default.createElement("div",{className:"react-datepicker__day-names"},o.header(t)))})),xt(Ct(o),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(o.props.showTimeSelect&&!o.state.monthContainer||o.props.showTimeSelectOnly)return null;var a=gn(o.state.date,o.props),r=vn(o.state.date,o.props),i=_n(o.state.date,o.props),s=bn(o.state.date,o.props),l=!o.props.showMonthYearPicker&&!o.props.showQuarterYearPicker&&!o.props.showYearPicker;return ue.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:o.props.onDropdownFocus},o.props.renderCustomHeader(_t(_t({},o.state),{},{customHeaderCount:n,monthDate:t,changeMonth:o.changeMonth,changeYear:o.changeYear,decreaseMonth:o.decreaseMonth,increaseMonth:o.increaseMonth,decreaseYear:o.decreaseYear,increaseYear:o.increaseYear,prevMonthButtonDisabled:a,nextMonthButtonDisabled:r,prevYearButtonDisabled:i,nextYearButtonDisabled:s})),l&&ue.default.createElement("div",{className:"react-datepicker__day-names"},o.header(t)))})),xt(Ct(o),"renderYearHeader",(function(){var e=o.state.date,t=o.props,n=t.showYearPicker,a=Mn(e,t.yearItemNumber),r=a.startPeriod,i=a.endPeriod;return ue.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(r," - ").concat(i):Re.default(e))})),xt(Ct(o),"renderHeader",(function(e){switch(!0){case void 0!==o.props.renderCustomHeader:return o.renderCustomHeader(e);case o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker:return o.renderYearHeader(e);default:return o.renderDefaultHeader(e)}})),xt(Ct(o),"renderMonths",(function(){var e;if(!o.props.showTimeSelectOnly&&!o.props.showYearPicker){for(var t=[],n=o.props.showPreviousMonths?o.props.monthsShown-1:0,a=Se.default(o.state.date,n),r=null!==(e=o.props.monthSelectedIn)&&void 0!==e?e:n,i=0;i<o.props.monthsShown;++i){var s=i-r+n,l=ye.default(a,s),c="month-".concat(i),d=i<o.props.monthsShown-1,u=i>0;t.push(ue.default.createElement("div",{key:c,ref:function(e){o.monthContainer=e},className:"react-datepicker__month-container"},o.renderHeader({monthDate:l,i}),ue.default.createElement($n,{chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,ariaLabelPrefix:o.props.monthAriaLabelPrefix,onChange:o.changeMonthYear,day:l,dayClassName:o.props.dayClassName,calendarStartDay:o.props.calendarStartDay,monthClassName:o.props.monthClassName,onDayClick:o.handleDayClick,handleOnKeyDown:o.props.handleOnDayKeyDown,onDayMouseEnter:o.handleDayMouseEnter,onMouseLeave:o.handleMonthMouseLeave,onWeekSelect:o.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:o.props.formatWeekNumber,locale:o.props.locale,minDate:o.props.minDate,maxDate:o.props.maxDate,excludeDates:o.props.excludeDates,excludeDateIntervals:o.props.excludeDateIntervals,highlightDates:o.props.highlightDates,holidays:o.props.holidays,selectingDate:o.state.selectingDate,includeDates:o.props.includeDates,includeDateIntervals:o.props.includeDateIntervals,inline:o.props.inline,shouldFocusDayInline:o.props.shouldFocusDayInline,fixedHeight:o.props.fixedHeight,filterDate:o.props.filterDate,preSelection:o.props.preSelection,setPreSelection:o.props.setPreSelection,selected:o.props.selected,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,selectsRange:o.props.selectsRange,selectsDisabledDaysInRange:o.props.selectsDisabledDaysInRange,showWeekNumbers:o.props.showWeekNumbers,startDate:o.props.startDate,endDate:o.props.endDate,peekNextMonth:o.props.peekNextMonth,setOpen:o.props.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,renderDayContents:o.props.renderDayContents,renderMonthContent:o.props.renderMonthContent,renderQuarterContent:o.props.renderQuarterContent,renderYearContent:o.props.renderYearContent,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:o.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:o.props.showFourColumnMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showWeekPicker:o.props.showWeekPicker,isInputFocused:o.props.isInputFocused,containerRef:o.containerRef,monthShowsDuplicateDaysEnd:d,monthShowsDuplicateDaysStart:u})))}return t}})),xt(Ct(o),"renderYears",(function(){if(!o.props.showTimeSelectOnly)return o.props.showYearPicker?ue.default.createElement("div",{className:"react-datepicker__year--container"},o.renderHeader(),ue.default.createElement(Kn,Et({onDayClick:o.handleDayClick,selectingDate:o.state.selectingDate,clearSelectingDate:o.clearSelectingDate,date:o.state.date},o.props,{onYearMouseEnter:o.handleYearMouseEnter,onYearMouseLeave:o.handleYearMouseLeave}))):void 0})),xt(Ct(o),"renderTimeSection",(function(){if(o.props.showTimeSelect&&(o.state.monthContainer||o.props.showTimeSelectOnly))return ue.default.createElement(Gn,{selected:o.props.selected,openToDate:o.props.openToDate,onChange:o.props.onTimeChange,timeClassName:o.props.timeClassName,format:o.props.timeFormat,includeTimes:o.props.includeTimes,intervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,filterTime:o.props.filterTime,timeCaption:o.props.timeCaption,todayButton:o.props.todayButton,showMonthDropdown:o.props.showMonthDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,monthRef:o.state.monthContainer,injectTimes:o.props.injectTimes,locale:o.props.locale,handleOnKeyDown:o.props.handleOnKeyDown,showTimeSelectOnly:o.props.showTimeSelectOnly})})),xt(Ct(o),"renderInputTimeSection",(function(){var e=new Date(o.props.selected),t=jt(e)&&Boolean(o.props.selected)?"".concat(Sn(e.getHours()),":").concat(Sn(e.getMinutes())):"";if(o.props.showTimeInput)return ue.default.createElement(Jn,{date:e,timeString:t,timeInputLabel:o.props.timeInputLabel,onChange:o.props.onTimeChange,customTimeInput:o.props.customTimeInput})})),xt(Ct(o),"renderAriaLiveRegion",(function(){var e,t=Mn(o.state.date,o.props.yearItemNumber),n=t.startPeriod,a=t.endPeriod;return e=o.props.showYearPicker?"".concat(n," - ").concat(a):o.props.showMonthYearPicker||o.props.showQuarterYearPicker?Re.default(o.state.date):"".concat(tn(Ie.default(o.state.date),o.props.locale)," ").concat(Re.default(o.state.date)),ue.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o.state.isRenderAriaLiveMessage&&e)})),xt(Ct(o),"renderChildren",(function(){if(o.props.children)return ue.default.createElement("div",{className:"react-datepicker__children-container"},o.props.children)})),o.containerRef=ue.default.createRef(),o.state={date:o.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},o}return kt(n,[{key:"componentDidMount",value:function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))}},{key:"componentDidUpdate",value:function(e){var t=this;if(!this.props.preSelection||Jt(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Jt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Gt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}}},{key:"render",value:function(){var e=this.props.container||Xn;return ue.default.createElement("div",{style:{display:"contents"},ref:this.containerRef},ue.default.createElement(e,{className:pe.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:12}}}]),n}(ue.default.Component),eo=function(e){var t=e.icon,n=e.className,o=void 0===n?"":n,a=e.onClick,r="react-datepicker__calendar-icon";return ue.default.isValidElement(t)?ue.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(r," ").concat(o),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof a&&a(e)}}):"string"==typeof t?ue.default.createElement("i",{className:"".concat(r," ").concat(t," ").concat(o),"aria-hidden":"true",onClick:a}):ue.default.createElement("svg",{className:"".concat(r," ").concat(o),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:a},ue.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},to=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),(o=t.call(this,e)).el=document.createElement("div"),o}return kt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ft.default.createPortal(this.props.children,this.el)}}]),n}(ue.default.Component),no=function(e){return!e.disabled&&-1!==e.tabIndex},oo=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),xt(Ct(o=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(o.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(no)})),xt(Ct(o),"handleFocusStart",(function(){var e=o.getTabChildren();e&&e.length>1&&e[e.length-1].focus()})),xt(Ct(o),"handleFocusEnd",(function(){var e=o.getTabChildren();e&&e.length>1&&e[0].focus()})),o.tabLoopRef=ue.default.createRef(),o}return kt(n,[{key:"render",value:function(){return this.props.enableTabLoop?ue.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ue.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ue.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ue.default.Component),ao=function(e){St(n,e);var t=At(n);function n(){return yt(this,n),t.apply(this,arguments)}return kt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,o=t.wrapperClassName,a=t.hidePopper,r=t.popperComponent,i=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,c=t.targetComponent,d=t.enableTabLoop,u=t.popperOnKeyDown,p=t.portalId,h=t.portalHost;if(!a){var m=pe.default("react-datepicker-popper",n);e=ue.default.createElement(le.Popper,Et({modifiers:i,placement:s},l),(function(e){var t=e.ref,n=e.style,o=e.placement,a=e.arrowProps;return ue.default.createElement(oo,{enableTabLoop:d},ue.default.createElement("div",{ref:t,style:n,className:m,"data-placement":o,onKeyDown:u},ue.default.cloneElement(r,{arrowProps:a})))}))}this.props.popperContainer&&(e=ue.default.createElement(this.props.popperContainer,{},e)),p&&!a&&(e=ue.default.createElement(to,{portalId:p,portalHost:h},e));var f=pe.default("react-datepicker-wrapper",o);return ue.default.createElement(le.Manager,{className:"react-datepicker-manager"},ue.default.createElement(le.Reference,null,(function(e){var t=e.ref;return ue.default.createElement("div",{ref:t,className:f},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ue.default.Component),ro="react-datepicker-ignore-onclickoutside",io=mt.default(Zn),so="Date input not valid.",lo=function(e){St(n,e);var t=At(n);function n(e){var o;return yt(this,n),xt(Ct(o=t.call(this,e)),"getPreSelection",(function(){return o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:Ft()})),xt(Ct(o),"modifyHolidays",(function(){var e;return null===(e=o.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return me.default(n)?[].concat(Dt(e),[_t(_t({},t),{},{date:n})]):e}),[])})),xt(Ct(o),"calcInitialState",(function(){var e,t=o.getPreSelection(),n=yn(o.props),a=wn(o.props),r=n&&ct.default(t,Ke.default(n))?n:a&&lt.default(t,et.default(a))?a:t;return{open:o.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=o.props.selectsRange?o.props.startDate:o.props.selected)&&void 0!==e?e:r,highlightDates:kn(o.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}})),xt(Ct(o),"clearPreventFocusTimeout",(function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)})),xt(Ct(o),"setFocus",(function(){o.input&&o.input.focus&&o.input.focus({preventScroll:!0})})),xt(Ct(o),"setBlur",(function(){o.input&&o.input.blur&&o.input.blur(),o.cancelFocusInput()})),xt(Ct(o),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.setState({open:e,preSelection:e&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:uo},(function(){e||o.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&o.setBlur(),o.setState({inputValue:null})}))}))})),xt(Ct(o),"inputOk",(function(){return he.default(o.state.preSelection)})),xt(Ct(o),"isCalendarOpen",(function(){return void 0===o.props.open?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open})),xt(Ct(o),"handleFocus",(function(e){o.state.preventFocus||(o.props.onFocus(e),o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})})),xt(Ct(o),"sendFocusBackToInput",(function(){o.preventFocusTimeout&&o.clearPreventFocusTimeout(),o.setState({preventFocus:!0},(function(){o.preventFocusTimeout=setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))}))})),xt(Ct(o),"cancelFocusInput",(function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=null})),xt(Ct(o),"deferFocusInput",(function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout((function(){return o.setFocus()}),1)})),xt(Ct(o),"handleDropdownFocus",(function(){o.cancelFocusInput()})),xt(Ct(o),"handleBlur",(function(e){(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&o.props.onBlur(e),o.setState({focused:!1})})),xt(Ct(o),"handleCalendarClickOutside",(function(e){o.props.inline||o.setOpen(!1),o.props.onClickOutside(e),o.props.withPortal&&e.preventDefault()})),xt(Ct(o),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0];if(!o.props.onChangeRaw||(o.props.onChangeRaw.apply(Ct(o),t),"function"==typeof a.isDefaultPrevented&&!a.isDefaultPrevented())){o.setState({inputValue:a.target.value,lastPreSelectChange:co});var r,i,s,l,c,d,u,p,h=(r=a.target.value,i=o.props.dateFormat,s=o.props.locale,l=o.props.strictParsing,c=o.props.minDate,d=null,u=en(s)||en(Zt()),p=!0,Array.isArray(i)?(i.forEach((function(e){var t=pt.default(r,e,new Date,{locale:u});l&&(p=jt(t,c)&&r===Yt(t,e,s)),jt(t,c)&&p&&(d=t)})),d):(d=pt.default(r,i,new Date,{locale:u}),l?p=jt(d)&&r===Yt(d,i,s):jt(d)||(i=i.match(Rt).map((function(e){var t=e[0];return"p"===t||"P"===t?u?(0,Ot[t])(e,u.formatLong):t:e})).join(""),r.length>0&&(d=pt.default(r,i.slice(0,r.length),new Date)),jt(d)||(d=new Date(r))),jt(d)&&p?d:null));o.props.showTimeSelectOnly&&o.props.selected&&h&&!Jt(h,o.props.selected)&&(h=gt.default(o.props.selected,{hours:De.default(h),minutes:Ae.default(h),seconds:Ce.default(h)})),!h&&a.target.value||(o.props.showWeekPicker&&(h=Ht(h,o.props.locale,o.props.calendarStartDay)),o.setSelected(h,a,!0))}})),xt(Ct(o),"handleSelect",(function(e,t,n){if(o.props.shouldCloseOnSelect&&!o.props.showTimeSelect&&o.sendFocusBackToInput(),o.props.onChangeRaw&&o.props.onChangeRaw(t),o.props.showWeekPicker&&(e=Ht(e,o.props.locale,o.props.calendarStartDay)),o.setSelected(e,t,!1,n),o.props.showDateSelect&&o.setState({isRenderAriaLiveMessage:!0}),!o.props.shouldCloseOnSelect||o.props.showTimeSelect)o.setPreSelection(e);else if(!o.props.inline){o.props.selectsRange||o.setOpen(!1);var a=o.props,r=a.startDate,i=a.endDate;!r||i||ct.default(e,r)||o.setOpen(!1)}})),xt(Ct(o),"setSelected",(function(e,t,n,a){var r=e;if(o.props.showYearPicker){if(null!==r&&dn(Re.default(r),o.props))return}else if(o.props.showMonthYearPicker){if(null!==r&&rn(r,o.props))return}else if(null!==r&&on(r,o.props))return;var i=o.props,s=i.onChange,l=i.selectsRange,c=i.startDate,d=i.endDate;if(!Xt(o.props.selected,r)||o.props.allowSameDay||l)if(null!==r&&(!o.props.selected||n&&(o.props.showTimeSelect||o.props.showTimeSelectOnly||o.props.showTimeInput)||(r=Bt(r,{hour:De.default(o.props.selected),minute:Ae.default(o.props.selected),second:Ce.default(o.props.selected)})),o.props.inline||o.setState({preSelection:r}),o.props.focusSelectedMonth||o.setState({monthSelectedIn:a})),l){var u=c&&d;c||d?c&&!d&&(ct.default(r,c)?s([r,null],t):s([c,r],t)):s([r,null],t),u&&s([r,null],t)}else s(r,t);n||(o.props.onSelect(r,t),o.setState({inputValue:null}))})),xt(Ct(o),"setPreSelection",(function(e){var t=void 0!==o.props.minDate,n=void 0!==o.props.maxDate,a=!0;if(e){o.props.showWeekPicker&&(e=Ht(e,o.props.locale,o.props.calendarStartDay));var r=Ke.default(e);if(t&&n)a=Qt(e,o.props.minDate,o.props.maxDate);else if(t){var i=Ke.default(o.props.minDate);a=lt.default(e,i)||Xt(r,i)}else if(n){var s=et.default(o.props.maxDate);a=ct.default(e,s)||Xt(r,s)}}a&&o.setState({preSelection:e})})),xt(Ct(o),"toggleCalendar",(function(){o.setOpen(!o.state.open)})),xt(Ct(o),"handleTimeChange",(function(e){var t=o.props.selected?o.props.selected:o.getPreSelection(),n=o.props.selected?e:Bt(t,{hour:De.default(e),minute:Ae.default(e)});o.setState({preSelection:n}),o.props.onChange(n),o.props.shouldCloseOnSelect&&(o.sendFocusBackToInput(),o.setOpen(!1)),o.props.showTimeInput&&o.setOpen(!0),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),o.setState({inputValue:null})})),xt(Ct(o),"onInputClick",(function(){o.props.disabled||o.props.readOnly||o.setOpen(!0),o.props.onInputClick()})),xt(Ct(o),"onInputKeyDown",(function(e){o.props.onKeyDown(e);var t=e.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open){if("ArrowDown"===t||"ArrowUp"===t){e.preventDefault();var n=o.props.showWeekPicker&&o.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',a=o.calendar.componentNode&&o.calendar.componentNode.querySelector(n);return void(a&&a.focus({preventScroll:!0}))}var r=Ft(o.state.preSelection);"Enter"===t?(e.preventDefault(),o.inputOk()&&o.state.lastPreSelectChange===uo?(o.handleSelect(r,e),!o.props.shouldCloseOnSelect&&o.setPreSelection(r)):o.setOpen(!1)):"Escape"===t?(e.preventDefault(),o.sendFocusBackToInput(),o.setOpen(!1)):"Tab"===t&&o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:so})}}else"ArrowDown"!==t&&"ArrowUp"!==t&&"Enter"!==t||o.onInputClick()})),xt(Ct(o),"onPortalKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),o.setState({preventFocus:!0},(function(){o.setOpen(!1),setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))})))})),xt(Ct(o),"onDayKeyDown",(function(e){o.props.onKeyDown(e);var t=e.key,n=Ft(o.state.preSelection);if("Enter"===t)e.preventDefault(),o.handleSelect(n,e),!o.props.shouldCloseOnSelect&&o.setPreSelection(n);else if("Escape"===t)e.preventDefault(),o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:so});else if(!o.props.disabledKeyboardNavigation){var a;switch(t){case"ArrowLeft":a=o.props.showWeekPicker?Ee.default(n,1):xe.default(n,1);break;case"ArrowRight":a=o.props.showWeekPicker?be.default(n,1):_e.default(n,1);break;case"ArrowUp":a=Ee.default(n,1);break;case"ArrowDown":a=be.default(n,1);break;case"PageUp":a=Se.default(n,1);break;case"PageDown":a=ye.default(n,1);break;case"Home":a=Te.default(n,1);break;case"End":a=ke.default(n,1);break;default:a=null}if(!a)return void(o.props.onInputError&&o.props.onInputError({code:1,msg:so}));if(e.preventDefault(),o.setState({lastPreSelectChange:uo}),o.props.adjustDateOnChange&&o.setSelected(a),o.setPreSelection(a),o.props.inline){var r=Ie.default(n),i=Ie.default(a),s=Re.default(n),l=Re.default(a);r!==i||s!==l?o.setState({shouldFocusDayInline:!0}):o.setState({shouldFocusDayInline:!1})}}})),xt(Ct(o),"onPopperKeyDown",(function(e){"Escape"===e.key&&(e.preventDefault(),o.sendFocusBackToInput())})),xt(Ct(o),"onClearClick",(function(e){e&&e.preventDefault&&e.preventDefault(),o.sendFocusBackToInput(),o.props.selectsRange?o.props.onChange([null,null],e):o.props.onChange(null,e),o.setState({inputValue:null})})),xt(Ct(o),"clear",(function(){o.onClearClick()})),xt(Ct(o),"onScroll",(function(e){"boolean"==typeof o.props.closeOnScroll&&o.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||o.setOpen(!1):"function"==typeof o.props.closeOnScroll&&o.props.closeOnScroll(e)&&o.setOpen(!1)})),xt(Ct(o),"renderCalendar",(function(){return o.props.inline||o.isCalendarOpen()?ue.default.createElement(io,{ref:function(e){o.calendar=e},locale:o.props.locale,calendarStartDay:o.props.calendarStartDay,chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,monthAriaLabelPrefix:o.props.monthAriaLabelPrefix,adjustDateOnChange:o.props.adjustDateOnChange,setOpen:o.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,dateFormat:o.props.dateFormatCalendar,useWeekdaysShort:o.props.useWeekdaysShort,formatWeekDay:o.props.formatWeekDay,dropdownMode:o.props.dropdownMode,selected:o.props.selected,preSelection:o.state.preSelection,onSelect:o.handleSelect,onWeekSelect:o.props.onWeekSelect,openToDate:o.props.openToDate,minDate:o.props.minDate,maxDate:o.props.maxDate,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,selectsRange:o.props.selectsRange,startDate:o.props.startDate,endDate:o.props.endDate,excludeDates:o.props.excludeDates,excludeDateIntervals:o.props.excludeDateIntervals,filterDate:o.props.filterDate,onClickOutside:o.handleCalendarClickOutside,formatWeekNumber:o.props.formatWeekNumber,highlightDates:o.state.highlightDates,holidays:xn(o.modifyHolidays()),includeDates:o.props.includeDates,includeDateIntervals:o.props.includeDateIntervals,includeTimes:o.props.includeTimes,injectTimes:o.props.injectTimes,inline:o.props.inline,shouldFocusDayInline:o.state.shouldFocusDayInline,peekNextMonth:o.props.peekNextMonth,showMonthDropdown:o.props.showMonthDropdown,showPreviousMonths:o.props.showPreviousMonths,useShortMonthInDropdown:o.props.useShortMonthInDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showWeekNumbers:o.props.showWeekNumbers,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,forceShowMonthNavigation:o.props.forceShowMonthNavigation,showDisabledMonthNavigation:o.props.showDisabledMonthNavigation,scrollableYearDropdown:o.props.scrollableYearDropdown,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown,todayButton:o.props.todayButton,weekLabel:o.props.weekLabel,outsideClickIgnoreClass:ro,fixedHeight:o.props.fixedHeight,monthsShown:o.props.monthsShown,monthSelectedIn:o.state.monthSelectedIn,onDropdownFocus:o.handleDropdownFocus,onMonthChange:o.props.onMonthChange,onYearChange:o.props.onYearChange,dayClassName:o.props.dayClassName,weekDayClassName:o.props.weekDayClassName,monthClassName:o.props.monthClassName,timeClassName:o.props.timeClassName,showDateSelect:o.props.showDateSelect,showTimeSelect:o.props.showTimeSelect,showTimeSelectOnly:o.props.showTimeSelectOnly,onTimeChange:o.handleTimeChange,timeFormat:o.props.timeFormat,timeIntervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,filterTime:o.props.filterTime,timeCaption:o.props.timeCaption,className:o.props.calendarClassName,container:o.props.calendarContainer,yearItemNumber:o.props.yearItemNumber,yearDropdownItemNumber:o.props.yearDropdownItemNumber,previousMonthAriaLabel:o.props.previousMonthAriaLabel,previousMonthButtonLabel:o.props.previousMonthButtonLabel,nextMonthAriaLabel:o.props.nextMonthAriaLabel,nextMonthButtonLabel:o.props.nextMonthButtonLabel,previousYearAriaLabel:o.props.previousYearAriaLabel,previousYearButtonLabel:o.props.previousYearButtonLabel,nextYearAriaLabel:o.props.nextYearAriaLabel,nextYearButtonLabel:o.props.nextYearButtonLabel,timeInputLabel:o.props.timeInputLabel,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,renderCustomHeader:o.props.renderCustomHeader,popperProps:o.props.popperProps,renderDayContents:o.props.renderDayContents,renderMonthContent:o.props.renderMonthContent,renderQuarterContent:o.props.renderQuarterContent,renderYearContent:o.props.renderYearContent,onDayMouseEnter:o.props.onDayMouseEnter,onMonthMouseLeave:o.props.onMonthMouseLeave,onYearMouseEnter:o.props.onYearMouseEnter,onYearMouseLeave:o.props.onYearMouseLeave,selectsDisabledDaysInRange:o.props.selectsDisabledDaysInRange,showTimeInput:o.props.showTimeInput,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:o.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:o.props.showFourColumnMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showWeekPicker:o.props.showWeekPicker,showPopperArrow:o.props.showPopperArrow,excludeScrollbar:o.props.excludeScrollbar,handleOnKeyDown:o.props.onKeyDown,handleOnDayKeyDown:o.onDayKeyDown,isInputFocused:o.state.focused,customTimeInput:o.props.customTimeInput,setPreSelection:o.setPreSelection},o.props.children):null})),xt(Ct(o),"renderAriaLiveRegion",(function(){var e,t=o.props,n=t.dateFormat,a=t.locale,r=o.props.showTimeInput||o.props.showTimeSelect?"PPPPp":"PPPP";return e=o.props.selectsRange?"Selected start date: ".concat(zt(o.props.startDate,{dateFormat:r,locale:a}),". ").concat(o.props.endDate?"End date: "+zt(o.props.endDate,{dateFormat:r,locale:a}):""):o.props.showTimeSelectOnly?"Selected time: ".concat(zt(o.props.selected,{dateFormat:n,locale:a})):o.props.showYearPicker?"Selected year: ".concat(zt(o.props.selected,{dateFormat:"yyyy",locale:a})):o.props.showMonthYearPicker?"Selected month: ".concat(zt(o.props.selected,{dateFormat:"MMMM yyyy",locale:a})):o.props.showQuarterYearPicker?"Selected quarter: ".concat(zt(o.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):"Selected date: ".concat(zt(o.props.selected,{dateFormat:r,locale:a})),ue.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)})),xt(Ct(o),"renderDateInput",(function(){var e,t=pe.default(o.props.className,xt({},ro,o.state.open)),n=o.props.customInput||ue.default.createElement("input",{type:"text"}),a=o.props.customInputRef||"ref",r="string"==typeof o.props.value?o.props.value:"string"==typeof o.state.inputValue?o.state.inputValue:o.props.selectsRange?function(e,t,n){if(!e)return"";var o=zt(e,n),a=t?zt(t,n):"";return"".concat(o," - ").concat(a)}(o.props.startDate,o.props.endDate,o.props):zt(o.props.selected,o.props);return ue.default.cloneElement(n,(xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(e={},a,(function(e){o.input=e})),"value",r),"onBlur",o.handleBlur),"onChange",o.handleChange),"onClick",o.onInputClick),"onFocus",o.handleFocus),"onKeyDown",o.onInputKeyDown),"id",o.props.id),"name",o.props.name),"form",o.props.form),xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(e,"autoFocus",o.props.autoFocus),"placeholder",o.props.placeholderText),"disabled",o.props.disabled),"autoComplete",o.props.autoComplete),"className",pe.default(n.props.className,t)),"title",o.props.title),"readOnly",o.props.readOnly),"required",o.props.required),"tabIndex",o.props.tabIndex),"aria-describedby",o.props.ariaDescribedBy),xt(xt(xt(e,"aria-invalid",o.props.ariaInvalid),"aria-labelledby",o.props.ariaLabelledBy),"aria-required",o.props.ariaRequired)))})),xt(Ct(o),"renderClearButton",(function(){var e=o.props,t=e.isClearable,n=e.disabled,a=e.selected,r=e.startDate,i=e.endDate,s=e.clearButtonTitle,l=e.clearButtonClassName,c=void 0===l?"":l,d=e.ariaLabelClose,u=void 0===d?"Close":d;return!t||null==a&&null==r&&null==i?null:ue.default.createElement("button",{type:"button",className:pe.default("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":n}),disabled:n,"aria-label":u,onClick:o.onClearClick,title:s,tabIndex:-1})})),o.state=o.calcInitialState(),o.preventFocusTimeout=null,o}return kt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(e,t){var n,o;e.inline&&(n=e.selected,o=this.props.selected,n&&o?Ie.default(n)!==Ie.default(o)||Re.default(n)!==Re.default(o):n!==o)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:kn(this.props.highlightDates)}),t.focused||Xt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&this.props.onCalendarOpen(),!0===t.open&&!1===this.state.open&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var e=this.props,t=e.showIcon,n=e.icon,o=e.calendarIconClassname,a=e.toggleCalendarOnIconClick,r=this.state.open;return ue.default.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&ue.default.createElement(eo,Et({icon:n,className:"".concat(o," ").concat(r&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?ue.default.createElement(oo,{enableTabLoop:this.props.enableTabLoop},ue.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=ue.default.createElement(to,{portalId:this.props.portalId,portalHost:this.props.portalHost},t)),ue.default.createElement("div",null,this.renderInputContainer(),t)}return ue.default.createElement(ao,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(ue.default.Component),co="input",uo="navigate";e.CalendarContainer=Xn,e.default=lo,e.getDefaultLocale=Zt,e.registerLocale=function(e,t){var n="undefined"!=typeof window?window:globalThis;n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){("undefined"!=typeof window?window:globalThis).__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(6540),n(5556),n(6942),n(5290),n(6828),n(2346),n(2890),n(1524),n(2998),n(2238),n(2118),n(9852),n(9317),n(979),n(3337),n(4327),n(2657),n(9326),n(9251),n(2563),n(8089),n(7512),n(274),n(8850),n(2044),n(4158),n(2379),n(8519),n(1591),n(7375),n(7901),n(1104),n(6090),n(8895),n(8457),n(7440),n(63),n(667),n(2002),n(1127),n(7827),n(543),n(6757),n(7054),n(6212),n(6462),n(9312),n(3039),n(5010),n(1810),n(2702),n(4125),n(992),n(9672),n(7813),n(3652),n(123),n(2711),n(1806),n(3908),n(961),n(2430),n(4074))},9402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(5093))},9411:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(123),a=n(551);function r(e){(0,a.A)(1,arguments);var t=(0,o.default)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}},9417:(e,t,n)=>{"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>o})},9527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var o=e%10;return e+(t[o]||t[e%100-o]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(5093))},9532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function o(e,o,a){return e+" "+n(t[a],e,o)}function a(e,o,a){return n(t[a],e,o)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:o,m:a,mm:o,h:a,hh:o,d:a,dd:o,M:a,MM:o,y:a,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6540)),a=r(n(7920));function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function u(e){return e.dataTransfer?e.dataTransfer.types:[]}var p=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,c(t).call(this,e))).state={over:!1},n.droppable=o.default.createRef(),n}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e="div",t=Object.assign({},this.props);this.props.wrapperComponent&&(e=this.props.wrapperComponent.type,t=Object.assign(t,this.props.wrapperComponent.props));var n="Droppable";return t.className&&(n+=" ".concat(t.className)),this.state.over&&(n+=" over"),o.default.createElement(e,s({ref:this.droppable,className:n},function(e){var t=["types","className","enabled","wrapperComponent"];return Object.keys(e).reduce((function(n,o){return t.includes(o)||(n[o]=e[o]),n}),{})}(t),{onDrop:this.onDrop.bind(this),onDragOver:this.onDragOver.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragExit:this.onDragLeave.bind(this)}),t.children)}},{key:"onDragOver",value:function(e){e.preventDefault(),this.allowed(u(e))&&"function"==typeof this.props.onDragOver&&this.props.onDragOver(e)}},{key:"onDragEnter",value:function(e){e.preventDefault(),this.state.over||this.allowed(u(e))&&("function"==typeof this.props.onDragEnter&&this.props.onDragEnter(e),this.setState({over:!0}))}},{key:"onDragLeave",value:function(e){if(e.preventDefault(),this.allowed(u(e))){var t=!0;(e.clientX<=this.position.left||e.clientX>=this.position.right)&&(t=!1),(e.clientY<=this.position.top||e.clientY>=this.position.bottom)&&(t=!1),t||(this.setState({over:!1}),"function"==typeof this.props.onDragLeave&&this.props.onDragLeave(e))}}},{key:"onDrop",value:function(e){if(e.preventDefault(),this.allowed(u(e))){this.setState({over:!1});var t=Object.assign({},this.props);this.props.wrapperComponent&&(t=Object.assign(t,this.props.wrapperComponent.props));var n=t.types?[].concat(t.types).reduce((function(t,n){return t[n]=e.dataTransfer.getData(n),t}),{}):null;"function"==typeof this.props.onDrop&&this.props.onDrop(n,e)}}},{key:"allowed",value:function(e){var t=Object.assign({},this.props);if(this.props.wrapperComponent&&(t=Object.assign(t,this.props.wrapperComponent.props)),!t.enabled)return!1;var n=a.default.toArray(e);return!t.types||[].concat(t.types).reduce((function(e,t){return n.indexOf(t)>=0||e}),!1)}},{key:"componentDidMount",value:function(){var e=this.droppable.current;this.position={top:e.offsetTop+5,left:e.offsetLeft+5,right:e.offsetLeft+e.offsetWidth-5,bottom:e.offsetTop+e.offsetHeight-5}}}])&&l(n.prototype,r),t}(o.default.Component);t.default=p,p.defaultProps={enabled:!0}},9628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},9672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(123),a=n(551);function r(e,t){(0,a.A)(2,arguments);var n=(0,o.default)(e),r=(0,o.default)(t);return n.getTime()>r.getTime()}},9680:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(5093))},9742:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(123),a=n(551),r=n(4188),i=n(1858);function s(e,t){var n,s,l,c,d,u,p,h;(0,a.A)(1,arguments);var m=(0,i.q)(),f=(0,r.A)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(u=d.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==l?l:m.weekStartsOn)&&void 0!==s?s:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.default)(e),v=g.getUTCDay(),_=(v<f?7:0)+v-f;return g.setUTCDate(g.getUTCDate()-_),g.setUTCHours(0,0,0,0),g}},9756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(5093))},9764:function(e,t,n){var o;o=e=>(()=>{var t={703:(e,t,n)=>{"use strict";var o=n(414);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,i){if(i!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:t=>{"use strict";t.exports=e}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";o.r(a),o.d(a,{default:()=>y});var e=o(98),t=o.n(e),n=o(697),r=o.n(n);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}var s=function(e){var n=e.pageClassName,o=e.pageLinkClassName,a=e.page,r=e.selected,s=e.activeClassName,l=e.activeLinkClassName,c=e.getEventListener,d=e.pageSelectedHandler,u=e.href,p=e.extraAriaContext,h=e.pageLabelBuilder,m=e.rel,f=e.ariaLabel||"Page "+a+(p?" "+p:""),g=null;return r&&(g="page",f=e.ariaLabel||"Page "+a+" is your current page",n=void 0!==n?n+" "+s:s,void 0!==o?void 0!==l&&(o=o+" "+l):o=l),t().createElement("li",{className:n},t().createElement("a",i({rel:m,role:u?void 0:"button",className:o,href:u,tabIndex:r?"-1":"0","aria-label":f,"aria-current":g,onKeyPress:d},c(d)),h(a)))};s.propTypes={pageSelectedHandler:r().func.isRequired,selected:r().bool.isRequired,pageClassName:r().string,pageLinkClassName:r().string,activeClassName:r().string,activeLinkClassName:r().string,extraAriaContext:r().string,href:r().string,ariaLabel:r().string,page:r().number.isRequired,getEventListener:r().func.isRequired,pageLabelBuilder:r().func.isRequired,rel:r().string};const l=s;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(this,arguments)}var d=function(e){var n=e.breakLabel,o=e.breakAriaLabel,a=e.breakClassName,r=e.breakLinkClassName,i=e.breakHandler,s=e.getEventListener,l=a||"break";return t().createElement("li",{className:l},t().createElement("a",c({className:r,role:"button",tabIndex:"0","aria-label":o,onKeyPress:i},s(i)),n))};d.propTypes={breakLabel:r().oneOfType([r().string,r().node]),breakAriaLabel:r().string,breakClassName:r().string,breakLinkClassName:r().string,breakHandler:r().func.isRequired,getEventListener:r().func.isRequired};const u=d;function p(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},m.apply(this,arguments)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(s,e);var n,o,a,r,i=(a=s,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=v(a);if(r){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(this,e)});function s(e){var n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),_(g(n=i.call(this,e)),"handlePreviousPage",(function(e){var t=n.state.selected;n.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),_(g(n),"handleNextPage",(function(e){var t=n.state.selected,o=n.props.pageCount;n.handleClick(e,null,t<o-1?t+1:void 0,{isNext:!0})})),_(g(n),"handlePageSelected",(function(e,t){if(n.state.selected===e)return n.callActiveCallback(e),void n.handleClick(t,null,void 0,{isActive:!0});n.handleClick(t,null,e)})),_(g(n),"handlePageChange",(function(e){n.state.selected!==e&&(n.setState({selected:e}),n.callCallback(e))})),_(g(n),"getEventListener",(function(e){return _({},n.props.eventListener,e)})),_(g(n),"handleClick",(function(e,t,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=a.isPrevious,i=void 0!==r&&r,s=a.isNext,l=void 0!==s&&s,c=a.isBreak,d=void 0!==c&&c,u=a.isActive,p=void 0!==u&&u;e.preventDefault?e.preventDefault():e.returnValue=!1;var h=n.state.selected,m=n.props.onClick,f=o;if(m){var g=m({index:t,selected:h,nextSelectedPage:o,event:e,isPrevious:i,isNext:l,isBreak:d,isActive:p});if(!1===g)return;Number.isInteger(g)&&(f=g)}void 0!==f&&n.handlePageChange(f)})),_(g(n),"handleBreakClick",(function(e,t){var o=n.state.selected;n.handleClick(t,e,o<e?n.getForwardJump():n.getBackwardJump(),{isBreak:!0})})),_(g(n),"callCallback",(function(e){void 0!==n.props.onPageChange&&"function"==typeof n.props.onPageChange&&n.props.onPageChange({selected:e})})),_(g(n),"callActiveCallback",(function(e){void 0!==n.props.onPageActive&&"function"==typeof n.props.onPageActive&&n.props.onPageActive({selected:e})})),_(g(n),"getElementPageRel",(function(e){var t=n.state.selected,o=n.props,a=o.nextPageRel,r=o.prevPageRel,i=o.selectedPageRel;return t-1===e?r:t===e?i:t+1===e?a:void 0})),_(g(n),"pagination",(function(){var e=[],o=n.props,a=o.pageRangeDisplayed,r=o.pageCount,i=o.marginPagesDisplayed,s=o.breakLabel,l=o.breakClassName,c=o.breakLinkClassName,d=o.breakAriaLabels,p=n.state.selected;if(r<=a)for(var h=0;h<r;h++)e.push(n.getPageElement(h));else{var m=a/2,f=a-m;p>r-a/2?m=a-(f=r-p):p<a/2&&(f=a-(m=p));var g,v,_=function(e){return n.getPageElement(e)},b=[];for(g=0;g<r;g++){var y=g+1;if(y<=i)b.push({type:"page",index:g,display:_(g)});else if(y>r-i)b.push({type:"page",index:g,display:_(g)});else if(g>=p-m&&g<=p+(0===p&&a>1?f-1:f))b.push({type:"page",index:g,display:_(g)});else if(s&&b.length>0&&b[b.length-1].display!==v&&(a>0||i>0)){var w=g<p?d.backward:d.forward;v=t().createElement(u,{key:g,breakAriaLabel:w,breakLabel:s,breakClassName:l,breakLinkClassName:c,breakHandler:n.handleBreakClick.bind(null,g),getEventListener:n.getEventListener}),b.push({type:"break",index:g,display:v})}}b.forEach((function(t,n){var o=t;"break"===t.type&&b[n-1]&&"page"===b[n-1].type&&b[n+1]&&"page"===b[n+1].type&&b[n+1].index-b[n-1].index<=2&&(o={type:"page",index:t.index,display:_(t.index)}),e.push(o.display)}))}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),o=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,n.state={selected:o},n}return n=s,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,n=e.disableInitialCallback,o=e.extraAriaContext,a=e.pageCount,r=e.forcePage;void 0===t||n||this.callCallback(t),o&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(a)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(a,"). Did you forget a Math.ceil()?")),void 0!==t&&t>a-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(t," > ").concat(a-1,").")),void 0!==r&&r>a-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(r," > ").concat(a-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,n=t.pageCount,o=e+t.pageRangeDisplayed;return o>=n?n-1:o}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var t=this.props,n=t.hrefBuilder,o=t.pageCount,a=t.hrefAllControls;if(n)return a||e>=0&&e<o?n(e+1,o,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var n=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(n=n+" "+this.props.extraAriaContext),n}}},{key:"getPageElement",value:function(e){var n=this.state.selected,o=this.props,a=o.pageClassName,r=o.pageLinkClassName,i=o.activeClassName,s=o.activeLinkClassName,c=o.extraAriaContext,d=o.pageLabelBuilder;return t().createElement(l,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:n===e,rel:this.getElementPageRel(e),pageClassName:a,pageLinkClassName:r,activeClassName:i,activeLinkClassName:s,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:d,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var n=this.props,o=n.disabledClassName,a=n.disabledLinkClassName,r=n.pageCount,i=n.className,s=n.containerClassName,l=n.previousLabel,c=n.previousClassName,d=n.previousLinkClassName,u=n.previousAriaLabel,h=n.prevRel,f=n.nextLabel,g=n.nextClassName,v=n.nextLinkClassName,_=n.nextAriaLabel,b=n.nextRel,y=this.state.selected,w=0===y,k=y===r-1,x="".concat(p(c)).concat(w?" ".concat(p(o)):""),E="".concat(p(g)).concat(k?" ".concat(p(o)):""),S="".concat(p(d)).concat(w?" ".concat(p(a)):""),M="".concat(p(v)).concat(k?" ".concat(p(a)):""),T=w?"true":"false",C=k?"true":"false";return t().createElement("ul",{className:i||s,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:x},t().createElement("a",m({className:S,href:this.getElementHref(y-1),tabIndex:w?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":T,"aria-label":u,rel:h},this.getEventListener(this.handlePreviousPage)),l)),this.pagination(),t().createElement("li",{className:E},t().createElement("a",m({className:M,href:this.getElementHref(y+1),tabIndex:k?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":C,"aria-label":_,rel:b},this.getEventListener(this.handleNextPage)),f)))}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component);_(b,"propTypes",{pageCount:r().number.isRequired,pageRangeDisplayed:r().number,marginPagesDisplayed:r().number,previousLabel:r().node,previousAriaLabel:r().string,prevPageRel:r().string,prevRel:r().string,nextLabel:r().node,nextAriaLabel:r().string,nextPageRel:r().string,nextRel:r().string,breakLabel:r().oneOfType([r().string,r().node]),breakAriaLabels:r().shape({forward:r().string,backward:r().string}),hrefBuilder:r().func,hrefAllControls:r().bool,onPageChange:r().func,onPageActive:r().func,onClick:r().func,initialPage:r().number,forcePage:r().number,disableInitialCallback:r().bool,containerClassName:r().string,className:r().string,pageClassName:r().string,pageLinkClassName:r().string,pageLabelBuilder:r().func,activeClassName:r().string,activeLinkClassName:r().string,previousClassName:r().string,nextClassName:r().string,previousLinkClassName:r().string,nextLinkClassName:r().string,disabledClassName:r().string,disabledLinkClassName:r().string,breakClassName:r().string,breakLinkClassName:r().string,extraAriaContext:r().string,ariaLabelBuilder:r().func,eventListener:r().string,renderOnZeroPageCount:r().func,selectedPageRel:r().string}),_(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const y=b})(),a})(),e.exports=o(n(6540))},9771:e=>{"use strict";e.exports=function(){}},9834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(5093))},9846:function(e,t,n){!function(e){"use strict";function t(e,t,n,o){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return o||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(5093))},9849:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(5093))},9852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(4188),a=n(2118),r=n(551);function i(e,t){(0,r.A)(2,arguments);var n=3*(0,o.A)(t);return(0,a.default)(e,n)}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},9992:function(e,t){!function(e){"use strict";var t=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},n=function(e){var n={};return t(e,(function(t){!function(e,t,n){"function"!=typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n}(n,t,e[t])})),n},o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},a=["svg","path"],r=function(e){return a.includes(e)},i=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof n&&(a=n,n=null);var i=r(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n&&(r(e)?o(i,"class",n):i.className=n),t(a,(function(e,t){o(i,e,t)})),i},s=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},l=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},c="undefined"!=typeof window&&void 0!==window.document,d=function(){return c},u="children"in(d()?i("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},p=function(e,t,n,o){var a=n[0]||e.left,r=n[1]||e.top,i=a+e.width,s=r+e.height*(o[1]||1),l={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:a,top:r,right:i,bottom:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){h(l.inner,Object.assign({},e.inner)),h(l.outer,Object.assign({},e.outer))})),m(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,m(l.outer),l},h=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},m=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},f=function(e){return"number"==typeof e},g=function(e){return e<.5?2*e*e:(4-2*e)*e-1},v={spring:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,o=void 0===t?.5:t,a=e.damping,r=void 0===a?.75:a,i=e.mass,s=void 0===i?10:i,l=null,c=null,d=0,u=!1,p=n({interpolate:function(e,t){if(!u){if(!f(l)||!f(c))return u=!0,void(d=0);(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<o&&Math.abs(n)<o})(c+=d+=-(c-l)*o/s,l,d*=r)||t?(c=l,d=0,u=!0,p.onupdate(c),p.oncomplete(c)):p.onupdate(c)}},target:{set:function(e){if(f(e)&&!f(c)&&(c=e),null===l&&(l=e,c=e),c===(l=e)||void 0===l)return u=!0,d=0,p.onupdate(c),void p.oncomplete(c);u=!1},get:function(){return l}},resting:{get:function(){return u}},onupdate:function(e){},oncomplete:function(e){}});return p},tween:function(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.duration,r=void 0===a?500:a,i=o.easing,s=void 0===i?g:i,l=o.delay,c=void 0===l?0:l,d=null,u=!0,p=!1,h=null,m=n({interpolate:function(n,o){u||null===h||(null===d&&(d=n),n-d<c||((e=n-d-c)>=r||o?(e=1,t=p?0:1,m.onupdate(t*h),m.oncomplete(t*h),u=!0):(t=e/r,m.onupdate((e>=0?s(p?1-t:t):0)*h))))},target:{get:function(){return p?0:h},set:function(e){if(null===h)return h=e,m.onupdate(e),void m.oncomplete(e);e<h?(h=1,p=!0):(p=!1,h=e),u=!1,d=null}},resting:{get:function(){return u}},onupdate:function(e){},oncomplete:function(e){}});return m}},_=function(e,t,n){var o=e[t]&&"object"==typeof e[t][n]?e[t][n]:e[t]||e,a="string"==typeof o?o:o.type,r="object"==typeof o?Object.assign({},o):{};return v[a]?v[a](r):null},b=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var a=e,r=function(){return n[e]},i=function(t){return n[e]=t};"object"==typeof e&&(a=e.key,r=e.getter||r,i=e.setter||i),t[a]&&!o||(t[a]={get:r,set:i})}))}))},y=function(e){return null!=e},w={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},k=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},x=function(e,t){var n=t.opacity,o=t.perspective,a=t.translateX,r=t.translateY,i=t.scaleX,s=t.scaleY,l=t.rotateX,c=t.rotateY,d=t.rotateZ,u=t.originX,p=t.originY,h=t.width,m=t.height,f="",g="";(y(u)||y(p))&&(g+="transform-origin: "+(u||0)+"px "+(p||0)+"px;"),y(o)&&(f+="perspective("+o+"px) "),(y(a)||y(r))&&(f+="translate3d("+(a||0)+"px, "+(r||0)+"px, 0) "),(y(i)||y(s))&&(f+="scale3d("+(y(i)?i:1)+", "+(y(s)?s:1)+", 1) "),y(d)&&(f+="rotateZ("+d+"rad) "),y(l)&&(f+="rotateX("+l+"rad) "),y(c)&&(f+="rotateY("+c+"rad) "),f.length&&(g+="transform:"+f+";"),y(n)&&(g+="opacity:"+n+";",0===n&&(g+="visibility:hidden;"),n<1&&(g+="pointer-events:none;")),y(m)&&(g+="height:"+m+"px;"),y(h)&&(g+="width:"+h+"px;");var v=e.elementCurrentStyle||"";g.length===v.length&&g===v||(e.style.cssText=g,e.elementCurrentStyle=g)},E={styles:function(e){var t=e.mixinConfig,n=e.viewProps,o=e.viewInternalAPI,a=e.viewExternalAPI,r=e.view,i=Object.assign({},n),s={};b(t,[o,a],n);var l=function(){return r.rect?p(r.rect,r.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return o.rect={get:l},a.rect={get:l},t.forEach((function(e){n[e]=void 0===i[e]?w[e]:i[e]})),{write:function(){if(k(s,n))return x(r.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t,n=e.viewExternalAPI,o=(e.viewState,e.view),a=[],r=(t=o.element,function(e,n){t.addEventListener(e,n)}),i=function(e){return function(t,n){e.removeEventListener(t,n)}}(o.element);return n.on=function(e,t){a.push({type:e,fn:t}),r(e,t)},n.off=function(e,t){a.splice(a.findIndex((function(n){return n.type===e&&n.fn===t})),1),i(e,t)},{write:function(){return!0},destroy:function(){a.forEach((function(e){i(e.type,e.fn)}))}}},animations:function(e){var n=e.mixinConfig,o=e.viewProps,a=e.viewInternalAPI,r=e.viewExternalAPI,i=Object.assign({},o),s=[];return t(n,(function(e,t){var n=_(t);n&&(n.onupdate=function(t){o[e]=t},n.target=i[e],b([{key:e,setter:function(e){n.target!==e&&(n.target=e)},getter:function(){return o[e]}}],[a,r],o,!0),s.push(n))})),{write:function(e){var t=document.hidden,n=!0;return s.forEach((function(o){o.resting||(n=!1),o.interpolate(e,t)})),n},destroy:function(){}}},apis:function(e){var t=e.mixinConfig,n=e.viewProps,o=e.viewExternalAPI;b(t,o,n)}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,o=void 0===t?"div":t,a=e.name,r=void 0===a?null:a,c=e.attributes,d=void 0===c?{}:c,h=e.read,m=void 0===h?function(){}:h,f=e.write,g=void 0===f?function(){}:f,v=e.create,_=void 0===v?function(){}:v,b=e.destroy,y=void 0===b?function(){}:b,w=e.filterFrameActionsForChild,k=void 0===w?function(e,t){return t}:w,x=e.didCreateView,M=void 0===x?function(){}:x,T=e.didWriteView,C=void 0===T?function(){}:T,A=e.ignoreRect,D=void 0!==A&&A,P=e.ignoreRectUpdate,L=void 0!==P&&P,N=e.mixins,I=void 0===N?[]:N;return function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=i(o,"filepond--"+r,d),h=window.getComputedStyle(c,null),f=S(),v=null,b=!1,w=[],x=[],T={},A={},P=[g],N=[m],O=[y],R=function(){return c},F=function(){return w.concat()},j=function(){return v||(v=p(f,w,[0,0],[1,1]))},Y={element:{get:R},style:{get:function(){return h}},childViews:{get:F}},z=Object.assign({},Y,{rect:{get:j},ref:{get:function(){return T}},is:function(e){return r===e},appendChild:(t=c,function(e,n){void 0!==n&&t.children[n]?t.insertBefore(e,t.children[n]):t.appendChild(e)}),createChildView:function(e){return function(t,n){return t(e,n)}}(e),linkView:function(e){return w.push(e),e},unlinkView:function(e){w.splice(w.indexOf(e),1)},appendChildView:s(0,w),removeChildView:l(c,w),registerWriter:function(e){return P.push(e)},registerReader:function(e){return N.push(e)},registerDestroyer:function(e){return O.push(e)},invalidateLayout:function(){return c.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),B={element:{get:R},childViews:{get:F},rect:{get:j},resting:{get:function(){return b}},isRectIgnored:function(){return D},_read:function(){v=null,w.forEach((function(e){return e._read()})),!(L&&f.width&&f.height)&&S(f,c,h);var e={root:V,props:a,rect:f};N.forEach((function(t){return t(e)}))},_write:function(e,t,n){var o=0===t.length;return P.forEach((function(r){!1===r({props:a,root:V,actions:t,timestamp:e,shouldOptimize:n})&&(o=!1)})),x.forEach((function(t){!1===t.write(e)&&(o=!1)})),w.filter((function(e){return!!e.element.parentNode})).forEach((function(a){a._write(e,k(a,t),n)||(o=!1)})),w.forEach((function(a,r){a.element.parentNode||(V.appendChild(a.element,r),a._read(),a._write(e,k(a,t),n),o=!1)})),b=o,C({props:a,root:V,actions:t,timestamp:e}),o},_destroy:function(){x.forEach((function(e){return e.destroy()})),O.forEach((function(e){e({root:V,props:a})})),w.forEach((function(e){return e._destroy()}))}},H=Object.assign({},Y,{rect:{get:function(){return f}}});Object.keys(I).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var t=E[e]({mixinConfig:I[e],viewProps:a,viewState:A,viewInternalAPI:z,viewExternalAPI:B,view:n(H)});t&&x.push(t)}));var V=n(z);_({root:V,props:a});var U=u(c);return w.forEach((function(e,t){V.appendChild(e.element,U+t)})),M(V),n(B)}},T=function(e,t){return function(n){var o=n.root,a=n.props,r=n.actions,i=void 0===r?[]:r,s=n.timestamp,l=n.shouldOptimize;i.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:o,props:a,action:t.data,timestamp:s,shouldOptimize:l})})),t&&t({root:o,props:a,actions:i,timestamp:s,shouldOptimize:l})}},C=function(e,t){return t.parentNode.insertBefore(e,t)},A=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},D=function(e){return Array.isArray(e)},P=function(e){return null==e},L=function(e){return e.trim()},N=function(e){return""+e},I=function(e){return"boolean"==typeof e},O=function(e){return I(e)?e:"true"===e},R=function(e){return"string"==typeof e},F=function(e){return f(e)?e:R(e)?N(e).replace(/[a-z]+/gi,""):0},j=function(e){return parseInt(F(e),10)},Y=function(e){return parseFloat(F(e))},z=function(e){return f(e)&&isFinite(e)&&Math.floor(e)===e},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(z(e))return e;var n=N(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),j(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),j(n)*t):j(n)},H=function(e){return"function"==typeof e},V={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},U=function(e,t,n,o,a){if(null===t)return null;if("function"==typeof t)return t;var r={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:a,withCredentials:!1,timeout:o,onload:null,ondata:null,onerror:null};if(R(t))return r.url=t,r;if(Object.assign(r,t),R(r.headers)){var i=r.headers.split(/:(.+)/);r.headers={header:i[0],value:i[1]}}return r.withCredentials=O(r.withCredentials),r},W=function(e){return"object"==typeof e&&null!==e},q=function(e){return D(e)?"array":function(e){return null===e}(e)?"null":z(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":function(e){return W(e)&&R(e.url)&&W(e.process)&&W(e.revert)&&W(e.restore)&&W(e.fetch)}(e)?"api":typeof e},$={array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return P(e)?[]:D(e)?e:N(e).split(t).map(L).filter((function(e){return e.length}))},boolean:O,int:function(e){return"bytes"===q(e)?B(e):j(e)},number:Y,float:Y,bytes:B,string:function(e){return H(e)?e:N(e)},function:function(e){return function(e){for(var t=self,n=e.split("."),o=null;o=n.shift();)if(!(t=t[o]))return null;return t}(e)},serverapi:function(e){return(o={}).url=R(n=e)?n:n.url||"",o.timeout=n.timeout?parseInt(n.timeout,10):0,o.headers=n.headers?n.headers:{},t(V,(function(e){o[e]=U(e,n[e],V[e],o.timeout,o.headers)})),o.process=n.process||R(n)||n.url?o.process:null,o.remove=n.remove||null,delete o.headers,o;var n,o},object:function(e){try{return JSON.parse(e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'))}catch(e){return null}}},G=function(e,t,n){if(e===t)return e;var o,a=q(e);if(a!==n){var r=(o=e,$[n](o));if(a=q(r),null===r)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=r}return e},K=function(e){var o={};return t(e,(function(t){var n,a,r,i=e[t];o[t]=(n=i[0],a=i[1],r=n,{enumerable:!0,get:function(){return r},set:function(e){r=G(e,n,a)}})})),n(o)},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},X=function(e){return function(n,o,a){var r={};return t(e,(function(e){var t=J(e,"_").toUpperCase();r["SET_"+t]=function(o){try{a.options[e]=o.value}catch(e){}n("DID_SET_"+t,{value:a.options[e]})}})),r}},Q=function(e){return function(n){var o={};return t(e,(function(e){o["GET_"+J(e,"_").toUpperCase()]=function(t){return n.options[e]}})),o}},Z=1,ee=2,te=3,ne=4,oe=5,ae=function(){return Math.random().toString(36).substring(2,11)};function re(e){this.wrapped=e}function ie(e){var t,n;function o(t,n){try{var r=e[t](n),i=r.value,s=i instanceof re;Promise.resolve(s?i.wrapped:i).then((function(e){s?o("next",e):a(r.done?"return":"normal",e)}),(function(e){o("throw",e)}))}catch(e){a("throw",e)}}function a(e,a){switch(e){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,a){return new Promise((function(r,i){var s={key:e,arg:a,resolve:r,reject:i,next:null};n?n=n.next=s:(t=n=s,o(e,a))}))},"function"!=typeof e.return&&(this.return=void 0)}function se(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function le(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(ie.prototype[Symbol.asyncIterator]=function(){return this}),ie.prototype.next=function(e){return this._invoke("next",e)},ie.prototype.throw=function(e){return this._invoke("throw",e)},ie.prototype.return=function(e){return this._invoke("return",e)};var ce,de,ue=function(e,t){return e.splice(t,1)},pe=function(){var e=[],t=function(t,n){ue(e,e.findIndex((function(e){return e.event===t&&(e.cb===n||!n)})))},n=function(t,n,o){e.filter((function(e){return e.event===t})).map((function(e){return e.cb})).forEach((function(e){return function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)}((function(){return e.apply(void 0,le(n))}),o)}))};return{fireSync:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];n(e,o,!0)},fire:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];n(e,o,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,o){e.push({event:n,cb:function(){t(n,o),o.apply(void 0,arguments)}})},off:t}},he=function(e,t,n){Object.getOwnPropertyNames(e).filter((function(e){return!n.includes(e)})).forEach((function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))},me=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],fe=function(e){var t={};return he(e,t,me),t},ge={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},ve={INPUT:1,LIMBO:2,LOCAL:3},_e=function(e){return/[^0-9]+/.exec(e)},be=function(){return _e(1.1.toLocaleString())[0]},ye={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},we=[],ke=function(e,t,n){return new Promise((function(o,a){var r=we.filter((function(t){return t.key===e})).map((function(e){return e.cb}));if(0!==r.length){var i=r.shift();r.reduce((function(e,t){return e.then((function(e){return t(e,n)}))}),i(t,n)).then((function(e){return o(e)})).catch((function(e){return a(e)}))}else o(t)}))},xe=function(e,t,n){return we.filter((function(t){return t.key===e})).map((function(e){return e.cb(t,n)}))},Ee=function(e,t){return we.push({key:e,cb:t})},Se=function(){return Object.assign({},Me)},Me={id:[null,ye.STRING],name:["filepond",ye.STRING],disabled:[!1,ye.BOOLEAN],className:[null,ye.STRING],required:[!1,ye.BOOLEAN],captureMethod:[null,ye.STRING],allowSyncAcceptAttribute:[!0,ye.BOOLEAN],allowDrop:[!0,ye.BOOLEAN],allowBrowse:[!0,ye.BOOLEAN],allowPaste:[!0,ye.BOOLEAN],allowMultiple:[!1,ye.BOOLEAN],allowReplace:[!0,ye.BOOLEAN],allowRevert:[!0,ye.BOOLEAN],allowRemove:[!0,ye.BOOLEAN],allowProcess:[!0,ye.BOOLEAN],allowReorder:[!1,ye.BOOLEAN],allowDirectoriesOnly:[!1,ye.BOOLEAN],storeAsFile:[!1,ye.BOOLEAN],forceRevert:[!1,ye.BOOLEAN],maxFiles:[null,ye.INT],checkValidity:[!1,ye.BOOLEAN],itemInsertLocationFreedom:[!0,ye.BOOLEAN],itemInsertLocation:["before",ye.STRING],itemInsertInterval:[75,ye.INT],dropOnPage:[!1,ye.BOOLEAN],dropOnElement:[!0,ye.BOOLEAN],dropValidation:[!1,ye.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],ye.ARRAY],instantUpload:[!0,ye.BOOLEAN],maxParallelUploads:[2,ye.INT],allowMinimumUploadDuration:[!0,ye.BOOLEAN],chunkUploads:[!1,ye.BOOLEAN],chunkForce:[!1,ye.BOOLEAN],chunkSize:[5e6,ye.INT],chunkRetryDelays:[[500,1e3,3e3],ye.ARRAY],server:[null,ye.SERVER_API],fileSizeBase:[1e3,ye.INT],labelFileSizeBytes:["bytes",ye.STRING],labelFileSizeKilobytes:["KB",ye.STRING],labelFileSizeMegabytes:["MB",ye.STRING],labelFileSizeGigabytes:["GB",ye.STRING],labelDecimalSeparator:[be(),ye.STRING],labelThousandsSeparator:[(ce=be(),de=1e3.toLocaleString(),de!==1e3.toString()?_e(de)[0]:"."===ce?",":"."),ye.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',ye.STRING],labelInvalidField:["Field contains invalid files",ye.STRING],labelFileWaitingForSize:["Waiting for size",ye.STRING],labelFileSizeNotAvailable:["Size not available",ye.STRING],labelFileCountSingular:["file in list",ye.STRING],labelFileCountPlural:["files in list",ye.STRING],labelFileLoading:["Loading",ye.STRING],labelFileAdded:["Added",ye.STRING],labelFileLoadError:["Error during load",ye.STRING],labelFileRemoved:["Removed",ye.STRING],labelFileRemoveError:["Error during remove",ye.STRING],labelFileProcessing:["Uploading",ye.STRING],labelFileProcessingComplete:["Upload complete",ye.STRING],labelFileProcessingAborted:["Upload cancelled",ye.STRING],labelFileProcessingError:["Error during upload",ye.STRING],labelFileProcessingRevertError:["Error during revert",ye.STRING],labelTapToCancel:["tap to cancel",ye.STRING],labelTapToRetry:["tap to retry",ye.STRING],labelTapToUndo:["tap to undo",ye.STRING],labelButtonRemoveItem:["Remove",ye.STRING],labelButtonAbortItemLoad:["Abort",ye.STRING],labelButtonRetryItemLoad:["Retry",ye.STRING],labelButtonAbortItemProcessing:["Cancel",ye.STRING],labelButtonUndoItemProcessing:["Undo",ye.STRING],labelButtonRetryItemProcessing:["Retry",ye.STRING],labelButtonProcessItem:["Upload",ye.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',ye.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',ye.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',ye.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',ye.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',ye.STRING],oninit:[null,ye.FUNCTION],onwarning:[null,ye.FUNCTION],onerror:[null,ye.FUNCTION],onactivatefile:[null,ye.FUNCTION],oninitfile:[null,ye.FUNCTION],onaddfilestart:[null,ye.FUNCTION],onaddfileprogress:[null,ye.FUNCTION],onaddfile:[null,ye.FUNCTION],onprocessfilestart:[null,ye.FUNCTION],onprocessfileprogress:[null,ye.FUNCTION],onprocessfileabort:[null,ye.FUNCTION],onprocessfilerevert:[null,ye.FUNCTION],onprocessfile:[null,ye.FUNCTION],onprocessfiles:[null,ye.FUNCTION],onremovefile:[null,ye.FUNCTION],onpreparefile:[null,ye.FUNCTION],onupdatefiles:[null,ye.FUNCTION],onreorderfiles:[null,ye.FUNCTION],beforeDropFile:[null,ye.FUNCTION],beforeAddFile:[null,ye.FUNCTION],beforeRemoveFile:[null,ye.FUNCTION],beforePrepareFile:[null,ye.FUNCTION],stylePanelLayout:[null,ye.STRING],stylePanelAspectRatio:[null,ye.STRING],styleItemPanelAspectRatio:[null,ye.STRING],styleButtonRemoveItemPosition:["left",ye.STRING],styleButtonProcessItemPosition:["right",ye.STRING],styleLoadIndicatorPosition:["right",ye.STRING],styleProgressIndicatorPosition:["right",ye.STRING],styleButtonRemoveItemAlign:[!1,ye.BOOLEAN],files:[[],ye.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],ye.ARRAY]},Te=function(e,t){return P(t)?e[0]||null:z(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},Ce=function(e){if(P(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},Ae=function(e){return e.filter((function(e){return!e.archived}))},De={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},Pe=null,Le=[ge.LOAD_ERROR,ge.PROCESSING_ERROR,ge.PROCESSING_REVERT_ERROR],Ne=[ge.LOADING,ge.PROCESSING,ge.PROCESSING_QUEUED,ge.INIT],Ie=[ge.PROCESSING_COMPLETE],Oe=function(e){return Le.includes(e.status)},Re=function(e){return Ne.includes(e.status)},Fe=function(e){return Ie.includes(e.status)},je=function(e){return W(e.options.server)&&(W(e.options.server.process)||H(e.options.server.process))},Ye=function(e){return{GET_STATUS:function(){var t=Ae(e.items),n=De.EMPTY,o=De.ERROR,a=De.BUSY,r=De.IDLE,i=De.READY;return 0===t.length?n:t.some(Oe)?o:t.some(Re)?a:t.some(Fe)?i:r},GET_ITEM:function(t){return Te(e.items,t)},GET_ACTIVE_ITEM:function(t){return Te(Ae(e.items),t)},GET_ACTIVE_ITEMS:function(){return Ae(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=Te(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=Te(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:Ce(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return Ae(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return Ae(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&function(){if(null===Pe)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,Pe=1===t.files.length}catch(e){Pe=!1}return Pe}()&&!je(e)},IS_ASYNC:function(){return je(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},ze=function(e,t,n){return Math.max(Math.min(n,e),t)},Be=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},He=function(e){return(""+e).split("/").pop().split("?").shift()},Ve=function(e){return e.split(".").pop()},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},We=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+Ue(e.getMonth()+1,"00")+"-"+Ue(e.getDate(),"00")+"_"+Ue(e.getHours(),"00")+"-"+Ue(e.getMinutes(),"00")+"-"+Ue(e.getSeconds(),"00")},qe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return a.lastModifiedDate=new Date,e._relativePath&&(a._relativePath=e._relativePath),R(t)||(t=We()),t&&null===o&&Ve(t)?a.name=t:(o=o||function(e){if("string"!=typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""}(a.type),a.name=t+(o?"."+o:"")),a},$e=function(e,t){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var o=new n;return o.append(e),o.getBlob(t)}return new Blob([e],{type:t})},Ge=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},Ke=function(e){var t=Ge(e),n=function(e){return atob(function(e){return e.split(",")[1].replace(/\s/g,"")}(e))}(e);return function(e,t){for(var n=new ArrayBuffer(e.length),o=new Uint8Array(n),a=0;a<e.length;a++)o[a]=e.charCodeAt(a);return $e(n,t)}(n,t)},Je=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+''/).splice(1).map((function(e){return e.trim().replace(/^["']|[;"']{0,2}$/g,"")})).filter((function(e){return e.length}));return t.length?decodeURI(t[t.length-1]):null},Xe=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Qe=function(e){return/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null},Ze=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),o=!0,a=!1,r=void 0;try{for(var i,s=n[Symbol.iterator]();!(o=(i=s.next()).done);o=!0){var l=i.value,c=Je(l);if(c)t.name=c;else{var d=Xe(l);if(d)t.size=d;else{var u=Qe(l);u&&(t.source=u)}}}}catch(e){a=!0,r=e}finally{try{o||null==s.return||s.return()}finally{if(a)throw r}}return t},et=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=function(n){e?(t.timestamp=Date.now(),t.request=e(n,(function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=qe(e,e.name||He(n))),o.fire("load",e instanceof Blob?e:e?e.body:null)}),(function(e){o.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)}),(function(e,n,a){a&&(t.size=a),t.duration=Date.now()-t.timestamp,e?(t.progress=n/a,o.fire("progress",t.progress)):t.progress=null}),(function(){o.fire("abort")}),(function(e){var n=Ze("string"==typeof e?e:e.headers);o.fire("meta",{size:t.size||n.size,filename:n.name,source:n.source})}))):o.fire("error",{type:"error",body:"Can't load URL",code:400})},o=Object.assign({},pe(),{setSource:function(e){return t.source=e},getProgress:function(){return t.progress},abort:function(){t.request&&t.request.abort&&t.request.abort()},load:function(){var e,a,r=t.source;o.fire("init",r),r instanceof File?o.fire("load",r):r instanceof Blob?o.fire("load",qe(r,r.name)):Be(r)?o.fire("load",qe(Ke(r),e,null,a)):n(r)}});return o},tt=function(e){return/GET|HEAD/.test(e)},nt=function(e,t,n){var o={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){a=!0,i.abort()}},a=!1,r=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),tt(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var i=new XMLHttpRequest;return(tt(n.method)?i:i.upload).onprogress=function(e){a||o.onprogress(e.lengthComputable,e.loaded,e.total)},i.onreadystatechange=function(){i.readyState<2||4===i.readyState&&0===i.status||r||(r=!0,o.onheaders(i))},i.onload=function(){i.status>=200&&i.status<300?o.onload(i):o.onerror(i)},i.onerror=function(){return o.onerror(i)},i.onabort=function(){a=!0,o.onabort()},i.ontimeout=function(){return o.ontimeout(i)},i.open(n.method,t,!0),z(n.timeout)&&(i.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));i.setRequestHeader(e,t)})),n.responseType&&(i.responseType=n.responseType),n.withCredentials&&(i.withCredentials=!0),i.send(e),o},ot=function(e,t,n,o){return{type:e,code:t,body:n,headers:o}},at=function(e){return function(t){e(ot("error",0,"Timeout",t.getAllResponseHeaders()))}},rt=function(e){return/\?/.test(e)},it=function(){for(var e="",t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach((function(t){e+=rt(e)&&rt(t)?t.replace(/\?/,"&"):t})),e},st=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!R(t.url))return null;var n=t.onload||function(e){return e},o=t.onerror||function(e){return null};return function(a,r,i,s,l,c){var d=nt(a,it(e,t.url),Object.assign({},t,{responseType:"blob"}));return d.onload=function(e){var o=e.getAllResponseHeaders(),i=Ze(o).name||He(a);r(ot("load",e.status,"HEAD"===t.method?null:qe(n(e.response),i),o))},d.onerror=function(e){i(ot("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},d.onheaders=function(e){c(ot("headers",e.status,null,e.getAllResponseHeaders()))},d.ontimeout=at(i),d.onprogress=s,d.onabort=l,d}},lt=0,ct=1,dt=2,ut=3,pt=4,ht=function(e,t,n,o,a,r,i,s,l,c,d){for(var u=[],p=d.chunkTransferId,h=d.chunkServer,m=d.chunkSize,f=d.chunkRetryDelays,g={serverId:p,aborted:!1},v=t.ondata||function(e){return e},_=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},b=t.onerror||function(e){return null},y=Math.floor(o.size/m),w=0;w<=y;w++){var k=w*m,x=o.slice(k,k+m,"application/offset+octet-stream");u[w]={index:w,size:x.size,offset:k,data:x,file:o,progress:0,retries:le(f),status:lt,error:null,request:null,timeout:null}}var E,S,M,T,C=function(e){return e.status===lt||e.status===ut},A=function(t){if(!g.aborted)if(t=t||u.find(C)){t.status=dt,t.progress=null;var n=h.ondata||function(e){return e},a=h.onerror||function(e){return null},s=h.onload||function(){},c=it(e,h.url,g.serverId),d="function"==typeof h.headers?h.headers(t):Object.assign({},h.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":o.size,"Upload-Name":o.name}),p=t.request=nt(n(t.data),c,Object.assign({},h,{headers:d}));p.onload=function(e){s(e,t.index,u.length),t.status=ct,t.request=null,L()},p.onprogress=function(e,n,o){t.progress=e?n:null,P()},p.onerror=function(e){t.status=ut,t.request=null,t.error=a(e.response)||e.statusText,D(t)||i(ot("error",e.status,a(e.response)||e.statusText,e.getAllResponseHeaders()))},p.ontimeout=function(e){t.status=ut,t.request=null,D(t)||at(i)(e)},p.onabort=function(){t.status=lt,t.request=null,l()}}else u.every((function(e){return e.status===ct}))&&r(g.serverId)},D=function(e){return 0!==e.retries.length&&(e.status=pt,clearTimeout(e.timeout),e.timeout=setTimeout((function(){A(e)}),e.retries.shift()),!0)},P=function(){var e=u.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return s(!1,0,0);var t=u.reduce((function(e,t){return e+t.size}),0);s(!0,e,t)},L=function(){u.filter((function(e){return e.status===dt})).length>=1||A()};return g.serverId?(E=function(e){g.aborted||(u.filter((function(t){return t.offset<e})).forEach((function(e){e.status=ct,e.progress=e.size})),L())},S=it(e,h.url,g.serverId),M={headers:"function"==typeof t.headers?t.headers(g.serverId):Object.assign({},t.headers),method:"HEAD"},(T=nt(null,S,M)).onload=function(e){return E(_(e,M.method))},T.onerror=function(e){return i(ot("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},T.ontimeout=at(i)):function(r){var s=new FormData;W(a)&&s.append(n,JSON.stringify(a));var l="function"==typeof t.headers?t.headers(o,a):Object.assign({},t.headers,{"Upload-Length":o.size}),c=Object.assign({},t,{headers:l}),d=nt(v(s),it(e,t.url),c);d.onload=function(e){return r(_(e,c.method))},d.onerror=function(e){return i(ot("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},d.ontimeout=at(i)}((function(e){g.aborted||(c(e),g.serverId=e,L())})),{abort:function(){g.aborted=!0,u.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))}}},mt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,a=new Array(e),r=0;r<e;r++)a[r]=arguments[r];return t.apply(void 0,[n].concat(a,[o]))}:t&&R(t.url)?function(e,t,n,o){return function(a,r,i,s,l,c,d){if(a){var u=o.chunkUploads,p=u&&a.size>o.chunkSize,h=u&&(p||o.chunkForce);if(a instanceof Blob&&h)return ht(e,t,n,a,r,i,s,l,c,d,o);var m=t.ondata||function(e){return e},f=t.onload||function(e){return e},g=t.onerror||function(e){return null},v="function"==typeof t.headers?t.headers(a,r)||{}:Object.assign({},t.headers),_=Object.assign({},t,{headers:v}),b=new FormData;W(r)&&b.append(n,JSON.stringify(r)),(a instanceof Blob?[{name:null,file:a}]:a).forEach((function(e){b.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var y=nt(m(b),it(e,t.url),_);return y.onload=function(e){i(ot("load",e.status,f(e.response),e.getAllResponseHeaders()))},y.onerror=function(e){s(ot("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},y.ontimeout=at(s),y.onprogress=l,y.onabort=c,y}}}(e,t,n,o):null},ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!R(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},o=t.onerror||function(e){return null};return function(a,r,i){var s=nt(a,e+t.url,t);return s.onload=function(e){r(ot("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){i(ot("error",e.status,o(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=at(i),s}},gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},vt=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},o=t.allowMinimumUploadDuration,a=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},r=o?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},i=o?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},s=Object.assign({},pe(),{process:function(t,a){var r=function(){0!==n.duration&&null!==n.progress&&s.fire("progress",s.getProgress())},i=function(){n.complete=!0,s.fire("load-perceived",n.response.body)};s.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=null,r=Date.now();return t>0&&function i(){var s=Date.now()-r,l=gt(n,o);s+l>t&&(l=s+l-t);var c=s/t;c>=1||document.hidden?e(1):(e(c),a=setTimeout(i,l))}(),{clear:function(){clearTimeout(a)}}}((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,r(),n.response&&1===n.perceivedProgress&&!n.complete&&i()}),o?gt(750,1500):0),n.request=e(t,a,(function(e){n.response=W(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,s.fire("load",n.response.body),(!o||o&&1===n.perceivedProgress)&&i()}),(function(e){n.perceivedPerformanceUpdater.clear(),s.fire("error",W(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,o){n.duration=Date.now()-n.timestamp,n.progress=e?t/o:null,r()}),(function(){n.perceivedPerformanceUpdater.clear(),s.fire("abort",n.response?n.response.body:null)}),(function(e){s.fire("transfer",e)}))},abort:a,getProgress:r,getDuration:i,reset:function(){a(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null}});return s},_t=function(e){return e.substring(0,e.lastIndexOf("."))||e},bt=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},yt=function e(t){if(!W(t))return t;var n=D(t)?[]:{};for(var o in t)if(t.hasOwnProperty(o)){var a=t[o];n[o]=a&&W(a)?e(a):a}return n},wt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=ae(),r={archived:!1,frozen:!1,released:!1,source:null,file:o,serverFileReference:t,transferId:null,processingAborted:!1,status:t?ge.PROCESSING_COMPLETE:ge.INIT,activeLoader:null,activeProcessor:null},i=null,s={},l=function(e){return r.status=e},c=function(e){if(!r.released&&!r.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];u.fire.apply(u,[e].concat(n))}},d=function(e,t,n){var o=e.split("."),a=o[0],r=o.pop(),i=s;o.forEach((function(e){return i=i[e]})),JSON.stringify(i[r])!==JSON.stringify(t)&&(i[r]=t,c("metadata-update",{key:a,value:s[a],silent:n}))},u=Object.assign({id:{get:function(){return a}},origin:{get:function(){return e},set:function(t){return e=t}},serverId:{get:function(){return r.serverFileReference}},transferId:{get:function(){return r.transferId}},status:{get:function(){return r.status}},filename:{get:function(){return r.file.name}},filenameWithoutExtension:{get:function(){return _t(r.file.name)}},fileExtension:{get:function(){return Ve(r.file.name)}},fileType:{get:function(){return r.file.type}},fileSize:{get:function(){return r.file.size}},file:{get:function(){return r.file}},relativePath:{get:function(){return r.file._relativePath}},source:{get:function(){return r.source}},getMetadata:function(e){return yt(e?s[e]:s)},setMetadata:function(e,t,n){if(W(e)){var o=e;return Object.keys(o).forEach((function(e){d(e,o[e],t)})),e}return d(e,t,n),t},extend:function(e,t){return p[e]=t},abortLoad:function(){r.activeLoader?r.activeLoader.abort():(l(ge.INIT),c("load-abort"))},retryLoad:function(){r.activeLoader&&r.activeLoader.load()},requestProcessing:function(){r.processingAborted=!1,l(ge.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise((function(e){if(!r.activeProcessor)return r.processingAborted=!0,l(ge.IDLE),c("process-abort"),void e();i=function(){e()},r.activeProcessor.abort()}))},load:function(t,n,o){r.source=t,u.fireSync("init"),r.file?u.fireSync("load-skip"):(r.file=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Be(e)?t[0]=e.name||We():Be(e)?(t[1]=e.length,t[2]=Ge(e)):R(e)&&(t[0]=He(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}}(t),n.on("init",(function(){c("load-init")})),n.on("meta",(function(t){r.file.size=t.size,r.file.filename=t.filename,t.source&&(e=ve.LIMBO,r.serverFileReference=t.source,r.status=ge.PROCESSING_COMPLETE),c("load-meta")})),n.on("progress",(function(e){l(ge.LOADING),c("load-progress",e)})),n.on("error",(function(e){l(ge.LOAD_ERROR),c("load-request-error",e)})),n.on("abort",(function(){l(ge.INIT),c("load-abort")})),n.on("load",(function(t){r.activeLoader=null;var n=function(t){r.file=bt(t)?t:r.file,e===ve.LIMBO&&r.serverFileReference?l(ge.PROCESSING_COMPLETE):l(ge.IDLE),c("load")};r.serverFileReference?n(t):o(t,n,(function(e){r.file=t,c("load-meta"),l(ge.LOAD_ERROR),c("load-file-error",e)}))})),n.setSource(t),r.activeLoader=n,n.load())},process:function e(t,n){if(r.processingAborted)r.processingAborted=!1;else if(l(ge.PROCESSING),i=null,r.file instanceof Blob){t.on("load",(function(e){r.transferId=null,r.serverFileReference=e})),t.on("transfer",(function(e){r.transferId=e})),t.on("load-perceived",(function(e){r.activeProcessor=null,r.transferId=null,r.serverFileReference=e,l(ge.PROCESSING_COMPLETE),c("process-complete",e)})),t.on("start",(function(){c("process-start")})),t.on("error",(function(e){r.activeProcessor=null,l(ge.PROCESSING_ERROR),c("process-error",e)})),t.on("abort",(function(e){r.activeProcessor=null,r.serverFileReference=e,l(ge.IDLE),c("process-abort"),i&&i()})),t.on("progress",(function(e){c("process-progress",e)}));var o=console.error;n(r.file,(function(e){r.archived||t.process(e,Object.assign({},s))}),o),r.activeProcessor=t}else u.on("load",(function(){e(t,n)}))},revert:function(e,t){return new Promise((function(n,o){var a=null!==r.serverFileReference?r.serverFileReference:r.transferId;null!==a?(e(a,(function(){r.serverFileReference=null,r.transferId=null,n()}),(function(e){t?(l(ge.PROCESSING_REVERT_ERROR),c("process-revert-error"),o(e)):n()})),l(ge.IDLE),c("process-revert")):n()}))}},pe(),{freeze:function(){return r.frozen=!0},release:function(){return r.released=!0},released:{get:function(){return r.released}},archive:function(){return r.archived=!0},archived:{get:function(){return r.archived}},setFile:function(e){return r.file=e}}),p=n(u);return p},kt=function(e,t){var n=function(e,t){return P(t)?0:R(t)?e.findIndex((function(e){return e.id===t})):-1}(e,t);if(!(n<0))return e[n]||null},xt=function(e,t,n,o,a,r){var i=nt(null,e,{method:"GET",responseType:"blob"});return i.onload=function(n){var o=n.getAllResponseHeaders(),a=Ze(o).name||He(e);t(ot("load",n.status,qe(n.response,a),o))},i.onerror=function(e){n(ot("error",e.status,e.statusText,e.getAllResponseHeaders()))},i.onheaders=function(e){r(ot("headers",e.status,null,e.getAllResponseHeaders()))},i.ontimeout=at(n),i.onprogress=o,i.onabort=a,i},Et=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},St=function(e){return function(){return H(e)?e.apply(void 0,arguments):e}},Mt=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:Ae(t.items)})}),0)},Tt=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new Promise((function(t){if(!e)return t(!0);var o=e.apply(void 0,n);return null==o?t(!0):"boolean"==typeof o?t(o):void("function"==typeof o.then&&o.then(t))}))},Ct=function(e,t){e.items.sort((function(e,n){return t(fe(e),fe(n))}))},At=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.query,a=n.success,r=void 0===a?function(){}:a,i=n.failure,s=void 0===i?function(){}:i,l=se(n,["query","success","failure"]),c=Te(e.items,o);c?t(c,r,s,l||{}):s({error:ot("error",0,"Item not found"),file:null})}},Dt=function(e,t,n){return{ABORT_ALL:function(){Ae(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var o=t.value,a=(void 0===o?[]:o).map((function(e){return{source:e.source?e.source:e,options:e.options}})),r=Ae(n.items);r.forEach((function(t){a.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),r=Ae(n.items),a.forEach((function(t,n){r.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:oe,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(o){var a=o.id,r=o.action,i=o.change;i.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var o,s=kt(n.items,a);if(t("IS_ASYNC")){s.origin===ve.LOCAL&&e("DID_LOAD_ITEM",{id:s.id,error:null,serverFileReference:s.source});var l=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:a})}),32)};return s.status===ge.PROCESSING_COMPLETE?(o=n.options.instantUpload,void s.revert(ft(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(o?l:function(){}).catch((function(){}))):s.status===ge.PROCESSING?function(e){s.abortProcessing().then(e?l:function(){})}(n.options.instantUpload):void(n.options.instantUpload&&l())}ke("SHOULD_PREPARE_OUTPUT",!1,{item:s,query:t,action:r,change:i}).then((function(n){var o=t("GET_BEFORE_PREPARE_FILE");o&&(n=o(s,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:a,item:s,success:function(t){e("DID_PREPARE_OUTPUT",{id:a,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,o=e.index,a=Te(n.items,t);if(a){var r=n.items.indexOf(a);r!==(o=ze(o,0,n.items.length-1))&&n.items.splice(o,0,n.items.splice(r,1)[0])}},SORT:function(o){var a=o.compare;Ct(n,a),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var o=n.items,a=n.index,r=n.interactionMethod,i=n.success,s=void 0===i?function(){}:i,l=n.failure,c=void 0===l?function(){}:l,d=a;if(-1===a||void 0===a){var u=t("GET_ITEM_INSERT_LOCATION"),p=t("GET_TOTAL_ITEMS");d="before"===u?0:p}var h=t("GET_IGNORED_FILES"),m=o.filter((function(e){return bt(e)?!h.includes(e.name.toLowerCase()):!P(e)})).map((function(t){return new Promise((function(n,o){e("ADD_ITEM",{interactionMethod:r,source:t.source||t,success:n,failure:o,index:d++,options:t.options||{}})}))}));Promise.all(m).then(s).catch(c)},ADD_ITEM:function(o){var a=o.source,r=o.index,i=void 0===r?-1:r,s=o.interactionMethod,l=o.success,c=void 0===l?function(){}:l,d=o.failure,u=void 0===d?function(){}:d,p=o.options,h=void 0===p?{}:p;if(P(a))u({error:ot("error",0,"No source"),file:null});else if(!bt(a)||!n.options.ignoredFiles.includes(a.name.toLowerCase())){if(!function(e){var t=Ae(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n}(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var m=ot("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:a,error:m}),void u({error:m,file:null})}var f=Ae(n.items)[0];if(f.status===ge.PROCESSING_COMPLETE||f.status===ge.PROCESSING_REVERT_ERROR){var g=t("GET_FORCE_REVERT");if(f.revert(ft(n.options.server.url,n.options.server.revert),g).then((function(){g&&e("ADD_ITEM",{source:a,index:i,interactionMethod:s,success:c,failure:u,options:h})})).catch((function(){})),g)return}e("REMOVE_ITEM",{query:f.id})}var v="local"===h.type?ve.LOCAL:"limbo"===h.type?ve.LIMBO:ve.INPUT,_=wt(v,v===ve.INPUT?null:a,h.file);Object.keys(h.metadata||{}).forEach((function(e){_.setMetadata(e,h.metadata[e])})),xe("DID_CREATE_ITEM",_,{query:t,dispatch:e});var b=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(i="before"===b?-1:n.items.length),function(e,t,n){P(t)||(void 0===n?e.push(t):function(e,t,n){e.splice(t,0,n)}(e,n=ze(n,0,e.length),t))}(n.items,_,i),H(b)&&a&&Ct(n,b);var y=_.id;_.on("init",(function(){e("DID_INIT_ITEM",{id:y})})),_.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:y})})),_.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:y})})),_.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:y,progress:t})})),_.on("load-request-error",(function(t){var o=St(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:y,error:t,status:{main:o,sub:t.code+" ("+t.body+")"}}),void u({error:t,file:fe(_)});e("DID_THROW_ITEM_LOAD_ERROR",{id:y,error:t,status:{main:o,sub:n.options.labelTapToRetry}})})),_.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:y,error:t.status,status:t.status}),u({error:t.status,file:fe(_)})})),_.on("load-abort",(function(){e("REMOVE_ITEM",{query:y})})),_.on("load-skip",(function(){_.on("metadata-update",(function(t){bt(_.file)&&e("DID_UPDATE_ITEM_METADATA",{id:y,change:t})})),e("COMPLETE_LOAD_ITEM",{query:y,item:_,data:{source:a,success:c}})})),_.on("load",(function(){var o=function(o){o?(_.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:y,change:t})})),ke("SHOULD_PREPARE_OUTPUT",!1,{item:_,query:t}).then((function(o){var r=t("GET_BEFORE_PREPARE_FILE");r&&(o=r(_,o));var i=function(){e("COMPLETE_LOAD_ITEM",{query:y,item:_,data:{source:a,success:c}}),Mt(e,n)};o?e("REQUEST_PREPARE_OUTPUT",{query:y,item:_,success:function(t){e("DID_PREPARE_OUTPUT",{id:y,file:t}),i()}},!0):i()}))):e("REMOVE_ITEM",{query:y})};ke("DID_LOAD_ITEM",_,{query:t,dispatch:e}).then((function(){Tt(t("GET_BEFORE_ADD_FILE"),fe(_)).then(o)})).catch((function(t){if(!t||!t.error||!t.status)return o(!1);e("DID_THROW_ITEM_INVALID",{id:y,error:t.error,status:t.status})}))})),_.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:y})})),_.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:y,progress:t})})),_.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:y,error:t,status:{main:St(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),_.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:y,error:t,status:{main:St(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),_.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:y,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:y,value:t})})),_.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:y})})),_.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:y}),e("DID_DEFINE_VALUE",{id:y,value:null})})),e("DID_ADD_ITEM",{id:y,index:i,interactionMethod:s}),Mt(e,n);var w=n.options.server||{},k=w.url,x=w.load,E=w.restore,S=w.fetch;_.load(a,et(v===ve.INPUT?R(a)&&function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&Et(location.href)!==Et(e)}(a)&&S?st(k,S):xt:st(k,v===ve.LIMBO?E:x)),(function(e,n,o){ke("LOAD_FILE",e,{query:t}).then(n).catch(o)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,o=e.success,a=e.failure,r=void 0===a?function(){}:a,i={error:ot("error",0,"Item not found"),file:null};if(n.archived)return r(i);ke("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){ke("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return r(i);o(e)}))}))},COMPLETE_LOAD_ITEM:function(o){var a=o.item,r=o.data,i=r.success,s=r.source,l=t("GET_ITEM_INSERT_LOCATION");if(H(l)&&s&&Ct(n,l),e("DID_LOAD_ITEM",{id:a.id,error:null,serverFileReference:a.origin===ve.INPUT?null:s}),i(fe(a)),a.origin!==ve.LOCAL)return a.origin===ve.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:a.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:a.id,value:a.serverId||s})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:a.id}));e("DID_LOAD_LOCAL_ITEM",{id:a.id})},RETRY_ITEM_LOAD:At(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:At(n,(function(t,n,o){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(o){e("DID_PREPARE_OUTPUT",{id:t.id,file:o}),n({file:t,output:o})},failure:o},!0)})),REQUEST_ITEM_PROCESSING:At(n,(function(o,a,r){if(o.status===ge.IDLE||o.status===ge.PROCESSING_ERROR)o.status!==ge.PROCESSING_QUEUED&&(o.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:o.id}),e("PROCESS_ITEM",{query:o,success:a,failure:r},!0));else{var i=function(){return e("REQUEST_ITEM_PROCESSING",{query:o,success:a,failure:r})},s=function(){return document.hidden?i():setTimeout(i,32)};o.status===ge.PROCESSING_COMPLETE||o.status===ge.PROCESSING_REVERT_ERROR?o.revert(ft(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(s).catch((function(){})):o.status===ge.PROCESSING&&o.abortProcessing().then(s)}})),PROCESS_ITEM:At(n,(function(o,a,r){var i=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",ge.PROCESSING).length!==i){if(o.status!==ge.PROCESSING){var s=function t(){var o=n.processingQueue.shift();if(o){var a=o.id,r=o.success,i=o.failure,s=Te(n.items,a);s&&!s.archived?e("PROCESS_ITEM",{query:a,success:r,failure:i},!0):t()}};o.onOnce("process-complete",(function(){a(fe(o)),s();var r=n.options.server;if(n.options.instantUpload&&o.origin===ve.LOCAL&&H(r.remove)){var i=function(){};o.origin=ve.LIMBO,n.options.server.remove(o.source,i,i)}t("GET_ITEMS_BY_STATUS",ge.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),o.onOnce("process-error",(function(e){r({error:e,file:fe(o)}),s()}));var l=n.options;o.process(vt(mt(l.server.url,l.server.process,l.name,{chunkTransferId:o.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,a,r){ke("PREPARE_OUTPUT",n,{query:t,item:o}).then((function(t){e("DID_PREPARE_OUTPUT",{id:o.id,file:t}),a(t)})).catch(r)}))}}else n.processingQueue.push({id:o.id,success:a,failure:r})})),RETRY_ITEM_PROCESSING:At(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:At(n,(function(n){Tt(t("GET_BEFORE_REMOVE_FILE"),fe(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:At(n,(function(e){e.release()})),REMOVE_ITEM:At(n,(function(o,a,r,i){var s=function(){var t=o.id;kt(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:o}),Mt(e,n),a(fe(o))},l=n.options.server;o.origin===ve.LOCAL&&l&&H(l.remove)&&!1!==i.remove?(e("DID_START_ITEM_REMOVE",{id:o.id}),l.remove(o.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:o.id,error:ot("error",0,t,null),status:{main:St(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((i.revert&&o.origin!==ve.LOCAL&&null!==o.serverId||n.options.chunkUploads&&o.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&o.revert(ft(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:At(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:At(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:At(n,(function(o){if(n.options.instantUpload){var a=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:o})},r=t("GET_BEFORE_REMOVE_FILE");if(!r)return a(!0);var i=r(fe(o));return null==i?a(!0):"boolean"==typeof i?a(i):void("function"==typeof i.then&&i.then(a))}e("REVERT_ITEM_PROCESSING",{query:o})})),REVERT_ITEM_PROCESSING:At(n,(function(o){o.revert(ft(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||function(e){return!bt(e.file)}(o))&&e("REMOVE_ITEM",{query:o.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,o=Object.keys(n),a=Pt.filter((function(e){return o.includes(e)}));[].concat(le(a),le(Object.keys(n).filter((function(e){return!a.includes(e)})))).forEach((function(t){e("SET_"+J(t,"_").toUpperCase(),{value:n[t]})}))}}},Pt=["server"],Lt=function(e){return document.createElement(e)},Nt=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},It=function(e,t,n,o){var a=(o%360-90)*Math.PI/180;return{x:e+n*Math.cos(a),y:t+n*Math.sin(a)}},Ot=function(e,t,n,o,a){var r=1;return a>o&&a-o<=.5&&(r=0),o>a&&o-a>=.5&&(r=0),function(e,t,n,o,a,r){var i=It(e,t,n,a),s=It(e,t,n,o);return["M",i.x,i.y,"A",n,n,0,r,0,s.x,s.y].join(" ")}(e,t,n,360*Math.min(.9999,o),360*Math.min(.9999,a),r)},Rt=M({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var o=i("svg");t.ref.path=i("path",{"stroke-width":2,"stroke-linecap":"round"}),o.appendChild(t.ref.path),t.ref.svg=o,t.appendChild(o)},write:function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var a=parseInt(o(t.ref.path,"stroke-width"),10),r=.5*t.rect.element.width,i=0,s=0;n.spin?(i=0,s=.5):(i=0,s=n.progress);var l=Ot(r,r,r-a,i,s);o(t.ref.path,"d",l),o(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Ft=M({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+"<span>"+n.label+"</span>",n.isDisabled=!1},write:function(e){var t=e.root,n=e.props,a=n.isDisabled,r=t.query("GET_DISABLED")||0===n.opacity;r&&!a?(n.isDisabled=!0,o(t.element,"disabled","disabled")):!r&&a&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.labelBytes,r=void 0===a?"bytes":a,i=o.labelKilobytes,s=void 0===i?"KB":i,l=o.labelMegabytes,c=void 0===l?"MB":l,d=o.labelGigabytes,u=void 0===d?"GB":d,p=n,h=n*n,m=n*n*n;return(e=Math.round(Math.abs(e)))<p?e+" "+r:e<h?Math.floor(e/p)+" "+s:e<m?Yt(e/h,1,t)+" "+c:Yt(e/m,2,t)+" "+u},Yt=function(e,t,n){return e.toFixed(t).split(".").filter((function(e){return"0"!==e})).join(n)},zt=function(e){var t=e.root,n=e.props;Nt(t.ref.fileSize,jt(t.query("GET_ITEM_SIZE",n.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),Nt(t.ref.fileName,t.query("GET_ITEM_NAME",n.id))},Bt=function(e){var t=e.root,n=e.props;z(t.query("GET_ITEM_SIZE",n.id))?zt({root:t,props:n}):Nt(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Ht=M({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:T({DID_LOAD_ITEM:zt,DID_UPDATE_ITEM_META:zt,DID_THROW_ITEM_LOAD_ERROR:Bt,DID_THROW_ITEM_INVALID:Bt}),didCreateView:function(e){xe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=e.props,a=Lt("span");a.className="filepond--file-info-main",o(a,"aria-hidden","true"),t.appendChild(a),t.ref.fileName=a;var r=Lt("span");r.className="filepond--file-info-sub",t.appendChild(r),t.ref.fileSize=r,Nt(r,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),Nt(a,t.query("GET_ITEM_NAME",n.id))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),Vt=function(e){return Math.round(100*e)},Ut=function(e){var t=e.root,n=e.action,o=null===n.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+Vt(n.progress)+"%";Nt(t.ref.main,o),Nt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Wt=function(e){var t=e.root;Nt(t.ref.main,""),Nt(t.ref.sub,"")},qt=function(e){var t=e.root,n=e.action;Nt(t.ref.main,n.status.main),Nt(t.ref.sub,n.status.sub)},$t=M({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:T({DID_LOAD_ITEM:Wt,DID_REVERT_ITEM_PROCESSING:Wt,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;Nt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),Nt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;Nt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),Nt(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;Nt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),Nt(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action,o=null===n.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+Vt(n.progress)+"%";Nt(t.ref.main,o),Nt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Ut,DID_THROW_ITEM_LOAD_ERROR:qt,DID_THROW_ITEM_INVALID:qt,DID_THROW_ITEM_PROCESSING_ERROR:qt,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:qt,DID_THROW_ITEM_REMOVE_ERROR:qt}),didCreateView:function(e){xe("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=Lt("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var o=Lt("span");o.className="filepond--file-status-sub",t.appendChild(o),t.ref.sub=o,Ut({root:t,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),Gt={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Kt=[];t(Gt,(function(e){Kt.push(e)}));var Jt,Xt=function(e){if("right"===tn(e))return 0;var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},Qt=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},Zt=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},en=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},tn=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},nn={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},on={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Xt},status:{translateX:Xt}},an={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},rn={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Xt},status:{translateX:Xt,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Xt},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:tn},info:{translateX:Xt},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:tn},buttonRemoveItem:{opacity:1},info:{translateX:Xt},status:{opacity:1,translateX:Xt}},DID_LOAD_ITEM:on,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Xt},status:{translateX:Xt}},DID_START_ITEM_PROCESSING:an,DID_REQUEST_ITEM_PROCESSING:an,DID_UPDATE_ITEM_PROCESS_PROGRESS:an,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Xt}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Xt},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:on},sn=M({create:function(e){var t=e.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),ln=T({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemProcessing.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemLoad.label=n.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){var t=e.root,n=e.action;t.ref.buttonAbortItemRemoval.label=n.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),cn=M({create:function(e){var n,o=e.root,a=e.props,r=Object.keys(Gt).reduce((function(e,t){return e[t]=Object.assign({},Gt[t]),e}),{}),i=a.id,s=o.query("GET_ALLOW_REVERT"),l=o.query("GET_ALLOW_REMOVE"),c=o.query("GET_ALLOW_PROCESS"),d=o.query("GET_INSTANT_UPLOAD"),u=o.query("IS_ASYNC"),p=o.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");u?c&&!s?n=function(e){return!/RevertItemProcessing/.test(e)}:!c&&s?n=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:c||s||(n=function(e){return!/Process/.test(e)}):n=function(e){return!/Process/.test(e)};var h=n?Kt.filter(n):Kt.concat();if(d&&s&&(r.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",r.RevertItemProcessing.icon="GET_ICON_REMOVE"),u&&!s){var m=rn.DID_COMPLETE_ITEM_PROCESSING;m.info.translateX=en,m.info.translateY=Zt,m.status.translateY=Zt,m.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(u&&!c&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach((function(e){rn[e].status.translateY=Zt})),rn.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Qt),p&&s){r.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var f=rn.DID_COMPLETE_ITEM_PROCESSING;f.info.translateX=Xt,f.status.translateY=Zt,f.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}l||(r.RemoveItem.disabled=!0),t(r,(function(e,t){var n=o.createChildView(Ft,{label:o.query(t.label),icon:o.query(t.icon),opacity:0});h.includes(e)&&o.appendChildView(n),t.disabled&&(n.element.setAttribute("disabled","disabled"),n.element.setAttribute("hidden","hidden")),n.element.dataset.align=o.query("GET_STYLE_"+t.align),n.element.classList.add(t.className),n.on("click",(function(e){e.stopPropagation(),t.disabled||o.dispatch(t.action,{query:i})})),o.ref["button"+e]=n})),o.ref.processingCompleteIndicator=o.appendChildView(o.createChildView(sn)),o.ref.processingCompleteIndicator.element.dataset.align=o.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),o.ref.info=o.appendChildView(o.createChildView(Ht,{id:i})),o.ref.status=o.appendChildView(o.createChildView($t,{id:i}));var g=o.appendChildView(o.createChildView(Rt,{opacity:0,align:o.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));g.element.classList.add("filepond--load-indicator"),o.ref.loadProgressIndicator=g;var v=o.appendChildView(o.createChildView(Rt,{opacity:0,align:o.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));v.element.classList.add("filepond--process-indicator"),o.ref.processProgressIndicator=v,o.ref.activeStyles=[]},write:function(e){var n=e.root,o=e.actions,a=e.props;ln({root:n,actions:o,props:a});var r=o.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return rn[e.type]}));if(r){n.ref.activeStyles=[];var i=rn[r.type];t(nn,(function(e,o){var a=n.ref[e];t(o,(function(t,o){var r=i[e]&&void 0!==i[e][t]?i[e][t]:o;n.ref.activeStyles.push({control:a,key:t,value:r})}))}))}n.ref.activeStyles.forEach((function(e){var t=e.control,o=e.key,a=e.value;t[o]="function"==typeof a?a(n):a}))},didCreateView:function(e){xe("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),dn=M({create:function(e){var t=e.root,n=e.props;t.ref.fileName=Lt("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(cn,{id:n.id})),t.ref.data=!1},ignoreRect:!0,write:T({DID_LOAD_ITEM:function(e){var t=e.root,n=e.props;Nt(t.ref.fileName,t.query("GET_ITEM_NAME",n.id))}}),didCreateView:function(e){xe("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),un={type:"spring",damping:.6,mass:7},pn=function(e,t,n){var o=M({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),a=e.createChildView(o,t.props);e.ref[t.name]=e.appendChildView(a)},hn=M({name:"panel",read:function(e){var t=e.root;return e.props.heightCurrent=t.ref.bottom.translateY},write:function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&&n.scalable===t.ref.scalable||(t.ref.scalable=!I(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var o=t.ref.top.rect.element,a=t.ref.bottom.rect.element,r=Math.max(o.height+a.height,n.height);t.ref.center.translateY=o.height,t.ref.center.scaleY=(r-o.height-a.height)/100,t.ref.bottom.translateY=r-a.height}},create:function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:un},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:un},styles:["translateY"]}}].forEach((function(e){pn(t,e,n.name)})),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),mn={type:"spring",stiffness:.75,damping:.45,mass:10},fn="spring",gn={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},vn=T({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),_n=T({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,n=e.actions,o=e.props,a=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var r=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return gn[e.type]}));r&&r.type!==o.currentState&&(o.currentState=r.type,t.element.dataset.filepondItemState=gn[o.currentState]||"");var i=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");i?a||(t.height=t.rect.element.width*i):(vn({root:t,actions:n,props:o}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),a&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),bn=M({create:function(e){var t=e.root,n=e.props;if(t.ref.handleClick=function(e){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})},t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(dn,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(hn,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")){t.element.dataset.dragState="idle";t.element.addEventListener("pointerdown",(function(e){if(e.isPrimary){var o=!1,a={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var r=(d=t.query("GET_ACTIVE_ITEMS"),u=d.map((function(e){return e.id})),p=void 0,{setIndex:function(e){p=e},getIndex:function(){return p},getItemIndex:function(e){return u.indexOf(e.id)}});t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:r});var i=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-a.x,y:e.pageY-a.y},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y>16&&!o&&(o=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:r}))},s=function(e){e.isPrimary&&(n.dragOffset={x:e.pageX-a.x,y:e.pageY-a.y},c())},l=function(){c()},c=function(){document.removeEventListener("pointercancel",l),document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",s),t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:r}),o&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0)};document.addEventListener("pointercancel",l),document.addEventListener("pointermove",i),document.addEventListener("pointerup",s)}var d,u,p}))}},write:_n,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:fn,scaleY:fn,translateX:mn,translateY:mn,opacity:{type:"tween",duration:150}}}}),yn=function(e,t){return Math.max(1,Math.floor((e+1)/t))},wn=function(e,t,n){if(n){var o=e.rect.element.width,a=t.length,r=null;if(0===a||n.top<t[0].rect.element.top)return-1;var i=t[0].rect.element,s=i.marginLeft+i.marginRight,l=i.width+s,c=yn(o,l);if(1===c){for(var d=0;d<a;d++){var u=t[d],p=u.rect.outer.top+.5*u.rect.element.height;if(n.top<p)return d}return a}for(var h=i.marginTop+i.marginBottom,m=i.height+h,f=0;f<a;f++){var g=f%c*l,v=Math.floor(f/c)*m,_=v-i.marginTop,b=g+l,y=v+m+i.marginBottom;if(n.top<y&&n.top>_){if(n.left<b)return f;r=f!==a-1?f:null}}return null!==r?r:a}},kn={height:0,width:0,get getHeight(){return this.height},set setHeight(e){0!==this.height&&0!==e||(this.height=e)},get getWidth(){return this.width},set setWidth(e){0!==this.width&&0!==e||(this.width=e)},setDimensions:function(e,t){0!==this.height&&0!==e||(this.height=e),0!==this.width&&0!==t||(this.width=t)}},xn=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&En(e,t,n,o,a),e.scaleX=1,e.scaleY=1,e.opacity=1))},En=function(e,t,n,o,a){e.interactionMethod===oe?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===ee?(e.translateX=null,e.translateX=t-20*o,e.translateY=null,e.translateY=n-10*a,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===te?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Z&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Sn=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},Mn=T({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,o=n.id,a=n.index,r=n.interactionMethod;t.ref.addIndex=a;var i=Date.now(),s=i,l=1;if(r!==oe){l=0;var c=t.query("GET_ITEM_INSERT_INTERVAL"),d=i-t.ref.lastItemSpanwDate;s=d<c?i+(c-d):i}t.ref.lastItemSpanwDate=s,t.appendChildView(t.createChildView(bn,{spawnDate:s,id:o,opacity:l,interactionMethod:r}),a)},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action.id,o=t.childViews.find((function(e){return e.id===n}));o&&(o.scaleX=.9,o.scaleY=.9,o.opacity=0,o.markedForRemoval=!0)},DID_DRAG_ITEM:function(e){var t,n=e.root,o=e.action,a=o.id,r=o.dragState,i=n.query("GET_ITEM",{id:a}),s=n.childViews.find((function(e){return e.id===a})),l=n.childViews.length,c=r.getItemIndex(i);if(s){var d={x:s.dragOrigin.x+s.dragOffset.x+s.dragCenter.x,y:s.dragOrigin.y+s.dragOffset.y+s.dragCenter.y},u=Sn(s),p=(t=s).rect.element.width+.5*t.rect.element.marginLeft+.5*t.rect.element.marginRight,h=Math.floor(n.rect.outer.width/p);h>l&&(h=l);var m=Math.floor(l/h+1);kn.setHeight=u*m,kn.setWidth=p*h;var f={y:Math.floor(d.y/u),x:Math.floor(d.x/p),getGridIndex:function(){return d.y>kn.getHeight||d.y<0||d.x>kn.getWidth||d.x<0?c:this.y*h+this.x},getColIndex:function(){for(var e=n.query("GET_ACTIVE_ITEMS"),t=n.childViews.filter((function(e){return e.rect.element.height})),o=e.map((function(e){return t.find((function(t){return t.id===e.id}))})),a=o.findIndex((function(e){return e===s})),r=Sn(s),i=o.length,l=i,c=0,u=0,p=0;p<i;p++)if(c=(u=c)+Sn(o[p]),d.y<c){if(a>p){if(d.y<u+r){l=p;break}continue}l=p;break}return l}},g=h>1?f.getGridIndex():f.getColIndex();n.dispatch("MOVE_ITEM",{query:s,index:g});var v=r.getIndex();if(void 0===v||v!==g){if(r.setIndex(g),void 0===v)return;n.dispatch("DID_REORDER_ITEMS",{items:n.query("GET_ACTIVE_ITEMS"),origin:c,target:g})}}}}),Tn=M({create:function(e){var t=e.root;o(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,o=e.actions,a=e.shouldOptimize;Mn({root:t,props:n,actions:o});var r=n.dragCoordinates,i=t.rect.element.width,s=t.childViews.filter((function(e){return e.rect.element.height})),l=t.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),c=r?wn(t,l,r):null,d=t.ref.addIndex||null;t.ref.addIndex=null;var u=0,p=0,h=0;if(0!==l.length){var m=l[0].rect.element,f=m.marginTop+m.marginBottom,g=m.marginLeft+m.marginRight,v=m.width+g,_=m.height+f,b=yn(i,v);if(1===b){var y=0,w=0;l.forEach((function(e,t){if(c){var n=t-c;w=-2===n?.25*-f:-1===n?.75*-f:0===n?.75*f:1===n?.25*f:0}a&&(e.translateX=null,e.translateY=null),e.markedForRemoval||xn(e,0,y+w);var o=(e.rect.element.height+f)*(e.markedForRemoval?e.opacity:1);y+=o}))}else{var k=0,x=0;l.forEach((function(e,t){t===c&&(u=1),t===d&&(h+=1),e.markedForRemoval&&e.opacity<.5&&(p-=1);var n=t+h+u+p,o=n%b,r=Math.floor(n/b),i=o*v,s=r*_,l=Math.sign(i-k),m=Math.sign(s-x);k=i,x=s,e.markedForRemoval||(a&&(e.translateX=null,e.translateY=null),xn(e,i,s,l,m))}))}}},tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},mixins:{apis:["dragCoordinates"]}}),Cn=T({DID_DRAG:function(e){var t=e.root,n=e.props,o=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:o.position.scopeLeft-t.ref.list.rect.element.left,top:o.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),An=M({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Tn)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props,o=e.actions;if(Cn({root:t,props:n,actions:o}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var a=Math.round(n.overflow);a!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=a)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Dn=function(e,t,n){n?o(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},Pn=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Dn(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},Ln=function(e){var t=e.root,n=e.action;Dn(t.element,"multiple",n.value)},Nn=function(e){var t=e.root,n=e.action;Dn(t.element,"webkitdirectory",n.value)},In=function(e){var t=e.root,n=t.query("GET_DISABLED"),o=t.query("GET_ALLOW_BROWSE"),a=n||!o;Dn(t.element,"disabled",a)},On=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&Dn(t.element,"required",!0):Dn(t.element,"required",!1)},Rn=function(e){var t=e.root,n=e.action;Dn(t.element,"capture",!!n.value,!0===n.value?"":n.value)},Fn=function(e){var t=e.root,n=t.element;if(t.query("GET_TOTAL_ITEMS")>0){Dn(n,"required",!1),Dn(n,"name",!1);for(var o=t.query("GET_ACTIVE_ITEMS"),a=!1,r=0;r<o.length;r++)o[r].status===ge.LOAD_ERROR&&(a=!0);t.element.setCustomValidity(a?t.query("GET_LABEL_INVALID_FIELD"):"")}else Dn(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Dn(n,"required",!0)},jn=M({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,o(t.element,"name",t.query("GET_NAME")),o(t.element,"aria-controls","filepond--assistant-"+n.id),o(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Pn({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Ln({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),Nn({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),In({root:t}),On({root:t,action:{value:t.query("GET_REQUIRED")}}),Rn({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var o=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(o),function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=Lt("form"),n=e.parentNode,o=e.nextSibling;t.appendChild(e),t.reset(),o?n.insertBefore(e,o):n.appendChild(e)}}}(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:T({DID_LOAD_ITEM:Fn,DID_REMOVE_ITEM:Fn,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:In,DID_SET_ALLOW_BROWSE:In,DID_SET_ALLOW_DIRECTORIES_ONLY:Nn,DID_SET_ALLOW_MULTIPLE:Ln,DID_SET_ACCEPTED_FILE_TYPES:Pn,DID_SET_CAPTURE_METHOD:Rn,DID_SET_REQUIRED:On})}),Yn=13,zn=32,Bn=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&o(n,"tabindex","0"),t},Hn=M({name:"drop-label",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,a=Lt("label");o(a,"for","filepond--browser-"+n.id),o(a,"id","filepond--drop-label-"+n.id),t.ref.handleKeyDown=function(e){(e.keyCode===Yn||e.keyCode===zn)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===a||a.contains(e.target)||t.ref.label.click()},a.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),Bn(a,n.caption),t.appendChild(a),t.ref.label=a},destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:T({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;Bn(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),Vn=M({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),Un=T({DID_DRAG:function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):function(e){var t=e.root,n=.5*t.rect.element.width,o=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(Vn,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:o}))}({root:t})},DID_DROP:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),Wn=M({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(e){var t=e.root,n=e.props,o=e.actions;Un({root:t,props:n,actions:o});var a=t.ref.blob;0===o.length&&a&&0===a.opacity&&(t.removeChildView(a),t.ref.blob=null)}}),qn=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(e){return!1}return!0},$n=function(e,t){return e.ref.fields[t]},Gn=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Kn=function(e){var t=e.root;return Gn(t)},Jn=T({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,o=!(t.query("GET_ITEM",n.id).origin===ve.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),a=Lt("input");a.type=o?"file":"hidden",a.name=t.query("GET_NAME"),t.ref.fields[n.id]=a,Gn(t)},DID_LOAD_ITEM:function(e){var t=e.root,n=e.action,o=$n(t,n.id);if(o&&(null!==n.serverFileReference&&(o.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var a=t.query("GET_ITEM",n.id);qn(o,[a.file])}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,o=$n(t,n.id);o&&(o.parentNode&&o.parentNode.removeChild(o),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,o=$n(t,n.id);o&&(null===n.value?o.removeAttribute("value"):"file"!=o.type&&(o.value=n.value),Gn(t))},DID_PREPARE_OUTPUT:function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=$n(t,n.id);e&&qn(e,[n.file])}),0)},DID_REORDER_ITEMS:Kn,DID_SORT_ITEMS:Kn}),Xn=M({tag:"fieldset",name:"data",create:function(e){var t=e.root;t.ref.fields={};var n=document.createElement("legend");n.textContent="Files",t.element.appendChild(n)},write:Jn,ignoreRect:!0}),Qn=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Zn=["css","csv","html","txt"],eo={zip:"zip|compressed",epub:"application/epub+zip"},to=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Qn.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Zn.includes(e)?"text/"+e:eo[e]||""},no=function(e){return new Promise((function(t,n){var o=ho(e);if(o.length&&!oo(e))return t(o);ao(e).then(t)}))},oo=function(e){return!!e.files&&e.files.length>0},ao=function(e){return new Promise((function(t,n){var o=(e.items?Array.from(e.items):[]).filter((function(e){return ro(e)})).map((function(e){return io(e)}));o.length?Promise.all(o).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},ro=function(e){if(uo(e)){var t=po(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},io=function(e){return new Promise((function(t,n){co(e)?so(po(e)).then(t).catch(n):t([e.getAsFile()])}))},so=function(e){return new Promise((function(t,n){var o=[],a=0,r=0,i=function(){0===r&&0===a&&t(o)};!function e(t){a++;var s=t.createReader();!function t(){s.readEntries((function(n){if(0===n.length)return a--,void i();n.forEach((function(t){t.isDirectory?e(t):(r++,t.file((function(e){var n=lo(e);t.fullPath&&(n._relativePath=t.fullPath),o.push(n),r--,i()})))})),t()}),n)}()}(e)}))},lo=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,o=to(Ve(e.name));return o.length?((e=e.slice(0,e.size,o)).name=n,e.lastModifiedDate=t,e):e},co=function(e){return uo(e)&&(po(e)||{}).isDirectory},uo=function(e){return"webkitGetAsEntry"in e},po=function(e){return e.webkitGetAsEntry()},ho=function(e){var t=[];try{if((t=fo(e)).length)return t;t=mo(e)}catch(e){}return t},mo=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},fo=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},go=[],vo=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},_o=function(e){var t=go.find((function(t){return t.element===e}));if(t)return t;var n=bo(e);return go.push(n),n},bo=function(e){var n=[],o={dragenter:xo,dragover:Eo,dragleave:Mo,drop:So},a={};t(o,(function(t,o){a[t]=o(e,n),e.addEventListener(t,a[t],!1)}));var r={element:e,addListener:function(i){return n.push(i),function(){n.splice(n.indexOf(i),1),0===n.length&&(go.splice(go.indexOf(r),1),t(o,(function(t){e.removeEventListener(t,a[t],!1)})))}}};return r},yo=function(e,t){var n,o=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)}("getRootNode"in(n=t)?n.getRootNode():document,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return o===t||t.contains(o)},wo=null,ko=function(e,t){try{e.dropEffect=t}catch(e){}},xo=function(e,t){return function(e){e.preventDefault(),wo=e.target,t.forEach((function(t){var n=t.element,o=t.onenter;yo(e,n)&&(t.state="enter",o(vo(e)))}))}},Eo=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;no(n).then((function(o){var a=!1;t.some((function(t){var r=t.filterElement,i=t.element,s=t.onenter,l=t.onexit,c=t.ondrag,d=t.allowdrop;ko(n,"copy");var u=d(o);if(u)if(yo(e,i)){if(a=!0,null===t.state)return t.state="enter",void s(vo(e));if(t.state="over",r&&!u)return void ko(n,"none");c(vo(e))}else r&&!a&&ko(n,"none"),t.state&&(t.state=null,l(vo(e)));else ko(n,"none")}))}))}},So=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;no(n).then((function(n){t.forEach((function(t){var o=t.filterElement,a=t.element,r=t.ondrop,i=t.onexit,s=t.allowdrop;if(t.state=null,!o||yo(e,a))return s(n)?void r(vo(e),n):i(vo(e))}))}))}},Mo=function(e,t){return function(e){wo===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(vo(e))}))}},To=function(e,t,n){e.classList.add("filepond--hopper");var o=n.catchesDropsOnPage,a=n.requiresDropOnElement,r=n.filterItems,i=void 0===r?function(e){return e}:r,s=function(e,t,n){var o=_o(t),a={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return a.destroy=o.addListener(a),a}(e,o?document.documentElement:e,a),l="",c="";s.allowdrop=function(e){return t(i(e))},s.ondrop=function(e,n){var o=i(n);t(o)?(c="drag-drop",d.onload(o,e)):d.ondragend(e)},s.ondrag=function(e){d.ondrag(e)},s.onenter=function(e){c="drag-over",d.ondragstart(e)},s.onexit=function(e){c="drag-exit",d.ondragend(e)};var d={updateHopperState:function(){l!==c&&(e.dataset.hopperState=c,l=c)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return d},Co=!1,Ao=[],Do=function(e){var t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||"true"===t.getAttribute("contenteditable"))){for(var n=!1,o=t;o!==document.body;){if(o.classList.contains("filepond--root")){n=!0;break}o=o.parentNode}if(!n)return}no(e.clipboardData).then((function(e){e.length&&Ao.forEach((function(t){return t(e)}))}))},Po=function(){var e=function(e){t.onload(e)},t={destroy:function(){var t;t=e,ue(Ao,Ao.indexOf(t)),0===Ao.length&&(document.removeEventListener("paste",Do),Co=!1)},onload:function(){}};return function(e){Ao.includes(e)||(Ao.push(e),Co||(Co=!0,document.addEventListener("paste",Do)))}(e),t},Lo=null,No=null,Io=[],Oo=function(e,t){e.element.textContent=t},Ro=function(e,t,n){var o=e.query("GET_TOTAL_ITEMS");Oo(e,n+" "+t+", "+o+" "+(1===o?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(No),No=setTimeout((function(){!function(e){e.element.textContent=""}(e)}),1500)},Fo=function(e){return e.element.parentNode.contains(document.activeElement)},jo=function(e){var t=e.root,n=e.action,o=t.query("GET_ITEM",n.id).filename,a=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Oo(t,o+" "+a)},Yo=function(e){var t=e.root,n=e.action,o=t.query("GET_ITEM",n.id).filename;Oo(t,n.status.main+" "+o+" "+n.status.sub)},zo=M({create:function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,o(t.element,"role","alert"),o(t.element,"aria-live","polite"),o(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:T({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(Fo(t)){t.element.textContent="";var o=t.query("GET_ITEM",n.id);Io.push(o.filename),clearTimeout(Lo),Lo=setTimeout((function(){Ro(t,Io.join(", "),t.query("GET_LABEL_FILE_ADDED")),Io.length=0}),750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;if(Fo(t)){var o=n.item;Ro(t,o.filename,t.query("GET_LABEL_FILE_REMOVED"))}},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=e.action,o=t.query("GET_ITEM",n.id).filename,a=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Oo(t,o+" "+a)},DID_ABORT_ITEM_PROCESSING:jo,DID_REVERT_ITEM_PROCESSING:jo,DID_THROW_ITEM_REMOVE_ERROR:Yo,DID_THROW_ITEM_LOAD_ERROR:Yo,DID_THROW_ITEM_INVALID:Yo,DID_THROW_ITEM_PROCESSING_ERROR:Yo}),tag:"span",name:"assistant"}),Bo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Ho=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Date.now(),a=null;return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];clearTimeout(a);var l=Date.now()-o,c=function(){o=Date.now(),e.apply(void 0,i)};l<t?n||(a=setTimeout(c,t-l)):c()}},Vo=function(e){return e.preventDefault()},Uo=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},Wo=function(e){var t=0,n=0,o=e.ref.list,a=o.childViews[0],r=a.childViews.filter((function(e){return e.rect.element.height})),i=e.query("GET_ACTIVE_ITEMS").map((function(e){return r.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===i.length)return{visual:t,bounds:n};var s=a.rect.element.width,l=wn(a,i,o.dragCoordinates),c=i[0].rect.element,d=c.marginTop+c.marginBottom,u=c.marginLeft+c.marginRight,p=c.width+u,h=c.height+d,m=void 0!==l&&l>=0?1:0,f=i.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,g=i.length+m+f,v=yn(s,p);return 1===v?i.forEach((function(e){var o=e.rect.element.height+d;n+=o,t+=o*e.opacity})):(n=Math.ceil(g/v)*h,t=n),{visual:t,bounds:n}},qo=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},$o=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),o=e.query("GET_ALLOW_MULTIPLE"),a=e.query("GET_TOTAL_ITEMS"),r=e.query("GET_MAX_FILES"),i=t.length;return!o&&i>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:ot("warning",0,"Max files")}),!0):!(!o&&n||!(z(r=o?r:1)&&a+i>r)||(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:ot("warning",0,"Max files")}),0))},Go=function(e,t,n){var o=e.childViews[0];return wn(o,t,{left:n.scopeLeft-o.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Ko=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),o=t&&!n;if(o&&!e.ref.hopper){var a=To(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every((function(t){return xe("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!bt(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});a.onload=function(t,n){var o=e.ref.list.childViews[0].childViews.filter((function(e){return e.rect.element.height})),a=e.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));ke("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if($o(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:Go(e.ref.list,a,n),interactionMethod:ee})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},a.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},a.ondrag=Ho((function(t){e.dispatch("DID_DRAG",{position:t})})),a.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=a,e.ref.drip=e.appendChildView(e.createChildView(Wn))}else!o&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Jo=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),o=e.query("GET_DISABLED"),a=n&&!o;a&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(jn,Object.assign({},t,{onload:function(t){ke("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if($o(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:te})}))}})),0):!a&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Xo=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),o=t&&!n;o&&!e.ref.paster?(e.ref.paster=Po(),e.ref.paster.onload=function(t){ke("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if($o(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ne})}))}):!o&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},Qo=T({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;Jo(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;Ko(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Xo(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Ko(t),Xo(t),Jo(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),Zo=M({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var t=e.root,n=e.props,o=t.query("GET_ID");o&&(t.element.id=o);var a=t.query("GET_CLASS_NAME");a&&a.split(" ").filter((function(e){return e.length})).forEach((function(e){t.element.classList.add(e)})),t.ref.label=t.appendChildView(t.createChildView(Hn,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(An,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(hn,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(zo,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(Xn,Object.assign({},n))),t.ref.measure=Lt("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter((function(e){return!P(e.value)})).map((function(e){var n=e.name,o=e.value;t.element.dataset[n]=o})),t.ref.widthPrevious=null,t.ref.widthUpdated=Ho((function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")}),250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var r=window.matchMedia("(pointer: fine) and (hover: hover)").matches,i="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&i&&!r&&(t.element.addEventListener("touchmove",Vo,{passive:!1}),t.element.addEventListener("gesturestart",Vo));var s=t.query("GET_CREDITS");if(2===s.length){var l=document.createElement("a");l.className="filepond--credits",l.href=s[0],l.tabIndex=-1,l.target="_blank",l.rel="noopener noreferrer nofollow",l.textContent=s[1],t.element.appendChild(l),t.ref.credits=l}},write:function(e){var t=e.root,n=e.props,o=e.actions;if(Qo({root:t,props:n,actions:o}),o.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!P(e.data.value)})).map((function(e){var n=e.type,o=e.data,a=Bo(n.substring(8).toLowerCase(),"_");t.element.dataset[a]=o.value,t.invalidateLayout()})),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var a=t.ref.bounds;a||(a=t.ref.bounds=qo(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var r=t.ref,i=r.hopper,s=r.label,l=r.list,c=r.panel;i&&i.updateHopperState();var d=t.query("GET_PANEL_ASPECT_RATIO"),u=t.query("GET_ALLOW_MULTIPLE"),p=t.query("GET_TOTAL_ITEMS"),h=p===(u?t.query("GET_MAX_FILES")||1e6:1),m=o.find((function(e){return"DID_ADD_ITEM"===e.type}));if(h&&m){var f=m.data.interactionMethod;s.opacity=0,u?s.translateY=-40:f===Z?s.translateX=40:s.translateY=f===te?40:30}else h||(s.opacity=1,s.translateX=0,s.translateY=0);var g=Uo(t),v=Wo(t),_=s.rect.element.height,b=!u||h?0:_,y=h?l.rect.element.marginTop:0,w=0===p?0:l.rect.element.marginBottom,k=b+y+v.visual+w,x=b+y+v.bounds+w;if(l.translateY=Math.max(0,b-l.rect.element.marginTop)-g.top,d){var E=t.rect.element.width,S=E*d;d!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=d,t.ref.updateHistory=[]);var M=t.ref.updateHistory;M.push(E);if(M.length>4)for(var T=M.length,C=T-10,A=0,D=T;D>=C;D--)if(M[D]===M[D-2]&&A++,A>=2)return;c.scalable=!1,c.height=S;var L=S-b-(w-g.bottom)-(h?y:0);v.visual>L?l.overflow=L:l.overflow=null,t.height=S}else if(a.fixedHeight){c.scalable=!1;var N=a.fixedHeight-b-(w-g.bottom)-(h?y:0);v.visual>N?l.overflow=N:l.overflow=null}else if(a.cappedHeight){var I=k>=a.cappedHeight,O=Math.min(a.cappedHeight,k);c.scalable=!0,c.height=I?O:O-g.top-g.bottom;var R=O-b-(w-g.bottom)-(h?y:0);k>a.cappedHeight&&v.visual>R?l.overflow=R:l.overflow=null,t.height=Math.min(a.cappedHeight,x-g.top-g.bottom)}else{var F=p>0?g.top+g.bottom:0;c.scalable=!0,c.height=Math.max(_,k-F),t.height=Math.max(_,x-F)}t.ref.credits&&c.heightCurrent&&(t.ref.credits.style.transform="translateY("+c.heightCurrent+"px)")}},destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Vo),t.element.removeEventListener("gesturestart",Vo)},mixins:{styles:["height"]}}),ea=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=null,a=Se(),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=Object.assign({},e),a=[],r=[],i=function(e,t,n){!n||document.hidden?(d[e]&&d[e](t),a.push({type:e,data:t})):r.push({type:e,data:t})},s=function(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return c[e]?(t=c)[e].apply(t,o):null},l={getState:function(){return Object.assign({},o)},processActionQueue:function(){var e=[].concat(a);return a.length=0,e},processDispatchQueue:function(){var e=[].concat(r);r.length=0,e.forEach((function(e){var t=e.type,n=e.data;i(t,n)}))},dispatch:i,query:s},c={};t.forEach((function(e){c=Object.assign({},e(o),{},c)}));var d={};return n.forEach((function(e){d=Object.assign({},e(i,s,o),{},d)})),l}({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:K(a)},[Ye,Q(a)],[Dt,X(a)]);r.dispatch("SET_OPTIONS",{options:e});var i=function(){document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);var s=null,l=!1,c=!1,d=null,u=null,p=function(){l||(l=!0),clearTimeout(s),s=setTimeout((function(){l=!1,d=null,u=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",p);var h=Zo(r,{id:ae()}),m=!1,g=!1,v={_read:function(){l&&(u=window.innerWidth,d||(d=u),c||u===d||(r.dispatch("DID_START_RESIZE"),c=!0)),g&&m&&(m=null===h.element.offsetParent),m||(h._read(),g=h.rect.element.hidden)},_write:function(e){var t,n=r.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));m&&!n.length||(w(n),m=h._write(e,n,c),(t=r.query("GET_ITEMS")).forEach((function(e,n){e.released&&ue(t,n)})),m&&r.processDispatchQueue())}},_=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var o=t.item?t.item:r.query("GET_ITEM",t.id);n.file=o?fe(o):null}return t.items&&(n.items=t.items.map(fe)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},b={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},y=function(e){var t=Object.assign({pond:T},e);delete t.type,h.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var o=["type","error","file"];Object.keys(e).filter((function(e){return!o.includes(e)})).forEach((function(t){return n.push(e[t])})),T.fire.apply(T,[e.type].concat(n));var a=r.query("GET_ON"+e.type.toUpperCase());a&&a.apply(void 0,n)},w=function(e){e.length&&e.filter((function(e){return b[e.type]})).forEach((function(e){var t=b[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?y(t(e.data)):setTimeout((function(){y(t(e.data))}),0)}))}))},k=function(e){return new Promise((function(t,n){r.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},x=function(e,t){return"object"!=typeof e||(n=e).file&&n.id||t||(t=e,e=void 0),r.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===r.query("GET_ACTIVE_ITEM",e);var n},E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){var o=[],a={};if(D(t[0]))o.push.apply(o,t[0]),Object.assign(a,t[1]||{});else{var i=t[t.length-1];"object"!=typeof i||i instanceof Blob||Object.assign(a,t.pop()),o.push.apply(o,t)}r.dispatch("ADD_ITEMS",{items:o,index:a.index,interactionMethod:Z,success:e,failure:n})}))},S=function(){return r.query("GET_ACTIVE_ITEMS")},M=function(e){return new Promise((function(t,n){r.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},T=Object.assign({},pe(),{},v,{},function(e,n){var o={};return t(n,(function(t){o[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+J(t,"_").toUpperCase(),{value:n})}}})),o}(r,a),{setOptions:function(e){return r.dispatch("SET_OPTIONS",{options:e})},addFile:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){E([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(o)}))},addFiles:E,getFile:function(e){return r.query("GET_ACTIVE_ITEM",e)},processFile:M,prepareFile:k,removeFile:x,moveFile:function(e,t){return r.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:S,processFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Array.isArray(t[0])?t[0]:t;if(!o.length){var a=S().filter((function(e){return!(e.status===ge.IDLE&&e.origin===ve.LOCAL)&&e.status!==ge.PROCESSING&&e.status!==ge.PROCESSING_COMPLETE&&e.status!==ge.PROCESSING_REVERT_ERROR}));return Promise.all(a.map(M))}return Promise.all(o.map(M))},removeFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,a=Array.isArray(t[0])?t[0]:t;"object"==typeof a[a.length-1]?o=a.pop():Array.isArray(t[0])&&(o=t[1]);var r=S();return a.length?a.map((function(e){return f(e)?r[e]?r[e].id:null:e})).filter((function(e){return e})).map((function(e){return x(e,o)})):Promise.all(r.map((function(e){return x(e,o)})))},prepareFiles:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Array.isArray(t[0])?t[0]:t,a=o.length?o:S();return Promise.all(a.map(k))},sort:function(e){return r.dispatch("SORT",{compare:e})},browse:function(){var e=h.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){T.fire("destroy",h.element),r.dispatch("ABORT_ALL"),h._destroy(),window.removeEventListener("resize",p),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:function(e){return C(h.element,e)},insertAfter:function(e){return A(h.element,e)},appendTo:function(e){return e.appendChild(h.element)},replaceElement:function(e){C(h.element,e),e.parentNode.removeChild(e),o=e},restoreElement:function(){o&&(A(o,h.element),h.element.parentNode.removeChild(h.element),o=null)},isAttachedTo:function(e){return h.element===e||o===e},element:{get:function(){return h.element}},status:{get:function(){return r.query("GET_STATUS")}}});return r.dispatch("DID_INIT"),n(T)},ta=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return t(Se(),(function(e,t){n[e]=t[0]})),ea(Object.assign({},n,{},e))},na=function e(n,o){t(o,(function(o,a){t(n,(function(e,t){var r,i=new RegExp(o);if(i.test(e)&&(delete n[e],!1!==a))if(R(a))n[a]=t;else{var s=a.group;W(a)&&!n[s]&&(n[s]={}),n[s][(r=e.replace(i,""),r.charAt(0).toLowerCase()+r.slice(1))]=t}})),a.mapping&&e(n[a.group],a.mapping)}))},oa=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=[];t(e.attributes,(function(t){a.push(e.attributes[t])}));var r=a.filter((function(e){return e.name})).reduce((function(t,n){var a,r=o(e,n.name);return t[(a=n.name,Bo(a.replace(/^data-/,"")))]=r===n.name||r,t}),{});return na(r,n),r},aa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};xe("SET_ATTRIBUTE_TO_OPTION_MAP",n);var o=Object.assign({},t),a=oa("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(a).forEach((function(e){W(a[e])?(W(o[e])||(o[e]={}),Object.assign(o[e],a[e])):o[e]=a[e]})),o.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var r=ta(o);return e.files&&Array.from(e.files).forEach((function(e){r.addFile(e)})),r.replaceElement(e),r},ra=function(){return(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?aa.apply(void 0,arguments):ta.apply(void 0,arguments)},ia=["fire","_read","_write"],sa=function(e){var t={};return he(e,t,ia),t},la=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},ca=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),o=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var a=ae();o.onmessage=function(e){e.data.id===a&&t(e.data.message)},o.postMessage({id:a,message:e},n)},terminate:function(){o.terminate(),URL.revokeObjectURL(n)}}},da=function(e){return new Promise((function(t,n){var o=new Image;o.onload=function(){t(o)},o.onerror=function(e){n(e)},o.src=e}))},ua=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},pa=function(e){return ua(e,e.name)},ha=[],ma=function(e){if(!ha.includes(e)){ha.push(e);var n=e({addFilter:Ee,utils:{Type:ye,forin:t,isString:R,isFile:bt,toNaturalFileSize:jt,replaceInString:la,getExtensionFromFilename:Ve,getFilenameWithoutExtension:_t,guesstimateMimeType:to,getFileFromBlob:qe,getFilenameFromURL:He,createRoute:T,createWorker:ca,createView:M,createItemAPI:fe,loadImage:da,copyFile:pa,renameFile:ua,createBlob:$e,applyFilterChain:ke,text:Nt,getNumericAspectRatioFromString:Ce},views:{fileActionButton:Ft}});o=n.options,Object.assign(Me,o)}var o},fa=(Jt=d()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return Jt}),ga={apps:[]},va=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=va,e.destroy=va,e.parse=va,e.find=va,e.registerPlugin=va,e.getOptions=va,e.setOptions=va,fa()){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,o="__framePainter";if(window[o])return window[o].readers.push(e),void window[o].writers.push(t);window[o]={readers:[e],writers:[t]};var a=window[o],r=1e3/n,i=null,s=null,l=null,c=null,d=function(){document.hidden?(l=function(){return window.setTimeout((function(){return u(performance.now())}),r)},c=function(){return window.clearTimeout(s)}):(l=function(){return window.requestAnimationFrame(u)},c=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){c&&c(),d(),u(performance.now())}));var u=function e(t){s=l(e),i||(i=t);var n=t-i;n<=r||(i=t-n%r,a.readers.forEach((function(e){return e()})),a.writers.forEach((function(e){return e(t)})))};d(),u(performance.now())}((function(){ga.apps.forEach((function(e){return e._read()}))}),(function(e){ga.apps.forEach((function(t){return t._write(e)}))}));var _a=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:fa,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return _a()}),0):document.addEventListener("DOMContentLoaded",_a);var ba=function(){return t(Se(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},De),e.FileOrigin=Object.assign({},ve),e.FileStatus=Object.assign({},ge),e.OptionTypes={},ba(),e.create=function(){var t=ra.apply(void 0,arguments);return t.on("destroy",e.destroy),ga.apps.push(t),sa(t)},e.destroy=function(e){var t=ga.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(ga.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll(".filepond")).filter((function(e){return!ga.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=ga.apps.find((function(t){return t.isAttachedTo(e)}));return t?sa(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(ma),ba()},e.getOptions=function(){var e={};return t(Se(),(function(t,n){e[t]=n[0]})),e},e.setOptions=function(n){return W(n)&&(ga.apps.forEach((function(e){e.setOptions(n)})),function(e){t(e,(function(e,t){Me[e]&&(Me[e][0]=G(t,Me[e][0],Me[e][1]))}))}(n)),e.getOptions()}}e.supported=fa,Object.defineProperty(e,"__esModule",{value:!0})}(t)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var r=Object.create(null);a.r(r);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,a.d(r,i),r},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.nc=void 0,(()=>{"use strict";var e={};a.r(e),a.d(e,{hasBrowserEnv:()=>Se,hasStandardBrowserEnv:()=>Te,hasStandardBrowserWebWorkerEnv:()=>Ce,navigator:()=>Me,origin:()=>Ae});var t=a(6540),n=a.t(t,2),o=a(961),r=a(3029),i=a(2901),s=a(6822),l=a(3954),c=a(5501);function d(e,t,n,o,a,r,i){try{var s=e[r](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,a)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var r=e.apply(t,n);function i(e){d(r,o,a,i,s,"next",e)}function s(e){d(r,o,a,i,s,"throw",e)}i(void 0)}))}}var p=a(4467),h=a(4756),m=a.n(h),f=t.createContext();function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=a(5093),_=a.n(v);function b(e,t){return function(){return e.apply(t,arguments)}}const{toString:y}=Object.prototype,{getPrototypeOf:w}=Object,k=(x=Object.create(null),e=>{const t=y.call(e);return x[t]||(x[t]=t.slice(8,-1).toLowerCase())});var x;const E=e=>(e=e.toLowerCase(),t=>k(t)===e),S=e=>t=>typeof t===e,{isArray:M}=Array,T=S("undefined"),C=E("ArrayBuffer"),A=S("string"),D=S("function"),P=S("number"),L=e=>null!==e&&"object"==typeof e,N=e=>{if("object"!==k(e))return!1;const t=w(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},I=E("Date"),O=E("File"),R=E("Blob"),F=E("FileList"),j=E("URLSearchParams"),[Y,z,B,H]=["ReadableStream","Request","Response","Headers"].map(E);function V(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,a;if("object"!=typeof e&&(e=[e]),M(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let i;for(o=0;o<r;o++)i=a[o],t.call(null,e[i],i,e)}}function U(e,t){t=t.toLowerCase();const n=Object.keys(e);let o,a=n.length;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,q=e=>!T(e)&&e!==W,$=(G="undefined"!=typeof Uint8Array&&w(Uint8Array),e=>G&&e instanceof G);var G;const K=E("HTMLFormElement"),J=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=E("RegExp"),Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};V(n,((n,a)=>{let r;!1!==(r=t(n,a,e))&&(o[a]=r||n)})),Object.defineProperties(e,o)},Z=E("AsyncFunction"),ee=(te="function"==typeof setImmediate,ne=D(W.postMessage),te?setImmediate:ne?(oe=`axios@${Math.random()}`,ae=[],W.addEventListener("message",(({source:e,data:t})=>{e===W&&t===oe&&ae.length&&ae.shift()()}),!1),e=>{ae.push(e),W.postMessage(oe,"*")}):e=>setTimeout(e));var te,ne,oe,ae;const re="undefined"!=typeof queueMicrotask?queueMicrotask.bind(W):"undefined"!=typeof process&&process.nextTick||ee,ie={isArray:M,isArrayBuffer:C,isBuffer:function(e){return null!==e&&!T(e)&&null!==e.constructor&&!T(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||D(e.append)&&("formdata"===(t=k(e))||"object"===t&&D(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer),t},isString:A,isNumber:P,isBoolean:e=>!0===e||!1===e,isObject:L,isPlainObject:N,isReadableStream:Y,isRequest:z,isResponse:B,isHeaders:H,isUndefined:T,isDate:I,isFile:O,isBlob:R,isRegExp:X,isFunction:D,isStream:e=>L(e)&&D(e.pipe),isURLSearchParams:j,isTypedArray:$,isFileList:F,forEach:V,merge:function e(){const{caseless:t}=q(this)&&this||{},n={},o=(o,a)=>{const r=t&&U(n,a)||a;N(n[r])&&N(o)?n[r]=e(n[r],o):N(o)?n[r]=e({},o):M(o)?n[r]=o.slice():n[r]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&V(arguments[e],o);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(V(t,((t,o)=>{n&&D(t)?e[o]=b(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let a,r,i;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),r=a.length;r-- >0;)i=a[r],o&&!o(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&w(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:k,kindOfTest:E,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!P(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:K,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:Q,freezeMethods:e=>{Q(e,((t,n)=>{if(D(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];D(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},o=e=>{e.forEach((e=>{n[e]=!0}))};return M(e)?o(e):o(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:W,isContextDefined:q,isSpecCompliantForm:function(e){return!!(e&&D(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,o)=>{if(L(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;const a=M(e)?[]:{};return V(e,((e,t)=>{const r=n(e,o+1);!T(r)&&(a[t]=r)})),t[o]=void 0,a}}return e};return n(e,0)},isAsyncFn:Z,isThenable:e=>e&&(L(e)||D(e))&&D(e.then)&&D(e.catch),setImmediate:ee,asap:re};function se(e,t,n,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}ie.inherits(se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const le=se.prototype,ce={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ce[e]={value:e}})),Object.defineProperties(se,ce),Object.defineProperty(le,"isAxiosError",{value:!0}),se.from=(e,t,n,o,a,r)=>{const i=Object.create(le);return ie.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),se.call(i,e.message,t,n,o,a),i.cause=e,i.name=e.name,r&&Object.assign(i,r),i};const de=se;function ue(e){return ie.isPlainObject(e)||ie.isArray(e)}function pe(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function he(e,t,n){return e?e.concat(t).map((function(e,t){return e=pe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const me=ie.toFlatObject(ie,{},null,(function(e){return/^is[A-Z]/.test(e)})),fe=function(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ie.isUndefined(t[e])}))).metaTokens,a=n.visitor||c,r=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ie.isDate(e))return e.toISOString();if(!s&&ie.isBlob(e))throw new de("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(e)||ie.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(ie.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(ie.isArray(e)&&function(e){return ie.isArray(e)&&!e.some(ue)}(e)||(ie.isFileList(e)||ie.endsWith(n,"[]"))&&(s=ie.toArray(e)))return n=pe(n),s.forEach((function(e,o){!ie.isUndefined(e)&&null!==e&&t.append(!0===i?he([n],o,r):null===i?n:n+"[]",l(e))})),!1;return!!ue(e)||(t.append(he(a,n,r),l(e)),!1)}const d=[],u=Object.assign(me,{defaultVisitor:c,convertValue:l,isVisitable:ue});if(!ie.isObject(e))throw new TypeError("data must be an object");return function e(n,o){if(!ie.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+o.join("."));d.push(n),ie.forEach(n,(function(n,r){!0===(!(ie.isUndefined(n)||null===n)&&a.call(t,n,ie.isString(r)?r.trim():r,o,u))&&e(n,o?o.concat(r):[r])})),d.pop()}}(e),t};function ge(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ve(e,t){this._pairs=[],e&&fe(e,this,t)}const _e=ve.prototype;_e.append=function(e,t){this._pairs.push([e,t])},_e.toString=function(e){const t=e?function(t){return e.call(this,t,ge)}:ge;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const be=ve;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function we(e,t,n){if(!t)return e;const o=n&&n.encode||ye;ie.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let r;if(r=a?a(t,n):ie.isURLSearchParams(t)?t.toString():new be(t,n).toString(o),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}const ke=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ie.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ee={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:be,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Se="undefined"!=typeof window&&"undefined"!=typeof document,Me="object"==typeof navigator&&navigator||void 0,Te=Se&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),Ce="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ae=Se&&window.location.href||"http://localhost",De={...e,...Ee},Pe=function(e){function t(e,n,o,a){let r=e[a++];if("__proto__"===r)return!0;const i=Number.isFinite(+r),s=a>=e.length;return r=!r&&ie.isArray(o)?o.length:r,s?(ie.hasOwnProp(o,r)?o[r]=[o[r],n]:o[r]=n,!i):(o[r]&&ie.isObject(o[r])||(o[r]=[]),t(e,n,o[r],a)&&ie.isArray(o[r])&&(o[r]=function(e){const t={},n=Object.keys(e);let o;const a=n.length;let r;for(o=0;o<a;o++)r=n[o],t[r]=e[r];return t}(o[r])),!i)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,((e,o)=>{t(function(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),o,n,0)})),n}return null},Le={transitional:xe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,a=ie.isObject(e);if(a&&ie.isHTMLForm(e)&&(e=new FormData(e)),ie.isFormData(e))return o?JSON.stringify(Pe(e)):e;if(ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)||ie.isReadableStream(e))return e;if(ie.isArrayBufferView(e))return e.buffer;if(ie.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return fe(e,new De.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){return De.isNode&&ie.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((r=ie.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return fe(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e){if(ie.isString(e))try{return(0,JSON.parse)(e),ie.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Le.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(ie.isResponse(e)||ie.isReadableStream(e))return e;if(e&&ie.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],(e=>{Le.headers[e]={}}));const Ne=Le,Ie=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Fe(e){return!1===e||null==e?e:ie.isArray(e)?e.map(Fe):String(e)}function je(e,t,n,o,a){return ie.isFunction(o)?o.call(this,t,n):(a&&(t=n),ie.isString(t)?ie.isString(o)?-1!==t.indexOf(o):ie.isRegExp(o)?o.test(t):void 0:void 0)}class Ye{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function a(e,t,n){const a=Re(t);if(!a)throw new Error("header name must be a non-empty string");const r=ie.findKey(o,a);(!r||void 0===o[r]||!0===n||void 0===n&&!1!==o[r])&&(o[r||t]=Fe(e))}const r=(e,t)=>ie.forEach(e,((e,n)=>a(e,n,t)));if(ie.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(ie.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,o,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),o=e.substring(a+1).trim(),!n||t[n]&&Ie[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)})),t})(e),t);else if(ie.isHeaders(e))for(const[t,o]of e.entries())a(o,t,n);else null!=e&&a(t,e,n);return this}get(e,t){if(e=Re(e)){const n=ie.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(ie.isFunction(t))return t.call(this,e,n);if(ie.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Re(e)){const n=ie.findKey(this,e);return!(!n||void 0===this[n]||t&&!je(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function a(e){if(e=Re(e)){const a=ie.findKey(n,e);!a||t&&!je(0,n[a],a,t)||(delete n[a],o=!0)}}return ie.isArray(e)?e.forEach(a):a(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const a=t[n];e&&!je(0,this[a],a,e,!0)||(delete this[a],o=!0)}return o}normalize(e){const t=this,n={};return ie.forEach(this,((o,a)=>{const r=ie.findKey(n,a);if(r)return t[r]=Fe(o),void delete t[a];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();i!==a&&delete t[a],t[i]=Fe(o),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ie.forEach(this,((n,o)=>{null!=n&&!1!==n&&(t[o]=e&&ie.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,n=this.prototype;function o(e){const o=Re(e);t[o]||(function(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,a){return this[o].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[o]=!0)}return ie.isArray(e)?e.forEach(o):o(e),this}}Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.reduceDescriptors(Ye.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ie.freezeMethods(Ye);const ze=Ye;function Be(e,t){const n=this||Ne,o=t||n,a=ze.from(o.headers);let r=o.data;return ie.forEach(e,(function(e){r=e.call(n,r,a.normalize(),t?t.status:void 0)})),a.normalize(),r}function He(e){return!(!e||!e.__CANCEL__)}function Ve(e,t,n){de.call(this,null==e?"canceled":e,de.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(Ve,de,{__CANCEL__:!0});const Ue=Ve;function We(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const qe=(e,t,n=3)=>{let o=0;const a=function(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a,r=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=o[i];a||(a=l),n[r]=s,o[r]=l;let d=i,u=0;for(;d!==r;)u+=n[d++],d%=e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-a<t)return;const p=c&&l-c;return p?Math.round(1e3*u/p):void 0}}(50,250);return function(e,t){let n,o,a=0,r=1e3/t;const i=(t,r=Date.now())=>{a=r,n=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=r?i(e,t):(n=e,o||(o=setTimeout((()=>{o=null,i(n)}),r-s)))},()=>n&&i(n)]}((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,s=r-o,l=a(s);o=r,e({loaded:r,total:i,progress:i?r/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&r<=i?(i-r)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},$e=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ge=e=>(...t)=>ie.asap((()=>e(...t))),Ke=De.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,De.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):()=>!0,Je=De.hasStandardBrowserEnv?{write(e,t,n,o,a,r){const i=[e+"="+encodeURIComponent(t)];ie.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),ie.isString(o)&&i.push("path="+o),ie.isString(a)&&i.push("domain="+a),!0===r&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Xe(e,t,n){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Qe=e=>e instanceof ze?{...e}:e;function Ze(e,t){t=t||{};const n={};function o(e,t,n,o){return ie.isPlainObject(e)&&ie.isPlainObject(t)?ie.merge.call({caseless:o},e,t):ie.isPlainObject(t)?ie.merge({},t):ie.isArray(t)?t.slice():t}function a(e,t,n,a){return ie.isUndefined(t)?ie.isUndefined(e)?void 0:o(void 0,e,0,a):o(e,t,0,a)}function r(e,t){if(!ie.isUndefined(t))return o(void 0,t)}function i(e,t){return ie.isUndefined(t)?ie.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,a,r){return r in t?o(n,a):r in e?o(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>a(Qe(e),Qe(t),0,!0)};return ie.forEach(Object.keys(Object.assign({},e,t)),(function(o){const r=l[o]||a,i=r(e[o],t[o],o);ie.isUndefined(i)&&r!==s||(n[o]=i)})),n}const et=e=>{const t=Ze({},e);let n,{data:o,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=ze.from(s),t.url=we(Xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),ie.isFormData(o))if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(De.hasStandardBrowserEnv&&(a&&ie.isFunction(a)&&(a=a(t)),a||!1!==a&&Ke(t.url))){const e=r&&i&&Je.read(i);e&&s.set(r,e)}return t},tt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const o=et(e);let a=o.data;const r=ze.from(o.headers).normalize();let i,s,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:h}=o;function m(){c&&c(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(i),o.signal&&o.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;function g(){if(!f)return;const o=ze.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());We((function(e){t(e),m()}),(function(e){n(e),m()}),{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(o.method.toUpperCase(),o.url,!0),f.timeout=o.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new de("Request aborted",de.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new de("Network Error",de.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const a=o.transitional||xe;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new de(t,a.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,f)),f=null},void 0===a&&r.setContentType(null),"setRequestHeader"in f&&ie.forEach(r.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),ie.isUndefined(o.withCredentials)||(f.withCredentials=!!o.withCredentials),u&&"json"!==u&&(f.responseType=o.responseType),h&&([l,d]=qe(h,!0),f.addEventListener("progress",l)),p&&f.upload&&([s,c]=qe(p),f.upload.addEventListener("progress",s),f.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(i=t=>{f&&(n(!t||t.type?new Ue(null,e,f):t),f.abort(),f=null)},o.cancelToken&&o.cancelToken.subscribe(i),o.signal&&(o.signal.aborted?i():o.signal.addEventListener("abort",i)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);v&&-1===De.protocols.indexOf(v)?n(new de("Unsupported protocol "+v+":",de.ERR_BAD_REQUEST,e)):f.send(a||null)}))},nt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const a=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;o.abort(t instanceof de?t:new Ue(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null,a(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))}),t);const i=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:s}=o;return s.unsubscribe=()=>ie.asap(i),s}},ot=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let o,a=0;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},at=(e,t,n,o)=>{const a=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*ot(n,t)}(e,t);let r,i=0,s=e=>{r||(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await a.next();if(t)return s(),void e.close();let r=o.byteLength;if(n){let e=i+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},rt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,it=rt&&"function"==typeof ReadableStream,st=rt&&("function"==typeof TextEncoder?(lt=new TextEncoder,e=>lt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var lt;const ct=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},dt=it&&ct((()=>{let e=!1;const t=new Request(De.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ut=it&&ct((()=>ie.isReadableStream(new Response("").body))),pt={stream:ut&&(e=>e.body)};var ht;rt&&(ht=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!pt[e]&&(pt[e]=ie.isFunction(ht[e])?t=>t[e]():(t,n)=>{throw new de(`Response type '${e}' is not supported`,de.ERR_NOT_SUPPORT,n)})})));const mt=rt&&(async e=>{let{url:t,method:n,data:o,signal:a,cancelToken:r,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=et(e);c=c?(c+"").toLowerCase():"text";let h,m=nt([a,r&&r.toAbortSignal()],i);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&dt&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=ie.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ie.isBlob(e))return e.size;if(ie.isSpecCompliantForm(e)){const t=new Request(De.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ie.isArrayBufferView(e)||ie.isArrayBuffer(e)?e.byteLength:(ie.isURLSearchParams(e)&&(e+=""),ie.isString(e)?(await st(e)).byteLength:void 0)})(t):n})(d,o))){let e,n=new Request(t,{method:"POST",body:o,duplex:"half"});if(ie.isFormData(o)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=$e(g,qe(Ge(l)));o=at(n.body,65536,e,t)}}ie.isString(u)||(u=u?"include":"omit");const a="credentials"in Request.prototype;h=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:a?u:void 0});let r=await fetch(h);const i=ut&&("stream"===c||"response"===c);if(ut&&(s||i&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=ie.toFiniteNumber(r.headers.get("content-length")),[n,o]=s&&$e(t,qe(Ge(s),!0))||[];r=new Response(at(r.body,65536,n,(()=>{o&&o(),f&&f()})),e)}c=c||"text";let v=await pt[ie.findKey(pt,c)||"text"](r,e);return!i&&f&&f(),await new Promise(((t,n)=>{We(t,n,{data:v,headers:ze.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:h})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,h),{cause:t.cause||t});throw de.from(t,t&&t.code,e,h)}}),ft={http:null,xhr:tt,fetch:mt};ie.forEach(ft,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const gt=e=>`- ${e}`,vt=e=>ie.isFunction(e)||null===e||!1===e,_t=e=>{e=ie.isArray(e)?e:[e];const{length:t}=e;let n,o;const a={};for(let r=0;r<t;r++){let t;if(n=e[r],o=n,!vt(n)&&(o=ft[(t=String(n)).toLowerCase()],void 0===o))throw new de(`Unknown adapter '${t}'`);if(o)break;a[t||"#"+r]=o}if(!o){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(gt).join("\n"):" "+gt(e[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return o};function bt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function yt(e){return bt(e),e.headers=ze.from(e.headers),e.data=Be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_t(e.adapter||Ne.adapter)(e).then((function(t){return bt(e),t.data=Be.call(e,e.transformResponse,t),t.headers=ze.from(t.headers),t}),(function(t){return He(t)||(bt(e),t&&t.response&&(t.response.data=Be.call(e,e.transformResponse,t.response),t.response.headers=ze.from(t.response.headers))),Promise.reject(t)}))}const wt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{wt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const kt={};wt.transitional=function(e,t,n){function o(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,r)=>{if(!1===e)throw new de(o(a," has been removed"+(t?" in "+t:"")),de.ERR_DEPRECATED);return t&&!kt[a]&&(kt[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,r)}},wt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const xt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const r=o[a],i=t[r];if(i){const t=e[r],n=void 0===t||i(t,r,e);if(!0!==n)throw new de("option "+r+" must be "+n,de.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new de("Unknown option "+r,de.ERR_BAD_OPTION)}},validators:wt},Et=xt.validators;class St{constructor(e){this.defaults=e,this.interceptors={request:new ke,response:new ke}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ze(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:a}=t;void 0!==n&&xt.assertOptions(n,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),null!=o&&(ie.isFunction(o)?t.paramsSerializer={serialize:o}:xt.assertOptions(o,{encode:Et.function,serialize:Et.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xt.assertOptions(t,{baseUrl:Et.spelling("baseURL"),withXsrfToken:Et.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=a&&ie.merge(a.common,a[t.method]);a&&ie.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete a[e]})),t.headers=ze.concat(r,a);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!s){const e=[yt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=i.length;let p=t;for(u=0;u<d;){const e=i[u++],t=i[u++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=yt.call(this,p)}catch(e){return Promise.reject(e)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return we(Xe((e=Ze(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ie.forEach(["delete","get","head","options"],(function(e){St.prototype[e]=function(t,n){return this.request(Ze(n||{},{method:e,url:t,data:(n||{}).data}))}})),ie.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,a){return this.request(Ze(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}St.prototype[e]=t(),St.prototype[e+"Form"]=t(!0)}));const Mt=St;class Tt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e,o,a){n.reason||(n.reason=new Ue(e,o,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Tt((function(t){e=t})),cancel:e}}}const Ct=Tt,At={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(At).forEach((([e,t])=>{At[t]=e}));const Dt=At,Pt=function e(t){const n=new Mt(t),o=b(Mt.prototype.request,n);return ie.extend(o,Mt.prototype,n,{allOwnKeys:!0}),ie.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Ze(t,n))},o}(Ne);Pt.Axios=Mt,Pt.CanceledError=Ue,Pt.CancelToken=Ct,Pt.isCancel=He,Pt.VERSION="1.8.4",Pt.toFormData=fe,Pt.AxiosError=de,Pt.Cancel=Pt.CanceledError,Pt.all=function(e){return Promise.all(e)},Pt.spread=function(e){return function(t){return e.apply(null,t)}},Pt.isAxiosError=function(e){return ie.isObject(e)&&!0===e.isAxiosError},Pt.mergeConfig=Ze,Pt.AxiosHeaders=ze,Pt.formToJSON=e=>Pe(ie.isHTMLForm(e)?new FormData(e):e),Pt.getAdapter=_t,Pt.HttpStatusCode=Dt,Pt.default=Pt;const Lt=Pt;var Nt=a(9764),It=a.n(Nt);function Ot(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ot(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}const Rt=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=Ot(e))&&(o&&(o+=" "),o+=t);return o};function Ft(){return Ft=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ft.apply(this,arguments)}function jt(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}function Yt(e){return"number"==typeof e&&!isNaN(e)}function zt(e){return"boolean"==typeof e}function Bt(e){return"string"==typeof e}function Ht(e){return"function"==typeof e}function Vt(e){return Bt(e)||Ht(e)?e:null}function Ut(e){return 0===e||e}var Wt=!("undefined"==typeof window||!window.document||!window.document.createElement);function qt(e){return(0,t.isValidElement)(e)||Bt(e)||Ht(e)||Yt(e)}var $t={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Gt={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function Kt(e){var n=e.enter,o=e.exit,a=e.appendPosition,r=void 0!==a&&a,i=e.collapse,s=void 0===i||i,l=e.collapseDuration,c=void 0===l?300:l;return function(e){var a=e.children,i=e.position,l=e.preventExitTransition,d=e.done,u=e.nodeRef,p=e.isIn,h=r?n+"--"+i:n,m=r?o+"--"+i:o,f=(0,t.useRef)(),g=(0,t.useRef)(0);function v(e){if(e.target===u.current){var t=u.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",v),t.removeEventListener("animationcancel",v),0===g.current&&(t.className=f.current)}}function _(){var e=u.current;e.removeEventListener("animationend",_),s?function(e,t,n){void 0===n&&(n=300);var o=e.scrollHeight,a=e.style;requestAnimationFrame((function(){a.minHeight="initial",a.height=o+"px",a.transition="all "+n+"ms",requestAnimationFrame((function(){a.height="0",a.padding="0",a.margin="0",setTimeout(t,n)}))}))}(e,d,c):d()}return(0,t.useLayoutEffect)((function(){var e;e=u.current,f.current=e.className,e.className+=" "+h,e.addEventListener("animationend",v),e.addEventListener("animationcancel",v)}),[]),(0,t.useEffect)((function(){p||(l?_():function(){g.current=1;var e=u.current;e.className+=" "+m,e.addEventListener("animationend",_)}())}),[p]),t.createElement(t.Fragment,null,a)}}var Jt={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];this.list.has(e)&&this.list.get(e).forEach((function(n){var a=setTimeout((function(){n.apply(void 0,o)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(a)}))}},Xt=["delay","staleId"];function Qt(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Zt(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function en(e){var n=e.closeToast,o=e.theme,a=e.ariaLabel,r=void 0===a?"close":a;return(0,t.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+o,type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":r},(0,t.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,t.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function tn(e){var n,o,a=e.delay,r=e.isRunning,i=e.closeToast,s=e.type,l=e.hide,c=e.className,d=e.style,u=e.controlledProgress,p=e.progress,h=e.rtl,m=e.isIn,f=e.theme,g=Ft({},d,{animationDuration:a+"ms",animationPlayState:r?"running":"paused",opacity:l?0:1});u&&(g.transform="scaleX("+p+")");var v=Rt("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+f,"Toastify__progress-bar--"+s,((n={})["Toastify__progress-bar--rtl"]=h,n)),_=Ht(c)?c({rtl:h,type:s,defaultClassName:v}):Rt(v,c),b=((o={})[u&&p>=1?"onTransitionEnd":"onAnimationEnd"]=u&&p<1?null:function(){m&&i()},o);return(0,t.createElement)("div",Object.assign({role:"progressbar","aria-hidden":l?"true":"false","aria-label":"notification timer",className:_,style:g},b))}tn.defaultProps={type:Gt.DEFAULT,hide:!1};var nn=["theme","type"],on=function(e){var n=e.theme,o=e.type,a=jt(e,nn);return(0,t.createElement)("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":"var(--toastify-icon-color-"+o+")"},a))},an={info:function(e){return(0,t.createElement)(on,Object.assign({},e),(0,t.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return(0,t.createElement)(on,Object.assign({},e),(0,t.createElement)("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return(0,t.createElement)(on,Object.assign({},e),(0,t.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return(0,t.createElement)(on,Object.assign({},e),(0,t.createElement)("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,t.createElement)("div",{className:"Toastify__spinner"})}},rn=function(e){var n,o,a=function(e){var n=(0,t.useState)(!1),o=n[0],a=n[1],r=(0,t.useState)(!1),i=r[0],s=r[1],l=(0,t.useRef)(null),c=(0,t.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=(0,t.useRef)(e),u=e.autoClose,p=e.pauseOnHover,h=e.closeToast,m=e.onClick,f=e.closeOnClick;function g(t){if(e.draggable){c.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",y),document.addEventListener("touchend",w);var n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=n.getBoundingClientRect(),n.style.transition="",c.x=Qt(t.nativeEvent),c.y=Zt(t.nativeEvent),"x"===e.draggableDirection?(c.start=c.x,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(){if(c.boundingRect){var t=c.boundingRect,n=t.top,o=t.bottom,a=t.left,r=t.right;e.pauseOnHover&&c.x>=a&&c.x<=r&&c.y>=n&&c.y<=o?b():_()}}function _(){a(!0)}function b(){a(!1)}function y(t){var n=l.current;c.canDrag&&n&&(c.didMove=!0,o&&b(),c.x=Qt(t),c.y=Zt(t),"x"===e.draggableDirection?c.delta=c.x-c.start:c.delta=c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),n.style.transform="translate"+e.draggableDirection+"("+c.delta+"px)",n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function w(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",w);var t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}(0,t.useEffect)((function(){d.current=e})),(0,t.useEffect)((function(){return l.current&&l.current.addEventListener("d",_,{once:!0}),Ht(e.onOpen)&&e.onOpen((0,t.isValidElement)(e.children)&&e.children.props),function(){var e=d.current;Ht(e.onClose)&&e.onClose((0,t.isValidElement)(e.children)&&e.children.props)}}),[]),(0,t.useEffect)((function(){return e.pauseOnFocusLoss&&(document.hasFocus()||b(),window.addEventListener("focus",_),window.addEventListener("blur",b)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",_),window.removeEventListener("blur",b))}}),[e.pauseOnFocusLoss]);var k={onMouseDown:g,onTouchStart:g,onMouseUp:v,onTouchEnd:v};return u&&p&&(k.onMouseEnter=b,k.onMouseLeave=_),f&&(k.onClick=function(e){m&&m(e),c.canCloseOnClick&&h()}),{playToast:_,pauseToast:b,isRunning:o,preventExitTransition:i,toastRef:l,eventHandlers:k}}(e),r=a.isRunning,i=a.preventExitTransition,s=a.toastRef,l=a.eventHandlers,c=e.closeButton,d=e.children,u=e.autoClose,p=e.onClick,h=e.type,m=e.hideProgressBar,f=e.closeToast,g=e.transition,v=e.position,_=e.className,b=e.style,y=e.bodyClassName,w=e.bodyStyle,k=e.progressClassName,x=e.progressStyle,E=e.updateId,S=e.role,M=e.progress,T=e.rtl,C=e.toastId,A=e.deleteToast,D=e.isIn,P=e.isLoading,L=e.icon,N=e.theme,I=Rt("Toastify__toast","Toastify__toast-theme--"+N,"Toastify__toast--"+h,((n={})["Toastify__toast--rtl"]=T,n)),O=Ht(_)?_({rtl:T,position:v,type:h,defaultClassName:I}):Rt(I,_),R=!!M,F=an[h],j={theme:N,type:h},Y=F&&F(j);return!1===L?Y=void 0:Ht(L)?Y=L(j):(0,t.isValidElement)(L)?Y=(0,t.cloneElement)(L,j):Bt(L)?Y=L:P&&(Y=an.spinner()),(0,t.createElement)(g,{isIn:D,done:A,position:v,preventExitTransition:i,nodeRef:s},(0,t.createElement)("div",Object.assign({id:C,onClick:p,className:O},l,{style:b,ref:s}),(0,t.createElement)("div",Object.assign({},D&&{role:S},{className:Ht(y)?y({type:h}):Rt("Toastify__toast-body",y),style:w}),Y&&(0,t.createElement)("div",{className:Rt("Toastify__toast-icon",(o={},o["Toastify--animate-icon Toastify__zoom-enter"]=!P,o))},Y),(0,t.createElement)("div",null,d)),function(e){if(e){var n={closeToast:f,type:h,theme:N};return Ht(e)?e(n):(0,t.isValidElement)(e)?(0,t.cloneElement)(e,n):void 0}}(c),(u||R)&&(0,t.createElement)(tn,Object.assign({},E&&!R?{key:"pb-"+E}:{},{rtl:T,theme:N,delay:u,isRunning:r,isIn:D,closeToast:f,hide:m,type:h,style:x,className:k,controlledProgress:R,progress:M}))))},sn=function(e){var n=function(e){var n=(0,t.useReducer)((function(e){return e+1}),0),o=n[1],a=(0,t.useState)([]),r=a[0],i=a[1],s=(0,t.useRef)(null),l=(0,t.useRef)(new Map).current,c=function(e){return-1!==r.indexOf(e)},d=(0,t.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:c,getToast:function(e){return l.get(e)}}).current;function u(e){var t=e.containerId;!d.props.limit||t&&d.containerId!==t||(d.count-=d.queue.length,d.queue=[])}function p(e){i((function(t){return Ut(e)?t.filter((function(t){return t!==e})):[]}))}function h(){var e=d.queue.shift();f(e.toastContent,e.toastProps,e.staleId)}function m(e,n){var a=n.delay,r=n.staleId,i=jt(n,Xt);if(qt(e)&&!function(e){return!s.current||d.props.enableMultiContainer&&e.containerId!==d.props.containerId||l.has(e.toastId)&&null==e.updateId}(i)){var c=i.toastId,u=i.updateId,m=i.data,g=d.props,v=function(){return p(c)},_=null==u;_&&d.count++;var b,y,w={toastId:c,updateId:u,isLoading:i.isLoading,theme:i.theme||g.theme,icon:null!=i.icon?i.icon:g.icon,isIn:!1,key:i.key||d.toastKey++,type:i.type,closeToast:v,closeButton:i.closeButton,rtl:g.rtl,position:i.position||g.position,transition:i.transition||g.transition,className:Vt(i.className||g.toastClassName),bodyClassName:Vt(i.bodyClassName||g.bodyClassName),style:i.style||g.toastStyle,bodyStyle:i.bodyStyle||g.bodyStyle,onClick:i.onClick||g.onClick,pauseOnHover:zt(i.pauseOnHover)?i.pauseOnHover:g.pauseOnHover,pauseOnFocusLoss:zt(i.pauseOnFocusLoss)?i.pauseOnFocusLoss:g.pauseOnFocusLoss,draggable:zt(i.draggable)?i.draggable:g.draggable,draggablePercent:i.draggablePercent||g.draggablePercent,draggableDirection:i.draggableDirection||g.draggableDirection,closeOnClick:zt(i.closeOnClick)?i.closeOnClick:g.closeOnClick,progressClassName:Vt(i.progressClassName||g.progressClassName),progressStyle:i.progressStyle||g.progressStyle,autoClose:!i.isLoading&&(b=i.autoClose,y=g.autoClose,!1===b||Yt(b)&&b>0?b:y),hideProgressBar:zt(i.hideProgressBar)?i.hideProgressBar:g.hideProgressBar,progress:i.progress,role:i.role||g.role,deleteToast:function(){l.delete(c);var e=d.queue.length;if(d.count=Ut(c)?d.count-1:d.count-d.displayedToast,d.count<0&&(d.count=0),e>0){var t=Ut(c)?1:d.props.limit;if(1===e||1===t)d.displayedToast++,h();else{var n=t>e?e:t;d.displayedToast=n;for(var a=0;a<n;a++)h()}}else o()}};Ht(i.onOpen)&&(w.onOpen=i.onOpen),Ht(i.onClose)&&(w.onClose=i.onClose),w.closeButton=g.closeButton,!1===i.closeButton||qt(i.closeButton)?w.closeButton=i.closeButton:!0===i.closeButton&&(w.closeButton=!qt(g.closeButton)||g.closeButton);var k=e;(0,t.isValidElement)(e)&&!Bt(e.type)?k=(0,t.cloneElement)(e,{closeToast:v,toastProps:w,data:m}):Ht(e)&&(k=e({closeToast:v,toastProps:w,data:m})),g.limit&&g.limit>0&&d.count>g.limit&&_?d.queue.push({toastContent:k,toastProps:w,staleId:r}):Yt(a)&&a>0?setTimeout((function(){f(k,w,r)}),a):f(k,w,r)}}function f(e,t,n){var o=t.toastId;n&&l.delete(n),l.set(o,{content:e,props:t}),i((function(e){return[].concat(e,[o]).filter((function(e){return e!==n}))}))}return(0,t.useEffect)((function(){return d.containerId=e.containerId,Jt.cancelEmit(3).on(0,m).on(1,(function(e){return s.current&&p(e)})).on(5,u).emit(2,d),function(){return Jt.emit(3,d)}}),[]),(0,t.useEffect)((function(){d.isToastActive=c,d.displayedToast=r.length,Jt.emit(4,r.length,e.containerId)}),[r]),(0,t.useEffect)((function(){d.props=e})),{getToastToRender:function(t){var n=new Map,o=Array.from(l.values());return e.newestOnTop&&o.reverse(),o.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:s,isToastActive:c}}(e),o=n.getToastToRender,a=n.containerRef,r=n.isToastActive,i=e.className,s=e.style,l=e.rtl,c=e.containerId;function d(e){var t,n=Rt("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=l,t));return Ht(i)?i({position:e,rtl:l,defaultClassName:n}):Rt(n,Vt(i))}return(0,t.createElement)("div",{ref:a,className:"Toastify",id:c},o((function(e,n){var o=n.length?Ft({},s):Ft({},s,{pointerEvents:"none"});return(0,t.createElement)("div",{className:d(e),style:o,key:"container-"+e},n.map((function(e){var n=e.content,o=e.props;return(0,t.createElement)(rn,Object.assign({},o,{isIn:r(o.toastId),key:"toast-"+o.key,closeButton:!0===o.closeButton?en:o.closeButton}),n)})))})))};sn.defaultProps={position:$t.TOP_RIGHT,transition:Kt({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:en,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var ln,cn,dn,un=new Map,pn=[],hn=!1;function mn(){return Math.random().toString(36).substring(2,9)}function fn(e){return e&&(Bt(e.toastId)||Yt(e.toastId))?e.toastId:mn()}function gn(e,n){return un.size>0?Jt.emit(0,e,n):(pn.push({content:e,options:n}),hn&&Wt&&(hn=!1,cn=document.createElement("div"),document.body.appendChild(cn),(0,o.render)((0,t.createElement)(sn,Object.assign({},dn)),cn))),n.toastId}function vn(e,t){return Ft({},t,{type:t&&t.type||e,toastId:fn(t)})}function _n(e){return function(t,n){return gn(t,vn(e,n))}}function bn(e,t){return gn(e,vn(Gt.DEFAULT,t))}bn.loading=function(e,t){return gn(e,vn(Gt.DEFAULT,Ft({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},bn.promise=function(e,t,n){var o,a=t.pending,r=t.error,i=t.success;a&&(o=Bt(a)?bn.loading(a,n):bn.loading(a.render,Ft({},n,a)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=function(e,t,a){if(null!=t){var r=Ft({type:e},s,n,{data:a}),i=Bt(t)?{render:t}:t;return o?bn.update(o,Ft({},r,i)):bn(i.render,Ft({},r,i)),a}bn.dismiss(o)},c=Ht(e)?e():e;return c.then((function(e){return l("success",i,e)})).catch((function(e){return l("error",r,e)})),c},bn.success=_n(Gt.SUCCESS),bn.info=_n(Gt.INFO),bn.error=_n(Gt.ERROR),bn.warning=_n(Gt.WARNING),bn.warn=bn.warning,bn.dark=function(e,t){return gn(e,vn(Gt.DEFAULT,Ft({theme:"dark"},t)))},bn.dismiss=function(e){return Jt.emit(1,e)},bn.clearWaitingQueue=function(e){return void 0===e&&(e={}),Jt.emit(5,e)},bn.isActive=function(e){var t=!1;return un.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},bn.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,o=un.get(n||ln);return o?o.getToast(e):null}(e,t);if(n){var o=n.props,a=n.content,r=Ft({},o,t,{toastId:t.toastId||e,updateId:mn()});r.toastId!==e&&(r.staleId=e);var i=r.render||a;delete r.render,gn(i,r)}}),0)},bn.done=function(e){bn.update(e,{progress:1})},bn.onChange=function(e){return Ht(e)&&Jt.on(4,e),function(){Ht(e)&&Jt.off(4,e)}},bn.configure=function(e){void 0===e&&(e={}),hn=!0,dn=e},bn.POSITION=$t,bn.TYPE=Gt,Jt.on(2,(function(e){ln=e.containerId||e,un.set(ln,e),pn.forEach((function(e){Jt.emit(0,e.content,e.options)})),pn=[]})).on(3,(function(e){un.delete(e.containerId||e),0===un.size&&Jt.off(0).off(1).off(5),Wt&&cn&&document.body.removeChild(cn)}));var yn=a(3350),wn=a(5556),kn=a.n(wn),xn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),En=new Uint8Array(16);function Sn(){if(!xn)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xn(En)}for(var Mn=[],Tn=0;Tn<256;++Tn)Mn[Tn]=(Tn+256).toString(16).substr(1);const Cn=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||Sn)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var r=0;r<16;++r)t[o+r]=a[r];return t||function(e,t){var n=t||0,o=Mn;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")}(a)};function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nn.apply(this,arguments)}function In(e){return In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},In(e)}function On(e,t){return On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},On(e,t)}function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=In(e);if(t){var a=In(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{},Yn=function(e){return e&&e.Math==Math&&e},zn=Yn("object"==typeof globalThis&&globalThis)||Yn("object"==typeof window&&window)||Yn("object"==typeof self&&self)||Yn("object"==typeof jn&&jn)||function(){return this}()||Function("return this")(),Bn={},Hn=function(e){try{return!!e()}catch(e){return!0}},Vn=!Hn((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Un=!Hn((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Wn=Un,qn=Function.prototype.call,$n=Wn?qn.bind(qn):function(){return qn.apply(qn,arguments)},Gn={},Kn={}.propertyIsEnumerable,Jn=Object.getOwnPropertyDescriptor,Xn=Jn&&!Kn.call({1:2},1);Gn.f=Xn?function(e){var t=Jn(this,e);return!!t&&t.enumerable}:Kn;var Qn,Zn,eo=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},to=Un,no=Function.prototype,oo=no.call,ao=to&&no.bind.bind(oo,oo),ro=function(e){return to?ao(e):function(){return oo.apply(e,arguments)}},io=ro,so=io({}.toString),lo=io("".slice),co=function(e){return lo(so(e),8,-1)},uo=co,po=ro,ho=function(e){if("Function"===uo(e))return po(e)},mo=Hn,fo=co,go=Object,vo=ho("".split),_o=mo((function(){return!go("z").propertyIsEnumerable(0)}))?function(e){return"String"==fo(e)?vo(e,""):go(e)}:go,bo=function(e){return null==e},yo=bo,wo=TypeError,ko=function(e){if(yo(e))throw wo("Can't call method on "+e);return e},xo=_o,Eo=ko,So=function(e){return xo(Eo(e))},Mo="object"==typeof document&&document.all,To={all:Mo,IS_HTMLDDA:void 0===Mo&&void 0!==Mo},Co=To.all,Ao=To.IS_HTMLDDA?function(e){return"function"==typeof e||e===Co}:function(e){return"function"==typeof e},Do=Ao,Po=To.all,Lo=To.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Do(e)||e===Po}:function(e){return"object"==typeof e?null!==e:Do(e)},No=zn,Io=Ao,Oo=function(e,t){return arguments.length<2?(n=No[e],Io(n)?n:void 0):No[e]&&No[e][t];var n},Ro=ho({}.isPrototypeOf),Fo=zn,jo=Oo("navigator","userAgent")||"",Yo=Fo.process,zo=Fo.Deno,Bo=Yo&&Yo.versions||zo&&zo.version,Ho=Bo&&Bo.v8;Ho&&(Zn=(Qn=Ho.split("."))[0]>0&&Qn[0]<4?1:+(Qn[0]+Qn[1])),!Zn&&jo&&(!(Qn=jo.match(/Edge\/(\d+)/))||Qn[1]>=74)&&(Qn=jo.match(/Chrome\/(\d+)/))&&(Zn=+Qn[1]);var Vo=Zn,Uo=Hn,Wo=!!Object.getOwnPropertySymbols&&!Uo((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vo&&Vo<41})),qo=Wo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$o=Oo,Go=Ao,Ko=Ro,Jo=Object,Xo=qo?function(e){return"symbol"==typeof e}:function(e){var t=$o("Symbol");return Go(t)&&Ko(t.prototype,Jo(e))},Qo=String,Zo=Ao,ea=TypeError,ta=function(e){if(Zo(e))return e;throw ea(function(e){try{return Qo(e)}catch(e){return"Object"}}(e)+" is not a function")},na=ta,oa=bo,aa=$n,ra=Ao,ia=Lo,sa=TypeError,la={exports:{}},ca=zn,da=Object.defineProperty,ua=function(e,t){try{da(ca,e,{value:t,configurable:!0,writable:!0})}catch(n){ca[e]=t}return t},pa=ua,ha="__core-js_shared__",ma=zn[ha]||pa(ha,{}),fa=ma;(la.exports=function(e,t){return fa[e]||(fa[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var ga=ko,va=Object,_a=function(e){return va(ga(e))},ba=_a,ya=ho({}.hasOwnProperty),wa=Object.hasOwn||function(e,t){return ya(ba(e),t)},ka=ho,xa=0,Ea=Math.random(),Sa=ka(1..toString),Ma=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Sa(++xa+Ea,36)},Ta=zn,Ca=la.exports,Aa=wa,Da=Ma,Pa=Wo,La=qo,Na=Ca("wks"),Ia=Ta.Symbol,Oa=Ia&&Ia.for,Ra=La?Ia:Ia&&Ia.withoutSetter||Da,Fa=function(e){if(!Aa(Na,e)||!Pa&&"string"!=typeof Na[e]){var t="Symbol."+e;Pa&&Aa(Ia,e)?Na[e]=Ia[e]:Na[e]=La&&Oa?Oa(t):Ra(t)}return Na[e]},ja=$n,Ya=Lo,za=Xo,Ba=TypeError,Ha=Fa("toPrimitive"),Va=function(e,t){if(!Ya(e)||za(e))return e;var n,o=function(e,t){var n=e[t];return oa(n)?void 0:na(n)}(e,Ha);if(o){if(void 0===t&&(t="default"),n=ja(o,e,t),!Ya(n)||za(n))return n;throw Ba("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,o;if("string"===t&&ra(n=e.toString)&&!ia(o=aa(n,e)))return o;if(ra(n=e.valueOf)&&!ia(o=aa(n,e)))return o;if("string"!==t&&ra(n=e.toString)&&!ia(o=aa(n,e)))return o;throw sa("Can't convert object to primitive value")}(e,t)},Ua=Xo,Wa=function(e){var t=Va(e,"string");return Ua(t)?t:t+""},qa=Lo,$a=zn.document,Ga=qa($a)&&qa($a.createElement),Ka=function(e){return Ga?$a.createElement(e):{}},Ja=Ka,Xa=!Vn&&!Hn((function(){return 7!=Object.defineProperty(Ja("div"),"a",{get:function(){return 7}}).a})),Qa=Vn,Za=$n,er=Gn,tr=eo,nr=So,or=Wa,ar=wa,rr=Xa,ir=Object.getOwnPropertyDescriptor;Bn.f=Qa?ir:function(e,t){if(e=nr(e),t=or(t),rr)try{return ir(e,t)}catch(e){}if(ar(e,t))return tr(!Za(er.f,e,t),e[t])};var sr={},lr=Vn&&Hn((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cr=Lo,dr=String,ur=TypeError,pr=function(e){if(cr(e))return e;throw ur(dr(e)+" is not an object")},hr=Vn,mr=Xa,fr=lr,gr=pr,vr=Wa,_r=TypeError,br=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,wr="enumerable",kr="configurable",xr="writable";sr.f=hr?fr?function(e,t,n){if(gr(e),t=vr(t),gr(n),"function"==typeof e&&"prototype"===t&&"value"in n&&xr in n&&!n[xr]){var o=yr(e,t);o&&o[xr]&&(e[t]=n.value,n={configurable:kr in n?n[kr]:o[kr],enumerable:wr in n?n[wr]:o[wr],writable:!1})}return br(e,t,n)}:br:function(e,t,n){if(gr(e),t=vr(t),gr(n),mr)try{return br(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _r("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Er=sr,Sr=eo,Mr=Vn?function(e,t,n){return Er.f(e,t,Sr(1,n))}:function(e,t,n){return e[t]=n,e},Tr={exports:{}},Cr=Vn,Ar=wa,Dr=Function.prototype,Pr=Cr&&Object.getOwnPropertyDescriptor,Lr=Ar(Dr,"name"),Nr={EXISTS:Lr,PROPER:Lr&&"something"===function(){}.name,CONFIGURABLE:Lr&&(!Cr||Cr&&Pr(Dr,"name").configurable)},Ir=Ao,Or=ma,Rr=ho(Function.toString);Ir(Or.inspectSource)||(Or.inspectSource=function(e){return Rr(e)});var Fr,jr,Yr,zr=Or.inspectSource,Br=Ao,Hr=zn.WeakMap,Vr=Br(Hr)&&/native code/.test(String(Hr)),Ur=la.exports,Wr=Ma,qr=Ur("keys"),$r=function(e){return qr[e]||(qr[e]=Wr(e))},Gr={},Kr=Vr,Jr=zn,Xr=Lo,Qr=Mr,Zr=wa,ei=ma,ti=$r,ni=Gr,oi="Object already initialized",ai=Jr.TypeError,ri=Jr.WeakMap;if(Kr||ei.state){var ii=ei.state||(ei.state=new ri);ii.get=ii.get,ii.has=ii.has,ii.set=ii.set,Fr=function(e,t){if(ii.has(e))throw ai(oi);return t.facade=e,ii.set(e,t),t},jr=function(e){return ii.get(e)||{}},Yr=function(e){return ii.has(e)}}else{var si=ti("state");ni[si]=!0,Fr=function(e,t){if(Zr(e,si))throw ai(oi);return t.facade=e,Qr(e,si,t),t},jr=function(e){return Zr(e,si)?e[si]:{}},Yr=function(e){return Zr(e,si)}}var li={set:Fr,get:jr,has:Yr,enforce:function(e){return Yr(e)?jr(e):Fr(e,{})},getterFor:function(e){return function(t){var n;if(!Xr(t)||(n=jr(t)).type!==e)throw ai("Incompatible receiver, "+e+" required");return n}}},ci=Hn,di=Ao,ui=wa,pi=Vn,hi=Nr.CONFIGURABLE,mi=zr,fi=li.enforce,gi=li.get,vi=Object.defineProperty,_i=pi&&!ci((function(){return 8!==vi((function(){}),"length",{value:8}).length})),bi=String(String).split("String"),yi=Tr.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!ui(e,"name")||hi&&e.name!==t)&&(pi?vi(e,"name",{value:t,configurable:!0}):e.name=t),_i&&n&&ui(n,"arity")&&e.length!==n.arity&&vi(e,"length",{value:n.arity});try{n&&ui(n,"constructor")&&n.constructor?pi&&vi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=fi(e);return ui(o,"source")||(o.source=bi.join("string"==typeof t?t:"")),e};Function.prototype.toString=yi((function(){return di(this)&&gi(this).source||mi(this)}),"toString");var wi=Ao,ki=sr,xi=Tr.exports,Ei=ua,Si={},Mi=Math.ceil,Ti=Math.floor,Ci=Math.trunc||function(e){var t=+e;return(t>0?Ti:Mi)(t)},Ai=Ci,Di=function(e){var t=+e;return t!=t||0===t?0:Ai(t)},Pi=Di,Li=Math.max,Ni=Math.min,Ii=Di,Oi=Math.min,Ri=function(e){return(t=e.length)>0?Oi(Ii(t),9007199254740991):0;var t},Fi=So,ji=Ri,Yi=function(e){return function(t,n,o){var a,r=Fi(t),i=ji(r),s=function(e,t){var n=Pi(e);return n<0?Li(n+t,0):Ni(n,t)}(o,i);if(e&&n!=n){for(;i>s;)if((a=r[s++])!=a)return!0}else for(;i>s;s++)if((e||s in r)&&r[s]===n)return e||s||0;return!e&&-1}},zi={includes:Yi(!0),indexOf:Yi(!1)},Bi=wa,Hi=So,Vi=zi.indexOf,Ui=Gr,Wi=ho([].push),qi=function(e,t){var n,o=Hi(e),a=0,r=[];for(n in o)!Bi(Ui,n)&&Bi(o,n)&&Wi(r,n);for(;t.length>a;)Bi(o,n=t[a++])&&(~Vi(r,n)||Wi(r,n));return r},$i=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gi=qi,Ki=$i.concat("length","prototype");Si.f=Object.getOwnPropertyNames||function(e){return Gi(e,Ki)};var Ji={};Ji.f=Object.getOwnPropertySymbols;var Xi=Oo,Qi=Si,Zi=Ji,es=pr,ts=ho([].concat),ns=Xi("Reflect","ownKeys")||function(e){var t=Qi.f(es(e)),n=Zi.f;return n?ts(t,n(e)):t},os=wa,as=ns,rs=Bn,is=sr,ss=Hn,ls=Ao,cs=/#|\.prototype\./,ds=function(e,t){var n=ps[us(e)];return n==ms||n!=hs&&(ls(t)?ss(t):!!t)},us=ds.normalize=function(e){return String(e).replace(cs,".").toLowerCase()},ps=ds.data={},hs=ds.NATIVE="N",ms=ds.POLYFILL="P",fs=ds,gs=zn,vs=Bn.f,_s=Mr,bs=function(e,t,n,o){o||(o={});var a=o.enumerable,r=void 0!==o.name?o.name:t;if(wi(n)&&xi(n,r,o),o.global)a?e[t]=n:Ei(t,n);else{try{o.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:ki.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},ys=ua,ws=function(e,t,n){for(var o=as(t),a=is.f,r=rs.f,i=0;i<o.length;i++){var s=o[i];os(e,s)||n&&os(n,s)||a(e,s,r(t,s))}},ks=fs,xs=ta,Es=Un,Ss=ho(ho.bind),Ms=co,Ts=Array.isArray||function(e){return"Array"==Ms(e)},Cs={};Cs[Fa("toStringTag")]="z";var As="[object z]"===String(Cs),Ds=Ao,Ps=co,Ls=Fa("toStringTag"),Ns=Object,Is="Arguments"==Ps(function(){return arguments}()),Os=ho,Rs=Hn,Fs=Ao,js=As?Ps:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ns(e),Ls))?n:Is?Ps(t):"Object"==(o=Ps(t))&&Ds(t.callee)?"Arguments":o},Ys=zr,zs=function(){},Bs=[],Hs=Oo("Reflect","construct"),Vs=/^\s*(?:class|function)\b/,Us=Os(Vs.exec),Ws=!Vs.exec(zs),qs=function(e){if(!Fs(e))return!1;try{return Hs(zs,Bs,e),!0}catch(e){return!1}},$s=function(e){if(!Fs(e))return!1;switch(js(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ws||!!Us(Vs,Ys(e))}catch(e){return!0}};$s.sham=!0;var Gs=!Hs||Rs((function(){var e;return qs(qs.call)||!qs(Object)||!qs((function(){e=!0}))||e}))?$s:qs,Ks=Ts,Js=Gs,Xs=Lo,Qs=Fa("species"),Zs=Array,el=_o,tl=_a,nl=Ri,ol=function(e,t){return new(function(e){var t;return Ks(e)&&(t=e.constructor,(Js(t)&&(t===Zs||Ks(t.prototype))||Xs(t)&&null===(t=t[Qs]))&&(t=void 0)),void 0===t?Zs:t}(e))(0===t?0:t)},al=ho([].push),rl=function(e){var t=1==e,n=2==e,o=3==e,a=4==e,r=6==e,i=7==e,s=5==e||r;return function(l,c,d,u){for(var p,h,m=tl(l),f=el(m),g=function(e,t){return xs(e),void 0===t?e:Es?Ss(e,t):function(){return e.apply(t,arguments)}}(c,d),v=nl(f),_=0,b=u||ol,y=t?b(l,v):n||i?b(l,0):void 0;v>_;_++)if((s||_ in f)&&(h=g(p=f[_],_,m),e))if(t)y[_]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return _;case 2:al(y,p)}else switch(e){case 4:return!1;case 7:al(y,p)}return r?-1:o||a?a:y}},il={forEach:rl(0),map:rl(1),filter:rl(2),some:rl(3),every:rl(4),find:rl(5),findIndex:rl(6),filterReject:rl(7)},sl={},ll=qi,cl=$i,dl=Object.keys||function(e){return ll(e,cl)},ul=Vn,pl=lr,hl=sr,ml=pr,fl=So,gl=dl;sl.f=ul&&!pl?Object.defineProperties:function(e,t){ml(e);for(var n,o=fl(t),a=gl(t),r=a.length,i=0;r>i;)hl.f(e,n=a[i++],o[n]);return e};var vl,_l=Oo("document","documentElement"),bl=pr,yl=sl,wl=$i,kl=Gr,xl=_l,El=Ka,Sl="prototype",Ml="script",Tl=$r("IE_PROTO"),Cl=function(){},Al=function(e){return"<"+Ml+">"+e+"</"+Ml+">"},Dl=function(e){e.write(Al("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pl=function(){try{vl=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Pl="undefined"!=typeof document?document.domain&&vl?Dl(vl):(t=El("iframe"),n="java"+Ml+":",t.style.display="none",xl.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Al("document.F=Object")),e.close(),e.F):Dl(vl);for(var o=wl.length;o--;)delete Pl[Sl][wl[o]];return Pl()};kl[Tl]=!0;var Ll=Fa,Nl=Object.create||function(e,t){var n;return null!==e?(Cl[Sl]=bl(e),n=new Cl,Cl[Sl]=null,n[Tl]=e):n=Pl(),void 0===t?n:yl.f(n,t)},Il=sr.f,Ol=Ll("unscopables"),Rl=Array.prototype;null==Rl[Ol]&&Il(Rl,Ol,{configurable:!0,value:Nl(null)});var Fl=il.find,jl="find",Yl=!0;jl in[]&&Array(1)[jl]((function(){Yl=!1})),function(e,t){var n,o,a,r,i,s=e.target,l=e.global,c=e.stat;if(n=l?gs:c?gs[s]||ys(s,{}):(gs[s]||{}).prototype)for(o in t){if(r=t[o],a=e.dontCallGetSet?(i=vs(n,o))&&i.value:n[o],!ks(l?o:s+(c?".":"#")+o,e.forced)&&void 0!==a){if(typeof r==typeof a)continue;ws(r,a)}(e.sham||a&&a.sham)&&_s(r,"sham",!0),bs(n,o,r,e)}}({target:"Array",proto:!0,forced:Yl},{find:function(e){return Fl(this,e,arguments.length>1?arguments[1]:void 0)}}),function(e){Rl[Ol][e]=!0}(jl);var zl="__react_tooltip_hide_event",Bl="__react_tooltip_rebuild_event",Hl="__react_tooltip_show_event",Vl=function(e,t){var n;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)},Ul=function(e,t){var n=this.state.show,o=this.props.id,a=this.isCapture(t.currentTarget),r=t.currentTarget.getAttribute("currentItem");a||t.stopPropagation(),n&&"true"===r?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Wl(t.currentTarget,this.getTargetArray(o)),this.showTooltip(t))},Wl=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},ql={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:Ln({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}},$l=function(e,t,n){for(var o,a,r=t.respectEffect,i=void 0!==r&&r,s=t.customEvent,l=void 0!==s&&s,c=this.props.id,d=null,u=n.target;null===d&&null!==u;)a=u,d=u.getAttribute("data-tip")||null,o=u.getAttribute("data-for")||null,u=u.parentElement;if(u=a||n.target,!this.isCustomEvent(u)||l){var p=null==c&&null==o||o===c;if(null!=d&&(!i||"float"===this.getEffect(u))&&p){var h=function(e){var t={};for(var n in e)"function"==typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);h.currentTarget=u,e(h)}}},Gl=function(e,t){var n={};return e.forEach((function(e){var o=e.getAttribute(t);o&&o.split(" ").forEach((function(e){return n[e]=!0}))})),n},Kl=function(){return document.getElementsByTagName("body")[0]};function Jl(e,t,n,o,a,r,i){var s,l=Xl(n),c=l.width,d=l.height,u=Xl(t),p=u.width,h=u.height,m=Ql(e,t,r),f=m.mouseX,g=m.mouseY,v=Zl(r,p,h,c,d),_=ec(i),b=_.extraOffsetX,y=_.extraOffsetY,w=window.innerWidth,k=window.innerHeight,x=tc(n),E=x.parentTop,S=x.parentLeft,M=function(e){var t=v[e].l;return f+t+b},T=function(e){var t=v[e].t;return g+t+y},C=function(e){return function(e){return M(e)<0}(e)||function(e){return function(e){var t=v[e].r;return f+t+b}(e)>w}(e)||function(e){return T(e)<0}(e)||function(e){return function(e){var t=v[e].b;return g+t+y}(e)>k}(e)},A=function(e){return!C(e)},D={top:A("top"),bottom:A("bottom"),left:A("left"),right:A("right")},P=function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw r}}}}(a.split(",").concat(o,["top","bottom","left","right"]));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(D[n])return n}}catch(e){t.e(e)}finally{t.f()}return o}(),L=!1;return P&&P!==o&&(L=!0,s=P),L?{isNewState:!0,newState:{place:s}}:{isNewState:!1,position:{left:parseInt(M(o)-S,10),top:parseInt(T(o)-E,10)}}}var Xl=function(e){var t=e.getBoundingClientRect(),n=t.height,o=t.width;return{height:parseInt(n,10),width:parseInt(o,10)}},Ql=function(e,t,n){var o=t.getBoundingClientRect(),a=o.top,r=o.left,i=Xl(t),s=i.width,l=i.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:r+s/2,mouseY:a+l/2}},Zl=function(e,t,n,o,a){var r,i,s,l;return"float"===e?(r={l:-o/2,r:o/2,t:-(a+3+2),b:-3},s={l:-o/2,r:o/2,t:15,b:a+3+2+12},l={l:-(o+3+2),r:-3,t:-a/2,b:a/2},i={l:3,r:o+3+2,t:-a/2,b:a/2}):"solid"===e&&(r={l:-o/2,r:o/2,t:-(n/2+a+2),b:-n/2},s={l:-o/2,r:o/2,t:n/2,b:n/2+a+2},l={l:-(o+t/2+2),r:-t/2,t:-a/2,b:a/2},i={l:t/2,r:o+t/2+2,t:-a/2,b:a/2}),{top:r,bottom:s,left:l,right:i}},ec=function(e){var t=0,n=0;for(var o in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===o?n-=parseInt(e[o],10):"bottom"===o?n+=parseInt(e[o],10):"left"===o?t-=parseInt(e[o],10):"right"===o&&(t+=parseInt(e[o],10));return{extraOffsetX:t,extraOffsetY:n}},tc=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function nc(e,n,o,a){if(n)return n;if(null!=o)return o;if(null===o)return null;var r=/<br\s*\/?>/;return a&&"false"!==a&&r.test(e)?e.split(r).map((function(e,n){return t.createElement("span",{key:n,className:"multi-line"},e)})):e}function oc(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function ac(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var rc,ic,sc={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}},lc={tooltip:3,arrow:0};var cc,dc=function(e){e.hide=function(e){Vl(zl,{target:e})},e.rebuild=function(){Vl(Bl)},e.show=function(e){Vl(Hl,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(rc=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(zl,this.globalHide),window.addEventListener(zl,this.globalHide,!1),window.removeEventListener(Bl,this.globalRebuild),window.addEventListener(Bl,this.globalRebuild,!1),window.removeEventListener(Hl,this.globalShow),window.addEventListener(Hl,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(zl,this.globalHide),window.removeEventListener(Bl,this.globalRebuild),window.removeEventListener(Hl,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(rc=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,o=n.event,a=n.eventOff,r=e.getAttribute("data-event")||o,i=e.getAttribute("data-event-off")||a;r.split(" ").forEach((function(n){e.removeEventListener(n,ql.get(e,n));var o=Ul.bind(t,i);ql.set(e,n,o),e.addEventListener(n,o,!1)})),i&&i.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,o=t.eventOff,a=n||e.getAttribute("data-event"),r=o||e.getAttribute("data-event-off");e.removeEventListener(a,ql.get(e,n)),r&&e.removeEventListener(r,this.hideTooltip)}}(rc=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(rc=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(rc=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,o=n.event,a=n.eventOff,r=n.possibleCustomEvents,i=n.possibleCustomEventsOff,s=Kl(),l=Gl(e,"data-event"),c=Gl(e,"data-event-off");null!=o&&(l[o]=!0),null!=a&&(c[a]=!0),r.split(" ").forEach((function(e){return l[e]=!0})),i.split(" ").forEach((function(e){return c[e]=!0})),this.unbindBodyListener(s);var d=this.bodyModeListeners={};for(var u in null==o&&(d.mouseover=$l.bind(this,this.showTooltip,{}),d.mousemove=$l.bind(this,this.updateTooltip,{respectEffect:!0}),d.mouseout=$l.bind(this,this.hideTooltip,{})),l)d[u]=$l.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||a;Ul.call(t,n,e)}),{customEvent:!0});for(var p in c)d[p]=$l.bind(this,this.hideTooltip,{customEvent:!0});for(var h in d)s.addEventListener(h,d[h])},e.prototype.unbindBodyListener=function(e){e=e||Kl();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((ic=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&On(e,t)}(i,e);var n,o,a,r=Rn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=r.call(this,e)).state={uuid:e.uuid||"t"+Cn(),place:e.place||"top",desiredPlace:e.place||"top",type:e.type||"dark",effect:e.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:e.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:oc(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},t.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),t.mount=!0,t.delayShowLoop=null,t.delayHideLoop=null,t.delayReshow=null,t.intervalUpdateContent=null,t}return n=i,o=[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props;e.insecure;var t=e.resizeHide,n=e.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(t),n||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var o=document.createElement("style");o.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0;\n  margin-left: 0;\n  visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n  bottom: 0;\n  left: 50%;\n  margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n  top: 0;\n  left: 50%;\n  margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n  right: 0;\n  top: 50%;\n  margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n  left: 0;\n  top: 50%;\n  margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',o.setAttribute("data-react-tooltip","true"),t.appendChild(o)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var o=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(o,'"]')}else t="[data-tip]:not([data-for])";return ac(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(ac(e.shadowRoot.querySelectorAll(t)))})),n.concat(ac(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff,a=t.isCapture,r=this.getTargetArray(n);r.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(r):r.forEach((function(t){var n=e.isCapture(t),o=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===o&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),o&&(window.removeEventListener(o,this.hideTooltip),window.addEventListener(o,this.hideTooltip,a)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),o&&window.removeEventListener(o,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,o=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),nc(this.state.originTooltip,o,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,o=n.multiline,a=n.getContent,r=e.currentTarget.getAttribute("data-tip"),i=e.currentTarget.getAttribute("data-multiline")||o||!1,s=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var c=e.currentTarget.getAttribute("data-place")||this.props.place||"top",d=s?"solid":this.getEffect(e.currentTarget),u=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=Jl(e,e.currentTarget,this.tooltipRef,c.split(",")[0],c,d,u);p.position&&this.props.overridePosition&&(p.position=this.props.overridePosition(p.position,e,e.currentTarget,this.tooltipRef,c,c,d,u));var h=p.isNewState?p.newState.place:c.split(",")[0];this.clearTimer();var m=e.currentTarget,f=this.state.show?m.getAttribute("data-delay-update")||this.props.delayUpdate:0,g=this,v=function(){g.setState({originTooltip:r,isMultiline:i,desiredPlace:c,place:h,type:m.getAttribute("data-type")||g.props.type||"dark",customColors:{text:m.getAttribute("data-text-color")||g.props.textColor||null,background:m.getAttribute("data-background-color")||g.props.backgroundColor||null,border:m.getAttribute("data-border-color")||g.props.borderColor||null,arrow:m.getAttribute("data-arrow-color")||g.props.arrowColor||null},customRadius:{tooltip:m.getAttribute("data-tooltip-radius")||g.props.tooltipRadius||"3",arrow:m.getAttribute("data-arrow-radius")||g.props.arrowRadius||"0"},effect:d,offset:u,padding:m.getAttribute("data-padding")||g.props.padding,html:(m.getAttribute("data-html")?"true"===m.getAttribute("data-html"):g.props.html)||!1,delayShow:m.getAttribute("data-delay-show")||g.props.delayShow||0,delayHide:m.getAttribute("data-delay-hide")||g.props.delayHide||0,delayUpdate:m.getAttribute("data-delay-update")||g.props.delayUpdate||0,border:(m.getAttribute("data-border")?"true"===m.getAttribute("data-border"):g.props.border)||!1,borderClass:m.getAttribute("data-border-class")||g.props.borderClass||"border",extraClass:m.getAttribute("data-class")||g.props.class||g.props.className||"",disable:(m.getAttribute("data-tip-disable")?"true"===m.getAttribute("data-tip-disable"):g.props.disable)||!1,currentTarget:m},(function(){l&&g.addScrollListener(g.state.currentTarget),g.updateTooltip(e),a&&Array.isArray(a)&&(g.intervalUpdateContent=setInterval((function(){if(g.mount){var e=g.props.getContent,t=nc(r,"",e[0](),i),n=g.isEmptyTip(t);g.setState({isEmptyTip:n}),g.updatePosition()}}),a[1]))}))};f?this.delayReshow=setTimeout(v,f):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,o=n.delayShow,a=n.disable,r=this.props,i=r.afterShow,s=r.disable,l=this.getTooltipContent(),c=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!(this.isEmptyTip(l)||a||s)){var d=this.state.show?0:parseInt(o,10),u=function(){if(Array.isArray(l)&&l.length>0||l){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},(function(){t.updatePosition((function(){n&&i&&i(e)}))}))}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),d?this.delayShowLoop=setTimeout(u,d):(this.delayShowLoop=null,u())}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},a=this.state.disable,r=o.isScroll?0:this.state.delayHide,i=this.props,s=i.afterHide,l=i.disable,c=this.getTooltipContent();if(this.mount&&!(this.isEmptyTip(c)||a||l)){if(t&&(!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget}))||!this.state.show))return;e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var d=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&s&&s(e)})))};this.clearTimer(),r?this.delayHideLoop=setTimeout(d,parseInt(r,10)):d()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(e){var t=this,n=this.state,o=n.currentEvent,a=n.currentTarget,r=n.place,i=n.desiredPlace,s=n.effect,l=n.offset,c=this.tooltipRef,d=Jl(o,a,c,r,i,s,l);if(d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,o,a,c,r,i,s,l)),d.isNewState)return this.setState(d.newState,(function(){t.updatePosition(e)}));e&&"function"==typeof e&&e(),c.style.left=d.position.left+"px",c.style.top=d.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,o=n.extraClass,a=n.html,r=n.ariaProps,s=n.disable,l=n.uuid,c=this.getTooltipContent(),d=this.isEmptyTip(c),u=this.props.disableInternalStyle?"":function(e,t,n,o,a,r){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"8px 21px",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:lc,a=t.text,r=t.background,i=t.border,s=t.arrow,l=o.arrow,c=o.tooltip;return"\n  \t.".concat(e," {\n\t    color: ").concat(a,";\n\t    background: ").concat(r,";\n\t    border: 1px solid ").concat(i,";\n\t    border-radius: ").concat(c,"px;\n\t    padding: ").concat(n,";\n  \t}\n\n  \t.").concat(e,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(e,'.place-top::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: 2;\n        width: 20px;\n        height: 12px;\n    }\n    .').concat(e,'.place-top::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(i,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -6px;\n        transform: rotate(135deg);\n    }\n\n    .").concat(e,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(e,'.place-bottom::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 18px;\n        height: 10px;\n    }\n    .').concat(e,'.place-bottom::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(i,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        top: -6px;\n        left: 50%;\n        margin-left: -6px;\n        transform: rotate(45deg);\n    }\n\n    .").concat(e,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(e,'.place-left::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 10px;\n        height: 18px;\n    }\n    .').concat(e,'.place-left::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(i,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        right: -6px;\n        top: 50%;\n        margin-top: -6px;\n        transform: rotate(45deg);\n    }\n\n    .").concat(e,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(e,'.place-right::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 10px;\n        height: 18px;\n    }\n    .').concat(e,'.place-right::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(i,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        left: -6px;\n        top: 50%;\n        margin-top: -6px;\n        transform: rotate(-135deg);\n    }\n  ")}(e,function(e,t,n){var o=e.text,a=e.background,r=e.border,i=e.arrow?e.arrow:e.background,s=function(e){return sc[e]?Dn({},sc[e]):void 0}(t);return o&&(s.text=o),a&&(s.background=a),n&&(s.border=r||("light"===t?"black":"white")),i&&(s.arrow=i),s}(t,n,o),a,r)}(this.state.uuid,this.state.customColors,this.state.type,this.state.border,this.state.padding,this.state.customRadius),p="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||s||d?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;i.supportedWrappers.indexOf(h)<0&&(h=i.defaultProps.wrapper);var m=[p,o].filter(Boolean).join(" ");if(a){var f="".concat(c).concat(u?'\n<style aria-hidden="true">'.concat(u,"</style>"):"");return t.createElement(h,Nn({className:"".concat(m),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},r,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:f}}))}return t.createElement(h,Nn({className:"".concat(m),id:this.props.id||l},r,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),u&&t.createElement("style",{dangerouslySetInnerHTML:{__html:u},"aria-hidden":"true"}),c)}}],a=[{key:"propTypes",get:function(){return{uuid:kn().string,children:kn().any,place:kn().string,type:kn().string,effect:kn().string,offset:kn().object,padding:kn().string,multiline:kn().bool,border:kn().bool,borderClass:kn().string,textColor:kn().string,backgroundColor:kn().string,borderColor:kn().string,arrowColor:kn().string,arrowRadius:kn().string,tooltipRadius:kn().string,insecure:kn().bool,class:kn().string,className:kn().string,id:kn().string,html:kn().bool,delayHide:kn().number,delayUpdate:kn().number,delayShow:kn().number,event:kn().string,eventOff:kn().string,isCapture:kn().bool,globalEventOff:kn().string,getContent:kn().any,afterShow:kn().func,afterHide:kn().func,overridePosition:kn().func,disable:kn().bool,scrollHide:kn().bool,resizeHide:kn().bool,wrapper:kn().string,bodyMode:kn().bool,possibleCustomEvents:kn().string,possibleCustomEventsOff:kn().string,clickable:kn().bool,disableInternalStyle:kn().bool}}},{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,o=oc(e);return Object.keys(o).some((function(e){return o[e]!==n[e]}))?Dn(Dn({},t),{},{ariaProps:o}):null}}],o&&Pn(n.prototype,o),a&&Pn(n,a),Object.defineProperty(n,"prototype",{writable:!1}),i}(t.Component),Ln(ic,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),Ln(ic,"supportedWrappers",["div","span"]),Ln(ic,"displayName","ReactTooltip"),(cc=rc=ic).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var o=t[n],a=0;a<o.removedNodes.length;a++)if(o.removedNodes[a]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},rc=void(cc.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||rc))||rc)||rc)||rc)||rc)||rc)||rc,uc=a(4405),pc=a(2833),hc=a.n(pc);const mc=function(e){function t(e,o,l,c,p){for(var h,m,f,g,y,k=0,x=0,E=0,S=0,M=0,L=0,I=f=h=0,R=0,F=0,j=0,Y=0,z=l.length,B=z-1,H="",V="",U="",W="";R<z;){if(m=l.charCodeAt(R),R===B&&0!==x+S+E+k&&(0!==x&&(m=47===x?10:47),S=E=k=0,z++,B++),0===x+S+E+k){if(R===B&&(0<F&&(H=H.replace(u,"")),0<H.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(R)}m=59}switch(m){case 123:for(h=(H=H.trim()).charCodeAt(0),f=1,Y=++R;R<z;){switch(m=l.charCodeAt(R)){case 123:f++;break;case 125:f--;break;case 47:switch(m=l.charCodeAt(R+1)){case 42:case 47:e:{for(I=R+1;I<B;++I)switch(l.charCodeAt(I)){case 47:if(42===m&&42===l.charCodeAt(I-1)&&R+2!==I){R=I+1;break e}break;case 10:if(47===m){R=I+1;break e}}R=I}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<B&&l.charCodeAt(R)!==m;);}if(0===f)break;R++}if(f=l.substring(Y,R),0===h&&(h=(H=H.replace(d,"").trim()).charCodeAt(0)),64===h){switch(0<F&&(H=H.replace(u,"")),m=H.charCodeAt(1)){case 100:case 109:case 115:case 45:F=o;break;default:F=P}if(Y=(f=t(o,F,f,m,p+1)).length,0<N&&(y=s(3,f,F=n(P,H,j),o,C,T,Y,m,p,c),H=F.join(""),void 0!==y&&0===(Y=(f=y.trim()).length)&&(m=0,f="")),0<Y)switch(m){case 115:H=H.replace(w,i);case 100:case 109:case 45:f=H+"{"+f+"}";break;case 107:f=(H=H.replace(v,"$1 $2"))+"{"+f+"}",f=1===D||2===D&&r("@"+f,3)?"@-webkit-"+f+"@"+f:"@"+f;break;default:f=H+f,112===c&&(V+=f,f="")}else f=""}else f=t(o,n(o,H,j),f,c,p+1);U+=f,f=j=F=I=h=0,H="",m=l.charCodeAt(++R);break;case 125:case 59:if(1<(Y=(H=(0<F?H.replace(u,""):H).trim()).length))switch(0===I&&(h=H.charCodeAt(0),45===h||96<h&&123>h)&&(Y=(H=H.replace(" ",":")).length),0<N&&void 0!==(y=s(1,H,o,e,C,T,V.length,c,p,c))&&0===(Y=(H=y.trim()).length)&&(H="\0\0"),h=H.charCodeAt(0),m=H.charCodeAt(1),h){case 0:break;case 64:if(105===m||99===m){W+=H+l.charAt(R);break}default:58!==H.charCodeAt(Y-1)&&(V+=a(H,h,m,H.charCodeAt(2)))}j=F=I=h=0,H="",m=l.charCodeAt(++R)}}switch(m){case 13:case 10:47===x?x=0:0===1+h&&107!==c&&0<H.length&&(F=1,H+="\0"),0<N*O&&s(0,H,o,e,C,T,V.length,c,p,c),T=1,C++;break;case 59:case 125:if(0===x+S+E+k){T++;break}default:switch(T++,g=l.charAt(R),m){case 9:case 32:if(0===S+k+x)switch(M){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+x+k&&(F=j=1,g="\f"+g);break;case 108:if(0===S+x+k+A&&0<I)switch(R-I){case 2:112===M&&58===l.charCodeAt(R-3)&&(A=M);case 8:111===L&&(A=L)}break;case 58:0===S+x+k&&(I=R);break;case 44:0===x+E+S+k&&(F=1,g+="\r");break;case 34:case 39:0===x&&(S=S===m?0:0===S?m:S);break;case 91:0===S+x+E&&k++;break;case 93:0===S+x+E&&k--;break;case 41:0===S+x+k&&E--;break;case 40:0===S+x+k&&(0===h&&(2*M+3*L==533||(h=1)),E++);break;case 64:0===x+E+S+k+I+f&&(f=1);break;case 42:case 47:if(!(0<S+k+E))switch(x){case 0:switch(2*m+3*l.charCodeAt(R+1)){case 235:x=47;break;case 220:Y=R,x=42}break;case 42:47===m&&42===M&&Y+2!==R&&(33===l.charCodeAt(Y+2)&&(V+=l.substring(Y,R+1)),g="",x=0)}}0===x&&(H+=g)}L=M,M=m,R++}if(0<(Y=V.length)){if(F=o,0<N&&void 0!==(y=s(2,V,F,e,C,T,Y,c,p,c))&&0===(V=y).length)return W+V+U;if(V=F.join(",")+"{"+V+"}",0!=D*A){switch(2!==D||r(V,2)||(A=0),A){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(_,"::-webkit-input-$1")+V.replace(_,"::-moz-$1")+V.replace(_,":-ms-input-$1")+V}A=0}}return W+V+U}function n(e,t,n){var a=t.trim().split(f);t=a;var r=a.length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<r;++s)t[s]=o(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<r;++s)for(var c=0;c<i;++c)t[l++]=o(e[c]+" ",a[s],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,o){var i=e+";",s=2*t+3*n+4*o;if(944===s){e=i.indexOf(":",9)+1;var l=i.substring(e,i.length-1).trim();return l=i.substring(0,e).trim()+l+";",1===D||2===D&&r(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!r(i,1))return i;switch(s){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(M,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(l=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+l+i;case 1005:return h.test(i)?i.replace(p,":-webkit-")+i.replace(p,":-moz-")+i:i;case 1e3:switch(t=(l=i.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=i.replace(y,"tb");break;case 232:l=i.replace(y,"tb-rl");break;case 220:l=i.replace(y,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+l+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(l=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:i=i.replace(l,"-webkit-"+l)+";"+i;break;case 207:case 102:i=i.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+i.replace(l,"-webkit-"+l)+";"+i.replace(l,"-ms-"+l+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return l=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+l+"-ms-flex-"+l+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(x,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(x,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):i.replace(l,"-webkit-"+l)+i.replace(l,"-moz-"+l.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+o&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+i}return i}function r(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?o:o.replace(E,"$1"),n,t)}function i(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,n,o,a,r,i,s,l,d){for(var u,p=0,h=t;p<N;++p)switch(u=L[p].call(c,e,h,n,o,a,r,i,s,l,d)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?D=1:(D=2,I=e):D=0),l}function c(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<N){var a=s(-1,n,o,o,C,T,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var r=t(P,o,n,0,0);return 0<N&&void 0!==(a=s(-2,r,o,o,C,T,r.length,0,0,0))&&(r=a),A=0,T=C=1,r}var d=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,m=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,x=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,T=1,C=1,A=0,D=1,P=[],L=[],N=0,I=null,O=0;return c.use=function e(t){switch(t){case void 0:case null:N=L.length=0;break;default:if("function"==typeof t)L[N++]=t;else if("object"==typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else O=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},fc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var gc=a(1907),vc=a(4146),_c=a.n(vc);function bc(){return(bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var yc=function(e,t){for(var n=[e[0]],o=0,a=t.length;o<a;o+=1)n.push(t[o],e[o+1]);return n},wc=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,uc.QP)(e)},kc=Object.freeze([]),xc=Object.freeze({});function Ec(e){return"function"==typeof e}function Sc(e){return e.displayName||e.name||"Component"}function Mc(e){return e&&"string"==typeof e.styledComponentId}var Tc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Cc="undefined"!=typeof window&&"HTMLElement"in window,Ac=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function Dc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Pc=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,a=o;e>=a;)(a<<=1)<0&&Dc(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var r=o;r<a;r++)this.groupSizes[r]=0}for(var i=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var a=n;a<o;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),a=o+n,r=o;r<a;r++)t+=this.tag.getRule(r)+"\n";return t},e}(),Lc=new Map,Nc=new Map,Ic=1,Oc=function(e){if(Lc.has(e))return Lc.get(e);for(;Nc.has(Ic);)Ic++;var t=Ic++;return Lc.set(e,t),Nc.set(t,e),t},Rc=function(e){return Nc.get(e)},Fc=function(e,t){t>=Ic&&(Ic=t+1),Lc.set(e,t),Nc.set(t,e)},jc="style["+Tc+'][data-styled-version="5.3.11"]',Yc=new RegExp("^"+Tc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),zc=function(e,t,n){for(var o,a=n.split(","),r=0,i=a.length;r<i;r++)(o=a[r])&&e.registerName(t,o)},Bc=function(e,t){for(var n=(t.textContent||"").split("\n"),o=[],a=0,r=n.length;a<r;a++){var i=n[a].trim();if(i){var s=i.match(Yc);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Fc(c,l),zc(e,c,s[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(i)}}},Hc=function(){return a.nc},Vc=function(e){var t=document.head,n=e||t,o=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(Tc))return o}}(n),r=void 0!==a?a.nextSibling:null;o.setAttribute(Tc,"active"),o.setAttribute("data-styled-version","5.3.11");var i=Hc();return i&&o.setAttribute("nonce",i),n.insertBefore(o,r),o},Uc=function(){function e(e){var t=this.element=Vc(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var a=t[n];if(a.ownerNode===e)return a}Dc(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Wc=function(){function e(e){var t=this.element=Vc(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),qc=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$c=Cc,Gc={isServer:!Cc,useCSSOMInjection:!Ac},Kc=function(){function e(e,t,n){void 0===e&&(e=xc),void 0===t&&(t={}),this.options=bc({},Gc,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Cc&&$c&&($c=!1,function(e){for(var t=document.querySelectorAll(jc),n=0,o=t.length;n<o;n++){var a=t[n];a&&"active"!==a.getAttribute(Tc)&&(Bc(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return Oc(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(bc({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,a=t.target,e=n?new qc(a):o?new Uc(a):new Wc(a),new Pc(e)));var e,t,n,o,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Oc(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Oc(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Oc(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",a=0;a<n;a++){var r=Rc(a);if(void 0!==r){var i=e.names.get(r),s=t.getGroup(a);if(i&&s&&i.size){var l=Tc+".g"+a+'[id="'+r+'"]',c="";void 0!==i&&i.forEach((function(e){e.length>0&&(c+=e+",")})),o+=""+s+l+'{content:"'+c+'"}\n'}}}return o}(this)},e}(),Jc=/(a)(d)/gi,Xc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qc(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Xc(t%52)+n;return(Xc(t%52)+n).replace(Jc,"$1-$2")}var Zc=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ed=function(e){return Zc(5381,e)};function td(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ec(n)&&!Mc(n))return!1}return!0}var nd=ed("5.3.11"),od=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&td(e),this.componentId=t,this.baseHash=Zc(nd,t),this.baseStyle=n,Kc.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))a.push(this.staticRulesId);else{var r=yd(this.rules,e,t,n).join(""),i=Qc(Zc(this.baseHash,r)>>>0);if(!t.hasNameForId(o,i)){var s=n(r,"."+i,void 0,o);t.insertRules(o,i,s)}a.push(i),this.staticRulesId=i}else{for(var l=this.rules.length,c=Zc(this.baseHash,n.hash),d="",u=0;u<l;u++){var p=this.rules[u];if("string"==typeof p)d+=p;else if(p){var h=yd(p,e,t,n),m=Array.isArray(h)?h.join(""):h;c=Zc(c,m+u),d+=m}}if(d){var f=Qc(c>>>0);if(!t.hasNameForId(o,f)){var g=n(d,"."+f,void 0,o);t.insertRules(o,f,g)}a.push(f)}}return a.join(" ")},e}(),ad=/^\s*\/\/.*$/gm,rd=[":","[",".","#"];function id(e){var t,n,o,a,r=void 0===e?xc:e,i=r.options,s=void 0===i?xc:i,l=r.plugins,c=void 0===l?kc:l,d=new mc(s),u=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,a,r,i,s,l,c,d,u){switch(n){case 1:if(0===d&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===c)return o+"";break;case 3:switch(c){case 102:case 112:return e(a[0]+o),"";default:return o+(0===u?"":"")}case-2:o.split("}").forEach(t)}}}((function(e){u.push(e)})),h=function(e,o,r){return 0===o&&-1!==rd.indexOf(r[n.length])||r.match(a)?e:"."+t};function m(e,r,i,s){void 0===s&&(s="&");var l=e.replace(ad,""),c=r&&i?i+" "+r+" { "+l+" }":l;return t=s,n=r,o=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),d(i||!r?"":r,c)}return d.use([].concat(c,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(o,h))},p,function(e){if(-2===e){var t=u;return u=[],t}}])),m.hash=c.length?c.reduce((function(e,t){return t.name||Dc(15),Zc(e,t.name)}),5381).toString():"",m}var sd=t.createContext(),ld=(sd.Consumer,t.createContext()),cd=(ld.Consumer,new Kc),dd=id();function ud(){return(0,t.useContext)(sd)||cd}function pd(e){var n=(0,t.useState)(e.stylisPlugins),o=n[0],a=n[1],r=ud(),i=(0,t.useMemo)((function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),s=(0,t.useMemo)((function(){return id({options:{prefix:!e.disableVendorPrefixes},plugins:o})}),[e.disableVendorPrefixes,o]);return(0,t.useEffect)((function(){hc()(o,e.stylisPlugins)||a(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(sd.Provider,{value:i},t.createElement(ld.Provider,{value:s},e.children))}var hd=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=dd);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return Dc(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=dd),this.name+e.hash},e}(),md=/([A-Z])/,fd=/([A-Z])/g,gd=/^ms-/,vd=function(e){return"-"+e.toLowerCase()};function _d(e){return md.test(e)?e.replace(fd,vd).replace(gd,"-ms-"):e}var bd=function(e){return null==e||!1===e||""===e};function yd(e,t,n,o){if(Array.isArray(e)){for(var a,r=[],i=0,s=e.length;i<s;i+=1)""!==(a=yd(e[i],t,n,o))&&(Array.isArray(a)?r.push.apply(r,a):r.push(a));return r}return bd(e)?"":Mc(e)?"."+e.styledComponentId:Ec(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:yd(e(t),t,n,o):e instanceof hd?n?(e.inject(n,o),e.getName(o)):e:wc(e)?function e(t,n){var o,a,r=[];for(var i in t)t.hasOwnProperty(i)&&!bd(t[i])&&(Array.isArray(t[i])&&t[i].isCss||Ec(t[i])?r.push(_d(i)+":",t[i],";"):wc(t[i])?r.push.apply(r,e(t[i],i)):r.push(_d(i)+": "+(o=i,(null==(a=t[i])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||o in fc||o.startsWith("--")?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(r,["}"]):r}(e):e.toString();var l}var wd=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function kd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Ec(e)||wc(e)?wd(yd(yc(kc,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:wd(yd(yc(e,n)))}new Set;var xd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ed=/(^-|-$)/g;function Sd(e){return e.replace(xd,"-").replace(Ed,"")}function Md(e){return"string"==typeof e&&!0}var Td=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Cd=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ad(e,t,n){var o=e[n];Td(t)&&Td(o)?Dd(o,t):e[n]=t}function Dd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0,r=n;a<r.length;a++){var i=r[a];if(Td(i))for(var s in i)Cd(s)&&Ad(e,i[s],s)}return e}var Pd=t.createContext();Pd.Consumer;var Ld={};function Nd(e,n,o){var a=Mc(e),r=!Md(e),i=n.attrs,s=void 0===i?kc:i,l=n.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Sd(e);Ld[n]=(Ld[n]||0)+1;var o=n+"-"+function(e){return Qc(ed(e)>>>0)}("5.3.11"+n+Ld[n]);return t?t+"-"+o:o}(n.displayName,n.parentComponentId):l,d=n.displayName,u=void 0===d?function(e){return Md(e)?"styled."+e:"Styled("+Sc(e)+")"}(e):d,p=n.displayName&&n.componentId?Sd(n.displayName)+"-"+n.componentId:n.componentId||c,h=a&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,m=n.shouldForwardProp;a&&e.shouldForwardProp&&(m=n.shouldForwardProp?function(t,o,a){return e.shouldForwardProp(t,o,a)&&n.shouldForwardProp(t,o,a)}:e.shouldForwardProp);var f,g=new od(o,p,a?e.componentStyle:void 0),v=g.isStatic&&0===s.length,_=function(e,n){return function(e,n,o,a){var r=e.attrs,i=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,u=e.target,p=function(e,t,n){void 0===e&&(e=xc);var o=bc({},t,{theme:e}),a={};return n.forEach((function(e){var t,n,r,i=e;for(t in Ec(i)&&(i=i(o)),i)o[t]=a[t]="className"===t?(n=a[t],r=i[t],n&&r?n+" "+r:n||r):i[t]})),[o,a]}(function(e,t,n){return void 0===n&&(n=xc),e.theme!==n.theme&&e.theme||t||n.theme}(n,(0,t.useContext)(Pd),s)||xc,n,r),h=p[0],m=p[1],f=function(e,n,o){var a=ud(),r=(0,t.useContext)(ld)||dd;return n?e.generateAndInjectStyles(xc,a,r):e.generateAndInjectStyles(o,a,r)}(i,a,h),g=o,v=m.$as||n.$as||m.as||n.as||u,_=Md(v),b=m!==n?bc({},n,{},m):n,y={};for(var w in b)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?y.as=b[w]:(c?c(w,gc.A,v):!_||(0,gc.A)(w))&&(y[w]=b[w]));return n.style&&m.style!==n.style&&(y.style=bc({},n.style,{},m.style)),y.className=Array.prototype.concat(l,d,f!==d?f:null,n.className,m.className).filter(Boolean).join(" "),y.ref=g,(0,t.createElement)(v,y)}(f,e,n,v)};return _.displayName=u,(f=t.forwardRef(_)).attrs=h,f.componentStyle=g,f.displayName=u,f.shouldForwardProp=m,f.foldedComponentIds=a?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):kc,f.styledComponentId=p,f.target=a?e.target:e,f.withComponent=function(e){var t=n.componentId,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["componentId"]),r=t&&t+"-"+(Md(e)?e:Sd(Sc(e)));return Nd(e,bc({},a,{attrs:h,componentId:r}),o)},Object.defineProperty(f,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=a?Dd({},e.defaultProps,t):t}}),Object.defineProperty(f,"toString",{value:function(){return"."+f.styledComponentId}}),r&&_c()(f,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),f}var Id,Od=function(e){return function e(t,n,o){if(void 0===o&&(o=xc),!(0,uc.Hy)(n))return Dc(1,String(n));var a=function(){return t(n,o,kd.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,bc({},o,{},a))},a.attrs=function(a){return e(t,n,bc({},o,{attrs:Array.prototype.concat(o.attrs,a).filter(Boolean)}))},a}(Nd,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Od[e]=Od(e)})),(Id=function(e,t){this.rules=e,this.componentId=t,this.isStatic=td(e),Kc.registerId(this.componentId+1)}.prototype).createStyles=function(e,t,n,o){var a=o(yd(this.rules,t,n,o).join(""),""),r=this.componentId+e;n.insertRules(r,r,a)},Id.removeStyles=function(e,t){t.clearRules(this.componentId+e)},Id.renderStyles=function(e,t,n,o){e>2&&Kc.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Hc();return"<style "+[n&&'nonce="'+n+'"',Tc+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Dc(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return Dc(2);var o=((n={})[Tc]="",n["data-styled-version"]="5.3.11",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),a=Hc();return a&&(o.nonce=a),[t.createElement("style",bc({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Kc({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Dc(2):t.createElement(pd,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Dc(3)}}();const Rd=Od;var Fd,jd,Yd,zd,Bd;function Hd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hd=function(){return!!e})()}var Vd=Rd.div(Fd||(Fd=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),Ud=Rd.button(jd||(jd=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),Wd=Rd.h1(Yd||(Yd=g(["\n  font-size: 30px;\n  font-family: 'Poppins';\n  font-weight: 500;\n  margin-bottom: 0;\n"]))),qd=Rd.p(zd||(zd=g(["\n  font-size: 16px;\n"]))),$d=Rd.button(Bd||(Bd=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n"]))),Gd=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,Hd()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handlePageClick",(function(e){var n=e.selected,o=n*t.state.perPage;t.setState({currentPage:n,offset:o},(function(){t.displayEvents()}))})),t.state={loading:!1,offset:0,perPage:20,currentPage:0,events:[],inserted:[],updated:[],skipped:[]},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displayEvents(),this.context.setSelectedTabOnCookies("manager")}},{key:"displayEvents",value:(f=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","display_events"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,this.setState({loading:!1}),200==n.status&&n.data.success&&n.data.success&&(o=n.data.info,a=o.slice(this.state.offset,this.state.offset+this.state.perPage),this.setState({pageCount:Math.ceil(o.length/this.state.perPage),events:a}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"downloadRevisionFile",value:(h=u(m().mark((function e(t,n){var o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(" "!==(o=document.getElementById("revisionSelect-"+n).value)){e.next=4;break}return bn.error("Please Select any Revision"),e.abrupt("return");case 4:return(a=new FormData).set("action","download_file"),a.set("filename",t),a.set("revision",o),a.set("securekey",window.smack_nonce_object_pro.nonce),e.next=11,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 11:200==(r=e.sent).status&&1==r.data.success?window.location.href=r.data.file_link:bn.error(r.data.message);case 13:case"end":return e.stop()}}),e)}))),function(e,t){return h.apply(this,arguments)})},{key:"downloadFileZip",value:(d=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","download_all_file"),n.set("filename",t),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=6,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:200==(o=e.sent).status&&1==o.data.success?window.location.href=o.data.ziplink:bn.error(o.data.message);case 8:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)})},{key:"deleteRevisionFile",value:(a=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(" "!==(o=document.getElementById("revisionSelect-"+n).value)){e.next=4;break}return bn.error("Please Select any Revision"),e.abrupt("return");case 4:return(a=new FormData).set("action","delete_file"),a.set("filename",t),a.set("revision",o),a.set("securekey",window.smack_nonce_object_pro.nonce),e.next=11,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 11:200==e.sent.status&&bn.success("Record Deleted Successfully");case 13:case"end":return e.stop()}}),e)}))),function(e,t){return a.apply(this,arguments)})},{key:"deleteAllRecords",value:(o=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action",n),o.set("filename",t.filename),o.set("type",t.purpose),o.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:200==(a=e.sent).status&&1==a.data.success?bn.success(a.data.message):bn.error(a.data.notice);case 9:case"end":return e.stop()}}),e)}))),function(e,t){return o.apply(this,arguments)})},{key:"handleRevision",value:function(e,t,n){var o=this.state.inserted.slice(),a=this.state.updated.slice(),r=this.state.skipped.slice();o[n]=t.inserted[e],a[n]=t.updated[e],r[n]=t.skipped[e],this.setState({inserted:o,updated:a,skipped:r})}},{key:"confirmationToDeleteTemplate",value:function(e,n){var o=this;(0,yn.ZX)({customUI:function(a){var r=a.onClose;return t.createElement(Vd,null,t.createElement(Wd,null,"Are you sure?"),t.createElement(qd,null,"You want to delete this template?"),t.createElement($d,{onClick:r},"Not Now"),t.createElement(Ud,{onClick:function(){o.deleteAllRecords(e,n),r()}},"Yes, Delete it!"))}})}},{key:"render",value:function(){var e=this,n={verticalAlign:"middle"},o={width:"45%"};return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane1 active "},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.FileManager),t.createElement("div",{className:"table-responsive"},t.createElement("table",{className:"table table-manager"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.EventInfo),t.createElement("th",null,this.context.language.EventMode),t.createElement("th",{className:"text-center"},this.context.language.Actions))),t.createElement("tbody",null,this.state.loading?t.createElement("tr",null,t.createElement("td",{colspan:"6"},t.createElement("div",{className:"loader loader-1 mt15"}))):0!==this.state.events.length?this.state.events.map((function(a,r){return t.createElement("tr",null,t.createElement("td",{style:o},t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.FileName,":"),a.filename),t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.Date,":")," ",_()(a.date).format("lll")),t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.Purpose,":")," ",a.purpose),t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.Revision,":")," ",t.createElement("select",{id:"revisionSelect-"+r,onChange:function(t){e.handleRevision(t.target.value,a,r)}},t.createElement("option",{value:" "},"--",e.context.language.Select,"--"),a.revisions.map((function(e,n){return t.createElement("option",{value:e},e)}))))),t.createElement("td",{style:n},t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.Inserted,":")," ",e.state.inserted[r]),t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.Updated,":")," ",e.state.updated[r]),t.createElement("p",null,t.createElement("span",{class:"text-label"},e.context.language.Skipped,":")," ",e.state.skipped[r])),t.createElement("td",{style:n},t.createElement("ul",{class:"list-inline"},t.createElement("li",{class:"list-inline-item"},t.createElement("a",{class:"action-icon text-success",onClick:function(t){e.downloadRevisionFile(a.filename,r)},"data-tip":"Download a specific file with revision"},t.createElement("i",{class:"csv-icon-download-cloud"}))),t.createElement("li",{class:"list-inline-item"},t.createElement("a",{class:"action-icon text-success",onClick:function(t){e.downloadFileZip(a.filename)},"data-tip":"Download all files as a zip"},t.createElement("i",{class:"csv-icon-file-zip-o"}))),t.createElement("li",{class:"list-inline-item"},t.createElement("a",{class:"action-icon text-danger",onClick:function(t){e.deleteRevisionFile(a.filename,r)},"data-tip":"Delete a specific file with revision"},t.createElement("i",{class:"csv-icon-delete1"}))),t.createElement("li",{class:"list-inline-item"},t.createElement("a",{class:"action-icon text-danger",onClick:function(t){e.confirmationToDeleteTemplate(a,"delete_all_records")},"data-tip":"Delete all records"},t.createElement("i",{class:"csv-icon-database1"}))),t.createElement("li",{class:"list-inline-item"},t.createElement("a",{class:"action-icon text-danger",onClick:function(t){e.confirmationToDeleteTemplate(a,"delete_all_file")},"data-tip":"Delete all files & records"},t.createElement("i",{class:"csv-icon-highlight_off"}))),t.createElement("li",{class:"list-inline-item"},t.createElement("a",{class:"action-icon text-danger",onClick:function(t){e.confirmationToDeleteTemplate(a,"trash_records")},"data-tip":"Trash all records"},t.createElement("i",{class:"csv-icon-trash-2"}))),t.createElement(dc,{effect:"solid"}))))})):t.createElement("tr",null,t.createElement("td",{colspan:"6"},t.createElement("span",{className:"text-danger"},this.context.language.Noeventsfound)))))),0!==this.state.events.length?t.createElement("div",null,this.state.slice,t.createElement(It(),{previousLabel:"prev",nextLabel:"next",breakLabel:"...",breakClassName:"break-me",pageCount:this.state.pageCount,marginPagesDisplayed:0,pageRangeDisplayed:0,onPageChange:this.handlePageClick,containerClassName:"pagination",subContainerClassName:"pages pagination",activeClassName:"active"})):t.createElement("div",null)))))}}]);var o,a,d,h,f}(t.Component);(0,p.A)(Gd,"contextType",f);const Kd=Gd;var Jd,Xd,Qd,Zd,eu,tu=a(9386),nu=a.n(tu);function ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ou=function(){return!!e})()}var au=Rd.div(Jd||(Jd=g(["\n    padding: 50px;\n    background: white;\n    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n    border-radius: 6px;\n"]))),ru=Rd.button(Xd||(Xd=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),iu=Rd.h1(Qd||(Qd=g(["\n    font-size: 30px;\n    font-family: 'Poppins';\n    font-weight: 500;\n    margin-bottom: 0;\n"]))),su=Rd.p(Zd||(Zd=g(["\n    font-size: 16px;\n"]))),lu=Rd.button(eu||(eu=g(["\n    font-size: 1rem;\n    padding: 8px 20px;\n    line-height: 1.5em;\n    font-weight: 600;\n    text-transform: uppercase;\n    -webkit-transition: all 200ms ease;\n    -moz-transition: all 200ms ease;\n    -ms-transition: all 200ms ease;\n    -o-transition: all 200ms ease;\n    transition: all 200ms ease;\n    font-family: 'Poppins', sans-serif;\n    border: none;\n    cursor: pointer;\n    border-radius: 6px;\n    background: #ffffff;\n    border: 1px solid #a0aec0;\n    color: #4a5568;\n    &:hover {\n        background-color: #e2e8f0;\n    }\n"]))),cu=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,ou()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,scheduleData:[],scheduled_time:"",scheduled_date:"",frequency:"",CreatedTime:""},t.handleChange=t.handleChange.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displaySmartSchedule(),this.context.setSelectedTabOnCookies("manager")}},{key:"handleChange",value:function(e){this.setState({scheduled_date:e})}},{key:"displaySmartSchedule",value:(p=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","display_schedule"),t.set("Type","Import"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:n=e.sent,this.setState({loading:!1}),200==n.status&&n.data.success&&this.setState({scheduleData:n.data.info});case 10:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"deleteSchedule",value:(d=u(m().mark((function e(t,n){var o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","delete_schedule"),o.set("CreatedTime",t),o.set("Type","Import"),o.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:200==(a=e.sent).status&&a.data.success&&((r=this.state.scheduleData).splice(n,1),this.setState({scheduleData:r}),bn.success("Scheduled Import Deleted Successfully"));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"editSchedule",value:(a=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","edit_schedule"),o.set("CreatedTime",t),o.set("Type","Import"),o.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:200==(a=e.sent).status&&this.setState({scheduled_time:a.data.scheduled_time,frequency:a.data.frequency,CreatedTime:t,scheduled_date:_()(a.data.scheduled_date).toDate()}),document.getElementById("triggerSchedule").click();case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"updateSchedule",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","update_schedule"),t.set("Type","Import"),t.set("CreatedTime",this.state.CreatedTime),t.set("ScheduledTime",this.state.scheduled_time),t.set("ScheduledDate",_()(this.state.scheduled_date).format("YYYY-MM-DD")),t.set("Frequency",this.state.frequency),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=10,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:200==(n=e.sent).status&&n.data.success?bn.success("Schedule Updated Successfully"):bn.info("Not Updated"),this.displaySmartSchedule();case 13:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"confirmationToDeleteSchedule",value:function(e,n){var o=this;(0,yn.ZX)({customUI:function(a){var r=a.onClose;return t.createElement(au,null,t.createElement(iu,null,"Are you sure?"),t.createElement(su,null,"You want to delete this Scheduled Import?"),t.createElement(lu,{onClick:r},"Not Now"),t.createElement(ru,{onClick:function(){o.deleteSchedule(e,n),r()}},"Yes, Delete it!"))}})}},{key:"render",value:function(){var e=this,n={verticalAlign:"middle"},o={width:"40%"};return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane2 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.ScheduleInfo),t.createElement("div",{className:"table-responsive"},t.createElement("table",{className:"table table-manager"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{style:o},this.context.language.EventInfo),t.createElement("th",null,this.context.language.EventDate),t.createElement("th",{className:"text-center"},this.context.language.EventStatus),t.createElement("th",{className:"text-center"},this.context.language.Actions))),t.createElement("tbody",null,this.state.loading?t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("div",{className:"loader loader-1 mt15"}))):0!==this.state.scheduleData.length?this.state.scheduleData.map((function(a,r){return t.createElement("tr",null,t.createElement("td",{style:o},t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.FileName," ",":")," ",a.filename," "),t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.Purpose," ",":")," ",a.module)),t.createElement("td",null,t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.ScheduledDate," ",":")," ",_()(a.scheduled_date).format("ll")),t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.ScheduledTime," ",":")," ",a.scheduled_time),"0"!==a.frequency?t.createElement("p",null,t.createElement("span",{className:"text-label"},"Last Run"," ",":")," ","0000-00-00 00:00:00"!==a.last_run?_()(a.last_run).format("YYYY-MM-DD HH:mm:ss"):""):"","0"!==a.frequency?t.createElement("p",null,t.createElement("span",{className:"text-label"},"Next Run"," ",":")," ",_()(a.next_run).format("YYYY-MM-DD HH:mm:ss")):""),t.createElement("td",{className:"text-center",style:n},t.createElement("span",{className:"badge text-uppercase ".concat(a.status)},a.status)),t.createElement("td",{className:"text-center",style:n},t.createElement("ul",{className:"list-inline"},"completed"!=a.status?t.createElement("li",{className:"list-inline-item"},t.createElement("a",{className:"action-icon",style:{display:"completed"===a.status?"none":"block"},onClick:function(t){e.editSchedule(a.created_time,r)},"data-tip":"Edit"},t.createElement("i",{className:"csv-icon-edit-2"}))):"",t.createElement("li",{className:"list-inline-item"},t.createElement("a",{className:"action-icon",onClick:function(t){e.confirmationToDeleteSchedule(a.created_time,r)},"data-tip":"Delete"},t.createElement("i",{className:"csv-icon-trash-2"}))),t.createElement(dc,{effect:"solid"}))))})):t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("span",{className:"text-danger"},this.context.language.Youhavenotscheduledanyevent))))))))),t.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#edit_schedule_data",id:"triggerSchedule"}),t.createElement("div",{id:"edit_schedule_data",className:"modal fade",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("h1",{class:"main-heading"},this.context.language.EditSchedule),t.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("div",{class:"row"},t.createElement("div",{className:"col-md-8 offset-md-2"},t.createElement("div",{class:"col-md-3"},t.createElement("label",{for:"schedule-date"},this.context.language.Date," "),t.createElement("label",null,t.createElement(nu(),{selected:this.state.scheduled_date,id:"schedule-date",onChange:this.handleChange}))),t.createElement("div",{class:"form-group"},t.createElement("label",{for:"schedule-time"},this.context.language.Time),t.createElement("input",{type:"text",value:this.state.scheduled_time,class:"form-control",onChange:function(t){e.setState({scheduled_time:t.target.value})},id:"schedule-time"}),t.createElement("small",{id:"emailHelp",class:"form-text text-muted"},"21:43")),t.createElement("div",{class:"form-group"},t.createElement("label",{for:"schedule-frequency"},this.context.language.Frequency),t.createElement("select",{class:"form-control",value:this.state.frequency,name:"",onChange:function(t){e.setState({frequency:t.target.value})},id:"schedule-frequency"},t.createElement("option",{value:"OneTime"},this.context.language.OneTime),t.createElement("option",{value:"Daily"},this.context.language.Daily),t.createElement("option",{value:"Weekly"},this.context.language.Weekly),t.createElement("option",{value:"Monthly"},this.context.language.Monthly),t.createElement("option",{value:"Every 4 hours"},this.context.language.Every4hours),t.createElement("option",{value:"Every 2 hours"},this.context.language.Every2hours),t.createElement("option",{value:"Hourly"},this.context.language.Hourly),t.createElement("option",{value:"Every 30 mins"},this.context.language.Every30mins),t.createElement("option",{value:"Every 15 mins"},this.context.language.Every15mins),t.createElement("option",{value:"Every 10 mins"},this.context.language.Every10mins),t.createElement("option",{value:"Every 5 mins"},this.context.language.Every5mins)))))),t.createElement("div",{class:"modal-footer"},t.createElement("button",{type:"button",onClick:function(){e.updateSchedule()},"data-dismiss":"modal",class:"smack-btn smack-btn-primary"},this.context.language.SaveChanges))))))}}]);var o,a,d,p}(t.Component);(0,p.A)(cu,"contextType",f);var du=a(2284),uu=a(7800);function pu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}(e,t)||(0,uu.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hu=function(e,t){var n=new FormData;for(var o in e)n.append(o,e[o]);return t&&n.set("action",t),n},mu=function(e){var t=[];if(e)for(var n=0;n<e.length;n++){var o=e[n];if(1==Object.keys(o).length)t.push(o);else for(var a in o){var r={};o[a]&&(r[a]=o[a],t.push(r))}}return t},fu={core_fields:{languageName:"WordPressCoreFields",name:"WordPress Core Fields",resultKey:"CORE",Users_MandatoryFields:["user_login","user_email"]},featured_fields:{languageName:"FeaturedFields",name:"Featured Fields",resultKey:"FEATURED_IMAGE_META"},acf_image_meta_fields:{languageName:"ACFImageMetaFields",name:"ACF Image Meta Fields",resultKey:"ACFIMAGEMETA"},terms_and_taxonomies:{languageName:"TermsandTaxonomies",name:"Terms and Taxonomies",resultKey:"TERMS"},wordpress_custom_fields:{languageName:"WordPressCustomFields",name:"WordPress Custom Fields",resultKey:"CORECUSTFIELDS"},directory_pro_fields:{languageName:"DirectoryProFields",name:"Directory Pro Fields",resultKey:"DPF"},acf_pro_fields:{languageName:"ACFProFields",name:"ACF PRO Fields",resultKey:"ACF"},acf_fields:{languageName:"ACFFields",name:"ACF Fields",resultKey:"ACF"},acf_group_fields:{languageName:"ACFGroupFields",name:"ACF Group Fields",resultKey:"GF"},acf_repeater_fields:{languageName:"ACFRepeaterFields",name:"ACF Repeater Fields",resultKey:"RF"},acf_repeater_of_repeater_fields:{languageName:"ACFRepeaterOFRepeaterFields",name:"ACF Repeater OF Repeater Fields",resultKey:"RRF"},acf_flexible_fields:{languageName:"ACFFlexibleFields",name:"ACF Flexible Fields",resultKey:"FC"},types_fields:{languageName:"TypesCustomFields",name:"Types Custom Fields",resultKey:"TYPES"},types_image_meta_fields:{languageName:"TypesImageMetaFields",name:"Types Image Meta Fields",resultKey:"TYPESIMAGEMETA"},pods_fields:{languageName:"PodsFields",name:"Pods Fields",resultKey:"PODS"},pods_image_meta_fields:{languageName:"PodsImageMetaFields",name:"Pods Image Meta Fields",resultKey:"PODSIMAGEMETA"},lifter_course_settings_fields:{languageName:"LifterCourseSettingsFields",name:"Lifter Course Settings Fields",resultKey:"LIFTERCOURSE"},lifter_review_settings_fields:{languageName:"LifterReviewSettingsFields",name:"Lifter Review Settings Fields",resultKey:"LIFTERREVIEW"},lifter_coupon_settings_fields:{languageName:"LifterCouponSettingsFields",name:"Lifter Coupon Settings Fields",resultKey:"LIFTERCOUPON"},lifter_lesson_settings_fields:{languageName:"LifterLessonSettingsFields",name:"Lifter Lesson Settings Fields",resultKey:"LIFTERLESSON"},course_settings_fields_stm:{languageName:"CourseSettingsFields",name:"Course Settings Fields",resultKey:"STMCOURSE"},curriculum_settings_fields_stm:{languageName:"CurriculumSettingsFields",name:"Curriculum Settings Fields",resultKey:"STMCURRICULUM"},lesson_settings_fields_stm:{languageName:"LessonSettingsFields",name:"Lesson Settings Fields",resultKey:"STMLESSON"},quiz_settings_fields_stm:{languageName:"QuizSettingsFields",name:"Quiz Settings Fields",resultKey:"STMQUIZ"},question_settings_fields_stm:{languageName:"QuestionSettingsFields",name:"Question Settings Fields",resultKey:"STMQUESTION"},order_settings_fields_stm:{languageName:"OrderSettingsFields",name:"Order Settings Fields",resultKey:"STMORDER"},custom_fields_suite_fields:{languageName:"CustomFieldSuite",name:"Custom Field Suite",resultKey:"CFS"},all_in_one_seo_fields:{languageName:"AllInOneSeoFields",name:"All In One Seo Fields",resultKey:"AIOSEO"},yoast_seo_fields:{languageName:"YoastSeoFields",name:"Yoast Seo Fields",resultKey:"YOASTSEO"},wpcomplete_fields:{languageName:"WPCompleteFields",name:"WPComplete Fields",resultKey:"WPCOMPLETE"},seopress_fields:{languageName:"SeoPressFields",name:"SEOPress Fields",resultKey:"SEOPRESS"},elementor_meta_fields:{languageName:"ElementorFields",name:"Elementor Fields",resultKey:"ELEMENTOR"},rank_math_fields:{languageName:"RankMathFields",name:"Rank Math Fields",resultKey:"RANKMATH"},rank_math_pro_fields:{languageName:"RankMathProFields",name:"Rank Math Pro Fields",resultKey:"RANKMATH"},billing_and_shipping_information:{languageName:"BillingAndShippingInformation",name:"Billing And Shipping Information",resultKey:"BSI"},custom_fields_wp_members:{languageName:"CustomFieldsWPMemberFields",name:"Custom Fields WP Member Fields",resultKey:"WPMEMBERS"},custom_fields_members:{languageName:"CustomFieldsMemberFields",name:"Custom Fields Member Fields",resultKey:"MEMBERS"},product_meta_fields:{languageName:"ProductMetaFields",name:"WooCommerce Product Meta Fields",resultKey:"ECOMMETA"},product_attr_fields:{languageName:"ProductAttrFields",name:"WooCommerce Product Attribute Fields",resultKey:"ATTRMETA"},product_bundle_meta_fields:{languageName:"ProductBundleMetaFields",name:"WooCommerce Product Bundle Meta Fields",resultKey:"BUNDLEMETA"},listing_meta_fields:{languageName:"ListingMetaFields",name:"Listing Fields",resultKey:"LISTINGMETA"},wprentals_meta_fields:{languageName:"PropertyMetaFields",name:"Owner Fields",resultKey:"OWNERMETA"},wprentals_owner_fields:{languageName:"OwnerMetaFields",name:"Listing Property Fields",resultKey:"PROPERTYMETA"},product_image_meta_fields:{languageName:"ProductImageMetaFields",name:"Product Image Meta Fields",resultKey:"PRODUCTIMAGEMETA"},order_meta_fields:{languageName:"OrderMetaFields",name:"WooCommerce Order Meta Fields",resultKey:"ORDERMETA"},ppom_meta_fields:{languageName:"PPOMMetaFields",name:"PPOM Meta Fields",resultKey:"PPOMMETA"},epo_meta_fields:{languageName:"EPOMetaFields",name:"EPO Meta Fields",resultKey:"EPOMETA"},wcpa_meta_fields:{languageName:"WCPAMetaFields",name:"WCPA Meta Fields",resultKey:"WCPAMETA"},fpf_meta_fields:{languageName:"FPFMetaFields",name:"FPF Meta Fields",resultKey:"FPFMETA"},coupon_meta_fields:{languageName:"CouponMetaFields",name:"WooCommerce Coupon Meta Fields",resultKey:"COUPONMETA"},refund_meta_fields:{languageName:"RefundMetaFields",name:"Refund Meta Fields",resultKey:"REFUNDMETA"},wp_ecom_custom_fields:{languageName:"WPECommerceCustomFields",name:"WP ECommerce Custom Fields",resultKey:"WPECOMMETA"},events_manager_fields:{languageName:"EventsManagerFields",name:"Events Manager Fields",resultKey:"EVENTS"},nextgen_gallery_fields:{languageName:"NextGENGalleryFields",name:"Next GEN Gallery Fields",resultKey:"NEXTGEN"},wpml_fields:{languageName:"WPMLFields",name:"WPML Fields",resultKey:"WPML"},cmb2_fields:{languageName:"CMB2CustomFields",name:"CMB2 Custom Fields",resultKey:"CMB2"},bp_fields:{languageName:"BuddyFields",name:"BuddyPress Fields",resultKey:"BP"},jet_booking_fields:{languageName:"JetEngineBookingFields",name:"Jet Engine Booking Fields",resultKey:"JEBOOKING"},jet_review_fields:{languageName:"JetEngineReviewFields",name:"Jet Engine Review Fields",resultKey:"JEREVIEW"},jetengine_fields:{languageName:"JetEngineFields",name:"Jet Engine Fields",resultKey:"JE"},jetengine_rf_fields:{languageName:"JetEngineRFFields",name:"Jet Engine RF Fields",resultKey:"JERF"},jetenginecpt_fields:{languageName:"JetEngineCPTFields",name:"Jet Engine CPT Fields",resultKey:"JECPT"},jetenginecpt_rf_fields:{languageName:"JetEngineCPTRFFields",name:"Jet Engine CPT RF Fields",resultKey:"JECPTRF"},jetenginecct_fields:{languageName:"JetEngineCCTFields",name:"Jet Engine CCT Fields",resultKey:"JECCT"},jetenginecct_rf_fields:{languageName:"JetEngineCCTRFFields",name:"Jet Engine CCT RF Fields",resultKey:"JECCTRF"},jetenginetaxonomy_fields:{languageName:"JetEngineTaxonomyFields",name:"Jet Engine Taxonomy Fields",resultKey:"JETAX"},jetenginetaxonomy_rf_fields:{languageName:"JetEngineTaxonomyRFFields",name:"Jet Engine Taxonomy RF Fields",resultKey:"JETAXRF"},jetengine_rel_fields:{languageName:"JetEngineRelationsFields",name:"Jet Engine Relations Fields",resultKey:"JEREL"},course_settings_fields:{languageName:"CourseSettingsFields",name:"Course Settings Fields",resultKey:"LPCOURSE"},curriculum_settings_fields:{languageName:"CurriculumSettingsFields",name:"Curriculum Settings Fields",resultKey:"LPCURRICULUM"},lesson_settings_fields:{languageName:"LessonSettingsFields",name:"Lesson Settings Fields",resultKey:"LPLESSON"},quiz_settings_fields:{languageName:"QuizSettingsFields",name:"Quiz Settings Fields",resultKey:"LPQUIZ"},question_settings_fields:{languageName:"QuestionSettingsFields",name:"Question Settings Fields",resultKey:"LPQUESTION"},order_settings_fields:{languageName:"OrderSettingsFields",name:"Order Settings Fields",resultKey:"LPORDER"},forum_attributes_fields:{languageName:"forumattributesfields",name:"Forum Attributes Fields",resultKey:"FORUM"},topic_attributes_fields:{languageName:"topicattributesfields",name:"Topic Attributes Fields",resultKey:"TOPIC"},reply_attributes_fields:{languageName:"replyattributesfields",name:"Reply Attributes Fields",resultKey:"REPLY"},Polylang_settings_fields:{languageName:"polylangfields",name:"Polylang Settings Fields",resultKey:"POLYLANG"},metabox_fields:{languageName:"MetaBoxFields",name:"Meta Box Fields",resultKey:"METABOX"},acpt_fields:{languageName:"ACPTFields",name:"ACPT Fields",resultKey:"ACPT"},metabox_relations_fields:{languageName:"MetaBoxRelationFields",name:"Meta Box Relation Fields",resultKey:"METABOXRELATION"},metabox_group_fields:{languageName:"MetaBoxGroupFields",name:"Meta Box Group Fields",resultKey:"METABOXGROUP"},job_listing_fields:{languageName:"JobListingFields",name:"Job Listing Fields",resultKey:"JOB"},fifu_post_settings_fields:{languageName:"FifuPostFields",name:"Fifu Post Fields",resultKey:"FIFUPOSTS"},fifu_page_settings_fields:{languageName:"FifuPageFields",name:"Fifu Page Fields",resultKey:"FIFUPAGE"},fifu_custompost_settings_fields:{languageName:"FifuCustomPostFields",name:"Fifu Custom Post Fields",resultKey:"FIFUCUSTOMPOST"}},gu=function(e){return fu[e]},vu=a(8941);function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yu(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function wu(e,t){if(null==e)return{};var n,o,a=yu(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ku=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],xu=a(8168),Eu=a(8293),Su=a(3145);function Mu(e){return function(e){if(Array.isArray(e))return(0,Su.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,uu.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Tu=a(5684),Cu=a(41),Au=a(1287),Du=a(3174),Pu=(a(5655),function(e,n){var o=arguments;if(null==n||!Tu.h.call(n,"css"))return t.createElement.apply(void 0,o);var a=o.length,r=new Array(a);r[0]=Tu.E,r[1]=(0,Tu.c)(e,n);for(var i=2;i<a;i++)r[i]=o[i];return t.createElement.apply(null,r)}),Lu=(0,Tu.w)((function(e,n){var o=e.styles,a=(0,Du.J)([o],void 0,t.useContext(Tu.T));if(!Tu.i){for(var r,i=a.name,s=a.styles,l=a.next;void 0!==l;)i+=" "+l.name,s+=l.styles,l=l.next;var c=!0===n.compat,d=n.insert("",{name:i,styles:s},n.sheet,c);return c?null:t.createElement("style",((r={})["data-emotion"]=n.key+"-global "+i,r.dangerouslySetInnerHTML={__html:d},r.nonce=n.sheet.nonce,r))}var u=t.useRef();return(0,Au.i)((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),o=!1,r=document.querySelector('style[data-emotion="'+e+" "+a.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==r&&(o=!0,r.setAttribute("data-emotion",e),t.hydrate([r])),u.current=[t,o],function(){t.flush()}}),[n]),(0,Au.i)((function(){var e=u.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==a.next&&(0,Cu.sk)(n,a.next,!0),t.tags.length){var o=t.tags[t.tags.length-1].nextElementSibling;t.before=o,t.flush()}n.insert("",a,t,!1)}}),[n,a.name]),null}));function Nu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,Du.J)(t)}var Iu=function(){var e=Nu.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const Ou=Math.min,Ru=Math.max,Fu=Math.round,ju=Math.floor,Yu=e=>({x:e,y:e});function zu(){return"undefined"!=typeof window}function Bu(e){return Uu(e)?(e.nodeName||"").toLowerCase():"#document"}function Hu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vu(e){var t;return null==(t=(Uu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Uu(e){return!!zu()&&(e instanceof Node||e instanceof Hu(e).Node)}function Wu(e){return!!zu()&&(e instanceof Element||e instanceof Hu(e).Element)}function qu(e){return!!zu()&&(e instanceof HTMLElement||e instanceof Hu(e).HTMLElement)}function $u(e){return!(!zu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Hu(e).ShadowRoot)}function Gu(e){const{overflow:t,overflowX:n,overflowY:o,display:a}=Ku(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(a)}function Ku(e){return Hu(e).getComputedStyle(e)}function Ju(e){const t=function(e){if("html"===Bu(e))return e;const t=e.assignedSlot||e.parentNode||$u(e)&&e.host||Vu(e);return $u(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Bu(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:qu(t)&&Gu(t)?t:Ju(t)}function Xu(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=Ju(e),r=a===(null==(o=e.ownerDocument)?void 0:o.body),i=Hu(a);if(r){const e=Qu(i);return t.concat(i,i.visualViewport||[],Gu(a)?a:[],e&&n?Xu(e):[])}return t.concat(a,Xu(a,[],n))}function Qu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zu(e){return Wu(e)?e:e.contextElement}function ep(e){const t=Zu(e);if(!qu(t))return Yu(1);const n=t.getBoundingClientRect(),{width:o,height:a,$:r}=function(e){const t=Ku(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=qu(e),r=a?e.offsetWidth:n,i=a?e.offsetHeight:o,s=Fu(n)!==r||Fu(o)!==i;return s&&(n=r,o=i),{width:n,height:o,$:s}}(t);let i=(r?Fu(n.width):n.width)/o,s=(r?Fu(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const tp=Yu(0);function np(e){const t=Hu(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tp}function op(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),r=Zu(e);let i=Yu(1);t&&(o?Wu(o)&&(i=ep(o)):i=ep(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Hu(e))&&t}(r,n,o)?np(r):Yu(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,d=a.width/i.x,u=a.height/i.y;if(r){const e=Hu(r),t=o&&Wu(o)?Hu(o):o;let n=e,a=Qu(n);for(;a&&o&&t!==n;){const e=ep(a),t=a.getBoundingClientRect(),o=Ku(a),r=t.left+(a.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=r,c+=i,n=Hu(a),a=Qu(n)}}return function(e){const{x:t,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:t,right:t+o,bottom:n+a,x:t,y:n}}({width:d,height:u,x:l,y:c})}function ap(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var rp=t.useLayoutEffect,ip=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],sp=function(){};function lp(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function cp(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];var r=[].concat(o);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push("".concat(lp(e,i)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var dp=function(e){return function(e){return Array.isArray(e)}(e)?e.filter(Boolean):"object"===(0,du.A)(e)&&null!==e?[e]:[]},up=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,bu({},wu(e,ip))},pp=function(e,t,n){var o=e.cx,a=e.getStyles,r=e.getClassNames,i=e.className;return{css:a(t,e),className:o(null!=n?n:{},r(t,e),i)}};function hp(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function mp(e){return hp(e)?window.pageYOffset:e.scrollTop}function fp(e,t){hp(e)?window.scrollTo(0,t):e.scrollTop=t}function gp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:sp,a=mp(e),r=t-a,i=0;!function t(){var s=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(i+=10,a,r,n);fp(e,s),i<n?window.requestAnimationFrame(t):o(e)}()}function vp(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),a=t.offsetHeight/3;o.bottom+a>n.bottom?fp(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):o.top-a<n.top&&fp(e,Math.max(t.offsetTop-a,0))}function _p(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var bp=!1,yp={get passive(){return bp=!0}},wp="undefined"!=typeof window?window:{};wp.addEventListener&&wp.removeEventListener&&(wp.addEventListener("p",sp,yp),wp.removeEventListener("p",sp,!1));var kp=bp;function xp(e){return null!=e}function Ep(e,t,n){return e?t:n}var Sp=["children","innerProps"],Mp=["children","innerProps"];var Tp,Cp=function(e){return"auto"===e?"bottom":e},Ap=(0,t.createContext)(null),Dp=function(e){var n=e.children,o=e.minMenuHeight,a=e.maxMenuHeight,r=e.menuPlacement,i=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,c=((0,t.useContext)(Ap)||{}).setPortalPlacement,d=(0,t.useRef)(null),u=pu((0,t.useState)(a),2),p=u[0],h=u[1],m=pu((0,t.useState)(null),2),f=m[0],g=m[1],v=l.spacing.controlHeight;return rp((function(){var e=d.current;if(e){var t="fixed"===i,n=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,a=e.placement,r=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d,u=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),h=p.bottom,m=p.height,f=p.top,g=n.offsetParent.getBoundingClientRect().top,v=i||hp(d=l)?window.innerHeight:d.clientHeight,_=mp(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=g-y,k=v-f,x=w+_,E=u-_-f,S=h-v+_+b,M=_+f-y,T=160;switch(a){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(E>=m&&!i)return r&&gp(l,S,T),{placement:"bottom",maxHeight:t};if(!i&&E>=o||i&&k>=o)return r&&gp(l,S,T),{placement:"bottom",maxHeight:i?k-b:E-b};if("auto"===a||i){var C=t,A=i?w:x;return A>=o&&(C=Math.min(A-b-s,t)),{placement:"top",maxHeight:C}}if("bottom"===a)return r&&fp(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(x>=m&&!i)return r&&gp(l,M,T),{placement:"top",maxHeight:t};if(!i&&x>=o||i&&w>=o){var D=t;return(!i&&x>=o||i&&w>=o)&&(D=i?w-y:x-y),r&&gp(l,M,T),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}({maxHeight:a,menuEl:e,minHeight:o,placement:r,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});h(n.maxHeight),g(n.placement),null==c||c(n.placement)}}),[a,r,i,s,o,c,v]),n({ref:d,placerProps:bu(bu({},e),{},{placement:f||Cp(r),maxHeight:p})})},Pp=function(e,t){var n=e.theme,o=n.spacing.baseUnit,a=n.colors;return bu({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Lp=Pp,Np=Pp,Ip=["size"],Op=["innerProps","isRtl","size"],Rp={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Fp=function(e){var t=e.size,n=wu(e,Ip);return Pu("svg",(0,xu.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Rp},n))},jp=function(e){return Pu(Fp,(0,xu.A)({size:20},e),Pu("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Yp=function(e){return Pu(Fp,(0,xu.A)({size:20},e),Pu("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},zp=function(e,t){var n=e.isFocused,o=e.theme,a=o.spacing.baseUnit,r=o.colors;return bu({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*a,":hover":{color:n?r.neutral80:r.neutral40}})},Bp=zp,Hp=zp,Vp=Iu(Tp||(Tp=g(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),Up=function(e){var t=e.delay,n=e.offset;return Pu("span",{css:Nu({animation:"".concat(Vp," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wp=["data"],qp=["innerRef","isDisabled","isHidden","inputClassName"],$p={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Gp={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":bu({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$p)},Kp=function(e){return bu({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},$p)},Jp=function(e){var t=e.children,n=e.innerProps;return Pu("div",n,t)},Xp={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Pu(jp,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.innerRef,r=e.innerProps,i=e.menuIsOpen;return Pu("div",(0,xu.A)({ref:a},pp(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":i}),r,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Pu(Yp,null))},DownChevron:Yp,CrossIcon:jp,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.getClassNames,r=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return Pu("div",(0,xu.A)({},pp(e,"group",{group:!0}),s),Pu(r,(0,xu.A)({},i,{selectProps:d,theme:c,getStyles:o,getClassNames:a,cx:n}),l),Pu("div",null,t))},GroupHeading:function(e){var t=up(e);t.data;var n=wu(t,Wp);return Pu("div",(0,xu.A)({},pp(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Pu("span",(0,xu.A)({},t,pp(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=up(e),a=o.innerRef,r=o.isDisabled,i=o.isHidden,s=o.inputClassName,l=wu(o,qp);return Pu("div",(0,xu.A)({},pp(e,"input",{"input-container":!0}),{"data-value":n||""}),Pu("input",(0,xu.A)({className:t({input:!0},s),ref:a,style:Kp(i),disabled:r},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,a=void 0===o?4:o,r=wu(e,Op);return Pu("div",(0,xu.A)({},pp(bu(bu({},r),{},{innerProps:t,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Pu(Up,{delay:0,offset:n}),Pu(Up,{delay:160,offset:!0}),Pu(Up,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,a=e.isMulti;return Pu("div",(0,xu.A)({},pp(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},n),t)},MenuPortal:function(e){var n=e.appendTo,a=e.children,r=e.controlElement,i=e.innerProps,s=e.menuPlacement,l=e.menuPosition,c=(0,t.useRef)(null),d=(0,t.useRef)(null),u=pu((0,t.useState)(Cp(s)),2),p=u[0],h=u[1],m=(0,t.useMemo)((function(){return{setPortalPlacement:h}}),[]),f=pu((0,t.useState)(null),2),g=f[0],v=f[1],_=(0,t.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===l?0:window.pageYOffset,n=e[p]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||v({offset:n,rect:e})}}),[r,l,p,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);rp((function(){_()}),[_]);var b=(0,t.useCallback)((function(){"function"==typeof d.current&&(d.current(),d.current=null),r&&c.current&&(d.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=Zu(e),d=a||r?[...c?Xu(c):[],...Xu(t)]:[];d.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const u=c&&s?function(e,t){let n,o=null;const a=Vu(e);function r(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const m={rootMargin:-ju(u)+"px "+-ju(a.clientWidth-(d+p))+"px "+-ju(a.clientHeight-(u+h))+"px "+-ju(d)+"px",threshold:Ru(0,Ou(1,l))||1};let f=!0;function g(t){const o=t[0].intersectionRatio;if(o!==l){if(!f)return i();o?i(!1,o):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}1!==o||ap(c,e.getBoundingClientRect())||i(),f=!1}try{o=new IntersectionObserver(g,{...m,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(g,m)}o.observe(e)}(!0),r}(c,n):null;let p,h=-1,m=null;i&&(m=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=m)||e.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let f=l?op(e):null;return l&&function t(){const o=op(e);f&&!ap(f,o)&&n(),f=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{a&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(r,c.current,_,{elementResize:"ResizeObserver"in window}))}),[r,_]);rp((function(){b()}),[b]);var y=(0,t.useCallback)((function(e){c.current=e,b()}),[b]);if(!n&&"fixed"!==l||!g)return null;var w=Pu("div",(0,xu.A)({ref:y},pp(bu(bu({},e),{},{offset:g.offset,position:l,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),a);return Pu(Ap.Provider,{value:m},n?(0,o.createPortal)(w,n):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,a=wu(e,Mp);return Pu("div",(0,xu.A)({},pp(bu(bu({},a),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,a=wu(e,Sp);return Pu("div",(0,xu.A)({},pp(bu(bu({},a),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,a=e.innerProps,r=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return Pu(l,{data:o,innerProps:bu(bu({},pp(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),a),selectProps:s},Pu(c,{data:o,innerProps:bu({},pp(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Pu(d,{data:o,innerProps:bu(bu({},pp(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},MultiValueContainer:Jp,MultiValueLabel:Jp,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Pu("div",(0,xu.A)({role:"button"},n),t||Pu(jp,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.isSelected,r=e.innerRef,i=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:r,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,a=e.isRtl;return Pu("div",(0,xu.A)({},pp(e,"container",{"--is-disabled":o,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Pu("div",(0,xu.A)({},pp(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,a=e.hasValue;return Pu("div",(0,xu.A)({},pp(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),n),t)}},Qp=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zp(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(a=t[n])||Qp(o)&&Qp(a)))return!1;var o,a;return!0}for(var eh={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},th=function(e){return Pu("span",(0,xu.A)({css:eh},e))},nh={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,a=e.context,r=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return r?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,a=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(o,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,a=e.label,r=void 0===a?"":a,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(r," focused, ").concat(d(i,n),".");if("menu"===t&&c){var u=s?" disabled":"",p="".concat(l?" selected":"").concat(u);return"".concat(r).concat(p,", ").concat(d(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},oh=function(e){var n=e.ariaSelection,o=e.focusedOption,a=e.focusedValue,r=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,d=e.isAppleDevice,u=l.ariaLiveMessages,p=l.getOptionLabel,h=l.inputValue,m=l.isMulti,f=l.isOptionDisabled,g=l.isSearchable,v=l.menuIsOpen,_=l.options,b=l.screenReaderStatus,y=l.tabSelectsValue,w=l.isLoading,k=l["aria-label"],x=l["aria-live"],E=(0,t.useMemo)((function(){return bu(bu({},nh),u||{})}),[u]),S=(0,t.useMemo)((function(){var e,t="";if(n&&E.onChange){var o=n.option,a=n.options,r=n.removedValue,i=n.removedValues,l=n.value,c=r||o||(e=l,Array.isArray(e)?null:e),d=c?p(c):"",u=a||i||void 0,h=u?u.map(p):[],m=bu({isDisabled:c&&f(c,s),label:d,labels:h},n);t=E.onChange(m)}return t}),[n,E,f,s,p]),M=(0,t.useMemo)((function(){var e="",t=o||a,n=!!(o&&s&&s.includes(o));if(t&&E.onFocus){var i={focused:t,label:p(t),isDisabled:f(t,s),isSelected:n,options:r,context:t===o?"menu":"value",selectValue:s,isAppleDevice:d};e=E.onFocus(i)}return e}),[o,a,p,f,E,r,s,d]),T=(0,t.useMemo)((function(){var e="";if(v&&_.length&&!w&&E.onFilter){var t=b({count:r.length});e=E.onFilter({inputValue:h,resultsMessage:t})}return e}),[r,h,v,E,_,b,w]),C="initial-input-focus"===(null==n?void 0:n.action),A=(0,t.useMemo)((function(){var e="";if(E.guidance){var t=a?"value":v?"menu":"input";e=E.guidance({"aria-label":k,context:t,isDisabled:o&&f(o,s),isMulti:m,isSearchable:g,tabSelectsValue:y,isInitialFocus:C})}return e}),[k,o,a,m,f,g,v,E,s,y,C]),D=Pu(t.Fragment,null,Pu("span",{id:"aria-selection"},S),Pu("span",{id:"aria-focused"},M),Pu("span",{id:"aria-results"},T),Pu("span",{id:"aria-guidance"},A));return Pu(t.Fragment,null,Pu(th,{id:c},C&&D),Pu(th,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!C&&D))},ah=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],rh=new RegExp("["+ah.map((function(e){return e.letters})).join("")+"]","g"),ih={},sh=0;sh<ah.length;sh++)for(var lh=ah[sh],ch=0;ch<lh.letters.length;ch++)ih[lh.letters[ch]]=lh.base;var dh=function(e){return e.replace(rh,(function(e){return ih[e]}))},uh=function(e,t){void 0===t&&(t=Zp);var n=null;function o(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}(dh),ph=function(e){return e.replace(/^\s+|\s+$/g,"")},hh=function(e){return"".concat(e.label," ").concat(e.value)},mh=["innerRef"];function fh(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=Object.entries(e).filter((function(e){var t=pu(e,1)[0];return!n.includes(t)}));return a.reduce((function(e,t){var n=pu(t,2),o=n[0],a=n[1];return e[o]=a,e}),{})}(wu(e,mh),"onExited","in","enter","exit","appear");return Pu("input",(0,xu.A)({ref:t},n,{css:Nu({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var gh=["boxSizing","height","overflow","paddingRight","position"],vh={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _h(e){e.cancelable&&e.preventDefault()}function bh(e){e.stopPropagation()}function yh(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function wh(){return"ontouchstart"in window||navigator.maxTouchPoints}var kh=!("undefined"==typeof window||!window.document||!window.document.createElement),xh=0,Eh={capture:!1,passive:!1},Sh=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Mh={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Th(e){var n=e.children,o=e.lockEnabled,a=e.captureEnabled,r=function(e){var n=e.isEnabled,o=e.onBottomArrive,a=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,s=(0,t.useRef)(!1),l=(0,t.useRef)(!1),c=(0,t.useRef)(0),d=(0,t.useRef)(null),u=(0,t.useCallback)((function(e,t){if(null!==d.current){var n=d.current,c=n.scrollTop,u=n.scrollHeight,p=n.clientHeight,h=d.current,m=t>0,f=u-p-c,g=!1;f>t&&s.current&&(a&&a(e),s.current=!1),m&&l.current&&(i&&i(e),l.current=!1),m&&t>f?(o&&!s.current&&o(e),h.scrollTop=u,g=!0,s.current=!0):!m&&-t>c&&(r&&!l.current&&r(e),h.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[o,a,r,i]),p=(0,t.useCallback)((function(e){u(e,e.deltaY)}),[u]),h=(0,t.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),m=(0,t.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;u(e,t)}),[u]),f=(0,t.useCallback)((function(e){if(e){var t=!!kp&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}}),[m,h,p]),g=(0,t.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))}),[m,h,p]);return(0,t.useEffect)((function(){if(n){var e=d.current;return f(e),function(){g(e)}}}),[n,f,g]),function(e){d.current=e}}({isEnabled:void 0===a||a,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var n=e.isEnabled,o=e.accountForScrollbars,a=void 0===o||o,r=(0,t.useRef)({}),i=(0,t.useRef)(null),s=(0,t.useCallback)((function(e){if(kh){var t=document.body,n=t&&t.style;if(a&&gh.forEach((function(e){var t=n&&n[e];r.current[e]=t})),a&&xh<1){var o=parseInt(r.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+o||0;Object.keys(vh).forEach((function(e){var t=vh[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&wh()&&(t.addEventListener("touchmove",_h,Eh),e&&(e.addEventListener("touchstart",yh,Eh),e.addEventListener("touchmove",bh,Eh))),xh+=1}}),[a]),l=(0,t.useCallback)((function(e){if(kh){var t=document.body,n=t&&t.style;xh=Math.max(xh-1,0),a&&xh<1&&gh.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&wh()&&(t.removeEventListener("touchmove",_h,Eh),e&&(e.removeEventListener("touchstart",yh,Eh),e.removeEventListener("touchmove",bh,Eh)))}}),[a]);return(0,t.useEffect)((function(){if(n){var e=i.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){i.current=e}}({isEnabled:o});return Pu(t.Fragment,null,o&&Pu("div",{onClick:Sh,css:Mh}),n((function(e){r(e),i(e)})))}var Ch={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ah=function(e){var t=e.name,n=e.onFocus;return Pu("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ch,value:"",onChange:function(){}})};function Dh(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ph(){return Dh(/^Mac/i)}var Lh={clearIndicator:Hp,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,a=e.theme,r=a.colors,i=a.borderRadius;return bu({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:Bp,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,a=n.spacing;return bu({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,a=o.spacing.baseUnit,r=o.colors;return bu({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(e,t){var n=e.isDisabled,o=e.value,a=e.theme,r=a.spacing,i=a.colors;return bu(bu({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Gp),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,a=e.theme,r=a.colors,i=a.spacing.baseUnit;return bu({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i})},loadingMessage:Np,menu:function(e,t){var n,o=e.placement,a=e.theme,r=a.borderRadius,i=a.spacing,s=a.colors;return bu((n={label:"menu"},(0,p.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),(0,p.A)(n,"position","absolute"),(0,p.A)(n,"width","100%"),(0,p.A)(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return bu({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,a=n.borderRadius,r=n.colors;return bu({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,a=n.colors,r=e.cropWithEllipsis;return bu({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,a=n.borderRadius,r=n.colors,i=e.isFocused;return bu({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:i?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:Lp,option:function(e,t){var n=e.isDisabled,o=e.isFocused,a=e.isSelected,r=e.theme,i=r.spacing,s=r.colors;return bu({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,a=n.colors;return bu({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,a=o.spacing,r=o.colors;return bu({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,a=e.hasValue,r=e.selectProps.controlShouldRenderValue;return bu({alignItems:"center",display:o&&a&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Nh={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ih={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_p(),captureMenuScroll:!_p(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=bu({ignoreCase:!0,ignoreAccents:!0,stringify:hh,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,a=n.ignoreAccents,r=n.stringify,i=n.trim,s=n.matchFrom,l=i?ph(t):t,c=i?ph(r(e)):r(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),a&&(l=uh(l),c=dh(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Oh(e,t,n,o){return{type:"option",data:t,isDisabled:Vh(e,t,n),isSelected:Uh(e,t,n),label:Bh(e,t),value:Hh(e,t),index:o}}function Rh(e,t){return e.options.map((function(n,o){if("options"in n){var a=n.options.map((function(n,o){return Oh(e,n,t,o)})).filter((function(t){return Yh(e,t)}));return a.length>0?{type:"group",data:n,options:a,index:o}:void 0}var r=Oh(e,n,t,o);return Yh(e,r)?r:void 0})).filter(xp)}function Fh(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Mu(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function jh(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,Mu(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function Yh(e,t){var n=e.inputValue,o=void 0===n?"":n,a=t.data,r=t.isSelected,i=t.label,s=t.value;return(!qh(e)||!r)&&Wh(e,{label:i,value:s,data:a},o)}var zh=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Bh=function(e,t){return e.getOptionLabel(t)},Hh=function(e,t){return e.getOptionValue(t)};function Vh(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Uh(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=Hh(e,t);return n.some((function(t){return Hh(e,t)===o}))}function Wh(e,t,n){return!e.filterOption||e.filterOption(t,n)}var qh=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},$h=1,Gh=function(e){(0,c.A)(o,e);var n=(0,Eu.A)(o);function o(e){var t;if((0,r.A)(this,o),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Ph()||Dh(/^iPhone/i)||Dh(/^iPad/i)||Ph()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var o=t.props,a=o.onChange,r=o.name;n.name=r,t.ariaOnChange(e,n),a(e,n)},t.setValue=function(e,n,o){var a=t.props,r=a.closeMenuOnSelect,i=a.isMulti,s=a.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),r&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:o})},t.selectOption=function(e){var n=t.props,o=n.blurInputOnSelect,a=n.isMulti,r=n.name,i=t.state.selectValue,s=a&&t.isOptionSelected(e,i),l=t.isOptionDisabled(e,i);if(s){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:r});a?t.setValue([].concat(Mu(i),[e]),"select-option",e):t.setValue(e,"select-option")}o&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,o=t.state.selectValue,a=t.getOptionValue(e),r=o.filter((function(e){return t.getOptionValue(e)!==a})),i=Ep(n,r,r[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ep(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,o=n[n.length-1],a=n.slice(0,n.length-1),r=Ep(e,a,a[0]||null);o&&t.onChange(r,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return zh(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return jh(Rh(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return cp.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Bh(t.props,e)},t.getOptionValue=function(e){return Hh(t.props,e)},t.getStyles=function(e,n){var o=t.props.unstyled,a=Lh[e](n,o);a.boxSizing="border-box";var r=t.props.styles[e];return r?r(a,n):a},t.getClassNames=function(e,n){var o,a;return null===(o=(a=t.props.classNames)[e])||void 0===o?void 0:o.call(a,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,bu(bu({},Xp),e.components);var e},t.buildCategorizedOptions=function(){return Rh(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Fh(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:bu({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,o=n.isMulti,a=n.menuIsOpen;t.focusInput(),a?(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&hp(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,o=n&&n.item(0);o&&(t.initialTouchX=o.clientX,t.initialTouchY=o.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,o=n&&n.item(0);if(o){var a=Math.abs(o.clientX-t.initialTouchX),r=Math.abs(o.clientY-t.initialTouchY);t.userIsDragging=a>5||r>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,o=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(o,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return qh(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,o=n.isMulti,a=n.backspaceRemovesValue,r=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,d=n.onKeyDown,u=n.tabSelectsValue,p=n.openMenuOnFocus,h=t.state,m=h.focusedOption,f=h.focusedValue,g=h.selectValue;if(!(l||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||i)return;t.focusValue("previous");break;case"ArrowRight":if(!o||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(f)t.removeValue(f);else{if(!a)return;o?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!m||p&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):s&&r&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++$h),t.state.selectValue=dp(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),s=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=a,t.state.focusedOption=i[s],t.state.focusedOptionId=zh(a,i[s])}return t}return(0,i.A)(o,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&vp(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&o&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(vp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,a=n.isFocused,r=this.buildFocusableOptions(),i="first"===e?0:r.length-1;if(!this.props.isMulti){var s=r.indexOf(o[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[i],focusedOptionId:this.getFocusedOptionId(r[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(o);o||(a=-1);var r=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===a?0:-1===a?r:a-1;break;case"next":a>-1&&a<r&&(i=a+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var a=0,r=o.indexOf(n);n||(r=-1),"up"===e?a=r>0?r-1:o.length-1:"down"===e?a=(r+1)%o.length:"pageup"===e?(a=r-t)<0&&(a=0):"pagedown"===e?(a=r+t)>o.length-1&&(a=o.length-1):"last"===e&&(a=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Nh):bu(bu({},Nh),this.props.theme):Nh}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,a=this.getValue,r=this.selectOption,i=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,d=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:a,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:d,selectOption:r,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Vh(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Uh(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Wh(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,n=e.isDisabled,o=e.isSearchable,a=e.inputId,r=e.inputValue,i=e.tabIndex,s=e.form,l=e.menuIsOpen,c=e.required,d=this.getComponents().Input,u=this.state,p=u.inputIsHidden,h=u.ariaSelection,m=this.commonProps,f=a||this.getElementId("input"),g=bu(bu(bu({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?t.createElement(d,(0,xu.A)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:r},g)):t.createElement(fh,(0,xu.A)({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:sp,onFocus:this.onInputFocus,disabled:n,tabIndex:i,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,n=this.getComponents(),o=n.MultiValue,a=n.MultiValueContainer,r=n.MultiValueLabel,i=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,c=this.commonProps,d=this.props,u=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,f=d.placeholder,g=this.state,v=g.selectValue,_=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!u)return m?null:t.createElement(l,(0,xu.A)({},c,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),f);if(h)return v.map((function(n,s){var l=n===_,d="".concat(e.getOptionLabel(n),"-").concat(e.getOptionValue(n));return t.createElement(o,(0,xu.A)({},c,{components:{Container:a,Label:r,Remove:i},isFocused:l,isDisabled:p,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(n)},onTouchEnd:function(){return e.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),e.formatOptionLabel(n,"value"))}));if(m)return null;var y=v[0];return t.createElement(s,(0,xu.A)({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,n=this.commonProps,o=this.props,a=o.isDisabled,r=o.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||a||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return t.createElement(e,(0,xu.A)({},n,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,n=this.commonProps,o=this.props,a=o.isDisabled,r=o.isLoading,i=this.state.isFocused;return e&&r?t.createElement(e,(0,xu.A)({},n,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),n=e.DropdownIndicator,o=e.IndicatorSeparator;if(!n||!o)return null;var a=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return t.createElement(o,(0,xu.A)({},a,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var n=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return t.createElement(e,(0,xu.A)({},n,{innerProps:r,isDisabled:o,isFocused:a}))}},{key:"renderMenu",value:function(){var e=this,n=this.getComponents(),o=n.Group,a=n.GroupHeading,r=n.Menu,i=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,d=n.Option,u=this.commonProps,p=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,f=h.inputValue,g=h.isLoading,v=h.loadingMessage,_=h.minMenuHeight,b=h.maxMenuHeight,y=h.menuIsOpen,w=h.menuPlacement,k=h.menuPosition,x=h.menuPortalTarget,E=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,M=h.noOptionsMessage,T=h.onMenuScrollToTop,C=h.onMenuScrollToBottom;if(!y)return null;var A,D=function(n,o){var a=n.type,r=n.data,i=n.isDisabled,s=n.isSelected,l=n.label,c=n.value,h=p===r,m=i?void 0:function(){return e.onOptionHover(r)},f=i?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(o),v={id:g,onClick:f,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return t.createElement(d,(0,xu.A)({},u,{innerProps:v,data:r,isDisabled:i,isSelected:s,key:g,label:l,type:a,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map((function(n){if("group"===n.type){var r=n.data,i=n.options,s=n.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return t.createElement(o,(0,xu.A)({},u,{key:l,data:r,options:i,Heading:a,headingProps:{id:c,data:n.data},label:e.formatGroupLabel(n.data)}),n.options.map((function(e){return D(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return D(n,"".concat(n.index))}));else if(g){var P=v({inputValue:f});if(null===P)return null;A=t.createElement(l,u,P)}else{var L=M({inputValue:f});if(null===L)return null;A=t.createElement(c,u,L)}var N={minMenuHeight:_,maxMenuHeight:b,menuPlacement:w,menuPosition:k,menuShouldScrollIntoView:S},I=t.createElement(Dp,(0,xu.A)({},u,N),(function(n){var o=n.ref,a=n.placerProps,s=a.placement,l=a.maxHeight;return t.createElement(r,(0,xu.A)({},u,N,{innerRef:o,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),t.createElement(Th,{captureEnabled:m,onTopArrive:T,onBottomArrive:C,lockEnabled:E},(function(n){return t.createElement(i,(0,xu.A)({},u,{innerRef:function(t){e.getMenuListRef(t),n(t)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:p}),A)})))}));return x||"fixed"===k?t.createElement(s,(0,xu.A)({},u,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:k}),I):I}},{key:"renderFormField",value:function(){var e=this,n=this.props,o=n.delimiter,a=n.isDisabled,r=n.isMulti,i=n.name,s=n.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!a)return t.createElement(Ah,{name:i,onFocus:this.onValueInputFocus});if(i&&!a){if(r){if(o){var c=l.map((function(t){return e.getOptionValue(t)})).join(o);return t.createElement("input",{name:i,type:"hidden",value:c})}var d=l.length>0?l.map((function(n,o){return t.createElement("input",{key:"i-".concat(o),name:i,type:"hidden",value:e.getOptionValue(n)})})):t.createElement("input",{name:i,type:"hidden",value:""});return t.createElement("div",null,d)}var u=l[0]?this.getOptionValue(l[0]):"";return t.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,n=this.state,o=n.ariaSelection,a=n.focusedOption,r=n.focusedValue,i=n.isFocused,s=n.selectValue,l=this.getFocusableOptions();return t.createElement(oh,(0,xu.A)({},e,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:a,focusedValue:r,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),n=e.Control,o=e.IndicatorsContainer,a=e.SelectContainer,r=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,d=i.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return t.createElement(a,(0,xu.A)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),t.createElement(n,(0,xu.A)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:d}),t.createElement(r,(0,xu.A)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),t.createElement(o,(0,xu.A)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,d=e.value,u=e.menuIsOpen,p=e.inputValue,h=e.isMulti,m=dp(d),f={};if(n&&(d!==n.value||c!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var g=u?function(e,t){return Fh(Rh(e,t))}(e,m):[],v=u?jh(Rh(e,m),"".concat(l,"-option")):[],_=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);f={selectValue:m,focusedOption:b,focusedOptionId:zh(v,b),focusableOptionsWithIds:v,focusedValue:_,clearFocusValueOnUpdate:!1}}var y=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},w=r,k=i&&s;return i&&!k&&(w={value:Ep(h,m,m[0]||null),options:m,action:"initial-input-focus"},k=!s),"initial-input-focus"===(null==r?void 0:r.action)&&(w=null),bu(bu(bu({},f),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:k})}}]),o}(t.Component);Gh.defaultProps=Ih;var Kh=(0,t.forwardRef)((function(e,n){var o=function(e){var n=e.defaultInputValue,o=void 0===n?"":n,a=e.defaultMenuIsOpen,r=void 0!==a&&a,i=e.defaultValue,s=void 0===i?null:i,l=e.inputValue,c=e.menuIsOpen,d=e.onChange,u=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,m=e.value,f=wu(e,ku),g=pu((0,t.useState)(void 0!==l?l:o),2),v=g[0],_=g[1],b=pu((0,t.useState)(void 0!==c?c:r),2),y=b[0],w=b[1],k=pu((0,t.useState)(void 0!==m?m:s),2),x=k[0],E=k[1],S=(0,t.useCallback)((function(e,t){"function"==typeof d&&d(e,t),E(e)}),[d]),M=(0,t.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),_(void 0!==n?n:e)}),[u]),T=(0,t.useCallback)((function(){"function"==typeof h&&h(),w(!0)}),[h]),C=(0,t.useCallback)((function(){"function"==typeof p&&p(),w(!1)}),[p]),A=void 0!==l?l:v,D=void 0!==c?c:y,P=void 0!==m?m:x;return bu(bu({},f),{},{inputValue:A,menuIsOpen:D,onChange:S,onInputChange:M,onMenuClose:C,onMenuOpen:T,value:P})}(e);return t.createElement(Gh,(0,xu.A)({ref:n},o))})),Jh=Kh;function Xh(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Xh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const Qh=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Xh(e))&&(o&&(o+=" "),o+=t);return o};function Zh(e,t,n=void 0){const o={};for(const a in e){const r=e[a];let i="",s=!0;for(let e=0;e<r.length;e+=1){const o=r[e];o&&(i+=(!0===s?"":" ")+t(o),s=!1,n&&n[o]&&(i+=" "+n[o]))}o[a]=i}return o}let em=0;const tm={...n}.useId;function nm(e){if(void 0!==tm){const t=tm();return e??t}return function(e){const[n,o]=t.useState(e),a=e||n;return t.useEffect((()=>{null==n&&(em+=1,o(`mui-${em}`))}),[n]),a}(e)}function om(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach((e=>n.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${n} for the full message.`}function am(e){if("string"!=typeof e)throw new Error(om(7));return e.charAt(0).toUpperCase()+e.slice(1)}const rm=am;function im(...e){const n=t.useRef(void 0),o=t.useCallback((t=>{const n=e.map((e=>{if(null==e)return null;if("function"==typeof e){const n=e,o=n(t);return"function"==typeof o?o:()=>{n(null)}}return e.current=t,()=>{e.current=null}}));return()=>{n.forEach((e=>e?.()))}}),e);return t.useMemo((()=>e.every((e=>null==e))?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=o(e))}),e)}function sm(e){return parseInt(t.version,10)>=19?e?.props?.ref||null:e?.ref||null}function lm(e){return e&&e.ownerDocument||document}var cm=a(4848);const dm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function um(e){const t=[],n=[];return Array.from(e.querySelectorAll(dm)).forEach(((e,o)=>{const a=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==a&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===a?t.push(e):n.push({documentOrder:o,tabIndex:a,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pm(){return!0}const hm=function(e){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:a=!1,disableRestoreFocus:r=!1,getTabbable:i=um,isEnabled:s=pm,open:l}=e,c=t.useRef(!1),d=t.useRef(null),u=t.useRef(null),p=t.useRef(null),h=t.useRef(null),m=t.useRef(!1),f=t.useRef(null),g=im(sm(n),f),v=t.useRef(null);t.useEffect((()=>{l&&f.current&&(m.current=!o)}),[o,l]),t.useEffect((()=>{if(!l||!f.current)return;const e=lm(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),m.current&&f.current.focus()),()=>{r||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}}),[l]),t.useEffect((()=>{if(!l||!f.current)return;const e=lm(f.current),t=t=>{v.current=t,!a&&s()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(a&&e.activeElement!==d.current&&e.activeElement!==u.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!m.current)return;let n=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(n=i(f.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[o,a,r,s,l,i]);const _=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,cm.jsxs)(t.Fragment,{children:[(0,cm.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),t.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,h.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,cm.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})},mm="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function fm(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const gm=t.forwardRef((function(e,n){const{children:a,container:r,disablePortal:i=!1}=e,[s,l]=t.useState(null),c=im(t.isValidElement(a)?sm(a):null,n);if(mm((()=>{i||l(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),mm((()=>{if(s&&!i)return fm(n,s),()=>{fm(n,null)}}),[n,s,i]),i){if(t.isValidElement(a)){const e={ref:c};return t.cloneElement(a,e)}return a}return s?o.createPortal(a,s):s}));var vm=a(1923).default.bind();function _m(e,t){return vm(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){vm[e]=vm(e)}));const bm=[];function ym(e){return bm[0]=e,(0,Du.J)(bm)}function wm(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function km(e){if(t.isValidElement(e)||(0,uc.Hy)(e)||!wm(e))return e;const n={};return Object.keys(e).forEach((t=>{n[t]=km(e[t])})),n}function xm(e,n,o={clone:!0}){const a=o.clone?{...e}:e;return wm(e)&&wm(n)&&Object.keys(n).forEach((r=>{t.isValidElement(n[r])||(0,uc.Hy)(n[r])?a[r]=n[r]:wm(n[r])&&Object.prototype.hasOwnProperty.call(e,r)&&wm(e[r])?a[r]=xm(e[r],n[r],o):o.clone?a[r]=wm(n[r])?km(n[r]):n[r]:a[r]=n[r]})),a}function Em(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...a}=e,r=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),i=Object.keys(r);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function c(e,a){const r=i.indexOf(a);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==r&&"number"==typeof t[i[r]]?t[i[r]]:a)-o/100}${n})`}return{keys:i,values:r,up:s,down:l,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...a}}const Sm={borderRadius:4},Mm={xs:0,sm:600,md:900,lg:1200,xl:1536},Tm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mm[e]}px)`},Cm={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Mm[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Am(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Tm;return t.reduce(((o,a,r)=>(o[e.up(e.keys[r])]=n(t[r]),o)),{})}if("object"==typeof t){const e=o.breakpoints||Tm;return Object.keys(t).reduce(((a,r)=>{if(i=e.keys,"@"===(s=r)||s.startsWith("@")&&(i.some((e=>s.startsWith(`@${e}`)))||s.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,a]=n,r=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(r)}(o.containerQueries?o:Cm,r);e&&(a[e]=n(t[r],r))}else if(Object.keys(e.values||Mm).includes(r))a[e.up(r)]=n(t[r],r);else{const e=r;a[e]=t[e]}var i,s;return a}),{})}return n(t)}function Dm(e={}){const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}function Pm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Lm({values:e,breakpoints:t,base:n}){const o=n||function(e,t){if("object"!=typeof e)return{};const n={},o=Object.keys(t);return Array.isArray(e)?o.forEach(((t,o)=>{o<e.length&&(n[t]=!0)})):o.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),a=Object.keys(o);if(0===a.length)return e;let r;return a.reduce(((t,n,o)=>(Array.isArray(e)?(t[n]=null!=e[o]?e[o]:e[r],r=o):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[r],r=n):t[n]=e,t)),{})}function Nm(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Im(e,t,n,o=n){let a;return a="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:Nm(e,n)||o,t&&(a=t(a,o,e)),a}const Om=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:a}=e,r=e=>{if(null==e[t])return null;const r=e[t],i=Nm(e.theme,o)||{};return Am(e,r,(e=>{let o=Im(i,a,e);return e===o&&"string"==typeof e&&(o=Im(i,a,`${t}${"default"===e?"":am(e)}`,e)),!1===n?o:{[n]:o}}))};return r.propTypes={},r.filterProps=[t],r},Rm=function(e,t){return t?xm(e,t,{clone:!1}):e},Fm={m:"margin",p:"padding"},jm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ym={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zm=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!Ym[e])return[e];e=Ym[e]}const[t,n]=e.split(""),o=Fm[t],a=jm[n]||"";return Array.isArray(a)?a.map((e=>o+e)):[o+a]})(t)),e[t])}(),Bm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vm=[...Bm,...Hm];function Um(e,t,n,o){const a=Nm(e,t,!0)??n;return"number"==typeof a||"string"==typeof a?e=>"string"==typeof e?e:"string"==typeof a?`calc(${e} * ${a})`:a*e:Array.isArray(a)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=a[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof a?a:()=>{}}function Wm(e){return Um(e,"spacing",8)}function qm(e,t){return"string"==typeof t||null==t?t:e(t)}function $m(e,t){const n=Wm(e.theme);return Object.keys(e).map((o=>function(e,t,n,o){if(!t.includes(n))return null;const a=function(e,t){return n=>e.reduce(((e,o)=>(e[o]=qm(t,n),e)),{})}(zm(n),o);return Am(e,e[n],a)}(e,t,o,n))).reduce(Rm,{})}function Gm(e){return $m(e,Bm)}function Km(e){return $m(e,Hm)}function Jm(e){return $m(e,Vm)}function Xm(e=8,t=Wm({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}Gm.propTypes={},Gm.filterProps=Bm,Km.propTypes={},Km.filterProps=Hm,Jm.propTypes={},Jm.filterProps=Vm;const Qm=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,o)=>t[o]?Rm(n,t[o](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};function Zm(e){return"number"!=typeof e?e:`${e}px solid`}function ef(e,t){return Om({prop:e,themeKey:"borders",transform:t})}const tf=ef("border",Zm),nf=ef("borderTop",Zm),of=ef("borderRight",Zm),af=ef("borderBottom",Zm),rf=ef("borderLeft",Zm),sf=ef("borderColor"),lf=ef("borderTopColor"),cf=ef("borderRightColor"),df=ef("borderBottomColor"),uf=ef("borderLeftColor"),pf=ef("outline",Zm),hf=ef("outlineColor"),mf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Um(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:qm(t,e)});return Am(e,e.borderRadius,n)}return null};mf.propTypes={},mf.filterProps=["borderRadius"],Qm(tf,nf,of,af,rf,sf,lf,cf,df,uf,mf,pf,hf);const ff=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Um(e.theme,"spacing",8),n=e=>({gap:qm(t,e)});return Am(e,e.gap,n)}return null};ff.propTypes={},ff.filterProps=["gap"];const gf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Um(e.theme,"spacing",8),n=e=>({columnGap:qm(t,e)});return Am(e,e.columnGap,n)}return null};gf.propTypes={},gf.filterProps=["columnGap"];const vf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Um(e.theme,"spacing",8),n=e=>({rowGap:qm(t,e)});return Am(e,e.rowGap,n)}return null};function _f(e,t){return"grey"===t?t:e}function bf(e){return e<=1&&0!==e?100*e+"%":e}vf.propTypes={},vf.filterProps=["rowGap"],Qm(ff,gf,vf,Om({prop:"gridColumn"}),Om({prop:"gridRow"}),Om({prop:"gridAutoFlow"}),Om({prop:"gridAutoColumns"}),Om({prop:"gridAutoRows"}),Om({prop:"gridTemplateColumns"}),Om({prop:"gridTemplateRows"}),Om({prop:"gridTemplateAreas"}),Om({prop:"gridArea"})),Qm(Om({prop:"color",themeKey:"palette",transform:_f}),Om({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_f}),Om({prop:"backgroundColor",themeKey:"palette",transform:_f}));const yf=Om({prop:"width",transform:bf}),wf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Mm[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:bf(t)}};return Am(e,e.maxWidth,t)}return null};wf.filterProps=["maxWidth"];const kf=Om({prop:"minWidth",transform:bf}),xf=Om({prop:"height",transform:bf}),Ef=Om({prop:"maxHeight",transform:bf}),Sf=Om({prop:"minHeight",transform:bf}),Mf=(Om({prop:"size",cssProperty:"width",transform:bf}),Om({prop:"size",cssProperty:"height",transform:bf}),Qm(yf,wf,kf,xf,Ef,Sf,Om({prop:"boxSizing"})),{border:{themeKey:"borders",transform:Zm},borderTop:{themeKey:"borders",transform:Zm},borderRight:{themeKey:"borders",transform:Zm},borderBottom:{themeKey:"borders",transform:Zm},borderLeft:{themeKey:"borders",transform:Zm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mf},color:{themeKey:"palette",transform:_f},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_f},backgroundColor:{themeKey:"palette",transform:_f},p:{style:Km},pt:{style:Km},pr:{style:Km},pb:{style:Km},pl:{style:Km},px:{style:Km},py:{style:Km},padding:{style:Km},paddingTop:{style:Km},paddingRight:{style:Km},paddingBottom:{style:Km},paddingLeft:{style:Km},paddingX:{style:Km},paddingY:{style:Km},paddingInline:{style:Km},paddingInlineStart:{style:Km},paddingInlineEnd:{style:Km},paddingBlock:{style:Km},paddingBlockStart:{style:Km},paddingBlockEnd:{style:Km},m:{style:Gm},mt:{style:Gm},mr:{style:Gm},mb:{style:Gm},ml:{style:Gm},mx:{style:Gm},my:{style:Gm},margin:{style:Gm},marginTop:{style:Gm},marginRight:{style:Gm},marginBottom:{style:Gm},marginLeft:{style:Gm},marginX:{style:Gm},marginY:{style:Gm},marginInline:{style:Gm},marginInlineStart:{style:Gm},marginInlineEnd:{style:Gm},marginBlock:{style:Gm},marginBlockStart:{style:Gm},marginBlockEnd:{style:Gm},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ff},rowGap:{style:vf},columnGap:{style:gf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bf},maxWidth:{style:wf},minWidth:{transform:bf},height:{transform:bf},maxHeight:{transform:bf},minHeight:{transform:bf},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),Tf=function(){function e(e,t,n,o){const a={[e]:t,theme:n},r=o[e];if(!r)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:c}=r;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=Nm(n,s)||{};return c?c(a):Am(a,t,(t=>{let n=Im(d,l,t);return t===n&&"string"==typeof t&&(n=Im(d,l,`${e}${"default"===t?"":am(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){const{sx:o,theme:a={}}=n||{};if(!o)return null;const r=a.unstable_sxConfig??Mf;function i(n){let o=n;if("function"==typeof n)o=n(a);else if("object"!=typeof n)return n;if(!o)return null;const i=Dm(a.breakpoints),s=Object.keys(i);let l=i;return Object.keys(o).forEach((n=>{const i=function(e,t){return"function"==typeof e?e(t):e}(o[n],a);if(null!=i)if("object"==typeof i)if(r[n])l=Rm(l,e(n,i,a,r));else{const e=Am({theme:a},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=Rm(l,e):l[n]=t({sx:i,theme:a})}else l=Rm(l,e(n,i,a,r))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const o=t[n];return delete e[n],e[n]=o,e}),{...t}):t}(a,Pm(s,l))}return Array.isArray(o)?o.map(i):i(o)}}();Tf.filterProps=["sx"];const Cf=Tf;function Af(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let o=n.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}const Df=function(e={},...t){const{breakpoints:n={},palette:o={},spacing:a,shape:r={},...i}=e;let s=xm({breakpoints:Em(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:Xm(a),shape:{...Sm,...r}},i);return s=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,o){n.up=(...n)=>t(e.breakpoints.up(...n),o),n.down=(...n)=>t(e.breakpoints.down(...n),o),n.between=(...n)=>t(e.breakpoints.between(...n),o),n.only=(...n)=>t(e.breakpoints.only(...n),o),n.not=(...n)=>{const a=t(e.breakpoints.not(...n),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const o={},a=e=>(n(o,e),o);return n(a),{...e,containerQueries:a}}(s),s.applyStyles=Af,s=t.reduce(((e,t)=>xm(e,t)),s),s.unstable_sxConfig={...Mf,...i?.unstable_sxConfig},s.unstable_sx=function(e){return Cf({sx:e,theme:this})},s};function Pf(e){const{variants:t,...n}=e,o={variants:t,style:ym(n),isProcessed:!0};return o.style===n||t&&t.forEach((e=>{"function"!=typeof e.style&&(e.style=ym(e.style))})),o}const Lf=Df();function Nf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function If(e){return e?(t,n)=>n[e]:null}function Of(e,t){const n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>Of(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...o}=n;t=o}return Rf(e,n.variants,[t])}return n?.isProcessed?n.style:n}function Rf(e,t,n=[]){let o;e:for(let a=0;a<t.length;a+=1){const r=t[a];if("function"==typeof r.props){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!r.props(o))continue}else for(const t in r.props)if(e[t]!==r.props[t]&&e.ownerState?.[t]!==r.props[t])continue e;"function"==typeof r.style?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r.style(o))):n.push(r.style)}return n}function Ff(e={}){const{themeId:t,defaultTheme:n=Lf,rootShouldForwardProp:o=Nf,slotShouldForwardProp:a=Nf}=e;function r(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{!function(e){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=(e=>e.filter((e=>e!==Cf)))(e.__emotion_styles))}(e);const{name:n,slot:i,skipVariantsResolver:s,skipSx:l,overridesResolver:c=If(jf(i)),...d}=t,u=void 0!==s?s:i&&"Root"!==i&&"root"!==i||!1,p=l||!1;let h=Nf;"Root"===i||"root"===i?h=o:i?h=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=_m(e,{shouldForwardProp:h,label:void 0,...d}),f=e=>{if("function"==typeof e&&e.__emotion_real!==e)return function(t){return Of(t,e)};if(wm(e)){const t=Pf(e);return t.variants?function(e){return Of(e,t)}:t.style}return e},g=(...t)=>{const o=[],a=t.map(f),i=[];if(o.push(r),n&&c&&i.push((function(e){const t=e.theme,o=t.components?.[n]?.styleOverrides;if(!o)return null;const a={};for(const t in o)a[t]=Of(e,o[t]);return c(e,a)})),n&&!u&&i.push((function(e){const t=e.theme,o=t?.components?.[n]?.variants;return o?Rf(e,o):null})),p||i.push(Cf),Array.isArray(a[0])){const e=a.shift(),t=new Array(o.length).fill(""),n=new Array(i.length).fill("");let r;r=[...t,...e,...n],r.raw=[...t,...e.raw,...n],o.unshift(r)}const s=[...o,...a,...i],l=m(...s);return e.muiName&&(l.muiName=e.muiName),l};return m.withConfig&&(g.withConfig=m.withConfig),g}}function jf(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function Yf(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function zf(e){if(e.type)return e;if("#"===e.charAt(0))return zf(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(om(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(om(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:o}}const Bf=(e,t)=>{try{return(e=>{const t=zf(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(t){return e}};function Hf(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Vf(e){e=zf(e);const{values:t}=e,n=t[0],o=t[1]/100,a=t[2]/100,r=o*Math.min(a,1-a),i=(e,t=(e+n/30)%12)=>a-r*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Hf({type:s,values:l})}function Uf(e){let t="hsl"===(e=zf(e)).type||"hsla"===e.type?zf(Vf(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Wf(e,t){return e=zf(e),t=Yf(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Hf(e)}function qf(e,t,n){try{return Wf(e,t)}catch(t){return e}}function $f(e,t){if(e=zf(e),t=Yf(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Hf(e)}function Gf(e,t,n){try{return $f(e,t)}catch(t){return e}}function Kf(e,t){if(e=zf(e),t=Yf(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Hf(e)}function Jf(e,t,n){try{return Kf(e,t)}catch(t){return e}}function Xf(e,t,n){try{return function(e,t=.15){return Uf(e)>.5?$f(e,t):Kf(e,t)}(e,t)}catch(t){return e}}const Qf={black:"#000",white:"#fff"},Zf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eg="#f3e5f5",tg="#ce93d8",ng="#ba68c8",og="#ab47bc",ag="#9c27b0",rg="#7b1fa2",ig="#e57373",sg="#ef5350",lg="#f44336",cg="#d32f2f",dg="#c62828",ug="#ffb74d",pg="#ffa726",hg="#ff9800",mg="#f57c00",fg="#e65100",gg="#e3f2fd",vg="#90caf9",_g="#42a5f5",bg="#1976d2",yg="#1565c0",wg="#4fc3f7",kg="#29b6f6",xg="#03a9f4",Eg="#0288d1",Sg="#01579b",Mg="#81c784",Tg="#66bb6a",Cg="#4caf50",Ag="#388e3c",Dg="#2e7d32",Pg="#1b5e20";function Lg(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qf.white,default:Qf.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Ng=Lg();function Ig(){return{text:{primary:Qf.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qf.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Og=Ig();function Rg(e,t,n,o){const a=o.light||o,r=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Kf(e.main,a):"dark"===t&&(e.dark=$f(e.main,r)))}function Fg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...a}=e,r=e.primary||function(e="light"){return"dark"===e?{main:vg,light:gg,dark:_g}:{main:bg,light:_g,dark:yg}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:tg,light:eg,dark:og}:{main:ag,light:ng,dark:rg}}(t),s=e.error||function(e="light"){return"dark"===e?{main:lg,light:ig,dark:cg}:{main:cg,light:sg,dark:dg}}(t),l=e.info||function(e="light"){return"dark"===e?{main:kg,light:wg,dark:Eg}:{main:Eg,light:xg,dark:Sg}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Tg,light:Mg,dark:Ag}:{main:Dg,light:Cg,dark:Pg}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:pg,light:ug,dark:mg}:{main:"#ed6c02",light:hg,dark:fg}}(t);function u(e){const t=function(e,t){const n=Uf(e),o=Uf(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}(e,Og.text.primary)>=n?Og.text.primary:Ng.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:r=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(om(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(om(12,t?` (${t})`:"",JSON.stringify(e.main)));return Rg(e,"light",a,o),Rg(e,"dark",r,o),e.contrastText||(e.contrastText=u(e.main)),e};let h;return"light"===t?h=Lg():"dark"===t&&(h=Ig()),xm({common:{...Qf},mode:t,primary:p({color:r,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Zf,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:o,...h},a)}function jg(e=""){function t(...n){if(!n.length)return"";const o=n[0];return"string"!=typeof o||o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${o}`:`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}function Yg(e){const t={};return Object.entries(e).forEach((e=>{const[n,o]=e;"object"==typeof o&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)})),t}const zg=(e,t,n,o=[])=>{let a=e;t.forEach(((e,r)=>{r===t.length-1?Array.isArray(a)?a[Number(e)]=n:a&&"object"==typeof a&&(a[e]=n):a&&"object"==typeof a&&(a[e]||(a[e]=o.includes(e)?[]:{}),a=a[e])}))};function Bg(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},a={},r={},i={};return s=e=>"vars"===e[0],function e(t,l=[],c=[]){Object.entries(t).forEach((([t,d])=>{(!s||s&&!s([...l,t]))&&null!=d&&("object"==typeof d&&Object.keys(d).length>0?e(d,[...l,t],Array.isArray(d)?[...c,t]:c):((e,t,s)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,l=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(a,{[o]:l}),zg(r,e,`var(${o})`,s),zg(i,e,`var(${o}, ${l})`,s)}})([...l,t],d,c))}))}(e),{css:a,vars:r,varsWithDefaults:i};var s}const Hg={textTransform:"uppercase"},Vg='"Roboto", "Helvetica", "Arial", sans-serif';function Ug(e,t){const{fontFamily:n=Vg,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:r=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}="function"==typeof t?t(e):t,p=o/14,h=d||(e=>e/l*p+"rem"),m=(e,t,o,a,r)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:o,...n===Vg?{letterSpacing:(i=a/t,Math.round(1e5*i)/1e5+"em")}:{},...r,...c};var i},f={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(r,48,1.167,0),h4:m(r,34,1.235,.25),h5:m(r,24,1.334,0),h6:m(i,20,1.6,.15),subtitle1:m(r,16,1.75,.15),subtitle2:m(i,14,1.57,.1),body1:m(r,16,1.5,.15),body2:m(r,14,1.43,.15),button:m(i,14,1.75,.4,Hg),caption:m(r,12,1.66,.4),overline:m(r,12,2.66,1,Hg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xm({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:r,fontWeightMedium:i,fontWeightBold:s,...f},u,{clone:!1})}function Wg(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const qg=["none",Wg(0,2,1,-1,0,1,1,0,0,1,3,0),Wg(0,3,1,-2,0,2,2,0,0,1,5,0),Wg(0,3,3,-2,0,3,4,0,0,1,8,0),Wg(0,2,4,-1,0,4,5,0,0,1,10,0),Wg(0,3,5,-1,0,5,8,0,0,1,14,0),Wg(0,3,5,-1,0,6,10,0,0,1,18,0),Wg(0,4,5,-2,0,7,10,1,0,2,16,1),Wg(0,5,5,-3,0,8,10,1,0,3,14,2),Wg(0,5,6,-3,0,9,12,1,0,3,16,2),Wg(0,6,6,-3,0,10,14,1,0,4,18,3),Wg(0,6,7,-4,0,11,15,1,0,4,20,3),Wg(0,7,8,-4,0,12,17,2,0,5,22,4),Wg(0,7,8,-4,0,13,19,2,0,5,24,4),Wg(0,7,9,-4,0,14,21,2,0,5,26,4),Wg(0,8,9,-5,0,15,22,2,0,6,28,5),Wg(0,8,10,-5,0,16,24,2,0,6,30,5),Wg(0,8,11,-5,0,17,26,2,0,6,32,5),Wg(0,9,11,-5,0,18,28,2,0,7,34,6),Wg(0,9,12,-6,0,19,29,2,0,7,36,6),Wg(0,10,13,-6,0,20,31,3,0,8,38,7),Wg(0,10,13,-6,0,21,33,3,0,8,40,7),Wg(0,10,14,-6,0,22,35,3,0,8,42,7),Wg(0,11,14,-7,0,23,36,3,0,9,44,8),Wg(0,11,15,-7,0,24,38,3,0,9,46,8)],$g={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Gg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kg(e){return`${Math.round(e)}ms`}function Jg(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Xg(e){const t={...$g,...e.easing},n={...Gg,...e.duration};return{getAutoHeightDuration:Jg,create:(e=["all"],o={})=>{const{duration:a=n.standard,easing:r=t.easeInOut,delay:i=0,...s}=o;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof a?a:Kg(a)} ${r} ${"string"==typeof i?i:Kg(i)}`)).join(",")},...e,easing:t,duration:n}}const Qg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Zg(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let a=0;a<n.length;a++){const[r,i]=n[a];!wm(o=i)&&void 0!==o&&"string"!=typeof o&&"boolean"!=typeof o&&"number"!=typeof o&&!Array.isArray(o)||r.startsWith("unstable_")?delete t[r]:wm(i)&&(t[r]={...i},e(t[r]))}var o}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme=${JSON.stringify(t,null,2)};\n\ntheme.breakpoints=createBreakpoints(theme.breakpoints||{});\ntheme.transitions=createTransitions(theme.transitions||{});\n\nexport default theme;`}const ev=function(e={},...t){const{breakpoints:n,mixins:o={},spacing:a,palette:r={},transitions:i={},typography:s={},shape:l,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(om(20));const d=Fg(r),u=Df(e);let p=xm(u,{mixins:(h=u.breakpoints,m=o,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...m}),palette:d,shadows:qg.slice(),typography:Ug(d,s),transitions:Xg(i),zIndex:{...Qg}});var h,m;return p=xm(p,c),p=t.reduce(((e,t)=>xm(e,t)),p),p.unstable_sxConfig={...Mf,...c?.unstable_sxConfig},p.unstable_sx=function(e){return Cf({sx:e,theme:this})},p.toRuntimeSource=Zg,p};function tv(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const nv=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=tv(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function ov(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function av(e){return"dark"===e?nv:[]}function rv(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const iv=e=>(t,n)=>{const o=e.rootSelector||":root",a=e.colorSchemeSelector;let r=a;if("class"===a&&(r=".%s"),"data"===a&&(r="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(r=`[${a}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const a={};return(i=e.cssVarPrefix,[...[...Array(25)].map(((e,t)=>`--${i?`${i}-`:""}overlays-${t}`)),`--${i?`${i}-`:""}palette-AppBar-darkBg`,`--${i?`${i}-`:""}palette-AppBar-darkColor`]).forEach((e=>{a[e]=n[e],delete n[e]})),"media"===r?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:r?{[r.replace("%s",t)]:a,[`${o}, ${r.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(r&&"media"!==r)return`${o}, ${r.replace("%s",String(t))}`}else if(t){if("media"===r)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(r)return r.replace("%s",String(t))}var i;return o};function sv(e,t,n){!e[t]&&n&&(e[t]=n)}function lv(e){return"string"==typeof e&&e.startsWith("hsl")?Vf(e):e}function cv(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Bf(lv(e[t])))}const dv=e=>{try{return e()}catch(e){}};function uv(e,t,n,o){if(!t)return;t=!0===t?{}:t;const a="dark"===o?"dark":"light";if(!n)return void(e[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...a}=e,r=Fg(t);return{palette:r,opacity:{...ov(r.mode),...n},overlays:o||av(r.mode),...a}}({...t,palette:{mode:a,...t?.palette}}));const{palette:r,...i}=ev({...n,palette:{mode:a,...t?.palette}});return e[o]={...t,palette:r,opacity:{...ov(a),...t?.opacity},overlays:t?.overlays||av(a)},i}function pv(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:a=!1,cssVarPrefix:r="mui",shouldSkipGeneratingVar:i=rv,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=e,d=Object.keys(n)[0],u=o||(n.light&&"light"!==d?"light":d),p=((e="mui")=>jg(e))(r),{[u]:h,light:m,dark:f,...g}=n,v={...g};let _=h;if(("dark"===u&&!("dark"in n)||"light"===u&&!("light"in n))&&(_=!0),!_)throw new Error(om(21,u));const b=uv(v,_,c,u);m&&!v.light&&uv(v,m,void 0,"light"),f&&!v.dark&&uv(v,f,void 0,"dark");let y={defaultColorScheme:u,...b,cssVarPrefix:r,colorSchemeSelector:s,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Yg(b.typography),...b.font},spacing:(w=c.spacing,"number"==typeof w?`${w}px`:"string"==typeof w||"function"==typeof w||Array.isArray(w)?w:"8px")};var w;Object.keys(y.colorSchemes).forEach((e=>{const t=y.colorSchemes[e].palette,n=e=>{const n=e.split("-"),o=n[1],a=n[2];return p(e,t[o][a])};if("light"===t.mode&&(sv(t.common,"background","#fff"),sv(t.common,"onBackground","#000")),"dark"===t.mode&&(sv(t.common,"background","#000"),sv(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{o[e]||(o[e]={})})),"light"===t.mode){sv(t.Alert,"errorColor",Gf(t.error.light,.6)),sv(t.Alert,"infoColor",Gf(t.info.light,.6)),sv(t.Alert,"successColor",Gf(t.success.light,.6)),sv(t.Alert,"warningColor",Gf(t.warning.light,.6)),sv(t.Alert,"errorFilledBg",n("palette-error-main")),sv(t.Alert,"infoFilledBg",n("palette-info-main")),sv(t.Alert,"successFilledBg",n("palette-success-main")),sv(t.Alert,"warningFilledBg",n("palette-warning-main")),sv(t.Alert,"errorFilledColor",dv((()=>t.getContrastText(t.error.main)))),sv(t.Alert,"infoFilledColor",dv((()=>t.getContrastText(t.info.main)))),sv(t.Alert,"successFilledColor",dv((()=>t.getContrastText(t.success.main)))),sv(t.Alert,"warningFilledColor",dv((()=>t.getContrastText(t.warning.main)))),sv(t.Alert,"errorStandardBg",Jf(t.error.light,.9)),sv(t.Alert,"infoStandardBg",Jf(t.info.light,.9)),sv(t.Alert,"successStandardBg",Jf(t.success.light,.9)),sv(t.Alert,"warningStandardBg",Jf(t.warning.light,.9)),sv(t.Alert,"errorIconColor",n("palette-error-main")),sv(t.Alert,"infoIconColor",n("palette-info-main")),sv(t.Alert,"successIconColor",n("palette-success-main")),sv(t.Alert,"warningIconColor",n("palette-warning-main")),sv(t.AppBar,"defaultBg",n("palette-grey-100")),sv(t.Avatar,"defaultBg",n("palette-grey-400")),sv(t.Button,"inheritContainedBg",n("palette-grey-300")),sv(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),sv(t.Chip,"defaultBorder",n("palette-grey-400")),sv(t.Chip,"defaultAvatarColor",n("palette-grey-700")),sv(t.Chip,"defaultIconColor",n("palette-grey-700")),sv(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),sv(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),sv(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),sv(t.LinearProgress,"primaryBg",Jf(t.primary.main,.62)),sv(t.LinearProgress,"secondaryBg",Jf(t.secondary.main,.62)),sv(t.LinearProgress,"errorBg",Jf(t.error.main,.62)),sv(t.LinearProgress,"infoBg",Jf(t.info.main,.62)),sv(t.LinearProgress,"successBg",Jf(t.success.main,.62)),sv(t.LinearProgress,"warningBg",Jf(t.warning.main,.62)),sv(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),sv(t.Slider,"primaryTrack",Jf(t.primary.main,.62)),sv(t.Slider,"secondaryTrack",Jf(t.secondary.main,.62)),sv(t.Slider,"errorTrack",Jf(t.error.main,.62)),sv(t.Slider,"infoTrack",Jf(t.info.main,.62)),sv(t.Slider,"successTrack",Jf(t.success.main,.62)),sv(t.Slider,"warningTrack",Jf(t.warning.main,.62));const e=Xf(t.background.default,.8);sv(t.SnackbarContent,"bg",e),sv(t.SnackbarContent,"color",dv((()=>t.getContrastText(e)))),sv(t.SpeedDialAction,"fabHoverBg",Xf(t.background.paper,.15)),sv(t.StepConnector,"border",n("palette-grey-400")),sv(t.StepContent,"border",n("palette-grey-400")),sv(t.Switch,"defaultColor",n("palette-common-white")),sv(t.Switch,"defaultDisabledColor",n("palette-grey-100")),sv(t.Switch,"primaryDisabledColor",Jf(t.primary.main,.62)),sv(t.Switch,"secondaryDisabledColor",Jf(t.secondary.main,.62)),sv(t.Switch,"errorDisabledColor",Jf(t.error.main,.62)),sv(t.Switch,"infoDisabledColor",Jf(t.info.main,.62)),sv(t.Switch,"successDisabledColor",Jf(t.success.main,.62)),sv(t.Switch,"warningDisabledColor",Jf(t.warning.main,.62)),sv(t.TableCell,"border",Jf(qf(t.divider,1),.88)),sv(t.Tooltip,"bg",qf(t.grey[700],.92))}var o;if("dark"===t.mode){sv(t.Alert,"errorColor",Jf(t.error.light,.6)),sv(t.Alert,"infoColor",Jf(t.info.light,.6)),sv(t.Alert,"successColor",Jf(t.success.light,.6)),sv(t.Alert,"warningColor",Jf(t.warning.light,.6)),sv(t.Alert,"errorFilledBg",n("palette-error-dark")),sv(t.Alert,"infoFilledBg",n("palette-info-dark")),sv(t.Alert,"successFilledBg",n("palette-success-dark")),sv(t.Alert,"warningFilledBg",n("palette-warning-dark")),sv(t.Alert,"errorFilledColor",dv((()=>t.getContrastText(t.error.dark)))),sv(t.Alert,"infoFilledColor",dv((()=>t.getContrastText(t.info.dark)))),sv(t.Alert,"successFilledColor",dv((()=>t.getContrastText(t.success.dark)))),sv(t.Alert,"warningFilledColor",dv((()=>t.getContrastText(t.warning.dark)))),sv(t.Alert,"errorStandardBg",Gf(t.error.light,.9)),sv(t.Alert,"infoStandardBg",Gf(t.info.light,.9)),sv(t.Alert,"successStandardBg",Gf(t.success.light,.9)),sv(t.Alert,"warningStandardBg",Gf(t.warning.light,.9)),sv(t.Alert,"errorIconColor",n("palette-error-main")),sv(t.Alert,"infoIconColor",n("palette-info-main")),sv(t.Alert,"successIconColor",n("palette-success-main")),sv(t.Alert,"warningIconColor",n("palette-warning-main")),sv(t.AppBar,"defaultBg",n("palette-grey-900")),sv(t.AppBar,"darkBg",n("palette-background-paper")),sv(t.AppBar,"darkColor",n("palette-text-primary")),sv(t.Avatar,"defaultBg",n("palette-grey-600")),sv(t.Button,"inheritContainedBg",n("palette-grey-800")),sv(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),sv(t.Chip,"defaultBorder",n("palette-grey-700")),sv(t.Chip,"defaultAvatarColor",n("palette-grey-300")),sv(t.Chip,"defaultIconColor",n("palette-grey-300")),sv(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),sv(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),sv(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),sv(t.LinearProgress,"primaryBg",Gf(t.primary.main,.5)),sv(t.LinearProgress,"secondaryBg",Gf(t.secondary.main,.5)),sv(t.LinearProgress,"errorBg",Gf(t.error.main,.5)),sv(t.LinearProgress,"infoBg",Gf(t.info.main,.5)),sv(t.LinearProgress,"successBg",Gf(t.success.main,.5)),sv(t.LinearProgress,"warningBg",Gf(t.warning.main,.5)),sv(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),sv(t.Slider,"primaryTrack",Gf(t.primary.main,.5)),sv(t.Slider,"secondaryTrack",Gf(t.secondary.main,.5)),sv(t.Slider,"errorTrack",Gf(t.error.main,.5)),sv(t.Slider,"infoTrack",Gf(t.info.main,.5)),sv(t.Slider,"successTrack",Gf(t.success.main,.5)),sv(t.Slider,"warningTrack",Gf(t.warning.main,.5));const e=Xf(t.background.default,.98);sv(t.SnackbarContent,"bg",e),sv(t.SnackbarContent,"color",dv((()=>t.getContrastText(e)))),sv(t.SpeedDialAction,"fabHoverBg",Xf(t.background.paper,.15)),sv(t.StepConnector,"border",n("palette-grey-600")),sv(t.StepContent,"border",n("palette-grey-600")),sv(t.Switch,"defaultColor",n("palette-grey-300")),sv(t.Switch,"defaultDisabledColor",n("palette-grey-600")),sv(t.Switch,"primaryDisabledColor",Gf(t.primary.main,.55)),sv(t.Switch,"secondaryDisabledColor",Gf(t.secondary.main,.55)),sv(t.Switch,"errorDisabledColor",Gf(t.error.main,.55)),sv(t.Switch,"infoDisabledColor",Gf(t.info.main,.55)),sv(t.Switch,"successDisabledColor",Gf(t.success.main,.55)),sv(t.Switch,"warningDisabledColor",Gf(t.warning.main,.55)),sv(t.TableCell,"border",Gf(qf(t.divider,1),.68)),sv(t.Tooltip,"bg",qf(t.grey[700],.92))}cv(t.background,"default"),cv(t.background,"paper"),cv(t.common,"background"),cv(t.common,"onBackground"),cv(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&sv(t[e],"mainChannel",Bf(lv(n.main))),n.light&&sv(t[e],"lightChannel",Bf(lv(n.light))),n.dark&&sv(t[e],"darkChannel",Bf(lv(n.dark))),n.contrastText&&sv(t[e],"contrastTextChannel",Bf(lv(n.contrastText))),"text"===e&&(cv(t[e],"primary"),cv(t[e],"secondary")),"action"===e&&(n.active&&cv(t[e],"active"),n.selected&&cv(t[e],"selected")))}))})),y=t.reduce(((e,t)=>xm(e,t)),y);const k={prefix:r,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:iv(y)},{vars:x,generateThemeVars:E,generateStyleSheets:S}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:o,colorSchemeSelector:a}=t,{colorSchemes:r={},components:i,defaultColorScheme:s="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=Bg(l,t);let p=u;const h={},{[s]:m,...f}=r;if(Object.entries(f||{}).forEach((([e,n])=>{const{vars:o,css:a,varsWithDefaults:r}=Bg(n,t);p=xm(p,r),h[e]={css:a,vars:o}})),m){const{css:e,vars:n,varsWithDefaults:o}=Bg(m,t);p=xm(p,o),h[s]={css:e,vars:n}}function g(t,n){let o=a;if("class"===a&&(o=".%s"),"data"===a&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=r[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach((([,{vars:t}])=>{e=xm(e,t)})),e},generateStyleSheets:()=>{const t=[],a=e.defaultColorScheme||"light";function i(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}i(n(void 0,{...d}),d);const{[a]:s,...l}=h;if(s){const{css:e}=s,t=r[a]?.palette?.mode,l=!o&&t?{colorScheme:t,...e}:{...e};i(n(a,{...l}),l)}return Object.entries(l).forEach((([e,{css:t}])=>{const a=r[e]?.palette?.mode,s=!o&&a?{colorScheme:a,...t}:{...t};i(n(e,{...s}),s)})),t}}}(y,k);return y.vars=x,Object.entries(y.colorSchemes[y.defaultColorScheme]).forEach((([e,t])=>{y[e]=t})),y.generateThemeVars=E,y.generateStyleSheets=S,y.generateSpacing=function(){return Xm(c.spacing,Wm(this))},y.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(s),y.spacing=y.generateSpacing(),y.shouldSkipGeneratingVar=i,y.unstable_sxConfig={...Mf,...c?.unstable_sxConfig},y.unstable_sx=function(e){return Cf({sx:e,theme:this})},y.toRuntimeSource=Zg,y}function hv(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Fg({...!0===n?{}:n.palette,mode:t})})}function mv(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:a=(n?void 0:{light:!0}),defaultColorScheme:r=n?.mode,...i}=e,s=r||"light",l=a?.[s],c={...a,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===o){if(!("colorSchemes"in e))return ev(e,...t);let o=n;"palette"in e||c[s]&&(!0!==c[s]?o=c[s].palette:"dark"===s&&(o={mode:"dark"}));const a=ev({...e,palette:o},...t);return a.defaultColorScheme=s,a.colorSchemes=c,"light"===a.palette.mode&&(a.colorSchemes.light={...!0!==c.light&&c.light,palette:a.palette},hv(a,"dark",c.dark)),"dark"===a.palette.mode&&(a.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:a.palette},hv(a,"light",c.light)),a}return n||"light"in c||"light"!==s||(c.light=!0),pv({...i,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof o&&o},...t)}const fv=mv(),gv="$$material",vv=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},_v=e=>vv(e)&&"classes"!==e,bv=Ff({themeId:gv,defaultTheme:fv,rootShouldForwardProp:_v}),yv={theme:void 0},wv=function(e){let t,n;return function(o){let a=t;return void 0!==a&&o.theme===n||(yv.theme=o.theme,a=Pf(e(yv)),t=a,n=o.theme),a}};function kv(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if("components"===a||"slots"===a)n[a]={...e[a],...n[a]};else if("componentsProps"===a||"slotProps"===a){const o=e[a],r=t[a];if(r)if(o){n[a]={...r};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;n[a][t]=kv(o[t],r[t])}}else n[a]=r;else n[a]=o||{}}else void 0===n[a]&&(n[a]=e[a])}return n}const xv=t.createContext(void 0);function Ev(e){return function({props:e,name:n}){return function(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const a=t.components[n];return a.defaultProps?kv(a.defaultProps,o):a.styleOverrides||a.variants?o:kv(a,o)}({props:e,name:n,theme:{components:t.useContext(xv)}})}(e)}const Sv=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}},Mv=function(e,t,n){return"function"==typeof e?e(t,n):e},Tv=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n},Cv=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t},Av=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:a,className:r}=e;if(!t){const e=Qh(n?.className,r,a?.className,o?.className),t={...n?.style,...a?.style,...o?.style},i={...n,...a,...o};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=Tv({...a,...o}),s=Cv(o),l=Cv(a),c=t(i),d=Qh(c?.className,n?.className,r,a?.className,o?.className),u={...c?.style,...n?.style,...a?.style,...o?.style},p={...c,...n,...l,...s};return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}};function Dv(e,t){const{className:n,elementType:o,ownerState:a,externalForwardedProps:r,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...l}=t,{component:c,slots:d={[e]:void 0},slotProps:u={[e]:void 0},...p}=r,h=d[e]||o,m=Mv(u[e],a),{props:{component:f,...g},internalRef:v}=Av({className:n,...l,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m}),_=im(v,m?.ref,t.ref),b="root"===e?f||c:f;return[h,Sv(h,{..."root"===e&&!c&&!d[e]&&i,..."root"!==e&&!d[e]&&i,...g,...b&&!s&&{as:b},...b&&s&&{component:b},ref:_},a)]}var Pv=a(3662);function Lv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,Pv.A)(e,t)}const Nv=t.createContext(null);var Iv="unmounted",Ov="exited",Rv="entering",Fv="entered",jv="exiting",Yv=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var a,r=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?r?(a=Ov,o.appearStatus=Rv):a=Fv:a=t.unmountOnExit||t.mountOnEnter?Iv:Ov,o.state={status:a},o.nextCallback=null,o}Lv(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Iv?{status:Ov}:null};var a=n.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Rv&&n!==Fv&&(t=Rv):n!==Rv&&n!==Fv||(t=jv)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Rv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ov&&this.setState({status:Iv})},a.performEnter=function(e){var t=this,n=this.props.enter,a=this.context?this.context.isMounting:e,r=this.props.nodeRef?[a]:[o.findDOMNode(this),a],i=r[0],s=r[1],l=this.getTimeouts(),c=a?l.appear:l.enter;e||n?(this.props.onEnter(i,s),this.safeSetState({status:Rv},(function(){t.props.onEntering(i,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:Fv},(function(){t.props.onEntered(i,s)}))}))}))):this.safeSetState({status:Fv},(function(){t.props.onEntered(i)}))},a.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),a=this.props.nodeRef?void 0:o.findDOMNode(this);t?(this.props.onExit(a),this.safeSetState({status:jv},(function(){e.props.onExiting(a),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ov},(function(){e.props.onExited(a)}))}))}))):this.safeSetState({status:Ov},(function(){e.props.onExited(a)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(n&&!a){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],s=r[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===Iv)return null;var n=this.props,o=n.children,a=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,yu(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(Nv.Provider,{value:null},"function"==typeof o?o(e,a):t.cloneElement(t.Children.only(o),a))},n}(t.Component);function zv(){}Yv.contextType=Nv,Yv.propTypes={},Yv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zv,onEntering:zv,onEntered:zv,onExit:zv,onExiting:zv,onExited:zv},Yv.UNMOUNTED=Iv,Yv.EXITED=Ov,Yv.ENTERING=Rv,Yv.ENTERED=Fv,Yv.EXITING=jv;const Bv=Yv,Hv=Df(),Vv=function(e=Hv){return function(e=null){const n=t.useContext(Tu.T);return n&&(o=n,0!==Object.keys(o).length)?n:e;var o}(e)};function Uv(){const e=Vv(fv);return e[gv]||e}const Wv=e=>e.scrollTop;function qv(e,t){const{timeout:n,easing:o,style:a={}}=e;return{duration:a.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:a.transitionTimingFunction??("object"==typeof o?o[t.mode]:o),delay:a.transitionDelay}}const $v=im,Gv={entering:{opacity:1},entered:{opacity:1}},Kv=t.forwardRef((function(e,n){const o=Uv(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:h,onExited:m,onExiting:f,style:g,timeout:v=a,TransitionComponent:_=Bv,...b}=e,y=t.useRef(null),w=$v(y,sm(s),n),k=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=k(p),E=k(((e,t)=>{Wv(e);const n=qv({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),d&&d(e,t)})),S=k(u),M=k(f),T=k((e=>{const t=qv({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),h&&h(e)})),C=k(m);return(0,cm.jsx)(_,{appear:i,in:c,nodeRef:y,onEnter:E,onEntered:S,onEntering:x,onExit:T,onExited:C,onExiting:M,addEndListener:e=>{r&&r(y.current,e)},timeout:v,...b,children:(e,{ownerState:n,...o})=>t.cloneElement(s,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...Gv[e],...g,...s.props.style},ref:w,...o})})})),Jv=Kv,Xv=e=>e,Qv=(()=>{let e=Xv;return{configure(t){e=t},generate:t=>e(t),reset(){e=Xv}}})(),Zv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function e_(e,t,n="Mui"){const o=Zv[t];return o?`${n}-${o}`:`${Qv.generate(e)}-${t}`}function t_(e,t,n="Mui"){const o={};return t.forEach((t=>{o[t]=e_(e,t,n)})),o}function n_(e){return e_("MuiBackdrop",e)}t_("MuiBackdrop",["root","invisible"]);const o_=bv("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),a_=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:r="div",invisible:i=!1,open:s,components:l={},componentsProps:c={},slotProps:d={},slots:u={},TransitionComponent:p,transitionDuration:h,...m}=n,f={...n,component:r,invisible:i},g=(e=>{const{classes:t,invisible:n}=e;return Zh({root:["root",n&&"invisible"]},n_,t)})(f),v={slots:{transition:p,root:l.Root,...u},slotProps:{...c,...d}},[_,b]=Dv("root",{elementType:o_,externalForwardedProps:v,className:Qh(g.root,a),ownerState:f}),[y,w]=Dv("transition",{elementType:Jv,externalForwardedProps:v,ownerState:f});return(0,cm.jsx)(y,{in:s,timeout:h,...m,...w,children:(0,cm.jsx)(_,{"aria-hidden":!0,...b,classes:g,ref:t,children:o})})})),r_=a_,i_=function(e){const n=t.useRef(e);return mm((()=>{n.current=e})),t.useRef(((...e)=>(0,n.current)(...e))).current};function s_(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function l_(e){return lm(e).defaultView||window}function c_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function d_(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function u_(e){return parseInt(l_(e).getComputedStyle(e).paddingRight,10)||0}function p_(e,t,n,o,a){const r=[t,n,...o];[].forEach.call(e.children,(e=>{const t=!r.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&d_(e,a)}))}function h_(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}const m_=()=>{},f_=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&d_(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);p_(t,e.mount,e.modalRef,o,!0);const a=h_(this.containers,(e=>e.container===t));return-1!==a?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=h_(this.containers,(t=>t.modals.includes(e))),o=this.containers[n];o.restore||(o.restore=function(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=lm(e);return t.body===e?l_(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=c_(l_(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${u_(o)+e}px`;const t=lm(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${u_(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=lm(o).body;else{const t=o.parentElement,n=l_(o);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=h_(this.containers,(t=>t.modals.includes(e))),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&d_(e.modalRef,t),p_(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=a.modals[a.modals.length-1];e.modalRef&&d_(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function g_(e){return e_("MuiModal",e)}t_("MuiModal",["root","hidden","backdrop"]);const v_=bv("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(wv((({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]})))),__=bv(r_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),b_=t.forwardRef((function(e,n){const o=Ev({name:"MuiModal",props:e}),{BackdropComponent:a=__,BackdropProps:r,classes:i,className:s,closeAfterTransition:l=!1,children:c,container:d,component:u,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:_=!1,disableScrollLock:b=!1,hideBackdrop:y=!1,keepMounted:w=!1,onBackdropClick:k,onClose:x,onTransitionEnter:E,onTransitionExited:S,open:M,slotProps:T={},slots:C={},theme:A,...D}=o,P={...o,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:f,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:_,disableScrollLock:b,hideBackdrop:y,keepMounted:w},{getRootProps:L,getBackdropProps:N,getTransitionProps:I,portalRef:O,isTopModal:R,exited:F,hasTransition:j}=function(e){const{container:n,disableEscapeKeyDown:o=!1,disableScrollLock:a=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=t.useRef({}),h=t.useRef(null),m=t.useRef(null),f=im(m,u),[g,v]=t.useState(!d),_=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const y=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),w=()=>{f_.mount(y(),{disableScrollLock:a}),m.current&&(m.current.scrollTop=0)},k=i_((()=>{const e=function(e){return"function"==typeof e?e():e}(n)||lm(h.current).body;f_.add(y(),e),m.current&&w()})),x=()=>f_.isTopModal(y()),E=i_((e=>{h.current=e,e&&(d&&x()?w():m.current&&d_(m.current,b))})),S=t.useCallback((()=>{f_.remove(y(),b)}),[b]);t.useEffect((()=>()=>{S()}),[S]),t.useEffect((()=>{d?k():_&&r||S()}),[d,S,_,r,k]);const M=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&x()&&(o||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},T=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Tv(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o={...n,...t};return{role:"presentation",...o,onKeyDown:M(o),ref:f}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:T(t),open:d}},getTransitionProps:()=>({onEnter:s_((()=>{v(!1),i&&i()}),l?.props.onEnter??m_),onExited:s_((()=>{v(!0),s&&s(),r&&S()}),l?.props.onExited??m_)}),rootRef:f,portalRef:E,isTopModal:x,exited:g,hasTransition:_}}({...P,rootRef:n}),Y={...P,exited:F},z=(e=>{const{open:t,exited:n,classes:o}=e;return Zh({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},g_,o)})(Y),B={};if(void 0===c.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=I();B.onEnter=e,B.onExited=t}const H={slots:{root:p.Root,backdrop:p.Backdrop,...C},slotProps:{...h,...T}},[V,U]=Dv("root",{ref:n,elementType:v_,externalForwardedProps:{...H,...D,component:u},getSlotProps:L,ownerState:Y,className:Qh(s,z?.root,!Y.open&&Y.exited&&z?.hidden)}),[W,q]=Dv("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:e=>N({...e,onClick:t=>{k&&k(t),e?.onClick&&e.onClick(t)}}),className:Qh(r?.className,z?.backdrop),ownerState:Y});return w||M||j&&!F?(0,cm.jsx)(gm,{ref:O,container:d,disablePortal:v,children:(0,cm.jsxs)(V,{...U,children:[!y&&a?(0,cm.jsx)(W,{...q}):null,(0,cm.jsx)(hm,{disableEnforceFocus:f,disableAutoFocus:m,disableRestoreFocus:_,isEnabled:R,open:M,children:t.cloneElement(c,B)})]})}):null})),y_=b_;function w_(e){return e_("MuiPaper",e)}t_("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const k_=bv("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(wv((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]})))),x_=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiPaper"}),o=Uv(),{className:a,component:r="div",elevation:i=1,square:s=!1,variant:l="elevation",...c}=n,d={...n,component:r,elevation:i,square:s,variant:l},u=(e=>{const{square:t,elevation:n,variant:o,classes:a}=e;return Zh({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${n}`]},w_,a)})(d);return(0,cm.jsx)(k_,{as:r,ownerState:d,className:Qh(u.root,a),ref:t,...c,style:{..."elevation"===l&&{"--Paper-shadow":(o.vars||o).shadows[i],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[i]},...!o.vars&&"dark"===o.palette.mode&&{"--Paper-overlay":`linear-gradient(${Wf("#fff",tv(i))}, ${Wf("#fff",tv(i))})`}},...c.style}})})),E_=x_;function S_(e){return e_("MuiDialog",e)}const M_=t_("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),T_=t.createContext({}),C_=bv(r_,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),A_=bv(y_,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),D_=bv("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${rm(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),P_=bv(E_,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${rm(n.scroll)}`],t[`paperWidth${rm(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(wv((({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${M_.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter((e=>"xs"!==e)).map((t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${M_.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${M_.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),L_=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiDialog"}),a=Uv(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:d,children:u,className:p,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:f=!1,maxWidth:g="sm",onBackdropClick:v,onClick:_,onClose:b,open:y,PaperComponent:w=E_,PaperProps:k={},scroll:x="paper",slots:E={},slotProps:S={},TransitionComponent:M=Jv,transitionDuration:T=r,TransitionProps:C,...A}=o,D={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:f,maxWidth:g,scroll:x},P=(e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:a,fullScreen:r}=e;return Zh({root:["root"],container:["container",`scroll${rm(n)}`],paper:["paper",`paperScroll${rm(n)}`,`paperWidth${rm(String(o))}`,a&&"paperFullWidth",r&&"paperFullScreen"]},S_,t)})(D),L=t.useRef(),N=nm(s),I=t.useMemo((()=>({titleId:N})),[N]),O={slots:{transition:M,...E},slotProps:{transition:C,paper:k,backdrop:d,...S}},[R,F]=Dv("root",{elementType:A_,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:D,className:Qh(P.root,p),ref:n}),[j,Y]=Dv("backdrop",{elementType:C_,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:D}),[z,B]=Dv("paper",{elementType:P_,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:D,className:Qh(P.paper,k.className)}),[H,V]=Dv("container",{elementType:D_,externalForwardedProps:O,ownerState:D,className:Qh(P.container)}),[U,W]=Dv("transition",{elementType:Jv,externalForwardedProps:O,ownerState:D,additionalProps:{appear:!0,in:y,timeout:T,role:"presentation"}});return(0,cm.jsx)(R,{closeAfterTransition:!0,slots:{backdrop:j},slotProps:{backdrop:{transitionDuration:T,as:c,...Y}},disableEscapeKeyDown:h,onClose:b,open:y,onClick:e=>{_&&_(e),L.current&&(L.current=null,v&&v(e),b&&b(e,"backdropClick"))},...F,...A,children:(0,cm.jsx)(U,{...W,children:(0,cm.jsx)(H,{onMouseDown:e=>{L.current=e.target===e.currentTarget},...V,children:(0,cm.jsx)(z,{as:w,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":N,"aria-modal":l,...B,children:(0,cm.jsx)(T_.Provider,{value:I,children:u})})})})})})),N_=L_;function I_(e){const{sx:t,...n}=e,{systemProps:o,otherProps:a}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Mf;return Object.keys(e).forEach((o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]})),t})(n);let r;return r=Array.isArray(t)?[o,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return wm(n)?{...o,...n}:o}:{...o,...t},{...a,sx:r}}function O_(e){const{styles:t,defaultTheme:n={}}=e,o="function"==typeof t?e=>{return t(null==(o=e)||0===Object.keys(o).length?n:e);var o}:t;return(0,cm.jsx)(Lu,{styles:o})}const R_=function({styles:e,themeId:t,defaultTheme:n={}}){const o=Vv(n),a="function"==typeof e?e(t&&o[t]||o):e;return(0,cm.jsx)(O_,{styles:a})},F_=function(e){return(0,cm.jsx)(R_,{...e,defaultTheme:fv,themeId:gv})};function j_(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}function Y_(e){return e_("MuiTypography",e)}t_("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const z_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},B_=I_,H_=bv("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${rm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(wv((({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter((([e,t])=>"inherit"!==e&&t&&"object"==typeof t)).map((([e,t])=>({props:{variant:e},style:t}))),...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette?.text||{}).filter((([,e])=>"string"==typeof e)).map((([t])=>({props:{color:`text${rm(t)}`},style:{color:(e.vars||e).palette.text[t]}}))),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]})))),V_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},U_=t.forwardRef((function(e,t){const{color:n,...o}=Ev({props:e,name:"MuiTypography"}),a=B_({...o,...!z_[n]&&{color:n}}),{align:r="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=V_,...h}=a,m={...a,align:r,color:n,className:i,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p},f=s||(d?"p":p[u]||V_[u])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:a,variant:r,classes:i}=e;return Zh({root:["root",r,"inherit"!==e.align&&`align${rm(t)}`,n&&"gutterBottom",o&&"noWrap",a&&"paragraph"]},Y_,i)})(m);return(0,cm.jsx)(H_,{as:f,ref:t,className:Qh(g.root,i),...h,ownerState:m,style:{..."inherit"!==r&&{"--Typography-textAlign":r},...h.style}})})),W_=U_;function q_(e){return e_("MuiDialogTitle",e)}const $_=t_("MuiDialogTitle",["root"]),G_=bv(W_,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),K_=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiDialogTitle"}),{className:a,id:r,...i}=o,s=o,l=(e=>{const{classes:t}=e;return Zh({root:["root"]},q_,t)})(s),{titleId:c=r}=t.useContext(T_);return(0,cm.jsx)(G_,{component:"h2",className:Qh(l.root,a),ownerState:s,ref:n,variant:"h6",id:r??c,...i})})),J_=K_;function X_(e){return e_("MuiDialogContent",e)}t_("MuiDialogContent",["root","dividers"]);const Q_=bv("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(wv((({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${$_.root} + &`]:{paddingTop:0}}}]})))),Z_=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...r}=n,i={...n,dividers:a},s=(e=>{const{classes:t,dividers:n}=e;return Zh({root:["root",n&&"dividers"]},X_,t)})(i);return(0,cm.jsx)(Q_,{className:Qh(s.root,o),ownerState:i,ref:t,...r})})),eb=Z_;function tb(e){return e_("MuiTableContainer",e)}t_("MuiTableContainer",["root"]);const nb=bv("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),ob=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiTableContainer"}),{className:o,component:a="div",...r}=n,i={...n,component:a},s=(e=>{const{classes:t}=e;return Zh({root:["root"]},tb,t)})(i);return(0,cm.jsx)(nb,{ref:t,as:a,className:Qh(s.root,o),ownerState:i,...r})})),ab=ob,rb=t.createContext();function ib(e){return e_("MuiTable",e)}t_("MuiTable",["root","stickyHeader"]);const sb=bv("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(wv((({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]})))),lb="table",cb=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiTable"}),{className:a,component:r=lb,padding:i="normal",size:s="medium",stickyHeader:l=!1,...c}=o,d={...o,component:r,padding:i,size:s,stickyHeader:l},u=(e=>{const{classes:t,stickyHeader:n}=e;return Zh({root:["root",n&&"stickyHeader"]},ib,t)})(d),p=t.useMemo((()=>({padding:i,size:s,stickyHeader:l})),[i,s,l]);return(0,cm.jsx)(rb.Provider,{value:p,children:(0,cm.jsx)(sb,{as:r,role:r===lb?null:"table",ref:n,className:Qh(u.root,a),ownerState:d,...c})})})),db=cb,ub=t.createContext();function pb(e){return e_("MuiTableHead",e)}t_("MuiTableHead",["root"]);const hb=bv("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),mb={variant:"head"},fb="thead",gb=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiTableHead"}),{className:o,component:a=fb,...r}=n,i={...n,component:a},s=(e=>{const{classes:t}=e;return Zh({root:["root"]},pb,t)})(i);return(0,cm.jsx)(ub.Provider,{value:mb,children:(0,cm.jsx)(hb,{as:a,className:Qh(s.root,o),ref:t,role:a===fb?null:"rowgroup",ownerState:i,...r})})})),vb=gb;function _b(e){return e_("MuiTableRow",e)}const bb=t_("MuiTableRow",["root","selected","hover","head","footer"]),yb=bv("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(wv((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${bb.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Wf(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Wf(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})))),wb="tr",kb=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiTableRow"}),{className:a,component:r=wb,hover:i=!1,selected:s=!1,...l}=o,c=t.useContext(ub),d={...o,component:r,hover:i,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},u=(e=>{const{classes:t,selected:n,hover:o,head:a,footer:r}=e;return Zh({root:["root",n&&"selected",o&&"hover",a&&"head",r&&"footer"]},_b,t)})(d);return(0,cm.jsx)(yb,{as:r,ref:n,className:Qh(u.root,a),role:r===wb?null:"row",ownerState:d,...l})})),xb=kb;function Eb(e){return e_("MuiTableCell",e)}const Sb=t_("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Mb=bv("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${rm(n.size)}`],"normal"!==n.padding&&t[`padding${rm(n.padding)}`],"inherit"!==n.align&&t[`align${rm(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(wv((({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n    ${"light"===e.palette.mode?Kf(Wf(e.palette.divider,1),.88):$f(Wf(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Sb.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]})))),Tb=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiTableCell"}),{align:a="inherit",className:r,component:i,padding:s,scope:l,size:c,sortDirection:d,variant:u,...p}=o,h=t.useContext(rb),m=t.useContext(ub),f=m&&"head"===m.variant;let g;g=i||(f?"th":"td");let v=l;"td"===g?v=void 0:!v&&f&&(v="col");const _=u||m&&m.variant,b={...o,align:a,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:"head"===_&&h&&h.stickyHeader,variant:_},y=(e=>{const{classes:t,variant:n,align:o,padding:a,size:r,stickyHeader:i}=e;return Zh({root:["root",n,i&&"stickyHeader","inherit"!==o&&`align${rm(o)}`,"normal"!==a&&`padding${rm(a)}`,`size${rm(r)}`]},Eb,t)})(b);let w=null;return d&&(w="asc"===d?"ascending":"descending"),(0,cm.jsx)(Mb,{as:g,ref:n,className:Qh(y.root,r),"aria-sort":w,scope:v,ownerState:b,...p})})),Cb=Tb;function Ab(e){return e_("MuiTableBody",e)}t_("MuiTableBody",["root"]);const Db=bv("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Pb={variant:"body"},Lb="tbody",Nb=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiTableBody"}),{className:o,component:a=Lb,...r}=n,i={...n,component:a},s=(e=>{const{classes:t}=e;return Zh({root:["root"]},Ab,t)})(i);return(0,cm.jsx)(ub.Provider,{value:Pb,children:(0,cm.jsx)(Db,{className:Qh(s.root,o),as:a,ref:t,role:a===Lb?null:"rowgroup",ownerState:i,...r})})})),Ib=Nb;function Ob(e){return e_("MuiDialogActions",e)}t_("MuiDialogActions",["root","spacing"]);const Rb=bv("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Fb=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...r}=n,i={...n,disableSpacing:a},s=(e=>{const{classes:t,disableSpacing:n}=e;return Zh({root:["root",!n&&"spacing"]},Ob,t)})(i);return(0,cm.jsx)(Rb,{className:Qh(s.root,o),ownerState:i,ref:t,...r})})),jb=Fb,Yb=nm;function zb(e){try{return e.matches(":focus-visible")}catch(e){}return!1}const Bb=i_,Hb={};function Vb(e,n){const o=t.useRef(Hb);return o.current===Hb&&(o.current=e(n)),o}class Ub{static create(){return new Ub}static use(){const e=Vb(Ub.create).current,[n,o]=t.useState(!1);return e.shouldMount=n,e.setShouldMount=o,t.useEffect(e.mountEffect,[n]),e}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let e,t;const n=new Promise(((n,o)=>{e=n,t=o}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then((()=>this.ref.current?.start(...e)))}stop(...e){this.mount().then((()=>this.ref.current?.stop(...e)))}pulsate(...e){this.mount().then((()=>this.ref.current?.pulsate(...e)))}}var Wb=a(9417);function qb(e,n){var o=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){o[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),o}function $b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Gb(e,n,o){var a=qb(e.children),r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,a=Object.create(null),r=[];for(var i in e)i in t?r.length&&(a[i]=r,r=[]):r.push(i);var s={};for(var l in t){if(a[l])for(o=0;o<a[l].length;o++){var c=a[l][o];s[a[l][o]]=n(c)}s[l]=n(l)}for(o=0;o<r.length;o++)s[r[o]]=n(r[o]);return s}(n,a);return Object.keys(r).forEach((function(i){var s=r[i];if((0,t.isValidElement)(s)){var l=i in n,c=i in a,d=n[i],u=(0,t.isValidElement)(d)&&!d.props.in;!c||l&&!u?c||!l||u?c&&l&&(0,t.isValidElement)(d)&&(r[i]=(0,t.cloneElement)(s,{onExited:o.bind(null,s),in:d.props.in,exit:$b(s,"exit",e),enter:$b(s,"enter",e)})):r[i]=(0,t.cloneElement)(s,{in:!1}):r[i]=(0,t.cloneElement)(s,{onExited:o.bind(null,s),in:!0,exit:$b(s,"exit",e),enter:$b(s,"enter",e)})}})),r}var Kb=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Jb=function(e){function n(t,n){var o,a=(o=e.call(this,t,n)||this).handleExited.bind((0,Wb.A)(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}Lv(n,e);var o=n.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var o,a,r=n.children,i=n.handleExited;return{children:n.firstRender?(o=e,a=i,qb(o.children,(function(e){return(0,t.cloneElement)(e,{onExited:a.bind(null,e),in:!0,appear:$b(e,"appear",o),enter:$b(e,"enter",o),exit:$b(e,"exit",o)})}))):Gb(e,r,i),firstRender:!1}},o.handleExited=function(e,t){var n=qb(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,xu.A)({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,n=e.component,o=e.childFactory,a=yu(e,["component","childFactory"]),r=this.state.contextValue,i=Kb(this.state.children).map(o);return delete a.appear,delete a.enter,delete a.exit,null===n?t.createElement(Nv.Provider,{value:r},i):t.createElement(Nv.Provider,{value:r},t.createElement(n,a,i))},n}(t.Component);Jb.propTypes={},Jb.defaultProps={component:"div",childFactory:function(e){return e}};const Xb=Jb,Qb=[];class Zb{static create(){return new Zb}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function ey(){const e=Vb(Zb.create).current;var n;return n=e.disposeEffect,t.useEffect(n,Qb),e}const ty=t_("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ny=Iu`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,oy=Iu`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,ay=Iu`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,ry=bv("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iy=bv((function(e){const{className:n,classes:o,pulsate:a=!1,rippleX:r,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:d}=e,[u,p]=t.useState(!1),h=Qh(n,o.ripple,o.rippleVisible,a&&o.ripplePulsate),m={width:s,height:s,top:-s/2+i,left:-s/2+r},f=Qh(o.child,u&&o.childLeaving,a&&o.childPulsate);return l||u||p(!0),t.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,l,d]),(0,cm.jsx)("span",{className:h,style:m,children:(0,cm.jsx)("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${ty.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${ny};
animation-duration: ${550}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};}
&.${ty.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${ty.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${ty.childLeaving} {
opacity: 0;
animation-name: ${oy};
animation-duration: ${550}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};}
& .${ty.childPulsate} {
position: absolute;
left: 0px;
top: 0;
animation-name: ${ay};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,sy=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:r={},className:i,...s}=o,[l,c]=t.useState([]),d=t.useRef(0),u=t.useRef(null);t.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const p=t.useRef(!1),h=ey(),m=t.useRef(null),f=t.useRef(null),g=t.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:a,cb:i}=e;c((e=>[...e,(0,cm.jsx)(iy,{classes:{ripple:Qh(r.ripple,ty.ripple),rippleVisible:Qh(r.rippleVisible,ty.rippleVisible),ripplePulsate:Qh(r.ripplePulsate,ty.ripplePulsate),child:Qh(r.child,ty.child),childLeaving:Qh(r.childLeaving,ty.childLeaving),childPulsate:Qh(r.childPulsate,ty.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a},d.current)])),d.current+=1,u.current=i}),[r]),v=t.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:r=a||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&p.current)return void(p.current=!1);"touchstart"===e?.type&&(p.current=!0);const s=i?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,u;if(r||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(r)u=Math.sqrt((2*l.width**2+l.height**2)/3),u%2==0&&(u+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-d),d)+2;u=Math.sqrt(e**2+t**2)}e?.touches?null===m.current&&(m.current=()=>{g({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:n})},h.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:o,rippleX:c,rippleY:d,rippleSize:u,cb:n})}),[a,g,h]),_=t.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=t.useCallback(((e,t)=>{if(h.clear(),"touchend"===e?.type&&m.current)return m.current(),m.current=null,void h.start(0,(()=>{b(e,t)}));m.current=null,c((e=>e.length>0?e.slice(1):e)),u.current=t}),[h]);return t.useImperativeHandle(n,(()=>({pulsate:_,start:v,stop:b})),[_,v,b]),(0,cm.jsx)(ry,{className:Qh(ty.root,r.root,i),ref:f,...s,children:(0,cm.jsx)(Xb,{component:null,exit:!0,children:l})})})),ly=sy;function cy(e){return e_("MuiButtonBase",e)}const dy=t_("MuiButtonBase",["root","disabled","focusVisible"]),uy=bv("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dy.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),py=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:r=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:f,onClick:g,onContextMenu:v,onDragLeave:_,onFocus:b,onFocusVisible:y,onKeyDown:w,onKeyUp:k,onMouseDown:x,onMouseLeave:E,onMouseUp:S,onTouchEnd:M,onTouchMove:T,onTouchStart:C,tabIndex:A=0,TouchRippleProps:D,touchRippleRef:P,type:L,...N}=o,I=t.useRef(null),O=Ub.use(),R=$v(O.ref,P),[F,j]=t.useState(!1);c&&F&&j(!1),t.useImperativeHandle(a,(()=>({focusVisible:()=>{j(!0),I.current.focus()}})),[]);const Y=O.shouldMount&&!d&&!c;t.useEffect((()=>{F&&p&&!d&&O.pulsate()}),[d,p,F,O]);const z=hy(O,"start",x,u),B=hy(O,"stop",v,u),H=hy(O,"stop",_,u),V=hy(O,"stop",S,u),U=hy(O,"stop",(e=>{F&&e.preventDefault(),E&&E(e)}),u),W=hy(O,"start",C,u),q=hy(O,"stop",M,u),$=hy(O,"stop",T,u),G=hy(O,"stop",(e=>{zb(e.target)||j(!1),f&&f(e)}),!1),K=Bb((e=>{I.current||(I.current=e.currentTarget),zb(e.target)&&(j(!0),y&&y(e)),b&&b(e)})),J=()=>{const e=I.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},X=Bb((e=>{p&&!e.repeat&&F&&" "===e.key&&O.stop(e,(()=>{O.start(e)})),e.target===e.currentTarget&&J()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&J()&&"Enter"===e.key&&!c&&(e.preventDefault(),g&&g(e))})),Q=Bb((e=>{p&&" "===e.key&&F&&!e.defaultPrevented&&O.stop(e,(()=>{O.pulsate(e)})),k&&k(e),g&&e.target===e.currentTarget&&J()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let Z=l;"button"===Z&&(N.href||N.to)&&(Z=m);const ee={};"button"===Z?(ee.type=void 0===L?"button":L,ee.disabled=c):(N.href||N.to||(ee.role="button"),c&&(ee["aria-disabled"]=c));const te=$v(n,I),ne={...o,centerRipple:r,component:l,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:p,tabIndex:A,focusVisible:F},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:a}=e,r=Zh({root:["root",t&&"disabled",n&&"focusVisible"]},cy,a);return n&&o&&(r.root+=` ${o}`),r})(ne);return(0,cm.jsxs)(uy,{as:Z,className:Qh(oe.root,s),ownerState:ne,onBlur:G,onClick:g,onContextMenu:B,onFocus:K,onKeyDown:X,onKeyUp:Q,onMouseDown:z,onMouseLeave:U,onMouseUp:V,onDragLeave:H,onTouchEnd:q,onTouchMove:$,onTouchStart:W,ref:te,tabIndex:c?-1:A,type:L,...ee,...N,children:[i,Y?(0,cm.jsx)(ly,{ref:R,center:r,...D}):null]})}));function hy(e,t,n,o=!1){return Bb((a=>(n&&n(a),o||e[t](a),!0)))}const my=py;function fy(e){return e_("MuiCircularProgress",e)}t_("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gy=Iu`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,vy=Iu`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
`,_y="string"!=typeof gy?Nu`
animation: ${gy} 1.4s linear infinite;
`:null,by="string"!=typeof vy?Nu`
animation: ${vy} 1.4s ease-in-out infinite;
`:null,yy=bv("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${rm(n.color)}`]]}})(wv((({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_y||{animation:`${gy} 1.4s linear infinite`}},...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})))]})))),wy=bv("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ky=bv("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${rm(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(wv((({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:by||{animation:`${vy} 1.4s ease-in-out infinite`}}]})))),xy=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:r=!1,size:i=40,style:s,thickness:l=3.6,value:c=0,variant:d="indeterminate",...u}=n,p={...n,color:a,disableShrink:r,size:i,thickness:l,value:c,variant:d},h=(e=>{const{classes:t,variant:n,color:o,disableShrink:a}=e;return Zh({root:["root",n,`color${rm(o)}`],svg:["svg"],circle:["circle",`circle${rm(n)}`,a&&"circleDisableShrink"]},fy,t)})(p),m={},f={},g={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);m.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,f.transform="rotate(-90deg)"}return(0,cm.jsx)(yy,{className:Qh(h.root,o),style:{width:i,height:i,...f,...s},ownerState:p,ref:t,role:"progressbar",...g,...u,children:(0,cm.jsx)(wy,{className:h.svg,ownerState:p,viewBox:"22 22 44 44",children:(0,cm.jsx)(ky,{className:h.circle,style:m,ownerState:p,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})})})),Ey=xy;function Sy(e){return e_("MuiButton",e)}const My=t_("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Ty=t.createContext({}),Cy=t.createContext(void 0),Ay=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Dy=bv(my,{shouldForwardProp:e=>_v(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${rm(n.color)}`],t[`size${rm(n.size)}`],t[`${n.variant}Size${rm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(wv((({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${My.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${My.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${My.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${My.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Wf(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wf(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wf(e.palette[t].main,e.palette.action.hoverOpacity)}}}}))),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Wf(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Wf(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${My.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${My.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${My.loading}`]:{color:"transparent"}}}]}}))),Py=bv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${rm(n.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ay]}))),Ly=bv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${rm(n.size)}`]]}})((({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ay]}))),Ny=bv("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}))),Iy=bv("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Oy=t.forwardRef((function(e,n){const o=t.useContext(Ty),a=t.useContext(Cy),r=Ev({props:kv(o,e),name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:c,disabled:d=!1,disableElevation:u=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:m,fullWidth:f=!1,id:g,loading:v=null,loadingIndicator:_,loadingPosition:b="center",size:y="medium",startIcon:w,type:k,variant:x="text",...E}=r,S=Yb(g),M=_??(0,cm.jsx)(Ey,{"aria-labelledby":S,color:"inherit",size:16}),T={...r,color:s,component:l,disabled:d,disableElevation:u,disableFocusRipple:p,fullWidth:f,loading:v,loadingIndicator:M,loadingPosition:b,size:y,type:k,variant:x},C=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:a,variant:r,loading:i,loadingPosition:s,classes:l}=e,c=Zh({root:["root",i&&"loading",r,`${r}${rm(t)}`,`size${rm(a)}`,`${r}Size${rm(a)}`,`color${rm(t)}`,n&&"disableElevation",o&&"fullWidth",i&&`loadingPosition${rm(s)}`],startIcon:["icon","startIcon",`iconSize${rm(a)}`],endIcon:["icon","endIcon",`iconSize${rm(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Sy,l);return{...l,...c}})(T),A=(w||v&&"start"===b)&&(0,cm.jsx)(Py,{className:C.startIcon,ownerState:T,children:w||(0,cm.jsx)(Iy,{className:C.loadingIconPlaceholder,ownerState:T})}),D=(h||v&&"end"===b)&&(0,cm.jsx)(Ly,{className:C.endIcon,ownerState:T,children:h||(0,cm.jsx)(Iy,{className:C.loadingIconPlaceholder,ownerState:T})}),P=a||"",L="boolean"==typeof v?(0,cm.jsx)("span",{className:C.loadingWrapper,style:{display:"contents"},children:v&&(0,cm.jsx)(Ny,{className:C.loadingIndicator,ownerState:T,children:M})}):null;return(0,cm.jsxs)(Dy,{ownerState:T,className:Qh(o.className,C.root,c,P),component:l,disabled:d||v,focusRipple:!p,focusVisibleClassName:Qh(C.focusVisible,m),ref:n,type:k,id:v?S:g,...E,classes:C,children:[A,"end"!==b&&L,i,"end"===b&&L,D]})})),Ry=Oy;var Fy=a(5072),jy=a.n(Fy),Yy=a(7825),zy=a.n(Yy),By=a(7659),Hy=a.n(By),Vy=a(5056),Uy=a.n(Vy),Wy=a(540),qy=a.n(Wy),$y=a(1113),Gy=a.n($y),Ky=a(774),Jy={};function Xy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xy(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zy=function(){return!!e})()}Jy.styleTagTransform=Gy(),Jy.setAttributes=Uy(),Jy.insert=Hy().bind(null,"head"),Jy.domAPI=zy(),Jy.insertStyleElement=qy(),jy()(Ky.A,Jy),Ky.A&&Ky.A.locals&&Ky.A.locals;var ew,tw,nw,ow,aw,rw=function(e){var n=e.value,o=e.onClick;return t.createElement("div",{className:"input-group"},t.createElement("input",{type:"text",className:"formControl",value:n,onClick:o,readOnly:!0}),t.createElement("div",{className:"input-group-append"},t.createElement("span",{className:"calendar-icon"},t.createElement("i",{className:"csv-icon-calendar2 input-icon"}))))},iw=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,Zy()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handleChange",(function(e){t.setState({selectedOptions:e})})),(0,p.A)(t,"handlePostTitleChange",(function(e){t.setState({selectedPostTitles:e})})),(0,p.A)(t,"exportToGsheet",u(m().mark((function e(){var n,o,a,r,i,s,l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Export button clicked"),t.setState({isLoading:!0}),o={Authorization:"Bearer "+(t.state.accessToken||""),"Content-Type":"multipart/form-data"},a=t.state.conditions||[],r={is_check:t.state.isExportDataBasedOnSpecificInclusion,exclusion_headers:o},(i=new FormData).set("action","export_to_gsheet"),i.set("module",t.context.exportInfo.moduleName),i.set("securekey",(null===(n=window.smack_nonce_object_pro)||void 0===n?void 0:n.nonce)||""),i.set("fileName",t.context.fileName),i.set("categoryName",t.state.selectedOptions.map((function(e){return e.label})).join(", ")),i.set("specific_post_title",t.state.selectedPostTitles.map((function(e){return e.label})).join(", ")),i.set("exp_type",t.state.exportType),i.set("optionalType",t.context.optionalType),i.set("conditions",JSON.stringify(a)),i.set("eventExclusions",JSON.stringify(r)),i.set("limit",t.state.recordLimit),i.set("is_check_split",t.state.isSplitTheRecord),i.set("export_mode",t.state.exportMode),i.set("offset",t.state.offset),e.prev=20,e.next=23,Lt.post(ajaxurl,i);case 23:s=e.sent,console.log(s),200===s.status&&s.data.success?(l=s.data.data.gsheet_url)?window.open(l,"_blank"):console.error("No Google Sheet URL found in response"):console.error("Export failed, please try again"),e.next=31;break;case 28:e.prev=28,e.t0=e.catch(20),console.error("An error occurred:",e.t0);case 31:return e.prev=31,t.setState({isLoading:!1}),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[20,28,31,34]])})))),(0,p.A)(t,"handleCheckboxChange",function(){var e=u(m().mark((function e(n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.target.checked,e.prev=1,e.next=4,fetch(ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"check_google_sheet_credentials",securekey:window.smack_nonce_object_pro.nonce})});case 4:return a=e.sent,e.next=7,a.json();case 7:if(e.sent.success){e.next=11;break}return bn.error("Please Save Credentials In The Google Sheets Tab In Settings Section.",{position:bn.POSITION.TOP_RIGHT,autoClose:5e3}),e.abrupt("return");case 11:t.setState({isGsheetChecked:o}),bn.success("Credentials are verified and saved.",{position:bn.POSITION.TOP_RIGHT,autoClose:5e3}),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),console.error("Error checking credentials:",e.t0),bn.error("Unable to verify credentials. Please try again later.",{position:bn.POSITION.TOP_RIGHT,autoClose:5e3});case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(t){return e.apply(this,arguments)}}()),(0,p.A)(t,"handleBundleDownload",(function(){if(t.state.bundleFileurl){var e=new URL(t.state.bundleFileurl,window.location.origin).href,n=document.createElement("a");n.href=e,n.download=e.split("/").pop(),document.body.appendChild(n),n.click(),document.body.removeChild(n)}else console.error("File path is missing!")})),(0,p.A)(t,"closeModal",(function(){t.setState({showPreviewModal:!1})})),(0,p.A)(t,"handleExportRoleChange",(function(e){var n=e.map((function(e){return e.value}));t.setState({exportRoleData:n})})),t.state={loading:!1,isLoading:!1,exportName:"",exportStatus:"Download Success",isGsheetChecked:!1,exportErrorFlag:!1,exportType:"csv",exportFields:[],showPreviewModal:!1,data:[],isPreview:!1,categoryList:[],selectedOptions:[],postTitles:[],selectedPostTitles:[],authorList:[],langCodeList:[],wpmlActive:!1,showSplitRecord:!1,recordLimit:"",startDate:new Date,endDate:new Date,scheduleDate:new Date,timeZones:[],selectTimeZones:[],selectedUTC:"",categoryName:"",postId:"",iterationId:"",category_name:"",conditions:{},enableSchedule:!1,scheduleFrequency:"OneTime",scheduleTime:"",hostName:"",hostPort:"",hostUserName:"",hostPassword:"",hostPath:"",connectionType:"",offset:0,exportProgress:"0",totalExportRecord:0,stopWatch:"00:00:00",activeDowloadTab:!1,exportSuccess:!1,showDownloadBtn:!1,exportedFileUrl:"",bundleFileurl:"",disableScheduledExportButton:!1,exportOrderChecked:!1,exportSelectedField:"",exportPaymentChecked:!1,exportPaymentSelectedField:"",exportStatusChecked:!1,exportStatusSelectedField:"",exportUserProductChecked:!1,userProductSelectedField:"",exportRoleChecked:!1,roleSelectedField:"",exportCheckedRole:!1,exportRoleData:[]},t.stopSeconds=0,t.stopMinutes=0,t.stopHours=0,t.handleChangeStart=t.handleChangeStart.bind(t),t.handleChangeEnd=t.handleChangeEnd.bind(t),t.handleChangeSchedule=t.handleChangeSchedule.bind(t),t.onInputChange=t.onInputChange.bind(t),t.exportToGsheet=t.exportToGsheet.bind(t),t.handleCheckboxChange=t.handleCheckboxChange.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"onInputChange",value:function(e){this.setState((0,p.A)({},e.target.name,e.target.value),(function(){}))}},{key:"handleChangeStart",value:function(e){this.setState({startDate:e})}},{key:"handleChangeEnd",value:function(e){this.setState({endDate:e})}},{key:"handleChangeSchedule",value:function(e){this.setState({scheduleDate:e})}},{key:"componentDidMount",value:function(){this.setState({exportCheckedRole:this.context.checkedClientMode}),this.state.conditions={delimiter:{is_check:this.context.isDelimiters,delimiter:this.context.delimitersOption,optional_delimiter:this.context.otherDelimiters},specific_period:{is_check:this.context.isSpecificPeriod,from:this.context.startDate,to:this.context.endDate},specific_status:{is_check:this.context.isSpecificStatus,status:this.context.specificStatus},specific_jetbooking_status:{is_check:this.context.isSpecificJetbookingStatus,status:this.context.SpecificJetbookingStatus},specific_authors:{is_check:this.context.isSpecificAuthors,author:this.context.specificAuthors},specific_lang_code:{is_check:this.context.isSpecificLangCode,lang_code:this.context.SpecificLangCode},specific_category:{is_check:this.context.isSpecificCategory,category:this.context.categoryName},specific_post_title:{is_check:this.context.isSpecificPostTitle,post_title:this.context.postTitle},specific_post_id:{is_check:this.context.isSpecificPostId,post_id:this.context.postId},specific_iteration_id:{is_check:this.context.isSpecificIterationId,iteration_id:this.context.iterationId}},this.getFields(),this.getAuthors(),this.getLangCode(),this.getUtcTimeZones(),this.timer=setInterval(function(){!this.state.exportSuccess&&this.state.activeDowloadTab&&this.stopWatch()}.bind(this),1e3)}},{key:"checkPluginId",value:function(e){for(var t=0,n=Object.keys(this.context.eventExclusion.exclusion_headers.header),o=0;o<n.length;o++)if(n[o]===e)return t+=1,!0;if(0==t)return!1}},{key:"getFields",value:(b=u(m().mark((function e(){var t,n,o,a,r,i,s,l,c,d,u,p,h;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","get_export_fields"),"Taxonomies"===(a=this.context.exportInfo.moduleName)||"CustomPosts"===a?o.set("Types",this.context.exportInfo.optionalType):o.set("Types",this.context.exportInfo.moduleName),null!==(t=this.context)&&void 0!==t&&null!==(t=t.exportQueryData)&&void 0!==t&&t.seletedValue&&null!==(n=this.context)&&void 0!==n&&null!==(n=n.exportQueryData)&&void 0!==n&&n.Query&&(o.set("query_data",this.context.exportQueryData.Query),o.set("type",this.context.exportQueryData.seletedValue),o.set("IsQuery",!0)),o.set("securekey",window.smack_nonce_object_pro.nonce),(r=new FormData).set("action","get_post_titles"),r.set("securekey",window.smack_nonce_object_pro.nonce),i="Posts"===a?"post":"Pages"===a?"page":"CustomPosts"===a?this.context.exportInfo.optionalType:"WooCommerce"===a?"product":"post",r.set("post_type",i),this.setState({loading:!0}),e.prev=12,e.next=15,Promise.all([Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}}),Lt({method:"post",url:ajaxurl,data:r,config:{headers:{"Content-Type":"multipart/form-data"}}})]);case 15:s=e.sent,l=pu(s,2),c=l[0],d=l[1],this.setState({loading:!1}),c&&c.data.success&&(this.context.setFilterFieldData(c),u=mu(c.data.fields),this.setState({exportFields:u}),this.setState({categoryList:c.data.cat_fields}),p=this.context.categoryName.split(",").map((function(e){return e.trim()})),h=c.data.cat_fields.filter((function(e){return p.includes(e)})).map((function(e){return{label:e,value:e}})),this.setState({selectedOptions:h})),d&&d.data.success?this.setState({postTitles:d.data.post_titles}):console.error("Failed to fetch post titles"),e.next=28;break;case 24:e.prev=24,e.t0=e.catch(12),console.error("Error during AJAX requests:",e.t0),this.setState({loading:!1});case 28:case"end":return e.stop()}}),e,this,[[12,24]])}))),function(){return b.apply(this,arguments)})},{key:"getAuthors",value:(v=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_authors"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(n=e.sent,this.setState({loading:!1}),200==n.status){for(o=n.data.user_id.length,a=[],r=0;r<o;r++)a.push({user_id:n.data.user_id[r],user_name:n.data.user_name[r]});this.setState({authorList:a})}case 9:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"getLangCode",value:(g=u(m().mark((function e(){var t,n,o,a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_lang_code"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(n=e.sent,this.setState({loading:!1}),200==n.status){for(o=n.data.wpml_active,a=n.data.language_code.length,r=[],i=0;i<a;i++)r.push({language_code:n.data.language_code[i]});this.setState({langCodeList:r,wpmlActive:o})}case 9:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"handleCheck",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Array.isArray(this.context.eventExclusion.exclusion_headers.header)&&!this.context.eventExclusion.exclusion_headers.header.length&&(this.context.eventExclusion.exclusion_headers.header={},this.context.setEventExclusion(this.context.eventExclusion)),t&&(this.state.conditions[e.target.name].is_check=e.target.checked,this.setState({conditions:this.state.conditions},(function(){}))),t||n||this.setState((0,p.A)({},e.target.name,e.target.checked)),n&&(e.target.checked?this.context.eventExclusion.exclusion_headers.header[o]=!0:delete this.context.eventExclusion.exclusion_headers.header[o],this.context.setEventExclusion(this.context.eventExclusion))}},{key:"handleChange",value:function(e){var t=e.target.id;"specific_authors"===t&&(this.state.conditions.specific_authors.author=e.target.value),"specific_lang_code"===t&&(this.state.conditions.specific_lang_code.lang_code=e.target.value),"specific_category"===t&&(this.state.conditions.specific_category.category=e.target.value),"specific_post_title"===t&&(this.state.conditions.specific_post_title.postTitle=e.target.value),"specific_status"===t&&(this.state.conditions.specific_status.status=e.target.value),"specific_jetbooking_status"===t&&(this.state.conditions.specific_jetbooking_status.status=e.target.value),"delimiter"===t&&(this.state.conditions.delimiter.delimiter=e.target.value),"other_delimiter"===t&&(this.state.conditions.delimiter.optional_delimiter=e.target.value),"specific_postid"===t&&(this.state.conditions.specific_post_id.post_id=e.target.value),"specific_iterationid"===t&&(this.state.conditions.specific_iteration_id.iteration_id=e.target.value),this.setState(Qy(Qy({},this.state.conditions),{},{conditions:this.state.conditions}),(function(){}))}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"getUtcTimeZones",value:(f=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","timezone"),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=3,e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(!(n=e.sent)||!n.data){e.next=14;break}if(200!=n.status){e.next=14;break}return this.setState({}),this.setState({timeZones:n.data},(function(){})),this.state.selectTimeZones=this.state.timeZones.map((function(e){return{label:e.offset,value:e.timezone}})),this.setState({selectTimeZones:this.state.selectTimeZones}),e.abrupt("return");case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),console.log(e.t0);case 19:case"end":return e.stop()}}),e,this,[[3,16]])}))),function(){return f.apply(this,arguments)})},{key:"exportConfiguration",value:(h=u(m().mark((function e(t){var n,o,a,r,i,s,l,c,d,u,p;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.conditions={delimiter:{is_check:this.context.isDelimiters,delimiter:this.context.delimitersOption,optional_delimiter:this.context.otherDelimiters},specific_period:{is_check:this.context.isSpecificPeriod,from:this.context.startDate,to:this.context.endDate},specific_status:{is_check:this.context.isSpecificStatus,status:this.context.specificStatus},specific_jetbooking_status:{is_check:this.context.isSpecificJetbookingStatus,status:this.context.SpecificJetbookingStatus},specific_authors:{is_check:this.context.isSpecificAuthors,author:this.context.specificAuthors},specific_lang_code:{is_check:this.context.isSpecificLangCode,lang_code:this.context.SpecificLangCode},specific_category:{is_check:this.context.isSpecificCategory,category:this.state.selectedOptions.map((function(e){return e.label})).join(", ")},specific_post_title:{is_check:this.context.isSpecificPostTitle,post_title:this.state.selectedPostTitles.map((function(e){return e.label})).join(", ")},specific_post_id:{is_check:this.context.isSpecificPostId,post_id:this.context.postId},specific_iteration_id:{is_check:this.context.isSpecificIterationId,iteration_id:this.context.iterationId}},(a=this.state.conditions).specific_period.from=_()(this.context.startDate).format("YYYY-MM-DD"),a.specific_period.to=_()(this.context.endDate).format("YYYY-MM-DD"),""!=document.getElementById("export-file-name").value){e.next=8;break}return bn.error("Please Type Export File Name"),document.getElementById("export-file-name").focus(),e.abrupt("return");case 8:return this.setState({activeDowloadTab:!0}),(r=new FormData).set("action","parse_data"),r.set("module",this.context.exportInfo.moduleName||this.context.clientExport.module),r.set("categoryName",this.state.selectedOptions.map((function(e){return e.label})).join(", ")),r.set("securekey",window.smack_nonce_object_pro.nonce),r.set("specific_post_title",this.state.selectedPostTitles.map((function(e){return e.label})).join(", ")),"Taxonomies"!==(i=this.context.exportInfo.moduleName)&&"CustomPosts"!==i||r.set("optionalType",this.context.exportInfo.optionalType),r.set("fileName",this.context.fileName),r.set("exp_type",this.context.exportType),r.set("conditions",JSON.stringify(a)),r.set("eventExclusions",JSON.stringify(this.context.eventExclusion)),r.set("limit",this.context.recordLimit),r.set("is_check_split",this.context.showSplitRecord),r.set("export_mode","normal"),r.set("offset",this.state.offset),r.set("actual_start_date",this.context.startDate),r.set("isMigrate",t||this.context.isMigrate),r.set("actual_end_date",this.context.endDate),r.set("exportOrderChecked",this.state.exportOrderChecked),r.set("exportSelectedField",this.state.exportSelectedField),r.set("exportPaymentChecked",this.state.exportPaymentChecked),r.set("exportPaymentSelectedField",this.state.exportPaymentSelectedField),r.set("exportStatusChecked",this.state.exportStatusChecked),r.set("exportStatusSelectedField",this.state.exportStatusSelectedField),r.set("exportUserProductChecked",this.state.exportUserProductChecked),r.set("userProductSelectedField",this.state.userProductSelectedField),r.set("exportRoleChecked",this.state.exportRoleChecked),r.set("roleSelectedField",this.state.roleSelectedField),r.set("exportCheckedRole",this.state.exportCheckedRole||!1),r.set("exportRoleData",this.state.exportRoleData||[]),null!==(n=this.context)&&void 0!==n&&null!==(n=n.exportQueryData)&&void 0!==n&&n.seletedValue&&null!==(o=this.context)&&void 0!==o&&null!==(o=o.exportQueryData)&&void 0!==o&&o.Query&&(r.set("query_data",this.context.exportQueryData.Query),r.set("type",this.context.exportQueryData.seletedValue),r.set("IsQuery",!0)),this.setState({loading:!0}),e.prev=42,e.next=45,Lt({method:"post",url:ajaxurl,data:r,config:{headers:{"Content-Type":"multipart/form-data"}}});case 45:s=e.sent,l=s.data,200==s.status&&(c=s.data.new_offset,(d=s.data.total_row_count)<c?this.setState({offset:d}):this.setState({offset:s.data.new_offset}),this.setState({exportSuccess:s.data.success,totalExportRecord:l.total_row_count}),u=l.new_offset/l.total_row_count*100,(u=Math.round(u))>.9&&this.setState({exportProgress:u}),u>=100&&this.setState({exportProgress:"100"}),s.data.success?this.setState({exportedFileUrl:s.data.exported_file,showDownloadBtn:!0,bundleFileurl:s.data.zip_file}):this.exportConfiguration()),e.next=56;break;case 50:e.prev=50,e.t0=e.catch(42),p=504==e.t0.response.status||502==e.t0.response.status?"Error occured due to 504 Gateway Time-out":403==e.t0.response.status?"Error occured due to 403 Forbidden":500==e.t0.response.status?"Error occured due to 500. Kindly contact the support team.":"Kindly contact support team.Error Occured "+e.t0.response.status,clearInterval(this.timer),this.setState({exportStatus:p,exportErrorFlag:!0,exportProgress:"100"});case 56:case"end":return e.stop()}}),e,this,[[42,50]])}))),function(e){return h.apply(this,arguments)})},{key:"scheduleExport",value:(d=u(m().mark((function e(){var t,n,o,a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.conditions={delimiter:{is_check:this.context.isDelimiters,delimiter:this.context.delimitersOption,optional_delimiter:this.context.otherDelimiters},specific_period:{is_check:this.context.isSpecificPeriod,from:this.context.startDate,to:this.context.endDate},specific_status:{is_check:this.context.isSpecificStatus,status:this.context.specificStatus},specific_jetbooking_status:{is_check:this.context.isSpecificJetbookingStatus,status:this.context.SpecificJetbookingStatus},specific_authors:{is_check:this.context.isSpecificAuthors,author:this.context.specificAuthors},specific_lang_code:{is_check:this.context.isSpecificLangCode,lang_code:this.context.SpecificLangCode},specific_category:{is_check:this.context.isSpecificCategory,category:this.state.selectedOptions.map((function(e){return e.label})).join(", ")},specific_post_title:{is_check:this.context.isSpecificPostTitle,post_title:this.state.selectedPostTitles.map((function(e){return e.label})).join(", ")},specific_post_id:{is_check:this.context.isSpecificPostId,post_id:this.context.postId},specific_iteration_id:{is_check:this.context.isSpecificIterationId,iteration_id:this.context.iterationId}},(o=this.state.conditions).specific_period.from=_()(this.context.startDate).format("YYYY-MM-DD"),o.specific_period.to=_()(this.context.endDate).format("YYYY-MM-DD"),""!=document.getElementById("export-file-name").value){e.next=8;break}return bn.error("Please Type Export File Name"),document.getElementById("export-file-name").focus(),e.abrupt("return");case 8:return(a=new FormData).set("action","parseDataToScheduleExport"),a.set("module",this.context.exportInfo.moduleName),a.set("categoryName",this.state.selectedOptions.map((function(e){return e.label})).join(", ")),"Taxonomies"!==(r=this.context.exportInfo.moduleName)&&"CustomPosts"!==r||a.set("optionalType",this.context.exportInfo.optionalType),a.set("fileName",this.context.fileName),a.set("exp_type",this.context.exportType),a.set("conditions",JSON.stringify(o)),a.set("eventExclusions",JSON.stringify(this.context.eventExclusion)),a.set("limit",this.context.recordLimit),a.set("is_check_split",this.context.showSplitRecord),a.set("export_mode","schedule"),a.set("date",_()(this.context.scheduleDate).format("YYYY-MM-DD")),a.set("actual_schedule_date",this.context.scheduleDate),a.set("host_name",this.context.hostName),a.set("host_port",this.context.hostPort),a.set("host_username",this.context.hostUserName),a.set("host_password",this.context.hostPassword),a.set("host_path",this.context.hostPath),a.set("schedule_frequency",this.context.scheduleFrequency),a.set("schedule_time",this.context.scheduleTime),a.set("UTC",this.context.selectedUTC),a.set("method",this.context.connectionType),a.set("actual_start_date",this.context.startDate),a.set("actual_end_date",this.context.endDate),a.set("securekey",window.smack_nonce_object_pro.nonce),null!==(t=this.context)&&void 0!==t&&null!==(t=t.exportQueryData)&&void 0!==t&&t.seletedValue&&null!==(n=this.context)&&void 0!==n&&null!==(n=n.exportQueryData)&&void 0!==n&&n.Query&&(a.set("query_data",this.context.exportQueryData.Query),a.set("type",this.context.exportQueryData.seletedValue),a.set("IsQuery",!0)),this.setState({loading:!0}),e.next=39,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 39:200==(i=e.sent).status&&("Export scheduled successfully!"===i.data.msg&&this.setState({disableScheduledExportButton:!0}),bn.success(i.data.msg));case 41:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"getExportTemplateOption",value:(a=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new FormData,n=this.context.exportInfo.moduleName,t.set("action","total_records"),t.set("module",n),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:200===(o=e.sent).status&&o.data&&(o.data.show_template?this.context.setShowExport("export-template-section"):this.context.setShowExport("export-module")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(){return a.apply(this,arguments)})},{key:"togglePreviewModal",value:function(){this.setState({showPreviewModal:!this.state.showPreviewModal})}},{key:"openModal",value:(o=u(m().mark((function e(){var t,n,o,a,r,i,s,l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state.conditions={delimiter:{is_check:this.context.isDelimiters,delimiter:this.context.delimitersOption,optional_delimiter:this.context.otherDelimiters},specific_period:{is_check:this.context.isSpecificPeriod,from:this.context.startDate,to:this.context.endDate},specific_status:{is_check:this.context.isSpecificStatus,status:this.context.specificStatus},specific_jetbooking_status:{is_check:this.context.isSpecificJetbookingStatus,status:this.context.SpecificJetbookingStatus},specific_authors:{is_check:this.context.isSpecificAuthors,author:this.context.specificAuthors},specific_lang_code:{is_check:this.context.isSpecificLangCode,lang_code:this.context.SpecificLangCode},specific_category:{is_check:this.context.isSpecificCategory,category:this.state.selectedOptions.map((function(e){return e.label})).join(", ")},specific_post_title:{is_check:this.context.isSpecificPostTitle,post_title:this.state.selectedPostTitles.map((function(e){return e.label})).join(", ")},specific_post_id:{is_check:this.context.isSpecificPostId,post_id:this.context.postId},specific_iteration_id:{is_check:this.context.isSpecificIterationId,iteration_id:this.context.iterationId}},(o=this.state.conditions).specific_period.from=_()(this.context.startDate).format("YYYY-MM-DD"),o.specific_period.to=_()(this.context.endDate).format("YYYY-MM-DD"),(a=new FormData).set("action","parse_data"),a.set("module",this.context.exportInfo.moduleName||this.context.clientExport.module),a.set("categoryName",this.state.selectedOptions.map((function(e){return e.label})).join(", ")),a.set("securekey",window.smack_nonce_object_pro.nonce),a.set("specific_post_title",this.state.selectedPostTitles.map((function(e){return e.label})).join(", ")),"Taxonomies"!==(r=this.context.exportInfo.moduleName)&&"CustomPosts"!==r||a.set("optionalType",this.context.exportInfo.optionalType),a.set("fileName",this.context.fileName),a.set("exp_type",this.context.exportType),a.set("conditions",JSON.stringify(o)),a.set("eventExclusions",JSON.stringify(this.context.eventExclusion)),a.set("limit",this.context.recordLimit),a.set("is_check_split",this.context.showSplitRecord),a.set("export_mode","normal"),a.set("offset",this.state.offset),a.set("isPreview",!0),a.set("actual_start_date",this.context.startDate),a.set("actual_end_date",this.context.endDate),a.set("exportOrderChecked",this.state.exportOrderChecked),a.set("exportSelectedField",this.state.exportSelectedField),a.set("exportPaymentChecked",this.state.exportPaymentChecked),a.set("exportPaymentSelectedField",this.state.exportPaymentSelectedField),a.set("exportStatusChecked",this.state.exportStatusChecked),a.set("exportStatusSelectedField",this.state.exportStatusSelectedField),a.set("exportUserProductChecked",this.state.exportUserProductChecked),a.set("userProductSelectedField",this.state.userProductSelectedField),a.set("exportRoleChecked",this.state.exportRoleChecked),a.set("roleSelectedField",this.state.roleSelectedField),a.set("exportCheckedRole",this.state.exportCheckedRole||!1),a.set("exportRoleData",this.state.exportRoleData||[]),null!==(t=this.context)&&void 0!==t&&null!==(t=t.exportQueryData)&&void 0!==t&&t.seletedValue&&null!==(n=this.context)&&void 0!==n&&null!==(n=n.exportQueryData)&&void 0!==n&&n.Query&&(a.set("query_data",this.context.exportQueryData.Query),a.set("type",this.context.exportQueryData.seletedValue),a.set("IsQuery",!0)),e.prev=36,e.next=39,Lt({method:"post",url:window.smack_nonce_object.url,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 39:i=e.sent,console.log("response","color: #733d00",i),i&&(s=i.data||i,console.log("%cdata","color: #917399",s),l="string"==typeof s&&s.trim().startsWith("<?xml"),this.setState({data:s,showPreviewModal:!0,isXml:l})),e.next=47;break;case 44:e.prev=44,e.t0=e.catch(36),console.error("Error in axios call inside openModal:",e.t0);case 47:case"end":return e.stop()}}),e,this,[[36,44]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e,n,o,a,r=this,i=((null===(e=this.context.filterFieldData)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.user_roles)||[]).map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1).replace("_"," ")}})),s=((null===(n=this.context.filterFieldData)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.product_titles)||[]).map((function(e){return{value:e,label:e}})),l=((null===(o=this.context.filterFieldData)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.product_titles)||[]).map((function(e){return{value:e,label:e}})),c=((null===(a=this.context.filterFieldData)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.payment_methods)||[]).map((function(e){return{value:e,label:e}})),d=[{value:"wc-pending",label:this.context.language.Pendingpayment},{value:"wc-processing",label:this.context.language.Processing},{value:"wc-on-hold",label:this.context.language.Onhold},{value:"wc-completed",label:this.context.language.Completed},{value:"wc-cancelled",label:this.context.language.Cancelled}],u=this.state,p=u.showPreviewModal,h=u.data,m=(u.isXml,this.state),f=(m.showSplitRecord,m.isGsheetChecked),g=m.isLoading,v=(m.conditions,m.exportName,m.exportType,m.categoryList),_=(m.postTitle,m.wpmlActive),b=m.authorList,y=m.langCodeList,w={width:this.state.exportProgress+"%"},k=this.state,x=k.selectedOptions,E=(k.selectedPostTitles,{display:this.state.showDownloadBtn?"block":"none"});return t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-none":"d-block")},t.createElement("div",{className:"row export"},t.createElement("h1",{className:"main-heading d-flex pr15 pl15 mb20 col-md-12"},this.context.language.Toexportdatabasedonthefilters,"     ",t.createElement("div",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){r.context.setDrawerValue("export#2"),r.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{className:"col-md-12"},t.createElement("div",{className:"form-group col-md-5 row export_file_name"},t.createElement("label",null,this.context.language.ExportFileName),t.createElement("input",{type:"text",className:"form-control",id:"export-file-name",value:this.context.fileName,onChange:function(e){r.context.setFileName(e.target.value)}}),t.createElement("span",{className:"export_file_type"},".",this.context.exportType)),t.createElement("div",null,t.createElement("h3",{className:"main-heading d-flex pr15 pl15 mb20 col-md-12"},this.context.language.AdvancedSettings)),t.createElement("hr",null),t.createElement("div",{className:"form-group"},t.createElement("div",{className:"p5"},t.createElement("div",{className:"col-md-8 p0"},t.createElement("label",{className:"advanced d-block mb20"},this.context.language.ExportType),t.createElement("div",{className:"form-check form-check-inline form_export_file_type"},t.createElement("input",{className:"connection-input",onClick:function(){r.context.setExportType("csv")},type:"radio",id:"export_type_csv",checked:"csv"===this.context.exportType})," ",t.createElement("label",{for:"export_type_csv",className:"form-check-label"},"CSV")),t.createElement("div",{className:"form-check form-check-inline form_export_file_type"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){"elementor_library"!==r.context.exportInfo.optionalType&&r.context.setExportType("xls")},id:"export_type_xls",checked:"xls"===this.context.exportType,disabled:"elementor_library"===this.context.exportInfo.optionalType})," ",t.createElement("label",{for:"export_type_xls",className:"form-check-label",style:{cursor:"elementor_library"===this.context.exportInfo.optionalType?"not-allowed":"pointer"}},"XLS")),t.createElement("div",{className:"form-check form-check-inline form_export_file_type"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){"elementor_library"!==r.context.exportInfo.optionalType&&r.context.setExportType("xlsx")},id:"export_type_xlsx",checked:"xlsx"===this.context.exportType,disabled:"elementor_library"===this.context.exportInfo.optionalType})," ",t.createElement("label",{for:"export_type_xlsx",className:"form-check-label",style:{cursor:"elementor_library"===this.context.exportInfo.optionalType?"not-allowed":"pointer"}},"XLSX")),t.createElement("div",{className:"form-check form-check-inline form_export_file_type"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){"elementor_library"!==r.context.exportInfo.optionalType&&r.context.setExportType("xml")},id:"export_type_xml",checked:"xml"===this.context.exportType,disabled:"elementor_library"===this.context.exportInfo.optionalType})," ",t.createElement("label",{for:"export_type_xml",className:"form-check-label",style:{cursor:"elementor_library"===this.context.exportInfo.optionalType?"not-allowed":"pointer"}},"XML")),t.createElement("div",{className:"form-check form-check-inline form_export_file_type"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){"elementor_library"!==r.context.exportInfo.optionalType&&r.context.setExportType("json")},id:"export_type_json",checked:"json"===this.context.exportType,disabled:"elementor_library"===this.context.exportInfo.optionalType})," ",t.createElement("label",{for:"export_type_json",className:"form-check-label",style:{cursor:"elementor_library"===this.context.exportInfo.optionalType?"not-allowed":"pointer"}},"JSON")),t.createElement("div",{className:"form-check form-check-inline form_export_file_type"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){"elementor_library"!==r.context.exportInfo.optionalType&&r.context.setExportType("tsv")},id:"export_type_tsv",checked:"tsv"===this.context.exportType,disabled:"elementor_library"===this.context.exportInfo.optionalType})," ",t.createElement("label",{for:"export_type_tsv",className:"form-check-label",style:{cursor:"elementor_library"===this.context.exportInfo.optionalType?"not-allowed":"pointer"}},"TSV")))))))," ",t.createElement("div",{className:"row export",style:{marginLeft:"5px"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"split-record",name:"showSplitRecord",id:"export_split_record",checked:this.context.showSplitRecord,onChange:function(e){r.context.setShowSplitRecord(e.target.checked)}}),t.createElement("label",{for:"export_split_record",className:"advanced"},this.context.language.SplittheRecord)),t.createElement("input",{type:"text",className:"form-control mt10",id:"recordLimit",name:"recordLimit",onChange:function(e){r.context.recordLimit=e.target.value,r.context.setShowSplitRecord(r.context.showSplitRecord)},style:{display:this.context.showSplitRecord?"block":"none"}})),t.createElement("div",null),t.createElement("div",{className:"row export"},t.createElement("div",{className:"col-md-12"},t.createElement("hr",null),t.createElement("h3",{className:"main-heading"},this.context.language.AdvancedFilters,"     ",t.createElement("div",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){r.context.setDrawerValue("export#3"),r.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),"csv"===this.context.exportType?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"delimiter",id:"export_auto_delimiter",checked:this.context.isDelimiters,onClick:function(e){r.context.isDelimiters=e.target.checked,r.context.setIsDelimiters(r.context.isDelimiters),e.target.checked||r.context.setDelimitersOption(",")}}),t.createElement("label",{for:"export_auto_delimiter"},this.context.language.Exportdatawithautodelimiters)),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.context.isDelimiters?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,this.context.language.Delimiters),t.createElement("select",{className:"select form-control",id:"delimiter",value:this.context.delimitersOption,onChange:function(e){r.context.delimitersOption=e.target.value,r.context.setDelimitersOption(r.context.delimitersOption)}},t.createElement("option",{value:","},","),t.createElement("option",{value:":"},":"),t.createElement("option",{value:";"},";"),t.createElement("option",{value:"{Tab}"},"Tab"),t.createElement("option",{value:"{Space}"},"Space"))),t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,this.context.language.OtherDelimiters),t.createElement("input",{type:"text",id:"other_delimiter",value:this.context.otherDelimiters,className:"form-control",onChange:function(e){r.context.otherDelimiters=e.target.value,r.context.setOtherDelimiters(e.target.value)}}))))):t.createElement("div",{className:"advanced-filter",style:{opacity:.6}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"delimiter",id:"export_auto_delimiter",checked:"",onClick:function(){}}),t.createElement("label",{for:"export_auto_delimiter"},this.context.language.Exportdatawithautodelimiters)),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.context.isDelimiters?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,this.context.language.Delimiters),t.createElement("select",{className:"select form-control",id:"delimiter",value:this.context.delimitersOption,onChange:function(e){r.context.delimitersOption=e.target.value,r.context.setDelimitersOption(r.context.delimitersOption)}},t.createElement("option",{value:","},","),t.createElement("option",{value:":"},":"),t.createElement("option",{value:";"},";"),t.createElement("option",{value:"{Tab}"},"Tab"),t.createElement("option",{value:"{Space}"},"Space"))),t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,this.context.language.OtherDelimiters),t.createElement("input",{type:"text",id:"other_delimiter",value:this.context.otherDelimiters,className:"form-control",onChange:function(e){r.context.otherDelimiters=e.target.value,r.context.setOtherDelimiters(e.target.value)}}))))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"gsheet",id:"export_to_gsheet",checked:this.state.isGsheetChecked,onChange:this.handleCheckboxChange}),t.createElement("label",{htmlFor:"export_to_gsheet"},"Export CSV data to the Google Sheet"))),"JetBooking"!==this.context.exportInfo.moduleName?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_period",id:"export_specific_period",checked:this.context.isSpecificPeriod,onClick:function(e){r.context.setIsSpecificPeriod(e.target.checked),e.target.checked||(r.context.setStartDate(""),r.context.setEndDate(""))}}),t.createElement("label",{for:"export_specific_period"},this.context.language.Exportdataforthespecificperiod)),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.context.isSpecificPeriod?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"col-md-5"},t.createElement("label",{for:""},this.context.language.StartFrom),t.createElement("label",null,t.createElement(nu(),{selected:this.context.startDate,onChange:function(e){r.context.setStartDate(e)},customInput:t.createElement(rw,null),showYearDropdown:!0}))),t.createElement("div",{className:"col-md-5"},t.createElement("label",{for:""},this.context.language.EndTo," "),t.createElement("label",null,t.createElement(nu(),{selected:this.context.endDate,onChange:function(e){r.context.setEndDate(e)},customInput:t.createElement(rw,null),showYearDropdown:!0})))))):"","Posts"===this.context.exportInfo.moduleName||"Pages"===this.context.exportInfo.moduleName||"CustomPosts"===this.context.exportInfo.moduleName?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_status",id:"export_specific_status",checked:this.context.isSpecificStatus,onClick:function(e){r.context.setIsSpecificStatus(e.target.checked),e.target.checked||r.context.setSpecificStatus("")}}),t.createElement("label",{for:"export_specific_status"},this.context.language.Exportdatawiththespecificstatus)),t.createElement("div",{className:"row mt20",style:{display:this.context.isSpecificStatus?"block":"none"}},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",{className:"advanced"},this.context.language.Status),t.createElement("select",{className:"select form-control",id:"specific_status",value:this.context.specificStatus,onChange:function(e){r.context.setSpecificStatus(e.target.value)}},t.createElement("option",{value:""},"Select Status"),t.createElement("option",{value:"All"},this.context.language.All),t.createElement("option",{value:"Publish"},this.context.language.Publish),t.createElement("option",{value:"Sticky"},this.context.language.Sticky),t.createElement("option",{value:"Private"},this.context.language.Private),t.createElement("option",{value:"Protected"},this.context.language.Protected),t.createElement("option",{value:"Draft"},this.context.language.Draft),t.createElement("option",{value:"Pending"},this.context.language.Pending))))):"","WooCommerce"===this.context.exportInfo.moduleName?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_status",id:"export_specific_status",checked:this.context.isSpecificStatus,onClick:function(e){r.context.setIsSpecificStatus(e.target.checked),e.target.checked||r.context.setSpecificStatus("")}}),t.createElement("label",{for:"export_specific_status"},this.context.language.Exportdatawiththespecificstatus)),t.createElement("div",{className:"row mt20 bg-gray-section",style:{display:this.context.isSpecificStatus?"block":"none"}},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",{className:"advanced"},this.context.language.Status),t.createElement("select",{className:"select form-control",id:"specific_status",value:this.context.specificStatus,onChange:function(e){r.context.setSpecificStatus(e.target.value)}},t.createElement("option",{value:""},"Select Status"),t.createElement("option",{value:"all"},this.context.language.All),t.createElement("option",{value:"publish"},this.context.language.Publish),t.createElement("option",{value:"draft"},this.context.language.Draft),t.createElement("option",{value:"pending"},this.context.language.Pending),t.createElement("option",{value:"private"},this.context.language.Private),t.createElement("option",{value:"trash"},this.context.language.Trash))))):"","WooCommerceOrders"===this.context.exportInfo.moduleName&&t.createElement("div",null,t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"Export Product",id:"export_Product_orders",checked:this.state.exportOrderChecked,onChange:function(e){var t=e.target.checked;r.setState({exportOrderChecked:t,exportSelectedField:t?r.state.exportSelectedField:""})}}),t.createElement("label",{for:"export_Product_orders"},"Export Orders based on the Product that the order is placed.")),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.state.exportOrderChecked?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,"product"),t.createElement(Jh,{isMulti:!0,className:"basic-multi-select",classNamePrefix:"select",id:"export_product",options:l,value:(this.state.exportSelectedField||[]).map((function(e){return{value:e,label:e}})),onChange:function(e){var t=e.map((function(e){return e.value}));r.setState({exportSelectedField:t})},placeholder:"Select Product"}))))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"Export Payment",id:"export_Payment_orders",checked:this.state.exportPaymentChecked,onChange:function(e){var t=e.target.checked;r.setState({exportPaymentChecked:t,exportPaymentSelectedField:t?r.state.exportPaymentSelectedField:""})}}),t.createElement("label",{for:"export_Payment_orders"},"Export Order based on Payment Options.")),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.state.exportPaymentChecked?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,"Payment"),t.createElement(Jh,{isMulti:!0,className:"basic-multi-select",classNamePrefix:"select",id:"export_payment",options:c,value:(this.state.exportPaymentSelectedField||[]).map((function(e){return{value:e,label:e}})),onChange:function(e){var t=e.map((function(e){return e.value}));r.setState({exportPaymentSelectedField:t})},placeholder:"Select Payment Option"})))))),"Users"===this.context.exportInfo.moduleName&&t.createElement("div",null,t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"Export Customer",id:"export_customer",checked:this.state.exportUserProductChecked,onChange:function(e){var t=e.target.checked;r.setState({exportUserProductChecked:t,userProductSelectedField:t?r.state.userProductSelectedField:""})}}),t.createElement("label",{for:"export_customer"},"Export Customers Based on the Product that the customer purchased")),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.state.exportUserProductChecked?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,"product"),t.createElement(Jh,{isMulti:!0,className:"basic-multi-select",classNamePrefix:"select",options:s,value:(this.state.userProductSelectedField||[]).map((function(e){return{value:e,label:e}})),onChange:function(e){var t=e.map((function(e){return e.value}));r.setState({userProductSelectedField:t})}}))))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"Export Role",id:"export_role",checked:this.state.exportRoleChecked,onChange:function(e){var t=e.target.checked;r.setState({exportRoleChecked:t,roleSelectedField:t?r.state.roleSelectedField:""})}}),t.createElement("label",{for:"export_role"},"Export Customers based on Role")),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.state.exportRoleChecked?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,"Role"),t.createElement(Jh,{isMulti:!0,className:"basic-multi-select",classNamePrefix:"select",options:i,value:(this.state.roleSelectedField||[]).map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1).replace("_"," ")}})),onChange:function(e){var t=e.map((function(e){return e.value}));r.setState({roleSelectedField:t})}})))))),"WooCommerceOrders"===this.context.exportInfo.moduleName?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_status",id:"export_specific_status",checked:this.context.isSpecificStatus,onClick:function(e){r.context.setIsSpecificStatus(e.target.checked),e.target.checked||r.context.setSpecificStatus("")}}),t.createElement("label",{for:"export_specific_status"},this.context.language.Exportdatawiththespecificstatus)),t.createElement("div",{className:"row mt20",style:{display:this.context.isSpecificStatus?"block":"none"}},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",{className:"advanced"},this.context.language.Status),t.createElement(Jh,{isMulti:!0,className:"basic-multi-select",classNamePrefix:"select",options:d,value:(this.context.specificStatus||[]).map((function(e){var t;return{value:e,label:(null===(t=d.find((function(t){return t.value===e})))||void 0===t?void 0:t.label)||e}})),onChange:function(e){var t=e.map((function(e){return e.value}));r.context.setSpecificStatus(t)}})))):"","JetBooking"===this.context.exportInfo.moduleName?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_jetbooking_status",id:"export_specific_jetbooking_status",checked:this.context.isSpecificJetbookingStatus,onClick:function(e){r.context.setIsSpecificJetbookingStatus(e.target.checked),e.target.checked||r.context.setSpecificJetbookingStatus("")}}),t.createElement("label",{for:"export_specific_jetbooking_status"},this.context.language.Exportdatawiththespecificjetbookingstatus)),t.createElement("div",{className:"row mt20 bg-gray-section",style:{display:this.context.isSpecificJetbookingStatus?"block":"none"}},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",{className:"advanced"},this.context.language.Status),t.createElement("select",{className:"select form-control",id:"specific_jetbooking_status",value:this.context.SpecificJetbookingStatus,onChange:function(e){r.context.setSpecificJetbookingStatus(e.target.value)}},t.createElement("option",{value:""},"Select Status"),t.createElement("option",{value:"on-hold"},this.context.language.JetBookingStatusOnhold),t.createElement("option",{value:"pending"},this.context.language.JetBookingStatusPending),t.createElement("option",{value:"completed"},this.context.language.JetBookingStatusCompleted),t.createElement("option",{value:"refunded"},this.context.language.JetBookingStatusRefunded),t.createElement("option",{value:"cancelled"},this.context.language.JetBookingStatusCancelled),t.createElement("option",{value:"failed"},this.context.language.JetBookingStatusFailed),t.createElement("option",{value:"created"},this.context.language.JetBookingStatusCreated),t.createElement("option",{value:"processing"},this.context.language.JetBookingStatusProcessing))))):null,"Posts"===this.context.exportInfo.moduleName||"Pages"===this.context.exportInfo.moduleName||"CustomPosts"===this.context.exportInfo.moduleName||"Comments"===this.context.exportInfo.moduleName||"Images"===this.context.exportInfo.moduleName?t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_authors",id:"export_specific_author",checked:this.context.isSpecificAuthors,onClick:function(e){r.context.setIsSpecificAuthors(e.target.checked),e.target.checked||r.context.setSpecificAuthors("")}}),t.createElement("label",{for:"export_specific_author"},this.context.language.Exportdatabyspecificauthors)),t.createElement("div",{className:"row mt20",style:{display:this.context.isSpecificAuthors?"block":"none"}},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",{className:"advanced"},this.context.language.Authors),t.createElement("select",{className:"select form-control",id:"specific_authors",value:this.context.specificAuthors,onChange:function(e){r.context.setSpecificAuthors(e.target.value)}},t.createElement("option",{value:""},"Select Author"),b.map((function(e){return t.createElement("option",{value:e.user_id},e.user_name)})))))):"",!_||"Posts"!==this.context.exportInfo.moduleName&&"CustomPosts"!==this.context.exportInfo.moduleName&&"WooCommerce"!==this.context.exportInfo.moduleName?null:t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"specific_lang_code",id:"export_specific_lang_code",checked:this.context.isSpecificLangCode,onChange:function(e){r.context.setIsSpecificLangCode(e.target.checked),e.target.checked||r.context.setSpecificLangCode("")}}),t.createElement("label",{htmlFor:"export_specific_lang_code"},this.context.language.ExportBasedOnLanguageCode)),t.createElement("div",{className:"row mt20 bg-gray-section",style:{display:this.context.isSpecificLangCode?"block":"none"}},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",{className:"advanced"},this.context.language.lang_code),t.createElement("select",{className:"select form-control",id:"specific_lang_code",value:this.context.SpecificLangCode,onChange:function(e){r.context.setSpecificLangCode(e.target.value)}},t.createElement("option",{value:""},"Select Language Code"),y.map((function(e){return t.createElement("option",{key:e.language_code,value:e.language_code},e.language_code)})))))),("Posts"===this.context.exportInfo.moduleName||"CustomPosts"===this.context.exportInfo.moduleName||"WooCommerce"===this.context.exportInfo.moduleName)&&t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_post_id",id:"export_specific_post_id",checked:this.context.isSpecificPostId,onChange:function(e){r.context.setIsSpecificPostId(e.target.checked),e.target.checked||r.context.setpostId("")}}),t.createElement("label",{htmlFor:"export_specific_post_id"},this.context.language.Exportdatabyspecificpost_id)),this.context.isSpecificPostId&&t.createElement("div",{className:"row mt20 bg-gray-section export_filter_category"},t.createElement("div",{className:"form-group col-md-8"},t.createElement("label",{className:"advanced"},this.context.language.PostId),t.createElement("input",{type:"text",placeholder:"Enter post_id's",value:this.context.postId,style:{opacity:""==this.context.postId?"0.5":"1"},className:"",id:"categories",onChange:function(e){r.context.postId=e.target.value,r.context.setpostId(r.context.postId)}})))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_iteration_id",id:"export_specific_iteration_id",checked:this.context.isSpecificIterationId,onChange:function(e){r.context.setIsSpecificIterationId(e.target.checked),e.target.checked||r.context.setiterationId("")}}),t.createElement("label",{htmlFor:"export_specific_iteration_id"},this.context.language.Exportiteration_id)),this.context.isSpecificIterationId&&t.createElement("div",{className:"row mt20 bg-gray-section export_filter_category"},t.createElement("div",{className:"form-group col-md-8"},t.createElement("label",{className:"advanced"},this.context.language.IterationId),t.createElement("input",{type:"text",placeholder:" ",value:this.context.iterationId,style:{opacity:""==this.context.iterationId?"0.5":"1"},className:"",id:"categories",onChange:function(e){r.context.iterationId=e.target.value,r.context.setiterationId(r.context.iterationId)}})))),("Posts"===this.context.exportInfo.moduleName||"CustomPosts"===this.context.exportInfo.moduleName||"WooCommerce"===this.context.exportInfo.moduleName)&&t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_category",id:"export_specific_category",checked:this.context.isSpecificCategory,onChange:function(e){r.context.setIsSpecificCategory(e.target.checked),e.target.checked||r.context.setCategoryName("")}}),t.createElement("label",{htmlFor:"export_specific_category"},this.context.language.Exportdatabyspecificcategory)),this.context.isSpecificCategory&&t.createElement("div",{className:"row mt20 bg-gray-section export_filter_category"},t.createElement("div",{className:"form-group col-md-8"},t.createElement("label",{className:"advanced"},this.context.language.Category),t.createElement(Jh,{options:v.map((function(e){return{label:e,value:e}})),isMulti:!0,value:x,onChange:this.handleChange})))),("Posts"===this.context.exportInfo.moduleName||"Pages"===this.context.exportInfo.moduleName||"CustomPosts"===this.context.exportInfo.moduleName||"WooCommerce"===this.context.exportInfo.moduleName)&&t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",className:"",name:"specific_post_title",id:"export_specific_post_title",checked:this.context.isSpecificPostTitle,onChange:function(e){r.context.setIsSpecificPostTitle(e.target.checked),e.target.checked||r.context.setSpecificPostTitle("")}}),t.createElement("label",{htmlFor:"export_specific_post_title"},this.context.language.Exportdatabyspecificpost_title)),this.context.isSpecificPostTitle&&t.createElement("div",{className:"row mt20 bg-gray-section export_filter_post_title"},t.createElement("div",{className:"form-group col-md-8"},t.createElement("label",{className:"advanced"},this.context.language.Post_Title),t.createElement(Jh,{options:this.state.postTitles.map((function(e){return{label:e,value:e}})),isMulti:!0,value:this.state.selectedPostTitles,onChange:this.handlePostTitleChange})))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"Export Based on Role",id:"export_based_role",checked:this.state.exportCheckedRole,onChange:function(e){var t=e.target.checked;r.setState({exportCheckedRole:t,exportRoleData:t?r.state.exportRoleData:""})}}),t.createElement("label",{for:"export_based_role"},"Allow non-admins to run this export in Client Mode")),t.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:this.state.exportCheckedRole&&!1!==this.context.adminMode?"block":"none"}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-5"},t.createElement("label",null,"Roles"),t.createElement(Jh,{isMulti:!0,className:"basic-multi-select",classNamePrefix:"select",options:[{value:"administrator",label:"Administrator"},{value:"editor",label:"Editor"},{value:"author",label:"Author"},{value:"contributor",label:"Contributor"},{value:"subscriber",label:"Subscriber"},{value:"customer",label:"Customer"},{value:"shop_manager",label:"Shop Manager"}],value:(this.state.exportRoleData||[]).map((function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1).replace("_"," ")}})),onChange:this.handleExportRoleChange}))))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",name:"setInclusions",id:"export_specific_inclusion",checked:this.context.eventExclusion.is_check,onChange:function(e){r.context.eventExclusion.is_check=e.target.checked,r.context.setEventExclusion(r.context.eventExclusion)}}),t.createElement("label",{htmlFor:"export_specific_inclusion"},this.context.language.ExportdatabasedonspecificInclusions)),t.createElement("div",{style:{display:this.context.eventExclusion.is_check?"block":"none"}},t.createElement("div",{className:"row"},this.state.exportFields.map((function(e,n){var o=Object.keys(e)[0];return o&&e[o]&&Array.isArray(e[o])?t.createElement("div",{className:"col-md-12 mt-3",key:o},t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h2",{className:"card-header main-heading",id:o,onClick:function(){return toggle_func(o)}},r.context.language[gu(o).languageName]," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"".concat(o,"-body")},t.createElement("div",{className:"row"},e[o].map((function(e){return t.createElement("div",{className:"col-md-6 col-lg-4 col-xl-3",key:e.name},t.createElement("div",{className:"form-group checkbox"},t.createElement("input",{type:"checkbox",name:e.name,checked:r.checkPluginId(e.name),id:e.name,onChange:function(t){r.handleCheck(t,!1,!0,e.name)}}),t.createElement("label",{htmlFor:e.name,className:"checkbox-label"},e.label),t.createElement("div",{className:"sub-title"},"[",e.name,"]")))})))))):null}))))),t.createElement("div",{className:"advanced-filter"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"export_this_schedule",checked:this.context.enableSchedule,onClick:function(e){r.context.setEnableSchedule(e.target.checked),e.target.checked||r.context.setScheduleDate("")}}),t.createElement("label",{for:"export_this_schedule"},this.context.language.DoyouwanttoSchedulethisExport)),t.createElement("div",{className:"mt20 col-md-12",style:{display:this.context.enableSchedule?"block":"none"}},t.createElement("h5",{className:"section-heading"},"Schedule Details"),t.createElement("div",{className:"row justify-content-center bg-gray-section mb20"},t.createElement("div",{className:"col-md-3"},t.createElement("label",{className:"advanced"},this.context.language.ScheduleDate," "),t.createElement("label",null,t.createElement(nu(),{minDate:new Date,selected:this.context.scheduleDate,onChange:function(e){r.context.scheduleDate=e,r.context.setScheduleDate(r.context.scheduleDate)},customInput:t.createElement(rw,null),showYearDropdown:!0}))),t.createElement("div",{className:"form-group col-md-3"},t.createElement("label",{className:"advanced"},this.context.language.ScheduleFrequency," "),t.createElement("select",{className:"select form-control",name:"scheduleFrequency",required:!0,value:this.context.scheduleFrequency,onChange:function(e){r.context.scheduleFrequency=e.target.value,r.context.setScheduleFrequency(r.context.scheduleFrequency)}},t.createElement("option",{value:"OneTime"},this.context.language.OneTime),t.createElement("option",{value:"Daily"},this.context.language.Daily),t.createElement("option",{value:"Weekly"},this.context.language.Weekly),t.createElement("option",{value:"Monthly"},this.context.language.Monthly),t.createElement("option",{value:"Hourly"},this.context.language.Hourly),t.createElement("option",{value:"Every 30 mins"},this.context.language.Every30mins),t.createElement("option",{value:"Every 15 mins"},this.context.language.Every15mins),t.createElement("option",{value:"Every 10 mins"},this.context.language.Every10mins),t.createElement("option",{value:"Every 5 mins"},this.context.language.Every5mins))),t.createElement("div",{className:"form-group col-md-4"},t.createElement("label",{for:""},this.context.language.TimeZone),t.createElement(vu.Ay,{style:{borderRadius:"5px",backgroundColor:"white",border:"1px solid #718096"},options:this.state.selectTimeZones,onChange:function(e){r.context.selectedUTC=e[0].value,r.context.setSelectedUTC(r.context.selectedUTC)}})),t.createElement("div",{className:"form-group col-md-2"},t.createElement("label",{className:"advanced"},this.context.language.ScheduleTime," "),t.createElement("input",{type:"text",className:"select form-control",name:"scheduleTime",value:this.context.scheduleTime,onChange:function(e){r.context.scheduleTime=e.target.value,r.context.setScheduleTime(r.context.scheduleTime)}}),t.createElement("small",{className:"form-text text-muted"},this.context.language.Format,":21:30"))),t.createElement("h5",{className:"section-heading"},"Schedule Hosts"),t.createElement("div",{className:"row justify-content-center bg-gray-section"},t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"hostname"},this.context.language.Hostname),t.createElement("input",{type:"text",class:"form-control",name:"hostName",value:this.context.hostName,onChange:function(e){r.context.hostName=e.target.value,r.context.setHostName(r.context.hostName)}}),t.createElement("small",{className:"form-text text-muted"},"smackcoders.com or 54.213.74.129")),t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"host-port"},this.context.language.HostPort),t.createElement("input",{type:"text",className:"form-control",name:"hostPort",value:this.context.hostPort,onChange:function(e){r.context.hostPort=e.target.value,r.context.setHostPort(r.context.hostPort)}}),t.createElement("small",{className:"form-text text-muted"},this.context.language.DefaultPort,":21")),t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"host-username"},this.context.language.HostUsername),t.createElement("input",{type:"text",className:"form-control",name:"hostUserName",value:this.context.hostUserName,onChange:function(e){r.context.hostUserName=e.target.value,r.context.setHostUserName(r.context.hostUserName)}}),t.createElement("small",{className:"form-text text-muted"},this.context.language.FTPUsername)),t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"host-password"},this.context.language.HostPassword),t.createElement("input",{type:"text",className:"form-control",name:"hostPassword",value:this.context.hostPassword,onChange:function(e){r.context.hostPassword=e.target.value,r.context.setHostPassword(r.context.hostPassword)}}),t.createElement("small",{className:"form-text text-muted"},this.context.language.FTPPassword)),t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{for:"host-path"},this.context.language.HostPath),t.createElement("input",{type:"text",className:"form-control",name:"hostPath",value:this.context.hostPath,onChange:function(e){r.context.hostPath=e.target.value,r.context.setHostPath(r.context.hostPath)}}),t.createElement("small",{className:"form-text text-muted"},"/home/guest/sample.csv")),t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"d-block"},this.context.language.ConnectionType),t.createElement("div",{className:"form-check form-check-inline"},t.createElement("input",{className:"connection-input",onClick:function(e){r.context.setConnectionType("ftp")},id:"ftp",type:"radio",checked:"ftp"===this.context.connectionType})," ",t.createElement("label",{for:"ftp",className:"form-check-label"},"FTP")),t.createElement("div",{className:"form-check form-check-inline"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(e){r.context.setConnectionType("ftps")},id:"ftps",checked:"ftps"===this.context.connectionType})," ",t.createElement("label",{for:"ftps",className:"form-check-label"},"FTPS (SSL)")),t.createElement("div",{className:"form-check form-check-inline"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){r.context.setConnectionType("sftp")},id:"sftp",checked:"sftp"===this.context.connectionType})," ",t.createElement("label",{for:"sftp",className:"form-check-label"},"SSH2 / SFTP")))))),t.createElement("div",{className:"form-group mt30 clearfix"},t.createElement("div",{className:"float-left"},t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){r.getExportTemplateOption(),r.context.setTabSelection({tabSelection:""})}},"back"),t.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){r.openModal()},style:{marginLeft:"10px"}},"Preview")),t.createElement("div",{className:"float-right"},this.context.enableSchedule?t.createElement("button",{disabled:this.state.disableScheduledExportButton,type:"button",className:"smack-btn smack-btn-primary",onClick:function(){r.scheduleExport()}},this.context.language.ScheduleExport):t.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){r.context.setIsmigration(!0),r.exportConfiguration(!0)}},"Migrate"),t.createElement("button",{type:"button",style:{marginLeft:"10px"},className:"smack-btn smack-btn-primary",onClick:function(){r.exportConfiguration(!1),r.context.setIsmigration(!1)}},this.context.language.Export))))),t.createElement("div",null,t.createElement("h4",{className:"text-center ".concat(this.state.exportErrorFlag?"text-danger":"")},this.state.exportErrorFlag?t.createElement("div",null,t.createElement("h4",{className:"blinking"},this.state.exportStatus),t.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"smack-btn smack-btn-primary",href:"http://smackcoders.com"},"Click here to fix this error")):"")),t.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-block":"d-none")},t.createElement("div",{className:"card-body"},t.createElement("div",{className:"importing-details"},t.createElement("div",{className:"progress-status"},this.state.exportSuccess&&this.state.exportProgress>"99"?"In Progress":""),t.createElement("div",{className:"import-progress"},this.state.exportErrorFlag?t.createElement("div",{className:"progress-loading text-danger"},this.context.language.NotCompleted):t.createElement("div",{className:"progress-loading"},this.state.exportProgress+"%"," ",this.context.language.Completed),t.createElement("div",{className:"progress-timing"},t.createElement("i",{className:"csv-icon-schedule"})," ",this.state.stopWatch))),t.createElement("div",{className:"progress mt10 mb40"},t.createElement("div",{className:"".concat(this.state.exportErrorFlag?"progress-bar-error":"progress-bar"),role:"progressbar",style:w,"aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),t.createElement("p",{className:"float-none"},this.context.language.DataExported," :"," ",t.createElement("span",null,this.state.offset)," / ",this.state.totalExportRecord," "),t.createElement("div",{className:"form-group mt30 clearfix"},t.createElement("div",{className:"float-right"},f&&t.createElement("a",{href:"#",style:E,onClick:this.exportToGsheet.bind(this),className:"smack-btn smack-btn-primary",disabled:g},g?t.createElement("span",null,"Exporting..."):t.createElement("span",null,"G-Sheets"))),this.context.isMigrate?t.createElement("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){r.context.setShowExport("export-template-section"),r.context.setIsmigration(!1)}},this.context.language.Back),"100"===this.state.exportProgress&&this.context.isMigrate&&t.createElement("a",{style:{display:this.state.showDownloadBtn?"block":"none",marginLeft:"57%",pointerEvents:"100"===this.state.exportProgress?"auto":"none",opacity:"100"===this.state.exportProgress?1:.5},className:"smack-btn smack-btn-primary",onClick:"100"===this.state.exportProgress?function(){return r.handleBundleDownload()}:void 0},t.createElement("i",{className:"csv-icon-download-cloud mr10"}),"Bundle"),t.createElement("a",{href:this.state.exportedFileUrl,style:E,download:!0,className:"smack-btn smack-btn-primary"},t.createElement("i",{className:"csv-icon-download-cloud mr10"}),this.context.language.Download)):t.createElement("div",null,t.createElement("div",{className:"float-right"},t.createElement("a",{href:this.state.exportedFileUrl,style:E,download:!0,className:"smack-btn smack-btn-primary"},t.createElement("i",{className:"csv-icon-download-cloud mr10"}),this.context.language.Download)),t.createElement("div",{className:"float-left"},t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){return r.context.setShowExport("export-template-section")}},this.context.language.Back)))))),t.createElement(N_,{open:p,onClose:this.closeModal,maxWidth:"md",fullWidth:!0},t.createElement(J_,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",fontSize:"14px"}},"Data Preview"),t.createElement(eb,null,"json"===this.context.exportType?t.createElement("pre",{style:{padding:"10px",fontSize:"11px",borderRadius:"5px",whiteSpace:"pre-wrap",wordWrap:"break-word",fontFamily:"monospace"}},JSON.stringify(h,null,2)):"xml"===this.context.exportType&&"string"==typeof h?t.createElement("pre",{style:{padding:"10px",fontSize:"11px",borderRadius:"5px",whiteSpace:"pre-wrap",wordWrap:"break-word",fontFamily:"monospace"}},h):Array.isArray(h)&&h.length>0&&"object"===(0,du.A)(h[0])&&!Array.isArray(h[0])?t.createElement(ab,{component:E_,sx:{overflowX:"auto"}},t.createElement(db,{sx:{tableLayout:"auto",width:"max-content"}},t.createElement(vb,null,t.createElement(xb,null,Object.keys(h[0]).map((function(e,n){return t.createElement(Cb,{key:n,title:e,sx:{whiteSpace:"nowrap",width:"max-content",fontSize:"12px",borderRight:"1px solid rgba(224, 224, 224, 1)",padding:"8px 12px"}},e)})))),t.createElement(Ib,null,h.map((function(e,n){return t.createElement(xb,{key:n,sx:{backgroundColor:n%2==0?"#f9f9f9":"white"}},Object.values(e).map((function(e,n){return t.createElement(Cb,{key:n,title:"object"===(0,du.A)(e)?JSON.stringify(e):String(e),sx:{whiteSpace:"nowrap",width:"max-content",fontSize:"11px",borderRight:"1px solid rgba(224, 224, 224, 1)",padding:"8px 12px"}},"object"===(0,du.A)(e)&&null!==e?JSON.stringify(e):String(e))})))}))))):Array.isArray(h)&&h.length>0&&Array.isArray(h[0])?t.createElement(ab,{component:E_,sx:{overflowX:"auto"}},t.createElement(db,{sx:{tableLayout:"auto",width:"max-content"}},t.createElement(vb,null,t.createElement(xb,null,h[0].map((function(e,n){return t.createElement(Cb,{key:n,title:e,sx:{whiteSpace:"nowrap",width:"max-content",fontSize:"12px",borderRight:"1px solid rgba(224, 224, 224, 1)",padding:"8px 12px"}},e)})))),t.createElement(Ib,null,h.slice(1).map((function(e,n){return t.createElement(xb,{key:n,sx:{backgroundColor:n%2==0?"#f9f9f9":"white"}},e.map((function(e,n){return t.createElement(Cb,{key:n,title:String(e),sx:{whiteSpace:"nowrap",width:"max-content",fontSize:"11px",borderRight:"1px solid rgba(224, 224, 224, 1)",padding:"8px 12px"}},e)})))}))))):t.createElement("p",null,"Invalid data format.")),t.createElement(jb,null,t.createElement(Ry,{variant:"outlined",onClick:this.closeModal,style:{backgroundColor:"white",color:"#666666",border:"1px solid #ccc",borderRadius:"4px",padding:"8px 16px",fontSize:"14px",cursor:"pointer"}},"Close")))),t.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-block":"d-none")},t.createElement("div",{className:"card-body"},t.createElement("div",{className:"importing-details"},t.createElement("div",{className:"progress-status"},this.state.exportSuccess&&this.state.exportProgress>"99"?"In Progress":""),t.createElement("div",{className:"import-progress"},this.state.exportErrorFlag?t.createElement("div",{className:"progress-loading text-danger"},this.context.language.NotCompleted):t.createElement("div",{className:"progress-loading"},this.state.exportProgress+"%"," ",this.context.language.Completed),t.createElement("div",{className:"progress-timing"},t.createElement("i",{className:"csv-icon-schedule"})," ",this.state.stopWatch))),t.createElement("div",{className:"progress mt10 mb40"},t.createElement("div",{className:"".concat(this.state.exportErrorFlag?"progress-bar-error":"progress-bar"),role:"progressbar",style:w,"aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),t.createElement("p",{className:"float-none"},this.context.language.DataExported," :"," ",t.createElement("span",null,this.state.offset)," / ",this.state.totalExportRecord," "),t.createElement("div",{className:"form-group mt30 clearfix"},t.createElement("div",{className:"float-right"},f&&t.createElement("a",{href:"#",style:E,onClick:this.exportToGsheet.bind(this),className:"smack-btn smack-btn-primary",disabled:g},g?t.createElement("span",null,"Exporting..."):t.createElement("span",null,"G-Sheets"))),this.context.isMigrate?t.createElement("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){r.context.setShowExport("export-template-section"),r.context.setIsmigration(!1)}},this.context.language.Back),"100"===this.state.exportProgress&&this.context.isMigrate&&t.createElement("a",{style:{display:this.state.showDownloadBtn?"block":"none",marginLeft:"57%",pointerEvents:"100"===this.state.exportProgress?"auto":"none",opacity:"100"===this.state.exportProgress?1:.5},className:"smack-btn smack-btn-primary",onClick:"100"===this.state.exportProgress?function(){return r.handleBundleDownload()}:void 0},t.createElement("i",{className:"csv-icon-download-cloud mr10"}),"Bundle"),t.createElement("a",{href:this.state.exportedFileUrl,style:E,download:!0,className:"smack-btn smack-btn-primary"},t.createElement("i",{className:"csv-icon-download-cloud mr10"}),this.context.language.Download)):t.createElement("div",null,t.createElement("div",{className:"float-right"},t.createElement("a",{href:this.state.exportedFileUrl,style:E,download:!0,className:"smack-btn smack-btn-primary"},t.createElement("i",{className:"csv-icon-download-cloud mr10"}),this.context.language.Download)),t.createElement("div",{className:"float-left"},t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){r.context.setShowExport("export-template-section"),r.context.setTabSelection({tabSelection:""})}},this.context.language.Back)))))))}}]);var o,a,d,h,f,g,v,b}(t.Component);function sw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sw=function(){return!!e})()}(0,p.A)(iw,"contextType",f);var lw=Rd.div(ew||(ew=g(["\n    padding: 50px;\n    background: white;\n    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n    border-radius: 6px;\n"]))),cw=Rd.button(tw||(tw=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),dw=Rd.h1(nw||(nw=g(["\n    font-size: 30px;\n    font-family: 'Poppins';\n    font-weight: 500;\n    margin-bottom: 0;\n"]))),uw=Rd.p(ow||(ow=g(["\n    font-size: 16px;\n"]))),pw=Rd.button(aw||(aw=g(["\n    font-size: 1rem;\n    padding: 8px 20px;\n    line-height: 1.5em;\n    font-weight: 600;\n    text-transform: uppercase;\n    -webkit-transition: all 200ms ease;\n    -moz-transition: all 200ms ease;\n    -ms-transition: all 200ms ease;\n    -o-transition: all 200ms ease;\n    transition: all 200ms ease;\n    font-family: 'Poppins', sans-serif;\n    border: none;\n    cursor: pointer;\n    border-radius: 6px;\n    background: #ffffff;\n    border: 1px solid #a0aec0;\n    color: #4a5568;\n    &:hover {\n        background-color: #e2e8f0;\n    }\n"]))),hw=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,sw()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,scheduleExportData:[],scheduled_time:"",scheduled_date:"",frequency:"",CreatedTime:""},t.handleChange=t.handleChange.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displayScheduledExport(),this.context.setSelectedTabOnCookies("manager")}},{key:"handleChange",value:function(e){this.setState({scheduled_date:e})}},{key:"displayScheduledExport",value:(p=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","display_schedule"),t.set("Type","Export"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:n=e.sent,this.setState({loading:!1}),200==n.status&&n.data.success&&this.setState({scheduleExportData:n.data.info});case 10:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"deleteSchedule",value:(d=u(m().mark((function e(t,n){var o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","delete_schedule"),o.set("CreatedTime",t),o.set("Type","Export"),o.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:200==(a=e.sent).status&&a.data.success&&((r=this.state.scheduleExportData).splice(n,1),this.setState({scheduleExportData:r}),bn.success("Scheduled Export Deleted Successfully"));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"editSchedule",value:(a=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","edit_schedule"),o.set("CreatedTime",t),o.set("Type","Export"),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:200==(a=e.sent).status&&this.setState({scheduled_time:a.data.scheduled_time,frequency:a.data.frequency,CreatedTime:t,scheduled_date:_()(a.data.scheduled_date).toDate()}),document.getElementById("triggerSchedule").click(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(e,t){return a.apply(this,arguments)})},{key:"updateSchedule",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","update_schedule"),t.set("Type","Export"),t.set("CreatedTime",this.state.CreatedTime),t.set("ScheduledTime",this.state.scheduled_time),t.set("ScheduledDate",_()(this.state.scheduled_date).format("YYYY-MM-DD")),t.set("Frequency",this.state.frequency),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=10,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:200==(n=e.sent).status&&n.data.success?bn.success("Schedule Updated Successfully"):bn.info("Not Updated"),this.forceUpdate();case 13:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"confirmationToDeleteScheduledExport",value:function(e,n){var o=this;(0,yn.ZX)({customUI:function(a){var r=a.onClose;return t.createElement(lw,null,t.createElement(dw,null,"Are you sure?"),t.createElement(uw,null,"You want to delete this template?"),t.createElement(pw,{onClick:r},"Not Now"),t.createElement(cw,{onClick:function(){o.deleteSchedule(e,n),r()}},"Yes, Delete it!"))}})}},{key:"render",value:function(){var e=this,n={verticalAlign:"middle"},o={width:"40%"};return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane3 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.ScheduleInfo),t.createElement("div",{className:"table-responsive"},t.createElement("table",{className:"table table-manager"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{style:o},this.context.language.EventInfo),t.createElement("th",null,this.context.language.EventDate),t.createElement("th",{className:"text-center"},this.context.language.EventStatus),t.createElement("th",{className:"text-center"},this.context.language.Actions))),t.createElement("tbody",null,this.state.loading?t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("div",{className:"loader loader-1 mt15"}))):0!==this.state.scheduleExportData.length?this.state.scheduleExportData.map((function(a,r){return t.createElement("tr",null,t.createElement("td",{style:o},t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.FileName," ",":")," ",a.filename," "),t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.Purpose," ",":")," ",a.module)),t.createElement("td",null,t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.ScheduledDate," ",":")," ",_()(a.scheduled_date).format("ll")),t.createElement("p",null,t.createElement("span",{className:"text-label"},e.context.language.ScheduledTime," ",":")," ",a.scheduled_time),"0"!==a.frequency?t.createElement("p",null,t.createElement("span",{className:"text-label"},"Last Run"," ",":")," ",_()(a.last_run).format("YYYY-MM-DD HH:mm:ss")):"","0"!==a.frequency?t.createElement("p",null,t.createElement("span",{className:"text-label"},"Next Run"," ",":")," ",_()(a.next_run).format("YYYY-MM-DD HH:mm:ss")):""),t.createElement("td",{className:"text-center",style:n},t.createElement("span",{className:"badge text-uppercase ".concat(a.status)},a.status)),t.createElement("td",{className:"text-center",style:n},t.createElement("ul",{className:"list-inline"},"completed"!=a.status?t.createElement("li",{className:"list-inline-item"},t.createElement("a",{className:"action-icon",onClick:function(){e.editSchedule(a.created_time,r)},"data-tip":"Edit"},t.createElement("i",{className:"csv-icon-edit-2"}))):"",t.createElement("li",{className:"list-inline-item"},t.createElement("a",{className:"action-icon",onClick:function(){e.confirmationToDeleteScheduledExport(a.created_time,r)},"data-tip":"Delete"},t.createElement("i",{className:"csv-icon-trash-2"}))),t.createElement(dc,{effect:"solid"}))))})):t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("span",{className:"text-danger"},this.context.language.Youhavenotscheduledanyevent))))))))),t.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#edit_schedule_data",id:"triggerSchedule"}),t.createElement("div",{id:"edit_schedule_data",className:"modal fade",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("h1",{class:"main-heading"},this.context.language.EditSchedule),t.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("div",{class:"row"},t.createElement("div",{className:"col-md-8 offset-md-2"},t.createElement("div",{class:"col-md-3"},t.createElement("label",{for:"schedule-date"},this.context.language.Date),t.createElement("label",null,t.createElement(nu(),{selected:this.state.scheduled_date,id:"schedule-date",onChange:this.handleChange,customInput:t.createElement(rw,null),showYearDropdown:!0}))),t.createElement("div",{class:"form-group"},t.createElement("label",{for:"schedule-time"},this.context.language.Time),t.createElement("input",{type:"text",value:this.state.scheduled_time,class:"form-control",onChange:function(t){e.setState({scheduled_time:t.target.value})},id:"schedule-time"}),t.createElement("small",{id:"emailHelp",class:"form-text text-muted"},"21:43")),t.createElement("div",{class:"form-group"},t.createElement("label",{for:"schedule-frequency"},this.context.language.Frequency),t.createElement("select",{class:"form-control",value:this.state.frequency,name:"",onChange:function(t){e.setState({frequency:t.target.value})},id:"schedule-frequency"},t.createElement("option",{value:"OneTime"},this.context.language.OneTime),t.createElement("option",{value:"Daily"},this.context.language.Daily),t.createElement("option",{value:"Weekly"},this.context.language.Weekly),t.createElement("option",{value:"Monthly"},this.context.language.Monthly),t.createElement("option",{value:"Hourly"},this.context.language.Hourly),t.createElement("option",{value:"Every 30 mins"},this.context.language.Every30mins),t.createElement("option",{value:"Every 15 mins"},this.context.language.Every15mins),t.createElement("option",{value:"Every 10 mins"},this.context.language.Every10mins),t.createElement("option",{value:"Every 5 mins"},this.context.language.Every5mins)))))),t.createElement("div",{class:"modal-footer"},t.createElement("button",{type:"button",onClick:function(){e.updateSchedule()},"data-dismiss":"modal",class:"smack-btn smack-btn-primary"},this.context.language.SaveChanges))))))}}]);var o,a,d,p}(t.Component);(0,p.A)(hw,"contextType",f);const mw=hw;var fw,gw,vw,_w,bw,yw;function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xw=function(){return!!e})()}var Ew,Sw,Mw,Tw,Cw,Aw=Rd.td(fw||(fw=g(["\n  max-width: 250px;\n"]))),Dw=Rd.div(gw||(gw=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),Pw=Rd.button(vw||(vw=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),Lw=Rd.h1(_w||(_w=g(['\n  font-size: 30px;\n  font-family: "Poppins";\n  font-weight: 500;\n  margin-bottom: 0;\n']))),Nw=Rd.p(bw||(bw=g(["\n  font-size: 16px;\n"]))),Iw=Rd.button(yw||(yw=g(['\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: "Poppins", sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n']))),Ow=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,xw()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handlePageClick",(function(e){var n=e.selected,o=n*t.state.perPage;t.setState({currentPage:n,offset:o},(function(){t.displayTemplates()}))})),t.state={loading:!1,offset:0,perPage:20,currentPage:0,templates:[]},t.handlePageClick=t.handlePageClick.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("manager"),this.displayTemplates()}},{key:"displayTemplates",value:(h=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","displayTemplates"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:if(n=e.sent,this.setState({loading:!1}),200!=n.status){e.next=12;break}return n.data.success&&(o=n.data.info,a=o.slice(this.state.offset,this.state.offset+this.state.perPage),this.setState({pageCount:Math.ceil(o.length/this.state.perPage),templates:a},(function(){}))),e.abrupt("return");case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),console.log(e.t0);case 17:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return h.apply(this,arguments)})},{key:"editTemplate",value:(d=u(m().mark((function e(t,n){var o,a,r,i=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","templateinfo"),o.set("TemplateName",t.template_name),o.set("Types",t.module),o.set("MediaType",this.context.selectedMediaType),o.set("HashKey",""),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=7,e.next=10,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:if(!(a=e.sent)||!a.data){e.next=26;break}if(this.context.setFilterData(a.data.mapping_filter),200!=a.status||!a.data.success){e.next=26;break}return"xml"===a.data.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),this.context.setMappingResult(a.data.already_mapped),this.context.setCsvFields(a.data.csv_fields),r=mu(a.data.fields),this.context.setAllPluginFields(r),this.context.setCurrentUser(a.data.currentuser),r.map((function(e){"acf_fields"===Object.keys(e)[0]&&i.context.setIsAcfField(!0),"types_fields"===Object.keys(e)[0]&&i.context.setIsToolsetField(!0),"jetengine_fields"===Object.keys(e)[0]&&i.context.setIsJetengineField(!0),"pods_fields"===Object.keys(e)[0]&&i.context.setIsPodsField(!0),"metabox_fields"===Object.keys(e)[0]&&i.context.setIsMetaboxField(!0)})),this.context.setExistingTemplateName(t.template_name),this.context.setCSVInfo(kw(kw({},this.context.csvInfo),{},{templateName:t.template_name,selectedtype:t.module,hashKey:a.data.hash_key})),this.context.setMappingType(a.data.mapping_type),this.props.onEditTemplate(!0),e.abrupt("return");case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(7),console.log(e.t0);case 31:case"end":return e.stop()}}),e,this,[[7,28]])}))),function(e,t){return d.apply(this,arguments)})},{key:"deleteTemplate",value:(a=u(m().mark((function e(t,n){var o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","deleteTemplate"),o.set("TemplateName",t),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:if(!(a=e.sent)||!a.data){e.next=15;break}if(200!=a.status||!a.data.success){e.next=15;break}return(r=this.state.templates).splice(n,1),this.setState({templates:r}),bn.success("Template Deleted Successfully"),e.abrupt("return");case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(4),console.log(e.t0);case 20:case"end":return e.stop()}}),e,this,[[4,17]])}))),function(e,t){return a.apply(this,arguments)})},{key:"downloadTemplateFile",value:(o=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","download_template_file"),n.set("filename",t),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=6,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:200==(o=e.sent).status&&1==o.data.success?window.location.href=o.data.file_link:bn.error(o.data.message);case 8:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"confirmationToDeleteTemplate",value:function(e,n){var o=this;(0,yn.ZX)({customUI:function(a){var r=a.onClose;return t.createElement(Dw,null,t.createElement(Lw,null,"Are you sure?"),t.createElement(Nw,null,"You want to delete this template?"),t.createElement(Iw,{onClick:r},"Not Now"),t.createElement(Pw,{onClick:function(){o.deleteTemplate(e,n),r()}},"Yes, Delete it!"))}})}},{key:"render",value:function(){var e=this,n=this.state.templates;return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane4 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.TemplateInfo),t.createElement("table",{className:"table table-manager"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.TemplateName),t.createElement("th",null,this.context.language.Module),t.createElement("th",null,this.context.language.CreatedTime),t.createElement("th",{className:"text-center"},this.context.language.Actions))),t.createElement("tbody",null,this.state.loading?t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("div",{className:"loader loader-1 mt15"}))):0!=n.length?n.map((function(n,o){return t.createElement("tr",null,t.createElement(Aw,{title:n.template_name,className:"text-ellipsis"},n.template_name),t.createElement("td",null,n.module),t.createElement("td",null,_()(n.created_time).format("lll")),t.createElement("td",null,t.createElement("ul",{className:"list-inline"},t.createElement("li",{className:"list-inline-item"},t.createElement("a",{className:"action-icon",onClick:function(){e.downloadTemplateFile(n.template_name)},"data-tip":"Download Template"},t.createElement("i",{className:"csv-icon-download-cloud"}))),t.createElement("li",{className:"list-inline-item"},t.createElement("a",{className:"action-icon",onClick:function(){e.editTemplate(n,o)},"data-tip":"Edit"},t.createElement("i",{className:"csv-icon-edit-2"}))),t.createElement("li",{className:"list-inline-item",onClick:function(){e.confirmationToDeleteTemplate(n.template_name,o)}},t.createElement("a",{className:"action-icon","data-tip":"Delete"},t.createElement("i",{className:"csv-icon-trash-2"})))),t.createElement(dc,{effect:"solid"})))})):t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("span",{className:"text-danger"},this.context.language.NoTemplateFound))))),0!=n.length?t.createElement("div",null,this.state.slice,t.createElement(It(),{previousLabel:"prev",nextLabel:"next",breakLabel:"...",breakClassName:"break-me",pageCount:this.state.pageCount,marginPagesDisplayed:0,pageRangeDisplayed:0,onPageChange:this.handlePageClick,containerClassName:"pagination",subContainerClassName:"pages pagination",activeClassName:"active"})):t.createElement("div",null)))))}}]);var o,a,d,h}(t.Component);function Rw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rw=function(){return!!e})()}(0,p.A)(Ow,"contextType",f);var Fw=Rd.div(Ew||(Ew=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),jw=Rd.button(Sw||(Sw=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),Yw=Rd.h1(Mw||(Mw=g(['\n  font-size: 30px;\n  font-family: "Poppins";\n  font-weight: 500;\n  margin-bottom: 0;\n']))),zw=Rd.p(Tw||(Tw=g(["\n  font-size: 16px;\n"]))),Bw=Rd.button(Cw||(Cw=g(['\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: "Poppins", sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n']))),Hw=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,Rw()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handlePageClick",(function(e){var n=e.selected,o=n*t.state.perPage;t.setState({currentPage:n,offset:o},(function(){t.displayLogs()}))})),t.state={loading:!1,offset:0,logs:[],perPage:20,currentPage:0,downloadLogLink:"",failedLogLink:"",failedMediaLink:""},t.handlePageClick=t.handlePageClick.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displayLogs(),this.context.setSelectedTabOnCookies("manager")}},{key:"displayLogs",value:(f=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","display_log"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:200==(n=e.sent).status&&(this.setState({loading:!1}),n.data.success?(o=n.data.info,a=o.slice(this.state.offset,this.state.offset+this.state.perPage),this.setState({pageCount:Math.ceil(o.length/this.state.perPage),logs:a},(function(){}))):"No logs Found"==n.data.message&&this.setState({logs:[]}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"deleteLog",value:(h=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","delete_log"),o.set("filename",t),o.set("revision",n),o.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=8,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:200==(a=e.sent).status&&(bn.success(a.data.message),this.displayLogs());case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"confirmationToDeleteLog",value:function(e,n){var o=this;(0,yn.ZX)({customUI:function(a){var r=a.onClose;return t.createElement(Fw,null,t.createElement(Yw,null,"Are you sure?"),t.createElement(zw,null,"You want to delete this log?"),t.createElement(Bw,{onClick:r},"Not Now"),t.createElement(jw,{onClick:function(){o.deleteLog(e,n),r()}},"Yes, Delete it!"))}})}},{key:"downloadLog",value:(d=u(m().mark((function e(t,n,o){var a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","download_log"),a.set("filename",t),a.set("revision",n),a.set("type",o),a.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:(r=e.sent).data.success?(this.setState({downloadLogLink:r.data.file_url}),document.getElementById("downloadFile").click()):bn.error("Log Doesn't Exists");case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"downloadFailedLog",value:(a=u(m().mark((function e(t,n,o){var a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","download_failed_log"),a.set("filename",t),a.set("revision",n),a.set("type",o),a.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt.post(window.smack_nonce_object_pro.url,a);case 8:(r=e.sent).data.success?(this.setState({failedLogLink:r.data.file_url}),document.getElementById("failedFile").click()):bn.error("Failed Log Doesn't Exists");case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"downloadFailedmediaLog",value:(o=u(m().mark((function e(t,n,o){var a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","download_media_log"),a.set("filename",t),a.set("revision",n),a.set("type",o),a.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt.post(window.smack_nonce_object_pro.url,a);case 8:(r=e.sent).data.success?(this.setState({failedMediaLink:r.data.file_url}),document.getElementById("mediaFile").click()):bn.error("Media Log Doesn't Exists");case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=this.state.logs,o={padding:"20px 0 10px 0"};return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane5 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},"Log Info"),t.createElement("table",{className:"table log-manager"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.FileName),t.createElement("th",null,this.context.language.Module),t.createElement("th",null,this.context.language.Inserted),t.createElement("th",null,this.context.language.Updated),t.createElement("th",null,this.context.language.Skipped),t.createElement("th",null,this.context.language.Failed),t.createElement("th",{className:"text-center"},this.context.language.Download),t.createElement("th",{className:"text-center"},this.context.language.Delete))),t.createElement("tbody",null,this.state.loading?t.createElement("tr",null,t.createElement("td",{colspan:"6"},t.createElement("div",{className:"loader loader-1 mt15"}))):0!==n.length?n.map((function(n,a){return t.createElement("tr",{style:o},t.createElement("td",null,n.filename," ",t.createElement("br",null),t.createElement("b",null,e.context.language.Revision,": ")," ",n.revision),t.createElement("td",null,t.createElement("span",{"data-tip":n.module},n.module&&n.module.length>10?n.module.slice(0,10)+"...":n.module),t.createElement(dc,{effect:"solid"})),t.createElement("td",null,n.inserted),t.createElement("td",null,n.updated),t.createElement("td",null,n.skipped),t.createElement("td",null,n.failed),t.createElement("td",{className:"text-center",style:{display:"flex",gap:"20px",marginLeft:"25px"}},t.createElement("div",{className:"download-icon"},t.createElement("a",{className:"action-icon text-success text-bold",onClick:function(){e.downloadLog(n.filename,n.revision,n.module)},"data-tip":"Download the summary log"},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"Download.png"),alt:"Download Icon",className:"download-icon-img"}))),t.createElement(dc,{effect:"solid"}),t.createElement("div",{className:"download-icon"},t.createElement("a",{className:"action-icon text-success text-bold",onClick:function(){e.downloadFailedLog(n.filename,n.revision,n.module)},"data-tip":"Download the failed csv file"},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"Failed-media.png"),alt:"Download Icon",className:"download-icon-img"}))),t.createElement(dc,{effect:"solid"}),t.createElement("div",{className:"download-icon"},t.createElement("a",{className:"action-icon text-success text-bold",onClick:function(){e.downloadFailedmediaLog(n.filename,n.revision,n.module)},"data-tip":"Download the media file"},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"Media.png"),alt:"Download Icon",className:"download-icon-img"}))),t.createElement(dc,{effect:"solid"})),t.createElement("td",{className:"text-center"},t.createElement("div",{className:"delete-icon"},t.createElement("a",{className:"action-icon text-success text-bold",onClick:function(){e.confirmationToDeleteLog(n.filename,n.revision)},"data-tip":"Delete"},t.createElement("i",{className:"csv-icon-trash-2"}))),t.createElement(dc,{effect:"solid"})))})):t.createElement("tr",null,t.createElement("td",{colspan:"6"},t.createElement("span",{className:"text-danger"},this.context.language.NoLogRecordFound))))),t.createElement("a",{id:"downloadFile",className:"hidden",href:this.state.downloadLogLink,download:!0},this.context.language.Download),t.createElement("a",{id:"failedFile",className:"hidden",href:this.state.failedLogLink,download:!0},this.context.language.Download),t.createElement("a",{id:"mediaFile",className:"hidden",href:this.state.failedMediaLink,download:!0},this.context.language.Download))),0!=n.length?t.createElement("div",null,this.state.slice,t.createElement(It(),{previousLabel:"prev",nextLabel:"next",breakLabel:"...",breakClassName:"break-me",pageCount:this.state.pageCount,marginPagesDisplayed:0,pageRangeDisplayed:0,onPageChange:this.handlePageClick,containerClassName:"pagination",subContainerClassName:"pages pagination",activeClassName:"active"})):t.createElement("div",null)))}}]);var o,a,d,h,f}(t.Component);(0,p.A)(Hw,"contextType",f);const Vw=Hw;function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uw=function(){return!!e})()}var Ww=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,Uw()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={mediaData:[],loading:!1},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displayMediaReport(),this.context.setSelectedTabOnCookies("manager")}},{key:"displayMediaReport",value:(o=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","media_report"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:for(n=e.sent,this.setState({loading:!1}),o=[],a=n.data.success_count.length,r=0;r<a;r++)o.push({file_name:n.data.file_name[r],module:n.data.module[r],success_count:n.data.success_count[r],fail_count:n.data.fail_count[r],image_type:n.data.image_type[r],status:n.data.status[r]});200==n.status&&this.setState({mediaData:o});case 12:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return"Completed"===this.state.mediaData.status||this.state.mediaData.status,t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane media setting-tabpane5 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.MediaReport),t.createElement("div",{className:"table-responsive"},t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.FileName),t.createElement("th",null,this.context.language.Module),t.createElement("th",null,this.context.language.SuccessCount),t.createElement("th",null,this.context.language.FailCount),t.createElement("th",null,this.context.language.ImageType),t.createElement("th",null,this.context.language.Status))),t.createElement("tbody",null,this.state.loading?t.createElement("tr",null,t.createElement("td",{colspan:"4"},t.createElement("div",{className:"loader loader-1 mt15"}))):0!==this.state.mediaData.length?this.state.mediaData.map((function(n,o){return t.createElement("tr",null,t.createElement("td",null,n.file_name," "),t.createElement("td",null,n.module),t.createElement("td",null,n.success_count," "),t.createElement("td",null,n.fail_count," "),t.createElement("td",null,n.image_type),t.createElement("td",null,t.createElement("div",{className:"".concat("Completed"===e.state.mediaData.status?"success":"pending")},n.status)))})):t.createElement("tr",null,t.createElement("td",{colspan:"6"},t.createElement("span",{className:"text-danger"},this.context.language.NoLogRecordFound))))))))))}}]);var o}(t.Component);(0,p.A)(Ww,"contextType",f);const qw=Ww;var $w=a(548);function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Jw=function(){var e=(0,t.useContext)(f),n=pu((0,t.useState)(!1),2),o=(n[0],n[1]),a=pu((0,t.useState)([]),2),r=a[0],i=a[1],s=pu((0,t.useState)([]),2),l=s[0],c=s[1],d=pu((0,t.useState)(""),2),h=(d[0],d[1]),g=pu((0,t.useState)(),2),v=g[0],_=g[1],b=(0,t.useRef)(null),y=function(){var t=u(m().mark((function t(){var n,a,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new FormData).set("action","get_csv_url"),n.set("url",e.selectedFileUrl),n.set("securekey",window.smack_nonce_object_pro.nonce),o(!0),t.prev=5,t.next=8,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 8:(a=t.sent)&&a.data&&200===a.status&&a.data.success&&(r=a.data,["csv","xml"].includes(r.file_type)&&(e.setCSVInfo(Kw(Kw({},e.csvInfo),{},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({hashKey:r.hashkey,templateName:e.filePondResponse.filename.slice(0,-4),selectedtype:r.selectedtype},"templateName",r.templatename),"postTypes",r.posttype),"fileName",r.filename),"fileType",r.file_type),"fileSize",r.file_size),"taxonomys",r.taxonomy))),e.setIsXML("xml"===r.file_type),document.getElementById("desk-csv-close").click(),e.setShowComponent("csv-info"))),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(5),console.log(t.t0);case 15:return t.prev=15,o(!1),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[5,12,15,18]])})));return function(){return t.apply(this,arguments)}}(),w=function(){var e=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null==v?void 0:v.file_path,n=null==v?void 0:v.file_type,(o=new FormData).set("action","saveTemplateFields"),o.set("file_path",t),o.set("extension",n),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=7,e.next=10,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:(a=e.sent).data.success?bn.success(a.data.message):bn.error(a.data.data.message),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.error("An error occurred during the upload:",e.t0);case 17:return e.prev=17,k(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[7,14,17,20]])})));return function(){return e.apply(this,arguments)}}(),k=function(){i([]),c([]),h(""),_(null),e.setSelectedFileUrl(""),e.setCSVInfo({}),b.current&&b.current.removeFiles()};return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"tab-pane fade show active",id:"v-pills-home",role:"tabpanel","aria-labelledby":"v-pills-home-tab"},t.createElement($w.a,{ref:b,acceptedFileTypes:["text/csv","application/zip"],allowMultiple:!1,maxFiles:1,server:{process:function(t,n,o,a,r,i,s){var l=new FormData;l.append("csvFile",n,n.name),l.append("action","get_desktop"),l.append("mappingType","mapping_section"),l.append("securekey",window.smack_nonce_object_pro.nonce);var c=new XMLHttpRequest;return c.open("POST",ajaxurl),c.upload.onprogress=function(e){i(e.lengthComputable,e.loaded,e.total)},c.onload=function(){if(c.status>=200&&c.status<300){var t=JSON.parse(c.responseText);_(t),t.success?"ZipArchive class not exists"===t.info?bn.info("Please install php-zip extension"):(e.setCSVInfo(Kw(Kw({},e.csvInfo),{},{hashKey:t.hashkey,templateName:t.filename.slice(0,-4),selectedtype:t.selectedtype,fileName:t.filename,connectionType:"desktop",postTypes:t.posttype,taxonomys:t.taxonomy,fileSize:t.file_size,fileType:t.file_type})),e.setServerName(t.server),e.setIsXML("xml"===t.file_type),a(t)):(bn.error(t.message),r("Error processing file"))}else r("Request failed")},c.send(l),{abort:function(){c.abort(),s()}}}},onprocessfile:function(){var t=e.filePondResponse;if(["csv","xml","txt","json","xlsx","xls"].includes(t.file_type))return e.setCSVInfo(Kw(Kw({},e.csvInfo),{},{hashKey:t.hashkey,templateName:t.filename.slice(0,-4),selectedtype:t.selectedtype,fileName:t.filename,connectionType:"desktop",postTypes:t.posttype,taxonomys:t.taxonomy,fileSize:t.file_size,fileType:t.file_type})),e.setServerName(t.server),e.setIsXML("xml"===t.file_type),void e.setShowComponent("csv-info");if("zip"!==t.file_type&&"gz"!==t.file_type);else if(console.log("infosaran",t.info),"ZipArchive class not exists"!==t.info){var n=t.info.map((function(e){return e.name})),o=t.info.map((function(e){return e.path}));i(n),c(o),document.getElementById("desk-csv-open").click()}},onremovefile:function(){k()}}))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open","data-toggle":"modal","data-target":"#upload_csv"},e.language.UploadedCSVFileLists),t.createElement("div",{id:"upload_csv",className:"modal fade payment_modal",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-body my-2"},t.createElement("ul",null,r.map((function(n,o){return t.createElement("li",{key:o},t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input",type:"radio",name:"post-item",id:"radio-".concat(o),onClick:function(){h(l[o]),e.setSelectedFileUrl(l[o])}}),t.createElement("label",{htmlFor:"radio-".concat(o),className:"form-check-label"},n)))}))),t.createElement("div",{className:"float-right"},t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:y,value:"Choose CSV File"})))))),v&&v.success&&t.createElement("div",{className:"float-right"},t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:w},"Upload")))};a(312);const Xw=Ff();const Qw=Df(),Zw=Xw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ek(e){return function({props:e,name:t,defaultTheme:n,themeId:o}){let a=Vv(n);return o&&(a=a[o]||a),function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?kv(t.components[n].defaultProps,o):o}({theme:a,name:t,props:e})}({props:e,name:"MuiStack",defaultTheme:Qw})}function tk(e,n){const o=t.Children.toArray(e).filter(Boolean);return o.reduce(((e,a,r)=>(e.push(a),r<o.length-1&&e.push(t.cloneElement(n,{key:`separator-${r}`})),e)),[])}const nk=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Am({theme:t},Lm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e})))};if(e.spacing){const o=Wm(t),a=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),r=Lm({values:e.direction,base:a}),i=Lm({values:e.spacing,base:a});"object"==typeof r&&Object.keys(r).forEach(((e,t,n)=>{if(!r[e]){const o=t>0?r[n[t-1]]:"column";r[e]=o}})),n=xm(n,Am({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:qm(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${a=n?r[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[a]}`]:qm(o,t)}};var a})))}return n=function(e,...t){const n=Dm(e),o=[n,...t].reduce(((e,t)=>xm(e,t)),{});return Pm(Object.keys(n),o)}(t.breakpoints,n),n},ok=function(e={}){const{createStyledComponent:n=Zw,useThemeProps:o=ek,componentName:a="MuiStack"}=e,r=n(nk),i=t.forwardRef((function(e,t){const n=I_(o(e)),{component:i="div",direction:s="column",spacing:l=0,divider:c,children:d,className:u,useFlexGap:p=!1,...h}=n,m={direction:s,spacing:l,useFlexGap:p},f=Zh({root:["root"]},(e=>e_(a,e)),{});return(0,cm.jsx)(r,{as:i,ownerState:m,ref:t,className:Qh(f.root,u),...h,children:c?tk(d,c):d})}));return i}({createStyledComponent:bv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ev({props:e,name:"MuiStack"})}),ak=ok;function rk(e){return e_("MuiSvgIcon",e)}t_("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ik=bv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${rm(n.color)}`],t[`fontSize${rm(n.fontSize)}`]]}})(wv((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),sk=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiSvgIcon"}),{children:a,className:r,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:p="0 0 24 24",...h}=o,m=t.isValidElement(a)&&"svg"===a.type,f={...o,color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:m},g={};d||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:o}=e;return Zh({root:["root","inherit"!==t&&`color${rm(t)}`,`fontSize${rm(n)}`]},rk,o)})(f);return(0,cm.jsxs)(ik,{as:s,className:Qh(v.root,r),focusable:"false",color:c,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:n,...g,...h,...m&&a.props,ownerState:f,children:[m?a.props.children:a,u?(0,cm.jsx)("title",{children:u}):null]})}));sk.muiName="SvgIcon";const lk=sk;function ck(e,n){function o(t,o){return(0,cm.jsx)(lk,{"data-testid":`${n}Icon`,ref:o,...t,children:e})}return o.muiName=lk.muiName,t.memo(t.forwardRef(o))}const dk=ck((0,cm.jsx)("path",{d:"M3 5v14h18V5zm4 2v2H5V7zm-2 6v-2h2v2zm0 2h2v2H5zm14 2H9v-2h10zm0-4H9v-2h10zm0-4H9V7h10z"}),"ViewListOutlined"),uk=ck([(0,cm.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V3h-6.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H3v18h7v-2H5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1"},"0"),(0,cm.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5"},"1")],"ContentPasteSearchSharp"),pk=ck((0,cm.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"VisibilitySharp"),hk=t_("MuiBox",["root"]),mk=mv(),fk=function(e={}){const{themeId:n,defaultTheme:o,defaultClassName:a="MuiBox-root",generateClassName:r}=e,i=_m("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Cf);return t.forwardRef((function(e,t){const s=Vv(o),{className:l,component:c="div",...d}=I_(e);return(0,cm.jsx)(i,{as:c,ref:t,className:Qh(l,r?r(a):a),theme:n&&s[n]||s,...d})}))}({themeId:gv,defaultTheme:mk,defaultClassName:hk.root,generateClassName:Qv.generate}),gk=fk;function vk(e){return e_("MuiIconButton",e)}const _k=t_("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),bk=bv(my,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${rm(n.color)}`],n.edge&&t[`edge${rm(n.edge)}`],t[`size${rm(n.size)}`]]}})(wv((({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Wf(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}))),wv((({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))),...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Wf((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}}))),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_k.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${_k.loading}`]:{color:"transparent"}})))),yk=bv("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})((({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}))),wk=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiIconButton"}),{edge:o=!1,children:a,className:r,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium",id:d,loading:u=null,loadingIndicator:p,...h}=n,m=Yb(d),f=p??(0,cm.jsx)(Ey,{"aria-labelledby":m,color:"inherit",size:16}),g={...n,edge:o,color:i,disabled:s,disableFocusRipple:l,loading:u,loadingIndicator:f,size:c},v=(e=>{const{classes:t,disabled:n,color:o,edge:a,size:r,loading:i}=e;return Zh({root:["root",i&&"loading",n&&"disabled","default"!==o&&`color${rm(o)}`,a&&`edge${rm(a)}`,`size${rm(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},vk,t)})(g);return(0,cm.jsxs)(bk,{id:u?m:d,className:Qh(v.root,r),centerRipple:!0,focusRipple:!l,disabled:s||u,ref:t,...h,ownerState:g,children:["boolean"==typeof u&&(0,cm.jsx)("span",{className:v.loadingWrapper,style:{display:"contents"},children:(0,cm.jsx)(yk,{className:v.loadingIndicator,ownerState:g,children:u&&f})}),a]})})),kk=wk;function xk(e){return e_("MuiDivider",e)}t_("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ek=bv("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(wv((({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Wf(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]})))),Sk=bv("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(wv((({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]})))),Mk=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiDivider"}),{absolute:o=!1,children:a,className:r,orientation:i="horizontal",component:s=(a||"vertical"===i?"div":"hr"),flexItem:l=!1,light:c=!1,role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:p="fullWidth",...h}=n,m={...n,absolute:o,component:s,flexItem:l,light:c,orientation:i,role:d,textAlign:u,variant:p},f=(e=>{const{absolute:t,children:n,classes:o,flexItem:a,light:r,orientation:i,textAlign:s,variant:l}=e;return Zh({root:["root",t&&"absolute",l,r&&"light","vertical"===i&&"vertical",a&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},xk,o)})(m);return(0,cm.jsx)(Ek,{as:s,className:Qh(f.root,r),role:d,ref:t,ownerState:m,"aria-orientation":"separator"!==d||"hr"===s&&"vertical"!==i?void 0:i,...h,children:a?(0,cm.jsx)(Sk,{className:f.wrapper,ownerState:m,children:a}):null})}));Mk&&(Mk.muiSkipListHighlight=!0);const Tk=Mk,Ck=ck((0,cm.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew"),Ak=ck((0,cm.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dk(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lk=function(){return!!e})()}var Nk=function(e){function n(){var e,t,o,a,i;(0,r.A)(this,n);for(var c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];return o=this,a=n,i=[].concat(d),a=(0,l.A)(a),t=(0,s.A)(o,Lk()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"state",(e={onclickload:!1,loading:!1,checkSimilarity:!0,toTemplateSection:!1,customFields:[],mediaZipFileNames:[],mediaUploadData:{zipFileName:"",data:[]},staticString:"->static",mathString:"->math",customString1:"->cus1",number:"->num",customString2:"->cus2",openAI:"->openAI",wooCommerce:[],lastAddedIndex:1,isDialogVisible:!1,selectedAttribute:"",customFieldValues:{},formulaFieldValues:{}},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"isDialogVisible",!1),"selectedAttribute",""),"isFormulaDialogVisible",!1),"selectedFormulaAttribute",""),"isCustomFunctionDialogVisible",!1),"selectedCustomFunctionAttribute",""),"customFunctionFieldValues",{}),"mappedValues",[]),"dummyValue",""),"isDialogOpen",!1),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"isDialogFormulaOpen",!1),"isDialogCustomOpen",!1),"rules",[]),"isFilter",!1),"filterData",t.context.FilterData||[]),"formData",{element:"",rule:"",value:""}),"showModal",!1),"keyValueFields",[{key:"",value:""}]),"currentRowIndex",null),"serializedFields",{}),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"fieldValues",{}),"dialogOpen",!1),"dialogType",""),"page",1),"listPreviewData",""),"PreviewImageTest",""),"limit",5))),(0,p.A)(t,"formulaIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-sum")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(t,"handleOpenAITabClick",u(m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","get_setting"),n.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=3,e.next=6,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 6:200===(o=e.sent).status&&(0==o.data.get_key||""==o.data.get_key?t.context.setOpenAIapikey(""):t.context.setOpenAIapikey(o.data.setting)),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})))),(0,p.A)(t,"sumIconOnClick",(function(e,t){var n=document.getElementById("".concat(e,"-").concat(t,"-csv-icon-plus"));if(console.log("myElement",n),n.classList.contains("active")){var o=document.getElementById("".concat(e,"-").concat(t,"-static-manipulative-screen"));o.classList.contains("active")?o.classList.remove("active"):o.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(t,"openAIIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-icon-Ai_icons-05")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-openAI-edit-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(t,"edit1IconOnClick",(function(e,t){if(console.log("index","color: #1d5673",t),console.log("pluginId","color: #00b300",e),document.getElementById("".concat(e,"-").concat(t,"-csv-icon-edit1")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-edit-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(t,"addMappedRow",(function(){t.setState((function(e){var t=e.wooCommerce.length+1,n={label:t,name:e.wooCommerce[0].name.map((function(e){return{label:e.label.replace(/\d+$/,t),name:e.name.replace(/\d+$/,t)}}))},o=[].concat(Mu(e.wooCommerce),[n]);return{wooCommerce:o,lastAddedIndex:o.length-1}}))})),(0,p.A)(t,"deleteCard",(function(e){t.setState((function(t){var n=t.wooCommerce.filter((function(t,n){return n!==e}));return{wooCommerce:n,lastAddedIndex:n.length-1}}));var n=t.context.mappingResult.ATTRMETA,o=Object.keys(n);if(e<0||e>=o.length)console.error("%cInvalid index:","color: #ff0000",e);else{var a=o[e];if(n[a]){var r=Pk({},n);delete r[a],t.context.setMappingResult(Pk(Pk({},t.context.mappingResult),{},{ATTRMETA:r})),console.log("%cMapping Result After:","color: #00bf00",Pk(Pk({},t.context.mappingResult),{},{ATTRMETA:r}))}else console.log("%cCard has no value, not deleting.","color: #ffaa00")}})),(0,p.A)(t,"toggleDialog",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t.setState((function(t){return{isDialogVisible:!t.isDialogVisible,selectedAttribute:t.isDialogVisible?"":e}}))})),(0,p.A)(t,"toggleFormulaDialog",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t.setState((function(t){return{isFormulaDialogVisible:!t.isFormulaDialogVisible,selectedFormulaAttribute:t.isFormulaDialogVisible?"":e}}))})),(0,p.A)(t,"handleFormulaSelect",(function(e,n){t.setState((function(t){return{wooCommerce:t.wooCommerce.map((function(t,o){if(o===parseInt(e.split("_")[0])){var a=t.name.map((function(t,o){return o===parseInt(e.split("_")[1])?Pk(Pk({},t),{},{formulaValue:n}):t}));return Pk(Pk({},t),{},{name:a})}return t}))}}))})),(0,p.A)(t,"retrieveFormulaValue",(function(e){var n,o=parseInt(e.split("_")[0]),a=parseInt(e.split("_")[1]);return(null===(n=t.state.wooCommerce[o])||void 0===n||null===(n=n.name[a])||void 0===n?void 0:n.formulaValue)||""})),(0,p.A)(t,"retrieveFieldValue",(function(e){return t.state.customFieldValues[e]||""})),(0,p.A)(t,"retrieveFormulaValue",(function(e){return t.state.formulaFieldValues[e]||""})),(0,p.A)(t,"toggleCustomFunctionDialog",(function(e){t.setState((function(t){return{isCustomFunctionDialogVisible:!t.isCustomFunctionDialogVisible,selectedCustomFunctionAttribute:e||""}}))})),(0,p.A)(t,"handleCustomFunctionSelect",(function(e,n){t.setState((function(t){return{customFunctionFieldValues:Pk(Pk({},t.customFunctionFieldValues),{},(0,p.A)({},e,n))}}))})),(0,p.A)(t,"retrieveCustomFunctionValue",(function(e){var n=pu(e.split("_"),3),o=n[0],a=n[1],r=n[2],i=parseInt(o),s=parseInt(a),l=t.state.wooCommerce[i];if(!l)return"";var c=l.name[s];return c?"edit_input"===r?c.EditvaluValue||"":"edit"===r&&c.EditvaluValue||"":""})),(0,p.A)(t,"handleDropdownChange",(function(e,n,o){t.setState((function(a){var r,i=Mu(a.wooCommerce);i[e].name[n].selectedValue=o;var s=Pk({},t.context.mappingResult.ATTRMETA),l=null===(r=i[e])||void 0===r||null===(r=r.name[n])||void 0===r?void 0:r.name;return l&&(s[l]=o),t.context.setMappingResult(Pk(Pk({},t.context.mappingResult),{},{ATTRMETA:s})),{wooCommerce:i}}))})),(0,p.A)(t,"handleDropdownChange",(function(e,n,o){t.setState((function(a){var r,i=a.wooCommerce.map((function(t,a){if(a===e){var r=t.name.map((function(e,t){return t===n?Pk(Pk({},e),{},{selectedValue:o,value:o}):e}));return Pk(Pk({},t),{},{name:r})}return t})),s=Pk({},t.context.mappingResult.ATTRMETA),l=null===(r=i[e])||void 0===r||null===(r=r.name[n])||void 0===r?void 0:r.name;return l&&(s[l]=o),t.context.setMappingResult(Pk(Pk({},t.context.mappingResult),{},{ATTRMETA:s})),{wooCommerce:i}}))})),(0,p.A)(t,"handleMappingSelect",(function(e,n){var o=pu(e.split("_").map((function(e){return parseInt(e)})),2),a=o[0],r=o[1],i="";e.includes("_static")?i="actionTypedValue":e.includes("_formula")?i="formulaValue":e.includes("_edit")&&(i="EditvaluValue"),t.setState((function(e){var t=e.wooCommerce.map((function(e,t){if(t===a){var o=e.name.map((function(e,t){if(t===r){var o=Pk(Pk({},e),{},(0,p.A)((0,p.A)((0,p.A)({},i,n),"value",n),"selectedValue",n));return Object.fromEntries(Object.entries(o).filter((function(e){var t=pu(e,2);return t[0],""!==t[1]})))}return e}));return Pk(Pk({},e),{},{name:o})}return e})),o=t.map((function(e){var t={};return e.name.forEach((function(e){e.selectedValue&&(t[e.name]=e.selectedValue)})),t}));return{wooCommerce:t,mappedValues:o}}))})),(0,p.A)(t,"handleHeaderManipulation",(function(e,n,o,a){console.log("type","color: #733d00",a),console.log("subIndex","color: #e50000",o),console.log("mainIndex","color: #aa00ff",n);var r=t.context.mappingResult.ATTRMETA,i=Mu(t.state.wooCommerce);Object.keys(r).forEach((function(e){"Header Manipulation"===r[e]&&i.forEach((function(t){t.name.forEach((function(t){t.name===e&&(t.value="Header Manipulation")}))}))})),t.setState({wooCommerce:i},(function(){var e,r,i=null===(e=t.state.wooCommerce[n].name[o])||void 0===e?void 0:e.selectedValue;console.log("selectedValues","color: #00e600",i);var s=null===(r=t.state.wooCommerce[n].name[o])||void 0===r?void 0:r.value;console.log("selectedValues","color: #00a3cc",s);var l={Static:"isDialogOpen",Formula:"isDialogFormulaOpen",Edit:"isDialogCustomOpen"};console.log("selectedValue:",i),console.log("selectedValues:",s),console.log("dialogMapping[type]:",l[a]),"Header Manipulation"!==i&&"Header Manipulation"!==s||!l[a]?(console.log("Toast Triggered: Please choose Header Manipulation in the drop-down"),bn.info("Please choose Header Manipulation in the drop-down")):t.setState((0,p.A)((0,p.A)({},l[a],!0),"currentDialogIndex","".concat(n,"-").concat(o)))}))})),(0,p.A)(t,"handleChange",(function(e){var n=e.target,o=n.name,a=n.value;t.setState((function(e){return{formData:Pk(Pk({},e.formData),{},(0,p.A)((0,p.A)({},o,a),"value","rule"===o?"":e.formData.value))}}))})),(0,p.A)(t,"handleConditionChange",(function(e,n){t.setState((function(t){var o=Mu(t.filterData);return e<o.length-1&&(o[e].condition=n),o.length>0&&(o[o.length-1].condition=""),{filterData:o}}),(function(){return console.log(t.state.filterData)}))})),(0,p.A)(t,"handleAddRule",(function(){var e=t.context.setMappedFilter;t.setState((function(t){var n=t.formData,o=n.element,a=n.rule,r=n.value,i=["greater_than","equals_or_greater_than","less_than","equals_or_less_than"].includes(a)&&!/^\d+$/.test(r);if(!o||!a||""===r&&"is_empty"!==a&&"is_not_empty"!==a||i)return null;var s=Mu(t.filterData);s.length>0&&(s[s.length-1].condition="AND"),"is_empty"!==a&&"is_not_empty"!==a||(r="");var l={element:o,rule:a,value:r,condition:""};return s.push(l),s.length>0&&e(!0),{filterData:s,formData:{element:"",rule:"",value:""}}}))})),(0,p.A)(t,"handleDeleteRule",(function(e){var n=t.context.setMappedFilter;t.setState((function(t){var o=Mu(t.filterData);return o.splice(e,1),o.length>0&&(o[o.length-1].condition=""),n(o.length>0),{filterData:o}}),(function(){return console.log("filterdata",t.state.filterData)}))})),(0,p.A)(t,"toggleAccordion",(function(){t.setState((function(e){return{isFiltering:!e.isOpen}}))})),(0,p.A)(t,"handlecustomFilterOpen",(function(){t.setState((function(e){return{isFilter:!e.isFilter}}))})),(0,p.A)(t,"handleSpecficModelOpen",(function(e){var n,o,a=Mu(t.state.customFields),r=a[e],i=null===(n=r.name)||void 0===n?void 0:n.trim(),s="".concat(i,"->serialize"),l=(null===(o=t.state.serializedFields)||void 0===o||null===(o=o[i])||void 0===o?void 0:o[s])||"";"object"===(0,du.A)(r.value)&&null!==r.value&&r.value[s]||(r.value=Pk(Pk({},"object"===(0,du.A)(r.value)?r.value:{}),{},(0,p.A)({},s,l)));var c=r.value[s],d=[];if("string"==typeof c)try{d=c.replace(/^{{+|}+}$/g,"").split("},").map((function(e){var t=pu(e.replace(/[{}]/g,"").trim().split(":"),2),n=t[0],o=t[1];return{key:(null==n?void 0:n.trim())||"",value:(null==o?void 0:o.trim())||""}}))}catch(e){console.warn("Error parsing serialized string:",e)}t.setState({customFields:a,showModal:!0,currentRowIndex:e,keyValueFields:d.length>0?d:[{key:"",value:""}]})})),(0,p.A)(t,"handleSave",(function(){var e,n,o=t.state,a=o.currentRowIndex,r=o.keyValueFields,i=o.customFields,s=null===(e=i[a])||void 0===e||null===(e=e.name)||void 0===e?void 0:e.trim(),l="".concat(s,"->serialize"),c=r.filter((function(e){return e.key||e.value})).map((function(e){return"{".concat(e.key,":").concat(e.value,"}")})).join(","),d="{{".concat(c,"}}"),u=Mu(i),h="object"===(0,du.A)(null===(n=u[a])||void 0===n?void 0:n.value)?u[a].value:{};u[a]=Pk(Pk({},u[a]),{},{value:Pk(Pk({},h),{},(0,p.A)({},l,d))}),t.setState((function(e){var t;return{customFields:u,serializedFields:Pk(Pk({},e.serializedFields),{},(0,p.A)({},s,Pk(Pk({},null===(t=e.serializedFields)||void 0===t?void 0:t[s]),{},(0,p.A)({},l,d)))),keyValueFields:[]}}),t.handleModalClose)})),(0,p.A)(t,"addField",(function(){t.setState((function(e){return{keyValueFields:[].concat(Mu(e.keyValueFields),[{key:"",value:""}])}}))})),(0,p.A)(t,"removeField",(function(e){var n=Mu(t.state.keyValueFields);n.splice(e,1),t.setState({keyValueFields:n})})),(0,p.A)(t,"handleModalClose",(function(){t.setState({showModal:!1})})),(0,p.A)(t,"handleKeyChange",(function(e,n){var o=Mu(t.state.keyValueFields);o[e].key=n,t.setState({keyValueFields:o})})),(0,p.A)(t,"handleValueChange",(function(e,n){var o=Mu(t.state.keyValueFields);o[e].value=n,t.setState({keyValueFields:o})})),(0,p.A)(t,"handlePreviewModelOpen",(function(e){var n=document.querySelectorAll("select.select.form-control.w-75")[e],o=null==n?void 0:n.value;o&&"--select--"!==o?(t.getPreviewData(),t.setState({dialogOpen:!0,dialogType:"preview"})):bn.info("Please select a CSV field before previewing.")})),(0,p.A)(t,"handlePreviewTestModelOpen",(function(e){var n=document.querySelectorAll("select.select.form-control.w-75")[e],o=null==n?void 0:n.value;o&&"--select--"!==o?(t.getPreviewTestData(),t.setState({dialogOpen:!0,dialogType:"preview&test"})):bn.info("Please select a CSV field before previewing.")})),(0,p.A)(t,"handleClose",(function(){t.setState({dialogOpen:!1,dialogType:"",listPreviewData:""})})),(0,p.A)(t,"handlePageChange",(function(e){t.setState({listPreviewData:""}),t.setState((function(t){var n=t.page+e;return{page:Math.max(1,Math.min(n,t.limit))}}),(function(){"preview&test"===t.state.dialogType?t.getPreviewTestData():"preview"===t.state.dialogType&&t.getPreviewData()}))})),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"isSimilar",value:function(e,t,n){if(this.context.mappingResult){var o=gu(e).resultKey;if(this.context.mappingResult[o]&&this.context.mappingResult[o][t]===n)return!0}return!(t.toLowerCase()!==n.toLowerCase()||!this.state.checkSimilarity||this.context.isTemplate||this.props.onEditTemplate||(this.onMappingSelect(e,t,n,!1),0))}},{key:"onMappingSelect",value:function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,r=gu(e).resultKey,i=this.context.mappingResult[r];if(-1!=a){var s=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-sum")),l=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-plus")),c=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-edit1")),d="";if(document.getElementById("".concat(e,"-").concat(a,"-icon-Ai_icons-05"))&&(d=document.getElementById("".concat(e,"-").concat(a,"-icon-Ai_icons-05"))),"Header Manipulation"===n&&(s.classList.add("active"),l.classList.add("active"),c.classList.add("active"),d&&d.classList.add("active")),"Header Manipulation"!==n){if("--select--"===n||"Header Manipulation"!==n)for(var u in i)u.search(t+"->")>-1&&(console.log("this.context.mappingResult[pluginResultKey][key]","color: #731d1d",this.context.mappingResult[r][u]),delete this.context.mappingResult[r][u],this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult));s.classList.remove("active"),l.classList.remove("active"),c.classList.remove("active"),d&&d.classList.remove("active"),document.getElementById("".concat(e,"-").concat(a,"-manipulative-screen")),s.className=s.className.split(" ").filter((function(e){return"active"!==e})).join(" ")}console.log("after sumIcon",s,l,c,n)}if("--select--"!==n&&"Header Manipulation"!==n)i?o?this.context.mappingResult[r][t]=n:this.context.mappingResult[r][t]||(this.context.mappingResult[r][t]=n):(this.context.mappingResult[r]={},this.context.mappingResult[r][t]=n),this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult);else if(i){if(this.context.mappingResult[r][t]&&(delete this.context.mappingResult[r][t],this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult)),"--select--"===n)for(var u in i)u.search(t+"->")>-1&&(delete this.context.mappingResult[r][u],this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult));return}}},{key:"isHeaderManipulation",value:function(e,t,n){var o=gu(e).resultKey,a=this.context.mappingResult[o];if(a){for(var r in a)if(r.search(t+"->")>-1)return setInterval((function(){var t=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-sum")),o=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-plus")),a=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-edit1")),r="";document.getElementById("".concat(e,"-").concat(n,"-icon-Ai_icons-05"))&&(r=document.getElementById("".concat(e,"-").concat(n,"-icon-Ai_icons-05"))),t&&!t.classList.contains("active")&&t.classList.add("active"),o&&!o.classList.contains("active")&&o.classList.add("active"),a&&!a.classList.contains("active")&&a.classList.add("active"),r&&r&&!r.classList.contains("active")&&r.classList.add("active")}),500),!0;return!1}return!1}},{key:"getFieldValueFromResult",value:function(e,t){var n=gu(e).resultKey;return this.context.mappingResult[n]&&this.context.mappingResult[n][t]?this.context.mappingResult[n][t]:""}},{key:"getFieldValueFromCustomFields",value:function(e,t){var n;if(n="string"!=typeof this.state.customFields[e]?this.state.customFields[e].customFields:this.state.customFields[e])return n.value}},{key:"addCustomField",value:function(){this.handleModalClose(),this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.handleModalClose(),this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueSelect",value:function(e,t){this.setState((function(n){return{fieldValues:Pk(Pk({},n.fieldValues),{},(0,p.A)({},t,e))}}));var n=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-sum")),o=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-plus")),a=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-edit1")),r="";if(document.getElementById("custom-field-creator-".concat(t,"-icon-Ai_icons-05"))&&(r=document.getElementById("custom-field-creator-".concat(t,"-icon-Ai_icons-05"))),"Header Manipulation"===e)return n.classList.add("active"),o.classList.add("active"),a.classList.add("active"),r&&r.classList.add("active"),this.state.customFields[t].value="",void this.setState({customFields:this.state.customFields});this.state.customFields[t].value="--select--"===e?"":e,n.classList.remove("active"),o.classList.remove("active"),a.classList.remove("active"),r&&r.classList.remove("active")}},{key:"onCustomFieldValueChange",value:function(e,t,n){this.setState({selectedCustomFieldValue:t});var o=Mu(this.state.customFields),a=Pk(Pk({},o[n].value),{},(0,p.A)({},e,t));o[n].value=a,this.setState({customFields:o})}},{key:"componentDidMount",value:function(){var e=this;this.context.onclickImport&&(this.setState({onclickload:!0}),this.sendMappedFields()),setTimeout((function(){e.setState({onclickload:!1}),e.handleOpenAITabClick(),console.log("%cdidmount","color: #807160",e.state.allPluginFields)}),2500)}},{key:"enableopenAIIconClick",value:function(){bn.info("To enable this, please Save your API Key In settings page")}},{key:"onZipProcess",value:function(e,t,n,o,a,r,i){var s=new FormData;s.append("zipFile",t,t.name),"ngg_pictures"===this.context.csvInfo.selectedtype?s.append("action","zip_ngg_upload"):s.append("action","zip_upload"),s.append("securekey",window.smack_nonce_object_pro.nonce);var l=new XMLHttpRequest;return l.open("POST",ajaxurl),l.upload.onprogress=function(e){r(e.lengthComputable,e.loaded,e.total)},l.onload=function(){if(l.status>=200&&l.status<300){o(JSON.parse(l.responseText));var e=JSON.parse(l.responseText);if(e.success)if(null==e.filename)"ngg_pictures"!=this.context.csvInfo.selectedtype&&bn.info("There is no image files in the uploaded zip file");else{this.setState({mediaZipFileNames:e.filename}),document.getElementById("upload-zip-open").click();for(var t=[],n=e.filename.length,r=0;r<n;r++)t.push({filename:e.filename[r],size:e.size[r]});this.state.mediaUploadData.zipFileName=e.zip_file_name,this.state.mediaUploadData.data=t,this.setState({mediaUploadData:this.state.mediaUploadData},(function(){}))}else bn.error(e.message)}else a("oh no")}.bind(this),l.send(s),{abort:function(){l.abort(),i()}}}},{key:"deleteImage",value:(f=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","delete_image"),o.set("image",t),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:(a=e.sent)&&a.data&&200==a.status&&a.data.success&&(this.state.mediaUploadData.data.splice(n,1),this.setState({mediaZipFileNames:this.state.mediaZipFileNames})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return f.apply(this,arguments)})},{key:"checkMandatory",value:function(){if("Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem)var e=["language_code","translated_post_title","translated_taxonomy_title","user_email"];else e="MediaUpdate"===this.context.csvInfo.replaceExistingItem?["post_title","ID","media_id"]:["post_title","language_code","translated_post_title","translated_taxonomy_title","user_login","user_email"];for(var t=0;t<this.context.allPluginFields.length;t++){var n=this.context.allPluginFields[t];for(var o in n){var a=n[o];if(a)for(var r=0;r<a.length;r++)if(e.includes(a[r].name)&&!this.checkKeyExistInMapping(a[r].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var n in this.context.mappingResult)this.context.mappingResult[n]&&Object.keys(this.context.mappingResult[n]).includes(e)&&this.context.mappingResult[n][e]&&(t=!0);return!!t||(bn.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(h=u(m().mark((function e(){var t,n,o,a,r,i,s,l,c=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.context.setTabValue("Maping-section"),this.state.customFields)for(t=0;t<this.state.customFields.length;t++)n=this.state.customFields[t],o=n.name.trim(),n.value&&o&&(this.context.mappingResult.CORECUSTFIELDS||(this.context.mappingResult.CORECUSTFIELDS={}),this.context.mappingResult.CORECUSTFIELDS[n.label]=n.value);if(this.state.mappedValues&&Array.isArray(this.state.mappedValues)&&this.state.mappedValues.length>0&&(a=this.state.mappedValues.reduce((function(e,t,n){var o={};return Object.keys(t).forEach((function(e){o[e]=t[e]})),e.push(o),e}),[]),this.context.mappingResult.ATTRMETA?this.context.mappingResult.ATTRMETA=[].concat(Mu(this.context.mappingResult.ATTRMETA),Mu(a.filter((function(e){return!c.context.mappingResult.ATTRMETA.some((function(t){return t.product_attribute_name1===e.product_attribute_name1}))})))):this.context.mappingResult.ATTRMETA=a),this.context.mappingResult&&0!==Object.keys(this.context.mappingResult).length?(console.log("%ceee","color: #bfffc8"),(r=this.context.mappingResult.ATTRMETA)?(i=function(e){var t={};for(var n in e)"Header Manipulation"!==e[n]&&(t[n]=e[n]);return t},0===Object.keys(r).length?(delete this.context.mappingResult.ATTRMETA,console.log("ATTRMETA was empty and has been removed.")):(this.context.mappingResult.ATTRMETA=i(r),console.log("Updated ATTRMETA:",JSON.stringify(this.context.mappingResult.ATTRMETA,null,2)))):console.log("No ATTRMETA found, skipping...")):console.log("mappingResult is empty or not defined."),this.checkMandatory()){e.next=6;break}return e.abrupt("return");case 6:if(this.context.setMappingType("mapping-section"),s=new FormData,this.props.fromEditTemplate?s.set("action","saveTemplate"):(s.set("action","saveMappedFields"),s.set("HashKey",this.context.csvInfo.hashKey)),s.set("Types",this.context.csvInfo.selectedtype),s.set("MappedFields",JSON.stringify(this.context.mappingResult)),s.set("MappingType","mapping-section"),this.state.filterData&&Object.keys(this.state.filterData).length>0&&(s.set("MappedFilter",JSON.stringify(this.state.filterData)),this.context.setFilterData(this.state.filterData),this.context.setMappedFilter(!0)),this.context.isTemplate&&s.set("UseTemplateState","true"),this.context.isTemplate||this.props.fromEditTemplate?(s.set("TemplateName",this.context.existingTemplateName),s.set("NewTemplate",this.context.csvInfo.templateName)):(s.set("TemplateName",this.context.csvInfo.templateName),s.set("UseTemplateState","false")),s.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),this.context.onclickImport){e.next=31;break}return e.prev=18,e.next=21,Lt({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 21:(l=e.sent)&&l.data&&(200==l.status&&l.data.success?(this.setState({loading:!1}),this.props.fromEditTemplate?(this.props.onEditTemplate(!1),this.setTemplateSection()):(this.context.setShowComponent("import-config"),this.context.setIsOnclick(!1),this.state.onclickload(!1))):(this.setState({loading:!1}),bn.error(l.data.message+" Please Choose Another Name"))),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(18),console.log(e.t0),this.setState({loading:!1});case 29:e.next=35;break;case 31:this.setState({loading:!1}),this.context.setShowComponent("import-config"),this.context.setIsOnclick(!1),this.setState({onclickload:!1});case 35:case"end":return e.stop()}}),e,this,[[18,25]])}))),function(){return h.apply(this,arguments)})},{key:"setTemplateSection",value:function(){this.context.setShowComponent("upload-dashboard"),this.setState({toTemplateSection:!0})}},{key:"handleActionClick",value:function(e,t,n){"Header Manipulation"===this.state.wooCommerce[t].name[n].selectedValue&&this.toggleDialog(e)}},{key:"handleFormulaActionClick",value:function(e,t,n){"Header Manipulation"===this.state.wooCommerce[t].name[n].selectedValue&&this.toggleFormulaDialog(e)}},{key:"getTransformedValue",value:function(e,t){var n,o=this,a=null===(n=this.state.wooCommerce[e])||void 0===n?void 0:n.name[t];if(!a)return"--select--";var r={};if(this.state.wooCommerce.forEach((function(e){e.name.forEach((function(e){r[e.name]=e.name}))})),a.selectedValue)return a.selectedValue;var i={};try{i=this.transformAttributes(this.context.mappingResult.ATTRMETA||r)}catch(e){return console.error("Error transforming attributes:",e),"--select--"}var s=a.name,l="".concat(s,"->static"),c="".concat(s,"->math"),d=Object.keys(i).filter((function(e){return e.startsWith(s)&&e.includes("->cus")})),u=i[s]||"--select--";if(d.length>0||i[l]||i[c]){u="Header Manipulation";var p=Mu(this.state.wooCommerce);p[e].name[t]=Pk(Pk({},a),{},{selectedValue:u,actionCus1TypedValue:i[d.find((function(e){return e.includes("->cus1")}))]||"customer1",actionCus2TypedValue:i[d.find((function(e){return e.includes("->cus2")}))]||"customer2",actionTypedValue:i[l]||i[c]||"",type:i[l]?"Static":i[c]?"Math":d.length?"Custom":null}),this.setState({wooCommerce:p})}else i[s]&&setTimeout((function(){o.handleDropdownChange(e,t,i[s])}),0);return u}},{key:"transformAttributes",value:function(e){console.log("ATTRMETA Input:",e);var t={};return Object.entries(e).forEach((function(e){var n=pu(e,2),o=n[0],a=n[1];t[o]=a})),t}},{key:"handleCustomFunctionActionClick",value:function(e,t,n){"Header Manipulation"===this.state.wooCommerce[t].name[n].selectedValue&&this.toggleCustomFunctionDialog(e)}},{key:"handleValueOnChange",value:function(e,t,n,o){var a=this,r=e.target.value,i=Mu(this.state.wooCommerce),s=i[t].name[n],l="";"Static"!==o&&"math"!==o||(s.actionCus1TypedValue="",s.actionCus2TypedValue=""),s.type=null,s.type1=null,s.actionTypedValue=null,s.actionTypedValue1=null,s.convertedValues=null,s.convertedValues1=null,"Static"===o?(s.type=o,s.actionTypedValue=r,l="".concat(s.name,"->").concat(o.toLowerCase()),s.convertedValues=(0,p.A)({},l,r)):"math"===o?(s.type=o,s.actionTypedValue=r,l="".concat(s.name,"->").concat("math".toLowerCase()),s.convertedValues=(0,p.A)({},l,r)):"cus1"===o?(s.type="cus1",s.actionCus1TypedValue=r,l="".concat(s.name,"->").concat("cus1".toLowerCase()),s.convertedValues=(0,p.A)({},l,r)):"cus2"===o&&(s.type1="cus2",s.actionCus2TypedValue=r,l="".concat(s.name,"->").concat("cus2".toLowerCase()),s.convertedValues1=(0,p.A)({},l,r));var c=this.state.wooCommerce[t].name[n],d=c.selectedValue,u=c.value;s.selectedValue=d,s.value=u,console.log("Updated WooCommerce State:",i),this.setState({wooCommerce:i},(function(){var e=Pk({},a.context.mappingResult.ATTRMETA);"cus1"!==o&&"cus2"!==o||(delete e["".concat(s.name,"->static")],delete e["".concat(s.name,"->math")]),Object.keys(e).forEach((function(t){t.startsWith("".concat(s.name,"->"))&&("Static"===o||"Formula"===o||"cus1"!==o&&"cus2"!==o)&&delete e[t]})),l&&(e["".concat(s.name,"->").concat(o.toLowerCase())]=r),e[s.name]="Header Manipulation",a.context.setMappingResult(Pk(Pk({},a.context.mappingResult),{},{ATTRMETA:e})),console.log("Updated Mapping Result:",e)}))}},{key:"getPreviewData",value:(d=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_post_content"),t.set("MappedFields",JSON.stringify(this.context.mappingResult)),t.set("line_number",this.state.page),t.set("HashKey",this.context.csvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 13:e.prev=13,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(){return d.apply(this,arguments)})},{key:"getPreviewTestData",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_image_url"),t.set("MappedFields",JSON.stringify(this.context.mappingResult)),t.set("line_number",this.state.page),t.set("HashKey",this.context.csvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 13:e.prev=13,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(){return a.apply(this,arguments)})},{key:"getTestResultData",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_test_result"),t.set("MappedFields",JSON.stringify(this.state.listPreviewData)),t.set("image_url",this.state.listPreviewData.featured_image),t.set("line_number",this.state.page),t.set("HashKey",this.context.csvInfo.hashKey),e.prev=6,e.next=9,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:return n=e.sent,console.log("response","color: #7f2200",n),this.setState({PreviewImageTest:n.data}),e.abrupt("return",n.data);case 15:e.prev=15,e.t0=e.catch(6),console.error("Error fetching preview data:",e.t0);case 18:case"end":return e.stop()}}),e,this,[[6,15]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;console.log("listPreviewData","color: #00258c",this.state.listPreviewData);var n,o,a,r,i,s,l,c,d,u,h,m=this.state,f=m.dialogOpen,g=m.dialogType,v=m.page;return this.state.toTemplateSection?t.createElement(ux,{toManagerTemplateSection:!0}):this.state.onclickload?t.createElement(ak,{sx:{color:"grey.500",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"}},t.createElement(Ey,{color:"success",size:80})):t.createElement("div",{className:"container",id:"mapping-accordion"},t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"mapping-switcher"},t.createElement("li",{className:"active",onClick:function(){e.context.setShowComponent("mapping-section")}},this.context.language.ADVANCEDMODE),t.createElement("li",{onClick:function(){e.context.setShowComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),t.createElement("div",{style:{marginLeft:"910px",display:"flex",alignItems:"center",cursor:"pointer"},onMouseEnter:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="red"},onMouseLeave:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="#459cdd"},onClick:function(t){t.currentTarget.querySelector(".text").style.color="#459cdd",e.context.setDrawerValue("import#3"),e.context.setDrawerOpen(!0)}},t.createElement("span",{className:"text",style:{color:"#459cdd",fontSize:"14px",lineHeight:"14px",display:"flex",flexDirection:"row",marginLeft:"-100px",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"mt50"}),this.context.allPluginFields.map((function(n,o){var a=Object.keys(n)[0];if("product_attr_fields"===a)return e.state.wooCommerce&&0!==e.state.wooCommerce.length||e.setState({wooCommerce:n[a]||[]}),null;if(Object.keys(n)[0],!gu(a))return t.createElement("div",null,"This ",a," support not implemented ");var r=!1;return a||(r=!0),n[a]||Array.isArray(n[a])||(r=!0),r?void 0:t.createElement("div",null,t.createElement("div",{className:"card csv-importer-panel "},t.createElement("h1",{className:"card-header main-heading ".concat(0==o?"active":""),id:a,onClick:function(){toggle_func(a)}},e.context.language[gu(a).languageName]," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"".concat(a,"-body"),style:{display:0==o?"block":"none"}},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,e.context.language.WPFIELDS),t.createElement("th",null,e.context.language.CSVHEADER),t.createElement("th",null,e.context.language.Action))),t.createElement("tbody",null,n[a].map((function(n,o){return t.createElement("tr",null,t.createElement("td",null,t.createElement("label",{className:"wpfields"},n.label),t.createElement("label",{className:"sub-text"},"[",e.context.language.Name,":"," ",n.name,"]"," ")),t.createElement("td",null,t.createElement("select",{className:"select form-control w-75",onChange:function(t){var r=t.target.value;e.setState((function(e){return{selectedValues:Pk(Pk({},e.selectedValues),{},(0,p.A)({},o,r))}})),e.onMappingSelect.bind(e)(a,n.name,r,!0,o)}},t.createElement("optgroup",{label:gu(a).name},t.createElement("option",null,"--select--"),e.context.csvFields.map((function(o){return t.createElement("option",{selected:e.isSimilar(a,n.name,o)},o)})),t.createElement("option",{selected:e.isHeaderManipulation(a,n.name,o)},"Header Manipulation")))),t.createElement("td",{className:"administrator"!=e.context.currentUser?"action prevent_action":"action"},t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=e.context.currentUser?"This is only for administrator":"Static"},t.createElement("i",{id:"".concat(a,"-").concat(o,"-csv-icon-plus"),className:"csv-icon-plus-square",onClick:function(){"elementor_library"!==e.context.csvInfo.selectedtype&&e.sumIconOnClick(a,o)},style:{cursor:"elementor_library"===e.context.csvInfo.selectedtype?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(a,"-").concat(o,"-static-manipulative-screen"),className:"manipulation-screen"},t.createElement("div",{className:"close",onClick:function(){e.sumIconOnClick(a,o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(t){e.onMappingSelect.bind(e)(a,n.name+e.state.staticString,t.target.value)},value:e.getFieldValueFromResult(a,n.name+e.state.staticString),className:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HINT," :")," ","Specify the CSV header to be added in between the curley braces(",").",t.createElement("div",{className:"d-block"},t.createElement("b",null,e.context.language.Example," :"," ")," ","{post_title}"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=e.context.currentUser?"This is only for administrator":"Formula"},t.createElement("i",{id:"".concat(a,"-").concat(o,"-csv-icon-sum"),className:"csv-icon-sum",onClick:function(t){"elementor_library"!==e.context.csvInfo.selectedtype&&e.formulaIconOnClick(a,o)},style:{cursor:"elementor_library"===e.context.csvInfo.selectedtype?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(a,"-").concat(o,"-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.formulaIconOnClick(a,o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(t){e.onMappingSelect.bind(e)(a,n.name+e.state.mathString,t.target.value)},value:e.getFieldValueFromResult(a,n.name+e.state.mathString),class:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HIN," :")," ","Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",t.createElement("div",{class:"d-block"},t.createElement("b",null,e.context.language.Example," :")," ","MATH ({product_quantity}/{discount_price})"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=e.context.currentUser?"This is only for administrator":"CustomFunction"},t.createElement("i",{id:"".concat(a,"-").concat(o,"-csv-icon-edit1"),className:"csv-icon-edit1",onClick:function(t){"elementor_library"!==e.context.csvInfo.selectedtype&&e.edit1IconOnClick(a,o)},style:{cursor:"elementor_library"===e.context.csvInfo.selectedtype?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(a,"-").concat(o,"-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.edit1IconOnClick(a,o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"text",onChange:function(t){e.onMappingSelect.bind(e)(a,n.name+e.state.customString1,t.target.value)},value:e.getFieldValueFromResult(a,n.name+e.state.customString1),class:"form-control"}),t.createElement("br",null),t.createElement("textarea",{onChange:function(t){e.onMappingSelect.bind(e)(a,n.name+e.state.customString2,t.target.value)},value:e.getFieldValueFromResult(a,n.name+e.state.customString2),class:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HIN," :")," ","Specify your custom function in textarea",t.createElement("div",{class:"d-block"},t.createElement("b",null,e.context.language.Example," :")," ","str_replace('-', '.', $post_title)"," ")))),("post_content"===n.name||"post_excerpt"===n.name||"featured_image"===n.name)&&t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:!1===e.context.apiKeyValue?"To enable, save your ChatGPT\nAPIkey in Settings page":"administrator"!==e.context.currentUser?"This is only for administrator":"Content Generator",style:{cursor:!1===e.context.apiKeyValue?"not-allowed":"pointer",filter:!1===e.context.apiKeyValue?"blur(0.6px)":"none"}},t.createElement("span",{class:"icon-Ai_icons-05",id:"".concat(a,"-").concat(o,"-icon-Ai_icons-05"),className:"icon-Ai_icons-05",onClick:function(t){"elementor_library"!==e.context.csvInfo.selectedtype&&(!1===e.context.apiKeyValue?e.enableopenAIIconClick():e.openAIIconOnClick(a,o))},style:{cursor:"elementor_library"===e.context.csvInfo.selectedtype||0==e.context.apiKeyValue?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(a,"-").concat(o,"-openAI-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.openAIIconOnClick(a,o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("div",{className:"openai_head"},t.createElement("b",null," Select Your Prompt Column:")),t.createElement("select",{onChange:function(t){e.onMappingSelect.bind(e)(a,n.name+e.state.openAI,t.target.value)},value:e.getFieldValueFromResult(a,n.name+e.state.openAI),class:"form-control"},t.createElement("option",null,"--select--"),e.context.csvFields.map((function(e){return t.createElement("option",{key:e,value:e},e)}))),t.createElement("br",null),"featured_image"!==n.name&&t.createElement(t.Fragment,null,t.createElement("div",{className:"openai_head"},t.createElement("b",null," Number of Words:")),t.createElement("input",{type:"number",onChange:function(t){e.onMappingSelect.bind(e)(a,n.name+e.state.number,t.target.value)},value:e.getFieldValueFromResult(a,n.name+e.state.number),class:"form-control"}))))),"Content"===n.label&&t.createElement("a",{className:"action-icon",style:{height:"41px",fontSize:"25px",marginRight:"5px",cursor:"pointer"},onClick:function(){return e.handlePreviewModelOpen(o)},title:"Preview"},t.createElement(pk,{fontSize:"inherit"})),"Featured Image"===n.label&&t.createElement("a",{className:"action-icon",style:{height:"41px",fontSize:"25px",marginRight:"5px",cursor:"pointer"},onClick:function(){return e.handlePreviewTestModelOpen(o)},title:"Preview&Test"},t.createElement(uk,{fontSize:"inherit"}))))})))))))})),"WooCommerce Product"===this.context.csvInfo.selectedtype?t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",id:"main-accordion",onClick:function(){var e=document.getElementById("main-accordion-body");e.style.display="block"===e.style.display?"none":"block"}},"Product Attributes",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"main-accordion-body",style:{display:"none"}},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.WPFIELDS),t.createElement("th",null,this.context.language.CSVHEADER),t.createElement("th",null,this.context.language.Action)))),this.state.wooCommerce.map((function(n,o){return t.createElement("div",{className:"card csv-importer-panel",key:o},t.createElement("div",{className:"card-header"},t.createElement("strong",null,"Productive[",o+1,"]"),o===e.state.wooCommerce.length-1&&e.state.wooCommerce.length>1&&t.createElement("span",{className:"float-right",onClick:function(){return e.deleteCard(o)},style:{cursor:"pointer"}},t.createElement("i",{className:"csv-icon-trash-2"}))),t.createElement("table",{className:"table table-mapping"},t.createElement("tbody",null,n.name.map((function(n,a){var r,i,s,l,c,d;return n.name&&t.createElement("tr",{key:"".concat(o,"-").concat(a)},t.createElement("td",null,t.createElement("strong",null,n.label),t.createElement("br",null),t.createElement("span",{className:"sub-text"},"[",n.name,"]")),t.createElement("td",null,t.createElement("select",{className:"select form-control w-75",onChange:function(t){return e.handleDropdownChange(o,a,t.target.value)},value:e.getTransformedValue(o,a)},t.createElement("option",null,"--select--"),e.context.csvFields.map((function(e,n){return t.createElement("option",{key:n,value:e},e)})),t.createElement("option",{value:"Header Manipulation"},"Header Manipulation"))),t.createElement("td",{className:"administrator"!==e.context.currentUser?"action prevent_action":"action"},t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!==e.context.currentUser?"This is only for administrator":"Static"},t.createElement("i",{className:"csv-icon-plus-square",onClick:function(){return e.handleHeaderManipulation(n.name,o,a,"Static")}}),e.state.isDialogOpen&&e.state.currentDialogIndex==="".concat(o,"-").concat(a)&&t.createElement("div",{className:"dialog"},t.createElement("div",{className:"dialog-inner"},t.createElement("div",{className:"form-group"},t.createElement("span",{className:"close-dialog",onClick:function(){return e.setState({isDialogOpen:!1,currentDialogIndex:null})}},"×"),t.createElement("textarea",{onChange:function(t){return e.handleValueOnChange(t,o,a,"Static")},value:"Static"===(null===(r=e.state.wooCommerce[o])||void 0===r||null===(r=r.name[a])||void 0===r?void 0:r.type)?null===(i=e.state.wooCommerce[o])||void 0===i||null===(i=i.name[a])||void 0===i?void 0:i.actionTypedValue:"",className:"form-control",placeholder:"Enter your custom function"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HINT," :")," Specify the CSV header to be added in between the curly braces (",").",t.createElement("div",{className:"d-block"},t.createElement("b",null,e.context.language.Example," :")," ","{post_title}"))))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!==e.context.currentUser?"This is only for administrator":"Formula"},t.createElement("i",{className:"csv-icon-sum",onClick:function(){return e.handleHeaderManipulation(n.name,o,a,"Formula")}}),e.state.isDialogFormulaOpen&&e.state.currentDialogIndex==="".concat(o,"-").concat(a)&&t.createElement("div",{className:"dialog"},t.createElement("div",{className:"dialog-inner"},t.createElement("span",{className:"close-dialog",onClick:function(){return e.setState({isDialogFormulaOpen:!1,currentDialogIndex:null})}},"×"),t.createElement("textarea",{onChange:function(t){return e.handleValueOnChange(t,o,a,"math")},value:"math"===(null===(s=e.state.wooCommerce[o])||void 0===s||null===(s=s.name[a])||void 0===s?void 0:s.type)?null===(l=e.state.wooCommerce[o])||void 0===l||null===(l=l.name[a])||void 0===l?void 0:l.actionTypedValue:"",className:"form-control",placeholder:"Enter your custom function"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HINT," :")," Specify operator (+,-,*,/) and CSV header as operand in MATH() within",t.createElement("div",{className:"d-block"},t.createElement("b",null,e.context.language.Example," :")," ","{post_title}")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!==e.context.currentUser?"This is only for administrator":"CustomFunction"},t.createElement("i",{className:"csv-icon-edit1",onClick:function(){return e.handleHeaderManipulation(n.name,o,a,"Edit")}})),e.state.isDialogCustomOpen&&e.state.currentDialogIndex==="".concat(o,"-").concat(a)&&t.createElement("div",{className:"dialog"},t.createElement("div",{className:"dialog-inner",style:{position:"relative"}},t.createElement("span",{className:"close-dialog",onClick:function(){return e.setState({isDialogCustomOpen:!1,currentDialogIndex:null})},style:{position:"absolute",top:"2px",right:"10px",fontSize:"20px",cursor:"pointer",zIndex:1e3}},"×"),t.createElement("div",{className:"form-group",style:{marginBottom:"15px"}},t.createElement("input",{type:"text",className:"form-control",onChange:function(t){return e.handleValueOnChange(t,o,a,"cus1")},value:(null===(c=e.state.wooCommerce[o])||void 0===c||null===(c=c.name[a])||void 0===c?void 0:c.actionCus1TypedValue)||"",placeholder:"Enter your custom function"})),t.createElement("div",{className:"form-group",style:{marginBottom:"15px"}},t.createElement("textarea",{onChange:function(t){return e.handleValueOnChange(t,o,a,"cus2")},value:(null===(d=e.state.wooCommerce[o])||void 0===d||null===(d=d.name[a])||void 0===d?void 0:d.actionCus2TypedValue)||"",className:"form-control",placeholder:"Enter your custom function"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HINT,":")," Specify your custom function in the textarea.",t.createElement("div",{className:"d-block"},t.createElement("b",null,e.context.language.Example,":")," ","str_replace('-', '.', $post_title)"))))))})))))})),t.createElement("style",{jsx:!0},"\n          .dialog {\n            position: absolute;\n            left: -150px; \n            top: 0; \n            background: white;\n            border: 1px solid #ccc;\n            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n            z-index: 1000;\n            width: 300px;\n            padding: 10px;\n          }\n\n          .dialog-inner {\n            position: relative;\n          }\n\n          .close-dialog {\n            position: absolute;\n            top: 5px;\n            right: 5px;\n            cursor: pointer;\n          }\n\n          .csv-hint {\n            margin-top: 10px;\n            color: #00a699;\n           \n          }\n        "),t.createElement("style",{jsx:!0},"\n  .dialog {\n    position: absolute;\n    left: -150px; \n    top: 0; \n    background: white;\n    border: 1px solid #ccc;\n    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n    z-index: 1000;\n    width: 300px;\n    padding: 10px;\n  }\n\n  .dialog-inner {\n    position: relative;\n  }\n\n  .close-dialog {\n    position: absolute;\n    top: 5px;\n    right: 5px;\n    cursor: pointer;\n  }\n\n  .csv-hint {\n    margin-top: 10px;\n    color:#00a699;\n    background-color: #f0f0f0; \n    padding: 5px; \n  }\n"),t.createElement("div",{className:"float-right mb10",style:{marginTop:"15px"}},t.createElement("a",{className:"smack-btn smack-btn-secondary",onClick:this.addMappedRow},"Add")))):"","WooCommerce Coupons"!==this.context.csvInfo.selectedtype&&"Media"!==this.context.csvInfo.selectedtype&&"WooCommerce Product Variations"!==this.context.csvInfo.selectedtype&&"WooCommerce Refunds"!==this.context.csvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.csvInfo.selectedtype&&"Customer Reviews"!==this.context.csvInfo.selectedtype&&"Images"!==this.context.csvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.csvInfo.selectedtype&&"Comments"!==this.context.csvInfo.selectedtype&&"nav_menu_item"!==this.context.csvInfo.selectedtype&&"widgets"!==this.context.csvInfo.selectedtype&&"elementor_library"!==this.context.csvInfo.selectedtype?t.createElement("div",null,t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",id:"custom-field-creator",onClick:function(){return toggle_func("custom-field-creator")}},"Create WP Custom Fields"," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"custom-field-creator-body"},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.WPFIELDS),t.createElement("th",null,this.context.language.CSVHEADER),t.createElement("th",null,this.context.language.Action))),t.createElement("tbody",null,this.state.customFields.map((function(n,o){return t.createElement("tr",null,t.createElement("td",null,t.createElement("label",{class:"wpfields"},t.createElement("input",{type:"text",value:n.label,class:"form-control",onChange:function(t){e.onCustomFieldLabelChange(t.target.value,o)}})),t.createElement("label",{class:"sub-text"},"[Name: ".concat(n.label,"]")," ")),t.createElement("td",{style:{verticalAlign:"top"}},t.createElement("select",{className:"select form-control w-75",onChange:function(t){e.onCustomFieldValueSelect(t.target.value,o)}},t.createElement("optgroup",{label:"CSV Fields"},t.createElement("option",null,"--select--"),e.context.csvFields.map((function(e){return t.createElement("option",null,e)})),t.createElement("option",null,"Header Manipulation")))),t.createElement("td",{className:"administrator"!=e.context.currentUser?"action prevent_action":"action"},t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=e.context.currentUser?"This is only for administrator":"Static"},t.createElement("i",{id:"custom-field-creator-".concat(o,"-csv-icon-plus"),className:"csv-icon-plus-square",onClick:function(){e.sumIconOnClick("custom-field-creator",o)}}),t.createElement("div",{id:"custom-field-creator-".concat(o,"-static-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.sumIconOnClick("custom-field-creator",o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(t){e.onCustomFieldValueChange(n.label+e.state.staticString,t.target.value,o)},value:e.getFieldValueFromCustomFields(o,n.label+e.state.staticString),className:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HINT," :")," Specify the CSV header to be added in between the curley braces(",").",t.createElement("div",{className:"d-block"},t.createElement("b",null,e.context.language.Example,":")," ","{post_title}"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=e.context.currentUser?"This is only for administrator":"Formula"},t.createElement("i",{id:"custom-field-creator-".concat(o,"-csv-icon-sum"),className:"csv-icon-sum",onClick:function(){e.formulaIconOnClick("custom-field-creator",o)}}),t.createElement("div",{id:"custom-field-creator-".concat(o,"-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.formulaIconOnClick("custom-field-creator",o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(t){e.onCustomFieldValueChange(n.label+e.state.mathString,t.target.value,o)},value:e.getFieldValueFromCustomFields(o,n.label+e.state.mathString),class:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HIN," :")," Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",t.createElement("div",{class:"d-block"},t.createElement("b",null,e.context.language.Example," :")," ","MATH ({product_quantity}/{discount_price})"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=e.context.currentUser?"This is only for administrator":"CustomFunction"},t.createElement("i",{id:"custom-field-creator-".concat(o,"-csv-icon-edit1"),className:"csv-icon-edit1",onClick:function(){e.edit1IconOnClick("custom-field-creator",o)}}),t.createElement("div",{id:"custom-field-creator-".concat(o,"-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.edit1IconOnClick("custom-field-creator",o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"text",onChange:function(t){e.onCustomFieldValueChange(n.label+e.state.customString1,t.target.value,o)},value:e.getFieldValueFromCustomFields(o,n.label+e.state.customString1),className:"form-control"}),t.createElement("br",null),t.createElement("textarea",{onChange:function(t){e.onCustomFieldValueChange(n.label+e.state.customString2,t.target.value,o)},value:e.getFieldValueFromCustomFields(o,n.label+e.state.customString2),className:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,e.context.language.HINT," :")," Specify your custom function in textarea.",t.createElement("div",{className:"d-block"},t.createElement("b",null,e.context.language.Example,":")," ","str_replace('-', '.', $post_title)"," ")))),("post_content"===n.name||"post_excerpt"===n.name||"featured_image"===n.name)&&t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:!1===e.context.apiKeyValue?"To enable, save your ChatGPT\nAPIkey in Settings page":"administrator"!==e.context.currentUser?"This is only for administrator":"Content Generator",style:{cursor:!1===e.context.apiKeyValue?"not-allowed":"pointer",filter:!1===e.context.apiKeyValue?"blur(0.6px)":"none"}},t.createElement("span",{class:"icon-Ai_icons-05",id:"".concat(pluginId,"-").concat(o,"-icon-Ai_icons-05"),className:"icon-Ai_icons-05",onClick:function(t){"elementor_library"===e.context.csvInfo.selectedtype&&!1!==e.context.apiKeyValue||e.openAIIconOnClick(pluginId,o)},style:{cursor:"elementor_library"===e.context.csvInfo.selectedtype||!1===e.context.apiKeyValue?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(pluginId,"-").concat(o,"-openAI-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){e.openAIIconOnClick(pluginId,o)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("div",{className:"openai_head"},t.createElement("b",null," Select Your Prompt Column:")),t.createElement("select",{onChange:function(t){e.onMappingSelect.bind(e)(pluginId,n.name+e.state.openAI,t.target.value)},value:e.getFieldValueFromResult(pluginId,n.name+e.state.openAI),class:"form-control"},t.createElement("option",null,"--select--"),e.context.csvFields.map((function(e){return t.createElement("option",{key:e,value:e},e)}))),t.createElement("br",null),"featured_image"!==n.name&&t.createElement(t.Fragment,null,t.createElement("div",{className:"openai_head"},t.createElement("b",null," Number of Words:")),t.createElement("input",{type:"number",onChange:function(t){e.onMappingSelect.bind(e)(pluginId,n.name+e.state.number,t.target.value)},value:e.getFieldValueFromResult(pluginId,n.name+e.state.number),class:"form-control"}))))),t.createElement("a",{className:"action-icon",style:{height:"41px",fontSize:"25px",marginRight:"10px",cursor:"pointer"},onClick:function(){return e.handleSpecficModelOpen(o)},title:"Serialized"},t.createElement(dk,{fontSize:"inherit"})),t.createElement("a",{class:"action-icon","data-toggle":"tooltip",onClick:function(t){e.deleteCustomField(o)},title:"Delete"},t.createElement("i",{class:"csv-icon-trash-2"}))))})))),this.state.showModal&&t.createElement("div",{className:"modal-overlay",style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3}},t.createElement("div",{className:"modal-box",style:{background:"white",borderRadius:"8px",padding:"20px",width:"600px",maxHeight:"80vh",overflowY:"auto",boxShadow:"0 5px 15px rgba(0,0,0,0.3)"}},t.createElement("h1",{className:"card-header main-heading"},"Serialized"),t.createElement("div",{className:"field-scroll-container"},this.state.keyValueFields.map((function(n,o){return t.createElement("div",{key:o,className:"field-row"},t.createElement("div",{className:"field-column"},t.createElement("label",{className:"sub-text"},"Key",t.createElement("input",{type:"text",value:n.key,className:"form-control",onChange:function(t){return e.handleKeyChange(o,t.target.value)}}))),t.createElement("div",{className:"field-column"},t.createElement("label",{className:"sub-text"},"Value",t.createElement("input",{type:"text",value:n.value,className:"form-control",onChange:function(t){return e.handleValueChange(o,t.target.value)}}))),t.createElement("a",{className:"action-icon",onClick:function(){return e.removeField(o)},title:"Delete"},t.createElement("i",{className:"csv-icon-trash-2"})))}))),t.createElement("div",{className:"add-another-container"},t.createElement("a",{onClick:this.addField,className:"add-another-btn"},"+ Add Another")),t.createElement("div",{className:"modal-actions"},t.createElement("div",{className:"left-actions"},t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:this.handleModalClose},"Cancel")),t.createElement("div",{className:"right-actions"},t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.handleSave},"Save"))))),t.createElement("div",{class:"float-right mb20"},t.createElement("a",{class:"smack-btn smack-btn-secondary",onClick:function(t){e.addCustomField()}},"Add Custom Field"))))):void 0,t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",onClick:this.handlecustomFilterOpen},"Manage Filtering Options",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",style:{display:this.state.isFilter?"block":"none"}},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"Elements"),t.createElement("th",null,"Rule"),t.createElement("th",null,"Value"))),t.createElement("td",{style:{verticalAlign:"top"}},t.createElement("select",{className:"select form-control w-75",name:"element",value:this.state.formData.element,onChange:this.handleChange},t.createElement("optgroup",{label:"CSV Fields"},t.createElement("option",null,"--select--"),this.context.csvFields.map((function(e){return t.createElement("option",null,e)}))))),t.createElement("td",{style:{verticalAlign:"top"}},t.createElement("select",{className:"select form-control w-75",name:"rule",value:this.state.formData.rule,onChange:this.handleChange},t.createElement("optgroup",{label:"CSV Fields"},t.createElement("option",{value:""},"-- Select --"),t.createElement("option",{value:"equals"},"Equals"),t.createElement("option",{value:"not_equals"},"Not Equals"),t.createElement("option",{value:"greater_than"},"Greater Than"),t.createElement("option",{value:"equals_or_greater_than"},"Equals or Greater Than"),t.createElement("option",{value:"less_than"},"Less Than"),t.createElement("option",{value:"equals_or_less_than"},"Equals or Less Than"),t.createElement("option",{value:"contains"},"Contains"),t.createElement("option",{value:"not_contains"},"Not Contains"),t.createElement("option",{value:"is_empty"},"Is Empty"),t.createElement("option",{value:"is_not_empty"},"Is Not Empty")))),t.createElement("td",null,t.createElement("input",{style:{width:"60%"},type:"text",className:"form-control",name:"value",value:"is_empty"===this.state.formData.rule||"is_not_empty"===this.state.formData.rule?"":this.state.formData.value,onChange:function(t){var n=t.target.value,o=e.state.formData.rule;["greater_than","equals_or_greater_than","less_than","equals_or_less_than"].includes(o)&&((n=n.replace(/[^0-9.]/g,"")).match(/\./g)||[]).length>1&&(n=n.slice(0,-1)),e.setState({formData:Pk(Pk({},e.state.formData),{},{value:n})})},disabled:"is_empty"===this.state.formData.rule||"is_not_empty"===this.state.formData.rule,placeholder:"Enter value"})),t.createElement("td",null,t.createElement("a",{onClick:this.handleAddRule,class:"smack-btn smack-btn-secondary"},"Add Rule"))),this.state.filterData.length>0&&t.createElement("div",null,t.createElement("h5",null,"Added Rules:"),t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"Elements"),t.createElement("th",null,"Rules"),t.createElement("th",null,"Values"),t.createElement("th",null,"Condition"),t.createElement("th",null,"Actions"))),t.createElement("tbody",null,this.state.filterData.map((function(n,o){return t.createElement("tr",{key:o},t.createElement("td",null,n.element),t.createElement("td",null,n.rule),t.createElement("td",null,"  ",""===n.value?t.createElement("span",null,'""'):n.value),t.createElement("td",null,e.state.filterData.length>1&&o<e.state.filterData.length-1&&t.createElement("div",{style:{display:"flex",gap:"10px",alignItems:"center"}},t.createElement("label",null,t.createElement("input",{type:"radio",name:"condition-".concat(o),value:"AND",checked:o<e.state.filterData.length-1&&"AND"===n.condition,onChange:function(){return e.handleConditionChange(o,"AND")}}),"AND"),t.createElement("label",null,t.createElement("input",{type:"radio",name:"condition-".concat(o),value:"OR",checked:o<e.state.filterData.length-1&&"OR"===n.condition,onChange:function(){return e.handleConditionChange(o,"OR")}}),"OR"))),t.createElement("td",null,t.createElement("a",{className:"action-icon","data-toggle":"tooltip",onClick:function(){return e.handleDeleteRule(o)},title:"Delete",style:{cursor:"pointer"}},t.createElement("i",{className:"csv-icon-trash-2"}))))}))))))),t.createElement("div",{className:"col-md-12 text-center mt30"},this.context.isTemplate||this.props.fromEditTemplate?t.createElement("div",null,t.createElement("label",null,this.context.language.UpdateThisMappingAs),t.createElement("input",{type:"text",className:"form-control ml10 d-inline w-25",onChange:function(t){e.context.setCSVInfo(Pk(Pk({},e.context.csvInfo),{},{templateName:t.target.value}))},value:this.context.csvInfo.templateName})):t.createElement("div",null,t.createElement("label",null,"Save this mapping as"),t.createElement("input",{type:"text",onChange:function(t){e.context.setCSVInfo(Pk(Pk({},e.context.csvInfo),{},{templateName:t.target.value}))},className:"form-control ml10 d-inline w-25",value:this.context.csvInfo.templateName}))),t.createElement("div",{class:"col-md-12 mt40 p0"},t.createElement("div",{class:"float-left"},t.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.props.onEditTemplate&&e.setTemplateSection(),e.context.setShowComponent("upload-dashboard")}},"Back")),this.props.fromEditTemplate?t.createElement("div",{className:"float-right mb20"},t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},"Save")):t.createElement("div",{className:"float-right mb20"},t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.context.language.Continue))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"upload-zip-open","data-toggle":"modal","data-target":"#upload_media"}),t.createElement("div",{id:"upload_media",className:"modal fade payment_modal active",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header border  border-0"},t.createElement("h1",{className:"main-heading text-center py-1 m-auto"},this.state.mediaUploadData.zipFileName),t.createElement("button",{type:"button",className:"close ml0","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.Name),t.createElement("th",null,this.context.language.Size),t.createElement("th",{class:"text-center"},this.context.language.Action))),t.createElement("tbody",null,this.state.mediaUploadData.data.map((function(n,o){return t.createElement("tr",null,t.createElement("td",null,n.filename),t.createElement("td",null,n.size),t.createElement("td",null,t.createElement("a",{className:"action-icon",onClick:function(t){e.deleteImage(n.filename,o)},"data-toggle":"tooltip",title:"Delete"},t.createElement("i",{className:"csv-icon-trash-2"}))))})))))))),t.createElement(N_,{open:f,onClose:this.handleClose,PaperProps:{sx:{width:500}}},t.createElement(J_,null,t.createElement(gk,{display:"flex",justifyContent:"space-between",alignItems:"center"},t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"preview"===g?"Preview":"Preview & Test"),t.createElement(gk,{display:"flex",alignItems:"center",gap:1},t.createElement(kk,{onClick:function(){return e.handlePageChange(-1)},size:"small"},t.createElement(Ck,{fontSize:"small"})),t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"page"),t.createElement(gk,{sx:{border:"1px solid #ccc",borderRadius:"4px",padding:"1px 8px",minWidth:"30px",textAlign:"center",backgroundColor:"#f5f5f5",fontWeight:"normal",fontSize:"13px"}},v),t.createElement(W_,{sx:{fontSize:"12px"}},"of  ",this.state.limit),t.createElement(kk,{onClick:function(){return e.handlePageChange(1)},size:"small"},t.createElement(Ak,{fontSize:"small"}))))),t.createElement(eb,{dividers:!0},t.createElement(Tk,null),t.createElement(gk,{mt:2},"preview"===g&&t.createElement(gk,null,(u=null!==(c=null===(d=e.state.listPreviewData)||void 0===d?void 0:d.post_content)&&void 0!==c?c:"",/<[a-z][\s\S]*>/i.test(u)||u.includes("[caption")?t.createElement("div",{dangerouslySetInnerHTML:{__html:u}}):/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(u)?t.createElement(W_,null,u):t.createElement(W_,{fontWeight:"bold"},u))),"preview&test"===g&&(a=null!==(n=null===(o=e.state.listPreviewData)||void 0===o?void 0:o.featured_image)&&void 0!==n?n:"",i=!(r=(h=a.match(/<img[^>]*>/i))?h[0]:null)&&/^https?:\/\/.+\.(?:jpe?g|png|gif|webp|bmp|svg)$/i.test(a)?a:null,s=/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(a)?a:"",l=r||i||s?"":function(e){return e.replace(/<[^>]+>/g,"")}(a),t.createElement(gk,{display:"flex",flexDirection:"column",gap:1},e.state.PreviewImageTest&&t.createElement(W_,{variant:"body2",sx:{mt:1},color:e.state.PreviewImageTest.success?"success.main":"error.main"},e.state.PreviewImageTest.message),t.createElement(W_,{variant:"subtitle1",mt:0,fontWeight:"bold"},"Result preview"),r&&t.createElement("div",{dangerouslySetInnerHTML:{__html:r},style:{maxWidth:"100%"}}),i&&t.createElement("img",{src:i,alt:"featured",style:{maxWidth:"100%",border:"1px solid #ccc"},onError:function(e){return e.currentTarget.style.display="none"}}),!r&&!i&&l&&t.createElement(W_,{variant:"body2",sx:{whiteSpace:"pre-wrap"}},l),!r&&!i&&!l&&t.createElement(W_,{color:"error"},"Unable to load the image. Please make sure the URL points to a valid image file"))))),t.createElement(jb,null,t.createElement(Ry,{onClick:this.handleClose},"Close"))))}}]);var o,a,d,h,f}(t.Component);(0,p.A)(Nk,"contextType",f);var Ik=a(4693),Ok=a(3333),Rk=a(2819),Fk=a.n(Rk);const jk=ck((0,cm.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");function Yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yk(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bk=function(){return!!e})()}var Hk,Vk=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,Bk()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"addMappedRow",(function(){var e=Mu(t.context.allPluginFields);e.forEach((function(t,n){var o=Object.keys(t)[0];if("product_attr_fields"===o){var a=e[n][o];if(a.length>0){var r=JSON.parse(JSON.stringify(a[0])),i=a.length+1;r.label=i,r.name=r.name.map((function(e){return zk(zk({},e),{},{label:e.label.replace(/\d+$/,i),name:e.name.replace(/\d+$/,i)})})),a.push(r)}}})),t.forceUpdate()})),(0,p.A)(t,"deleteCard",(function(e){var n=Mu(t.context.allPluginFields);n.forEach((function(t,o){var a=Object.keys(t)[0];if("product_attr_fields"===a){var r=n[o][a];r.splice(e,1),r.forEach((function(e,t){e.label=t+1,e.name=e.name.map((function(e){return zk(zk({},e),{},{label:e.label.replace(/\d+$/,t+1),name:e.name.replace(/\d+$/,t+1)})}))}))}})),t.forceUpdate()})),(0,p.A)(t,"handleChange",(function(e){var n=e.target,o=n.name,a=n.value;t.setState((function(e){return{formData:zk(zk({},e.formData),{},(0,p.A)((0,p.A)({},o,a),"value","rule"===o?"":e.formData.value))}}))})),(0,p.A)(t,"handleConditionChange",(function(e,n){t.setState((function(t){var o=Mu(t.filterData);return e<o.length-1&&(o[e].condition=n),o.length>0&&(o[o.length-1].condition=""),{filterData:o}}),(function(){return console.log(t.state.filterData)}))})),(0,p.A)(t,"handleAddRule",(function(){var e=t.context.setMappedFilter;t.setState((function(t){var n=t.formData,o=n.element,a=n.rule,r=n.value,i=["greater_than","equals_or_greater_than","less_than","equals_or_less_than"].includes(a)&&!/^\d+$/.test(r);if(!o||!a||""===r&&"is_empty"!==a&&"is_not_empty"!==a||i)return null;var s=Mu(t.filterData);s.length>0&&(s[s.length-1].condition="AND"),"is_empty"!==a&&"is_not_empty"!==a||(r="");var l={element:o,rule:a,value:r,condition:""};return s.push(l),s.length>0&&e(!0),{filterData:s,formData:{element:"",rule:"",value:""}}}))})),(0,p.A)(t,"handleDeleteRule",(function(e){var n=t.context.setMappedFilter;t.setState((function(t){var o=Mu(t.filterData);return o.splice(e,1),o.length>0&&(o[o.length-1].condition=""),n(o.length>0),{filterData:o}}),(function(){return console.log("filterdata",t.state.filterData)}))})),(0,p.A)(t,"toggleAccordion",(function(){t.setState((function(e){return{isFiltering:!e.isOpen}}))})),(0,p.A)(t,"handlecustomFilterOpen",(function(){t.setState((function(e){return{isFilter:!e.isFilter}}))})),(0,p.A)(t,"handlePreviewModelOpen",(function(e){t.getPreviewData(),t.setState({dialogOpen:!0,dialogType:"preview"})})),(0,p.A)(t,"handlePreviewTestModelOpen",(function(e){t.getPreviewTestData(),t.setState({dialogOpen:!0,dialogType:"preview&test"})})),(0,p.A)(t,"handleClose",(function(){t.setState({dialogOpen:!1,dialogType:"",listPreviewData:""})})),(0,p.A)(t,"handlePageChange",(function(e){t.setState({listPreviewData:""}),t.setState((function(t){var n=t.page+e;return{page:Math.max(1,Math.min(n,t.limit))}}),(function(){"preview&test"===t.state.dialogType?t.getPreviewTestData():"preview"===t.state.dialogType&&t.getPreviewData()}))})),t.state={loading:!1,initialRowSize:1,initialRowSize1:1,totalCsvRows:"",totalCsvRows1:"",csvInformation:[],currentMode:"draganddrop",customFields:[],xmlData:[],xmlData1:[],scroll:"",rules:[],isFilter:!1,filterData:[],formData:{element:"",rule:"",value:""},dialogOpen:!1,dialogType:"",page:1,listPreviewData:"",PreviewImageTest:"",limit:5},t.csvInformation=[],t.handleScroll=t.handleScroll.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context&&this.context.FilterData&&this.setState({filterData:this.context.FilterData}),this.getCsvFields(this.state.initialRowSize),this.getCsvFields(this.state.initialRowSize1),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll)}},{key:"checkRTLSupport",value:function(){if(document.querySelector("html").getAttribute("dir")){var e=document.getElementById("mapping-sidebar");null!=e&&e.classList.add("rltsupport")}}},{key:"handleScroll",value:function(e){var t=document.getElementById("mapping-sidebar");if(1==this.state.scroll&&null!=t){var n=document.getElementById("mapping-accordion").offsetHeight-300;window.scrollY>200?(t.classList.add("mapping-sidebar-fixed"),window.scrollY>n?t.classList.add("fixed-bottom-position"):t.classList.remove("fixed-bottom-position")):t.classList.remove("mapping-sidebar-fixed")}}},{key:"onZipProcess",value:function(e,t,n,o,a,r,i){var s=new FormData;s.append("zipFile",t,t.name),s.append("action","zip_upload"),s.append("securekey",window.smack_nonce_object_pro.nonce);var l=new XMLHttpRequest;return l.open("POST",ajaxurl),l.upload.onprogress=function(e){r(e.lengthComputable,e.loaded,e.total)},l.onload=function(){if(l.status>=200&&l.status<300){o(JSON.parse(l.responseText));var e=JSON.parse(l.responseText);if(e.success)if(null==e.filename)bn.info("There is no image files in the uploaded zip file");else{this.setState({mediaZipFileNames:e.filename}),document.getElementById("upload-zip-open").click();for(var t=[],n=e.filename.length,r=0;r<n;r++)t.push({filename:e.filename[r],size:e.size[r]});this.state.mediaUploadData.zipFileName=e.zip_file_name,this.state.mediaUploadData.data=t,this.setState({mediaUploadData:this.state.mediaUploadData},(function(){}))}else bn.error(e.message)}else a("oh no")}.bind(this),l.send(s),{abort:function(){l.abort(),i()}}}},{key:"getCsvFields",value:(f=u(m().mark((function e(t){var n,o,a,r,i,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new FormData,this.context.isXML?n.set("action","get_parse_xml"):n.set("action","displayCSV"),n.set("row",t),n.set("HashKey",this.context.csvInfo.hashKey),n.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=6,e.next=9,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:if((o=e.sent)&&o.data&&200==o.status&&o.data.success)if(this.context.setRecordcount(o.data.total_rows),this.context.isXML)for(a=o.data.file,this.setState({scroll:a.length}),r=0;r<a.length;r++)0==r&&(this.setState({xmlData:a[r].xml_array}),this.setState({totalCsvRows:a[r].count,loading:!1})),1==r&&(this.setState({xmlData1:a[r].xml_array}),this.setState({totalCsvRows1:a[r].count,loading:!1}));else{for(i=[],s=[],this.csvInformation=[],r=0;r<o.data.Headers.length;r++)i.push(o.data.Headers[r]),s.push(o.data.Values[r]);for(r=0;r<o.data.Headers.length;r++)this.csvInformation.push({csvHeaders:o.data.Headers[r],csvValues:o.data.Values[r]});this.setState({totalCsvRows:o.data.total_rows,loading:!1,scroll:1})}e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return f.apply(this,arguments)})},{key:"onMappingSelect",value:function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=gu(e).resultKey;this.context.mappingResult[a]?o?this.context.mappingResult[a][t]=n:this.context.mappingResult[a][t]?this.context.mappingResult[a][t]+=n:this.context.mappingResult[a][t]=n:(this.context.mappingResult[a]={},this.context.mappingResult[a][t]=n),this.forceUpdate()}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueChange",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?this.state.customFields[t].value+=e:this.state.customFields[t].value=e,this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"checkMandatory",value:function(){if(console.log("checkMandatory",this.context.csvInfo.replaceExistingItem),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem)var e=["language_code","translated_post_title","translated_taxonomy_title","user_email"];else e=["language_code","translated_post_title","translated_taxonomy_title","user_login","user_email","post_title"];for(var t=0;t<this.context.allPluginFields.length;t++){var n=this.context.allPluginFields[t];for(var o in n){var a=n[o];if(a)for(var r=0;r<a.length;r++)if(e.includes(a[r].name)&&!this.checkKeyExistInMapping(a[r].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var n in this.context.mappingResult)this.context.mappingResult[n]&&Object.keys(this.context.mappingResult[n]).includes(e)&&this.context.mappingResult[n][e]&&(t=!0);return!!t||(bn.error(e+" is mandatory field"),!1)}},{key:"transformAttrMeta",value:function(e){for(var t=e.ATTRMETA,n=[],o=1;;){var a="product_attribute_name".concat(o),r="product_attribute_value".concat(o),i="product_attribute_visible".concat(o);if(!(r in t)&&!(i in t))break;var s={};a in t&&(s[a]=t[a]),r in t&&(s[r]=t[r]),i in t&&(s[i]=t[i]),n.push(s),o++}return n}},{key:"sendMappedFields",value:(h=u(m().mark((function e(){var t,n,o,a,r,i,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.context.setTabValue("Drag&Drop-section"),console.log("this.context.mappingResult new:",this.context.mappingResult),console.log("1"),this.state.customFields)for(t=0;t<this.state.customFields.length;t++)n=this.state.customFields[t],o=n.name.trim(),n.value&&o&&(this.context.mappingResult.CORECUSTFIELDS||(this.context.mappingResult.CORECUSTFIELDS={}),this.context.mappingResult.CORECUSTFIELDS[n.name]=n.value);if(console.log("2"),this.checkMandatory()){e.next=7;break}return e.abrupt("return");case 7:return this.context.mappingResult&&this.context.mappingResult.ATTRMETA?(a=this.transformAttrMeta(this.context.mappingResult),this.context.setMappingResult?this.context.setMappingResult(a):(this.context.mappingResult=a,this.forceUpdate())):console.log("ATTRMETA is not available, using mappingResult as is."),this.context.setMappingType("dragdrop-section"),console.log("3 berfo"),r=new FormData,this.props.fromEditTemplate?r.set("action","saveTemplate"):(r.set("action","saveMappedFields"),r.set("HashKey",this.context.csvInfo.hashKey)),console.log("3"),r.set("Types",this.context.csvInfo.selectedtype),i=JSON.stringify(this.context.mappingResult),console.log("4"),console.log("mappedFieldsJson",i),r.set("MappedFields",i),r.set("MappingType","dragdrop-section"),this.state.filterData&&Object.keys(this.state.filterData).length>0&&(r.set("MappedFilter",JSON.stringify(this.state.filterData)),this.context.setFilterData(this.state.filterData),this.context.setMappedFilter(!0)),this.context.isTemplate&&r.set("UseTemplateState","true"),this.context.isTemplate||this.props.fromEditTemplate?(r.set("TemplateName",this.context.existingTemplateName),r.set("NewTemplate",this.context.csvInfo.templateName)):(r.set("TemplateName",this.context.csvInfo.templateName),r.set("UseTemplateState","false")),r.set("securekey",window.smack_nonce_object_pro.nonce),console.log("mappa resp formData",r),e.prev=24,e.next=27,Lt({method:"post",url:ajaxurl,data:r,config:{headers:{"Content-Type":"multipart/form-data"}}});case 27:s=e.sent,this.setState({loading:!0}),console.log("this.context.mappingResult",this.context.mappingResult),console.log("axios end",JSON.stringify(this.context.mappingResult)),s&&s.data&&(200==s.status&&s.data.success?(this.setState({loading:!1}),this.props.fromEditTemplate?this.props.onEditTemplate(!1):"WooCommerce Orders"===this.context.csvInfo.selectedtype||"Media"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype||"nav_menu_item"===this.context.csvInfo.selectedtype||"widgets"===this.context.csvInfo.selectedtype||"elementor_library"===this.context.csvInfo.selectedtype?this.context.setshowMediaComponent("import-config"):this.context.setShowComponent("import-config")):(this.setState({loading:!1}),bn.error(s.data.message+" Please Choose Another Name"))),e.next=38;break;case 34:e.prev=34,e.t0=e.catch(24),console.log(e.t0),this.setState({loading:!1});case 38:case"end":return e.stop()}}),e,this,[[24,34]])}))),function(){return h.apply(this,arguments)})},{key:"setTemplateSection",value:function(){this.context.setShowComponent("upload-dashboard"),this.setState({toTemplateSection:!0})}},{key:"getPreviewData",value:(d=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_post_content"),t.set("MappedFields",JSON.stringify(this.context.mappingResult)),t.set("line_number",this.state.page),t.set("HashKey",this.context.csvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 13:e.prev=13,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(){return d.apply(this,arguments)})},{key:"getPreviewTestData",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_image_url"),t.set("MappedFields",JSON.stringify(this.context.mappingResult)),t.set("line_number",this.state.page),t.set("HashKey",this.context.csvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 13:e.prev=13,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(){return a.apply(this,arguments)})},{key:"getTestResultData",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_test_result"),t.set("MappedFields",JSON.stringify(this.state.listPreviewData)),t.set("image_url",this.state.listPreviewData.featured_image),t.set("line_number",this.state.page),t.set("HashKey",this.context.csvInfo.hashKey),e.prev=6,e.next=9,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:return n=e.sent,console.log("response","color: #7f2200",n),this.setState({PreviewImageTest:n.data}),e.abrupt("return",n.data);case 15:e.prev=15,e.t0=e.catch(6),console.error("Error fetching preview data:",e.t0);case 18:case"end":return e.stop()}}),e,this,[[6,15]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;console.log("listPreviewData","color: #00258c",this.state.listPreviewData);var n,o,a,r,i,s,l,c,d,u,p,h=this.state,m=h.dialogOpen,f=h.dialogType,g=h.page,v=this.state,_=(v.initialRowSize,v.totalCsvRows),b=v.totalCsvRows1;return v.initialRowSize1,v.xmlData,this.state.toTemplateSection?t.createElement(ux,{toManagerTemplateSection:!0}):t.createElement(t.Fragment,null,this.context.isXML?t.createElement(t.Fragment,null):t.createElement("div",{className:"container"},t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"mapping-switcher"},t.createElement("li",{onClick:function(){e.context.setShowComponent("mapping-section")}},this.context.language.ADVANCEDMODE),t.createElement("li",{className:"active",onClick:function(){e.context.setShowComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),t.createElement("div",{style:{marginRight:"2rem",display:"flex",alignItems:"center",cursor:"pointer",float:"right"},onMouseEnter:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="red"},onMouseLeave:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="#459cdd"},onClick:function(t){t.currentTarget.querySelector(".text").style.color="#459cdd",e.context.setDrawerValue("import#3"),e.context.setDrawerOpen(!0)}},t.createElement("span",{className:"text",style:{color:"#459cdd",fontSize:"14px",lineHeight:"14px",display:"flex",flexDirection:"row",marginLeft:"-100px",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?"))),t.createElement("div",{className:"clearfix"}),2===this.state.scroll?t.createElement("p",{className:"text-danger-xml",style:{color:"#e04b4a",float:"right",fontSize:"15px",marginRight:"3%"}},"A single element can be mapped from one parent at a time"):"",t.createElement("div",{className:"row container-fluid ",style:{maxWidth:"1400px",margin:"auto"}},t.createElement("div",{id:"mapping-accordion",className:"col-md-8"},t.createElement("div",{className:"mt50"}),this.context.allPluginFields.map((function(n,o){var a=Object.keys(n)[0];if(!gu(a))return t.createElement("div",null," This ",a," support not implemented ");var r=!1;return a||(r=!0),n[a]||Array.isArray(n[a])||(r=!0),r?void 0:t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading ".concat(0==o?"active":""),id:a,onClick:function(){toggle_func(a)}},e.context.language[gu(a).languageName]," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"".concat(a,"-body"),style:{display:0==o?"block":"none"},"data-display":e.state.display},n[a].map((function(n,r){return"product_attr_fields"===a?t.createElement("div",{className:"form-group",key:r},t.createElement("h6",null,"PRODUCT ATTRIBUTE ",r+1,r>0&&t.createElement("span",{className:"float-right",onClick:function(){return e.deleteCard(r)},style:{cursor:"pointer"}},t.createElement("i",{className:"csv-icon-trash-2"}))),n.name.map((function(n,o){return t.createElement("div",{key:o},t.createElement("label",null,n.label),t.createElement(Ik.gL,{types:["csvheader"],onDrop:function(t){e.onMappingSelect(a,n.name,"{".concat(t.csvheader,"}"),!1)}},t.createElement("input",{value:(r=gu(a).resultKey,i=e.context.mappingResult[r],i?i[n.name]:""),type:"text",id:"".concat(n.name,"_text"),className:"form-control",onChange:function(t){e.onMappingSelect(a,n.name,t.target.value)}})));var r,i}))):t.createElement("div",{className:"form-group",key:r},t.createElement("label",null,n.label),t.createElement(Ik.gL,{types:["csvheader"],onDrop:function(t){e.onMappingSelect(a,n.name,"{".concat(t.csvheader,"}"),!1)}},t.createElement("input",{value:(i=gu(a).resultKey,s=e.context.mappingResult[i],s?s[n.name]:""),type:"text",id:"".concat(n.name,"_text"),className:"form-control",onChange:function(t){e.onMappingSelect(a,n.name,t.target.value)}}),"Content"===n.label&&t.createElement("div",{className:"float-right mt5 mb20",style:{paddingRight:"0px"}},e.state.loading?e.context.loaderText:t.createElement(kk,{onClick:function(){return e.handlePreviewModelOpen(o)},color:"primary",style:{zIndex:2,position:"relative",color:"#718096"},size:"small"},t.createElement(jk,null))),"Featured Image"===n.label&&t.createElement("div",{className:"float-right mt5 mb20",style:{paddingRight:"0px"}},e.state.loading?e.context.loaderText:t.createElement(kk,{onClick:function(){return e.handlePreviewTestModelOpen(o)},color:"primary",style:{zIndex:2,position:"relative",paddingRight:0,color:"#718096"},size:"small"},t.createElement(uk,null)))));var i,s})),"product_attr_fields"===a&&t.createElement("div",{className:"float-right mb10",style:{marginTop:"15px"}},t.createElement("a",{className:"smack-btn smack-btn-secondary",onClick:e.addMappedRow},"Add"))))})),"WooCommerce Coupons"!==this.context.csvInfo.selectedtype&&"Media"!==this.context.csvInfo.selectedtype&&"WooCommerce Product Variations"!==this.context.csvInfo.selectedtype&&"WooCommerce Refunds"!==this.context.csvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.csvInfo.selectedtype&&"WooCommerce Product"!==this.context.csvInfo.selectedtype&&"Customer Reviews"!==this.context.csvInfo.selectedtype&&"Images"!==this.context.csvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.csvInfo.selectedtype&&"Comments"!==this.context.csvInfo.selectedtype&&"nav_menu_item"!==this.context.csvInfo.selectedtype&&"elementor_library"!==this.context.csvInfo.selectedtype&&"widgets"!==this.context.csvInfo.selectedtype?t.createElement(t.Fragment,null,t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",id:"custom-field-creator",onClick:function(){return toggle_func("custom-field-creator")}},"Create WP Custom Fields"," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"custom-field-creator-body"},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.WPFIELDS),t.createElement("th",null,this.context.language.CSVHEADER),t.createElement("th",{className:"text-center"},this.context.language.Action))),t.createElement("tbody",null,0!=this.state.customFields.length?this.state.customFields.map((function(n,o){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"}},t.createElement("label",{className:"wpfields"},t.createElement("input",{type:"text",value:n.label,className:"form-control",onChange:function(t){e.onCustomFieldLabelChange(t.target.value,o)}})),t.createElement("label",{className:"sub-text"},"[Name: ".concat(n.name,"]")," ")),t.createElement("td",{style:{width:"40%",verticalAlign:"top"}},t.createElement(Ik.gL,{types:["csvheader"],onDrop:function(t){e.onCustomFieldValueChange.bind(e)("{".concat(t.csvheader,"}"),o,!1)}},t.createElement("input",{value:e.state.customFields[o].value,type:"text",name:"",id:"text_"+o,className:"form-control",onChange:function(t){e.onCustomFieldValueChange.bind(e)(t.target.value,o)}}))),t.createElement("td",{className:"action text-center"},t.createElement("a",{className:"action-icon","data-tip":"Delete",onClick:function(t){e.deleteCustomField(o)}},t.createElement("i",{className:"csv-icon-trash-2"})),t.createElement(dc,{effect:"solid"})))})):t.createElement("tr",null,t.createElement("td",{colSpan:"3",className:"text-center border-bottom text-danger"},"No WP Custom Fields")))),t.createElement("div",{className:"float-right mb20 mt20"},t.createElement("a",{className:"smack-btn smack-btn-secondary",onClick:function(t){e.addCustomField()}},"Add Custom Field"))))):void 0,t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",onClick:this.handlecustomFilterOpen},"Manage Filtering Options",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",style:{display:this.state.isFilter?"block":"none"}},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"Elements"),t.createElement("th",null,"Rule"),t.createElement("th",null,"Value"))),t.createElement("td",{style:{verticalAlign:"top"}},t.createElement("select",{className:"select form-control w-75",name:"element",value:this.state.formData.element,onChange:this.handleChange},t.createElement("optgroup",{label:"CSV Fields"},t.createElement("option",null,"--select--"),this.context.csvFields.map((function(e){return t.createElement("option",null,e)}))))),t.createElement("td",{style:{verticalAlign:"top"}},t.createElement("select",{className:"select form-control w-75",name:"rule",value:this.state.formData.rule,onChange:this.handleChange},t.createElement("optgroup",{label:"CSV Fields"},t.createElement("option",{value:""},"-- Select --"),t.createElement("option",{value:"equals"},"Equals"),t.createElement("option",{value:"not_equals"},"Not Equals"),t.createElement("option",{value:"greater_than"},"Greater Than"),t.createElement("option",{value:"equals_or_greater_than"},"Equals or Greater Than"),t.createElement("option",{value:"less_than"},"Less Than"),t.createElement("option",{value:"equals_or_less_than"},"Equals or Less Than"),t.createElement("option",{value:"contains"},"Contains"),t.createElement("option",{value:"not_contains"},"Not Contains"),t.createElement("option",{value:"is_empty"},"Is Empty"),t.createElement("option",{value:"is_not_empty"},"Is Not Empty")))),t.createElement("td",null,t.createElement("input",{style:{width:"60%"},type:"text",className:"form-control",name:"value",value:"is_empty"===this.state.formData.rule||"is_not_empty"===this.state.formData.rule?"":this.state.formData.value,onChange:function(t){var n=t.target.value,o=e.state.formData.rule;["greater_than","equals_or_greater_than","less_than","equals_or_less_than"].includes(o)&&((n=n.replace(/[^0-9.]/g,"")).match(/\./g)||[]).length>1&&(n=n.slice(0,-1)),e.setState({formData:zk(zk({},e.state.formData),{},{value:n})})},disabled:"is_empty"===this.state.formData.rule||"is_not_empty"===this.state.formData.rule,placeholder:"Enter value"})),t.createElement("td",null,t.createElement("a",{onClick:this.handleAddRule,style:{marginLeft:"-80px"},class:"smack-btn smack-btn-secondary"},"Add Rule"))),this.state.filterData.length>0&&t.createElement("div",null,t.createElement("h5",null,"Added Rules:"),t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"Elements"),t.createElement("th",null,"Rules"),t.createElement("th",null,"Values"),t.createElement("th",null,"Condition"),t.createElement("th",null,"Actions"))),t.createElement("tbody",null,this.state.filterData.map((function(n,o){return t.createElement("tr",{key:o},t.createElement("td",null,n.element),t.createElement("td",null,n.rule),t.createElement("td",null,"  ",""===n.value?t.createElement("span",null,'""'):n.value),t.createElement("td",null,e.state.filterData.length>1&&o<e.state.filterData.length-1&&t.createElement("div",{style:{display:"flex",gap:"10px",alignItems:"center"}},t.createElement("label",null,t.createElement("input",{type:"radio",name:"condition-".concat(o),value:"AND",checked:o<e.state.filterData.length-1&&"AND"===n.condition,onChange:function(){return e.handleConditionChange(o,"AND")}}),"AND"),t.createElement("label",null,t.createElement("input",{type:"radio",name:"condition-".concat(o),value:"OR",checked:o<e.state.filterData.length-1&&"OR"===n.condition,onChange:function(){return e.handleConditionChange(o,"OR")}}),"OR"))),t.createElement("td",null,t.createElement("a",{className:"action-icon","data-toggle":"tooltip",onClick:function(){return e.handleDeleteRule(o)},title:"Delete",style:{cursor:"pointer"}},t.createElement("i",{className:"csv-icon-trash-2"}))))}))))))),t.createElement("div",{className:"mt40"},t.createElement("div",{className:"col-md-12 text-center mt30"},this.context.isTemplate?t.createElement("div",null,t.createElement("label",null,this.context.language.UpdateThisMappingAs),t.createElement("input",{type:"text",className:"form-control ml10 d-inline w-25",onChange:function(t){e.context.setCSVInfo(zk(zk({},e.context.csvInfo),{},{templateName:t.target.value}))},value:this.context.csvInfo.templateName})):t.createElement("div",null,t.createElement("label",null,"Save this mapping as"),t.createElement("input",{type:"text",onChange:function(t){e.context.setCSVInfo(zk(zk({},e.context.csvInfo),{},{templateName:t.target.value}))},className:"form-control ml10 d-inline w-25",value:this.context.csvInfo.templateName}))),t.createElement("div",{className:"col-md-12 mt40 p0"},t.createElement("div",{className:"float-left"},t.createElement("button",{className:"smack-btn btn-default",onClick:function(){e.props.onEditTemplate&&e.setTemplateSection(),e.context.setShowComponent("upload-dashboard")}},"Back")),t.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.props.fromEditTemplate?"Save":this.context.language.Continue)),t.createElement("div",{className:"clearfix"})))),t.createElement("div",{className:"col-md-4 "},t.createElement("div",{className:"mapping-sidebar",id:"mapping-sidebar"},t.createElement("table",{className:"mapping-sidebar-title"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"mapping-sidebar-arrow"},t.createElement("span",{className:"csv-icon-chevron-with-circle-left",onClick:function(t){e.state.initialRowSize--,e.state.initialRowSize>=1?e.getCsvFields(e.state.initialRowSize):e.state.initialRowSize++}})),t.createElement("td",{className:"mapping-sidebar-textbox-section"},t.createElement("strong",null,t.createElement("input",{id:"current_row",value:this.state.initialRowSize,type:"text",pattern:"[0-9]*",onChange:function(t){parseInt(t.target.value)>e.state.totalCsvRows?e.setState({initialRowSize:e.state.totalCsvRows},(function(){e.getCsvFields(e.state.initialRowSize)})):(e.setState({initialRowSize:t.target.value}),e.getCsvFields(e.state.initialRowSize))}}))," ",t.createElement("span",{className:"mapping-textbox-out-of"},"of",t.createElement("strong",null," ",_))),t.createElement("td",{className:"mapping-sidebar-arrow"},t.createElement("span",{className:"csv-icon-chevron-with-circle-right",onClick:function(t){e.state.initialRowSize++,e.state.initialRowSize<=e.state.totalCsvRows?e.getCsvFields(e.state.initialRowSize):e.state.initialRowSize--}}))))),t.createElement("div",{className:"uci_mapping",style:{overflowX:"scroll"}},t.createElement("table",{className:"table table-bordered",cellspacing:"10"},this.context.isXML?this.state.loading||0==this.state.xmlData.length?t.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.state.xmlData.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"},title:e.node_path,className:"text-primary font-weight-bold"},t.createElement(Ik.sx,{type:"csvheader",data:e.node_path},e.name)),t.createElement("td",null,e.value))})):this.state.loading||0==this.csvInformation.length?t.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.csvInformation.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"},className:"text-primary font-weight-bold"},t.createElement(Ik.sx,{type:"csvheader",data:e.csvHeaders},e.csvHeaders)),t.createElement("td",null,e.csvValues))}))))),0!=this.state.xmlData1.length?t.createElement("div",{className:"mapping-sidebar-one",id:"mapping-sidebar-one"},t.createElement("table",{className:"mapping-sidebar-title-one"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"mapping-sidebar-arrow-one"},t.createElement("span",{className:"csv-icon-chevron-with-circle-left",onClick:function(t){e.state.initialRowSize1--,e.state.initialRowSize1>=1?e.getCsvFields(e.state.initialRowSize1):e.state.initialRowSize1++}})),t.createElement("td",{className:"mapping-sidebar-textbox-section-one"},t.createElement("strong",null,t.createElement("input",{id:"current_row1",value:this.state.initialRowSize1,type:"text",pattern:"[0-9]*",onChange:function(t){parseInt(t.target.value)>e.state.totalCsvRows1?e.setState({initialRowSize1:e.state.totalCsvRows1},(function(){e.getCsvFields(e.state.initialRowSize1)})):(e.setState({initialRowSize1:t.target.value}),e.getCsvFields(e.state.initialRowSize1))}}))," ",t.createElement("span",{className:"mapping-textbox-out-of-one"},"of",t.createElement("strong",null," ",b))),t.createElement("td",{className:"mapping-sidebar-arrow-one"},t.createElement("span",{className:"csv-icon-chevron-with-circle-right",onClick:function(t){e.state.initialRowSize1++,e.state.initialRowSize1<=e.state.totalCsvRows1?e.getCsvFields(e.state.initialRowSize1):e.state.initialRowSize1--}}))))),t.createElement("div",{className:"uci_mapping"},t.createElement("table",{className:"table table-bordered",cellspacing:"10"},this.context.isXML?this.state.loading||0==this.state.xmlData1.length?t.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.state.xmlData1.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"},title:e.node_path,className:"text-primary font-weight-bold"},t.createElement(Ik.sx,{type:"csvheader",data:e.node_path},e.name)),t.createElement("td",null,e.value))})):""))):"")),t.createElement(N_,{open:m,onClose:this.handleClose,PaperProps:{sx:{width:500}}},t.createElement(J_,null,t.createElement(gk,{display:"flex",justifyContent:"space-between",alignItems:"center"},t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"preview"===f?"Preview":"Preview & Test"),t.createElement(gk,{display:"flex",alignItems:"center",gap:1},t.createElement(kk,{onClick:function(){return e.handlePageChange(-1)},size:"small"},t.createElement(Ck,{fontSize:"small"})),t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"page"),t.createElement(gk,{sx:{border:"1px solid #ccc",borderRadius:"4px",padding:"1px 8px",minWidth:"30px",textAlign:"center",backgroundColor:"#f5f5f5",fontWeight:"normal",fontSize:"13px"}},g),t.createElement(W_,{sx:{fontSize:"12px"}},"of  ",this.state.limit),t.createElement(kk,{onClick:function(){return e.handlePageChange(1)},size:"small"},t.createElement(Ak,{fontSize:"small"}))))),t.createElement(eb,{dividers:!0},t.createElement(Tk,null),t.createElement(gk,{mt:2},"preview"===f&&t.createElement(gk,null,(u=null!==(c=null===(d=e.state.listPreviewData)||void 0===d?void 0:d.post_content)&&void 0!==c?c:"",/<[a-z][\s\S]*>/i.test(u)||u.includes("[caption")?t.createElement("div",{dangerouslySetInnerHTML:{__html:u}}):/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(u)?t.createElement(W_,null,u):t.createElement(W_,{fontWeight:"bold"},u))),"preview&test"===f&&(a=null!==(n=null===(o=e.state.listPreviewData)||void 0===o?void 0:o.featured_image)&&void 0!==n?n:"",i=!(r=(p=a.match(/<img[^>]*>/i))?p[0]:null)&&/^https?:\/\/.+\.(?:jpe?g|png|gif|webp|bmp|svg)$/i.test(a)?a:null,s=/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(a)?a:"",l=r||i||s?"":function(e){return e.replace(/<[^>]+>/g,"")}(a),t.createElement(gk,{display:"flex",flexDirection:"column",gap:1},t.createElement(W_,{variant:"subtitle1",mt:0,fontWeight:"bold"},"Result preview"),r&&t.createElement("div",{dangerouslySetInnerHTML:{__html:r},style:{maxWidth:"100%"}}),i&&t.createElement("img",{src:i,alt:"featured",style:{maxWidth:"100%",border:"1px solid #ccc"},onError:function(e){return e.currentTarget.style.display="none"}}),!r&&!i&&l&&t.createElement(W_,{variant:"body2",sx:{whiteSpace:"pre-wrap"}},l),!r&&!i&&!l&&t.createElement(W_,{color:"error"},"Unable to load the image. Please make sure the URL points to a valid image file"))))),t.createElement(jb,null,t.createElement(Ry,{onClick:this.handleClose},"Close"))))}}]);var o,a,d,h,f}(t.Component);function Uk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uk=function(){return!!e})()}(0,p.A)(Vk,"contextType",f);var Wk,qk,$k,Gk,Kk,Jk,Xk=Rd.td(Hk||(Hk=g(["\n  max-width: 250px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n"]))),Qk=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,Uk()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"displayTemplates",(function(){var e=t.state,n=e.offset,o=e.perPage,a=e.fullTemplates.slice(n,n+o);t.setState({templates:a})})),(0,p.A)(t,"handlePageClick",(function(e){var n=e.selected,o=n*t.state.perPage;t.setState({currentPage:n,offset:o},t.displayTemplates)})),(0,p.A)(t,"handleExport",(function(e){})),t.state={offset:0,perPage:10,currentPage:0,fullTemplates:[],templates:[],pageCount:0},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("manager"),this.exportTemplates()}},{key:"exportTemplates",value:(a=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_export_template"),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=3,e.next=6,Lt({method:"post",url:ajaxurl,data:t,headers:{"Content-Type":"multipart/form-data"}});case 6:(n=e.sent).data&&Array.isArray(n.data.info)?(o=n.data.info,a=Math.ceil(o.length/this.state.perPage),this.setState({fullTemplates:o,pageCount:a},this.displayTemplates)):console.warn("Unexpected response format:",n.data),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Error fetching templates:",e.t0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return a.apply(this,arguments)})},{key:"showMappedExportTemplate",value:(o=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","export_already_mapped"),n.set("module",t.module||""),n.set("optionalType",t.optionalType||""),n.set("filename",t.filename||""),n.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=6,e.next=9,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:(o=e.sent)&&o.data&&(console.log("Export Template Response",o.data),200==o.status&&o.data.success&&(this.context.setFileName(o.data.already_mapped.filename),this.context.setExportType(o.data.already_mapped.export_type),this.context.setShowSplitRecord(o.data.already_mapped.split_record),this.context.setCheckedClientMode(o.data.already_mapped.exportCheckedRole),o.data.already_mapped.split_record&&this.context.setRecordLimit(o.data.already_mapped.split_limit),this.context.setIsDelimiters(o.data.already_mapped.is_delimiter),o.data.already_mapped.is_delimiter&&(this.context.setDelimitersOption(o.data.already_mapped.delimiter),this.context.setOtherDelimiters(o.data.already_mapped.optional_delimiter)),this.context.setIsSpecificPeriod(o.data.already_mapped.specific_period),o.data.already_mapped.specific_period&&(this.context.setStartDate(_()(o.data.already_mapped.from_date).toDate()),this.context.setEndDate(_()(o.data.already_mapped.to_date).toDate())),this.context.setIsSpecificJetbookingStatus(o.data.already_mapped.specific_jetbooking_status),o.data.already_mapped.specific_jetbooking_status&&this.context.setSpecificJetbookingStatus(o.data.already_mapped.status),this.context.setIsSpecificStatus(o.data.already_mapped.specific_status),o.data.already_mapped.specific_status&&this.context.setSpecificStatus(o.data.already_mapped.status),this.context.setIsSpecificAuthors(o.data.already_mapped.specific_authors),o.data.already_mapped.specific_authors&&this.context.setSpecificAuthors(o.data.already_mapped.author),this.context.setIsSpecificCategory(o.data.already_mapped.specific_category),o.data.already_mapped.exclusion_headers&&(this.context.eventExclusion.is_check=o.data.already_mapped.exclusion_headers,this.context.eventExclusion.exclusion_headers.header=o.data.already_mapped.headers,this.context.setEventExclusion(this.context.eventExclusion)),o.data.already_mapped.specific_category&&(this.context.categoryName=o.data.already_mapped.category),this.context.setIsSpecificPostTitle(o.data.already_mapped.specific_post_title),o.data.already_mapped.specific_post_title&&this.context.setSpecificPostTitle(o.data.already_mapped.post_title),this.context.setEnableSchedule(o.data.already_mapped.is_schedule),o.data.already_mapped.is_schedule&&(this.context.setScheduleDate(_()(o.data.already_mapped.schedule_details.schedule_date).toDate()),this.context.setScheduleFrequency(o.data.already_mapped.schedule_details.schedule_frequency),this.context.setSelectedUTC(o.data.already_mapped.schedule_details.time_zone),this.context.setScheduleTime(o.data.already_mapped.schedule_details.schedule_time),this.context.setHostName(o.data.already_mapped.schedule_hosts.host_name),this.context.setHostPort(o.data.already_mapped.schedule_hosts.host_port),this.context.setHostUserName(o.data.already_mapped.schedule_hosts.host_username),this.context.setHostPassword(o.data.already_mapped.schedule_hosts.host_password),this.context.setHostPath(o.data.already_mapped.schedule_hosts.host_path),this.context.setConnectionType(o.data.already_mapped.schedule_hosts.connection_type)),this.context.setShowExport("export-filter"),this.context.setClientExport({clientMode:!0,module:t.module||"",fileName:t.filename||""}),this.context.setTabSelection({tabSelection:"export"}))),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=this.state,o=n.templates,a=n.pageCount;return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane4 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.ClientMode||"ClientMode"),t.createElement("table",{className:"table table-manager"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,"FileName"),t.createElement("th",null,"Module"),t.createElement("th",null,"Type"),t.createElement("th",null,"Action"))),t.createElement("tbody",null,o.length>0?o.map((function(n,o){return t.createElement("tr",{key:n.id||o},t.createElement(Xk,{title:n.filename,className:"text-ellipsis"},n.template_name||n.filename||"—"),t.createElement("td",null,n.module||"—"),t.createElement("td",null,n.type||"—"),t.createElement("td",null,t.createElement("div",{className:"right-actions"},t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:function(){return e.showMappedExportTemplate(n)}},"Export"))))})):t.createElement("tr",null,t.createElement("td",{colSpan:"4"},t.createElement("span",{className:"text-danger"},"No Data found."))))),a>1&&t.createElement("div",{className:"mt20"},t.createElement(It(),{previousLabel:"prev",nextLabel:"next",breakLabel:"...",breakClassName:"break-me",pageCount:this.state.pageCount,marginPagesDisplayed:2,pageRangeDisplayed:3,onPageChange:this.handlePageClick,containerClassName:"pagination",subContainerClassName:"pages pagination",activeClassName:"active"}))))))}}]);var o,a}(t.Component);function Zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zk(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tx=function(){return!!e})()}(0,p.A)(Qk,"contextType",f);var nx=Rd.td(Wk||(Wk=g(["\n    max-width: 250px;\n"]))),ox=Rd.div(qk||(qk=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),ax=Rd.button($k||($k=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),rx=Rd.h1(Gk||(Gk=g(['\n  font-size: 30px;\n  font-family: "Poppins";\n  font-weight: 500;\n  margin-bottom: 0;\n']))),ix=Rd.p(Kk||(Kk=g(["\n  font-size: 16px;\n"]))),sx=Rd.button(Jk||(Jk=g(['\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: "Poppins", sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n']))),lx=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,tx()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,loadingSearch:!1,fromDate:new Date,toDate:new Date,templateName:"",exportTemplates:[]},t.handleChangeFrom=t.handleChangeFrom.bind(t),t.handleChangeTo=t.handleChangeTo.bind(t),t.temp=[],t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.getExportTemplate()}},{key:"getExportTemplate",value:(f=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","export_template"),t.set("module",this.context.exportInfo.moduleName),t.set("optionalType",this.context.exportInfo.optionalType),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&this.setState({exportTemplates:n.data.info}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(){return f.apply(this,arguments)})},{key:"showMappedExportTemplate",value:(h=u(m().mark((function e(t,n,o){var a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","export_already_mapped"),a.set("module",n),a.set("optionalType",o),a.set("filename",t),a.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=6,e.next=9,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:(r=e.sent)&&r.data&&(console.log("Export Template Response",r.data),200==r.status&&r.data.success&&(this.context.setFileName(r.data.already_mapped.filename),this.context.setExportType(r.data.already_mapped.export_type),this.context.setShowSplitRecord(r.data.already_mapped.split_record),r.data.already_mapped.split_record&&this.context.setRecordLimit(r.data.already_mapped.split_limit),this.context.setIsDelimiters(r.data.already_mapped.is_delimiter),r.data.already_mapped.is_delimiter&&(this.context.setDelimitersOption(r.data.already_mapped.delimiter),this.context.setOtherDelimiters(r.data.already_mapped.optional_delimiter)),this.context.setIsSpecificPeriod(r.data.already_mapped.specific_period),r.data.already_mapped.specific_period&&(this.context.setStartDate(_()(r.data.already_mapped.from_date).toDate()),this.context.setEndDate(_()(r.data.already_mapped.to_date).toDate())),this.context.setIsSpecificJetbookingStatus(r.data.already_mapped.specific_jetbooking_status),r.data.already_mapped.specific_jetbooking_status&&this.context.setSpecificJetbookingStatus(r.data.already_mapped.status),this.context.setIsSpecificStatus(r.data.already_mapped.specific_status),r.data.already_mapped.specific_status&&this.context.setSpecificStatus(r.data.already_mapped.status),this.context.setIsSpecificAuthors(r.data.already_mapped.specific_authors),r.data.already_mapped.specific_authors&&this.context.setSpecificAuthors(r.data.already_mapped.author),this.context.setIsSpecificCategory(r.data.already_mapped.specific_category),r.data.already_mapped.exclusion_headers&&(this.context.eventExclusion.is_check=r.data.already_mapped.exclusion_headers,this.context.eventExclusion.exclusion_headers.header=r.data.already_mapped.headers,this.context.setEventExclusion(this.context.eventExclusion)),r.data.already_mapped.specific_category&&(this.context.categoryName=r.data.already_mapped.category),this.context.setIsSpecificPostTitle(r.data.already_mapped.specific_post_title),r.data.already_mapped.specific_post_title&&this.context.setSpecificPostTitle(r.data.already_mapped.post_title),this.context.setEnableSchedule(r.data.already_mapped.is_schedule),r.data.already_mapped.is_schedule&&(this.context.setScheduleDate(_()(r.data.already_mapped.schedule_details.schedule_date).toDate()),this.context.setScheduleFrequency(r.data.already_mapped.schedule_details.schedule_frequency),this.context.setSelectedUTC(r.data.already_mapped.schedule_details.time_zone),this.context.setScheduleTime(r.data.already_mapped.schedule_details.schedule_time),this.context.setHostName(r.data.already_mapped.schedule_hosts.host_name),this.context.setHostPort(r.data.already_mapped.schedule_hosts.host_port),this.context.setHostUserName(r.data.already_mapped.schedule_hosts.host_username),this.context.setHostPassword(r.data.already_mapped.schedule_hosts.host_password),this.context.setHostPath(r.data.already_mapped.schedule_hosts.host_path),this.context.setConnectionType(r.data.already_mapped.schedule_hosts.connection_type)),this.context.setShowExport("export-filter"))),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e,t,n){return h.apply(this,arguments)})},{key:"handleChangeFrom",value:function(e){this.setState({fromDate:e})}},{key:"handleChangeTo",value:function(e){this.setState({toDate:e})}},{key:"searchTemplate",value:(p=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","search_template"),t.set("TemplateName",this.state.templateName),t.set("FromDate",_()(this.state.fromDate).format("YYYY-MM-DD")),t.set("ToDate",_()(this.state.toDate).format("YYYY-MM-DD")),t.set("filename",this.context.csvInfo.fileName),t.set("module",this.context.csvInfo.selectedtype),t.set("securekey",window.smack_nonce_object_pro.nonce),document.getElementById("searchBtn").disabled=!0,e.prev=9,e.next=12,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 12:n=e.sent,document.getElementById("searchBtn").disabled=!1,n&&n.data&&(200==n.status&&n.data.success?(this.temp=this.context.saveTemplateData,this.context.setSaveTemplateData(n.data.info)):this.context.setSaveTemplateData("")),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(9);case 19:case"end":return e.stop()}}),e,this,[[9,17]])}))),function(){return p.apply(this,arguments)})},{key:"showMappingFromTemplate",value:(d=u(m().mark((function e(){var t,n,o,a,r,i,s=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:"",n=s.length>1&&void 0!==s[1]&&s[1],(o=new FormData).set("action","templateinfo"),n&&o.set("TemplateName",t),o.set("HashKey",this.context.csvInfo.hashKey),o.set("Types",this.context.csvInfo.selectedtype),o.set("Mode",this.context.csvInfo.replaceExistingItem),o.set("securekey",window.smack_nonce_object_pro.nonce),o.set("MediaType",this.context.selectedMediaType),this.setState({loading:!0}),e.prev=11,e.next=14,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:if(!(a=e.sent)||!a.data){e.next=26;break}if(200!=a.status||!a.data.success){e.next=26;break}return this.setState({loading:!1}),r="",n?(this.context.setMappingResult(a.data.already_mapped),this.context.setExistingTemplateName(t),this.context.setCSVInfo(ex(ex({},this.context.csvInfo),{},{templateName:t})),this.context.setIsTemplate(!0),r="normal"===a.data.mapping_type?"mapping-section":"advanced"===a.data.mapping_type?"dragdrop-section":""===a.data.mapping_type?"mapping-section":a.data.mapping_type):(this.context.setIsTemplate(!1),r="mapping-section"),this.context.isXML&&(r="dragdrop-section"),this.context.setCsvFields(a.data.csv_fields),i=mu(a.data.fields),this.context.setAllPluginFields(i),this.context.setShowComponent(r),e.abrupt("return");case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(11),console.log(e.t0);case 31:case"end":return e.stop()}}),e,this,[[11,28]])}))),function(){return d.apply(this,arguments)})},{key:"clearSearch",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=7,e.next=10,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&(this.setState({loading:!1}),!0===n.data.show_template&&(this.context.setSaveTemplateData(n.data.info),this.context.setShowExport("export-filter"))),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.log(e.t0);case 17:case"end":return e.stop()}}),e,this,[[7,14]])}))),function(){return a.apply(this,arguments)})},{key:"DeleteExportTemplate",value:(o=u(m().mark((function e(t,n,o){var a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","DeleteExportTemplate"),a.set("FileName",t),a.set("Module",n),a.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(!(r=e.sent)||!r.data){e.next=16;break}if(200!=r.status||!r.data.success){e.next=16;break}return(i=this.state.exportTemplates).splice(o,1),this.setState({exportTemplates:i}),bn.success("Template Deleted Successfully"),e.abrupt("return");case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(e,t,n){return o.apply(this,arguments)})},{key:"confirmationToDeleteExportTemplate",value:function(e,n,o){var a=this;(0,yn.ZX)({customUI:function(r){var i=r.onClose;return t.createElement(ox,null,t.createElement(rx,null,"Are you sure?"),t.createElement(ix,null,"You want to delete this template?"),t.createElement(sx,{onClick:i},"Not Now"),t.createElement(ax,{onClick:function(){a.DeleteExportTemplate(e,n,o),i()}},"Yes, Delete it!"))}})}},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"container"},t.createElement("div",{className:"csv-importer-panel mt20"},t.createElement("div",{className:"pt20"}),t.createElement("hr",null),t.createElement("div",{className:"p20 col-md-12"},t.createElement("h1",{className:"main-heading"},this.context.language.SavedTemplate,"     ",t.createElement("div",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){e.context.setDrawerValue("exportTemplate#1"),e.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null," ",this.context.language.TEMPLATES),t.createElement("th",null,this.context.language.MODULE," "),t.createElement("th",null,this.context.language.CREATEDTIME),t.createElement("th",null,this.context.language.ACTION),t.createElement("th",null,this.context.language.DEL))),t.createElement("tbody",null,0!=this.state.exportTemplates.length?this.state.exportTemplates.map((function(n,o){return t.createElement("tr",null,t.createElement(nx,{title:n.filename,className:"text-ellipsis"},n.filename),t.createElement("td",null,n.module),t.createElement("td",null,_()(n.createdtime).format("lll")),t.createElement("td",null,t.createElement("button",{type:"button",class:"smack-btn smack-btn-info usetemplate",onClick:function(){return e.showMappedExportTemplate(n.filename,n.module,n.optionalType)}},e.context.language.USETEMPLATE)),t.createElement("td",null,t.createElement("a",{className:"action-del-icon","data-tip":"Delete",onClick:function(){e.confirmationToDeleteExportTemplate(n.filename,n.module,o)}},t.createElement("i",{className:"csv-icon-trash-2"})),t.createElement(dc,{effect:"solid"})))})):t.createElement("tr",null,t.createElement("td",{colspan:"5"},t.createElement("span",{className:"text-danger"},"No Template Found")))))),t.createElement("div",{className:"col-md-12 mt20"},t.createElement("div",{className:"float-left"},t.createElement("input",{type:"button",className:"smack-btn btn-default",value:this.context.language.BACK,onClick:function(){e.context.setShowExport("export-module"),e.context.exportInfo.moduleName="",e.context.setExportInfo(e.context.exportInfo)}})),t.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:t.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.context.setShowExport("export-filter")}},this.context.language.CREATENEWMAPPING))),t.createElement("div",{className:"clearfix"})))}}]);var o,a,d,p,h,f}(t.Component);function cx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cx=function(){return!!e})()}(0,p.A)(lx,"contextType",f);var dx=function(e){function n(e){var t,o,a,i,c;(0,r.A)(this,n),a=this,i=n,c=[e],i=(0,l.A)(i);var d=!1!==(null===(t=(o=(0,s.A)(a,cx()?Reflect.construct(i,c||[],(0,l.A)(a).constructor):i.apply(a,c))).context)||void 0===t?void 0:t.adminMode);return o.state={fileManagerTabActive:d?"active":"",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:d?"":"active",uploadTemplatesTabActive:"",showTemplateEditMapping:!1,client:!1},o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){var e,t=!1!==(null===(e=this.context)||void 0===e?void 0:e.adminMode);this.context.setSelectedTabOnCookies("manager"),this.props.toManagerTemplateSection?(this.setState({templatesTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:"",uploadTemplatesTabActive:""}),this.props.toManagerTemplateSection=!1):this.setState({fileManagerTabActive:t?"active":"",ClientModeTabActive:t?"":"active"})}},{key:"onEditTemplate",value:function(e){this.setState({showTemplateEditMapping:e})}},{key:"showManagerOptions",value:function(){var e=this;return t.createElement(t.Fragment,null,t.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3",style:{display:!1===this.context.adminMode?"none":"block"}},t.createElement("ul",{className:"setting-tab"},t.createElement("li",{"data-setting":"setting-tabpane1",className:"setting-tab-list ".concat(this.state.fileManagerTabActive),onClick:function(){return e.setState({fileManagerTabActive:"active",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:"",uploadTemplatesTabActive:""})}},t.createElement("i",{className:"csv-icon-hard-drive1","aria-hidden":"true"}),this.context.language.FileManager),t.createElement("li",{"data-setting":"setting-tabpane2",className:"setting-tab-list ".concat(this.state.smartScheduleTabActive),onClick:function(){return e.setState({smartScheduleTabActive:"active",fileManagerTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:"",uploadTemplatesTabActive:""})}},t.createElement("i",{className:"csv-icon-calendar2","aria-hidden":"true"}),this.context.language.SmartSchedule),t.createElement("li",{"data-setting":"setting-tabpane3",className:"setting-tab-list ".concat(this.state.scheduledExportTabActive),onClick:function(){return e.setState({scheduledExportTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:"",uploadTemplatesTabActive:""})}},t.createElement("i",{className:"csv-icon-calendar2","aria-hidden":"true"}),this.context.language.ScheduledExport),t.createElement("li",{"data-setting":"setting-tabpane4",className:"setting-tab-list ".concat(this.state.templatesTabActive),onClick:function(){return e.setState({templatesTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:"",uploadTemplatesTabActive:""})}},t.createElement("i",{className:"csv-icon-layout","aria-hidden":"true"}),this.context.language.Templates),t.createElement("li",{"data-setting":"setting-tabpane5",className:"setting-tab-list ".concat(this.state.logManagerTabActive),onClick:function(){return e.setState({logManagerTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",mediaReportTabActive:"",ClientModeTabActive:"",uploadTemplatesTabActive:""})}},t.createElement("i",{className:"csv-icon-layers","aria-hidden":"true"}),this.context.language.LogManager),t.createElement("li",{"data-setting":"setting-tabpane6",className:"setting-tab-list ".concat(this.state.uploadTemplatesTabActive),onClick:function(){return e.setState({uploadTemplatesTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:"",ClientModeTabActive:""})}},t.createElement("i",{className:"csv-icon-upload","aria-hidden":"true"}),this.context.language.UploadTemplates||"Upload Templates"))),t.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3",style:{display:!0===this.context.adminMode?"none":"block"}},t.createElement("ul",{className:"setting-tab"},t.createElement("li",{"data-setting":"setting-tabpane6",className:"setting-tab-list ".concat(this.state.ClientModeTabActive),onClick:function(){return e.setState({ClientModeTabActive:"active",uploadTemplatesTabActive:"",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:""})}},t.createElement("i",{className:"csv-icon-user","aria-hidden":"true"}),this.context.language.ClientModeTabActive||"ClientMode"))))}},{key:"render",value:function(){return t.createElement(t.Fragment,null,this.state.showTemplateEditMapping?"mapping-section"===this.context.mappingType?t.createElement(Nk,{fromEditTemplate:!0,onEditTemplate:this.onEditTemplate.bind(this)}):"dragdrop-section"===this.context.mappingType?t.createElement(Vk,{fromEditTemplate:!0,onEditTemplate:this.onEditTemplate.bind(this)}):"":t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row"},this.showManagerOptions(),"active"===this.state.fileManagerTabActive?t.createElement(Kd,null):"active"===this.state.smartScheduleTabActive?t.createElement(cu,null):"active"===this.state.scheduledExportTabActive?t.createElement(mw,null):"active"===this.state.templatesTabActive||this.props.toManagerTemplateSection?t.createElement(Ow,{onEditTemplate:this.onEditTemplate.bind(this)}):"active"===this.state.uploadTemplatesTabActive?t.createElement(Jw,null):"active"===this.state.logManagerTabActive?t.createElement(Vw,null):"active"===this.state.mediaReportTabActive?t.createElement(qw,null):"active"===this.state.ClientModeTabActive?t.createElement(Qk,null):t.createElement("div",null,this.context.language.NotSelectedAnyTab)))))}}])}(t.Component);(0,p.A)(dx,"contextType",f);const ux=dx;var px={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hx=t.createContext&&t.createContext(px),mx=["attr","size","title"];function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fx.apply(this,arguments)}function gx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gx(Object(n),!0).forEach((function(t){_x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _x(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bx(e){return e&&e.map(((e,n)=>t.createElement(e.tag,vx({key:n},e.attr),bx(e.child))))}function yx(e){return n=>t.createElement(wx,fx({attr:vx({},e.attr)},n),bx(e.child))}function wx(e){var n=n=>{var o,{attr:a,size:r,title:i}=e,s=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,mx),l=r||n.size||"1em";return n.className&&(o=n.className),e.className&&(o=(o?o+" ":"")+e.className),t.createElement("svg",fx({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,a,s,{className:o,style:vx(vx({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&t.createElement("title",null,i),e.children)};return void 0!==hx?t.createElement(hx.Consumer,null,(e=>n(e))):n(px)}function kx(e){return yx({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},child:[]}]})(e)}function xx(e){return yx({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"},child:[]}]})(e)}function Ex(e){return yx({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"},child:[]}]})(e)}a(8736);var Sx=a(6942),Mx=a.n(Sx);const Tx=t.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:Cx,Provider:Ax}=Tx;function Dx(e,n){const{prefixes:o}=(0,t.useContext)(Tx);return e||o[n]||n}function Px(){const{breakpoints:e}=(0,t.useContext)(Tx);return e}function Lx(){const{minBreakpoint:e}=(0,t.useContext)(Tx);return e}const Nx=t.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:o,...a},r)=>{const i=Dx(e,"container"),s="string"==typeof t?`-${t}`:"-fluid";return(0,cm.jsx)(n,{ref:r,...a,className:Mx()(o,t?`${i}${s}`:i)})}));Nx.displayName="Container";const Ix=Nx,Ox=t.forwardRef((({bsPrefix:e,className:t,as:n="div",...o},a)=>{const r=Dx(e,"row"),i=Px(),s=Lx(),l=`${r}-cols`,c=[];return i.forEach((e=>{const t=o[e];let n;delete o[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const a=e!==s?`-${e}`:"";null!=n&&c.push(`${l}${a}-${n}`)})),(0,cm.jsx)(n,{ref:a,...o,className:Mx()(t,r,...c)})}));Ox.displayName="Row";const Rx=Ox,Fx=t.forwardRef(((e,t)=>{const[{className:n,...o},{as:a="div",bsPrefix:r,spans:i}]=function({as:e,bsPrefix:t,className:n,...o}){t=Dx(t,"col");const a=Px(),r=Lx(),i=[],s=[];return a.forEach((e=>{const n=o[e];let a,l,c;delete o[e],"object"==typeof n&&null!=n?({span:a,offset:l,order:c}=n):a=n;const d=e!==r?`-${e}`:"";a&&i.push(!0===a?`${t}${d}`:`${t}${d}-${a}`),null!=c&&s.push(`order${d}-${c}`),null!=l&&s.push(`offset${d}-${l}`)})),[{...o,className:Mx()(n,...i,...s)},{as:e,bsPrefix:t,spans:i}]}(e);return(0,cm.jsx)(a,{...o,ref:t,className:Mx()(n,!i.length&&r)})}));Fx.displayName="Col";const jx=Fx,Yx=!("undefined"==typeof window||!window.document||!window.document.createElement);var zx=!1,Bx=!1;try{var Hx={get passive(){return zx=!0},get once(){return Bx=zx=!0}};Yx&&(window.addEventListener("test",Hx,Hx),window.removeEventListener("test",Hx,!0))}catch(e){}const Vx=function(e,t,n,o){if(o&&"boolean"!=typeof o&&!Bx){var a=o.once,r=o.capture,i=n;!Bx&&a&&(i=n.__once||function e(o){this.removeEventListener(t,e,r),n.call(this,o)},n.__once=i),e.addEventListener(t,i,zx?o:r)}e.addEventListener(t,n,o)};function Ux(e){return e&&e.ownerDocument||document}const Wx=function(e,t,n,o){var a=o&&"boolean"!=typeof o?o.capture:o;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)};var qx;function $x(e){if((!qx&&0!==qx||e)&&Yx){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),qx=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return qx}function Gx(e){const n=function(e){const n=(0,t.useRef)(e);return(0,t.useEffect)((()=>{n.current=e}),[e]),n}(e);return(0,t.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const Kx=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,Jx=function(e,n){return(0,t.useMemo)((()=>function(e,t){const n=Kx(e),o=Kx(t);return e=>{n&&n(e),o&&o(e)}}(e,n)),[e,n])};var Xx=/([A-Z])/g,Qx=/^ms-/;function Zx(e){return function(e){return e.replace(Xx,"-$1").toLowerCase()}(e).replace(Qx,"-ms-")}var eE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const tE=function(e,t){var n="",o="";if("string"==typeof t)return e.style.getPropertyValue(Zx(t))||function(e,t){return function(e){var t=Ux(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(Zx(t));Object.keys(t).forEach((function(a){var r=t[a];r||0===r?function(e){return!(!e||!eE.test(e))}(a)?o+=a+"("+r+") ":n+=Zx(a)+": "+r+";":e.style.removeProperty(Zx(a))})),o&&(n+="transform: "+o+";"),e.style.cssText+=";"+n},nE=function(e,t,n,o){return Vx(e,t,n,o),function(){Wx(e,t,n,o)}};function oE(e,t,n,o){var a,r;null==n&&(r=-1===(a=tE(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(a)*r||0);var i=function(e,t,n){void 0===n&&(n=5);var o=!1,a=setTimeout((function(){o||function(e,t,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent("transitionend",n,o),e.dispatchEvent(a)}}(e,0,!0)}),t+n),r=nE(e,"transitionend",(function(){o=!0}),{once:!0});return function(){clearTimeout(a),r()}}(e,n,o),s=nE(e,"transitionend",t);return function(){i(),s()}}function aE(e){void 0===e&&(e=Ux());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}function rE(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}function iE(e){const n=function(e){const n=(0,t.useRef)(e);return(0,t.useEffect)((()=>{n.current=e}),[e]),n}(e);return(0,t.useCallback)((function(...e){return n.current&&n.current(...e)}),[n])}const sE="data-rr-ui-modal-open",lE=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();e.style={overflow:o.style.overflow,[n]:o.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(tE(o,n)||"0",10)+e.scrollBarWidth}px`),o.setAttribute(sE,""),tE(o,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(sE),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),t}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},cE=(0,t.createContext)(Yx?window:void 0);function dE(){return(0,t.useContext)(cE)}cE.Provider;const uE=(e,t)=>Yx?null==e?(t||Ux()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null,pE=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,hE=function(e,n){return(0,t.useMemo)((()=>function(e,t){const n=pE(e),o=pE(t);return e=>{n&&n(e),o&&o(e)}}(e,n)),[e,n])},mE=void 0!==a.g&&a.g.navigator&&"ReactNative"===a.g.navigator.product,fE="undefined"!=typeof document||mE?t.useLayoutEffect:t.useEffect;function gE(e){if(!e||"function"==typeof e)return null;const{major:n}=function(){const e=t.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}();return n>=19?e.props.ref:e.ref}const vE=function({children:e,in:n,onExited:o,mountOnEnter:a,unmountOnExit:r}){const i=(0,t.useRef)(null),s=(0,t.useRef)(n),l=iE(o);(0,t.useEffect)((()=>{n?s.current=!0:l(i.current)}),[n,l]);const c=hE(i,gE(e)),d=(0,t.cloneElement)(e,{ref:c});return n?d:r||!s.current&&a?null:d},_E=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"],bE=["component"],yE=t.forwardRef(((e,n)=>{let{component:o}=e;const a=function(e){let{onEnter:n,onEntering:o,onEntered:a,onExit:r,onExiting:i,onExited:s,addEndListener:l,children:c}=e,d=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,_E);const u=(0,t.useRef)(null),p=hE(u,gE(c)),h=e=>t=>{e&&u.current&&e(u.current,t)},m=(0,t.useCallback)(h(n),[n]),f=(0,t.useCallback)(h(o),[o]),g=(0,t.useCallback)(h(a),[a]),v=(0,t.useCallback)(h(r),[r]),_=(0,t.useCallback)(h(i),[i]),b=(0,t.useCallback)(h(s),[s]),y=(0,t.useCallback)(h(l),[l]);return Object.assign({},d,{nodeRef:u},n&&{onEnter:m},o&&{onEntering:f},a&&{onEntered:g},r&&{onExit:v},i&&{onExiting:_},s&&{onExited:b},l&&{addEndListener:y},{children:"function"==typeof c?(e,t)=>c(e,Object.assign({},t,{ref:p})):(0,t.cloneElement)(c,{ref:p})})}(function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,bE));return(0,cm.jsx)(o,Object.assign({ref:n},a))})),wE=yE;function kE({children:e,in:n,onExited:o,onEntered:a,transition:r}){const[i,s]=(0,t.useState)(!n);n&&i&&s(!1);const l=function({in:e,onTransition:n}){const o=(0,t.useRef)(null),a=(0,t.useRef)(!0),r=iE(n);return fE((()=>{if(!o.current)return;let t=!1;return r({in:e,element:o.current,initial:a.current,isStale:()=>t}),()=>{t=!0}}),[e,r]),fE((()=>(a.current=!1,()=>{a.current=!0})),[]),o}({in:!!n,onTransition:e=>{Promise.resolve(r(e)).then((()=>{e.isStale()||(e.in?null==a||a(e.element,e.initial):(s(!0),null==o||o(e.element)))}),(t=>{throw e.in||s(!0),t}))}}),c=hE(l,gE(e));return i&&!n?null:(0,t.cloneElement)(e,{ref:c})}function xE(e,t,n){return e?(0,cm.jsx)(wE,Object.assign({},n,{component:e})):t?(0,cm.jsx)(kE,Object.assign({},n,{transition:t})):(0,cm.jsx)(vE,Object.assign({},n))}const EE=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let SE;const ME=(0,t.forwardRef)(((e,n)=>{let{show:a=!1,role:r="dialog",className:i,style:s,children:l,backdrop:c=!0,keyboard:d=!0,onBackdropClick:u,onEscapeKeyDown:p,transition:h,runTransition:m,backdropTransition:f,runBackdropTransition:g,autoFocus:v=!0,enforceFocus:_=!0,restoreFocus:b=!0,restoreFocusOptions:y,renderDialog:w,renderBackdrop:k=e=>(0,cm.jsx)("div",Object.assign({},e)),manager:x,container:E,onShow:S,onHide:M=()=>{},onExit:T,onExited:C,onExiting:A,onEnter:D,onEntering:P,onEntered:L}=e,N=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,EE);const I=dE(),O=function(e,n){const o=dE(),[a,r]=(0,t.useState)((()=>uE(e,null==o?void 0:o.document)));if(!a){const t=uE(e);t&&r(t)}return(0,t.useEffect)((()=>{}),[n,a]),(0,t.useEffect)((()=>{const t=uE(e);t!==a&&r(t)}),[e,a]),a}(E),R=function(e){const n=dE(),o=e||function(e){return SE||(SE=new lE({ownerDocument:null==e?void 0:e.document})),SE}(n),a=(0,t.useRef)({dialog:null,backdrop:null});return Object.assign(a.current,{add:()=>o.add(a.current),remove:()=>o.remove(a.current),isTopModal:()=>o.isTopModal(a.current),setDialogRef:(0,t.useCallback)((e=>{a.current.dialog=e}),[]),setBackdropRef:(0,t.useCallback)((e=>{a.current.backdrop=e}),[])})}(x),F=function(){const e=(0,t.useRef)(!0),n=(0,t.useRef)((()=>e.current));return(0,t.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),n.current}(),j=function(e){const n=(0,t.useRef)(null);return(0,t.useEffect)((()=>{n.current=e})),n.current}(a),[Y,z]=(0,t.useState)(!a),B=(0,t.useRef)(null);(0,t.useImperativeHandle)(n,(()=>R),[R]),Yx&&!j&&a&&(B.current=aE(null==I?void 0:I.document)),a&&Y&&z(!1);const H=iE((()=>{if(R.add(),G.current=nE(document,"keydown",q),$.current=nE(document,"focus",(()=>setTimeout(U)),!0),S&&S(),v){var e,t;const n=aE(null!=(e=null==(t=R.dialog)?void 0:t.ownerDocument)?e:null==I?void 0:I.document);R.dialog&&n&&!rE(R.dialog,n)&&(B.current=n,R.dialog.focus())}})),V=iE((()=>{var e;R.remove(),null==G.current||G.current(),null==$.current||$.current(),b&&(null==(e=B.current)||null==e.focus||e.focus(y),B.current=null)}));(0,t.useEffect)((()=>{a&&O&&H()}),[a,O,H]),(0,t.useEffect)((()=>{Y&&V()}),[Y,V]),function(e){const n=function(e){const n=(0,t.useRef)(e);return n.current=e,n}(e);(0,t.useEffect)((()=>()=>n.current()),[])}((()=>{V()}));const U=iE((()=>{if(!_||!F()||!R.isTopModal())return;const e=aE(null==I?void 0:I.document);R.dialog&&e&&!rE(R.dialog,e)&&R.dialog.focus()})),W=iE((e=>{e.target===e.currentTarget&&(null==u||u(e),!0===c&&M())})),q=iE((e=>{d&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&R.isTopModal()&&(null==p||p(e),e.defaultPrevented||M())})),$=(0,t.useRef)(),G=(0,t.useRef)();if(!O)return null;const K=Object.assign({role:r,ref:R.setDialogRef,"aria-modal":"dialog"===r||void 0},N,{style:s,className:i,tabIndex:-1});let J=w?w(K):(0,cm.jsx)("div",Object.assign({},K,{children:t.cloneElement(l,{role:"document"})}));J=xE(h,m,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!a,onExit:T,onExiting:A,onExited:(...e)=>{z(!0),null==C||C(...e)},onEnter:D,onEntering:P,onEntered:L,children:J});let X=null;return c&&(X=k({ref:R.setBackdropRef,onClick:W}),X=xE(f,g,{in:!!a,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:X})),(0,cm.jsx)(cm.Fragment,{children:o.createPortal((0,cm.jsxs)(cm.Fragment,{children:[X,J]}),O)})}));ME.displayName="Modal";const TE=Object.assign(ME,{Manager:lE});var CE=Function.prototype.bind.call(Function.prototype.call,[].slice);function AE(e,t){return CE(e.querySelectorAll(t))}function DE(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const PE=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",LE=".sticky-top",NE=".navbar-toggler";class IE extends lE{adjustAndStore(e,t,n){const o=t.style[e];t.dataset[e]=o,tE(t,{[e]:`${parseFloat(tE(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],tE(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,o;if(o="modal-open",(n=t).classList?n.classList.add(o):function(e,t){return e.classList?e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)),!e.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";AE(t,PE).forEach((t=>this.adjustAndStore(a,t,e.scrollBarWidth))),AE(t,LE).forEach((t=>this.adjustAndStore(r,t,-e.scrollBarWidth))),AE(t,NE).forEach((t=>this.adjustAndStore(r,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,o;o="modal-open",(n=t).classList?n.classList.remove(o):"string"==typeof n.className?n.className=DE(n.className,o):n.setAttribute("class",DE(n.className&&n.className.baseVal||"",o));const a=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";AE(t,PE).forEach((e=>this.restore(a,e))),AE(t,LE).forEach((e=>this.restore(r,e))),AE(t,NE).forEach((e=>this.restore(r,e)))}}let OE;function RE(e,t){const n=tE(e,t)||"",o=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*o}function FE(e,t){const n=RE(e,"transitionDuration"),o=RE(e,"transitionDelay"),a=oE(e,(n=>{n.target===e&&(a(),t(n))}),n+o)}const jE=t.forwardRef((({onEnter:e,onEntering:n,onEntered:a,onExit:r,onExiting:i,onExited:s,addEndListener:l,children:c,childRef:d,...u},p)=>{const h=(0,t.useRef)(null),m=Jx(h,d),f=e=>{var t;m((t=e)&&"setState"in t?o.findDOMNode(t):null!=t?t:null)},g=e=>t=>{e&&h.current&&e(h.current,t)},v=(0,t.useCallback)(g(e),[e]),_=(0,t.useCallback)(g(n),[n]),b=(0,t.useCallback)(g(a),[a]),y=(0,t.useCallback)(g(r),[r]),w=(0,t.useCallback)(g(i),[i]),k=(0,t.useCallback)(g(s),[s]),x=(0,t.useCallback)(g(l),[l]);return(0,cm.jsx)(Bv,{ref:p,...u,onEnter:v,onEntered:b,onEntering:_,onExit:y,onExited:k,onExiting:w,addEndListener:x,nodeRef:h,children:"function"==typeof c?(e,t)=>c(e,{...t,ref:f}):t.cloneElement(c,{ref:f})})})),YE=jE,zE={[Rv]:"show",[Fv]:"show"},BE=t.forwardRef((({className:e,children:n,transitionClasses:o={},onEnter:a,...r},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...r},l=(0,t.useCallback)(((e,t)=>{!function(e){e.offsetHeight}(e),null==a||a(e,t)}),[a]);return(0,cm.jsx)(YE,{ref:i,addEndListener:FE,...s,onEnter:l,childRef:gE(n),children:(a,r)=>t.cloneElement(n,{...r,className:Mx()("fade",e,n.props.className,zE[a],o[a])})})}));BE.displayName="Fade";const HE=BE,VE=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...o},a)=>(t=Dx(t,"modal-body"),(0,cm.jsx)(n,{ref:a,className:Mx()(e,t),...o}))));VE.displayName="ModalBody";const UE=VE,WE=t.createContext({onHide(){}}),qE=t.forwardRef((({bsPrefix:e,className:t,contentClassName:n,centered:o,size:a,fullscreen:r,children:i,scrollable:s,...l},c)=>{const d=`${e=Dx(e,"modal")}-dialog`,u="string"==typeof r?`${e}-fullscreen-${r}`:`${e}-fullscreen`;return(0,cm.jsx)("div",{...l,ref:c,className:Mx()(d,t,a&&`${e}-${a}`,o&&`${d}-centered`,s&&`${d}-scrollable`,r&&u),children:(0,cm.jsx)("div",{className:Mx()(`${e}-content`,n),children:i})})}));qE.displayName="ModalDialog";const $E=qE,GE=t.forwardRef((({className:e,bsPrefix:t,as:n="div",...o},a)=>(t=Dx(t,"modal-footer"),(0,cm.jsx)(n,{ref:a,className:Mx()(e,t),...o}))));GE.displayName="ModalFooter";const KE=GE,JE={"aria-label":kn().string,onClick:kn().func,variant:kn().oneOf(["white"])},XE=t.forwardRef((({className:e,variant:t,"aria-label":n="Close",...o},a)=>(0,cm.jsx)("button",{ref:a,type:"button",className:Mx()("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...o})));XE.displayName="CloseButton",XE.propTypes=JE;const QE=XE,ZE=t.forwardRef((({closeLabel:e="Close",closeVariant:n,closeButton:o=!1,onHide:a,children:r,...i},s)=>{const l=(0,t.useContext)(WE),c=Gx((()=>{null==l||l.onHide(),null==a||a()}));return(0,cm.jsxs)("div",{ref:s,...i,children:[r,o&&(0,cm.jsx)(QE,{"aria-label":e,variant:n,onClick:c})]})})),eS=t.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:o=!1,...a},r)=>(e=Dx(e,"modal-header"),(0,cm.jsx)(ZE,{ref:r,...a,className:Mx()(t,e),closeLabel:n,closeButton:o}))));eS.displayName="ModalHeader";const tS=eS,nS=t.forwardRef(((e,t)=>(0,cm.jsx)("div",{...e,ref:t,className:Mx()(e.className,"h4")})));const oS=t.forwardRef((({className:e,bsPrefix:t,as:n=nS,...o},a)=>(t=Dx(t,"modal-title"),(0,cm.jsx)(n,{ref:a,className:Mx()(e,t),...o}))));oS.displayName="ModalTitle";const aS=oS;function rS(e){return(0,cm.jsx)(HE,{...e,timeout:null})}function iS(e){return(0,cm.jsx)(HE,{...e,timeout:null})}const sS=t.forwardRef((({bsPrefix:e,className:n,style:o,dialogClassName:a,contentClassName:r,children:i,dialogAs:s=$E,"data-bs-theme":l,"aria-labelledby":c,"aria-describedby":d,"aria-label":u,show:p=!1,animation:h=!0,backdrop:m=!0,keyboard:f=!0,onEscapeKeyDown:g,onShow:v,onHide:_,container:b,autoFocus:y=!0,enforceFocus:w=!0,restoreFocus:k=!0,restoreFocusOptions:x,onEntered:E,onExit:S,onExiting:M,onEnter:T,onEntering:C,onExited:A,backdropClassName:D,manager:P,...L},N)=>{const[I,O]=(0,t.useState)({}),[R,F]=(0,t.useState)(!1),j=(0,t.useRef)(!1),Y=(0,t.useRef)(!1),z=(0,t.useRef)(null),[B,H]=(0,t.useState)(null),V=Jx(N,H),U=Gx(_),W=function(){const{dir:e}=(0,t.useContext)(Tx);return"rtl"===e}();e=Dx(e,"modal");const q=(0,t.useMemo)((()=>({onHide:U})),[U]);function $(){return P||function(e){return OE||(OE=new IE(e)),OE}({isRTL:W})}function G(e){if(!Yx)return;const t=$().getScrollbarWidth()>0,n=e.scrollHeight>Ux(e).documentElement.clientHeight;O({paddingRight:t&&!n?$x():void 0,paddingLeft:!t&&n?$x():void 0})}const K=Gx((()=>{B&&G(B.dialog)}));!function(e){const n=function(e){const n=(0,t.useRef)(e);return n.current=e,n}(e);(0,t.useEffect)((()=>()=>n.current()),[])}((()=>{Wx(window,"resize",K),null==z.current||z.current()}));const J=()=>{j.current=!0},X=e=>{j.current&&B&&e.target===B.dialog&&(Y.current=!0),j.current=!1},Q=()=>{F(!0),z.current=oE(B.dialog,(()=>{F(!1)}))},Z=e=>{"static"!==m?Y.current||e.target!==e.currentTarget?Y.current=!1:null==_||_():(e=>{e.target===e.currentTarget&&Q()})(e)},ee=(0,t.useCallback)((t=>(0,cm.jsx)("div",{...t,className:Mx()(`${e}-backdrop`,D,!h&&"show")})),[h,D,e]),te={...o,...I};return te.display="block",(0,cm.jsx)(WE.Provider,{value:q,children:(0,cm.jsx)(TE,{show:p,ref:V,backdrop:m,container:b,keyboard:!0,autoFocus:y,enforceFocus:w,restoreFocus:k,restoreFocusOptions:x,onEscapeKeyDown:e=>{f?null==g||g(e):(e.preventDefault(),"static"===m&&Q())},onShow:v,onHide:_,onEnter:(e,t)=>{e&&G(e),null==T||T(e,t)},onEntering:(e,t)=>{null==C||C(e,t),Vx(window,"resize",K)},onEntered:E,onExit:e=>{null==z.current||z.current(),null==S||S(e)},onExiting:M,onExited:e=>{e&&(e.style.display=""),null==A||A(e),Wx(window,"resize",K)},manager:$(),transition:h?rS:void 0,backdropTransition:h?iS:void 0,renderBackdrop:ee,renderDialog:t=>(0,cm.jsx)("div",{role:"dialog",...t,style:te,className:Mx()(n,e,R&&`${e}-static`,!h&&"show"),onClick:m?Z:void 0,onMouseUp:X,"data-bs-theme":l,"aria-label":u,"aria-labelledby":c,"aria-describedby":d,children:(0,cm.jsx)(s,{...L,onMouseDown:J,className:a,contentClassName:r,children:i})})})})}));sS.displayName="Modal";const lS=Object.assign(sS,{Body:UE,Header:tS,Title:aS,Footer:KE,Dialog:$E,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),cS={type:kn().string,tooltip:kn().bool,as:kn().elementType},dS=t.forwardRef((({as:e="div",className:t,type:n="valid",tooltip:o=!1,...a},r)=>(0,cm.jsx)(e,{...a,ref:r,className:Mx()(t,`${n}-${o?"tooltip":"feedback"}`)})));dS.displayName="Feedback",dS.propTypes=cS;const uS=dS,pS=t.createContext({}),hS=t.forwardRef((({id:e,bsPrefix:n,className:o,type:a="checkbox",isValid:r=!1,isInvalid:i=!1,as:s="input",...l},c)=>{const{controlId:d}=(0,t.useContext)(pS);return n=Dx(n,"form-check-input"),(0,cm.jsx)(s,{...l,ref:c,type:a,id:e||d,className:Mx()(o,n,r&&"is-valid",i&&"is-invalid")})}));hS.displayName="FormCheckInput";const mS=hS,fS=t.forwardRef((({bsPrefix:e,className:n,htmlFor:o,...a},r)=>{const{controlId:i}=(0,t.useContext)(pS);return e=Dx(e,"form-check-label"),(0,cm.jsx)("label",{...a,ref:r,htmlFor:o||i,className:Mx()(n,e)})}));fS.displayName="FormCheckLabel";const gS=fS,vS=t.forwardRef((({id:e,bsPrefix:n,bsSwitchPrefix:o,inline:a=!1,reverse:r=!1,disabled:i=!1,isValid:s=!1,isInvalid:l=!1,feedbackTooltip:c=!1,feedback:d,feedbackType:u,className:p,style:h,title:m="",type:f="checkbox",label:g,children:v,as:_="input",...b},y)=>{n=Dx(n,"form-check"),o=Dx(o,"form-switch");const{controlId:w}=(0,t.useContext)(pS),k=(0,t.useMemo)((()=>({controlId:e||w})),[w,e]),x=!v&&null!=g&&!1!==g||function(e,n){return t.Children.toArray(e).some((e=>t.isValidElement(e)&&e.type===n))}(v,gS),E=(0,cm.jsx)(mS,{...b,type:"switch"===f?"checkbox":f,ref:y,isValid:s,isInvalid:l,disabled:i,as:_});return(0,cm.jsx)(pS.Provider,{value:k,children:(0,cm.jsx)("div",{style:h,className:Mx()(p,x&&n,a&&`${n}-inline`,r&&`${n}-reverse`,"switch"===f&&o),children:v||(0,cm.jsxs)(cm.Fragment,{children:[E,x&&(0,cm.jsx)(gS,{title:m,children:g}),d&&(0,cm.jsx)(uS,{type:u,tooltip:c,children:d})]})})})}));vS.displayName="FormCheck";const _S=Object.assign(vS,{Input:mS,Label:gS}),bS=["as","disabled"];function yS({tagName:e,disabled:t,href:n,target:o,rel:a,role:r,onClick:i,tabIndex:s=0,type:l}){e||(e=null!=n||null!=o||null!=a?"a":"button");const c={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},c];const d=o=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&o.preventDefault(),t?o.stopPropagation():null==i||i(o)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=r?r:"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:"a"===e?o:void 0,"aria-disabled":t||void 0,rel:"a"===e?a:void 0,onClick:d,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),d(e))}},c]}const wS=t.forwardRef(((e,t)=>{let{as:n,disabled:o}=e,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}(e,bS);const[r,{tagName:i}]=yS(Object.assign({tagName:n,disabled:o},a));return(0,cm.jsx)(i,Object.assign({},a,r,{ref:t}))}));wS.displayName="Button";const kS=t.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:o,active:a=!1,disabled:r=!1,className:i,...s},l)=>{const c=Dx(t,"btn"),[d,{tagName:u}]=yS({tagName:e,disabled:r,...s}),p=u;return(0,cm.jsx)(p,{...d,...s,ref:l,disabled:r,className:Mx()(i,c,a&&"active",n&&`${c}-${n}`,o&&`${c}-${o}`,s.href&&r&&"disabled")})}));kS.displayName="Button";const xS=kS,ES=t.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:o,borderless:a,hover:r,size:i,variant:s,responsive:l,...c},d)=>{const u=Dx(e,"table"),p=Mx()(t,u,s&&`${u}-${s}`,i&&`${u}-${i}`,n&&`${u}-${"string"==typeof n?`striped-${n}`:"striped"}`,o&&`${u}-bordered`,a&&`${u}-borderless`,r&&`${u}-hover`),h=(0,cm.jsx)("table",{...c,className:p,ref:d});if(l){let e=`${u}-responsive`;return"string"==typeof l&&(e=`${e}-${l}`),(0,cm.jsx)("div",{className:e,children:h})}return h})),SS=ES;function MS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function TS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MS(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CS=function(){return!!e})()}var AS,DS=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,CS()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,checkSimilarity:!0,toTemplateSection:!1,customFields:[],mediaZipFileNames:[],mediaUploadData:{zipFileName:"",data:[]},staticString:"->static",mathString:"->math",customString1:"->cus1",number:"->num",customString2:"->cus2",openAI:"->openAI",dialogOpen:!1,dialogType:"",page:1,listPreviewData:"",PreviewImageTest:""}),(0,p.A)(e,"formulaIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-sum")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"handleOpenAITabClick",u(m().mark((function t(){var n,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=new FormData).set("action","get_setting"),n.set("securekey",window.smack_nonce_object_pro.nonce),t.prev=3,t.next=6,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 6:200===(o=t.sent).status&&(0==o.data.get_key||""==o.data.get_key?e.context.setOpenAIapikey(""):e.context.setOpenAIapikey(o.data.setting)),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(3);case 12:case"end":return t.stop()}}),t,null,[[3,10]])})))),(0,p.A)(e,"sumIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-plus")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-static-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"openAIIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-icon-Ai_icons-05")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-openAI-edit-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"edit1IconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-edit1")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-edit-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"handlePreviewTestModelOpen",(function(t){var n=document.querySelectorAll("select.select.form-control.w-75")[t],o=null==n?void 0:n.value;o&&"--select--"!==o?(e.getPreviewTestData(),e.setState({dialogOpen:!0,dialogType:"preview&test"})):bn.info("Please select a CSV field before previewing.")})),(0,p.A)(e,"handleClose",(function(){e.setState({dialogOpen:!1,dialogType:"",listPreviewData:""})})),(0,p.A)(e,"handlePageChange",(function(t){e.setState((function(e){return{page:Math.max(1,e.page+t)}}))})),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"isSimilar",value:function(e,t,n,o){if(this.context.mediaMappingResult){var a=gu(e).resultKey;if(this.context.mediaMappingResult[a]&&this.context.mediaMappingResult[a][t]===n)return!0}return!(t.toLowerCase()!==n.toLowerCase()||!this.state.checkSimilarity||this.context.isTemplate||this.props.onEditTemplate||(this.onMappingSelect(e,t,n,!1),0))}},{key:"onMappingSelect",value:function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=gu(e).resultKey,r=this.context.mediaMappingResult[a];if("--select--"===n||"Header Manipulation"===n)return r?void(this.context.mediaMappingResult[a][t]&&(delete this.context.mediaMappingResult[a][t],this.setState({checkSimilarity:!1}),this.context.setMediaMappingResult(this.context.mediaMappingResult))):void 0;r?o?this.context.mediaMappingResult[a][t]=n:this.context.mediaMappingResult[a][t]||(this.context.mediaMappingResult[a][t]=n):(this.context.mediaMappingResult[a]={},this.context.mediaMappingResult[a][t]=n),this.setState({checkSimilarity:!1}),this.context.setMediaMappingResult(this.context.mediaMappingResult)}},{key:"isHeaderManipulation",value:function(e,t,n){var o=gu(e).resultKey,a=this.context.mediaMappingResult[o];if(a){for(var r in a)if(r.search(t+"->")>-1)return setInterval((function(){var t=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-sum")),o=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-plus")),a=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-edit1")),r="";document.getElementById("".concat(e,"-").concat(n,"-icon-Ai_icons-05"))&&(r=document.getElementById("".concat(e,"-").concat(n,"-icon-Ai_icons-05"))),t&&!t.classList.contains("active")&&t.classList.add("active"),o&&!o.classList.contains("active")&&o.classList.add("active"),a&&!a.classList.contains("active")&&a.classList.add("active"),r&&r&&!r.classList.contains("active")&&r.classList.add("active")}),500),!0;return!1}return!1}},{key:"getFieldValueFromResult",value:function(e,t){var n=gu(e).resultKey;return this.context.mediaMappingResult[n]&&this.context.mediaMappingResult[n][t]?this.context.mediaMappingResult[n][t]:""}},{key:"getFieldValueFromCustomFields",value:function(e){var t=this.state.customFields[e];if(t)return t.value}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueSelect",value:function(e,t){var n=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-sum")),o=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-plus")),a=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-edit1")),r="";if(document.getElementById("custom-field-creator-".concat(t,"-icon-Ai_icons-05"))&&(r=document.getElementById("custom-field-creator-".concat(t,"-icon-Ai_icons-05"))),"Header Manipulation"===e)return n.classList.add("active"),o.classList.add("active"),a.classList.add("active"),r&&r.classList.add("active"),this.state.customFields[t].value="",void this.setState({customFields:this.state.customFields});this.state.customFields[t].value="--select--"===e?"":e,n.classList.remove("active"),o.classList.remove("active"),a.classList.remove("active"),r&&r.classList.remove("active")}},{key:"onCustomFieldValueChange",value:function(e,t){this.state.customFields[t].value=e,this.setState({customFields:this.state.customFields})}},{key:"componentDidMount",value:function(){this.handleOpenAITabClick()}},{key:"enableopenAIIconClick",value:function(){bn.info("To enable this, please Save your API Key In settings page")}},{key:"onZipProcess",value:function(e,t,n,o,a,r,i){var s=new FormData;s.append("zipFile",t,t.name),"ngg_pictures"===this.context.mediaCsvInfo.selectedtype?s.append("action","zip_ngg_upload"):s.append("action","zip_upload"),s.append("securekey",window.smack_nonce_object_pro.nonce);var l=new XMLHttpRequest;return l.open("POST",ajaxurl),l.upload.onprogress=function(e){r(e.lengthComputable,e.loaded,e.total)},l.onload=function(){if(l.status>=200&&l.status<300){o(JSON.parse(l.responseText));var e=JSON.parse(l.responseText);if(e.success)if(null==e.filename)"ngg_pictures"!=this.context.mediaCsvInfo.selectedtype&&bn.info("There is no image files in the uploaded zip file");else{this.setState({mediaZipFileNames:e.filename}),document.getElementById("upload-zip-open").click();for(var t=[],n=e.filename.length,r=0;r<n;r++)t.push({filename:e.filename[r],size:e.size[r]});this.state.mediaUploadData.zipFileName=e.zip_file_name,this.state.mediaUploadData.data=t,this.setState({mediaUploadData:this.state.mediaUploadData},(function(){}))}else bn.error(e.message)}else a("oh no")}.bind(this),l.send(s),{abort:function(){l.abort(),i()}}}},{key:"deleteImage",value:(h=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","delete_image"),o.set("image",t),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:(a=e.sent)&&a.data&&200==a.status&&a.data.success&&(this.state.mediaUploadData.data.splice(n,1),this.setState({mediaZipFileNames:this.state.mediaZipFileNames})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return h.apply(this,arguments)})},{key:"checkMandatory",value:function(){if("Insert"===this.context.mediaCsvInfo.replaceExistingItem&&"Local"==this.context.selectedMediaType)var e=["file_name"];else"Insert"===this.context.mediaCsvInfo.replaceExistingItem&&"External"==this.context.selectedMediaType?e=["actual_url"]:"Update"===this.context.mediaCsvInfo.replaceExistingItem&&(e=["media_id"]);for(var t=0;t<this.context.allPluginFieldsMedia.length;t++){var n=this.context.allPluginFieldsMedia[t];for(var o in n){var a=n[o];if(a)for(var r=0;r<a.length;r++)if(e.includes(a[r].name)&&!this.checkKeyExistInMapping(a[r].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var n in this.context.mediaMappingResult)this.context.mediaMappingResult[n]&&Object.keys(this.context.mediaMappingResult[n]).includes(e)&&this.context.mediaMappingResult[n][e]&&(t=!0);return!!t||(bn.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(d=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.customFields)for(t=0;t<this.state.customFields.length;t++)n=this.state.customFields[t],o=n.name.trim(),n.value&&o&&(this.context.mediaMappingResult.CORECUSTFIELDS||(this.context.mediaMappingResult.CORECUSTFIELDS={}),this.context.mediaMappingResult.CORECUSTFIELDS[n.label]=n.value);if(this.checkMandatory()){e.next=3;break}return e.abrupt("return");case 3:return this.context.setMappingType("mapping-section"),a=new FormData,this.props.fromEditTemplate?a.set("action","saveTemplate"):(a.set("action","saveMappedFields"),a.set("HashKey",this.context.mediaCsvInfo.hashKey)),a.set("Types",this.context.mediaCsvInfo.selectedtype),a.set("MappedFields",JSON.stringify(this.context.mediaMappingResult)),a.set("MappingType","mapping-section"),this.context.isTemplate&&a.set("UseTemplateState","true"),this.context.isTemplate||this.props.fromEditTemplate?(a.set("TemplateName",this.context.existingTemplateName),a.set("NewTemplate",this.context.mediaCsvInfo.templateName)):(a.set("TemplateName",this.context.mediaCsvInfo.templateName),a.set("UseTemplateState","false")),a.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=13,e.next=16,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 16:(r=e.sent)&&r.data&&(200==r.status&&r.data.success?(this.setState({loading:!1}),this.props.fromEditTemplate?(this.props.onEditTemplate(!1),this.setTemplateSection()):"WooCommerce Orders"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Product"===this.context.mediaCsvInfo.selectedtype||"Media"===this.context.mediaCsvInfo.selectedtype||"Posts"===this.context.mediaCsvInfo.selectedtype||"Pages"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Coupons"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Product Variations"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Refunds"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Attributes"===this.context.mediaCsvInfo.selectedtype||"Comments"===this.context.mediaCsvInfo.selectedtype||"nav_menu_item"===this.context.mediaCsvInfo.selectedtype||"widgets"===this.context.mediaCsvInfo.selectedtype||"elementor_library"===this.context.mediaCsvInfo.selectedtype?this.context.setshowMediaComponent("import-config"):this.context.setshowComponent("import-config")):(this.setState({loading:!1}),bn.error(r.data.message+" Please Choose Another Name"))),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(13),console.log(e.t0),this.setState({loading:!1});case 24:case"end":return e.stop()}}),e,this,[[13,20]])}))),function(){return d.apply(this,arguments)})},{key:"setTemplateSection",value:function(){this.context.setshowMediaComponent("upload-dashboard"),this.setState({toTemplateSection:!0})}},{key:"getPreviewTestData",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_image_url"),t.set("MappedFields",JSON.stringify(this.context.mediaMappingResult)),t.set("line_number",this.state.page),t.set("HashKey",this.context.mediaCsvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 13:e.prev=13,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(){return a.apply(this,arguments)})},{key:"getTestResultData",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_test_result"),t.set("MappedFields",JSON.stringify(this.state.listPreviewData)),t.set("image_url",this.state.listPreviewData.actual_url),t.set("line_number",this.state.page),t.set("HashKey",this.context.mediaCsvInfo.hashKey),e.prev=6,e.next=9,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:return n=e.sent,console.log("response","color: #7f2200",n),this.setState({PreviewImageTest:n.data}),e.abrupt("return",n.data);case 15:e.prev=15,e.t0=e.catch(6),console.error("Error fetching preview data:",e.t0);case 18:case"end":return e.stop()}}),e,this,[[6,15]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e,n,o,a,r,i,s,l,c=this,d=this.state,u=d.dialogOpen,p=d.dialogType,h=d.page;return this.state.toTemplateSection?t.createElement(ux,{toManagerTemplateSection:!0}):t.createElement("div",{className:"container",id:"mapping-accordion"},t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"mapping-switcher"},t.createElement("li",{className:"active",onClick:function(){c.context.setshowMediaComponent("mapping-section")}},this.context.language.ADVANCEDMODE),t.createElement("li",{onClick:function(){c.context.setshowMediaComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),t.createElement("div",{style:{marginLeft:"910px",display:"flex",alignItems:"center",cursor:"pointer"},onMouseEnter:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="red"},onMouseLeave:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="#459cdd"},onClick:function(e){e.currentTarget.querySelector(".text").style.color="#459cdd",c.context.setDrawerValue("media#2"),c.context.setDrawerOpen(!0)}},t.createElement("span",{className:"text",style:{color:"#459cdd",fontSize:"14px",lineHeight:"14px",display:"flex",flexDirection:"row",marginLeft:"-100px",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"mt50"}),this.context.allPluginFieldsMedia.map((function(e,n){console.log(c.context.allPluginFieldsMedia);var o=Object.keys(e)[0];if(!gu(o))return t.createElement("div",null,"This ",o," support not implemented ");var a=!1;return o||(a=!0),e[o]||Array.isArray(e[o])||(a=!0),a?void 0:t.createElement("div",null,t.createElement("div",{className:"card csv-importer-panel "},t.createElement("h1",{className:"card-header main-heading ".concat(0==n?"active":""),id:o,onClick:function(){toggle_func(o)}},c.context.language[gu(o).languageName]," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"".concat(o,"-body"),style:{display:0==n?"block":"none"}},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,c.context.language.WPFIELDS),t.createElement("th",null,c.context.language.CSVHEADER),"Media"!==c.context.mediaCsvInfo.selectedtype&&t.createElement("th",null,c.context.language.Action))),t.createElement("tbody",null,e[o].map((function(e,n){return t.createElement("tr",null,t.createElement("td",null,t.createElement("label",{className:"wpfields"},e.label),t.createElement("label",{className:"sub-text"},"[",c.context.language.Name,":"," ",e.name,"]"," ")),t.createElement("td",null,t.createElement("select",{className:"select form-control w-75",onChange:function(t){c.onMappingSelect.bind(c)(o,e.name,t.target.value,!0,n)}},t.createElement("optgroup",{label:gu(o).name},t.createElement("option",null,"--select--"),c.context.csvFields.map((function(n){return t.createElement("option",{selected:c.isSimilar(o,e.name,n)},n)})),t.createElement("option",{selected:c.isHeaderManipulation(o,e.name,n)},"Header Manipulation")))),"Actual URL"===e.label&&t.createElement("a",{className:"action-icon",style:{height:"41px",fontSize:"25px",marginRight:"5px",cursor:"pointer"},onClick:function(){return c.handlePreviewTestModelOpen(n)},title:"Preview&Test"},t.createElement(uk,{fontSize:"inherit"})),"Media"!==c.context.mediaCsvInfo.selectedtype&&t.createElement("td",{className:"administrator"!=c.context.currentUser?"action prevent_action":"action"},t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=c.context.currentUser?"This is only for administrator":"Static"},t.createElement("i",{id:"".concat(o,"-").concat(n,"-csv-icon-plus"),className:"csv-icon-plus-square",onClick:function(){"elementor_library"!==c.context.mediaCsvInfo.selectedtype&&c.sumIconOnClick(o,n)},style:{cursor:"elementor_library"===c.context.mediaCsvInfo.selectedtype?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(o,"-").concat(n,"-static-manipulative-screen"),className:"manipulation-screen"},t.createElement("div",{className:"close",onClick:function(){c.sumIconOnClick(o,n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(t){c.onMappingSelect.bind(c)(o,e.name+c.state.staticString,t.target.value)},value:c.getFieldValueFromResult(o,e.name+c.state.staticString),className:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,c.context.language.HINT," :")," ","Specify the CSV header to be added in between the curley braces(",").",t.createElement("div",{className:"d-block"},t.createElement("b",null,c.context.language.Example," :"," ")," ","{post_title}"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=c.context.currentUser?"This is only for administrator":"Formula"},t.createElement("i",{id:"".concat(o,"-").concat(n,"-csv-icon-sum"),className:"csv-icon-sum",onClick:function(e){"elementor_library"!==c.context.mediaCsvInfo.selectedtype&&c.formulaIconOnClick(o,n)},style:{cursor:"elementor_library"===c.context.mediaCsvInfo.selectedtype?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(o,"-").concat(n,"-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.formulaIconOnClick(o,n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(t){c.onMappingSelect.bind(c)(o,e.name+c.state.mathString,t.target.value)},value:c.getFieldValueFromResult(o,e.name+c.state.mathString),class:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,c.context.language.HIN," :")," ","Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",t.createElement("div",{class:"d-block"},t.createElement("b",null,c.context.language.Example," :")," ","MATH ({product_quantity}/{discount_price})"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=c.context.currentUser?"This is only for administrator":"CustomFunction"},t.createElement("i",{id:"".concat(o,"-").concat(n,"-csv-icon-edit1"),className:"csv-icon-edit1",onClick:function(e){"elementor_library"!==c.context.mediaCsvInfo.selectedtype&&c.edit1IconOnClick(o,n)},style:{cursor:"elementor_library"===c.context.mediaCsvInfo.selectedtype?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(o,"-").concat(n,"-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.edit1IconOnClick(o,n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"text",onChange:function(t){c.onMappingSelect.bind(c)(o,e.name+c.state.customString1,t.target.value)},value:c.getFieldValueFromResult(o,e.name+c.state.customString1),class:"form-control"}),t.createElement("br",null),t.createElement("textarea",{onChange:function(t){c.onMappingSelect.bind(c)(o,e.name+c.state.customString2,t.target.value)},value:c.getFieldValueFromResult(o,e.name+c.state.customString2),class:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,c.context.language.HIN," :")," ","Specify your custom function in textarea",t.createElement("div",{class:"d-block"},t.createElement("b",null,c.context.language.Example," :")," ","str_replace('-', '.', $post_title)"," ")))),("post_content"===e.name||"post_excerpt"===e.name||"featured_image"===e.name)&&t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:!1===c.context.apiKeyValue?"To enable, save your ChatGPT\nAPIkey in Settings page":"administrator"!==c.context.currentUser?"This is only for administrator":"Content Generator",style:{cursor:!1===c.context.apiKeyValue?"not-allowed":"pointer",filter:!1===c.context.apiKeyValue?"blur(0.6px)":"none"}},t.createElement("span",{class:"icon-Ai_icons-05",id:"".concat(o,"-").concat(n,"-icon-Ai_icons-05"),className:"icon-Ai_icons-05",onClick:function(e){"elementor_library"!==c.context.mediaCsvInfo.selectedtype&&(!1===c.context.apiKeyValue?c.enableopenAIIconClick():c.openAIIconOnClick(o,n))},style:{cursor:"elementor_library"===c.context.mediaCsvInfo.selectedtype||0==c.context.apiKeyValue?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(o,"-").concat(n,"-openAI-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.openAIIconOnClick(o,n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("div",{className:"openai_head"},t.createElement("b",null," Select Your Prompt Column:")),t.createElement("select",{onChange:function(t){c.onMappingSelect.bind(c)(o,e.name+c.state.openAI,t.target.value)},value:c.getFieldValueFromResult(o,e.name+c.state.openAI),class:"form-control"},t.createElement("option",null,"--select--"),c.context.csvFields.map((function(e){return t.createElement("option",{key:e,value:e},e)}))),t.createElement("br",null),"featured_image"!==e.name&&t.createElement(t.Fragment,null,t.createElement("div",{className:"openai_head"},t.createElement("b",null," Number of Words:")),t.createElement("input",{type:"number",onChange:function(t){c.onMappingSelect.bind(c)(o,e.name+c.state.number,t.target.value)},value:c.getFieldValueFromResult(o,e.name+c.state.number),class:"form-control"})))))))})))))))})),"WooCommerce Coupons"!==this.context.mediaCsvInfo.selectedtype&&"Media"!==this.context.mediaCsvInfo.selectedtype&&"WooCommerce Product Variations"!==this.context.mediaCsvInfo.selectedtype&&"WooCommerce Refunds"!==this.context.mediaCsvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.mediaCsvInfo.selectedtype&&"Customer Reviews"!==this.context.mediaCsvInfo.selectedtype&&"Images"!==this.context.mediaCsvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.mediaCsvInfo.selectedtype&&"Comments"!==this.context.mediaCsvInfo.selectedtype&&"JetBooking"!==this.context.mediaCsvInfo.selectedtype&&"nav_menu_item"!==this.context.mediaCsvInfo.selectedtype&&"widgets"!==this.context.mediaCsvInfo.selectedtype&&"elementor_library"!==this.context.mediaCsvInfo.selectedtype?t.createElement("div",null,t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",id:"custom-field-creator",onClick:function(){return toggle_func("custom-field-creator")}},"Create WP Custom Fields"," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"custom-field-creator-body"},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.WPFIELDS),t.createElement("th",null,this.context.language.CSVHEADER),t.createElement("th",null,this.context.language.Action))),t.createElement("tbody",null,this.state.customFields.map((function(e,n){return t.createElement("tr",null,t.createElement("td",null,t.createElement("label",{class:"wpfields"},t.createElement("input",{type:"text",value:e.label,class:"form-control",onChange:function(e){c.onCustomFieldLabelChange(e.target.value,n)}})),t.createElement("label",{class:"sub-text"},"[Name: ".concat(e.label,"]")," ")),t.createElement("td",{style:{verticalAlign:"top"}},t.createElement("select",{className:"select form-control w-75",onChange:function(e){c.onCustomFieldValueSelect(e.target.value,n)}},t.createElement("optgroup",{label:"CSV Fields"},t.createElement("option",null,"--select--"),c.context.csvFields.map((function(e){return t.createElement("option",null,e)})),t.createElement("option",null,"Header Manipulation")))),t.createElement("td",{className:"administrator"!=c.context.currentUser?"action prevent_action":"action"},t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=c.context.currentUser?"This is only for administrator":"Static"},t.createElement("i",{id:"custom-field-creator-".concat(n,"-csv-icon-plus"),className:"csv-icon-plus-square",onClick:function(){c.sumIconOnClick("custom-field-creator",n)}}),t.createElement("div",{id:"custom-field-creator-".concat(n,"-static-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.sumIconOnClick("custom-field-creator",n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(e){c.onCustomFieldValueChange(e.target.value,n)},value:c.getFieldValueFromCustomFields(n),className:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,c.context.language.HINT," :")," Specify the CSV header to be added in between the curley braces(",").",t.createElement("div",{className:"d-block"},t.createElement("b",null,c.context.language.Example,":")," ","{post_title}"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=c.context.currentUser?"This is only for administrator":"Formula"},t.createElement("i",{id:"custom-field-creator-".concat(n,"-csv-icon-sum"),className:"csv-icon-sum",onClick:function(){c.formulaIconOnClick("custom-field-creator",n)}}),t.createElement("div",{id:"custom-field-creator-".concat(n,"-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.formulaIconOnClick("custom-field-creator",n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("textarea",{onChange:function(e){c.onCustomFieldValueChange(e.target.value,n)},value:c.getFieldValueFromCustomFields(n),class:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,c.context.language.HIN," :")," Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",t.createElement("div",{class:"d-block"},t.createElement("b",null,c.context.language.Example," :")," ","MATH ({product_quantity}/{discount_price})"," ")))),t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"administrator"!=c.context.currentUser?"This is only for administrator":"CustomFunction"},t.createElement("i",{id:"custom-field-creator-".concat(n,"-csv-icon-edit1"),className:"csv-icon-edit1",onClick:function(){c.edit1IconOnClick("custom-field-creator",n)}}),t.createElement("div",{id:"custom-field-creator-".concat(n,"-static-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.edit1IconOnClick("custom-field-creator",n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"text",onChange:function(e){c.onCustomFieldValueChange(e.target.value,n)},value:c.getFieldValueFromCustomFields(n),className:"form-control"}),t.createElement("br",null),t.createElement("textarea",{onChange:function(e){c.onCustomFieldValueChange(e.target.value,n)},value:c.getFieldValueFromCustomFields(n),className:"form-control"})),t.createElement("div",{className:"csv-hint"},t.createElement("b",null,c.context.language.HINT," :")," Specify your custom function in textarea.",t.createElement("div",{className:"d-block"},t.createElement("b",null,c.context.language.Example,":")," ","str_replace('-', '.', $post_title)"," ")))),("post_content"===e.name||"post_excerpt"===e.name||"featured_image"===e.name)&&t.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:!1===c.context.apiKeyValue?"To enable, save your ChatGPT\nAPIkey in Settings page":"administrator"!==c.context.currentUser?"This is only for administrator":"Content Generator",style:{cursor:!1===c.context.apiKeyValue?"not-allowed":"pointer",filter:!1===c.context.apiKeyValue?"blur(0.6px)":"none"}},t.createElement("span",{class:"icon-Ai_icons-05",id:"".concat(pluginId,"-").concat(n,"-icon-Ai_icons-05"),className:"icon-Ai_icons-05",onClick:function(e){"elementor_library"===c.context.mediaCsvInfo.selectedtype&&!1!==c.context.apiKeyValue||c.openAIIconOnClick(pluginId,n)},style:{cursor:"elementor_library"===c.context.mediaCsvInfo.selectedtype||!1===c.context.apiKeyValue?"not-allowed":"pointer"}}),t.createElement("div",{id:"".concat(pluginId,"-").concat(n,"-openAI-edit-manipulative-screen"),className:"manipulation-screen"},t.createElement("span",{className:"close",onClick:function(){c.openAIIconOnClick(pluginId,n)}},"×"),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"form-group"},t.createElement("div",{className:"openai_head"},t.createElement("b",null," Select Your Prompt Column:")),t.createElement("select",{onChange:function(t){c.onMappingSelect.bind(c)(pluginId,e.name+c.state.openAI,t.target.value)},value:c.getFieldValueFromResult(pluginId,e.name+c.state.openAI),class:"form-control"},t.createElement("option",null,"--select--"),c.context.csvFields.map((function(e){return t.createElement("option",{key:e,value:e},e)}))),t.createElement("br",null),"featured_image"!==e.name&&t.createElement(t.Fragment,null,t.createElement("div",{className:"openai_head"},t.createElement("b",null," Number of Words:")),t.createElement("input",{type:"number",onChange:function(t){c.onMappingSelect.bind(c)(pluginId,e.name+c.state.number,t.target.value)},value:c.getFieldValueFromResult(pluginId,e.name+c.state.number),class:"form-control"}))))),t.createElement("a",{class:"action-icon","data-toggle":"tooltip",onClick:function(e){c.deleteCustomField(n)},title:"Delete"},t.createElement("i",{class:"csv-icon-trash-2"}))))})))),t.createElement("div",{class:"float-right mb20"},t.createElement("a",{class:"smack-btn smack-btn-secondary",onClick:function(e){c.addCustomField()}},"Add Custom Field"))))):void 0,t.createElement("div",{className:"col-md-12 text-center mt30"},this.context.isTemplate||this.props.fromEditTemplate?t.createElement("div",null,t.createElement("label",null,this.context.language.UpdateThisMappingAs),t.createElement("input",{type:"text",className:"form-control ml10 d-inline w-25",onChange:function(e){c.context.setMediaCSVInfo(TS(TS({},c.context.mediaCsvInfo),{},{templateName:e.target.value}))},value:this.context.mediaCsvInfo.templateName})):t.createElement("div",null,t.createElement("label",null,"Save this mapping as"),t.createElement("input",{type:"text",onChange:function(e){c.context.setMediaCSVInfo(TS(TS({},c.context.mediaCsvInfo),{},{templateName:e.target.value}))},className:"form-control ml10 d-inline w-25",value:this.context.mediaCsvInfo.templateName}))),t.createElement("div",{class:"col-md-12 mt40 p0"},t.createElement("div",{class:"float-left"},t.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){c.props.onEditTemplate&&c.setTemplateSection(),c.context.setshowMediaComponent("csv-info")}},"Back")),t.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.props.fromEditTemplate?"Save":this.context.language.Continue))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"upload-zip-open","data-toggle":"modal","data-target":"#upload_media"}),t.createElement("div",{id:"upload_media",className:"modal fade payment_modal active",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header border  border-0"},t.createElement("h1",{className:"main-heading text-center py-1 m-auto"},this.state.mediaUploadData.zipFileName),t.createElement("button",{type:"button",className:"close ml0","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.Name),t.createElement("th",null,this.context.language.Size),t.createElement("th",{class:"text-center"},this.context.language.Action))),t.createElement("tbody",null,this.state.mediaUploadData.data.map((function(e,n){return t.createElement("tr",null,t.createElement("td",null,e.filename),t.createElement("td",null,e.size),t.createElement("td",null,t.createElement("a",{className:"action-icon",onClick:function(t){c.deleteImage(e.filename,n)},"data-toggle":"tooltip",title:"Delete"},t.createElement("i",{className:"csv-icon-trash-2"}))))})))))))),t.createElement(N_,{open:u,onClose:this.handleClose,PaperProps:{sx:{width:500}}},t.createElement(J_,null,t.createElement(gk,{display:"flex",justifyContent:"space-between",alignItems:"center"},t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"preview"===p?"Preview":"Preview & Test"),t.createElement(gk,{display:"flex",alignItems:"center",gap:1},t.createElement(kk,{onClick:function(){return c.handlePageChange(-1)},size:"small"},t.createElement(Ck,{fontSize:"small"})),t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"page"),t.createElement(gk,{sx:{border:"1px solid #ccc",borderRadius:"4px",padding:"1px 8px",minWidth:"30px",textAlign:"center",backgroundColor:"#f5f5f5",fontWeight:"normal",fontSize:"13px"}},h),t.createElement(kk,{onClick:function(){return c.handlePageChange(1)},size:"small"},t.createElement(Ak,{fontSize:"small"}))))),t.createElement(eb,{dividers:!0},t.createElement(Tk,null),t.createElement(gk,{mt:2},"preview&test"===p&&(o=null!==(e=null===(n=c.state.listPreviewData)||void 0===n?void 0:n.featured_image)&&void 0!==e?e:"",r=!(a=(l=o.match(/<img[^>]*>/i))?l[0]:null)&&/^https?:\/\/.+\.(?:jpe?g|png|gif|webp|bmp|svg)$/i.test(o)?o:null,i=/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(o)?o:"",s=a||r||i?"":function(e){return e.replace(/<[^>]+>/g,"")}(o),t.createElement(gk,{display:"flex",flexDirection:"column",gap:1},t.createElement(W_,{variant:"subtitle1",mt:0,fontWeight:"bold"},"Result preview"),a&&t.createElement("div",{dangerouslySetInnerHTML:{__html:a},style:{maxWidth:"100%"}}),r&&t.createElement("img",{src:r,alt:"featured",style:{maxWidth:"100%",border:"1px solid #ccc"},onError:function(e){return e.currentTarget.style.display="none"}}),!a&&!r&&s&&t.createElement(W_,{variant:"body2",sx:{whiteSpace:"pre-wrap"}},s),!a&&!r&&!s&&t.createElement(W_,{color:"error"},"Unable to load the image. Please make sure the URL points to a valid image file"))))),t.createElement(jb,null,t.createElement(Ry,{onClick:this.handleClose},"Close"))))}}]);var o,a,d,h}(t.Component);function PS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function LS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PS(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NS=function(){return!!e})()}(0,p.A)(DS,"contextType",f);var IS=Rd.td(AS||(AS=g(["\n  max-width: 250px;\n"]))),OS=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,NS()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,loadingSearch:!1,fromDate:new Date,toDate:new Date,templateName:"",exportTemplates:[]},t.handleChangeFrom=t.handleChangeFrom.bind(t),t.handleChangeTo=t.handleChangeTo.bind(t),t.temp=[],t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"handleChangeFrom",value:function(e){this.setState({fromDate:e})}},{key:"handleChangeTo",value:function(e){this.setState({toDate:e})}},{key:"searchTemplate",value:(p=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","search_template"),t.set("TemplateName",this.state.templateName),t.set("FromDate",_()(this.state.fromDate).format("YYYY-MM-DD")),t.set("ToDate",_()(this.state.toDate).format("YYYY-MM-DD")),t.set("filename",this.context.mediaCsvInfo.fileName),t.set("module",this.context.mediaCsvInfo.selectedtype),t.set("securekey",window.smack_nonce_object_pro.nonce),document.getElementById("searchBtn").disabled=!0,e.prev=9,e.next=12,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 12:n=e.sent,document.getElementById("searchBtn").disabled=!1,n&&n.data&&(200==n.status&&n.data.success?(this.temp=this.context.saveTemplateData,this.context.setSaveTemplateData(n.data.info)):this.context.setSaveTemplateData("")),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(9);case 19:case"end":return e.stop()}}),e,this,[[9,17]])}))),function(){return p.apply(this,arguments)})},{key:"showMappingFromTemplate",value:(d=u(m().mark((function e(){var t,n,o,a,r,i,s=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:"",n=s.length>1&&void 0!==s[1]&&s[1],console.log("sasdadasda showMappingFromTemplate"),(o=new FormData).set("action","templateinfo"),n&&o.set("TemplateName",t),o.set("MediaType",this.context.selectedMediaType),o.set("HashKey",this.context.mediaCsvInfo.hashKey),o.set("Types",this.context.mediaCsvInfo.selectedtype),o.set("Mode",this.context.mediaCsvInfo.replaceExistingItem),o.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=12,e.next=15,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 15:if(!(a=e.sent)||!a.data){e.next=27;break}if(200!=a.status||!a.data.success){e.next=27;break}return this.setState({loading:!1}),r="",n?(this.context.setCurrentUser(a.data.currentuser),this.context.setMediaMappingResult(a.data.already_mapped),this.context.setExistingTemplateName(t),this.context.setCSVInfo(LS(LS({},this.context.csvInfo),{},{templateName:t})),this.context.setIsTemplate(!0),r="normal"===a.data.mapping_type?"mapping-section":"advanced"===a.data.mapping_type?"dragdrop-section":""===a.data.mapping_type?"mapping-section":a.data.mapping_type):(this.context.setIsTemplate(!1),r="mapping-section"),this.context.isXML&&(r="dragdrop-section"),this.context.setCsvFields(a.data.csv_fields),i=mu(a.data.fields),this.context.setAllPluginFieldsMedia(i),this.context.setshowMediaComponent(r),e.abrupt("return");case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(12),console.log(e.t0);case 32:case"end":return e.stop()}}),e,this,[[12,29]])}))),function(){return d.apply(this,arguments)})},{key:"clearSearch",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.mediaCsvInfo.hashKey),t.set("Types",this.context.mediaCsvInfo.selectedtype),t.set("Mode",this.context.mediaCsvInfo.replaceExistingItem),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=7,e.next=10,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&(!1===n.data.fields?this.context.setSaveTemplateData(""):(this.setState({loading:!1}),!0===n.data.show_template&&this.context.setSaveTemplateData(n.data.info))),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.log(e.t0);case 17:case"end":return e.stop()}}),e,this,[[7,14]])}))),function(){return a.apply(this,arguments)})},{key:"DeleteExportTemplate",value:(o=u(m().mark((function e(t,n,o){var a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","DeleteExportTemplate"),a.set("FileName",t),a.set("Module",n),a.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(!(r=e.sent)||!r.data){e.next=16;break}if(200!=r.status||!r.data.success){e.next=16;break}return(i=this.state.exportTemplates).splice(o,1),this.setState({exportTemplates:i}),toast.success("Template Deleted Successfully"),e.abrupt("return");case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(e,t,n){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"container"},t.createElement("div",{className:"csv-importer-panel mt20"},t.createElement("div",{className:"pt20"}),t.createElement("div",{className:"row col-md-11 m-auto clearfix"},t.createElement("div",{className:"form-group col pl0"},t.createElement("label",{for:""},this.context.language.Search),t.createElement("input",{type:"text",onChange:function(t){e.setState({templateName:t.target.value})},class:"form-control",id:"",placeholder:""})),t.createElement("div",{className:"form-group col pl0"},t.createElement("label",{for:""},this.context.language.FromDate),t.createElement(nu(),{selected:this.state.fromDate,className:"form-control",onChange:this.handleChangeFrom}),t.createElement("i",{className:"csv-icon-calendar2 input-icon"})),t.createElement("div",{className:"form-group col pl0"},t.createElement("label",{for:""},this.context.language.ToDate),t.createElement(nu(),{selected:this.state.toDate,className:"form-control",onChange:this.handleChangeTo}),t.createElement("i",{className:"csv-icon-calendar2 input-icon"})),t.createElement("div",{className:"form-group col pl0 d-flex align-items-end"},this.state.loadingSearch?this.context.loaderText:t.createElement(t.Fragment,null,t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.searchTemplate()},id:"searchBtn",value:this.context.language.SEARCH}),t.createElement("button",{type:"button",className:"smack-btn btn-default ml10",style:{whiteSpace:"nowrap"},onClick:function(){e.clearSearch()}},"Clear Search")))),t.createElement("hr",null),t.createElement("div",{className:"p20 col-md-12"},t.createElement("h1",{className:"main-heading d-flex"},this.context.language.SavedTemplate,"     ",t.createElement("div",{style:{display:"flex",alignItems:"center",cursor:"pointer"},onMouseEnter:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="red"},onMouseLeave:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="#459cdd"},onClick:function(t){t.currentTarget.querySelector(".text").style.color="#459cdd",e.context.setDrawerValue("mediaTemplate#1"),e.context.setDrawerOpen(!0)}},t.createElement("div",{className:"text",style:{color:"#459cdd",fontSize:"14px",lineHeight:"14px",display:"flex",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?"))),t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null," ",this.context.language.TEMPLATES),t.createElement("th",null," ",this.context.language.MATCHEDCOLUMNSCOUNT),t.createElement("th",null,this.context.language.MODULE," "),t.createElement("th",null,this.context.language.CREATEDTIME),t.createElement("th",{className:"text-center"},this.context.language.ACTION))),t.createElement("tbody",null,0!=this.context.saveTemplateData.length?this.context.saveTemplateData.map((function(n,o){return t.createElement("tr",null,t.createElement(IS,{title:n.template_name,className:"text-ellipsis"},n.template_name),t.createElement("td",null,n.count),t.createElement("td",null,n.module),t.createElement("td",null,_()(n.created_time).format("lll")),t.createElement("td",null,t.createElement("button",{type:"button",class:"smack-btn smack-btn-info usetemplate",onClick:function(){return e.showMappingFromTemplate(n.template_name,!0)}},e.context.language.USETEMPLATE)))})):t.createElement("tr",null,t.createElement("td",{colspan:"5"},t.createElement("span",{className:"text-danger"},"No Template Found")))))),t.createElement("div",{className:"col-md-12 mt20"},t.createElement("div",{className:"float-left"},t.createElement("input",{type:"button",className:"smack-btn btn-default",value:this.context.language.BACK,onClick:function(){e.context.setshowMediaComponent("csv-info")}})),t.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:t.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.showMappingFromTemplate()}},this.context.language.CREATENEWMAPPING))),t.createElement("div",{className:"clearfix"})))}}]);var o,a,d,p}(t.Component);function RS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function FS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RS(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jS=function(){return!!e})()}(0,p.A)(OS,"contextType",f);var YS=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,jS()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handlePreviewModelOpen",(function(e){t.getPreviewData(),t.setState({dialogOpen:!0,dialogType:"preview"})})),(0,p.A)(t,"handlePreviewTestModelOpen",(function(e){t.getPreviewTestData(),t.setState({dialogOpen:!0,dialogType:"preview&test"})})),(0,p.A)(t,"handleClose",(function(){t.setState({dialogOpen:!1,dialogType:"",listPreviewData:""})})),(0,p.A)(t,"handlePageChange",(function(e){t.setState({listPreviewData:""}),t.setState((function(t){var n=t.page+e;return{page:Math.max(1,Math.min(n,t.limit))}}),(function(){"preview&test"===t.state.dialogType?t.getPreviewTestData():"preview"===t.state.dialogType&&t.getPreviewData()}))})),t.state={loading:!1,initialRowSize:1,initialRowSize1:1,totalCsvRows:"",totalCsvRows1:"",csvInformation:[],currentMode:"draganddrop",customFields:[],xmlData:[],xmlData1:[],scroll:"",dialogOpen:!1,dialogType:"",page:1,listPreviewData:"",PreviewImageTest:"",limit:5},t.csvInformation=[],t.handleScroll=t.handleScroll.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.getCsvFields(this.state.initialRowSize),this.getCsvFields(this.state.initialRowSize1),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll)}},{key:"checkRTLSupport",value:function(){if(document.querySelector("html").getAttribute("dir")){var e=document.getElementById("mapping-sidebar");null!=e&&e.classList.add("rltsupport")}}},{key:"handleScroll",value:function(e){var t=document.getElementById("mapping-sidebar");if(1==this.state.scroll&&null!=t){var n=document.getElementById("mapping-accordion").offsetHeight-300;window.scrollY>200?(t.classList.add("mapping-sidebar-fixed"),window.scrollY>n?t.classList.add("fixed-bottom-position"):t.classList.remove("fixed-bottom-position")):t.classList.remove("mapping-sidebar-fixed")}}},{key:"onZipProcess",value:function(e,t,n,o,a,r,i){var s=new FormData;s.append("zipFile",t,t.name),s.append("action","zip_upload"),s.append("securekey",window.smack_nonce_object_pro.nonce);var l=new XMLHttpRequest;return l.open("POST",ajaxurl),l.upload.onprogress=function(e){r(e.lengthComputable,e.loaded,e.total)},l.onload=function(){if(l.status>=200&&l.status<300){o(JSON.parse(l.responseText));var e=JSON.parse(l.responseText);if(e.success)if(null==e.filename)bn.info("There is no image files in the uploaded zip file");else{this.setState({mediaZipFileNames:e.filename}),document.getElementById("upload-zip-open").click();for(var t=[],n=e.filename.length,r=0;r<n;r++)t.push({filename:e.filename[r],size:e.size[r]});this.state.mediaUploadData.zipFileName=e.zip_file_name,this.state.mediaUploadData.data=t,this.setState({mediaUploadData:this.state.mediaUploadData},(function(){}))}else bn.error(e.message)}else a("oh no")}.bind(this),l.send(s),{abort:function(){l.abort(),i()}}}},{key:"getCsvFields",value:(f=u(m().mark((function e(t){var n,o,a,r,i,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new FormData,this.context.isXML?n.set("action","get_parse_xml"):n.set("action","displayCSV"),n.set("row",t),n.set("HashKey",this.context.mediaCsvInfo.hashKey),n.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=6,e.next=9,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:if((o=e.sent)&&o.data&&200==o.status&&o.data.success)if(this.context.isXML)for(a=o.data.file,this.setState({scroll:a.length}),r=0;r<a.length;r++)0==r&&(this.setState({xmlData:a[r].xml_array}),this.setState({totalCsvRows:a[r].count,loading:!1})),1==r&&(this.setState({xmlData1:a[r].xml_array}),this.setState({totalCsvRows1:a[r].count,loading:!1}));else{for(i=[],s=[],this.csvInformation=[],r=0;r<o.data.Headers.length;r++)i.push(o.data.Headers[r]),s.push(o.data.Values[r]);for(r=0;r<o.data.Headers.length;r++)this.csvInformation.push({csvHeaders:o.data.Headers[r],csvValues:o.data.Values[r]});this.setState({totalCsvRows:o.data.total_rows,loading:!1})}e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return f.apply(this,arguments)})},{key:"onMappingSelect",value:function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=gu(e).resultKey;this.context.mediaMappingResult[a]?o?this.context.mediaMappingResult[a][t]=n:this.context.mediaMappingResult[a][t]?this.context.mediaMappingResult[a][t]+=n:this.context.mediaMappingResult[a][t]=n:(this.context.mediaMappingResult[a]={},this.context.mediaMappingResult[a][t]=n),this.forceUpdate()}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueChange",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?this.state.customFields[t].value+=e:this.state.customFields[t].value=e,this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"checkMandatory",value:function(){if("Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem)var e=["language_code","translated_post_title","translated_taxonomy_title","user_email"];else e=["language_code","translated_post_title","translated_taxonomy_title","user_login","user_email","post_title"];for(var t=0;t<this.context.allPluginFieldsMedia.length;t++){var n=this.context.allPluginFieldsMedia[t];for(var o in n){var a=n[o];if(a)for(var r=0;r<a.length;r++)if(e.includes(a[r].name)&&!this.checkKeyExistInMapping(a[r].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var n in this.context.mediaMappingResult)this.context.mediaMappingResult[n]&&Object.keys(this.context.mediaMappingResult[n]).includes(e)&&this.context.mediaMappingResult[n][e]&&(t=!0);return!!t||(bn.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(h=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.customFields)for(t=0;t<this.state.customFields.length;t++)n=this.state.customFields[t],o=n.name.trim(),n.value&&o&&(this.context.mediaMappingResult.CORECUSTFIELDS||(this.context.mediaMappingResult.CORECUSTFIELDS={}),this.context.mediaMappingResult.CORECUSTFIELDS[n.name]=n.value);if(this.checkMandatory()){e.next=3;break}return e.abrupt("return");case 3:return this.context.setMappingType("dragdrop-section"),a=new FormData,this.props.fromEditTemplate?a.set("action","saveTemplate"):(a.set("action","saveMappedFields"),a.set("HashKey",this.context.mediaCsvInfo.hashKey)),a.set("Types",this.context.mediaCsvInfo.selectedtype),a.set("MappedFields",JSON.stringify(this.context.mediaMappingResult)),a.set("MappingType","dragdrop-section"),this.context.isTemplate&&a.set("UseTemplateState","true"),this.context.isTemplate||this.props.fromEditTemplate?(a.set("TemplateName",this.context.existingTemplateName),a.set("NewTemplate",this.context.mediaCsvInfo.templateName)):(a.set("TemplateName",this.context.mediaCsvInfo.templateName),a.set("UseTemplateState","false")),a.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=12,e.next=15,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 15:r=e.sent,this.setState({loading:!0}),r&&r.data&&(200==r.status&&r.data.success?(this.setState({loading:!1}),this.props.fromEditTemplate?this.props.onEditTemplate(!1):"WooCommerce Orders"===this.context.mediaCsvInfo.selectedtype||"Media"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Coupons"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Product Variations"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Refunds"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Attributes"===this.context.mediaCsvInfo.selectedtype||"Users"===this.context.mediaCsvInfo.selectedtype||"Comments"===this.context.mediaCsvInfo.selectedtype||"nav_menu_item"===this.context.mediaCsvInfo.selectedtype||"widgets"===this.context.mediaCsvInfo.selectedtype||"elementor_library"===this.context.mediaCsvInfo.selectedtype?this.context.setshowMediaComponent("import-config"):this.context.setShowComponent("import-config")):(this.setState({loading:!1}),bn.error(r.data.message+" Please Choose Another Name"))),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),console.log(e.t0),this.setState({loading:!1});case 24:case"end":return e.stop()}}),e,this,[[12,20]])}))),function(){return h.apply(this,arguments)})},{key:"setTemplateSection",value:function(){this.context.setshowMediaComponent("upload-dashboard"),this.setState({toTemplateSection:!0})}},{key:"getPreviewData",value:(d=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_post_content"),t.set("MappedFields",JSON.stringify(this.context.mediaMappingResult)),t.set("line_number",this.state.page),t.set("HashKey",this.context.mediaCsvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 13:e.prev=13,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 16:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(){return d.apply(this,arguments)})},{key:"getPreviewTestData",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_image_url"),t.set("MappedFields",JSON.stringify(this.context.mediaMappingResult)),t.set("image_url",this.state.listPreviewData.actual_url),t.set("line_number",this.state.page),t.set("HashKey",this.context.mediaCsvInfo.hashKey),e.prev=6,e.next=9,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:return n=e.sent,this.setState({listPreviewData:n.data,limit:n.data.total_rows}),e.abrupt("return",n.data);case 14:e.prev=14,e.t0=e.catch(6),console.error("Error fetching preview data:",e.t0);case 17:case"end":return e.stop()}}),e,this,[[6,14]])}))),function(){return a.apply(this,arguments)})},{key:"getTestResultData",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_test_result"),t.set("MappedFields",JSON.stringify(this.state.listPreviewData)),t.set("line_number",this.state.page),t.set("HashKey",this.context.mediaCsvInfo.hashKey),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:return n=e.sent,console.log("response","color: #7f2200",n),this.setState({PreviewImageTest:n.data}),e.abrupt("return",n.data);case 14:e.prev=14,e.t0=e.catch(5),console.error("Error fetching preview data:",e.t0);case 17:case"end":return e.stop()}}),e,this,[[5,14]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e,n,o,a,r,i,s,l,c,d,u,p=this,h=this.state,m=h.dialogOpen,f=h.dialogType,g=h.page,v=this.state,_=(v.initialRowSize,v.totalCsvRows),b=v.totalCsvRows1;return v.initialRowSize1,v.xmlData,this.state.toTemplateSection?t.createElement(ux,{toManagerTemplateSection:!0}):t.createElement(t.Fragment,null,this.context.isXML?t.createElement(t.Fragment,null):t.createElement("div",{className:"container"},t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"mapping-switcher"},t.createElement("li",{onClick:function(){p.context.setshowMediaComponent("mapping-section")}},this.context.language.ADVANCEDMODE),t.createElement("li",{className:"active",onClick:function(){p.context.setshowMediaComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),t.createElement("div",{style:{marginLeft:"910px",display:"flex",alignItems:"center",cursor:"pointer"},onMouseEnter:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="red"},onMouseLeave:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="#459cdd"},onClick:function(e){e.currentTarget.querySelector(".text").style.color="#459cdd",p.context.setDrawerValue("import#3"),p.context.setDrawerOpen(!0)}},t.createElement("span",{className:"text",style:{color:"#459cdd",fontSize:"14px",lineHeight:"14px",display:"flex",flexDirection:"row",marginLeft:"-100px",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?"))),t.createElement("div",{className:"clearfix"}),2===this.state.scroll?t.createElement("p",{className:"text-danger-xml",style:{color:"#e04b4a",float:"right",fontSize:"15px",marginRight:"3%"}},"A single element can be mapped from one parent at a time"):"",t.createElement("div",{className:"row container-fluid ",style:{maxWidth:"1400px",margin:"auto"}},t.createElement("div",{id:"mapping-accordion",className:"col-md-8"},t.createElement("div",{className:"mt50"}),this.context.allPluginFieldsMedia.map((function(e,n){var o=Object.keys(e)[0];if(!gu(o))return t.createElement("div",null," This ",o," support not implemented ");var a=!1;return o||(a=!0),e[o]||Array.isArray(e[o])||(a=!0),a?void 0:t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading ".concat(0==n?"active":""),id:o,onClick:function(){toggle_func(o)}},p.context.language[gu(o).languageName]," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"".concat(o,"-body"),style:{display:0==n?"block":"none"},"data-display":p.state.display},e[o].map((function(e,n){return t.createElement("div",{className:"form-group"},t.createElement("label",null,e.label),t.createElement(Ik.gL,{types:["csvheader"],onDrop:function(t){p.onMappingSelect.bind(p)(o,e.name,"{".concat(t.csvheader,"}"),!1)}},"post_content"===e.name?t.createElement(Ok.CKEditor,{editor:Fk(),data:function(){var t=gu(o).resultKey;if(p.context.mediaMappingResult[t])return p.context.mediaMappingResult[t][e.name]}(),onInit:function(e){},onChange:function(t,n){var a=n.getData();p.onMappingSelect.bind(p)(o,e.name,a)}}):t.createElement("input",{value:function(){var t=gu(o).resultKey;if(p.context.mediaMappingResult[t])return p.context.mediaMappingResult[t][e.name]}(),type:"text",name:"",id:e.name+"_text",className:"form-control",onChange:function(t){p.onMappingSelect.bind(p)(o,e.name,t.target.value)}}),"Actual URL"===e.label&&t.createElement("div",{className:"float-right mt5 mb20",style:{paddingRight:"0px"}},p.state.loading?p.context.loaderText:t.createElement(kk,{onClick:function(){return p.handlePreviewTestModelOpen(n)},color:"primary",style:{zIndex:2,position:"relative",paddingRight:0,color:"#718096"},size:"small"},t.createElement(uk,null)))))}))))})),"WooCommerce Coupons"!==this.context.mediaCsvInfo.selectedtype&&"Media"!==this.context.mediaCsvInfo.selectedtype&&"WooCommerce Product Variations"!==this.context.mediaCsvInfo.selectedtype&&"WooCommerce Refunds"!==this.context.mediaCsvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.mediaCsvInfo.selectedtype&&"WooCommerce Product"!==this.context.mediaCsvInfo.selectedtype&&"Customer Reviews"!==this.context.mediaCsvInfo.selectedtype&&"Images"!==this.context.mediaCsvInfo.selectedtype&&"WPeCommerce Coupons"!==this.context.mediaCsvInfo.selectedtype&&"Comments"!==this.context.mediaCsvInfo.selectedtype&&"JetBooking"!==this.context.mediaCsvInfo.selectedtype&&"nav_menu_item"!==this.context.mediaCsvInfo.selectedtype&&"elementor_library"!==this.context.mediaCsvInfo.selectedtype&&"widgets"!==this.context.mediaCsvInfo.selectedtype?t.createElement(t.Fragment,null,t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading",id:"custom-field-creator",onClick:function(){return toggle_func("custom-field-creator")}},"Create WP Custom Fields"," ",t.createElement("span",{className:"csv-icon-angle-down float-right"})),t.createElement("div",{className:"card-body",id:"custom-field-creator-body"},t.createElement("table",{className:"table table-mapping"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,this.context.language.WPFIELDS),t.createElement("th",null,this.context.language.CSVHEADER),t.createElement("th",{className:"text-center"},this.context.language.Action))),t.createElement("tbody",null,0!=this.state.customFields.length?this.state.customFields.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"}},t.createElement("label",{className:"wpfields"},t.createElement("input",{type:"text",value:e.label,className:"form-control",onChange:function(e){p.onCustomFieldLabelChange(e.target.value,n)}})),t.createElement("label",{className:"sub-text"},"[Name: ".concat(e.name,"]")," ")),t.createElement("td",{style:{width:"40%",verticalAlign:"top"}},t.createElement(Ik.gL,{types:["csvheader"],onDrop:function(e){p.onCustomFieldValueChange.bind(p)("{".concat(e.csvheader,"}"),n,!1)}},t.createElement("input",{value:p.state.customFields[n].value,type:"text",name:"",id:"text_"+n,className:"form-control",onChange:function(e){p.onCustomFieldValueChange.bind(p)(e.target.value,n)}}))),t.createElement("td",{className:"action text-center"},t.createElement("a",{className:"action-icon","data-tip":"Delete",onClick:function(e){p.deleteCustomField(n)}},t.createElement("i",{className:"csv-icon-trash-2"})),t.createElement(dc,{effect:"solid"})))})):t.createElement("tr",null,t.createElement("td",{colSpan:"3",className:"text-center border-bottom text-danger"},"No WP Custom Fields")))),t.createElement("div",{className:"float-right mb20 mt20"},t.createElement("a",{className:"smack-btn smack-btn-secondary",onClick:function(e){p.addCustomField()}},"Add Custom Field"))))):void 0,t.createElement("div",{className:"mt40"},t.createElement("div",{className:"col-md-12 text-center mt30"},this.context.isTemplate?t.createElement("div",null,t.createElement("label",null,this.context.language.UpdateThisMappingAs),t.createElement("input",{type:"text",className:"form-control ml10 d-inline w-25",onChange:function(e){p.context.setMediaCSVInfo(FS(FS({},p.context.mediaCsvInfo),{},{templateName:e.target.value}))},value:this.context.mediaCsvInfo.templateName})):t.createElement("div",null,t.createElement("label",null,"Save this mapping as"),t.createElement("input",{type:"text",onChange:function(e){p.context.setMediaCSVInfo(FS(FS({},p.context.mediaCsvInfo),{},{templateName:e.target.value}))},className:"form-control ml10 d-inline w-25",value:this.context.mediaCsvInfo.templateName}))),t.createElement("div",{className:"col-md-12 mt40 p0"},t.createElement("div",{className:"float-left"},t.createElement("button",{className:"smack-btn btn-default",onClick:function(){p.props.onEditTemplate&&p.setTemplateSection(),p.context.setshowMediaComponent("upload-dashboard")}},"Back")),t.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.props.fromEditTemplate?"Save":this.context.language.Continue)),t.createElement("div",{className:"clearfix"})))),t.createElement("div",{className:"col-md-4 "},t.createElement("div",{className:"mapping-sidebar",id:"mapping-sidebar"},t.createElement("table",{className:"mapping-sidebar-title"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"mapping-sidebar-arrow"},t.createElement("span",{className:"csv-icon-chevron-with-circle-left",onClick:function(e){p.state.initialRowSize--,p.state.initialRowSize>=1?p.getCsvFields(p.state.initialRowSize):p.state.initialRowSize++}})),t.createElement("td",{className:"mapping-sidebar-textbox-section"},t.createElement("strong",null,t.createElement("input",{id:"current_row",value:this.state.initialRowSize,type:"text",pattern:"[0-9]*",onChange:function(e){parseInt(e.target.value)>p.state.totalCsvRows?p.setState({initialRowSize:p.state.totalCsvRows},(function(){p.getCsvFields(p.state.initialRowSize)})):(p.setState({initialRowSize:e.target.value}),p.getCsvFields(p.state.initialRowSize))}}))," ",t.createElement("span",{className:"mapping-textbox-out-of"},"of",t.createElement("strong",null," ",_))),t.createElement("td",{className:"mapping-sidebar-arrow"},t.createElement("span",{className:"csv-icon-chevron-with-circle-right",onClick:function(e){p.state.initialRowSize++,p.state.initialRowSize<=p.state.totalCsvRows?p.getCsvFields(p.state.initialRowSize):p.state.initialRowSize--}}))))),t.createElement("div",{className:"uci_mapping"},t.createElement("table",{className:"table table-bordered",cellspacing:"10"},this.context.isXML?this.state.loading||0==this.state.xmlData.length?t.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.state.xmlData.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"},title:e.node_path,className:"text-primary font-weight-bold"},t.createElement(Ik.sx,{type:"csvheader",data:e.node_path},e.name)),t.createElement("td",null,e.value))})):this.state.loading||0==this.csvInformation.length?t.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.csvInformation.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"},className:"text-primary font-weight-bold"},t.createElement(Ik.sx,{type:"csvheader",data:e.csvHeaders},e.csvHeaders)),t.createElement("td",null,e.csvValues))}))))),0!=this.state.xmlData1.length?t.createElement("div",{className:"mapping-sidebar-one",id:"mapping-sidebar-one"},t.createElement("table",{className:"mapping-sidebar-title-one"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"mapping-sidebar-arrow-one"},t.createElement("span",{className:"csv-icon-chevron-with-circle-left",onClick:function(e){p.state.initialRowSize1--,p.state.initialRowSize1>=1?p.getCsvFields(p.state.initialRowSize1):p.state.initialRowSize1++}})),t.createElement("td",{className:"mapping-sidebar-textbox-section-one"},t.createElement("strong",null,t.createElement("input",{id:"current_row1",value:this.state.initialRowSize1,type:"text",pattern:"[0-9]*",onChange:function(e){parseInt(e.target.value)>p.state.totalCsvRows1?p.setState({initialRowSize1:p.state.totalCsvRows1},(function(){p.getCsvFields(p.state.initialRowSize1)})):(p.setState({initialRowSize1:e.target.value}),p.getCsvFields(p.state.initialRowSize1))}}))," ",t.createElement("span",{className:"mapping-textbox-out-of-one"},"of",t.createElement("strong",null," ",b))),t.createElement("td",{className:"mapping-sidebar-arrow-one"},t.createElement("span",{className:"csv-icon-chevron-with-circle-right",onClick:function(e){p.state.initialRowSize1++,p.state.initialRowSize1<=p.state.totalCsvRows1?p.getCsvFields(p.state.initialRowSize1):p.state.initialRowSize1--}}))))),t.createElement("div",{className:"uci_mapping"},t.createElement("table",{className:"table table-bordered",cellspacing:"10"},this.context.isXML?this.state.loading||0==this.state.xmlData1.length?t.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.state.xmlData1.map((function(e,n){return t.createElement("tr",null,t.createElement("td",{style:{width:"40%"},title:e.node_path,className:"text-primary font-weight-bold"},t.createElement(Ik.sx,{type:"csvheader",data:e.node_path},e.name)),t.createElement("td",null,e.value))})):""))):"")),t.createElement(N_,{open:m,onClose:this.handleClose,PaperProps:{sx:{width:500}}},t.createElement(J_,null,t.createElement(gk,{display:"flex",justifyContent:"space-between",alignItems:"center"},t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"preview"===f?"Preview":"Preview & Test"),t.createElement(gk,{display:"flex",alignItems:"center",gap:1},t.createElement(kk,{onClick:function(){return p.handlePageChange(-1)},size:"small"},t.createElement(Ck,{fontSize:"small"})),t.createElement("span",{style:{fontWeight:"normal",fontSize:"14px"}},"page"),t.createElement(gk,{sx:{border:"1px solid #ccc",borderRadius:"4px",padding:"1px 8px",minWidth:"30px",textAlign:"center",backgroundColor:"#f5f5f5",fontWeight:"normal",fontSize:"13px"}},g),t.createElement(W_,{sx:{fontSize:"12px"}},"of  ",this.state.limit),t.createElement(kk,{onClick:function(){return p.handlePageChange(1)},size:"small"},t.createElement(Ak,{fontSize:"small"}))))),t.createElement(eb,{dividers:!0},t.createElement(Tk,null),t.createElement(gk,{mt:2},"preview"===f&&t.createElement(gk,null,(d=null!==(l=null===(c=p.state.listPreviewData)||void 0===c?void 0:c.post_content)&&void 0!==l?l:"",/<[a-z][\s\S]*>/i.test(d)||d.includes("[caption")?t.createElement("div",{dangerouslySetInnerHTML:{__html:d}}):/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(d)?t.createElement(W_,null,d):t.createElement(W_,{fontWeight:"bold"},d))),"preview&test"===f&&(o=null!==(e=null===(n=p.state.listPreviewData)||void 0===n?void 0:n.featured_image)&&void 0!==e?e:"",r=!(a=(u=o.match(/<img[^>]*>/i))?u[0]:null)&&/^https?:\/\/.+\.(?:jpe?g|png|gif|webp|bmp|svg)$/i.test(o)?o:null,i=/^\d{1,2}\/\d{1,2}\/\d{4}\s+\d{1,2}:\d{2}/.test(o)?o:"",s=a||r||i?"":function(e){return e.replace(/<[^>]+>/g,"")}(o),t.createElement(gk,{display:"flex",flexDirection:"column",gap:1},t.createElement(W_,{variant:"subtitle1",mt:0,fontWeight:"bold"},"Result preview"),a&&t.createElement("div",{dangerouslySetInnerHTML:{__html:a},style:{maxWidth:"100%"}}),r&&t.createElement("img",{src:r,alt:"featured",style:{maxWidth:"100%",border:"1px solid #ccc"},onError:function(e){return e.currentTarget.style.display="none"}}),!a&&!r&&s&&t.createElement(W_,{variant:"body2",sx:{whiteSpace:"pre-wrap"}},s),!a&&!r&&!s&&t.createElement(W_,{color:"error"},"Unable to load the image. Please make sure the URL points to a valid image file"))))),t.createElement(jb,null,t.createElement(Ry,{onClick:this.handleClose},"Close"))))}}]);var o,a,d,h,f}(t.Component);function zS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zS=function(){return!!e})()}(0,p.A)(YS,"contextType",f);var BS=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,zS()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,mediaHandlingEnabled:!0,useMediaImagesIfAlreadyAvailable:!0,overwriteImageIfAlreadyAvailable:!1,alwaysCreateAsNewImage:!1,usePostContentImageOption:!1,thumbnail:!1,medium:!1,mediumLarge:!1,large:!1,custom:!1,customSlug:"",customWidth:"",customHeight:"",mediaImageTitle:"",mediaImageFileName:"",mediaImageCaption:"",mediaImageDescription:"",mediaImageAltText:""}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){var e=this;this.context.setSelectedTabOnCookies("import-update"),this.context.mediaCsvInfo.selectedtype,this.setState({mediaHandlingEnabled:!0}),window.scrollTo(0,0),this.context.allPluginFields.map((function(t){"acf_fields"!==Object.keys(t)[0]&&"acf_pro_fields"!==Object.keys(t)[0]||e.context.setIsAcfField(!0),"jetengine_fields"===Object.keys(t)[0]?e.context.setIsJetengineField(!0):"types_fields"===Object.keys(t)[0]?e.context.setIsToolsetField(!0):"pods_fields"===Object.keys(t)[0]?e.context.setIsPodsField(!0):"metabox_fields"===Object.keys(t)[0]&&e.context.setIsMetaboxField(!0)}))}},{key:"sendMediaHandlingConfiguration",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","image_options"),t.set("media_handle_option",this.state.mediaHandlingEnabled),t.set("use_ExistingImage",this.state.useMediaImagesIfAlreadyAvailable),t.set("overwriteImage",this.state.overwriteImageIfAlreadyAvailable),t.set("newImage",this.state.alwaysCreateAsNewImage),t.set("postContent_image_option",this.state.usePostContentImageOption),t.set("title",this.state.mediaImageTitle),t.set("file_name",this.state.mediaImageFileName),t.set("caption",this.state.mediaImageCaption),t.set("alttext",this.state.mediaImageAltText),t.set("description",this.state.mediaImageDescription),t.set("thumbnail",this.state.thumbnail),t.set("medium",this.state.medium),t.set("medium_large",this.state.mediumLarge),t.set("large",this.state.large),t.set("custom",this.state.custom),t.set("custom_slug",this.state.customSlug),t.set("custom_width",this.state.customWidth),t.set("custom_height",this.state.customHeight),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=23,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 23:200==(n=e.sent).status&&n.data.success&&this.context.setShowComponent("import-config");case 25:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"handleCheck",value:function(e){this.setState((0,p.A)({},e.target.name,e.target.checked))}},{key:"handleChange",value:function(e){this.setState((0,p.A)({},e.target.name,e.target.value),(function(){}))}},{key:"render",value:function(){var e=this,n=this.state;return n.thumbnail,n.medium,n.mediumLarge,n.large,n.custom,t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement(dc,{effect:"solid"}),t.createElement("div",{className:"card-body"},t.createElement("h5",null,this.context.language.MediaHandling,"     ",t.createElement("span",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){e.context.setDrawerValue("media#3"),e.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{className:"col-md-12 row mt30 justify-content-center hidden-div"},t.createElement("label",{className:"align-self-center"},this.context.language.Downloadexternalimagestoyourmedia),t.createElement("div",{className:"form-group fieldset ml30"},t.createElement("input",{type:"checkbox",className:"ios-switch",name:"media-handle",id:"media-handle",onClick:function(t){e.setState({mediaHandlingEnabled:t.target.checked})},defaultChecked:this.state.mediaHandlingEnabled}),t.createElement("label",{className:"switch-ios",for:"media-handle"},t.createElement("i",null)))),t.createElement("div",{className:"media-fields ".concat(this.state.mediaHandlingEnabled?"active":"")},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("div",{className:"border-container"},t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-image-existing",checked:this.state.useMediaImagesIfAlreadyAvailable,onClick:function(t){e.setState({useMediaImagesIfAlreadyAvailable:t.target.checked,overwriteImageIfAlreadyAvailable:!1,alwaysCreateAsNewImage:!1})}}),t.createElement("label",{for:"media-image-existing"},this.context.language.Usemediaimagesifalreadyavailable)),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-image-overwrite",checked:this.state.overwriteImageIfAlreadyAvailable,onClick:function(t){e.setState({overwriteImageIfAlreadyAvailable:t.target.checked,useMediaImagesIfAlreadyAvailable:!1,alwaysCreateAsNewImage:!1})}}),t.createElement("label",{for:"media-image-overwrite"},this.context.language.Overwritetheavailableimages)),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-new-image",checked:this.state.alwaysCreateAsNewImage,onClick:function(t){e.setState({alwaysCreateAsNewImage:t.target.checked,overwriteImageIfAlreadyAvailable:!1,useMediaImagesIfAlreadyAvailable:!1})}}),t.createElement("label",{for:"media-new-image"},this.context.language.AlwaysCreateAsNewImage)))),"Media"!==this.context.mediaCsvInfo.selectedtype&&t.createElement("div",{className:"col-md-12 mt50"},t.createElement("div",{className:"border-container"},t.createElement("h5",{className:"border-container-header"},this.context.language.PostContentImageOption),t.createElement("div",{className:"form-group",style:{marginTop:"18px"}},t.createElement("input",{type:"checkbox",name:"postcontent-image",className:"",id:"postcontent-image-existing",disabled:!1,onClick:function(t){e.setState({usePostContentImageOption:t.target.checked})}}),t.createElement("label",{className:"ml10",for:"postcontent-image-existing"},this.context.language.DownloadPostContentExternalImagestoMedia)))))," ",t.createElement("div",{className:"form-group mt30"},t.createElement("div",{className:"float-left"},t.createElement("button",{type:"button",class:"smack-btn btn-default hide-button",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back)),t.createElement("div",{className:"float-right"},t.createElement("button",{type:"button",id:"media",className:"smack-btn smack-btn-primary hide-button",onClick:function(){e.sendMediaHandlingConfiguration()}},this.context.language.Continue))))))}}]);var o}(t.Component);(0,p.A)(BS,"contextType",f);const HS=BS;var VS,US,WS,qS,$S;function GS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(GS=function(){return!!e})()}var KS=Rd.div(VS||(VS=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),JS=Rd.button(US||(US=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),XS=Rd.h1(WS||(WS=g(['\n  font-size: 30px;\n  font-family: "Poppins";\n  font-weight: 500;\n  margin-bottom: 0;\n']))),QS=Rd.p(qS||(qS=g(["\n  font-size: 16px;\n"]))),ZS=Rd.button($S||($S=g(['\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: "Poppins", sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n']))),eM=function(e){function n(e){var o,a,i,c;return(0,r.A)(this,n),a=this,i=n,c=[e],i=(0,l.A)(i),(o=(0,s.A)(a,GS()?Reflect.construct(i,c||[],(0,l.A)(a).constructor):i.apply(a,c))).state={loading:!1,timeZones:[],selectTimeZones:[],updateFieldsList:[],selectedUTC:"",selectedDate:new Date,scheduleTime:"",scheduleFrequency:"OneTime",enableSchedule:!1,showOnSchedule:"none",hiddenOnSchedule:"block",displayDuplicate:!1,displayskip:!1,unmatchedMode:!1,updateField:"",skipField:"",scheduled:!1,displayAcfFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayToolsetFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayJetEngineFieldsUpdate:!1,acfFieldsName:"",toolsetFieldsName:"",podsFieldsName:"",metaboxFieldsName:"",jetengineFieldsName:"",isAcfFields:!1,isJetengineFields:!1,showAdaptiveProcessingOptions:!1,highSpeedSmallFileProcessing:!1,iterativePieceByPieceProcessing:!0,iterationProcessRecordNumber:20,maximumProcessRecordNumber:50,minimumProcessRecordNumber:1,splitFileRecordChunk:!0,iterationProcessRecordLimitExceed:!1,totalRecords:""},o.mediaHandlingRef=t.createRef(),o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),("Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem)&&this.setState({displayskip:!0})}},{key:"setEnableSchedule",value:function(e){var t=this;this.setState({enableSchedule:e},(function(){t.state.enableSchedule?t.setState({showOnSchedule:"block",hiddenOnSchedule:"none"}):t.setState({showOnSchedule:"none",hiddenOnSchedule:"block"})}))}},{key:"getTotalRecords",value:(h=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_total_records"),t.set("hashKey",this.context.mediaCsvInfo.hashKey),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:200==(n=e.sent).status&&this.setState({totalRecords:n.data.total_records}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(){return h.apply(this,arguments)})},{key:"confirmationToScheduledExport",value:function(){var e=this;(0,yn.ZX)({customUI:function(n){var o=n.onClose;return t.createElement(KS,null,t.createElement(XS,null,"Are you sure?"),t.createElement(QS,null,"Do you want to schedule this import because you have ".concat(e.state.totalRecords," records in your file")),t.createElement(ZS,{onClick:function(t){e.setEnableSchedule(!1),e.startBulkImport(),o()}},"Not Now, Import it!"),t.createElement(JS,{onClick:function(){e.setEnableSchedule(!0),o()}},"Yes, Schedule it!"))}})}},{key:"scheduleConfiguration",value:(d=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=this.state.selectedUTC){e.next=3;break}return bn.error("please Select you Time Zone"),e.abrupt("return");case 3:if(""!=this.state.scheduleTime){e.next=6;break}return bn.error("Please Enter the Schedule Time"),e.abrupt("return");case 6:if(!this.state.displayDuplicate||""!=this.state.updateField){e.next=9;break}return bn.error("Please Select field to Handle Duplicate"),e.abrupt("return");case 9:return this.context.mediaCsvInfo.connectionType,t="",n="",this.state.displayskip&&(t=this.state.skipField,n="skip"),this.state.displayDuplicate?(t=this.state.updateField,n="normal"):this.state.displayAcfFieldsUpdate?(t=this.state.acfFieldsName,n="acf"):this.state.displayJetEngineFieldsUpdate?(t=this.state.jetengineFieldsName,n="jetengine"):this.state.displayToolsetFieldsUpdate?(t=this.state.toolsetFieldsName,n="toolset"):this.state.displayPodsFieldsUpdate?(t=this.state.podsFieldsName,n="pods"):this.state.displayMetaboxFieldsUpdate&&(t=this.state.metaboxFieldsName,n="metabox"),(o=new FormData).set("action","save_schedule_info"),o.set("FileName",this.context.mediaCsvInfo.fileName),o.set("FileType",this.context.mediaCsvInfo.fileType),o.set("connectionType",this.context.mediaCsvInfo.connectionType),o.set("module",this.context.mediaCsvInfo.selectedtype),o.set("eventkey",this.context.mediaCsvInfo.hashKey),o.set("date",_()(this.state.selectedDate).format("MM/DD/YYYY")),o.set("frequency",this.state.scheduleFrequency),o.set("duplicate_header",t),o.set("UTC",this.state.selectedUTC),o.set("Time",this.state.scheduleTime),(this.state.displayAcfFieldsUpdate||this.state.displayToolsetFieldsUpdate||this.state.displayPodsFieldsUpdate||this.state.displayMetaboxFieldsUpdate||this.state.displayJetEngineFieldsUpdate)&&o.set("UpdateUsing",n),"ftp"===this.context.mediaCsvInfo.connectionType&&(o.set("method",this.context.importScheduleData.method),o.set("hostname",this.context.importScheduleData.data.HostName),o.set("username",this.context.importScheduleData.data.HostUserName),o.set("password",this.context.importScheduleData.data.HostPassword),o.set("portnumber",this.context.importScheduleData.data.HostPort),o.set("initialpath",this.context.importScheduleData.data.HostPath)),"url"===this.context.mediaCsvInfo.connectionType&&(o.set("method","url"),o.set("fileurl",this.context.selectedFileUrl)),o.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=31,e.next=34,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 34:a=e.sent,this.setState({loading:!1}),a&&a.data&&200==a.status&&(this.setState({scheduled:!0}),bn.success(a.data.notification)),e.next=42;break;case 39:e.prev=39,e.t0=e.catch(31),console.log(e.t0);case 42:case"end":return e.stop()}}),e,this,[[31,39]])}))),function(){return d.apply(this,arguments)})},{key:"startBulkImport",value:(a=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setState({loading:!0}),!this.mediaHandlingRef.current){e.next=4;break}return e.next=4,this.mediaHandlingRef.current.sendMediaHandlingConfiguration();case 4:return(t=new FormData).set("action","bulk_file_import"),t.set("HashKey",this.context.mediaCsvInfo.hashKey),t.set("highspeed",this.state.highSpeedSmallFileProcessing),t.set("PieceByPiece",this.state.iterativePieceByPieceProcessing),t.set("FileIteration",this.state.iterationProcessRecordNumber),t.set("SplitChunks",this.state.splitFileRecordChunk),this.context.setShowImportLog(!0),this.context.setImportLogDataLink("".concat(window.wpr_object.logfielpath,"/").concat(this.context.mediaCsvInfo.hashKey,"/").concat(this.context.mediaCsvInfo.hashKey,".html")),e.prev=13,e.next=16,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 16:return n=e.sent,this.setState({loading:!1}),o="csv"===n.data.file_extension||"txt"===n.data.file_extension?Math.ceil(n.data.total_rows/n.data.file_iteration):Math.ceil(n.data.total_rows/3),a="",r="",this.state.displayskip&&(a=this.state.skipField,r="skip"),this.state.displayDuplicate?(a=this.state.updateField,r="normal"):this.state.displayAcfFieldsUpdate?(a=this.state.acfFieldsName,r="acf"):this.state.displayJetEngineFieldsUpdate?(a=this.state.jetengineFieldsName,r="jetengine"):this.state.displayToolsetFieldsUpdate?(a=this.state.toolsetFieldsName,r="toolset"):this.state.displayPodsFieldsUpdate?(a=this.state.podsFieldsName,r="pods"):this.state.displayMetaboxFieldsUpdate&&(a=this.state.metaboxFieldsName,r="metabox"),this.context.bulkImportData.totalPages=o,this.context.bulkImportData.totalRows=parseInt(n.data.total_rows),this.context.bulkImportData.fileName=n.data.file_name,this.context.bulkImportData.fileSize=n.data.filesize,this.context.bulkImportData.fileExtension=n.data.file_extension,this.context.bulkImportData.fileIteration=parseInt(n.data.file_iteration),this.context.bulkImportData.Check=a,this.context.bulkImportData.unmatchedRow=this.state.unmatchedMode,this.context.bulkImportData.UpdateUsing=r,this.context.setBulkImportData(this.context.bulkImportData),this.context.setshowMediaComponent("bulk-import"),e.abrupt("return");case 37:e.prev=37,e.t0=e.catch(13);case 39:case"end":return e.stop()}}),e,this,[[13,37]])}))),function(){return a.apply(this,arguments)})},{key:"importConfiguration",value:(o=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.displayDuplicate||""!=this.state.updateField){e.next=3;break}return bn.error("Please Select field to Handle Duplicate"),e.abrupt("return");case 3:return this.context.setshowMediaComponent("import-process"),(t=new FormData).set("action","StartImport"),"",n=this.context.rollBackMode?"true":"false",o=this.state.unmatchedMode,t.set("HashKey",this.context.mediaCsvInfo.hashKey),t.set("Check",this.state.updateField),t.set("skip",this.state.skipField),t.set("RollBack",n),t.set("UnmatchedRow",o),t.set("securekey",window.smack_nonce_object_pro.nonce),this.context.setShowImportLog(!0),this.context.setImportLogDataLink("".concat(window.wpr_object.logfielpath,"/").concat(this.context.mediaCsvInfo.hashKey,"/").concat(this.context.mediaCsvInfo.hashKey,".html")),this.setState({loading:!0}),e.prev=19,e.next=22,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 22:return e.sent,this.setState({loading:!1}),e.abrupt("return");case 28:e.prev=28,e.t0=e.catch(19);case 30:case"end":return e.stop()}}),e,this,[[19,28]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=this.state,o=(n.skipField,n.updateField);return n.selectedUTC,n.selectedDate,n.scheduleTime,n.scheduleFrequency,t.createElement("div",{id:"import-configuration",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30"},t.createElement("div",{className:"row export mt20"},!["WooCommerce Orders","WooCommerce Coupons","WooCommerce Product Variations","WooCommerce Refunds","WooCommerce Attributes","Comments","nav_menu_item","widgets","elementor_library"].includes(this.context.mediaCsvInfo.selectedtype)&&t.createElement(HS,{ref:this.mediaHandlingRef}),"Media"!==this.context.mediaCsvInfo.selectedtype&&t.createElement(t.Fragment,null,t.createElement("h1",{className:"main-heading pr15 pl15 mb5 col-md-12"},"Import configuration Section        ",t.createElement("span",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){e.context.setDrawerValue("import#5"),e.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{style:{display:this.state.hiddenOnSchedule},className:"advanced-filter col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_safe_prestate_rollback",checked:this.context.rollBackMode,onChange:function(t){e.context.setRollBackMode(t.target.checked)}}),t.createElement("label",{for:"import_configuration_safe_prestate_rollback"},"Enable safe prestate Rollback"," ",t.createElement("b",null,"(Backup before import)")))),t.createElement("div",{style:{display:this.state.hiddenOnSchedule},className:"advanced-filter col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_maintenance_mode",checked:this.context.maintenanceMode,onClick:function(t){e.updateMaintenanceMode(t.target.checked)}}),t.createElement("label",{for:"import_configuration_maintenance_mode"},"Do you want to SWITCH ON Maintenance mode while import ?"))),t.createElement("div",{className:"advanced-filter col-md-12"},"elementor_library"!==this.context.mediaCsvInfo.selectedtype&&t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_duplicate_handle",className:"",onChange:function(t){t.target.checked?e.setState({displayDuplicate:!0,displayAcfFieldsUpdate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayDuplicate:!1})},checked:this.state.displayDuplicate}),t.createElement("label",{for:"import_configuration_duplicate_handle"},"Do you want to handle the duplicate on existing records ?")),t.createElement("div",{className:"row mt20 col-md-6",style:{display:this.state.displayDuplicate?"block":"none"}},t.createElement("div",{className:"form-group col"},"Insert"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",null,this.context.language.Mentionthefieldswhichyouwanttohandleduplicates):"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",null,this.context.language.Updaterecordsbasedon):"",t.createElement("select",{className:"select form-control",name:"updateField",value:o,onChange:this.handleChange},t.createElement("option",{value:""},"Select Field"),0!=this.state.updateFieldsList.length?this.state.updateFieldsList.map((function(e,n){return t.createElement("option",{value:e},e)})):void 0)))),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isAcfField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_acf_fields_update",className:"",onChange:function(t){t.target.checked?e.setState((0,p.A)((0,p.A)({displayAcfFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1},"displayDuplicate",!1),"displayJetEngineFieldsUpdate",!1)):e.setState({displayAcfFieldsUpdate:!1})},checked:this.state.displayAcfFieldsUpdate}),"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_acf_fields_update"},"Do you want to update the records based on ACF Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayAcfFieldsUpdate?"block":"none"}},"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on ACF text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_acf_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.acfFieldsName?"0.5":"1"},onChange:function(t){e.setState({acfFieldsName:t.target.value})},value:this.state.acfFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isJetengineField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_jetengine_fields_update",className:"",onChange:function(t){t.target.checked?e.setState((0,p.A)((0,p.A)({displayJetEngineFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1},"displayDuplicate",!1),"displayAcfFieldsUpdate",!1)):e.setState({displayJetEngineFieldsUpdate:!1})},checked:this.state.displayJetEngineFieldsUpdate}),"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_acf_fields_update"},"Do you want to update the records based on ACF Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayJetEngineFieldsUpdate?"block":"none"}},"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on JETENGINE text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_jetengine_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.jetengineFieldsName?"0.5":"1"},onChange:function(t){e.setState({jetengineFieldsName:t.target.value})},value:this.state.jetengineFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isMetaboxField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_metabox_fields_update",className:"",onChange:function(t){t.target.checked?e.setState({displayMetaboxFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayAcfFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayMetaboxFieldsUpdate:!1})},checked:this.state.displayMetaboxFieldsUpdate}),"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_metabox_fields_update"},"Do you want to update the records based on Metabox Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayMetaboxFieldsUpdate?"block":"none"}},"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on Metabox text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_acf_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.metaboxFieldsName?"0.5":"1"},onChange:function(t){e.setState({metaboxFieldsName:t.target.value})},value:this.state.metaboxFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isPodsField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_pods_fields_update",className:"",onChange:function(t){t.target.checked?e.setState({displayPodsFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayAcfFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayPodsFieldsUpdate:!1})},checked:this.state.displayPodsFieldsUpdate}),"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_pods_fields_update"},"Do you want to update the records based on Pods Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayPodsFieldsUpdate?"block":"none"}},"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on Pods text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_pods_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.podsFieldsName?"0.5":"1"},onChange:function(t){e.setState({podsFieldsName:t.target.value})},value:this.state.podsFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isToolsetField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_toolset_fields_update",className:"",onChange:function(t){t.target.checked?e.setState({displayToolsetFieldsUpdate:!0,displayDuplicate:!1,displayAcfFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayToolsetFieldsUpdate:!1})},checked:this.state.displayToolsetFieldsUpdate}),"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_toolset_fields_update"},"Do you want to update the records based on Toolset Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayToolsetFieldsUpdate?"block":"none"}},"Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on Toolset text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_toolset_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.toolsetFieldsName?"0.5":"1"},onChange:function(t){e.setState({toolsetFieldsName:t.target.value})},value:this.state.toolsetFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_schedule_import",checked:this.state.enableSchedule,onClick:function(t){e.setEnableSchedule(t.target.checked)}}),t.createElement("label",{for:"import_configuration_schedule_import"},this.context.language.DoyouwanttoSchedulethisImport," ?")))),t.createElement("div",{className:"form-group col-md-12 mt15"},t.createElement("div",{className:"float-left"},"WooCommerce Orders"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Coupons"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Product Variations"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Refunds"===this.context.mediaCsvInfo.selectedtype||"WooCommerce Attributes"===this.context.mediaCsvInfo.selectedtype||"Users"===this.context.mediaCsvInfo.selectedtype||"nav_menu_item"===this.context.mediaCsvInfo.selectedtype||"widgets"===this.context.mediaCsvInfo.selectedtype||"Comments"===this.context.mediaCsvInfo.selectedtype?t.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setshowMediaComponent(e.context.mappingType)}},this.context.language.Back):"elementor_library"===this.context.mediaCsvInfo.selectedtype?t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setshowMediaComponent("upload-dashboard")}},this.context.language.Back):t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setshowMediaComponent("mapping-section")}},this.context.language.Back)),t.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:t.createElement(t.Fragment,null,t.createElement("button",{style:{display:this.state.showOnSchedule},type:"button",className:"smack-btn smack-btn-primary",disabled:this.state.scheduled,onClick:function(){e.scheduleConfiguration()}},this.state.scheduled?this.context.language.Scheduled:this.context.language.Schedule),t.createElement("button",{type:"button",style:{display:this.state.hiddenOnSchedule},className:"smack-btn smack-btn-primary",onClick:function(){e.state.totalRecords>2e3?e.confirmationToScheduledExport():e.startBulkImport()}},"Insert"===this.context.mediaCsvInfo.replaceExistingItem?this.context.language.Import:"Update"===this.context.mediaCsvInfo.replaceExistingItem?this.context.language.Update:"MediaUpdate"===this.context.mediaCsvInfo.replaceExistingItem?this.context.language.Media:this.context.language.ImportUpdates)))))))}}]);var o,a,d,h}(t.Component);function tM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tM=function(){return!!e})()}(0,p.A)(eM,"contextType",f);var nM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,tM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"pauseBulkImport",u(m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","PauseImport"),n.set("HashKey",t.context.mediaCsvInfo.hashKey),e.next=5,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:o=e.sent,t.setState({controlImportProcess:!1}),o.data.pause_state&&t.timer&&clearInterval(t.timer);case 8:case"end":return e.stop()}}),e)})))),(0,p.A)(t,"resumeBulkImport",u(m().mark((function e(){var n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({controlImportProcess:!0}),(n=new FormData).set("action","ResumeImport"),n.set("HashKey",t.context.mediaCsvInfo.hashKey),e.next=6,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:(o=e.sent).data.resume_state&&("",a=t.context.rollBackMode?"true":"false",t.alternateWorker.bind(t)(t.context.mediaCsvInfo.hashKey,t.context.mediaCsvInfo.replaceExistingItem,a,t.context.bulkImportData.unmatchedRow,o.data.page_number,t.context.bulkImportData.totalPages,t.context.bulkImportData.Check,t.context.bulkImportData.UpdateUsing),t.timer=setInterval(t.stopWatch.bind(t),1e3));case 8:case"end":return e.stop()}}),e)})))),(0,p.A)(t,"bulkImportProcess",(function(){var e;e=t.context.rollBackMode?"true":"false";var n=t.context.bulkImportData.totalRows;"csv"===t.context.bulkImportData.fileExtension||"txt"===t.context.bulkImportData.fileExtension?t.bulkImportCount=t.context.bulkImportData.fileIteration:t.bulkImportCount=3;var o=0*t.bulkImportCount+t.bulkImportCount;o>n&&(o=n);var a="1 - "+o;t.setState({processingRecords:a,remainingRecords:n}),t.alternateWorker.bind(t)(t.context.mediaCsvInfo.hashKey,t.context.mediaCsvInfo.replaceExistingItem,e,t.context.bulkImportData.unmatchedRow,1,t.context.bulkImportData.totalPages,t.context.bulkImportData.Check,t.context.bulkImportData.UpdateUsing,t.context.mediaCsvInfo.FileName,t.context.mediaCsvInfo.file_path),t.timer=setInterval(t.stopWatch.bind(t),1e3)})),(0,p.A)(t,"handleDownload",(function(){})),(0,p.A)(t,"handleFailedMedia",(function(){})),(0,p.A)(t,"handleClose1",(function(){t.setState({showModal:!1})})),(0,p.A)(t,"handleModalClose",(function(e){t.context.setImportProgressCompleted(!0),localStorage.setItem("previousUploadTap","media")})),t.state={loading:!0,check:"",fileName:"",processingRecords:"",remainingRecords:"",totalRecords:"",fileSize:"",process:"",remainingTime:"00:00:00",stopWatch:"00:00:00",progWidth:"0",importStatus:"Processing",enableDownload:!1,controlImportProcess:!0,rollBackProgress:!1,importer_records:[],displayed_records:[],showDownloadBtn:!1,showDownloadBtn1:!1,showDownloadBtn2:!1,exportedFileUrl:"",failedFileUrl:"",exportedmediaFileUrl:"",mediaProgress:!1,filterId:0,showModal:!1},t.bulkImportCount=3,t.loopCount=0,t.remainingTime=0,t.stopSeconds=0,t.stopMinutes=0,t.stopHours=0,t.progressWidth,t.url,t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){console.log("datasample"),this.checkAjaxURL(),window.scrollTo(0,window.innerHeight/4),this.bulkImportProcess(),this.state.loading&&this.stopWatch(),"csv"===this.context.bulkImportData.fileExtension||"txt"===this.context.bulkImportData.fileExtension?this.bulkImportCount=this.context.bulkImportData.fileIteration:this.bulkImportCount=3}},{key:"checkAjaxURL",value:function(){ajaxurl.includes("http")?this.url=ajaxurl:this.url=window.location.origin+ajaxurl}},{key:"loadProgress",value:function(e){e.processing_records!==e.total_records?this.progressWidth=e.processing_records/e.total_records*100:e.progress||(this.progressWidth=e.processing_records/e.total_records*100),this.progressWidth=Math.round(this.progressWidth),this.progressWidth>.9&&(this.progressWidth>100?this.setState({progWidth:100},(function(){})):this.setState({progWidth:this.progressWidth},(function(){})))}},{key:"componentWillUnmount",value:function(){}},{key:"alternateWorker",value:(f=u(m().mark((function e(t,n,o,a,r,i,s,l,c,d){var u,p,h,f,g,v,_,b,y;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=r;case 1:if(!(u<=i)){e.next=46;break}return e.prev=2,p=performance.now(),(h=new FormData).append("action","bulk_import"),h.append("HashKey",t),h.append("Mode",n),h.append("PageNumber",u),h.append("RollBack",o),h.append("UnmatchedRow",a),h.append("Check",s),h.append("UpdateUsing",l),h.append("filename",c),h.append("file_path",d),h.set("MediaType",this.context.selectedMediaType),e.next=18,Lt({method:"post",url:ajaxurl,data:h,config:{headers:{"Content-Type":"multipart/form-data"}}});case 18:if(200!=(f=e.sent).status){e.next=31;break}if(g=performance.now(),v=f.data,console.log("reponse",v),_=[].concat(Mu(this.state.importer_records),[f.data.log_value?f.data.log_value:""]),console.log("newRecords",_),this.setState({importer_records:_,mediaProgress:f.data["media-progress"]}),b=((g-p)%6e4/1e3).toFixed(0),0!=v.success){e.next=30;break}return this.updateProgressBar({result:v,completedPage:u,secondsToComplete:b}),e.abrupt("break",46);case 30:this.updateProgressBar({result:v,completedPage:u,secondsToComplete:b});case 31:f.data.success?(console.log("Download link from response:",f.data.download_log_link),console.log("Media link from response:",f.data.media_link),this.setState({exportedFileUrl:f.data.download_log_link?f.data.download_log_link:"",exportedmediaFileUrl:f.data.media_link?f.data.media_link:"",showDownloadBtn:!0,showDownloadBtn2:!!f.data.media_link})):this.exportConfiguration(),f.data.success?this.setState({failedFileUrl:f.data["media-url"],showDownloadBtn1:!0}):this.setState({failedFileUrl:"",showDownloadBtn1:!1}),e.next=41;break;case 35:e.prev=35,e.t0=e.catch(2),u=i+1,"",y=504==e.t0.response.status||502==e.t0.response.status?"Error occured due to 504 Gateway Time-out":403==e.t0.response.status?"Error occured due to 403 Forbidden":500==e.t0.response.status?"Error occured due to 500. Kindly contact the support team.":e.t0.response.status,this.sendErrorStatus(i,y);case 41:if(this.state.controlImportProcess){e.next=43;break}return e.abrupt("return");case 43:u++,e.next=1;break;case 46:case"end":return e.stop()}}),e,this,[[2,35]])}))),function(e,t,n,o,a,r,i,s,l,c){return f.apply(this,arguments)})},{key:"sendErrorStatus",value:(h=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","send_error_status"),o.set("hash_key",this.context.csvInfo.hashKey),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:(a=e.sent)&&a.data&&200==a.status&&a.data.success&&(this.context.setTotalRecords(a.data.total_records),this.context.setProcessedRecords(a.data.processed_records),this.context.setImportStatus(n),this.updateProgressBar({result:{success:!1},completedPage:t,secondsToComplete:0})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return h.apply(this,arguments)})},{key:"updateProgressBar",value:function(e){this.loopCount=this.loopCount+1;var t=e.result,n=e.completedPage,o=e.secondsToComplete;0==t.success&&this.timer&&clearInterval(this.timer);var a=this.context.bulkImportData.totalRows,r=Math.ceil(a/this.bulkImportCount),i=r-n,s=n*this.bulkImportCount+1,l=n*this.bulkImportCount+this.bulkImportCount;l>a&&(l=a);var c=s+" - "+l;s>a&&(c="",this.timer&&clearInterval(this.timer));var d=a-n*this.bulkImportCount;d<0&&(d=0),n!=r?this.setState({loading:!0}):this.setState({loading:!1,importStatus:"Completed",showModal:!0}),this.setState({remainingRecords:d,processingRecords:c});var u={total_records:a,processing_records:s,remaining_records:d};this.remainingTime=o*i,this.secondsToHms(this.remainingTime),this.loadProgress(u)}},{key:"secondsToHms",value:function(e){e=Number(e);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60);t.toString().length<2&&(t="0"+t),n.toString().length<2&&(n="0"+n),o.toString().length<2&&(o="0"+o);var a=t+":"+n+":"+o;this.setState({remainingTime:a})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"startRollBackMode",value:(d=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({rollBackProgress:!0}),(t=new FormData).set("action","rollback_now"),t.set("HashKey",this.context.mediaCsvInfo.hashKey),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:n=e.sent,this.setState({rollBackProgress:!1}),(o=n.data).success?(this.context.setRollBackMode(!1),bn.success(o.message)):bn.error(o.message);case 11:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"downloadmediaLog",value:(a=u(m().mark((function e(t){var n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","download_media_log"),n.set("filename",t),n.set("hashkey",this.context.mediaCsvInfo.hashKey),n.set("type",this.context.mediaCsvInfo.selectedtype),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:(o=e.sent).data.success?((a=document.createElement("a")).href=o.data.file_url,a.setAttribute("download","MediaLog.csv"),document.body.appendChild(a),a.click(),document.body.removeChild(a)):bn.error("Media Log Doesn't Exist");case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"downloadFailedLog",value:(o=u(m().mark((function e(t){var n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","download_failed_log"),n.set("filename",t),n.set("type",this.context.mediaCsvInfo.selectedtype),n.set("hashkey",this.context.mediaCsvInfo.hashKey),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:(o=e.sent).data.success?((a=document.createElement("a")).href=o.data.file_url,a.setAttribute("download","FailedLog.csv"),document.body.appendChild(a),a.click(),document.body.removeChild(a)):bn.error("Failed Log Doesn't Exist");case 10:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=[];this.state.importer_records.forEach((function(e){Object.values(e).forEach((function(e){n.push(e)}))})),console.log("reversedData",n,this.state.importer_records),n=Mu(n).reverse(),console.log(n,"reversedData1");var o={width:this.state.progWidth+"%"},a=(!this.state.loading&&this.context.showImportLog,this.state.showDownloadBtn,this.state.showDownloadBtn1,this.context.bulkImportData),r=a.fileSize,i=a.fileName,s=a.totalRows;return t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{className:" container"},t.createElement("div",{className:"importer-log"},t.createElement("div",{className:"card csv-importer-panel mt10 col-md-12"},t.createElement("div",{className:"card-body",style:{padding:"0.5rem 1rem 0.5rem 1rem"}},t.createElement("div",{className:"rollbackAlign"},"Completed"!==this.state.importStatus&&(this.state.controlImportProcess?t.createElement("input",{type:"button",className:"smack-btn smack-btn-warning",id:"smclose",value:"Pause",onClick:this.pauseBulkImport}):t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",value:"Resume",onClick:this.resumeBulkImport}))),t.createElement("table",{className:"table",style:{marginBottom:"0rem"}},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"text-left",style:{padding:"3px"}},this.context.language.FileName,":"," ",t.createElement("span",null,i)),t.createElement("td",{className:"text-right",style:{padding:"3px"}},this.context.language.FileSize,":"," ",t.createElement("span",null,r))),t.createElement("tr",null,t.createElement("td",{className:"text-left",style:{padding:"3px"}},this.context.language.Process,":"," ",t.createElement("span",null,this.context.mediaCsvInfo.replaceExistingItem)),t.createElement("td",{className:"text-right",style:{padding:"3px"}},this.context.language.Totalnoofrecords,":"," ",t.createElement("span",null,s))),t.createElement("tr",null,t.createElement("td",{className:"text-left",style:{padding:"3px"}},t.createElement("span",{className:"font-weight-normal text-success"}," ",this.context.language.CurrentProcessingRecord,":"," ",t.createElement("span",null,null==this.context.importStatus||""==this.context.importStatus?this.state.processingRecords:this.context.processedRecords))),t.createElement("td",{className:"text-right",style:{padding:"3px"}},t.createElement("span",{className:"font-weight-normal text-danger"},this.context.language.RemainingRecord,":"," ",t.createElement("span",null,null==this.context.importStatus||""==this.context.importStatus?this.state.remainingRecords:this.context.totalRecords-this.context.processedRecords)))))),t.createElement("div",{className:"card-body px-3"},t.createElement("div",{className:"importing-details"},t.createElement("div",{className:"progress-status"},"Processing"===this.state.importStatus?"In Progress":""),t.createElement("div",{className:"import-progress"},null==this.context.importStatus||""==this.context.importStatus?t.createElement("div",{className:"progress-loading"},this.state.progWidth+"%"," ",this.context.language.Completed):t.createElement("div",{className:"progress-loading text-danger"},Math.round(this.context.processedRecords/this.context.totalRecords)+"%"," ",this.context.language.Completed),t.createElement("div",{className:"progress-timing"},t.createElement("i",{className:"csv-icon-schedule"})," ",this.context.language.TimeElapsed,":"," ",t.createElement("span",null," ",this.state.stopWatch,"/ "),this.state.remainingTime,"(",this.context.language.approximate,")"))),t.createElement("div",{className:"progress mt5 mb20"},t.createElement("div",{className:"".concat(null!=this.context.importStatus&&""!=this.context.importStatus?"progress-bar-error":"progress-bar"),style:o,role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),t.createElement(lS,{show:this.state.showModal,onHide:function(t){e.handleModalClose(t),e.handleClose1()},centered:!0,id:"failed_summary",style:{top:"30%",zIndex:"1041",position:"absolute",padding:0,maxHeight:"fit-content",margin:0,boxShadow:"none",background:"transparent"}},t.createElement(lS.Header,{closeButton:!0},t.createElement(lS.Title,null,this.context.language.ImportCompleted)),t.createElement(lS.Body,null,this.context.language.importHasFinished),t.createElement(lS.Footer,null,t.createElement(xS,{variant:"primary",id:"smmodaldown",onClick:function(){return e.downloadmediaLog(i)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"csvicon.png"),width:"20px",height:"20px",id:"smsumicon1",style:{marginRight:"10px",verticalAlign:"middle"}}),this.context.language.ImportLog),t.createElement(xS,{variant:"secondary",id:"smmodalfailed",onClick:function(){return e.downloadFailedLog(i)}},t.createElement("div",{id:"failedmedia"},t.createElement("i",{className:"csv-icon-download-cloud mr10",id:"smsumicon"}),this.context.language.FailedMedia,t.createElement(kx,{"data-tip":this.context.language.UseTheFailedImages,id:"svgdesign"}),t.createElement(dc,{place:"top",type:"dark",effect:"solid"}))))),null==this.context.importStatus||""==this.context.importStatus?t.createElement("div",{className:"d-flex justify-content-center"}):t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"smack-btn smack-btn-primary",href:"http://smackcoders.com"},"Click here to fix this error"))),t.createElement("div",{className:"importer_record_table_details"},t.createElement("div",{className:"csv-import-table"},this.state.progress>=0&&t.createElement("div",{class:"main_log_div page_wish_progress importing_progress_last d-flex justify-content-between fadeIn"},t.createElement("div",{class:""},t.createElement("div",null,t.createElement("span",null,"Message:"),t.createElement("span",null,this.state.iterationCount," page record"," "),t.createElement("span",null,"...")),t.createElement("div",null,t.createElement("span",null,"State:"),t.createElement("span",null,"Inserting..."))),t.createElement("div",{className:"d-flex align-items-center"},t.createElement("div",{class:"flex-column d-flex progressbar_page_wish_progress"},t.createElement(Progress,{time:this.state.progress}),t.createElement("label",{for:"file"},"Importing ....")))),n&&n.length>0&&n.map((function(e,n){return e?t.createElement("div",{className:"main_log_div d-flex justify-content-between ".concat("Skipped"===e.state?"skipped":""),id:"smlogmsg",key:n},t.createElement("div",{className:"".concat("Skipped"===e.state?"skippedtext":""," ").concat(e.total_image||e.failed_image_count?"":"no-media")},t.createElement("div",{className:"d-flex gap summary"},t.createElement("span",{className:"bold"},"Import Summary ")," :",e.post_title&&e.post_title.length>0&&t.createElement("span",{className:"mr-2"}," ","Post_title: ",e.post_title," "),e.image_title&&e.image_title.length>0&&t.createElement("span",{className:"mr-2"}," ","Image_title: ",e.image_title," "),e.cat_name&&e.cat_name.length>0&&t.createElement("span",{className:"smlogtext"}," ","Category name: ",e.cat_name," ",console.log("record.cat_name",e.cat_name)),e.attach_ID&&e.FileName&&t.createElement("span",null," File Name: ",e.FileName," "),e.post_type&&e.post_type.length>0&&t.createElement("span",{className:"smlogtext"}," ","Media"!==e.post_type&&"Post type: ".concat(e.post_type,'{" "}')),e.id&&e.post_type&&t.createElement("span",null," ID: ",e.id," "),e.Status&&t.createElement("span",{className:"smlogtext"}," ","Status: ",e.Status," "),e.Email&&t.createElement("span",null," Email: ",e.Email," "),e.Role&&t.createElement("span",null," Role: ",e.Role," "),e.Instruction&&t.createElement("span",null," ","Instruction: ",e.Instruction," "),e.TypeofProduct&&t.createElement("span",{className:"smlogtext"}," ","Type of Product: ",e.TypeofProduct," "),e.Categories&&e.Categories.length>0&&t.createElement("span",{className:"smlogtext"}," ","Categories: ",e.Categories," "),e.attach_ID&&e.FileName?t.createElement("span",null," ","Attachment ID: ",e.attach_ID," "):e.post_type&&t.createElement("span",{className:"smlogtext"}," ","Post type: ",e.post_type," "),e.SKU&&e.SKU.length>0&&t.createElement("span",null," SKU: ",e.SKU," "),e.Tags&&e.Tags.length>0&&t.createElement("span",{className:"smlogtext"}," ","Tags: ",e.Tags," "),!e.post_type&&t.createElement("div",null,e.Message)),t.createElement("div",{className:"media-section"},(e.total_image||e.failed_image_count)&&t.createElement("span",{className:"d-flex"},t.createElement("span",{className:"space1"},t.createElement("span",{className:"bold"},"Media")," ",t.createElement("span",null,":")," "),t.createElement("p",null,e.total_image&&t.createElement("span",null,"No of images created/associated -"," ",e.total_image)),t.createElement("p",null,e.failed_image_count&&t.createElement("span",null,"No of images failed -"," ",e.failed_image_count)))),t.createElement("div",{className:"links-section"},(e.adminLink||e.webLink)&&t.createElement("span",{className:"d-flex"},t.createElement("span",{className:"space"},t.createElement("span",{className:"bold"},"Verify Import")," ",t.createElement("span",null,":")," "),t.createElement("a",{className:"Skipped"===e.state?"Disabled":"",target:"_blank",href:e.webLink},"View ",t.createElement("span",null," ",e.post_type," ")),t.createElement("p",null,"|"),t.createElement("a",{className:"Skipped"===e.state?"Disabled ml10":"ml10",target:"_blank",href:e.adminLink},"Edit ",t.createElement("span",null," ",e.post_type," "))))),t.createElement("div",{className:"d-flex align-items-center",id:"smscroll"},t.createElement("div",{className:"flex-column d-flex align-items-center"},"Skipped"===e.state?t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"skipped.png"),width:"37px",height:"37px"}),"Skipped"):"Failed"===e.state?t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"failed.png"),width:"37px",height:"37px"}),"Failed"):"Updated"===e.state?t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"updated.png"),width:"37px",height:"37px"}),"Updated"):t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"inserted.png"),width:"37px",height:"37px"}),"Inserted")))):null})))),t.createElement("div",{className:"row",id:"closemediaimport"},t.createElement("div",{className:"mt30logmsg d-none"},t.createElement("h4",{id:"smstatus",className:"text-center ".concat(""!=this.context.importStatus&&null!=this.context.importStatus?"text-danger":"")},null!=this.context.importStatus&&""!=this.context.importStatus?t.createElement("h4",{className:"blinking"},this.context.importStatus):"Import ".concat(this.state.importStatus)),"Completed"===this.state.importStatus?t.createElement(t.Fragment,null,t.createElement("input",{type:"button",className:"smack-btn btn-default",id:"smclose",value:"Close",onClick:function(t){return e.handleModalClose(t)}}),this.context.rollBackMode?t.createElement(t.Fragment,null,t.createElement("input",{type:"button",className:"ml20 smack-btn smack-btn-danger",value:"RoleBack Now",onClick:function(t){e.startRollBackMode()}}),this.state.rollBackProgress?t.createElement("div",{className:"btn ajax-loader loading",style:{marginLeft:"25px",marginRight:"0",bottom:"5px",padding:"0"}}):""," "):void 0):this.state.controlImportProcess?t.createElement("input",{type:"button",className:"smack-btn smack-btn-warning",id:"smclose",value:"Pause",onClick:this.pauseBulkImport}):t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",value:"Resume",onClick:this.resumeBulkImport}))))))),t.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#displayLogText",id:"triggerLog"}),t.createElement("div",{id:"displayLogText",className:"modal fade",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("h1",{class:"main-heading"},"Import Log for ",this.state.fileName),t.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("div",{id:"showLogText"}))))))}}]);var o,a,d,h,f}(t.Component);function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function aM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oM(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rM=function(){return!!e})()}(0,p.A)(nM,"contextType",f);var iM=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,rM()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{showModal:!1,newModal:!0,loading:!1,checkSimilarity:!0,toTemplateSection:!1,customFields:[],mediaZipFileNames:[],mediaUploadData:{zipFileName:"",data:[]},selectAllChecked:!1,staticString:"->static",mathString:"->math",customString1:"->cus1",number:"->num",customString2:"->cus2",openAI:"->openAI",zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:"",radioBox:["Local","External"],selectedRadio:"Local",showContent:!1,zipSuccess:!1,csvSuccess:!1}),(0,p.A)(e,"handleClose",(function(){e.setState({showModal:!1})})),(0,p.A)(e,"formulaIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-sum")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"sumIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-plus")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-static-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"openAIIconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-icon-Ai_icons-05")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-openAI-edit-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"edit1IconOnClick",(function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-edit1")).classList.contains("active")){var n=document.getElementById("".concat(e,"-").concat(t,"-edit-manipulative-screen"));n.classList.contains("active")?n.classList.remove("active"):n.classList.add("active")}else bn.info("Please choose Header Manipulation in the drop down")})),(0,p.A)(e,"handleSelectAllChange",(function(){var t=e.state,n=t.selectAllChecked,o=t.mediaUploadData,a=!n,r=o.data.map((function(e){return aM(aM({},e),{},{checked:a})}));e.setState({selectAllChecked:a,mediaUploadData:aM(aM({},o),{},{data:r})})})),(0,p.A)(e,"handleCheckboxChange",(function(t){var n=e.state.mediaUploadData,o=n.data.map((function(e,n){return n===t?aM(aM({},e),{},{checked:!e.checked}):e})),a=o.every((function(e){return e.checked}));e.setState({selectAllChecked:a,mediaUploadData:aM(aM({},n),{},{data:o})})})),(0,p.A)(e,"handleDelete",u(m().mark((function t(){var n,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state.mediaUploadData,o=n.data.filter((function(e){return!e.checked})).map((function(e){return e.filename})),console.log("Unchecked files:",o),t.next=5,e.deleteImage(o);case 5:t.sent&&(e.setState({zipSuccess:!0}),document.getElementById("upload-zip-open1").click()),e.setState({showModal:!1});case 8:case"end":return t.stop()}}),t)})))),(0,p.A)(e,"handleRadioChange",(function(t){var n=t;e.setState({selectedRadio:n}),e.context.setSelectedMediaType(n),console.log("selectedValuecontext",e.context.selectedMediaType+" event.target.value "+e.state.selectedRadio)})),(0,p.A)(e,"handleShowContent",(function(){e.setState({showContent:!0,newModal:!1}),e.context.setMediaUploadOption(!1)})),(0,p.A)(e,"handleLocalButtonClick",(function(){e.state.zipSuccess||e.state.csvSuccess?e.state.zipSuccess?e.state.csvSuccess?e.sendConfiguration():bn.error("Please upload your file with media details to proceed"):bn.error("Please upload the media ZIP to continue"):bn.error("Please upload the media ZIP and a file to move next")})),(0,p.A)(e,"handleExternalButtonClick",(function(){e.state.csvSuccess?e.sendConfiguration():bn.error("Please upload csv file")})),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){var e=this.context,t=e.mediaCsvInfo;(0,e.setMediaCSVInfo)(aM(aM({},t),{},{replaceExistingItem:"Media"===t.selectedtype?"MediaUpdate":"Insert"})),this.context.setDrawerValue("Media"),this.context.setSelectedTabOnCookies("manager")}},{key:"isSimilar",value:function(e,t,n,o){if(this.context.mediaMappingResult){var a=getPluginInfo(e).resultKey;if(this.context.mediaMappingResult[a]&&this.context.mediaMappingResult[a][t]===n)return!0}return!(t.toLowerCase()!==n.toLowerCase()||!this.state.checkSimilarity||this.context.isTemplate||this.props.onEditTemplate||(this.onMappingSelect(e,t,n,!1),0))}},{key:"onMappingSelect",value:function(e,t,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,r=getPluginInfo(e).resultKey,i=this.context.mediaMappingResult[r];if(-1!=a){var s=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-sum")),l=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-plus")),c=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-edit1")),d="";document.getElementById("".concat(e,"-").concat(a,"-icon-Ai_icons-05"))&&(d=document.getElementById("".concat(e,"-").concat(a,"-icon-Ai_icons-05"))),"Header Manipulation"===n?(s.classList.add("active"),l.classList.add("active"),c.classList.add("active"),d&&d.classList.add("active")):(s.classList.remove("active"),l.classList.remove("active"),c.classList.remove("active"),d&&d.classList.remove("active"))}if("--select--"!==n&&"Header Manipulation"!==n)i?o?this.context.mediaMappingResult[r][t]=n:this.context.mediaMappingResult[r][t]||(this.context.mediaMappingResult[r][t]=n):(this.context.mediaMappingResult[r]={},this.context.mediaMappingResult[r][t]=n),this.setState({checkSimilarity:!1}),this.context.setmediaMappingResult(this.context.mediaMappingResult);else if(i){if(this.context.mediaMappingResult[r][t]&&(delete this.context.mediaMappingResult[r][t],this.setState({checkSimilarity:!1}),this.context.setmediaMappingResult(this.context.mediaMappingResult)),"--select--"===n)for(var u in i)u.search(t+"->")>-1&&(delete this.context.mediaMappingResult[r][u],this.setState({checkSimilarity:!1}),this.context.setmediaMappingResult(this.context.mediaMappingResult));return}}},{key:"isHeaderManipulation",value:function(e,t,n){var o=getPluginInfo(e).resultKey,a=this.context.mediaMappingResult[o];if(a){for(var r in a)if(r.search(t+"->")>-1)return setInterval((function(){var t=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-sum")),o=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-plus")),a=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-edit1")),r="";document.getElementById("".concat(e,"-").concat(n,"-icon-Ai_icons-05"))&&(r=document.getElementById("".concat(e,"-").concat(n,"-icon-Ai_icons-05"))),t&&!t.classList.contains("active")&&t.classList.add("active"),o&&!o.classList.contains("active")&&o.classList.add("active"),a&&!a.classList.contains("active")&&a.classList.add("active"),r&&r&&!r.classList.contains("active")&&r.classList.add("active")}),500),!0;return!1}return!1}},{key:"getFieldValueFromResult",value:function(e,t){var n=getPluginInfo(e).resultKey;return this.context.mediaMappingResult[n]&&this.context.mediaMappingResult[n][t]?this.context.mediaMappingResult[n][t]:""}},{key:"getFieldValueFromCustomFields",value:function(e){var t=this.state.customFields[e];if(t)return t.value}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueSelect",value:function(e,t){var n=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-sum")),o=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-plus")),a=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-edit1")),r="";if(document.getElementById("custom-field-creator-".concat(t,"-icon-Ai_icons-05"))&&(r=document.getElementById("custom-field-creator-".concat(t,"-icon-Ai_icons-05"))),"Header Manipulation"===e)return n.classList.add("active"),o.classList.add("active"),a.classList.add("active"),r&&r.classList.add("active"),this.state.customFields[t].value="",void this.setState({customFields:this.state.customFields});this.state.customFields[t].value="--select--"===e?"":e,n.classList.remove("active"),o.classList.remove("active"),a.classList.remove("active"),r&&r.classList.remove("active")}},{key:"onCustomFieldValueChange",value:function(e,t){this.state.customFields[t].value=e,this.setState({customFields:this.state.customFields})}},{key:"enableopenAIIconClick",value:function(){bn.info("To enable this, please Save your API Key In settings page")}},{key:"onZipProcess",value:function(e,t,n,o,a,r,i){var s=new FormData;s.append("zipFile",t,t.name),console.log("Appending to formData:",{key:"zipFile",file:t,fileName:t.name}),"ngg_pictures"===this.context.mediaCsvInfo.selectedtype?s.append("action","zip_ngg_upload"):s.append("action","zip_upload"),s.append("securekey",window.smack_nonce_object_pro.nonce);var l=new XMLHttpRequest;return l.open("POST",ajaxurl),l.upload.onprogress=function(e){r(e.lengthComputable,e.loaded,e.total)},l.onload=function(){if(l.status>=200&&l.status<300){var e=JSON.parse(l.responseText);if(e.success){this.setState({mediaZipFileNames:e.filename});for(var t=[],n=e.filename.length,r=0;r<n;r++)t.push({filename:e.filename[r],size:e.size[r]});this.state.mediaUploadData.zipFileName=e.zip_file_name,this.state.mediaUploadData.data=t,this.setState({mediaUploadData:this.state.mediaUploadData},(function(){document.getElementById("upload-zip-open1").click()})),o(),this.setState({showModal:!0})}else bn.error(e.message)}else a("Server responded with status "+l.status)}.bind(this),l.send(s),{abort:function(){l.abort(),i()}}}},{key:"deleteImage",value:(g=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","delete_image"),n.set("images",JSON.stringify(t)),n.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:if(!(o=e.sent)||!o.data){e.next=14;break}if(200!==o.status||!o.data.success){e.next=14;break}return this.setState({zipSuccess:!0}),console.log("this.state.zipSuccess",this.state.zipSuccess),this.setState((function(e){var n=aM({},e.mediaUploadData);return t.forEach((function(e){var t=n.data.findIndex((function(t){return t.filename===e}));-1!==t&&n.data.splice(t,1)})),{mediaUploadData:n,selectAllChecked:!1}})),e.abrupt("return",!0);case 14:e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(4),console.log(e.t0),e.abrupt("return",!1);case 20:return e.abrupt("return",!1);case 21:case"end":return e.stop()}}),e,this,[[4,16]])}))),function(e){return g.apply(this,arguments)})},{key:"checkMandatory",value:function(){if("Update"===this.context.mediaCsvInfo.replaceExistingItem||"Import-Update"===this.context.mediaCsvInfo.replaceExistingItem)var e=["language_code","translated_post_title","translated_taxonomy_title","user_email"];else e="MediaUpdate"===this.context.mediaCsvInfo.replaceExistingItem?["post_title","ID","media_id","actual_url"]:["post_title","language_code","translated_post_title","translated_taxonomy_title","user_login","user_email"];for(var t=0;t<this.context.allPluginFieldsMedia.length;t++){var n=this.context.allPluginFieldsMedia[t];for(var o in n){var a=n[o];if(a)for(var r=0;r<a.length;r++)if(e.includes(a[r].name)&&!this.checkKeyExistInMapping(a[r].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var n in this.context.mediaMappingResult)this.context.mediaMappingResult[n]&&Object.keys(this.context.mediaMappingResult[n]).includes(e)&&this.context.mediaMappingResult[n][e]&&(t=!0);return!!t||(bn.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(f=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.customFields)for(t=0;t<this.state.customFields.length;t++)n=this.state.customFields[t],o=n.name.trim(),n.value&&o&&(this.context.mediaMappingResult.CORECUSTFIELDS||(this.context.mediaMappingResult.CORECUSTFIELDS={}),this.context.mediaMappingResult.CORECUSTFIELDS[n.name]=n.value);if(this.checkMandatory()){e.next=3;break}return e.abrupt("return");case 3:return this.context.setMappingType("mapping-section"),(a=new FormData).set("action","saveMappedFields"),a.set("HashKey",this.context.mediaCsvInfo.hashKey),a.set("MediaType",this.context.mediaCsvInfo.selectedMediaType),a.set("Types",this.context.mediaCsvInfo.selectedtype),a.set("MappedFields",JSON.stringify(this.context.mediaMappingResult)),a.set("MappingType","mapping-section"),a.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=13,e.next=16,Lt({method:"post",url:window.smack_nonce_object_pro.url,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 16:(r=e.sent)&&r.data&&(200==r.status&&r.data.success?(this.setState({loading:!1}),this.context.setshowMediaComponent("import-config")):this.setState({loading:!1})),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(13),this.setState({loading:!1});case 23:case"end":return e.stop()}}),e,this,[[13,20]])}))),function(){return f.apply(this,arguments)})},{key:"setTemplateSection",value:function(){this.context.setshowMediaComponent("upload-dashboard"),this.setState({toTemplateSection:!0})}},{key:"onFilePondProcess",value:function(e,t,o,a,r,i,s){var l=new FormData;l.append("csvFile",t,t.name),l.append("action","get_desktop"),l.set("MediaType",this.context.selectedMediaType),l.append("securekey",window.smack_nonce_object_pro.nonce);var c=new XMLHttpRequest;return c.open("POST",ajaxurl),c.upload.onprogress=function(e){i(e.lengthComputable,e.loaded,e.total)},c.onload=function(){if(c.status>=200&&c.status<300){a(JSON.parse(c.responseText));var e=JSON.parse(c.responseText);n.filePondResponse=e,n.filePondResponse.success?("ZipArchive class not exists"==n.filePondResponse.info?(bn.info("Please install php-zip extension"),n.showRecord=!1):n.showRecord=!0,a()):(n.showRecord=!1,bn.error(n.filePondResponse.message))}else r("Server responded with status "+c.status)},c.send(l),{abort:function(){c.abort(),s()}}}},{key:"onProcessFile",value:function(){if("csv"===n.filePondResponse.file_type||"xml"===n.filePondResponse.file_type||"txt"===n.filePondResponse.file_type)return this.context.setMediaCSVInfo(aM(aM({},this.context.mediaCsvInfo),{},{hashKey:n.filePondResponse.hashkey,templateName:n.filePondResponse.filename.slice(0,-4),selectedtype:n.filePondResponse.selectedtype,fileName:n.filePondResponse.filename,connectionType:"desktop",postTypes:n.filePondResponse.posttype,fileSize:n.filePondResponse.file_size,fileType:n.filePondResponse.file_type,taxonomys:n.filePondResponse.taxonomy})),n.filePondResponse.success&&(this.setState({csvSuccess:!0}),console.log("this.state.csvSuccess",this.state.csvSuccess)),"xml"===n.filePondResponse.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),void this.context.setshowMediaComponent("csv-info");if("zip"===n.filePondResponse.file_type){for(var e=0;e<n.filePondResponse.info.length;e++)this.state.zipCsvFileName.push(n.filePondResponse.info[e].name),this.state.zipCsvUrls.push(n.filePondResponse.info[e].path);return this.context.setMediaCSVInfo(aM(aM({},this.context.mediaCsvInfo),{},{connectionType:"desktop"})),void this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},(function(){document.getElementById("desk-csv-open1").click()}))}}},{key:"onRemoveFile",value:function(){}},{key:"sendConfiguration",value:(h=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("sendConfiguration","call"),(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.mediaCsvInfo.hashKey),t.set("Types",this.context.mediaCsvInfo.selectedtype),t.set("Mode",this.context.mediaCsvInfo.replaceExistingItem),t.set("MediaType",this.context.selectedMediaType),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=9,e.next=12,Lt({method:"post",url:window.smack_nonce_object_pro.url,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 12:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&(this.setState({alert,responsefilename:this.context.mediaCsvInfo.fileName,filepath:n.data.file_path,loading:!1}),this.context.setCurrentUser(n.data.currentuser),!0===n.data.show_template?(this.context.setIsTemplate(!0),this.context.setSaveTemplateData(n.data.info),this.context.setshowMediaComponent("save-template")):(this.context.setCsvFields(n.data.csv_fields),o=mu(n.data.fields),console.log(o,o),this.context.setAllPluginFieldsMedia(o),"xml"===this.context.mediaCsvInfo.fileType?this.context.setshowMediaComponent("dragdrop-section"):(console.log("maappapas ram"),this.context.setshowMediaComponent("mapping-section")))),this.setState({csvSuccess:!1,zipSuccess:!1}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(9),console.log(e.t0);case 20:case"end":return e.stop()}}),e,this,[[9,17]])}))),function(){return h.apply(this,arguments)})},{key:"sendFileUrl",value:(d=u(m().mark((function e(){var t,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_csv_url"),t.set("url",this.context.selectedFileUrl),t.set("securekey",window.smack_nonce_object_pro.nonce),t.set("MediaType",this.context.selectedMediaType),this.setState({loading:!1}),e.prev=6,e.next=9,Lt({method:"post",url:window.smack_nonce_object_pro.url,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:if(!(o=e.sent)||!o.data){e.next=17;break}if(200!=o.status||!o.data.success){e.next=17;break}return this.context.setMediaCSVInfo(aM(aM({},this.context.mediaCsvInfo),{},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({hashKey:o.data.hashkey,templateName:n.filePondResponse.filename.slice(0,-4),selectedtype:o.data.selectedtype},"templateName","From-url"),"postTypes",o.data.posttype),"fileName",o.data.filename),"fileType",o.data.file_type),"fileSize",o.data.file_size),"taxonomys",o.data.taxonomy))),"xml"===o.data.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),document.getElementById("desk-csv-close1").click(),this.setState({csvSuccess:!0}),e.abrupt("return");case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(6),console.log(e.t0);case 22:case"end":return e.stop()}}),e,this,[[6,19]])}))),function(){return d.apply(this,arguments)})},{key:"showMappingFromTemplate",value:(a=u(m().mark((function e(){var t,n,o,a,r,i,s=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:"",n=s.length>1&&void 0!==s[1]&&s[1],(o=new FormData).set("action","templateinfo"),n&&o.set("TemplateName",t),o.set("HashKey",this.context.csvInfo.hashKey),o.set("Types",this.context.csvInfo.selectedtype),o.set("Mode",this.context.csvInfo.replaceExistingItem),o.set("securekey",window.smack_nonce_object_pro.nonce),o.set("MediaType",this.context.selectedMediaType),this.setState({loading:!0}),e.prev=11,e.next=14,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:if(!(a=e.sent)||!a.data){e.next=26;break}if(200!=a.status||!a.data.success){e.next=26;break}return this.setState({loading:!1}),r="",n?(this.context.setCurrentUser(a.data.currentuser),this.context.setMappingResult(a.data.already_mapped),this.context.setExistingTemplateName(t),this.context.setMediaCSVInfo(aM(aM({},this.context.csvInfo),{},{templateName:t})),this.context.setIsTemplate(!0),r="normal"===a.data.mapping_type?"mapping-section":"advanced"===a.data.mapping_type?"dragdrop-section":""===a.data.mapping_type?"mapping-section":a.data.mapping_type):(this.context.setIsTemplate(!1),r="mapping-section"),this.context.isXML&&(r="dragdrop-section"),this.context.setCsvFields(a.data.csv_fields),i=mu(a.data.fields),this.context.setAllPluginFields(i),this.context.setshowMediaComponent(r),e.abrupt("return");case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(11),console.log(e.t0);case 31:case"end":return e.stop()}}),e,this,[[11,28]])}))),function(){return a.apply(this,arguments)})},{key:"getCsvFields",value:(o=u(m().mark((function e(t){var n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","get_parse_xml"),n.set("Row",t),n.set("securekey",window.smack_nonce_object_pro.nonce),this.context.fromTemplateMappingSection||n.set("HashKey",this.context.hashKey),this.context.fromTemplateMappingSection&&this.context.activateUseExistingMappingState&&n.set("templatename",this.context.selectedTemplateNameInManagerSection),this.setState({loading:!0}),e.next=9,Lt({method:"post",url:window.smack_nonce_object_pro.url,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:if(200==(o=e.sent).status&&o.data.success){for(this.csvHeaders=[],this.csvHeadersValue=[],this.csvInformation=[],a=0;a<o.data.Headers.length;a++)this.csvHeaders.push(o.data.Headers[a]),this.csvHeadersValue.push(o.data.Values[a]),this.setState({totalCsvRows:o.data.total_rows});for(a=0;a<o.data.Headers.length;a++)this.csvInformation.push({csvHeaders:o.data.Headers[a],csvValues:o.data.Values[a]});this.forceUpdate()}case 11:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=this.state,o=(n.mediaUploadData,n.selectAllChecked,this.context),a=o.mediaCsvInfo,r=(o.setMediaCSVInfo,"MediaUpdate"===a.replaceExistingItem);return a.selectedtype,"Insert"===a.replaceExistingItem||a.replaceExistingItem,this.context.advancedModeSelection&&"import-update"===this.state.selectedTab?t.createElement(UploadAdvancedModeOption,null):this.state.toTemplateSection?t.createElement(ManagerOptions,{toManagerTemplateSection:!0}):"mapping-section"===this.context.showMediaComponent?t.createElement(DS,null):"save-template"===this.context.showMediaComponent?t.createElement(OS,null):"dragdrop-section"===this.context.showMediaComponent?t.createElement(YS,null):"import-config"===this.context.showMediaComponent?t.createElement(eM,null):"bulk-import"===this.context.showMediaComponent?t.createElement(nM,null):"simple-import"===this.context.showMediaComponent?t.createElement(SimpleImport,null):t.createElement(t.Fragment,null,"Local"===this.context.selectedMediaType&&t.createElement("div",{className:"chan"},t.createElement("div",{style:{marginLeft:"910px",display:"flex",alignItems:"center",cursor:"pointer"},onMouseEnter:function(e){e.currentTarget.querySelector(".text").style.color="red"},onMouseLeave:function(e){e.currentTarget.querySelector(".text").style.color="#459cdd"},onClick:function(t){t.currentTarget.querySelector(".text").style.color="red",e.context.setDrawerValue("media#1"),e.context.setDrawerOpen(!0)}},t.createElement("span",{className:"text",style:{color:"blue",fontSize:"14px",lineHeight:"14px",display:"flex",alignItems:"center",flexDirection:"row",marginLeft:"-100px"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}})," Need a Help?")),t.createElement("div",{className:"upload-container"},t.createElement(Ix,{fluid:!0},t.createElement(Rx,{className:"justify-content-center gap-8"},"Local"===this.context.selectedMediaType&&t.createElement(jx,{md:5},t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading active",id:"media-upload"},this.context.language.MediaUploadFields),t.createElement("div",{className:"card-body",id:"media-upload-body","data-display":"block"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent2"},t.createElement($w.a,{acceptedFileTypes:["zip"],allowMultiple:!1,maxFiles:1,server:{process:this.onZipProcess.bind(this)}}))))),("Local"===this.context.selectedMediaType||"External"===this.context.selectedMediaType)&&t.createElement(jx,{md:"Local"===this.context.selectedMediaType?5:10},t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading active",id:"media-upload"},this.context.language.CsvUploadFields),t.createElement("div",{className:"card-body",id:"media-upload-body","data-display":"block"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent1"},t.createElement($w.a,{acceptedFileTypes:["text/csv/xml"].zip,allowMultiple:!1,maxFiles:1,server:{process:this.onFilePondProcess.bind(this)},onprocessfile:this.onProcessFile.bind(this),onremovefile:this.onRemoveFile.bind(this)}))))))))),t.createElement("div",{className:"chan"},t.createElement(Rx,{className:"justify-content-center gap-8"},"External"===this.context.selectedMediaType&&t.createElement(jx,{md:"Local"===this.context.selectedMediaType?5:10},t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading active",id:"media-upload"},this.context.language.CsvUploadFields),t.createElement("div",{className:"card-body",id:"media-upload-body","data-display":"block"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent1"},t.createElement($w.a,{acceptedFileTypes:["text/csv/xml"].zip,allowMultiple:!1,maxFiles:1,server:{process:this.onFilePondProcess.bind(this)},onprocessfile:this.onProcessFile.bind(this),onremovefile:this.onRemoveFile.bind(this)}))))))),t.createElement(lS,{show:this.context.mediaUploadOption,onHide:function(){e.setState({newModal:!1}),e.context.setMediaUploadOption(!1)},centered:!0,id:"chooseMediaUpload",style:{minWidth:"100vw",zIndex:"1041",position:"absolute",padding:0,maxHeight:"fit-content",margin:0,boxShadow:"none",background:"transparent"}},console.log("this.showModal",this.state.newModal),console.log("this.radiobox",this.state.radioBox),t.createElement(lS.Header,{closeButton:!0,style:{background:"#00a699",color:"#fff"}},t.createElement(lS.Title,null," ",this.context.language.ChooseUploadMethod," ")),t.createElement(lS.Body,{"d-flex":!0,"justify-content-center":!0,mt40:!0,style:{gap:"15px",display:"grid",justifyContent:"left",margin:"15px"}},this.state.radioBox.map((function(n,o){return t.createElement(t.Fragment,{key:o},console.log("this.state.selectedRadioasss",e.state.selectedRadio,n),t.createElement(_S,{key:o,type:"radio",id:"radio-".concat(o),label:t.createElement("span",null,"External"===n?e.context.language.Remote:e.context.language.Device,"Local"===n?t.createElement(t.Fragment,null,t.createElement("br",null),t.createElement("span",{id:"textmodal"},e.context.language.SelectDeviceZIPfile)):"External"===n?t.createElement(t.Fragment,null,t.createElement("br",null),t.createElement("span",{id:"textmodal"},e.context.language.SelectDeviceCSVfile)):null),value:n,name:"post-item",checked:e.context.selectedMediaType===n,onChange:function(){return e.handleRadioChange(n)},className:"custom-radio ".concat(n===e.state.selectedRadio)}))}))),console.log("selectedRadio",this.context.selectedMediaType),t.createElement(lS.Footer,null,t.createElement(xS,{variant:"secondary",onClick:this.handleShowContent,id:"modalcontinue"},this.context.language.MediaContinue))),this.state.showContent&&t.createElement(t.Fragment,null,t.createElement("div",{className:"chan"},t.createElement("div",{className:"upload-container"},t.createElement(Ix,{fluid:!0},t.createElement(Rx,{className:"justify-content-center gap-8"},"Locale"===this.context.selectedMediaType&&t.createElement(jx,{md:5},t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading active",id:"media-upload"},this.context.language.MediaUploadFields),t.createElement("div",{className:"card-body",id:"media-upload-body","data-display":"block"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent2"},t.createElement($w.a,{acceptedFileTypes:["zip"],allowMultiple:!1,maxFiles:1,server:{process:this.onZipProcess.bind(this)}}))))),"Externale"===this.context.selectedMediaType&&t.createElement(jx,{md:"Local"===this.context.selectedMediaType?5:10},t.createElement("div",{className:"card csv-importer-panel"},t.createElement("h1",{className:"card-header main-heading active",id:"media-upload"},this.context.language.CsvUploadFields),t.createElement("div",{className:"card-body",id:"media-upload-body","data-display":"block"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent1"},t.createElement($w.a,{acceptedFileTypes:["text/csv/xml"].zip,allowMultiple:!1,maxFiles:1,server:{process:this.onFilePondProcess.bind(this)},onprocessfile:this.onProcessFile.bind(this),onremovefile:this.onRemoveFile.bind(this)}))))))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open1","data-bs-toggle":"modal","data-bs-target":"#upload_csv1"},this.context.language.UploadedCSVFileLists),t.createElement("div",{id:"upload_csv1",className:"modal fade payment_modal",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header d-flex justify-content-left p-0"},t.createElement("h5",{className:"modal-title ml-3",style:{marginLeft:"20px"}},"Choose a file"),t.createElement("div",{className:"d-flex align-items-center"},t.createElement("h5",null,this.state.zipFileName_csv),t.createElement("button",{type:"button",id:"desk-csv-close1",className:"close btn","data-bs-dismiss":"modal",style:{color:"#fff"}},"×"))),t.createElement("div",{className:"modal-body"},t.createElement("ul",null,this.state.zipCsvFileName.map((function(n,o){return t.createElement("li",null,t.createElement("div",{className:"form-check form-check-inline"},t.createElement("label",{class:"form-check-label"},t.createElement("input",{className:"form-check-input",onClick:function(t){t.target.checked&&e.context.setSelectedFileUrl(e.state.zipCsvUrls[o])},type:"radio",name:"post-item-media",style:{marginTop:"4px"},id:"mediaradio"})," ",n)))}))),t.createElement("div",{className:"float-right"},t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:this.sendFileUrl.bind(this),value:"Choose CSV File"})))))))),t.createElement("div",{className:"csvinfo"},t.createElement("div",{class:"d-flex justify-content-center mt40"},t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input ",onClick:function(){e.context.setMediaCSVInfo(aM(aM({},e.context.mediaCsvInfo),{},{replaceExistingItem:"Insert"}))},type:"radio",id:"insertRad",value:"Insert",checked:"Insert"===this.context.mediaCsvInfo.replaceExistingItem,disabled:r})," ",t.createElement("label",{for:"insertRad",class:"form-check-label",style:{color:r?"grey":"black"}},this.context.language.FreshImport)),t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input ",onClick:function(){e.context.setMediaCSVInfo(aM(aM({},e.context.mediaCsvInfo),{},{replaceExistingItem:"Update"}))},type:"radio",id:"updateRad",value:"Update",checked:"Update"===this.context.mediaCsvInfo.replaceExistingItem,disabled:r||"elementor_library"===a.selectedtype})," ","elementor_library"===this.context.mediaCsvInfo.selectedtype?t.createElement("label",{for:"updateRad",class:"form-check-label",style:{opacity:.6}},this.context.language.UpdateContent):t.createElement("label",{for:"updateRad",class:"form-check-label"},this.context.language.UpdateContent)))),t.createElement("div",{className:"float-right",style:{marginTop:"-4%",marginRight:"80px"}},this.state.loading?this.context.loaderText:t.createElement(t.Fragment,null,"Local"===this.state.selectedRadio&&t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:this.handleLocalButtonClick,value:this.context.language.Continue}),"External"===this.state.selectedRadio&&t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:this.handleExternalButtonClick,value:this.context.language.Continue}))),t.createElement("a",{href:"#",id:"upload-zip-open1","data-toggle":"modal","data-target":"#upload_media1"}),t.createElement(lS,{show:this.state.showModal,onHide:this.handleClose,centered:!0,dialogClassName:"modal-md"},t.createElement(lS.Header,{closeButton:!0},t.createElement(lS.Title,{className:"main-heading text-center py-1",style:{display:"flex",color:"#fff"}},t.createElement("div",{className:"me-2"},this.context.language.FileName),this.state.mediaUploadData.zipFileName)),t.createElement(lS.Body,{className:"my-2",style:{padding:"0.5rem 1rem 0.5rem 1rem"}},t.createElement("div",{className:"d-flex align-items-center",style:{marginLeft:"9px"}},t.createElement("span",{className:"textmodalzip"},this.context.language.ChooseImagesToImport)),t.createElement(SS,{striped:!0},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null,t.createElement("input",{type:"checkbox",id:"select-all",checked:this.state.selectAllChecked,onChange:this.handleSelectAllChange}),this.context.language.Name),t.createElement("th",{style:{textAlign:"end"}},this.context.language.Size))),t.createElement("tbody",null,this.state.mediaUploadData.data.map((function(n,o){return t.createElement("tr",{key:o},t.createElement("td",null,n.filename.endsWith("/")?t.createElement("span",null,n.filename):t.createElement(t.Fragment,null,t.createElement("input",{type:"checkbox",id:"checkbox-".concat(o),checked:n.checked,onChange:function(){return e.handleCheckboxChange(o)}}),t.createElement("label",{htmlFor:"checkbox-".concat(o)},n.filename))),t.createElement("td",{style:{textAlign:"end"}},n.size))}))))),t.createElement(lS.Footer,{id:"mediazipuploader"},t.createElement("div",{className:"d-flex align-items-center"},t.createElement(xx,{className:"me-2",style:{fill:"#00a699"}}),t.createElement("span",{className:"textmodalzip"},this.context.language.SelectAllImages)),t.createElement(xS,{variant:"primary",onClick:this.handleDelete,id:"modalcontinue"},this.context.language.OK))),"     "))}}]);var o,a,d,h,f,g}(t.Component);function sM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function lM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sM(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cM=function(){return!!e})()}(0,p.A)(iM,"contextType",f);var dM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,cM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={customPostType:[],taxonomies:[],JetBookingActive:!1,JetReviewsActive:!1,moduleRecordCount:"0 Data",customPostOption:"",taxonomiesOption:""},t.moduleName="",t.getModuleData=t.getModuleData.bind(t),t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.getPostTypes(),this.getTaxonomies()}},{key:"getPostTypes",value:(d=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_post_types"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:200==(n=e.sent).status&&(o=n.data.jetbooking_active,a=n.data.jetreviews_active,this.setState({JetBookingActive:o,JetReviewsActive:a}),this.setState({loading:!1}),this.setState({customPostType:n.data.custom_post_type}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"getTaxonomies",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_taxonomies"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:200==(n=e.sent).status&&(this.setState({loading:!1}),this.setState({taxonomies:n.data.taxonomies}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getModuleData",value:(o=u(m().mark((function e(t){var n,o,a,r,i=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],o=t.target.id,document.getElementById("exportbtn").disabled=!0,n&&(o=t.target.name,t.target.id),"Taxonomies"!==o&&"CustomPosts"!==o||!n?this.context.setExportInfo(lM(lM({},this.context.exportInfo),{},{moduleName:o})):this.context.setExportInfo(lM(lM({},this.context.exportInfo),{},{optionalType:t.target.value,moduleName:o})),(a=new FormData).set("action","total_records"),a.set("module",o),a.set("securekey",window.smack_nonce_object_pro.nonce),"Taxonomies"!==o&&"CustomPosts"!==o||!n||a.set("optionalType",t.target.value),this.setState({loading:!0}),this.setState({count:!0}),e.prev=12,e.next=15,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 15:200===(r=e.sent).status&&(this.setState({loading:!1}),this.setState({showExportTemplate:r.data.show_template}),""!=o?this.setState({moduleRecordCount:r.data.count+" "+o}):this.setState({moduleRecordCount:r.data.count+" Data"}),r.data.count>0?document.getElementById("exportbtn").disabled=!1:document.getElementById("exportbtn").disabled=!0),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(12),console.log(e.t0);case 22:case"end":return e.stop()}}),e,this,[[12,19]])}))),function(e){return o.apply(this,arguments)})},{key:"getExportOption",value:function(){""===this.context.exportInfo.moduleName?bn.error("Select any module to export"):this.state.showExportTemplate?this.context.setShowExport("export-template-section"):this.context.setShowExport("export-filter")}},{key:"render",value:function(){var e=this,n=this.state,o=n.JetBookingActive,a=n.JetReviewsActive;return t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row export"},t.createElement("h1",{class:"main-heading pr15 pl15 col-md-12 mt20 mb30"},this.context.language.Selectyourmoduletoexportthedata," ","     ",t.createElement("span",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){e.context.setDrawerValue("export#1"),e.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?"),this.state.count&&t.createElement("div",{className:"float-right"},this.state.loading?t.createElement("div",{className:"btn ajax-loader loading",style:{marginTop:"-5px",marginRight:"-25px"}}):""," ",t.createElement("span",{className:"exportData"},this.state.moduleRecordCount," Found"))),t.createElement("div",{className:"export-section col-md-6"},t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Posts",onClick:this.getModuleData}),t.createElement("label",{for:"Posts"},"Posts")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Pages",onClick:this.getModuleData}),t.createElement("label",{for:"Pages"},"Pages")),t.createElement("div",{className:"form-group row ml0"},t.createElement("div",{className:"col-md-4 pl0"},t.createElement("input",{type:"radio",name:"export",id:"CustomPosts",onClick:this.getModuleData}),t.createElement("label",{for:"CustomPosts"},"Custom Posts")),t.createElement("div",{className:"col-md-8",style:{display:"CustomPosts"===this.context.exportInfo.moduleName?"block":"none"}},t.createElement("select",{className:"select form-control",id:"customPostOption",name:"CustomPosts",onChange:function(t){e.setState({customPostOption:t.target.value}),e.getModuleData(t,!0)}},t.createElement("option",{value:""},"-select-"),this.state.customPostType.map((function(e,n){return t.createElement("option",{value:e},e)}))))),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Tags",onClick:this.getModuleData}),t.createElement("label",{for:"Tags"},"Post Tags")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Categories",onClick:this.getModuleData}),t.createElement("label",{for:"Categories"},"Post Categories")),t.createElement("div",{className:"form-group row ml0"},t.createElement("div",{className:"col-md-4 pl0"},t.createElement("input",{type:"radio",name:"export",id:"Taxonomies",onClick:this.getModuleData}),t.createElement("label",{for:"Taxonomies"},"Taxonomies")),t.createElement("div",{className:"col-md-8",style:{display:"Taxonomies"===this.context.exportInfo.moduleName?"block":"none"}},t.createElement("select",{className:"select form-control",id:"taxonomiesOption",name:"Taxonomies",onChange:function(t){e.setState({taxonomiesOption:t.target.value}),e.getModuleData(t,!0)}},t.createElement("option",{value:""},"-select-"),this.state.taxonomies.map((function(e,n){return t.createElement("option",{value:e},e)}))))),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Users",onClick:this.getModuleData}),t.createElement("label",{for:"Users"},"Users")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Comments",onClick:this.getModuleData}),t.createElement("label",{for:"Comments"},"Comments")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"Images",onClick:this.getModuleData}),t.createElement("label",{for:"Images"},"Images")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"CustomerReviews",onClick:this.getModuleData}),t.createElement("label",{for:"CustomerReviews"},"Customer Reviews"))),t.createElement("div",{className:"export-section offset-md-1 col-md-5"},t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WPeCommerce",onClick:this.getModuleData}),t.createElement("label",{for:"WPeCommerce"},"Wp-Commerce")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",onClick:this.getModuleData,id:"WPeCommerceCoupons"}),t.createElement("label",{for:"WPeCommerceCoupons"},"Wp-eCommerce Coupons")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WooCommerce",onClick:this.getModuleData}),t.createElement("label",{for:"WooCommerce"},"Woo-Commerce Products")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WooCommerceOrders",onClick:this.getModuleData}),t.createElement("label",{for:"WooCommerceOrders"},"Woo-Commerce Orders")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WooCommerceCoupons",onClick:this.getModuleData}),t.createElement("label",{for:"WooCommerceCoupons"},"Woo-Commerce Coupons")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WooCommerceCustomer",onClick:this.getModuleData}),t.createElement("label",{for:"WooCommerceCustomer"},"Woo-Commerce Customer")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WooCommerceRefunds",onClick:this.getModuleData}),t.createElement("label",{for:"WooCommerceRefunds"},"Woo-Commerce Refunds")),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"export",id:"WooCommerceReviews",onClick:this.getModuleData}),t.createElement("label",{for:"WooCommerceReviews"},"Woo-Commerce Reviews")),t.createElement("div",{className:"form-group"},a&&t.createElement(t.Fragment,null,t.createElement("input",{type:"radio",name:"export",id:"JetReviews",onClick:this.getModuleData}),t.createElement("label",{for:"JetReviews"},"Jet Reviews"))),t.createElement("div",{className:"form-group"},o&&t.createElement(t.Fragment,null,t.createElement("input",{type:"radio",name:"export",id:"JetBooking",onClick:this.getModuleData}),t.createElement("label",{htmlFor:"JetBooking"},"Jet Booking")))),t.createElement("div",{className:"col-md-12"},t.createElement("div",{className:"float-right"},t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",id:"exportbtn",onClick:function(t){e.getExportOption()},value:this.context.language.Continue}))))))}}]);var o,a,d}(t.Component);function uM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uM=function(){return!!e})()}(0,p.A)(dM,"contextType",f);var pM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,uM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handleQueryChange",(function(e){t.setState({selectedQuery:e.target.value})})),(0,p.A)(t,"handleArgsChange",(function(e){t.setState({queryArgs:e.target.value})})),(0,p.A)(t,"getQueryExample",(function(){switch(t.state.selectedQuery){case"post":return' "post_type"=> "post" ';case"user":return'"role"=> "subscriber" ';case"comment":return' "status"=> "approve" ';default:return"{}"}})),t.state={selectedQuery:"post",queryArgs:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"handleContinue",value:(o=u(m().mark((function e(){var t,n,o,a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","wpquery_data"),t.set("securekey",window.smack_nonce_object.nonce),t.set("query_data",this.state.queryArgs),t.set("type",this.state.selectedQuery),e.next=7,Lt({method:"post",url:window.smack_nonce_object.url,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:(n=e.sent).data.success?(this.context.setExportQueryData({seletedValue:this.state.selectedQuery,Query:this.state.queryArgs}),a=(null==n||null===(o=n.data)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.message)||"Sucess!",bn.success(a),this.context.setShowExport("export-filter")):(i=(null==n||null===(r=n.data)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.message)||"Something went wrong!",bn.error(i));case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row export justify-content-center"},t.createElement("div",{className:"col-md-10 mb-3",style:{marginTop:"55px"}},t.createElement("select",{className:"form-control",id:"query-type",style:{width:"100%",maxWidth:"600px",margin:"0 auto"},onChange:this.handleQueryChange,value:this.state.selectedQuery},t.createElement("option",{value:"post"},"Post Type Query"),t.createElement("option",{value:"user"},"User Query"),t.createElement("option",{value:"comment"},"Comment Query"))),t.createElement("div",{className:"col-md-10 mb-3"},t.createElement("label",{htmlFor:"query-args",className:"form-label"}),t.createElement("textarea",{className:"form-control",placeholder:this.getQueryExample(),id:"query-args",rows:"6",style:{width:"100%",maxWidth:"600px",margin:"0 auto"},value:this.state.queryArgs,onChange:this.handleArgsChange}),t.createElement("div",{className:"form-text",style:{marginTop:"10px",marginLeft:"220px",display:"flex",alignItems:"center",gap:"8px"}},t.createElement("span",{style:{color:"red"}},"*")," Enter your WP_Query arguments as a JSON-like object.",t.createElement("div",{style:{position:"relative",display:"inline-block"},className:"tooltip-container"},t.createElement("div",{style:{backgroundColor:"#007bff",color:"white",borderRadius:"50%",width:"18px",height:"18px",textAlign:"center",fontSize:"13px",lineHeight:"18px",cursor:"pointer"}},"i"),t.createElement("div",{className:"tooltip-box"},t.createElement("strong",null,"You can enter arguments like:"),t.createElement("br",null),t.createElement("code",{style:{color:"#fff",fontWeight:"400"}},this.getQueryExample()))))),t.createElement("div",{className:"col-md-12 mt45"},t.createElement("div",{className:"float-right"},t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",id:"exportbtn",onClick:function(){return e.handleContinue()},value:"continue"}))))))}}]);var o}(t.Component);function hM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hM=function(){return!!e})()}(0,p.A)(pM,"contextType",f);var mM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,hM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handleTabClick",(function(e){t.setState({activeTab:e})})),t.state={activeTab:"Export"},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){var e=this,n=this.state.activeTab;return t.createElement("div",null,t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"mapping-switcher"},t.createElement("li",{className:"Export"===n?"active":"",onClick:function(){return e.handleTabClick("Export")}},"Export"),t.createElement("li",{className:"ExportQuery"===n?"active":"",onClick:function(){return e.handleTabClick("ExportQuery")}},"WP Query")))),"Export"===n&&t.createElement(dM,null),"ExportQuery"===n&&t.createElement(pM,null))}}])}(t.Component);function fM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fM=function(){return!!e})()}var gM=function(e){function n(){return(0,r.A)(this,n),e=this,t=n,o=arguments,t=(0,l.A)(t),(0,s.A)(e,fM()?Reflect.construct(t,o||[],(0,l.A)(e).constructor):t.apply(e,o));var e,t,o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){return"export-module"===this.context.showExport?t.createElement(mM,null):"export-template-section"===this.context.showExport?t.createElement(lx,null):"export-filter"===this.context.showExport?t.createElement(iw,null):void 0}}])}(t.Component);function vM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vM=function(){return!!e})()}(0,p.A)(gM,"contextType",f);var _M=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,vM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,drop_table:!1,send_log_email:!1,send_user_password:!1,woocomattr:!0,unmatchedrow:!1,cmb2:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displayGeneralSettings(),this.context.setSelectedTabOnCookies("settings")}},{key:"displayGeneralSettings",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_options"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,this.setState({loading:!1}),void 0!==n.data.options&&n.data.options,200==n.status&&this.setState(n.data.options);case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"updateGeneralSetting",value:(o=u(m().mark((function e(t,n){var o,a,r,i=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"drop_table"===n?this.setState({drop_table:t.target.checked}):"send_log_email"===n?this.setState({send_log_email:t.target.checked}):"send_user_password"===n?this.setState({send_user_password:t.target.checked}):"woocomattr"===n?this.setState({woocomattr:t.target.checked}):"unmatchedrow"===n&&(o=t.target.checked,this.setState({unmatchedrow:o},(function(){i.context.setUnmatchedrow(o)}))),(a=new FormData).set("action","settings_options"),a.set("option",n),"cmb2"===n?a.set("value",t.target.value):a.set("value",t.target.checked),a.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=9,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:r=e.sent,this.setState({loading:!1}),200==r.status&&r.data.success&&bn.success("Settings Successfully Updated");case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane1 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.GeneralSettings," "),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},t.createElement("h4",null,this.context.language.DropTable),t.createElement("small",{className:"form-text text-muted"},this.context.language.Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored)),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},t.createElement("div",{className:"form-group col-md-6 fieldset"},t.createElement("h1",null,this.state.drop_table),t.createElement("input",{type:"checkbox",className:"form-control",id:"drop-table-check",checked:this.state.drop_table,onChange:function(t){e.updateGeneralSetting(t,"drop_table")}}),t.createElement("label",{className:"switch-ios",for:"drop-table-check"},t.createElement("i",null))))),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},t.createElement("h4",null,this.context.language.Scheduledlogmails),t.createElement("small",{className:"form-text text-muted"},this.context.language.Enabletogetscheduledlogmails)),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},t.createElement("div",{className:"form-group col-md-6 fieldset"},t.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.send_log_email,onClick:function(t){e.updateGeneralSetting(t,"send_log_email")},id:"scheduled-log-check"}),t.createElement("label",{className:"switch-ios",for:"scheduled-log-check"},t.createElement("i",null))))),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},t.createElement("h4",null,this.context.language.Sendpasswordtouser),t.createElement("small",{className:"form-text text-muted"},this.context.language.Enabletosendpasswordinformationthroughemail)),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},t.createElement("div",{className:"form-group col-md-6 fieldset"},t.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.send_user_password,onClick:function(t){e.updateGeneralSetting(t,"send_user_password")},id:"send-information"}),t.createElement("label",{className:"switch-ios",for:"send-information"},t.createElement("i",null))))),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},t.createElement("h4",null,this.context.language.WoocommerceCustomattribute),t.createElement("small",{className:"form-text text-muted"},this.context.language.Enablestoregisterwoocommercecustomattribute)),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},t.createElement("div",{className:"form-group col-md-6 fieldset"},t.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.woocomattr,onClick:function(t){e.updateGeneralSetting(t,"woocomattr")},id:"register-woocommerce"}),t.createElement("label",{className:"switch-ios",for:"register-woocommerce"},t.createElement("i",null))))),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},t.createElement("h4",null,this.context.language.DeletedatafromWordPress),t.createElement("small",{className:"form-text text-muted"},this.context.language.EnabletodeletetheitemsnotpresentinCSVXMLfile)),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},t.createElement("div",{className:"form-group col-md-6 fieldset"},t.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.unmatchedrow,onClick:function(t){e.updateGeneralSetting(t,"unmatchedrow")},id:"unmatchedrow"}),t.createElement("label",{className:"switch-ios",for:"unmatchedrow"},t.createElement("i",null))))),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},t.createElement("h4",null,"CMB2 Meta Fields prefix"),t.createElement("small",{className:"form-text text-muted"},"Mention the prefix of your fields.")),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3 text-center"},t.createElement("div",{className:"mt20"},t.createElement("input",{type:"text",placeholder:"Your Prefix",value:this.state.cmb2,class:"form-control",onChange:function(t){e.setState({cmb2:t.target.value},(function(){}))},onBlur:function(t){e.updateGeneralSetting(t,"cmb2")}}))))))))}}]);var o,a}(t.Component);(0,p.A)(_M,"contextType",f);const bM=_M;function yM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yM=function(){return!!e})()}var wM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,yM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={orphaned:!1,unassignedTags:!1,postpagerevisions:!1,autodraftedpostpage:!1,postpagetrash:!1,spamcomments:!1,trashedcomments:!1,unapprovedcomments:!1,pingbackcomments:!1,trackbackcomments:!1,tempData:{}},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("settings")}},{key:"getCheckBoxValue",value:(a=u(m().mark((function e(t,n){var o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(o={})["".concat(n)]=t.target.checked,this.setState(o,(function(){}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"dbOptimization",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","database_optimization_process"),t.set("orphaned",this.state.orphaned),t.set("unassignedTags",this.state.unassignedTags),t.set("postpagerevisions",this.state.postpagerevisions),t.set("autodraftedpostpage",this.state.autodraftedpostpage),t.set("postpagetrash",this.state.postpagetrash),t.set("spamcomments",this.state.spamcomments),t.set("trashedcomments",this.state.trashedcomments),t.set("unapprovedcomments",this.state.unapprovedcomments),t.set("pingbackcomments",this.state.pingbackcomments),t.set("trackbackcomments",this.state.trackbackcomments),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=16,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 16:n=e.sent,this.setState({loading:!1}),this.setState({tempData:n.data}),document.getElementById("triggerLog").click();case 20:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane2 active dboptimization"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading pb5"},this.context.language.DatabaseOptimization),t.createElement("p",{className:"text-danger text-dboptimization"},this.context.language.PleasemakesurethatyoutakenecessarybackupbeforeproceedingwithdatabaseoptimizationThedatalostcantbereverted),t.createElement("div",{className:"row mt40"},t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"database-optimization"},t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.orphaned,onClick:function(t){e.getCheckBoxValue(t,"orphaned")},className:"mr10",id:"delete_post_meta"}),t.createElement("label",{for:"delete_post_meta"},this.context.language.DeleteallorphanedPostPageMeta))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.unassignedTags,onClick:function(t){e.getCheckBoxValue(t,"unassignedTags")},className:"mr10",id:"delete_unassigned_tags"}),t.createElement("label",{for:"delete_unassigned_tags"},this.context.language.Deleteallunassignedtags))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.postpagerevisions,onClick:function(t){e.getCheckBoxValue(t,"postpagerevisions")},className:"mr10",id:"delete_post_revision"}),t.createElement("label",{for:"delete_post_revision"},this.context.language.DeleteallPostPagerevisions))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.autodraftedpostpage,onClick:function(t){e.getCheckBoxValue(t,"autodraftedpostpage")},className:"mr10",id:"delete_drafted_post"}),t.createElement("label",{for:"delete_drafted_post"},this.context.language.DeleteallautodraftedPostPage))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.postpagetrash,onClick:function(t){e.getCheckBoxValue(t,"postpagetrash")},className:"mr10",id:"delete_trash_post"}),t.createElement("label",{for:"delete_trash_post"},this.context.language.DeleteallPostPageintrash))))),t.createElement("div",{className:"col-md-6"},t.createElement("ul",{className:"database-optimization"},t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.trashedcomments,onClick:function(t){e.getCheckBoxValue(t,"trashedcomments")},className:"mr10",id:"delete_trash_comments"}),t.createElement("label",{for:"delete_trash_comments"},this.context.language.DeleteallCommentsintrash))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.unapprovedcomments,onClick:function(t){e.getCheckBoxValue(t,"unapprovedcomments")},className:"mr10",id:"delete_unapproved_comments"}),t.createElement("label",{for:"delete_unapproved_comments"},this.context.language.DeleteallUnapprovedComments))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.pingbackcomments,onClick:function(t){e.getCheckBoxValue(t,"pingbackcomments")},className:"mr10",id:"delete_pingback_comments"}),t.createElement("label",{for:"delete_pingback_comments"},this.context.language.DeleteallPingbackComments))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.trackbackcomments,onClick:function(t){e.getCheckBoxValue(t,"trackbackcomments")},className:"mr10",id:"delete_trashback_comments"}),t.createElement("label",{for:"delete_trashback_comments"},this.context.language.DeleteallTrackbackComments))),t.createElement("li",null,t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.spamcomments,onClick:function(t){e.getCheckBoxValue(t,"spamcomments")},className:"mr10",id:"delete_spam_comments"}),t.createElement("label",{for:"delete_spam_comments"},this.context.language.DeleteallSpamComments)))))),t.createElement("div",{className:"clearfix"}),t.createElement("div",{className:"row mt20"},t.createElement("div",{className:"col-md-4 offset-md-8"},t.createElement("input",{id:"database_optimization",onClick:function(){e.dbOptimization()},className:"action smack-btn smack-btn-warning",type:"button",value:this.context.language.RunDBOptimizer})))))),t.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#display_db_log",id:"triggerLog"}),t.createElement("div",{id:"display_db_log",className:"modal fade",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("h1",{class:"main-heading"},this.context.language.DatabaseOptimizationLog),t.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},"non_affected"!==this.state.tempData.orphaned?t.createElement("p",null,"(",this.state.tempData.orphaned,") ",this.context.language.noofOrphanedPostPagemetahasbeenremoved):"","non_affected"!==this.state.tempData.unassignedTags?t.createElement("p",null,"(",this.state.tempData.unassignedTags,") ",this.context.language.noofUnassignedtagshasbeenremoved):"","non_affected"!==this.state.tempData.postpagerevisions?t.createElement("p",null,"(",this.state.tempData.postpagerevisions,") ",this.context.language.noofPostPagerevisionhasbeenremoved):"","non_affected"!==this.state.tempData.autodraftedpostpage?t.createElement("p",null,"(",this.state.tempData.autodraftedpostpage,") ",this.context.language.noofAutodraftedPostPagehasbeenremoved):"","non_affected"!==this.state.tempData.postpagetrash?t.createElement("p",null,"(",this.state.tempData.postpagetrash,") ",this.context.language.noofPostPageintrashhasbeenremoved):"","non_affected"!==this.state.tempData.spamcomments?t.createElement("p",null,"(",this.state.tempData.spamcomments,") ",this.context.language.noofSpamcommentshasbeenremoved):"","non_affected"!==this.state.tempData.trashedcomments?t.createElement("p",null,"(",this.state.tempData.trashedcomments,") ",this.context.language.noofCommentsintrashhasbeenremoved):"","non_affected"!==this.state.tempData.unapprovedcomments?t.createElement("p",null,"(",this.state.tempData.unapprovedcomments,") ",this.context.language.noofUnapprovedcommentshasbeenremoved):"","non_affected"!==this.state.tempData.pingbackcomments?t.createElement("p",null,"(",this.state.tempData.pingbackcomments,") ",this.context.language.noofPingbackcommentshasbeenremoved):"","non_affected"!==this.state.tempData.trackbackcomments?t.createElement("p",null,"(",this.state.tempData.trackbackcomments,") ",this.context.language.noofTrackbackcommentshasbeenremoved):"")))))}}]);var o,a}(t.Component);(0,p.A)(wM,"contextType",f);const kM=wM;function xM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xM=function(){return!!e})()}var EM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,xM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,securityData:[],author_editor_access:!1},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.displaySecurityPerformance(),this.displayGeneralSettings(),this.context.setSelectedTabOnCookies("settings")}},{key:"displayGeneralSettings",value:(d=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_options"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,this.setState({loading:!1}),this.setState(n.data.options);case 9:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"updateGeneralSetting",value:(a=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","settings_options"),n.set("option","author_editor_access"),n.set("value",t.target.checked),n.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=8,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:o=e.sent,this.setState({loading:!1}),200==o.status&&o.data.success?(this.setState({author_editor_access:o.data.option}),bn.success("Settings Successfully Updated")):bn.info("Admin only can change this option");case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"displaySecurityPerformance",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","security_performance"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,this.setState({loading:!1}),200==n.status&&this.setState({securityData:n.data});case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane3 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading pb5"},this.context.language.SecurityandPerformance),t.createElement("div",{className:"form-group row mt30 d-none"},t.createElement("div",{className:"col-xs-12 col-sm-7 col-md-7 nopadding"},t.createElement("h4",null,this.context.language.Allowauthorseditorstoimport),t.createElement("small",{className:"form-text text-muted"},this.context.language.Thisenablesauthorseditorstoimport)),t.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3 "},t.createElement("div",{className:"form-group col-md-6 fieldset"},t.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.author_editor_access,onChange:function(t){e.updateGeneralSetting(t)},id:"two"}),t.createElement("label",{className:"switch-ios inline",for:"two"},t.createElement("i",null))))),t.createElement("table",{className:"table table-striped"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("th",{colspan:"3"},t.createElement("h5",{className:"text-capitalize"},this.context.language.MinimumrequiredphpinivaluesIniconfiguredvalues))),t.createElement("tr",null,t.createElement("th",null,t.createElement("label",null,this.context.language.Variables)),t.createElement("th",{className:"ini-configured-values"},t.createElement("label",null,this.context.language.SystemValues)),t.createElement("th",{className:"min-requirement-values"},t.createElement("label",null,this.context.language.MinimumRequirements))),t.createElement("tr",null,t.createElement("td",null,"post_max_size "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.post_max_size?this.state.securityData.post_max_size:"-"),t.createElement("td",{className:"min-requirement-values"},"10M")),t.createElement("tr",null,t.createElement("td",null,"auto_append_file"),t.createElement("td",{className:"ini-configured-values"}," ",""!==this.state.securityData.auto_append_file?this.state.securityData.auto_append_file:"-"," "),t.createElement("td",{className:"min-requirement-values"},"-")),t.createElement("tr",null,t.createElement("td",null,"auto_prepend_file "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.auto_prepend_file?this.state.securityData.auto_prepend_file:"-"),t.createElement("td",{className:"min-requirement-values"},"-")),t.createElement("tr",null,t.createElement("td",null,"upload_max_filesize "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.upload_max_filesize?this.state.securityData.upload_max_filesize:"-"),t.createElement("td",{className:"min-requirement-values"},"2M")),t.createElement("tr",null,t.createElement("td",null,"file_uploads "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.file_uploads?this.state.securityData.file_uploads:"-"),t.createElement("td",{className:"min-requirement-values"},"On")),t.createElement("tr",null,t.createElement("td",null,"allow_url_fopen "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.allow_url_fopen?this.state.securityData.allow_url_fopen:"-"),t.createElement("td",{className:"min-requirement-values"},"On")),t.createElement("tr",null,t.createElement("td",null,"max_execution_time "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_execution_time?this.state.securityData.max_execution_time:"-"),t.createElement("td",{className:"min-requirement-values"},"3000")),t.createElement("tr",null,t.createElement("td",null,"max_input_time "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_input_time?this.state.securityData.max_input_time:"-"),t.createElement("td",{className:"min-requirement-values"},"3000")),t.createElement("tr",null,t.createElement("td",null,"max_input_vars "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_input_vars?this.state.securityData.max_input_vars:"-"),t.createElement("td",{className:"min-requirement-values"},"3000")),t.createElement("tr",null,t.createElement("td",null,"memory_limit "),t.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.wp_memory_limit?this.state.securityData.wp_memory_limit:"-"),t.createElement("td",{className:"min-requirement-values"},"99M")))),t.createElement("h4",{class:"mt30"},this.context.language.RequiredtoenabledisableLoadersExtentionsandmodules),t.createElement("table",{className:"table table-striped"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",null,"PDO"),t.createElement("td",null,""!==this.state.securityData.PDO?this.state.securityData.PDO:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",null,"Curl "),t.createElement("td",null,""!==this.state.securityData.curl?this.state.securityData.curl:"-"),t.createElement("td",null)))),t.createElement("h4",{className:"mt30"},this.context.language.DebugInformation),t.createElement("table",{className:"table table-striped"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"debug-info-name",style:{width:"25%"}},"WordPress Version"),t.createElement("td",null,""!==this.state.securityData.wp_version?this.state.securityData.wp_version:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"PHP Version"),t.createElement("td",null,""!==this.state.securityData.php_version?this.state.securityData.php_version:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"MySQL Version"),t.createElement("td",null,""!==this.state.securityData.db_version?this.state.securityData.db_version:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"Server SoftWare"),t.createElement("td",null,""!==this.state.securityData.server_software?this.state.securityData.server_software:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"Your User Agent"),t.createElement("td",null,""!==this.state.securityData.http_agent?this.state.securityData.http_agent:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"WPDB Prefix"),t.createElement("td",null,""!==this.state.securityData.db_prefix?this.state.securityData.db_prefix:"-"),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"WP Multisite Mode"),t.createElement("td",null,""!==this.state.securityData.wp_multi_site?this.state.securityData.wp_multi_site:"-"," "),t.createElement("td",null)),t.createElement("tr",null,t.createElement("td",{className:"debug-info-name"},"WP Memory Limit"),t.createElement("td",null,""!==this.state.securityData.wp_memory_limit?this.state.securityData.wp_memory_limit:"-"),t.createElement("td",null))))))))}}]);var o,a,d}(t.Component);(0,p.A)(EM,"contextType",f);const SM=EM;function MM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MM=function(){return!!e})()}var TM=function(e){function n(){return(0,r.A)(this,n),e=this,t=n,o=arguments,t=(0,l.A)(t),(0,s.A)(e,MM()?Reflect.construct(t,o||[],(0,l.A)(e).constructor):t.apply(e,o));var e,t,o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("settings")}},{key:"render",value:function(){return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane4 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading"},this.context.language.Documentation),t.createElement("div",{className:"embed-responsive embed-responsive-16by9"},t.createElement("iframe",{className:"embed-responsive-item",src:"https://www.youtube.com/embed/700BHAR3PJA",allowfullscreen:!0})),t.createElement("h1",{className:"main-heading"},this.context.language.SmackcodersGuidelines),t.createElement("ul",{className:"list-unstyled"},t.createElement("li",null,t.createElement("a",{href:"https://goo.gl/OAVF9u",target:"_blank"},this.context.language.DevelopmentNews," ")),t.createElement("li",null,t.createElement("a",{href:"https://goo.gl/kKWPui",target:"_blank"},this.context.language.WhatsNew," ")),t.createElement("li",null,t.createElement("a",{href:"https://www.smackcoders.com/documentation/wp-ultimate-csv-importer-pro?utm_source=csv_importer_pro_plugin_settings&utm_medium=dashboard&utm_campaign=pro_plugin_docs",target:"_blank"},this.context.language.Documentation," ")),t.createElement("li",null,t.createElement("a",{href:"https://youtube.com/playlist?list=PL2k3Ck1bFtbTT-5Tz2PLkoAUJ1fRdwUSj&si=i3OPhBv1mxkXEGy6",target:"_blank"},this.context.language.YoutubeChannel," ")),t.createElement("li",null,t.createElement("a",{href:"https://www.smackcoders.com/wordpress.html",target:"_blank"},this.context.language.OtherWordPressPlugins," ")))))))}}])}(t.Component);(0,p.A)(TM,"contextType",f);const CM=TM;function AM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AM=function(){return!!e})()}var DM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,AM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handleOpenAITabClick",u(m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","get_setting"),n.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=3,e.next=6,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 6:200===(o=e.sent).status&&(0==o.data.setting?t.setState({prefixValue:!1,apiKey:""}):t.setState({prefixValue:!0,apiKey:o.data.setting})),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})))),(0,p.A)(t,"handleInputChange",(function(e){t.setState({apiKey:e.target.value})})),(0,p.A)(t,"displayGeneralSettings",u(m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=t.state.apiKey){e.next=4;break}return bn.error("Please Insert your API Key"),e.abrupt("return");case 4:return bn.success("Your API Key saved successfully"),(n=new FormData).set("action","get_options"),n.set("securekey",window.smack_nonce_object_pro.nonce),n.set("prefixValue",t.state.apiKey),t.setState({loading:!0}),e.prev=10,e.next=13,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 13:200===(o=e.sent).status&&(t.setState({loading:!1}),void 0!==o.data.options&&null!==o.data.options&&t.setState({prefixValue:!0})),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),t.setState({loading:!1});case 20:case"end":return e.stop()}}),e,null,[[10,17]])})))),(0,p.A)(t,"revokeApiKey",u(m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","get_options"),n.set("securekey",window.smack_nonce_object_pro.nonce),n.set("prefixValue","delete"),t.setState({loading:!0}),e.prev=5,e.next=8,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 8:200===(o=e.sent).status&&(t.setState({loading:!1}),void 0!==o.data.options&&null!==o.data.options&&t.setState({apiKey:"",prefixValue:!1}),bn.success("Your API Key deleted successfully")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),t.setState({loading:!1});case 15:case"end":return e.stop()}}),e,null,[[5,12]])})))),t.state={prefixValue:!1,apiKey:"",loading:!1},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.handleOpenAITabClick()}},{key:"render",value:function(){return t.createElement("div",{className:"col-sm-8 col-md-9"},t.createElement("div",{className:"setting-tab-pane setting-tabpane5 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading"},"OpenAI Settings"),t.createElement("div",{className:"row"},this.state.prefixValue?t.createElement(t.Fragment,null,t.createElement("div",{className:"api_row"},t.createElement("div",{className:"text-center"},""!=this.state.apiKey?"".concat(this.state.apiKey.substring(0,2),"****************************").concat(this.state.apiKey.substring(this.state.apiKey.length-2)):""),t.createElement("div",{className:"openaibutton_revoke"},t.createElement("i",{class:"removeapikey",onClick:this.revokeApiKey},"Remove")))):t.createElement(t.Fragment,null,t.createElement("div",{className:"api_row"},t.createElement("div",{className:"text-center"},t.createElement("input",{type:"text",id:"apikey",placeholder:"Your OpenAI API Key",className:"form-control openAIsetting",value:this.state.apiKey,onChange:this.handleInputChange})),t.createElement("div",{className:"openaibutton_revoke"},t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.displayGeneralSettings},"Save"))))),this.state.prefixValue?"":t.createElement("div",{className:"",style:{marginTop:"2px",paddingLeft:"10px"}},t.createElement("a",{href:"https://platform.openai.com/api-keys",target:"_blank",rel:"noopener noreferrer",className:"api_url"},"To get API key")),t.createElement("br",null),t.createElement("br",null),t.createElement("div",{className:"openai_note"},t.createElement("p",null,t.createElement("b",null,"Note :")," With the free OpenAI API key, you're limited to 3 requests per minute for descriptions and 1 request per minute for images."))))))}}])}(t.Component);(0,p.A)(DM,"contextType",f);const PM=DM;function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LM=function(){return!!e})()}const NM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,LM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handleInputChange",(function(e){var n=e.target,o=n.name,a=n.value;t.setState((0,p.A)({},o,a)),localStorage.setItem(o,a)})),(0,p.A)(t,"handleConnect",u(m().mark((function e(){var n,o,a,r,i,s,l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleConnect function triggered"),n=t.state,o=n.clientId,a=n.clientSecret,r=n.redirectUri,o&&a&&r){e.next=5;break}return bn.error("Please fill in all fields."),e.abrupt("return");case 5:return t.setState({isLoading:!0,error:""}),e.prev=6,(i=new FormData).append("action","handle_google_oauth_request"),i.append("clientId",o),i.append("clientSecret",a),i.append("redirectUri",r),i.append("securekey",window.smack_nonce_object_pro.nonce),console.log("Making request to: ",window.smack_nonce_object_pro.url),e.next=16,Lt.post(window.smack_nonce_object_pro.url,i,{headers:{"X-Requested-With":"XMLHttpRequest"}});case 16:s=e.sent,(l=s.data).success&&l.data.oauthUrl?window.location.href=l.data.oauthUrl:(t.setState({error:l.message||"Unknown error"}),bn.error("Failed to initiate OAuth process: ".concat(l.message||"Unknown error"))),e.next=26;break;case 21:e.prev=21,e.t0=e.catch(6),t.setState({error:e.t0.message}),bn.error("An unexpected error occurred. Please try again."),console.error("Error initiating OAuth process:",e.t0);case 26:return e.prev=26,t.setState({isLoading:!1}),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[6,21,26,29]])})))),t.state={clientId:localStorage.getItem("clientId")||"",clientSecret:localStorage.getItem("clientSecret")||"",redirectUri:localStorage.getItem("redirectUri")||"",isLoading:!1,error:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){var e=this.state,n=e.clientId,o=e.clientSecret,a=e.redirectUri,r=e.isLoading,i=e.error;return t.createElement("div",{className:"google-sheet-settings",style:{marginTop:"20px",paddingLeft:"185px"}},i&&t.createElement("div",{className:"alert alert-danger"},i),t.createElement("div",{className:"form-group",style:{marginTop:"10px"}},t.createElement("label",null,"Client ID"),t.createElement("input",{type:"text",name:"clientId",value:n,onChange:this.handleInputChange,className:"form-control",placeholder:"Enter Client ID"})),t.createElement("div",{className:"form-group",style:{marginTop:"10px"}},t.createElement("label",null,"Client Secret"),t.createElement("input",{type:"text",name:"clientSecret",value:o,onChange:this.handleInputChange,className:"form-control",placeholder:"Enter Client Secret"})),t.createElement("div",{className:"form-group",style:{marginTop:"10px"}},t.createElement("label",null,"Redirect URL"),t.createElement("input",{type:"text",name:"redirectUri",value:a,onChange:this.handleInputChange,className:"form-control",placeholder:"Enter Redirect URL"})),t.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.handleConnect,disabled:r,style:{marginTop:"15px",marginLeft:"270px"}},r?"Saving...":"Save"))}}])}(t.Component);function IM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(IM=function(){return!!e})()}var OM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,IM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"handleOpenAITabClick",u(m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setState({openAITabActive:"active",documentationTabActive:"",generalSettingsTabActive:"",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",mediaReportTabActive:"",googleSheetTabActive:""});case 1:case"end":return e.stop()}}),e)})))),t.state={generalSettingsTabActive:"active",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",openAITabActive:"",googleSheetTabActive:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"showSettingsOptions",value:function(){var e=this;return t.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3"},t.createElement("ul",{className:"setting-tab"},t.createElement("li",{"data-setting":"setting-tabpane1",className:"setting-tab-list ".concat(this.state.generalSettingsTabActive),onClick:function(t){e.setState({generalSettingsTabActive:"active",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",openAITabActive:"",mediaReportTabActive:"",googleSheetTabActive:""})}},t.createElement("i",{className:"csv-icon-cog","aria-hidden":"true"}),this.context.language.GeneralSettings),t.createElement("li",{"data-setting":"setting-tabpane2",className:"setting-tab-list ".concat(this.state.databaseOptimizationTabActive),onClick:function(t){e.setState({databaseOptimizationTabActive:"active",generalSettingsTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",openAITabActive:"",mediaReportTabActive:"",googleSheetTabActive:""})}},t.createElement("i",{className:"csv-icon-database","aria-hidden":"true"}),this.context.language.DatabaseOptimization),t.createElement("li",{"data-setting":"setting-tabpane3",className:"setting-tab-list ".concat(this.state.securityAndPerformanceTabActive),onClick:function(t){e.setState({securityAndPerformanceTabActive:"active",generalSettingsTabActive:"",databaseOptimizationTabActive:"",documentationTabActive:"",openAITabActive:"",mediaReportTabActive:"",googleSheetTabActive:""})}},t.createElement("i",{className:"csv-icon-settings1","aria-hidden":"true"})," ",this.context.language.SecurityandPerformance),t.createElement("li",{"data-setting":"setting-tabpane4",className:"setting-tab-list ".concat(this.state.documentationTabActive),onClick:function(t){e.setState({documentationTabActive:"active",openAITabActive:"",generalSettingsTabActive:"",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",mediaReportTabActive:"",googleSheetTabActive:""})}},t.createElement("i",{className:"csv-icon-file-text","aria-hidden":"true"})," ",this.context.language.Documentation),t.createElement("li",{"data-setting":"setting-tabpane5",className:"setting-tab-list ".concat(this.state.openAITabActive),onClick:this.handleOpenAITabClick},t.createElement("span",{class:"icon-Ai_icons-05",id:"chatgpt_icon"}),"OpenAI Setting"),t.createElement("li",{"data-setting":"setting-tabpane6",className:"setting-tab-list ".concat(this.state.googleSheetTabActive),onClick:function(){e.setState({googleSheetTabActive:"active",openAITabActive:"",generalSettingsTabActive:"",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:""})}},t.createElement(Ex,null)," Google Sheet")))}},{key:"render",value:function(){return t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row"},this.showSettingsOptions(),"active"===this.state.generalSettingsTabActive?t.createElement(bM,null):"active"===this.state.databaseOptimizationTabActive?t.createElement(kM,null):"active"===this.state.securityAndPerformanceTabActive?t.createElement(SM,null):"active"===this.state.documentationTabActive?t.createElement(CM,null):"active"===this.state.openAITabActive?t.createElement(PM,null):"active"===this.state.googleSheetTabActive?t.createElement(NM,null):t.createElement("div",null," ",this.context.language.NotSelectedAnyTab," "))))}}])}(t.Component);(0,p.A)(OM,"contextType",f);const RM=OM;function FM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FM=function(){return!!e})()}var jM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,FM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loadingSupport:!1,loadingSubscription:!1,supportEmail:"",supportType:"bug_reporting",message:"",newsletterEmail:"",errors:"",orderId:""},t.supportEmail="",t.orderId="",t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("support")}},{key:"submitContactForm",value:(a=u(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","support_mail"),n.set("email",this.state.supportEmail),n.set("orderid",this.state.orderId),n.set("query",this.state.supportType),n.set("message",this.state.message),n.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loadingSupport:!0}),e.next=10,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:200==e.sent.status&&(this.setState({loadingSupport:!1,supportEmail:"",message:""}),bn.success("Mail Sent Successfully"));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"submitSubscriptionForm",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","send_subscribe_email"),t.set("subscribe_email",this.state.newsletterEmail),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loadingSubscription:!0}),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:(n=e.sent)&&n.data&&200==n.status&&(this.setState({loadingSubscription:!1,newsletterEmail:""}),bn.success("Successfull Subscribe to Newsletter"));case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"handleValidation",value:function(e){this.supportEmail=e;var t=!0;return""===this.supportEmail&&(t=!1),void 0!==this.supportEmail&&(t=!!new RegExp(/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,15}/g).test(this.supportEmail)),t}},{key:"handleValidationOrderId",value:function(e){return!(!new RegExp(/^[0-9]+$/).test(e)||9!==e.length)}},{key:"render",value:function(){var e=this;return t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"card-body"},t.createElement("div",{className:"row justify-content-around"},t.createElement("div",{className:"col-md-12 text-center mt10 mb30"},t.createElement("p",null,this.context.language.LoveWPUltimateCSVImporterGivea5starreviewon," ",t.createElement("a",{className:"csv-link",href:"https://wordpress.org/support/plugin/wp-ultimate-csv-importer/reviews/?filter=5",target:"_blank"}," wordpress.org!"))),t.createElement("div",{className:"col-md-6"},t.createElement("div",{className:"border-container"},t.createElement("h5",{className:"border-container-header"},this.context.language.ContactSupport),t.createElement("form",{method:"",action:""},t.createElement("div",{className:"form-group"},t.createElement("label",null,this.context.language.Email),t.createElement("input",{type:"text",className:"form-control",value:this.state.supportEmail,onChange:function(t){e.setState({supportEmail:t.target.value})}})),t.createElement("div",{className:"form-group"},t.createElement("label",null,this.context.language.OrderId),t.createElement("input",{type:"text",className:"form-control",value:this.state.orderId,onChange:function(t){var n=t.target.value;e.setState({orderId:n}),""===n||e.handleValidationOrderId(n)?e.setState({errors:""}):e.setState({errors:"Order Id is incorrect"})}}),t.createElement("p",{style:{color:"red"}},this.state.errors)),t.createElement("div",{className:"form-group"},t.createElement("label",null,this.context.Supporttype),t.createElement("select",{className:"form-control",value:this.state.supportType,onClick:function(t){e.setState({supportType:t.target.value})}},t.createElement("option",{value:"bug_reporting"},this.context.language.BugReporting),t.createElement("option",{value:"feature_enhancement"},this.context.language.FeatureEnhancement))),t.createElement("div",{className:"form-group"},t.createElement("label",null,this.context.language.Message),t.createElement("textarea",{className:"form-control",value:this.state.message,onChange:function(t){e.setState({message:t.target.value})},rows:"5"})),t.createElement("div",{className:"form-group d-flex justify-content-end"},this.state.loadingSupport?this.context.loaderText:t.createElement("input",{type:"button",name:"",onClick:function(t){""===e.state.errors&&""!==e.state.message&&""!==e.state.supportEmail?e.submitContactForm.bind(e)(t):(""===e.state.message&&bn.info("You don't describe the bug or feature you want to enhance"),""===e.state.supportEmail&&bn.info("Please provide Email"),""!==e.state.errors&&bn.info(e.state.errors))},className:"smack-btn smack-btn-primary",value:this.context.language.Send}))))),t.createElement("div",{className:"col-md-6"},t.createElement("div",{className:"border-container"},t.createElement("h5",{className:"border-container-header"},this.context.language.NewsletterSubscription),t.createElement("form",{action:"",method:""},t.createElement("div",{className:"form-group"},t.createElement("label",null,this.context.language.Email),t.createElement("input",{type:"email",name:"",className:"form-control",value:this.state.newsletterEmail,onChange:function(t){e.setState({newsletterEmail:t.target.value}),e.handleValidation(e.state.newsletterEmail)?e.setState({errorsSubscribe:""}):e.setState({errorsSubscribe:"Email entered is not Valid"})}}),t.createElement("p",{style:{color:"red"}},this.state.errorsSubscribe)),t.createElement("div",{className:"form-group d-flex justify-content-end"},this.state.loadingSubscription?this.context.loaderText:t.createElement("input",{type:"button",name:"",className:"smack-btn smack-btn-primary",onClick:function(){""===e.state.errorsSubscribe?e.submitSubscriptionForm():bn.info("Email you entered is not valid")},value:this.context.language.Subscribe})))),t.createElement("div",{className:"mt40 p15"},t.createElement("h5",null,this.context.language.Note),t.createElement("div",{className:"mt20"},t.createElement("i",{className:"csv-icon-document-text text-primary mr5"}),this.context.language.SubscribetoSmackcodersMailinglistafewmessagesayear),t.createElement("div",{className:"mt20"},t.createElement("i",{className:"csv-icon-mail text-primary mr5"}),this.context.language.Pleasedraftamailto," ",t.createElement("span",{className:"text-primary font-weight-bold"},"support@smackcoders.com.")," ",this.context.language.Ifyoudoesnotgetanyacknowledgementwithinanhour)))))))}}]);var o,a}(t.Component);(0,p.A)(jM,"contextType",f);const YM=jM;var zM=t.createContext();function BM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BM=function(){return!!e})()}var HM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,BM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={setExistingBuckets:"",loading:!1},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("storage")}},{key:"updateStorageSetting",value:(a=u(m().mark((function e(){var t;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","storage_settings_details"),t.set("copyfiles",this.context.statusCopyFiles),t.set("awsyearpath",this.context.awsstatusYearPath),t.set("digitalyearpath",this.context.digitalstatusYearPath),t.set("awsdelete",this.context.awsdelete),t.set("digitaldelete",this.context.digitaldelete),t.set("rewriteurl",this.context.rewriteUrl),t.set("awsstatusPath",this.context.awsstatusPathSettings),t.set("digitalstatusPath",this.context.digitalstatusPathSettings),t.set("awscnamePath",this.context.awscnamePathSettings),t.set("digitalcnamePath",this.context.digitalcnamePathSettings),t.set("awspath",this.context.awsmediaPath),t.set("digitalpath",this.context.digitalmediaPath),t.set("awscname",this.context.awsdomainPath),t.set("digitalcname",this.context.digitaldomainPath),t.set("provider",this.context.chosenServiceProvider),t.set("updatedbucket",this.context.selectedBucketsName),this.setState({loading:!0}),e.next=21,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 21:200==e.sent.status&&(this.setState({loading:!1}),bn.success("Settings Successfully Updated"));case 23:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"displaystoragepage",value:(o=u(m().mark((function e(){var t;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","displaycurrentpage"),t.set("currentpage","mediadisplay"),t.set("currenttab","media"),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:200==e.sent.status&&this.setState({backToselectbucket:!0});case 8:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return this.state.backToselectbucket?t.createElement(eT,null):t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{id:"mapping-accordian",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row"},t.createElement("div",{className:"col-sm-12 col-md-12"},t.createElement("div",{className:"setting-tab-pane setting-tabpane1 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading mb20"},"Storage Settings"),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Providers")),t.createElement("div",{className:"col-md-7"},this.context.chosenServiceProvider)),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Origin")),t.createElement("div",{className:"col-md-7"},t.createElement("a",{href:this.context.endPoints,target:"_blank"}," ",this.context.endPoints))),t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Edge")),t.createElement("div",{className:"col-md-7"},t.createElement("a",{href:this.context.edgePoints,target:"_blank"}," ",this.context.edgePoints))),t.createElement("div",{className:"form-group row pt10"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Copy Files to Bucket"),t.createElement("small",{className:"form-text text-muted"},"When a file is uploaded to the Media Library, copy it to the bucket")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"copyFiles",className:"form-control",type:"checkbox",checked:this.context.statusCopyFiles,onClick:function(t){e.context.setStatusCopyFiles(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"copyFiles"},t.createElement("i",null))))),"digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Year/Month"),t.createElement("small",{className:"form-text text-muted"},"Add the Year/Month to the end of the path above just like WordPress does by default.")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"yearpath",className:"form-control",type:"checkbox",checked:this.context.digitalstatusYearPath,onClick:function(t){e.context.setDigitalStatusYearPath(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"yearpath"},t.createElement("i",null))))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Year/Month"),t.createElement("small",{className:"form-text text-muted"},"Add the Year/Month to the end of the path above just like WordPress does by default.")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"yearpath",className:"form-control",type:"checkbox",checked:this.context.awsstatusYearPath,onClick:function(t){e.context.setAwsStatusYearPath(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"yearpath"},t.createElement("i",null))))):"",t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Rewrite image URL"),t.createElement("small",{className:"form-text text-muted"},"Url loaded from ","digitalOcean"===this.context.chosenServiceProvider?"Digital Ocean":"Amazon S3")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"rewriteurl",className:"form-control",type:"checkbox",checked:this.context.rewriteUrl,onClick:function(t){e.context.setRewriteUrl(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"rewriteurl"},t.createElement("i",null))))),"digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Path"),t.createElement("small",{className:"form-text text-muted"},'By default the path is the same as your local WordPress files Don\'t start any path with a forward slash, or it will give "SignatureDoesNotMatch" exception'),t.createElement("div",{className:"new-bucket"},this.context.digitalstatusPathSettings?t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("input",{id:"path",className:"form-control",type:"text",placeholder:"path",value:this.context.digitalmediaPath,onChange:function(t){console.log("path",t.target.value),e.context.setDigitalMediaPath(t.target.value)}}))):"")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"paths",className:"form-control",type:"checkbox",checked:this.context.digitalstatusPathSettings,onClick:function(t){e.context.setDigitalStatusPathSettings(t.target.checked),console.log("Checked Status",t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"paths"},t.createElement("i",null))))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Path"),t.createElement("small",{className:"form-text text-muted"},'By default the path is the same as your local WordPress files Don\'t start any path with a forward slash, or it will give "SignatureDoesNotMatch" exception'),t.createElement("div",{className:"new-bucket"},this.context.awsstatusPathSettings?t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("input",{id:"path",className:"form-control",type:"text",placeholder:"path",value:this.context.awsmediaPath,onChange:function(t){console.log("path",t.target.value),e.context.setAwsMediaPath(t.target.value)}}))):"")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"paths",className:"form-control",type:"checkbox",checked:this.context.awsstatusPathSettings,onClick:function(t){e.context.setAwsStatusPathSettings(t.target.checked),console.log("Checked Status",t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"paths"},t.createElement("i",null))))):"","digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"CNAME(Custom Domain)"),t.createElement("small",{className:"form-text text-muted"},"We strongly recommend you configure a CDN to point at your bucket and configure a subdomain of localhost to point at your CDN."),t.createElement("div",{className:"new-bucket"},this.context.digitalcnamePathSettings?t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("input",{id:"path",className:"form-control",type:"text",placeholder:"cname",value:this.context.digitaldomainPath,onChange:function(t){console.log("path",t.target.value),e.context.setDigitalDomainPath(t.target.value)}}))):"")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"cname",className:"form-control",type:"checkbox",checked:this.context.digitalcnamePathSettings,onClick:function(t){e.context.setDigitalCnamePathSettings(t.target.checked),console.log("Checked",t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"cname"},t.createElement("i",null))))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"CNAME(Custom Domain)"),t.createElement("small",{className:"form-text text-muted"},"We strongly recommend you configure a CDN to point at your bucket and configure a subdomain of localhost to point at your CDN."),t.createElement("div",{className:"new-bucket"},this.context.awscnamePathSettings?t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("input",{id:"path",className:"form-control",type:"text",placeholder:"cname",value:this.context.awsdomainPath,onChange:function(t){console.log("path",t.target.value),e.context.setAwsDomainPath(t.target.value)}}))):"")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"cname",className:"form-control",type:"checkbox",checked:this.context.awscnamePathSettings,onClick:function(t){e.context.setAwsCnamePathSettings(t.target.checked),console.log("Checked",t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"cname"},t.createElement("i",null))))):"","digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Delete Objects"),t.createElement("small",{className:"form-text text-muted"},"Delete images/files from Digital Ocean When delete images/files in Media Library.")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"deleteobject",className:"form-control",type:"checkbox",checked:this.context.digitaldelete,onClick:function(t){e.context.setDigitaldelete(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"deleteobject"},t.createElement("i",null))))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row"},t.createElement("div",{className:"col-md-5"},t.createElement("h4",null,"Delete Objects"),t.createElement("small",{className:"form-text text-muted"},"Delete images/files from Amazon S3 When delete images/files in Media Library.")),t.createElement("div",{className:"col-md-7"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"deleteobject",className:"form-control",type:"checkbox",checked:this.context.awsdelete,onClick:function(t){e.context.setAwsdelete(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"deleteobject"},t.createElement("i",null))))):"",t.createElement("div",{className:"float-left pt15"},t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Back",onClick:function(t){console.log("back"),e.displaystoragepage()}})),t.createElement("div",{className:"float-right pb20"},this.state.loading?this.context.loaderText:t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Configure",onClick:function(t){e.context.endPoints?e.updateStorageSetting():bn.error("Please choose Bucket")}}))))))))))}}]);var o,a}(t.Component);(0,p.A)(HM,"contextType",f);const VM=HM;function UM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(UM=function(){return!!e})()}var WM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,UM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"bulkImportProcess",(function(){var e=t.context.bulkImportData1.length;console.log("TotalFiles",e),t.bulkImportCount=5;var n=0*t.bulkImportCount+t.bulkImportCount;n>e&&(n=e);var o="1 - "+n;t.setState({processingRecords:o,remainingRecords:e}),t.updateStorageSetting(),t.timer=setInterval(t.stopWatch.bind(t),1e3)})),t.state={loading:!0,backTosyncsetting:!1,processingRecords:"",remainingRecords:"",process:"",stopWatch:"00:00:00",progWidth:"0",imageStatus:"Processing",importStatus:""},t.bulkImportCount=0,t.loopCount=0,t.stopSeconds=0,t.stopMinutes=0,t.stopHours=0,t.progressWidth,t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.bulkImportProcess(),this.state.loading&&this.stopWatch(),this.bulkImportCount=5}},{key:"loadProgress",value:function(e){e.processing_records!==e.total_records?this.progressWidth=e.processing_records/e.total_records*100:e.progress||(this.progressWidth=e.processing_records/e.total_records*100),this.progressWidth=Math.round(this.progressWidth),this.progressWidth>.9&&(this.progressWidth>100?this.setState({progWidth:100},(function(){})):this.setState({progWidth:this.progressWidth},(function(){})))}},{key:"updateStorageSetting",value:(o=u(m().mark((function e(){var t,n,o,a,r,i,s,l,c;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.context.bulkImportData1.length,n=Math.ceil(t/this.bulkImportCount),console.log("TotalCount",n),o=1;case 4:if(!(o<=n)){e.next=30;break}return e.prev=5,a=performance.now(),(r=new FormData).append("action","sync_process_details"),r.append("PageNumber",o),e.next=12,Lt({method:"post",url:ajaxurl,data:r,config:{headers:{"Content-Type":"multipart/form-data"}}});case 12:if(200!=(i=e.sent).status){e.next=21;break}if(s=performance.now(),l=i.data,c=((s-a)%6e4/1e3).toFixed(0),0!=l.success){e.next=20;break}return this.updateProgressBar({result:l,completedPage:o,secondsToComplete:c}),e.abrupt("break",30);case 20:this.updateProgressBar({result:l,completedPage:o,secondsToComplete:c});case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(5),this.setState({importStatus:"Error Occured"}),this.updateProgressBar({result:{success:!1},completedPage:n,secondsToComplete:0});case 27:o++,e.next=4;break;case 30:case"end":return e.stop()}}),e,this,[[5,23]])}))),function(){return o.apply(this,arguments)})},{key:"updateProgressBar",value:function(e){this.loopCount=this.loopCount+1;var t=e.result,n=e.completedPage;e.secondsToComplete,0==t.success&&this.timer&&clearInterval(this.timer);var o=this.context.bulkImportData1.length,a=Math.ceil(o/this.bulkImportCount),r=n*this.bulkImportCount+1,i=n*this.bulkImportCount+this.bulkImportCount;i>o&&(i=o);var s=r+" - "+i;r>o&&(s="",this.timer&&clearInterval(this.timer));var l=o-n*this.bulkImportCount;l<0&&(l=0),n!=a?this.setState({loading:!0}):this.setState({loading:!1,imageStatus:"Completed"}),this.setState({remainingRecords:l,processingRecords:s});var c={total_records:o,processing_records:r,remaining_records:l};this.loadProgress(c)}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"render",value:function(){var e=this,n={width:this.state.progWidth+"%"},o=this.context.bulkImportData1.length;return this.state.backTosyncsetting?t.createElement(KM,null):t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{className:" container"},t.createElement("div",{className:"importer-log"},t.createElement("div",{className:"card csv-importer-panel mt40 col-md-12"},t.createElement("div",{className:"card-body"},"Error Occured"===this.state.importStatus?t.createElement("h4",{className:"blinking text-center mt20"}," Error Occured due to invalid credentials"):t.createElement("h4",{className:"text-center mt20"}," Offload Media Images ",this.state.imageStatus," "),t.createElement("table",{className:"table mt40"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"text-left"},this.context.language.Process,":",t.createElement("span",null,"Rewrite URL")),t.createElement("td",{className:"text-right"},this.context.language.Totalnoofrecords,":"," ",t.createElement("span",null,o))),t.createElement("tr",null,t.createElement("td",{className:"text-left"},t.createElement("span",{className:"font-weight-normal text-success"},this.context.language.CurrentProcessingRecord,":"," ",t.createElement("span",null,"Error Occured"!==this.state.importStatus?this.state.processingRecords:""))),t.createElement("td",{className:"text-right"},t.createElement("span",{className:"font-weight-normal text-danger"},this.context.language.RemainingRecord,":"," ",t.createElement("span",null,"Error Occured"!==this.state.importStatus?this.state.remainingRecords:"")))))),t.createElement("div",{className:"card-body px-3"},t.createElement("div",{className:"importing-details"},t.createElement("div",{className:"progress-status"},"Processing"===this.state.importStatus?"In Progress":""),t.createElement("div",{className:"import-progress"},"Error Occured"!==this.state.importStatus?t.createElement("div",{className:"progress-loading"},this.state.progWidth+"%"," ",this.context.language.Completed):"",t.createElement("div",{className:"progress-timing"},t.createElement("i",{className:"csv-icon-schedule"})," ",this.context.language.TimeElapsed,":"," ",t.createElement("span",null," ",this.state.stopWatch," ")))),t.createElement("div",{className:"progress mt30 mb30"},t.createElement("div",{className:"".concat("Error Occured"===this.state.importStatus?"progress-bar-error":"progress-bar"),style:n,role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"}))),t.createElement("div",{className:"text-center pt5 mb20"},t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Back",onClick:function(t){console.log("back"),e.setState({backTosyncsetting:!0})}})))))))}}]);var o}(t.Component);(0,p.A)(WM,"contextType",f);const qM=WM;function $M(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($M=function(){return!!e})()}var GM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,$M()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,syncprocess:!1},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){}},{key:"updatesynSetting",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","sync_media_details"),t.set("awsoffloadmedia",this.context.awsoffloadMedia),t.set("digitaloffloadmedia",this.context.digitaloffloadMedia),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,console.log("response",n.data),200==n.status&&""!=n.data?""!=n.data.attachment_id?(this.context.setBulkImportData1(n.data.attachment_id),this.setState({syncprocess:!0})):bn.error("Media Empty"):bn.error("Please Configure");case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return this.state.syncprocess?t.createElement(qM,null):t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{id:"mapping-accordian",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row"},t.createElement("div",{className:"col-sm-12 col-md-12"},t.createElement("div",{className:"setting-tab-pane setting-tabpane1 active"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-10 mt20"},t.createElement("h1",{className:"main-heading"},"Sync Media Images"),"digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row mt30"},t.createElement("div",{className:"col-md-4"},t.createElement("h4",null,"Offload Media Images"),t.createElement("small",{className:"form-text text-muted"},"Copy all Media images to ","digitalOcean"===this.context.chosenServiceProvider?"Digital Ocean":"Amazon S3")),t.createElement("div",{className:"col-md-4"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"offloadmedia",className:"form-control",type:"checkbox",checked:this.context.digitaloffloadMedia,onClick:function(t){e.context.setDigitalOffloadMedia(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"offloadmedia"},t.createElement("i",null)))),t.createElement("div",{className:"col-md-4"},this.state.loading?this.context.loaderText:t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Configure",onClick:function(t){e.context.digitaloffloadMedia?e.updatesynSetting():bn.error("Please Enable Offload Media")}}))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",{className:"form-group row mt30"},t.createElement("div",{className:"col-md-4"},t.createElement("h4",null,"Offload Media Images"),t.createElement("small",{className:"form-text text-muted"},"Copy all Media images to ","digitalOcean"===this.context.chosenServiceProvider?"Digital Ocean":"Amazon S3")),t.createElement("div",{className:"col-md-6"},t.createElement("div",{className:"form-group fieldset"},t.createElement("input",{id:"offloadmedia",className:"form-control",type:"checkbox",checked:this.context.awsoffloadMedia,onClick:function(t){e.context.setAwsOffloadMedia(t.target.checked)}}),t.createElement("label",{className:"switch-ios",for:"offloadmedia"},t.createElement("i",null)))),t.createElement("div",{className:"col-md-2"},this.state.loading?this.context.loaderText:t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Configure",onClick:function(t){e.context.awsoffloadMedia?e.updatesynSetting():bn.error("Please Enable Offload Media")}}))):""))))))))}}]);var o}(t.Component);(0,p.A)(GM,"contextType",f);const KM=GM;function JM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JM=function(){return!!e})()}var XM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,JM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,selectedBucketbox:"",goTosettings:!1,choosenServiceProvider:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){var e=this;return t.createElement("div",null,t.createElement("ul",{className:"mapping-switchers",style:{marginLeft:"10%"}},t.createElement("li",{className:"".concat(this.context.homeSelection?"active":""),onClick:function(t){e.context.setHomeSelection(!0),e.context.setSyncMediaSelection(!1),e.context.setSettingSelection(!1)}},"Home"),t.createElement("li",{className:"".concat(this.context.settingSelection?"active":""),onClick:function(t){e.context.setSettingSelection(!0),e.context.setSyncMediaSelection(!1),e.context.setHomeSelection(!1),console.log("clicked",e.context.settingSelection)}},"Settings"),t.createElement("li",{className:"".concat(this.context.syncMediaSelection?"active":""),onClick:function(t){e.context.setSyncMediaSelection(!0),e.context.setSettingSelection(!1),e.context.setHomeSelection(!1),console.log("clicked",e.context.syncMediaSelection)}},"Sync Media")),t.createElement("br",null),t.createElement("div",{className:"mt-5"},!0===this.context.homeSelection?t.createElement(eT,null):!0===this.context.settingSelection?t.createElement(VM,null):!0===this.context.syncMediaSelection?t.createElement(KM,null):""))}}])}(t.Component);function QM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QM=function(){return!!e})()}(0,p.A)(XM,"contextType",f);var ZM=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,QM()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,selectedBucketbox:"",goTosettings:!1,choosenServiceProvider:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("media"),this.displayActualComponent()}},{key:"displayActualComponent",value:(p=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_actual_component_details"),e.prev=2,e.next=5,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:n=e.sent,console.log("Response",n.data),200==n.status&&n.data.success?(this.context.setEndPoint(n.data.origin),this.context.setAwsSeletedRegion(n.data.aws_bucket_region),this.context.setDigitalSeletedRegion(n.data.digital_bucket_region),this.context.setSelectedServiceProvider(n.data.provider),this.context.setStatusCopyFiles(!0),this.context.setAwsStatusYearPath(n.data.aws_copy_year),this.context.setDigitalStatusYearPath(n.data.digital_copy_year),this.context.setAwsdelete(n.data.aws_delete),this.context.setDigitaldelete(n.data.digital_delete),this.context.setAwsOffloadMedia(n.data.aws_offload_media),this.context.setDigitalOffloadMedia(n.data.digital_offload_media),this.context.setRewriteUrl(!0),this.context.setAwsStatusPathSettings(n.data.aws_status_path),this.context.setDigitalStatusPathSettings(n.data.digital_status_path),this.context.setAwsCnamePathSettings(n.data.aws_cname_path),this.context.setDigitalCnamePathSettings(n.data.digital_cname_path),this.context.setEdgePoint(n.data.edge),this.context.setExistingBucket(n.data.media_existing_bucket),this.context.setSelectedSection(n.data.current_tab),0==n.data.aws_accesskey?this.context.setAwsAccessKey(""):this.context.setAwsAccessKey(n.data.aws_accesskey),0==n.data.digital_accesskey?this.context.setDigitalAccessKey(""):this.context.setDigitalAccessKey(n.data.digital_accesskey),0==n.data.aws_secretkey?this.context.setAwsSecretKey(""):this.context.setAwsSecretKey(n.data.aws_secretkey),0==n.data.digital_secretkey?this.context.setDigitalSecretKey(""):this.context.setDigitalSecretKey(n.data.digital_secretkey),0!=n.data.current_page||""!=n.data.current_page?this.context.setCurrentpage(n.data.current_page):this.context.setCurrentpage("mediadisplay"),n.data.bucket_list?(this.context.setBucketLists(n.data.bucket_list),this.context.setBucketPage(!0)):this.context.setBucketPage(!1),0==n.data.aws_domain_name?this.context.setAwsDomainPath(""):this.context.setAwsDomainPath(n.data.aws_domain_name),0==n.data.digital_domain_name?this.context.setDigitalDomainPath(""):this.context.setDigitalDomainPath(n.data.digital_domain_name),0==n.data.aws_media_path?this.context.setAwsMediaPath(""):this.context.setAwsMediaPath(n.data.aws_media_path),0==n.data.digital_media_path?this.context.setDigitalMediaPath(""):this.context.setDigitalMediaPath(n.data.digital_media_path),"existing"==n.data.awsselectedbucket?this.context.setAwsChoosefromExistingBucket(!0):"new"==n.data.awsselectedbucket&&this.context.setAwsCreateNewBucket(!0),"existing"==n.data.digitalselectedbucket?this.context.setDigitalChoosefromExistingBucket(!0):"new"==n.data.digitalselectedbucket&&this.context.setDigitalCreateNewBucket(!0)):200==n.status&&n.data.success,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[2,10]])}))),function(){return p.apply(this,arguments)})},{key:"getServiceProvider",value:(d=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_service_provider"),t.set("provider",this.context.chosenServiceProvider),t.set("awsaccesskey",this.context.awsaccessKey),t.set("digitalaccesskey",this.context.digitalaccessKey),t.set("awssecretkey",this.context.awssecretKey),t.set("awsregion",this.context.awsselectedRegion),t.set("digitalsecretkey",this.context.digitalsecretKey),t.set("digitalregion",this.context.digitalselectedRegion),this.setState({loading:!0}),e.prev=10,e.next=13,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 13:n=e.sent,console.log("Response",n.data),200==n.status&&n.data.buckets&&(this.setState({loading:!1}),this.context.setBucketLists(n.data.buckets),this.context.setBucketPage(!0),bn.success("Service provider Activated")),e.next=24;break;case 18:e.prev=18,e.t0=e.catch(10),console.log(e.t0),this.setState({loading:!1}),this.context.setCurrentpage("mediadisplay"),bn.error("Please check your credentials");case 24:case"end":return e.stop()}}),e,this,[[10,18]])}))),function(){return d.apply(this,arguments)})},{key:"getBucketDetails",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_bucket_details"),t.set("bucketname",this.context.selectedBucket),t.set("existingbucket",this.context.selectedBucketsName),this.state.awsselectedBucketbox=this.context.awschoosefromExistingBucket?"existing":this.context.awscreateNewBucket?"new":"",t.set("awsselectedbucketbox",this.state.awsselectedBucketbox),this.state.digitalselectedBucketbox=this.context.digitalchoosefromExistingBucket?"existing":this.context.digitalcreateNewBucket?"new":"",t.set("digitalselectedbucketbox",this.state.digitalselectedBucketbox),e.next=10,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:n=e.sent,console.log("origin",n.data.origin),console.log("edge",n.data.edge),200==n.status&&(this.context.setEndPoint(n.data.origin),this.context.setEdgePoint(n.data.edge),this.setState({goTosettings:!0}),this.context.setSelectedSection("settings"),bn.success("Bucket selected"));case 14:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"resetData",value:(o=u(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","remove_service_provider"),n.set("provider",t),e.next=5,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:200==e.sent.status&&this.displayActualComponent();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{id:"mapping-accordian",class:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"row p15"},t.createElement("div",{className:"col-sm-12 col-md-12"},t.createElement("div",{className:"setting-tab-pane setting-tabpane1 active"},t.createElement("div",{className:"csv-importer-provider"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"form-group"},t.createElement("h1",{className:"main-heading text-center"},"Choose Storage Provider"),t.createElement("div",{className:"d-flex mt10 mr700"},t.createElement("div",{className:"form-check form-check-inline form-group synctype","data-toggle":"modal","data-target":"#alertModal"},"digitalOcean"==this.context.chosenServiceProvider?t.createElement("input",{id:"amazon",className:"form-check-input",type:"radio",name:"sync_type",checked:"amazonS3"==this.context.chosenServiceProvider,onClick:function(t){e.context.setSelectedServiceProvider("amazonS3")}}):t.createElement("input",{id:"amazon",className:"form-check-input",type:"radio",name:"sync_type",disabled:!0,checked:"amazonS3"==this.context.chosenServiceProvider,onClick:function(t){e.context.setSelectedServiceProvider("amazonS3")}}),t.createElement("label",{className:"form-check-label",for:"amazon"},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"amazon-s3.png"),className:"image-section",alt:"amazon-s3"}),"Amazon S3")),t.createElement("div",{className:"form-check form-check-inline form-group synctype","data-toggle":"modal","data-target":"#alertModal"},"amazonS3"==this.context.chosenServiceProvider?t.createElement("input",{id:"amazon",className:"form-check-input",type:"radio",name:"sync_type",checked:"digitalOcean"==this.context.chosenServiceProvider,onClick:function(t){e.context.setSelectedServiceProvider("digitalOcean")}}):t.createElement("input",{id:"amazon",className:"form-check-input",type:"radio",name:"sync_type",disabled:!0,checked:"digitalOcean"==this.context.chosenServiceProvider,onClick:function(t){e.context.setSelectedServiceProvider("digitalOcean")}}),t.createElement("label",{className:"form-check-label",for:"digitalOcean"},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"digitalocean.png"),className:"image-section",alt:"digitalocean"}),"Digital Ocean"))))),t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"form-group col-md-9"},console.log(this.context.chosenServiceProvider),"digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",null,t.createElement("h6",null,"Input Credentials"),t.createElement("label",{className:"pt10 pb10",for:"accesskey"},"Access Key"),t.createElement("input",{id:"accesskey",className:"form-control",type:"password",name:"password",value:this.context.digitalaccessKey,placeholder:"",onChange:function(t){e.context.digitalaccessKey=t.target.value,e.context.setDigitalAccessKey(e.context.digitalaccessKey)}}),t.createElement("label",{className:"pt10 pb10",for:"secretkey"},"Secret Key"),t.createElement("input",{id:"secretkey",className:"form-control",type:"password",name:"password",value:this.context.digitalsecretKey,placeholder:"",onChange:function(t){e.context.digitalsecretKey=t.target.value,e.context.setDigitalSecretKey(e.context.digitalsecretKey)}}),t.createElement("div",{className:"pt10"},t.createElement("h4",null,"Region"),t.createElement("div",{className:"pt10"},t.createElement("select",{className:"col-md-7",value:this.context.digitalselectedRegion,onClick:function(t){console.log("Region",t.target.value),e.context.digitalselectedRegion=t.target.value,e.context.setDigitalSeletedRegion(e.context.digitalselectedRegion)}},t.createElement("option",{value:"New York"},"New York"),t.createElement("option",{value:"Amsterdam"},"Amsterdam"),t.createElement("option",{value:"Singapore"},"Singapore"),t.createElement("option",{value:"San Francisco"},"San Francisco"),t.createElement("option",{value:"Frankfurt"},"Frankfurt"))))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",null,t.createElement("h6",null,"Input Credentials"),t.createElement("label",{className:"pt10 pb10",for:"accesskey"},"Access Key"),t.createElement("input",{id:"accesskey",className:"form-control",type:"password",value:this.context.awsaccessKey,placeholder:"",onChange:function(t){e.context.awsaccessKey=t.target.value,e.context.setAwsAccessKey(e.context.awsaccessKey)}}),t.createElement("label",{className:"pt10 pb10",for:"secretkey"},"Secret Key"),t.createElement("input",{id:"secretkey",className:"form-control",type:"password",value:this.context.awssecretKey,placeholder:"",onChange:function(t){e.context.awssecretKey=t.target.value,e.context.setAwsSecretKey(e.context.awssecretKey)}}),t.createElement("div",{className:"pt10"},t.createElement("h4",null,"Region"),t.createElement("div",{className:"pt10"},t.createElement("select",{className:"col-md-7",value:this.context.awsselectedRegion,onClick:function(t){console.log("Region",t.target.value),e.context.awsselectedRegion=t.target.value,e.context.setAwsSeletedRegion(e.context.awsselectedRegion)}},t.createElement("option",{value:"US East (N. Virginia)"},"US East (N. Virginia)"),t.createElement("option",{value:"US East (Ohio)"},"US East (Ohio)"),t.createElement("option",{value:"US West (N. California)"},"US West (N. California)"),t.createElement("option",{value:"US West (Oregon)"},"US West (Oregon)"),t.createElement("option",{value:"Canada (Central)"},"Canada (Central)"),t.createElement("option",{value:"Asia Pacific (Mumbai)"},"Asia Pacific (Mumbai)"),t.createElement("option",{value:"Asia Pacific (Seoul)"},"Asia Pacific (Seoul)"),t.createElement("option",{value:"Asia Pacific (Singapore)"},"Asia Pacific (Singapore)"),t.createElement("option",{value:"Asia Pacific (Sydney)"},"Asia Pacific (Sydney)"),t.createElement("option",{value:"Asia Pacific (Tokyo)"},"Asia Pacific (Tokyo)"),t.createElement("option",{value:"EU (Frankfurt)"},"EU (Frankfurt)"),t.createElement("option",{value:"EU (Ireland)"},"EU (Ireland)"),t.createElement("option",{value:"EU (London)"},"EU (London)"),t.createElement("option",{value:"EU (Paris)"},"EU (Paris)"),t.createElement("option",{value:"South America (Sao Paulo)"},"South America (Sao Paulo)"))))):"",t.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:"digitalOcean"===this.context.chosenServiceProvider?t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Activate",onClick:function(t){""!=e.context.digitalaccessKey&&""!=e.context.digitalsecretKey?e.getServiceProvider():bn.error("Fill input credentials")}}):"amazonS3"===this.context.chosenServiceProvider?t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Activate",onClick:function(t){""!=e.context.awsaccessKey&&""!=e.context.awssecretKey?e.getServiceProvider():bn.error("Fill input credentials")}}):"")))))))))),this.context.bucketPage?t.createElement("div",{id:"mapping-accordian",class:"container"},t.createElement("div",{className:"card csv-importer-panel mt50"},t.createElement("div",{className:"choose-bucket"},t.createElement("div",{className:"row justify-content-center"},"digitalOcean"===this.context.chosenServiceProvider?t.createElement("div",{className:"col-md-10"},t.createElement("div",{className:"form-group mb3"},t.createElement("input",{id:"existingBucket",type:"checkbox",name:"bucketchange",checked:this.context.digitalchoosefromExistingBucket,onClick:function(t){e.context.setDigitalChoosefromExistingBucket(t.target.checked),e.context.setDigitalCreateNewBucket(!1),console.log("Checked Status",t.target.checked)}}),t.createElement("label",{for:"existingBucket"},t.createElement("h6",null,"Choose from Existing Bucket")),t.createElement("ul",{className:"bucket-list select-bucket col-md-11"},this.context.bucketLists.map((function(n){return t.createElement("li",{onClick:function(t){e.context.setExistingBucket(n)}},t.createElement("input",{className:"selectedbucket",type:"checkbox",checked:n==e.context.selectedBucketsName&&!e.context.digitalcreateNewBucket&&e.context.digitalchoosefromExistingBucket,onClick:function(t){console.log("Selected Bucket",n),e.context.setExistingBucket(n),console.log("Checked Status",t.target.checked)}}),t.createElement("i",{className:"list-icon"}),"   "," ",n," ")})))),t.createElement("div",{className:"form-group"},t.createElement("input",{id:"newBucket",type:"checkbox",name:"bucketchange",checked:this.context.digitalcreateNewBucket,onClick:function(t){e.context.setDigitalCreateNewBucket(t.target.checked),e.context.setDigitalChoosefromExistingBucket(!1),console.log("Checked Status",t.target.checked)}}),t.createElement("label",{for:"newBucket"},t.createElement("h6",null,"Create New Bucket")),this.context.digitalcreateNewBucket?t.createElement("div",{className:"new-bucket"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("input",{id:"bucketName",className:"form-control",type:"text",placeholder:"Bucket Name",value:this.context.selectedBucket,onChange:function(t){console.log("bucket",t.target.value),e.context.setSelectedBucket(t.target.value)}})))):""),t.createElement("div",{className:"float-right pad10 "},this.context.digitalcreateNewBucket?t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Create Bucket",onClick:function(t){e.context.selectedBucket?e.getBucketDetails():bn.error("Please Choose any Bucket")}}):t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Choose Bucket",onClick:function(t){e.context.selectedBucketsName&&e.context.digitalchoosefromExistingBucket?e.getBucketDetails():bn.error("Please Choose any Bucket")}}))):"amazonS3"===this.context.chosenServiceProvider?t.createElement("div",{className:"col-md-10"},t.createElement("div",{className:"form-group mb3"},t.createElement("input",{id:"existingBucket",type:"checkbox",name:"bucketchange",checked:this.context.awschoosefromExistingBucket,onClick:function(t){e.context.setAwsChoosefromExistingBucket(t.target.checked),e.context.setAwsCreateNewBucket(!1),console.log("Checked Status",t.target.checked)}}),t.createElement("label",{for:"existingBucket"},t.createElement("h6",null,"Choose from Existing Bucket")),t.createElement("ul",{className:"bucket-list select-bucket col-md-11"},this.context.bucketLists.map((function(n){return t.createElement("li",{onClick:function(t){e.context.setExistingBucket(n)}},t.createElement("input",{className:"selectedbucket",type:"checkbox",checked:n==e.context.selectedBucketsName&&!e.context.awscreateNewBucket&&e.context.awschoosefromExistingBucket,onClick:function(t){console.log("Selected Bucket",n),e.context.setExistingBucket(n),console.log("Checked Status",t.target.checked)}}),t.createElement("i",{className:"list-icon"}),"   "," ",n," ")})))),t.createElement("div",{className:"form-group"},t.createElement("input",{id:"newBucket",type:"checkbox",name:"bucketchange",checked:this.context.awscreateNewBucket,onClick:function(t){e.context.setAwsCreateNewBucket(t.target.checked),e.context.setAwsChoosefromExistingBucket(!1),console.log("Checked Status",t.target.checked)}}),t.createElement("label",{for:"newBucket"},t.createElement("h6",null,"Create New Bucket")),this.context.awscreateNewBucket?t.createElement("div",{className:"new-bucket"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("input",{id:"bucketName",className:"form-control",type:"text",placeholder:"Bucket Name",value:this.context.selectedBucket,onChange:function(t){console.log("bucket",t.target.value),e.context.setSelectedBucket(t.target.value)}})))):""),t.createElement("div",{className:"float-right pad10 "},this.context.digitalcreateNewBucket?t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Create Bucket",onClick:function(t){e.context.selectedBucket?e.getBucketDetails():bn.error("Please Choose any Bucket")}}):t.createElement("input",{className:"smack-btn smack-btn-primary",type:"button",value:"Choose Bucket",onClick:function(t){e.context.selectedBucketsName&&e.context.awschoosefromExistingBucket?e.getBucketDetails():bn.error("Please Choose any Bucket")}}))):"")))):t.createElement("div",{id:"mapping-accordian",class:"container"},t.createElement("div",{className:"card csv-importer-panel mt50"},t.createElement("div",{className:"choose-bucket"},t.createElement("h6",{style:{color:"red",textAlign:"center"}},"Cloud Storage Not Configured")))),t.createElement("div",{className:"modal-provider"},t.createElement("div",{className:"modal",style:{marginTop:"16%",marginLeft:"12%"},id:"alertModal"},t.createElement("div",{className:"modal-dialog"},t.createElement("div",{className:"modal-content"},t.createElement("div",{style:{backgroundColor:"#00a699",height:"65px"}},t.createElement("h2",{style:{color:"white",textAlign:"center",marginTop:"10px"}},"Upgrade to pro ")),t.createElement("div",{className:"modal-body",style:{height:"160px"}},t.createElement("h4",{style:{color:"#2d3748",marginLeft:"10px"}}," If you change the Provider, Current provider data will be deleted."),t.createElement("div",{className:"mt-4",style:{marginLeft:"27%"}},t.createElement("button",{className:"alert-modal",style:{borderRadius:"15px",width:"25%",backgroundColor:"#00a699",color:"white"},onClick:function(t){e.context.setSelectedServiceProvider("digitalOcean"==e.context.chosenServiceProvider?"amazonS3":"amazonS3"==e.context.chosenServiceProvider?"digitalOcean":"")},"data-dismiss":"modal"}," Cancel"),t.createElement("button",{className:"ml30",style:{borderRadius:"15px",width:"25%",backgroundColor:"#00a699",color:"white"},onClick:function(t){e.resetData(e.context.chosenServiceProvider)},"data-dismiss":"modal"}," Proceed"))))))))}}]);var o,a,d,p}(t.Component);(0,p.A)(ZM,"contextType",f);const eT=ZM;function tT(){}const nT=function(){let e=0;return function(){return e++}}();function oT(e){return null==e}function aT(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function rT(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const iT=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function sT(e,t){return iT(e)?e:t}function lT(e,t){return void 0===e?t:e}const cT=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function dT(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function uT(e,t,n,o){let a,r,i;if(aT(e))if(r=e.length,o)for(a=r-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<r;a++)t.call(n,e[a],a);else if(rT(e))for(i=Object.keys(e),r=i.length,a=0;a<r;a++)t.call(n,e[i[a]],i[a])}function pT(e,t){let n,o,a,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,o=e.length;n<o;++n)if(a=e[n],r=t[n],a.datasetIndex!==r.datasetIndex||a.index!==r.index)return!1;return!0}function hT(e){if(aT(e))return e.map(hT);if(rT(e)){const t=Object.create(null),n=Object.keys(e),o=n.length;let a=0;for(;a<o;++a)t[n[a]]=hT(e[n[a]]);return t}return e}function mT(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function fT(e,t,n,o){if(!mT(e))return;const a=t[e],r=n[e];rT(a)&&rT(r)?gT(a,r,o):t[e]=hT(r)}function gT(e,t,n){const o=aT(t)?t:[t],a=o.length;if(!rT(e))return e;const r=(n=n||{}).merger||fT;for(let i=0;i<a;++i){if(!rT(t=o[i]))continue;const a=Object.keys(t);for(let o=0,i=a.length;o<i;++o)r(a[o],e,t,n)}return e}function vT(e,t){return gT(e,t,{merger:_T})}function _T(e,t,n){if(!mT(e))return;const o=t[e],a=n[e];rT(o)&&rT(a)?vT(o,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=hT(a))}const bT={"":e=>e,x:e=>e.x,y:e=>e.y};function yT(e,t){const n=bT[t]||(bT[t]=function(e){const t=function(e){const t=e.split("."),n=[];let o="";for(const e of t)o+=e,o.endsWith("\\")?o=o.slice(0,-1)+".":(n.push(o),o="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function wT(e){return e.charAt(0).toUpperCase()+e.slice(1)}const kT=e=>void 0!==e,xT=e=>"function"==typeof e,ET=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},ST=Math.PI,MT=2*ST,TT=MT+ST,CT=Number.POSITIVE_INFINITY,AT=ST/180,DT=ST/2,PT=ST/4,LT=2*ST/3,NT=Math.log10,IT=Math.sign;function OT(e){const t=Math.round(e);e=FT(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(NT(e))),o=e/n;return(o<=1?1:o<=2?2:o<=5?5:10)*n}function RT(e){return!isNaN(parseFloat(e))&&isFinite(e)}function FT(e,t,n){return Math.abs(e-t)<n}function jT(e,t,n){let o,a,r;for(o=0,a=e.length;o<a;o++)r=e[o][n],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function YT(e){return e*(ST/180)}function zT(e){return e*(180/ST)}function BT(e){if(!iT(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function HT(e,t){const n=t.x-e.x,o=t.y-e.y,a=Math.sqrt(n*n+o*o);let r=Math.atan2(o,n);return r<-.5*ST&&(r+=MT),{angle:r,distance:a}}function VT(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function UT(e,t){return(e-t+TT)%MT-ST}function WT(e){return(e%MT+MT)%MT}function qT(e,t,n,o){const a=WT(e),r=WT(t),i=WT(n),s=WT(r-a),l=WT(i-a),c=WT(a-r),d=WT(a-i);return a===r||a===i||o&&r===i||s>l&&c<d}function $T(e,t,n){return Math.max(t,Math.min(n,e))}function GT(e,t,n,o=1e-6){return e>=Math.min(t,n)-o&&e<=Math.max(t,n)+o}function KT(e,t,n){n=n||(n=>e[n]<t);let o,a=e.length-1,r=0;for(;a-r>1;)o=r+a>>1,n(o)?r=o:a=o;return{lo:r,hi:a}}const JT=(e,t,n,o)=>KT(e,n,o?o=>e[o][t]<=n:o=>e[o][t]<n),XT=(e,t,n)=>KT(e,n,(o=>e[o][t]>=n)),QT=["push","pop","shift","splice","unshift"];function ZT(e,t){const n=e._chartjs;if(!n)return;const o=n.listeners,a=o.indexOf(t);-1!==a&&o.splice(a,1),o.length>0||(QT.forEach((t=>{delete e[t]})),delete e._chartjs)}function eC(e){const t=new Set;let n,o;for(n=0,o=e.length;n<o;++n)t.add(e[n]);return t.size===o?e:Array.from(t)}const tC="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function nC(e,t,n){const o=n||(e=>Array.prototype.slice.call(e));let a=!1,r=[];return function(...n){r=o(n),a||(a=!0,tC.call(window,(()=>{a=!1,e.apply(t,r)})))}}const oC=e=>"start"===e?"left":"end"===e?"right":"center",aC=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2;function rC(e,t,n){const o=t.length;let a=0,r=o;if(e._sorted){const{iScale:i,_parsed:s}=e,l=i.axis,{min:c,max:d,minDefined:u,maxDefined:p}=i.getUserBounds();u&&(a=$T(Math.min(JT(s,i.axis,c).lo,n?o:JT(t,l,i.getPixelForValue(c)).lo),0,o-1)),r=p?$T(Math.max(JT(s,i.axis,d,!0).hi+1,n?0:JT(t,l,i.getPixelForValue(d),!0).hi+1),a,o)-a:o-a}return{start:a,count:r}}function iC(e){const{xScale:t,yScale:n,_scaleRanges:o}=e,a={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!o)return e._scaleRanges=a,!0;const r=o.xmin!==t.min||o.xmax!==t.max||o.ymin!==n.min||o.ymax!==n.max;return Object.assign(o,a),r}const sC=e=>0===e||1===e,lC=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*MT/n),cC=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*MT/n)+1,dC={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*DT),easeOutSine:e=>Math.sin(e*DT),easeInOutSine:e=>-.5*(Math.cos(ST*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>sC(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>sC(e)?e:lC(e,.075,.3),easeOutElastic:e=>sC(e)?e:cC(e,.075,.3),easeInOutElastic(e){const t=.1125;return sC(e)?e:e<.5?.5*lC(2*e,t,.45):.5+.5*cC(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-dC.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*dC.easeInBounce(2*e):.5*dC.easeOutBounce(2*e-1)+.5};function uC(e){return e+.5|0}const pC=(e,t,n)=>Math.max(Math.min(e,n),t);function hC(e){return pC(uC(2.55*e),0,255)}function mC(e){return pC(uC(255*e),0,255)}function fC(e){return pC(uC(e/2.55)/100,0,1)}function gC(e){return pC(uC(100*e),0,100)}const vC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},_C=[..."0123456789ABCDEF"],bC=e=>_C[15&e],yC=e=>_C[(240&e)>>4]+_C[15&e],wC=e=>(240&e)>>4==(15&e);const kC=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xC(e,t,n){const o=t*Math.min(n,1-n),a=(t,a=(t+e/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function EC(e,t,n){const o=(o,a=(o+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[o(5),o(3),o(1)]}function SC(e,t,n){const o=xC(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)o[a]*=1-t-n,o[a]+=t;return o}function MC(e){const t=e.r/255,n=e.g/255,o=e.b/255,a=Math.max(t,n,o),r=Math.min(t,n,o),i=(a+r)/2;let s,l,c;return a!==r&&(c=a-r,l=i>.5?c/(2-a-r):c/(a+r),s=function(e,t,n,o,a){return e===a?(t-n)/o+(t<n?6:0):t===a?(n-e)/o+2:(e-t)/o+4}(t,n,o,c,a),s=60*s+.5),[0|s,l||0,i]}function TC(e,t,n,o){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,o)).map(mC)}function CC(e,t,n){return TC(xC,e,t,n)}function AC(e){return(e%360+360)%360}const DC={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},PC={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let LC;const NC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,IC=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,OC=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function RC(e,t,n){if(e){let o=MC(e);o[t]=Math.max(0,Math.min(o[t]+o[t]*n,0===t?360:1)),o=CC(o),e.r=o[0],e.g=o[1],e.b=o[2]}}function FC(e,t){return e?Object.assign(t||{},e):e}function jC(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=mC(e[3]))):(t=FC(e,{r:0,g:0,b:0,a:1})).a=mC(t.a),t}function YC(e){return"r"===e.charAt(0)?function(e){const t=NC.exec(e);let n,o,a,r=255;if(t){if(t[7]!==n){const e=+t[7];r=t[8]?hC(e):pC(255*e,0,255)}return n=+t[1],o=+t[3],a=+t[5],n=255&(t[2]?hC(n):pC(n,0,255)),o=255&(t[4]?hC(o):pC(o,0,255)),a=255&(t[6]?hC(a):pC(a,0,255)),{r:n,g:o,b:a,a:r}}}(e):function(e){const t=kC.exec(e);let n,o=255;if(!t)return;t[5]!==n&&(o=t[6]?hC(+t[5]):mC(+t[5]));const a=AC(+t[2]),r=+t[3]/100,i=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return TC(SC,e,t,n)}(a,r,i):"hsv"===t[1]?function(e,t,n){return TC(EC,e,t,n)}(a,r,i):CC(a,r,i),{r:n[0],g:n[1],b:n[2],a:o}}(e)}class zC{constructor(e){if(e instanceof zC)return e;const t=typeof e;let n;var o,a,r;"object"===t?n=jC(e):"string"===t&&(r=(o=e).length,"#"===o[0]&&(4===r||5===r?a={r:255&17*vC[o[1]],g:255&17*vC[o[2]],b:255&17*vC[o[3]],a:5===r?17*vC[o[4]]:255}:7!==r&&9!==r||(a={r:vC[o[1]]<<4|vC[o[2]],g:vC[o[3]]<<4|vC[o[4]],b:vC[o[5]]<<4|vC[o[6]],a:9===r?vC[o[7]]<<4|vC[o[8]]:255})),n=a||function(e){LC||(LC=function(){const e={},t=Object.keys(PC),n=Object.keys(DC);let o,a,r,i,s;for(o=0;o<t.length;o++){for(i=s=t[o],a=0;a<n.length;a++)r=n[a],s=s.replace(r,DC[r]);r=parseInt(PC[i],16),e[s]=[r>>16&255,r>>8&255,255&r]}return e}(),LC.transparent=[0,0,0,0]);const t=LC[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(e)||YC(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=FC(this._rgb);return e&&(e.a=fC(e.a)),e}set rgb(e){this._rgb=jC(e)}rgbString(){return this._valid?function(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${fC(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}(this._rgb):void 0}hexString(){return this._valid?function(e){var t=(e=>wC(e.r)&&wC(e.g)&&wC(e.b)&&wC(e.a))(e)?bC:yC;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=MC(e),n=t[0],o=gC(t[1]),a=gC(t[2]);return e.a<255?`hsla(${n}, ${o}%, ${a}%, ${fC(e.a)})`:`hsl(${n}, ${o}%, ${a}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,o=e.rgb;let a;const r=t===a?.5:t,i=2*r-1,s=n.a-o.a,l=((i*s==-1?i:(i+s)/(1+i*s))+1)/2;a=1-l,n.r=255&l*n.r+a*o.r+.5,n.g=255&l*n.g+a*o.g+.5,n.b=255&l*n.b+a*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const o=OC(fC(e.r)),a=OC(fC(e.g)),r=OC(fC(e.b));return{r:mC(IC(o+n*(OC(fC(t.r))-o))),g:mC(IC(a+n*(OC(fC(t.g))-a))),b:mC(IC(r+n*(OC(fC(t.b))-r))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new zC(this.rgb)}alpha(e){return this._rgb.a=mC(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=uC(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return RC(this._rgb,2,e),this}darken(e){return RC(this._rgb,2,-e),this}saturate(e){return RC(this._rgb,1,e),this}desaturate(e){return RC(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=MC(e);n[0]=AC(n[0]+t),n=CC(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}function BC(e){return new zC(e)}function HC(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function VC(e){return HC(e)?e:BC(e)}function UC(e){return HC(e)?e:BC(e).saturate(.5).darken(.1).hexString()}const WC=Object.create(null),qC=Object.create(null);function $C(e,t){if(!t)return e;const n=t.split(".");for(let t=0,o=n.length;t<o;++t){const o=n[t];e=e[o]||(e[o]=Object.create(null))}return e}function GC(e,t,n){return"string"==typeof t?gT($C(e,t),n):gT($C(e,""),t)}var KC=new class{constructor(e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>UC(t.backgroundColor),this.hoverBorderColor=(e,t)=>UC(t.borderColor),this.hoverColor=(e,t)=>UC(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return GC(this,e,t)}get(e){return $C(this,e)}describe(e,t){return GC(qC,e,t)}override(e,t){return GC(WC,e,t)}route(e,t,n,o){const a=$C(this,e),r=$C(this,n),i="_"+t;Object.defineProperties(a,{[i]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[i],t=r[o];return rT(e)?Object.assign({},t,e):lT(e,t)},set(e){this[i]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function JC(e,t,n,o,a){let r=t[a];return r||(r=t[a]=e.measureText(a).width,n.push(a)),r>o&&(o=r),o}function XC(e,t,n,o){let a=(o=o||{}).data=o.data||{},r=o.garbageCollect=o.garbageCollect||[];o.font!==t&&(a=o.data={},r=o.garbageCollect=[],o.font=t),e.save(),e.font=t;let i=0;const s=n.length;let l,c,d,u,p;for(l=0;l<s;l++)if(u=n[l],null!=u&&!0!==aT(u))i=JC(e,a,r,i,u);else if(aT(u))for(c=0,d=u.length;c<d;c++)p=u[c],null==p||aT(p)||(i=JC(e,a,r,i,p));e.restore();const h=r.length/2;if(h>n.length){for(l=0;l<h;l++)delete a[r[l]];r.splice(0,h)}return i}function QC(e,t,n){const o=e.currentDevicePixelRatio,a=0!==n?Math.max(n/2,.5):0;return Math.round((t-a)*o)/o+a}function ZC(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function eA(e,t,n,o){tA(e,t,n,o,null)}function tA(e,t,n,o,a){let r,i,s,l,c,d;const u=t.pointStyle,p=t.rotation,h=t.radius;let m=(p||0)*AT;if(u&&"object"==typeof u&&(r=u.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return e.save(),e.translate(n,o),e.rotate(m),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),void e.restore();if(!(isNaN(h)||h<=0)){switch(e.beginPath(),u){default:a?e.ellipse(n,o,a/2,h,0,0,MT):e.arc(n,o,h,0,MT),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(m)*h,o-Math.cos(m)*h),m+=LT,e.lineTo(n+Math.sin(m)*h,o-Math.cos(m)*h),m+=LT,e.lineTo(n+Math.sin(m)*h,o-Math.cos(m)*h),e.closePath();break;case"rectRounded":c=.516*h,l=h-c,i=Math.cos(m+PT)*l,s=Math.sin(m+PT)*l,e.arc(n-i,o-s,c,m-ST,m-DT),e.arc(n+s,o-i,c,m-DT,m),e.arc(n+i,o+s,c,m,m+DT),e.arc(n-s,o+i,c,m+DT,m+ST),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*h,d=a?a/2:l,e.rect(n-d,o-l,2*d,2*l);break}m+=PT;case"rectRot":i=Math.cos(m)*h,s=Math.sin(m)*h,e.moveTo(n-i,o-s),e.lineTo(n+s,o-i),e.lineTo(n+i,o+s),e.lineTo(n-s,o+i),e.closePath();break;case"crossRot":m+=PT;case"cross":i=Math.cos(m)*h,s=Math.sin(m)*h,e.moveTo(n-i,o-s),e.lineTo(n+i,o+s),e.moveTo(n+s,o-i),e.lineTo(n-s,o+i);break;case"star":i=Math.cos(m)*h,s=Math.sin(m)*h,e.moveTo(n-i,o-s),e.lineTo(n+i,o+s),e.moveTo(n+s,o-i),e.lineTo(n-s,o+i),m+=PT,i=Math.cos(m)*h,s=Math.sin(m)*h,e.moveTo(n-i,o-s),e.lineTo(n+i,o+s),e.moveTo(n+s,o-i),e.lineTo(n-s,o+i);break;case"line":i=a?a/2:Math.cos(m)*h,s=Math.sin(m)*h,e.moveTo(n-i,o-s),e.lineTo(n+i,o+s);break;case"dash":e.moveTo(n,o),e.lineTo(n+Math.cos(m)*h,o+Math.sin(m)*h)}e.fill(),t.borderWidth>0&&e.stroke()}}function nA(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function oA(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function aA(e){e.restore()}function rA(e,t,n,o,a){if(!t)return e.lineTo(n.x,n.y);if("middle"===a){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else"after"===a!=!!o?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function iA(e,t,n,o){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(o?t.cp1x:t.cp2x,o?t.cp1y:t.cp2y,o?n.cp2x:n.cp1x,o?n.cp2y:n.cp1y,n.x,n.y)}function sA(e,t,n,o,a,r={}){const i=aT(t)?t:[t],s=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(e.save(),e.font=a.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),oT(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,r),l=0;l<i.length;++l)c=i[l],s&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),oT(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(c,n,o,r.maxWidth)),e.fillText(c,n,o,r.maxWidth),lA(e,n,o,c,r),o+=a.lineHeight;e.restore()}function lA(e,t,n,o,a){if(a.strikethrough||a.underline){const r=e.measureText(o),i=t-r.actualBoundingBoxLeft,s=t+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,d=a.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(i,d),e.lineTo(s,d),e.stroke()}}function cA(e,t){const{x:n,y:o,w:a,h:r,radius:i}=t;e.arc(n+i.topLeft,o+i.topLeft,i.topLeft,-DT,ST,!0),e.lineTo(n,o+r-i.bottomLeft),e.arc(n+i.bottomLeft,o+r-i.bottomLeft,i.bottomLeft,ST,DT,!0),e.lineTo(n+a-i.bottomRight,o+r),e.arc(n+a-i.bottomRight,o+r-i.bottomRight,i.bottomRight,DT,0,!0),e.lineTo(n+a,o+i.topRight),e.arc(n+a-i.topRight,o+i.topRight,i.topRight,0,-DT,!0),e.lineTo(n+i.topLeft,o)}const dA=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),uA=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique(-?[0-9]?[0-9]deg)?))$/);function pA(e,t){const n=(""+e).match(dA);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const hA=e=>+e||0;function mA(e,t){const n={},o=rT(t),a=o?Object.keys(t):t,r=rT(e)?o?n=>lT(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of a)n[e]=hA(r(e));return n}function fA(e){return mA(e,{top:"y",right:"x",bottom:"y",left:"x"})}function gA(e){return mA(e,["topLeft","topRight","bottomLeft","bottomRight"])}function vA(e){const t=fA(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _A(e,t){e=e||{},t=t||KC.font;let n=lT(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let o=lT(e.style,t.style);o&&!(""+o).match(uA)&&(console.warn('Invalid font style specified: "'+o+'"'),o="");const a={family:lT(e.family,t.family),lineHeight:pA(lT(e.lineHeight,t.lineHeight),n),size:n,style:o,weight:lT(e.weight,t.weight),string:""};return a.string=function(e){return!e||oT(e.size)||oT(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a}function bA(e,t,n,o){let a,r,i,s=!0;for(a=0,r=e.length;a<r;++a)if(i=e[a],void 0!==i&&(void 0!==t&&"function"==typeof i&&(i=i(t),s=!1),void 0!==n&&aT(i)&&(i=i[n%i.length],s=!1),void 0!==i))return o&&!s&&(o.cacheable=!1),i}function yA(e,t){return Object.assign(Object.create(e),t)}function wA(e,t=[""],n=e,o,a=()=>e[0]){kT(o)||(o=LA("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:o,_getTarget:a,override:a=>wA([a,...e],t,n,o)};return new Proxy(r,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,o)=>MA(n,o,(()=>function(e,t,n,o){let a;for(const r of t)if(a=LA(EA(r,e),n),kT(a))return SA(e,a)?DA(n,o,e,a):a}(o,t,e,n))),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>NA(e).includes(t),ownKeys:e=>NA(e),set(e,t,n){const o=e._storage||(e._storage=a());return e[t]=o[t]=n,delete e._keys,!0}})}function kA(e,t,n,o){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:xA(e,o),setContext:t=>kA(e,t,n,o),override:a=>kA(e.override(a),t,n,o)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>MA(e,t,(()=>function(e,t,n){const{_proxy:o,_context:a,_subProxy:r,_descriptors:i}=e;let s=o[t];return xT(s)&&i.isScriptable(t)&&(s=function(e,t,n,o){const{_proxy:a,_context:r,_subProxy:i,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);return s.add(e),t=t(r,i||o),s.delete(e),SA(e,t)&&(t=DA(a._scopes,a,e,t)),t}(t,s,e,n)),aT(s)&&s.length&&(s=function(e,t,n,o){const{_proxy:a,_context:r,_subProxy:i,_descriptors:s}=n;if(kT(r.index)&&o(e))t=t[r.index%t.length];else if(rT(t[0])){const n=t,o=a._scopes.filter((e=>e!==n));t=[];for(const l of n){const n=DA(o,a,e,l);t.push(kA(n,r,i&&i[e],s))}}return t}(t,s,e,i.isIndexable)),SA(t,s)&&(s=kA(s,a,r&&r[t],i)),s}(e,t,n))),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,o)=>(e[n]=o,delete t[n],!0)})}function xA(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:o=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:o,isScriptable:xT(n)?n:()=>n,isIndexable:xT(o)?o:()=>o}}const EA=(e,t)=>e?e+wT(t):t,SA=(e,t)=>rT(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function MA(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const o=n();return e[t]=o,o}function TA(e,t,n){return xT(e)?e(t,n):e}const CA=(e,t)=>!0===e?t:"string"==typeof e?yT(t,e):void 0;function AA(e,t,n,o,a){for(const r of t){const t=CA(n,r);if(t){e.add(t);const r=TA(t._fallback,n,a);if(kT(r)&&r!==n&&r!==o)return r}else if(!1===t&&kT(o)&&n!==o)return null}return!1}function DA(e,t,n,o){const a=t._rootScopes,r=TA(t._fallback,n,o),i=[...e,...a],s=new Set;s.add(o);let l=PA(s,i,n,r||n,o);return null!==l&&(!kT(r)||r===n||(l=PA(s,i,r,l,o),null!==l))&&wA(Array.from(s),[""],a,r,(()=>function(e,t,n){const o=e._getTarget();t in o||(o[t]={});const a=o[t];return aT(a)&&rT(n)?n:a}(t,n,o)))}function PA(e,t,n,o,a){for(;n;)n=AA(e,t,n,o,a);return n}function LA(e,t){for(const n of t){if(!n)continue;const t=n[e];if(kT(t))return t}}function NA(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter((e=>!e.startsWith("_"))))t.add(e);return Array.from(t)}(e._scopes)),t}function IA(e,t,n,o){const{iScale:a}=e,{key:r="r"}=this._parsing,i=new Array(o);let s,l,c,d;for(s=0,l=o;s<l;++s)c=s+n,d=t[c],i[s]={r:a.parse(yT(d,r),c)};return i}const OA=Number.EPSILON||1e-14,RA=(e,t)=>t<e.length&&!e[t].skip&&e[t],FA=e=>"x"===e?"y":"x";function jA(e,t,n,o){const a=e.skip?t:e,r=t,i=n.skip?t:n,s=VT(r,a),l=VT(i,r);let c=s/(s+l),d=l/(s+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=o*c,p=o*d;return{previous:{x:r.x-u*(i.x-a.x),y:r.y-u*(i.y-a.y)},next:{x:r.x+p*(i.x-a.x),y:r.y+p*(i.y-a.y)}}}function YA(e,t,n){return Math.max(Math.min(e,n),t)}function zA(e,t,n,o,a){let r,i,s,l;if(t.spanGaps&&(e=e.filter((e=>!e.skip))),"monotone"===t.cubicInterpolationMode)!function(e,t="x"){const n=FA(t),o=e.length,a=Array(o).fill(0),r=Array(o);let i,s,l,c=RA(e,0);for(i=0;i<o;++i)if(s=l,l=c,c=RA(e,i+1),l){if(c){const e=c[t]-l[t];a[i]=0!==e?(c[n]-l[n])/e:0}r[i]=s?c?IT(a[i-1])!==IT(a[i])?0:(a[i-1]+a[i])/2:a[i-1]:a[i]}!function(e,t,n){const o=e.length;let a,r,i,s,l,c=RA(e,0);for(let d=0;d<o-1;++d)l=c,c=RA(e,d+1),l&&c&&(FT(t[d],0,OA)?n[d]=n[d+1]=0:(a=n[d]/t[d],r=n[d+1]/t[d],s=Math.pow(a,2)+Math.pow(r,2),s<=9||(i=3/Math.sqrt(s),n[d]=a*i*t[d],n[d+1]=r*i*t[d])))}(e,a,r),function(e,t,n="x"){const o=FA(n),a=e.length;let r,i,s,l=RA(e,0);for(let c=0;c<a;++c){if(i=s,s=l,l=RA(e,c+1),!s)continue;const a=s[n],d=s[o];i&&(r=(a-i[n])/3,s[`cp1${n}`]=a-r,s[`cp1${o}`]=d-r*t[c]),l&&(r=(l[n]-a)/3,s[`cp2${n}`]=a+r,s[`cp2${o}`]=d+r*t[c])}}(e,r,t)}(e,a);else{let n=o?e[e.length-1]:e[0];for(r=0,i=e.length;r<i;++r)s=e[r],l=jA(n,s,e[Math.min(r+1,i-(o?0:1))%i],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}t.capBezierPoints&&function(e,t){let n,o,a,r,i,s=nA(e[0],t);for(n=0,o=e.length;n<o;++n)i=r,r=s,s=n<o-1&&nA(e[n+1],t),r&&(a=e[n],i&&(a.cp1x=YA(a.cp1x,t.left,t.right),a.cp1y=YA(a.cp1y,t.top,t.bottom)),s&&(a.cp2x=YA(a.cp2x,t.left,t.right),a.cp2y=YA(a.cp2y,t.top,t.bottom)))}(e,n)}function BA(){return"undefined"!=typeof window&&"undefined"!=typeof document}function HA(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function VA(e,t,n){let o;return"string"==typeof e?(o=parseInt(e,10),-1!==e.indexOf("%")&&(o=o/100*t.parentNode[n])):o=e,o}const UA=e=>window.getComputedStyle(e,null),WA=["top","right","bottom","left"];function qA(e,t,n){const o={};n=n?"-"+n:"";for(let a=0;a<4;a++){const r=WA[a];o[r]=parseFloat(e[t+"-"+r+n])||0}return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function $A(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:o}=t,a=UA(n),r="border-box"===a.boxSizing,i=qA(a,"padding"),s=qA(a,"border","width"),{x:l,y:c,box:d}=function(e,t){const n=e.touches,o=n&&n.length?n[0]:e,{offsetX:a,offsetY:r}=o;let i,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(a,r,e.target))i=a,s=r;else{const e=t.getBoundingClientRect();i=o.clientX-e.left,s=o.clientY-e.top,l=!0}return{x:i,y:s,box:l}}(e,n),u=i.left+(d&&s.left),p=i.top+(d&&s.top);let{width:h,height:m}=t;return r&&(h-=i.width+s.width,m-=i.height+s.height),{x:Math.round((l-u)/h*n.width/o),y:Math.round((c-p)/m*n.height/o)}}const GA=e=>Math.round(10*e)/10;function KA(e,t,n){const o=t||1,a=Math.floor(e.height*o),r=Math.floor(e.width*o);e.height=a/o,e.width=r/o;const i=e.canvas;return i.style&&(n||!i.style.height&&!i.style.width)&&(i.style.height=`${e.height}px`,i.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==o||i.height!==a||i.width!==r)&&(e.currentDevicePixelRatio=o,i.height=a,i.width=r,e.ctx.setTransform(o,0,0,o,0,0),!0)}const JA=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function XA(e,t){const n=function(e,t){return UA(e).getPropertyValue(t)}(e,t),o=n&&n.match(/^(\d+)(\.\d+)?px$/);return o?+o[1]:void 0}function QA(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function ZA(e,t,n,o){return{x:e.x+n*(t.x-e.x),y:"middle"===o?n<.5?e.y:t.y:"after"===o?n<1?e.y:t.y:n>0?t.y:e.y}}function eD(e,t,n,o){const a={x:e.cp2x,y:e.cp2y},r={x:t.cp1x,y:t.cp1y},i=QA(e,a,n),s=QA(a,r,n),l=QA(r,t,n),c=QA(i,s,n),d=QA(s,l,n);return QA(c,d,n)}const tD=new Map;function nD(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let o=tD.get(n);return o||(o=new Intl.NumberFormat(e,t),tD.set(n,o)),o}(t,n).format(e)}function oD(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function aD(e,t){let n,o;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,o=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=o)}function rD(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function iD(e){return"angle"===e?{between:qT,compare:UT,normalize:WT}:{between:GT,compare:(e,t)=>e-t,normalize:e=>e}}function sD({start:e,end:t,count:n,loop:o,style:a}){return{start:e%n,end:t%n,loop:o&&(t-e+1)%n==0,style:a}}function lD(e,t,n){if(!n)return[e];const{property:o,start:a,end:r}=n,i=t.length,{compare:s,between:l,normalize:c}=iD(o),{start:d,end:u,loop:p,style:h}=function(e,t,n){const{property:o,start:a,end:r}=n,{between:i,normalize:s}=iD(o),l=t.length;let c,d,{start:u,end:p,loop:h}=e;if(h){for(u+=l,p+=l,c=0,d=l;c<d&&i(s(t[u%l][o]),a,r);++c)u--,p--;u%=l,p%=l}return p<u&&(p+=l),{start:u,end:p,loop:h,style:e.style}}(e,t,n),m=[];let f,g,v,_=!1,b=null;for(let e=d,n=d;e<=u;++e)g=t[e%i],g.skip||(f=c(g[o]),f!==v&&(_=l(f,a,r),null===b&&(_||l(a,v,f)&&0!==s(a,v))&&(b=0===s(f,a)?e:n),null!==b&&(!_||0===s(r,f)||l(r,v,f))&&(m.push(sD({start:b,end:e,loop:p,count:i,style:h})),b=null),n=e,v=f));return null!==b&&m.push(sD({start:b,end:u,loop:p,count:i,style:h})),m}function cD(e,t){const n=[],o=e.segments;for(let a=0;a<o.length;a++){const r=lD(o[a],e.points,t);r.length&&n.push(...r)}return n}function dD(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function uD(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var pD=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,o){const a=t.listeners[o],r=t.duration;a.forEach((o=>o({chart:e,initial:t.initial,numSteps:r,currentStep:Math.min(n-t.start,r)})))}_refresh(){this._request||(this._running=!0,this._request=tC.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(e=Date.now()){let t=0;this._charts.forEach(((n,o)=>{if(!n.running||!n.items.length)return;const a=n.items;let r,i=a.length-1,s=!1;for(;i>=0;--i)r=a[i],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(e),s=!0):(a[i]=a[a.length-1],a.pop());s&&(o.draw(),this._notify(o,n,e,"progress")),a.length||(n.running=!1,this._notify(o,n,e,"complete"),n.initial=!1),t+=a.length})),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce(((e,t)=>Math.max(e,t._duration)),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const hD="transparent",mD={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const o=VC(e||hD),a=o.valid&&VC(t||hD);return a&&a.valid?a.mix(o,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class fD{constructor(e,t,n,o){const a=t[n];o=bA([e.to,o,a,e.from]);const r=bA([e.from,a,o]);this._active=!0,this._fn=e.fn||mD[e.type||typeof r],this._easing=dC[e.easing]||dC.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const o=this._target[this._prop],a=n-this._start,r=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=bA([e.to,t,o,e.from]),this._from=bA([e.from,o,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,o=this._prop,a=this._from,r=this._loop,i=this._to;let s;if(this._active=a!==i&&(r||t<n),!this._active)return this._target[o]=i,void this._notify(!0);t<0?this._target[o]=a:(s=t/n%2,s=r&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[o]=this._fn(a,i,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise(((t,n)=>{e.push({res:t,rej:n})}))}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}KC.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const gD=Object.keys(KC.animation);KC.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),KC.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),KC.describe("animations",{_fallback:"animation"}),KC.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class vD{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!rT(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach((n=>{const o=e[n];if(!rT(o))return;const a={};for(const e of gD)a[e]=o[e];(aT(o.properties)&&o.properties||[n]).forEach((e=>{e!==n&&t.has(e)||t.set(e,a)}))}))}_animateOptions(e,t){const n=t.options,o=function(e,t){if(!t)return;let n=e.options;if(n)return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;e.options=t}(e,n);if(!o)return[];const a=this._createAnimations(o,n);return n.$shared&&function(e,t){const n=[],o=Object.keys(t);for(let t=0;t<o.length;t++){const a=e[o[t]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(e.options.$animations,n).then((()=>{e.options=n}),(()=>{})),a}_createAnimations(e,t){const n=this._properties,o=[],a=e.$animations||(e.$animations={}),r=Object.keys(t),i=Date.now();let s;for(s=r.length-1;s>=0;--s){const l=r[s];if("$"===l.charAt(0))continue;if("options"===l){o.push(...this._animateOptions(e,t));continue}const c=t[l];let d=a[l];const u=n.get(l);if(d){if(u&&d.active()){d.update(u,c,i);continue}d.cancel()}u&&u.duration?(a[l]=d=new fD(u,e,l,c),o.push(d)):e[l]=c}return o}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(pD.add(this._chart,n),!0):void 0}}function _D(e,t){const n=e&&e.options||{},o=n.reverse,a=void 0===n.min?t:0,r=void 0===n.max?t:0;return{start:o?r:a,end:o?a:r}}function bD(e,t){const n=[],o=e._getSortedDatasetMetas(t);let a,r;for(a=0,r=o.length;a<r;++a)n.push(o[a].index);return n}function yD(e,t,n,o={}){const a=e.keys,r="single"===o.mode;let i,s,l,c;if(null!==t){for(i=0,s=a.length;i<s;++i){if(l=+a[i],l===n){if(o.all)continue;break}c=e.values[l],iT(c)&&(r||0===t||IT(t)===IT(c))&&(t+=c)}return t}}function wD(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function kD(e,t,n){const o=e[t]||(e[t]={});return o[n]||(o[n]={})}function xD(e,t,n,o){for(const a of t.getMatchingVisibleMetas(o).reverse()){const t=e[a.index];if(n&&t>0||!n&&t<0)return a.index}return null}function ED(e,t){const{chart:n,_cachedMeta:o}=e,a=n._stacks||(n._stacks={}),{iScale:r,vScale:i,index:s}=o,l=r.axis,c=i.axis,d=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(r,i,o),u=t.length;let p;for(let e=0;e<u;++e){const n=t[e],{[l]:r,[c]:u}=n;p=(n._stacks||(n._stacks={}))[c]=kD(a,d,r),p[s]=u,p._top=xD(p,i,!0,o.type),p._bottom=xD(p,i,!1,o.type)}}function SD(e,t){const n=e.scales;return Object.keys(n).filter((e=>n[e].axis===t)).shift()}function MD(e,t){const n=e.controller.index,o=e.vScale&&e.vScale.axis;if(o){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[o]||void 0===t[o][n])return;delete t[o][n]}}}const TD=e=>"reset"===e||"none"===e,CD=(e,t)=>t?e:Object.assign({},e);class AD{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wD(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&MD(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),o=(e,t,n,o)=>"x"===e?t:"r"===e?o:n,a=t.xAxisID=lT(n.xAxisID,SD(e,"x")),r=t.yAxisID=lT(n.yAxisID,SD(e,"y")),i=t.rAxisID=lT(n.rAxisID,SD(e,"r")),s=t.indexAxis,l=t.iAxisID=o(s,a,r,i),c=t.vAxisID=o(s,r,a,i);t.xScale=this.getScaleForId(a),t.yScale=this.getScaleForId(r),t.rScale=this.getScaleForId(i),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&ZT(this._data,this),e._stacked&&MD(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(rT(t))this._data=function(e){const t=Object.keys(e),n=new Array(t.length);let o,a,r;for(o=0,a=t.length;o<a;++o)r=t[o],n[o]={x:r,y:e[r]};return n}(t);else if(n!==t){if(n){ZT(n,this);const e=this._cachedMeta;MD(e),e._parsed=[]}t&&Object.isExtensible(t)&&((o=t)._chartjs?o._chartjs.listeners.push(this):(Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),QT.forEach((e=>{const t="_onData"+wT(e),n=o[e];Object.defineProperty(o,e,{configurable:!0,enumerable:!1,value(...e){const a=n.apply(this,e);return o._chartjs.listeners.forEach((n=>{"function"==typeof n[t]&&n[t](...e)})),a}})})))),this._syncList=[],this._data=t}var o}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let o=!1;this._dataCheck();const a=t._stacked;t._stacked=wD(t.vScale,t),t.stack!==n.stack&&(o=!0,MD(t),t.stack=n.stack),this._resyncElements(e),(o||a!==t._stacked)&&ED(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:o}=this,{iScale:a,_stacked:r}=n,i=a.axis;let s,l,c,d=0===e&&t===o.length||n._sorted,u=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=o,n._sorted=!0,c=o;else{c=aT(o[e])?this.parseArrayData(n,o,e,t):rT(o[e])?this.parseObjectData(n,o,e,t):this.parsePrimitiveData(n,o,e,t);const a=()=>null===l[i]||u&&l[i]<u[i];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],d&&(a()&&(d=!1),u=l);n._sorted=d}r&&ED(this,c)}parsePrimitiveData(e,t,n,o){const{iScale:a,vScale:r}=e,i=a.axis,s=r.axis,l=a.getLabels(),c=a===r,d=new Array(o);let u,p,h;for(u=0,p=o;u<p;++u)h=u+n,d[u]={[i]:c||a.parse(l[h],h),[s]:r.parse(t[h],h)};return d}parseArrayData(e,t,n,o){const{xScale:a,yScale:r}=e,i=new Array(o);let s,l,c,d;for(s=0,l=o;s<l;++s)c=s+n,d=t[c],i[s]={x:a.parse(d[0],c),y:r.parse(d[1],c)};return i}parseObjectData(e,t,n,o){const{xScale:a,yScale:r}=e,{xAxisKey:i="x",yAxisKey:s="y"}=this._parsing,l=new Array(o);let c,d,u,p;for(c=0,d=o;c<d;++c)u=c+n,p=t[u],l[c]={x:a.parse(yT(p,i),u),y:r.parse(yT(p,s),u)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const o=this.chart,a=this._cachedMeta,r=t[e.axis];return yD({keys:bD(o,!0),values:t._stacks[e.axis]},r,a.index,{mode:n})}updateRangeFromParsed(e,t,n,o){const a=n[t.axis];let r=null===a?NaN:a;const i=o&&n._stacks[t.axis];o&&i&&(o.values=i,r=yD(o,a,this._cachedMeta.index)),e.min=Math.min(e.min,r),e.max=Math.max(e.max,r)}getMinMax(e,t){const n=this._cachedMeta,o=n._parsed,a=n._sorted&&e===n.iScale,r=o.length,i=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:bD(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(e){const{min:t,max:n,minDefined:o,maxDefined:a}=e.getUserBounds();return{min:o?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}(i);let u,p;function h(){p=o[u];const t=p[i.axis];return!iT(p[e.axis])||c>t||d<t}for(u=0;u<r&&(h()||(this.updateRangeFromParsed(l,e,p,s),!a));++u);if(a)for(u=r-1;u>=0;--u)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let o,a,r;for(o=0,a=t.length;o<a;++o)r=t[o][e.axis],iT(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,o=t.vScale,a=this.getParsed(e);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:o?""+o.getLabelForValue(a[o.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,o,a;return rT(e)?(t=e.top,n=e.right,o=e.bottom,a=e.left):t=n=o=a=e,{top:t,right:n,bottom:o,left:a,disabled:!1===e}}(lT(this.options.clip,function(e,t,n){if(!1===n)return!1;const o=_D(e,n),a=_D(t,n);return{top:a.end,right:o.end,bottom:a.start,left:o.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,o=n.data||[],a=t.chartArea,r=[],i=this._drawStart||0,s=this._drawCount||o.length-i,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,a,i,s),c=i;c<i+s;++c){const t=o[c];t.hidden||(t.active&&l?r.push(t):t.draw(e,a))}for(c=0;c<r.length;++c)r[c].draw(e,a)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const o=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];a=t.$context||(t.$context=function(e,t,n){return yA(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),a.parsed=this.getParsed(e),a.raw=o.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=function(e,t){return yA(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=o,a.index=a.datasetIndex=this.index;return a.active=!!t,a.mode=n,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const o="active"===t,a=this._cachedDataOpts,r=e+"-"+t,i=a[r],s=this.enableOptionSharing&&kT(n);if(i)return CD(i,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),d=o?[`${e}Hover`,"hover",e,""]:[e,""],u=l.getOptionScopes(this.getDataset(),c),p=Object.keys(KC.elements[e]),h=l.resolveNamedOptions(u,p,(()=>this.getContext(n,o)),d);return h.$shared&&(h.$shared=s,a[r]=Object.freeze(CD(h,s))),h}_resolveAnimations(e,t,n){const o=this.chart,a=this._cachedDataOpts,r=`animation-${t}`,i=a[r];if(i)return i;let s;if(!1!==o.options.animation){const o=this.chart.config,a=o.datasetAnimationScopeKeys(this._type,t),r=o.getOptionScopes(this.getDataset(),a);s=o.createResolver(r,this.getContext(e,n,t))}const l=new vD(o,s&&s.animations);return s&&s._cacheable&&(a[r]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||TD(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),o=this._sharedOptions,a=this.getSharedOptions(n),r=this.includeOptions(t,a)||a!==o;return this.updateSharedOptions(a,t,n),{sharedOptions:a,includeOptions:r}}updateElement(e,t,n,o){TD(o)?Object.assign(e,n):this._resolveAnimations(t,o).update(e,n)}updateSharedOptions(e,t,n){e&&!TD(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,o){e.active=o;const a=this.getStyle(t,o);this._resolveAnimations(t,n,o).update(e,{options:!o&&this.getSharedOptions(a)||a})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const o=n.length,a=t.length,r=Math.min(a,o);r&&this.parse(0,r),a>o?this._insertElements(o,a-o,e):a<o&&this._removeElements(a,o-a)}_insertElements(e,t,n=!0){const o=this._cachedMeta,a=o.data,r=e+t;let i;const s=e=>{for(e.length+=t,i=e.length-1;i>=r;i--)e[i]=e[i-t]};for(s(a),i=e;i<r;++i)a[i]=new this.dataElementType;this._parsing&&s(o._parsed),this.parse(e,t),n&&this.updateElements(a,e,t,"reset")}updateElements(e,t,n,o){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const o=n._parsed.splice(e,t);n._stacked&&MD(n,o)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,o]=e;this[t](n,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function DD(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let o=[];for(let t=0,a=n.length;t<a;t++)o=o.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=eC(o.sort(((e,t)=>e-t)))}return e._cache.$bar}(t,e.type);let o,a,r,i,s=t._length;const l=()=>{32767!==r&&-32768!==r&&(kT(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(o=0,a=n.length;o<a;++o)r=t.getPixelForValue(n[o]),l();for(i=void 0,o=0,a=t.ticks.length;o<a;++o)r=t.getPixelForTick(o),l();return s}function PD(e,t,n,o){return aT(e)?function(e,t,n,o){const a=n.parse(e[0],o),r=n.parse(e[1],o),i=Math.min(a,r),s=Math.max(a,r);let l=i,c=s;Math.abs(i)>Math.abs(s)&&(l=s,c=i),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:r,min:i,max:s}}(e,t,n,o):t[n.axis]=n.parse(e,o),t}function LD(e,t,n,o){const a=e.iScale,r=e.vScale,i=a.getLabels(),s=a===r,l=[];let c,d,u,p;for(c=n,d=n+o;c<d;++c)p=t[c],u={},u[a.axis]=s||a.parse(i[c],c),l.push(PD(p,u,r,c));return l}function ND(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function ID(e,t,n,o){let a=t.borderSkipped;const r={};if(!a)return void(e.borderSkipped=r);if(!0===a)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:i,end:s,reverse:l,top:c,bottom:d}=function(e){let t,n,o,a,r;return e.horizontal?(t=e.base>e.x,n="left",o="right"):(t=e.base<e.y,n="bottom",o="top"),t?(a="end",r="start"):(a="start",r="end"),{start:n,end:o,reverse:t,top:a,bottom:r}}(e);"middle"===a&&n&&(e.enableBorderRadius=!0,(n._top||0)===o?a=c:(n._bottom||0)===o?a=d:(r[OD(d,i,s,l)]=!0,a=c)),r[OD(a,i,s,l)]=!0,e.borderSkipped=r}function OD(e,t,n,o){var a,r,i;return o?(i=n,e=RD(e=(a=e)===(r=t)?i:a===i?r:a,n,t)):e=RD(e,t,n),e}function RD(e,t,n){return"start"===e?t:"end"===e?n:e}function FD(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}AD.defaults={},AD.prototype.datasetElementType=null,AD.prototype.dataElementType=null;class jD extends AD{parsePrimitiveData(e,t,n,o){return LD(e,t,n,o)}parseArrayData(e,t,n,o){return LD(e,t,n,o)}parseObjectData(e,t,n,o){const{iScale:a,vScale:r}=e,{xAxisKey:i="x",yAxisKey:s="y"}=this._parsing,l="x"===a.axis?i:s,c="x"===r.axis?i:s,d=[];let u,p,h,m;for(u=n,p=n+o;u<p;++u)m=t[u],h={},h[a.axis]=a.parse(yT(m,l),u),d.push(PD(yT(m,c),h,r,u));return d}updateRangeFromParsed(e,t,n,o){super.updateRangeFromParsed(e,t,n,o);const a=n._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:o}=t,a=this.getParsed(e),r=a._custom,i=ND(r)?"["+r.start+", "+r.end+"]":""+o.getLabelForValue(a[o.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:i}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,o){const a="reset"===o,{index:r,_cachedMeta:{vScale:i}}=this,s=i.getBasePixel(),l=i.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:u}=this._getSharedOptions(t,o);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=a||oT(t[i.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),m=(t._stacks||{})[i.axis],f={horizontal:l,base:n.base,enableBorderRadius:!m||ND(t._custom)||r===m._top||r===m._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};u&&(f.options=d||this.resolveDataElementOptions(p,e[p].active?"active":o));const g=f.options||e[p].options;ID(f,g,m,r),FD(f,g,c.ratio),this.updateElement(e[p],p,f,o)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,o=n.getMatchingVisibleMetas(this._type).filter((e=>e.controller.options.grouped)),a=n.options.stacked,r=[],i=e=>{const n=e.controller.getParsed(t),o=n&&n[e.vScale.axis];if(oT(o)||isNaN(o))return!0};for(const n of o)if((void 0===t||!i(n))&&((!1===a||-1===r.indexOf(n.stack)||void 0===a&&void 0===n.stack)&&r.push(n.stack),n.index===e))break;return r.length||r.push(void 0),r}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const o=this._getStacks(e,n),a=void 0!==t?o.indexOf(t):-1;return-1===a?o.length-1:a}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,o=[];let a,r;for(a=0,r=t.data.length;a<r;++a)o.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));const i=e.barThickness;return{min:i||DD(t),pixels:o,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:i?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n},options:{base:o,minBarLength:a}}=this,r=o||0,i=this.getParsed(e),s=i._custom,l=ND(s);let c,d,u=i[t.axis],p=0,h=n?this.applyStack(t,i,n):u;h!==u&&(p=h-u,h=u),l&&(u=s.barStart,h=s.barEnd-s.barStart,0!==u&&IT(u)!==IT(s.barEnd)&&(p=0),p+=u);const m=oT(o)||l?p:o;let f=t.getPixelForValue(m);if(c=this.chart.getDataVisibility(e)?t.getPixelForValue(p+h):f,d=c-f,Math.abs(d)<a){d=function(e,t,n){return 0!==e?IT(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,r)*a,u===r&&(f-=d/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),o=Math.min(e,n),i=Math.max(e,n);f=Math.max(Math.min(f,i),o),c=f+d}if(f===t.getPixelForValue(r)){const e=IT(d)*t.getLineWidthForValue(r)/2;f+=e,d-=e}return{size:d,base:f,head:c,center:c+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,o=this.options,a=o.skipNull,r=lT(o.maxBarThickness,1/0);let i,s;if(t.grouped){const n=a?this._getStackCount(e):t.stackCount,l="flex"===o.barThickness?function(e,t,n,o){const a=t.pixels,r=a[e];let i=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null;const l=n.categoryPercentage;null===i&&(i=r-(null===s?t.end-t.start:s-r)),null===s&&(s=r+r-i);const c=r-(r-Math.min(i,s))/2*l;return{chunk:Math.abs(s-i)/2*l/o,ratio:n.barPercentage,start:c}}(e,t,o,n):function(e,t,n,o){const a=n.barThickness;let r,i;return oT(a)?(r=t.min*n.categoryPercentage,i=n.barPercentage):(r=a*o,i=1),{chunk:r/o,ratio:i,start:t.pixels[e]-r/2}}(e,t,o,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);i=l.start+l.chunk*c+l.chunk/2,s=Math.min(r,l.chunk*l.ratio)}else i=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(r,t.min*t.ratio);return{base:i-s/2,head:i+s/2,center:i,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,o=n.length;let a=0;for(;a<o;++a)null!==this.getParsed(a)[t.axis]&&n[a].draw(this._ctx)}}jD.id="bar",jD.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},jD.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class YD extends AD{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,o){const a=super.parsePrimitiveData(e,t,n,o);for(let e=0;e<a.length;e++)a[e]._custom=this.resolveDataElementOptions(e+n).radius;return a}parseArrayData(e,t,n,o){const a=super.parseArrayData(e,t,n,o);for(let e=0;e<a.length;e++){const o=t[n+e];a[e]._custom=lT(o[2],this.resolveDataElementOptions(e+n).radius)}return a}parseObjectData(e,t,n,o){const a=super.parseObjectData(e,t,n,o);for(let e=0;e<a.length;e++){const o=t[n+e];a[e]._custom=lT(o&&o.r&&+o.r,this.resolveDataElementOptions(e+n).radius)}return a}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:n,yScale:o}=t,a=this.getParsed(e),r=n.getLabelForValue(a.x),i=o.getLabelForValue(a.y),s=a._custom;return{label:t.label,value:"("+r+", "+i+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,o){const a="reset"===o,{iScale:r,vScale:i}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(t,o),c=r.axis,d=i.axis;for(let u=t;u<t+n;u++){const t=e[u],n=!a&&this.getParsed(u),p={},h=p[c]=a?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),m=p[d]=a?i.getBasePixel():i.getPixelForValue(n[d]);p.skip=isNaN(h)||isNaN(m),l&&(p.options=s||this.resolveDataElementOptions(u,t.active?"active":o),a&&(p.options.radius=0)),this.updateElement(t,u,p,o)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let o=super.resolveDataElementOptions(e,t);o.$shared&&(o=Object.assign({},o,{$shared:!1}));const a=o.radius;return"active"!==t&&(o.radius=0),o.radius+=lT(n&&n._custom,a),o}}YD.id="bubble",YD.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},YD.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class zD extends AD{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,o=this._cachedMeta;if(!1===this._parsing)o._parsed=n;else{let a,r,i=e=>+n[e];if(rT(n[e])){const{key:e="value"}=this._parsing;i=t=>+yT(n[t],e)}for(a=e,r=e+t;a<r;++a)o._parsed[a]=i(a)}}_getRotation(){return YT(this.options.rotation-90)}_getCircumference(){return YT(this.options.circumference)}_getRotationExtents(){let e=MT,t=-MT;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const o=this.chart.getDatasetMeta(n).controller,a=o._getRotation(),r=o._getCircumference();e=Math.min(e,a),t=Math.max(t,a+r)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,o=this._cachedMeta,a=o.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(n.width,n.height)-r)/2,0),s=Math.min((c=i,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:u,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:m,offsetX:f,offsetY:g}=function(e,t,n){let o=1,a=1,r=0,i=0;if(t<MT){const s=e,l=s+t,c=Math.cos(s),d=Math.sin(s),u=Math.cos(l),p=Math.sin(l),h=(e,t,o)=>qT(e,s,l,!0)?1:Math.max(t,t*n,o,o*n),m=(e,t,o)=>qT(e,s,l,!0)?-1:Math.min(t,t*n,o,o*n),f=h(0,c,u),g=h(DT,d,p),v=m(ST,c,u),_=m(ST+DT,d,p);o=(f-v)/2,a=(g-_)/2,r=-(f+v)/2,i=-(g+_)/2}return{ratioX:o,ratioY:a,offsetX:r,offsetY:i}}(p,u,s),v=(n.width-r)/h,_=(n.height-r)/m,b=Math.max(Math.min(v,_)/2,0),y=cT(this.options.radius,b),w=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*y,this.offsetY=g*y,o.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*d,0),this.updateElements(a,0,a.length,e)}_circumference(e,t){const n=this.options,o=this._cachedMeta,a=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===o._parsed[e]||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*a/MT)}updateElements(e,t,n,o){const a="reset"===o,r=this.chart,i=r.chartArea,s=r.options.animation,l=(i.left+i.right)/2,c=(i.top+i.bottom)/2,d=a&&s.animateScale,u=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:h,includeOptions:m}=this._getSharedOptions(t,o);let f,g=this._getRotation();for(f=0;f<t;++f)g+=this._circumference(f,a);for(f=t;f<t+n;++f){const t=this._circumference(f,a),n=e[f],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:u};m&&(r.options=h||this.resolveDataElementOptions(f,n.active?"active":o)),g+=t,this.updateElement(n,f,r,o)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,o=0;for(n=0;n<t.length;n++){const a=e._parsed[n];null===a||isNaN(a)||!this.chart.getDataVisibility(n)||t[n].hidden||(o+=Math.abs(a))}return o}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?MT*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],a=nD(t._parsed[e],n.options.locale);return{label:o[e]||"",value:a}}getMaxBorderWidth(e){let t=0;const n=this.chart;let o,a,r,i,s;if(!e)for(o=0,a=n.data.datasets.length;o<a;++o)if(n.isDatasetVisible(o)){r=n.getDatasetMeta(o),e=r.data,i=r.controller;break}if(!e)return 0;for(o=0,a=e.length;o<a;++o)s=i.resolveDataElementOptions(o),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,o=e.length;n<o;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(lT(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}zD.id="doughnut",zD.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},zD.descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e},zD.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const n=": "+e.formattedValue;return aT(t)?(t=t.slice(),t[0]+=n):t+=n,t}}}}};class BD extends AD{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:o=[],_dataset:a}=t,r=this.chart._animationsDisabled;let{start:i,count:s}=rC(t,o,r);this._drawStart=i,this._drawCount=s,iC(t)&&(i=0,s=o.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=o;const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},e),this.updateElements(o,i,s,e)}updateElements(e,t,n,o){const a="reset"===o,{iScale:r,vScale:i,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(t,o),u=r.axis,p=i.axis,{spanGaps:h,segment:m}=this.options,f=RT(h)?h:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||a||"none"===o;let v=t>0&&this.getParsed(t-1);for(let h=t;h<t+n;++h){const t=e[h],n=this.getParsed(h),_=g?t:{},b=oT(n[p]),y=_[u]=r.getPixelForValue(n[u],h),w=_[p]=a||b?i.getBasePixel():i.getPixelForValue(s?this.applyStack(i,n,s):n[p],h);_.skip=isNaN(y)||isNaN(w)||b,_.stop=h>0&&Math.abs(n[u]-v[u])>f,m&&(_.parsed=n,_.raw=l.data[h]),d&&(_.options=c||this.resolveDataElementOptions(h,t.active?"active":o)),g||this.updateElement(t,h,_,o),v=n}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,o=e.data||[];if(!o.length)return n;const a=o[0].size(this.resolveDataElementOptions(0)),r=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(n,a,r)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}BD.id="line",BD.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},BD.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class HD extends AD{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,o=n.data.labels||[],a=nD(t._parsed[e].r,n.options.locale);return{label:o[e]||"",value:a}}parseObjectData(e,t,n,o){return IA.bind(this)(e,t,n,o)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(((e,n)=>{const o=this.getParsed(n).r;!isNaN(o)&&this.chart.getDataVisibility(n)&&(o<t.min&&(t.min=o),o>t.max&&(t.max=o))})),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,o=Math.min(t.right-t.left,t.bottom-t.top),a=Math.max(o/2,0),r=(a-Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=a-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(e,t,n,o){const a="reset"===o,r=this.chart,i=r.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,d=s.getIndexAngle(0)-.5*ST;let u,p=d;const h=360/this.countVisibleElements();for(u=0;u<t;++u)p+=this._computeAngle(u,o,h);for(u=t;u<t+n;u++){const t=e[u];let n=p,m=p+this._computeAngle(u,o,h),f=r.getDataVisibility(u)?s.getDistanceFromCenterForValue(this.getParsed(u).r):0;p=m,a&&(i.animateScale&&(f=0),i.animateRotate&&(n=m=d));const g={x:l,y:c,innerRadius:0,outerRadius:f,startAngle:n,endAngle:m,options:this.resolveDataElementOptions(u,t.active?"active":o)};this.updateElement(t,u,g,o)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach(((e,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++})),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?YT(this.resolveDataElementOptions(e,t).angle||n):0}}HD.id="polarArea",HD.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},HD.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n}}=e.legend.options;return t.labels.map(((t,o)=>{const a=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}}))}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class VD extends zD{}VD.id="pie",VD.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class UD extends AD{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,o){return IA.bind(this)(e,t,n,o)}update(e){const t=this._cachedMeta,n=t.dataset,o=t.data||[],a=t.iScale.getLabels();if(n.points=o,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const r={_loop:!0,_fullLoop:a.length===o.length,options:t};this.updateElement(n,void 0,r,e)}this.updateElements(o,0,o.length,e)}updateElements(e,t,n,o){const a=this._cachedMeta.rScale,r="reset"===o;for(let i=t;i<t+n;i++){const t=e[i],n=this.resolveDataElementOptions(i,t.active?"active":o),s=a.getPointPositionForValue(i,this.getParsed(i).r),l=r?a.xCenter:s.x,c=r?a.yCenter:s.y,d={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(t,i,d,o)}}}UD.id="radar",UD.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},UD.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class WD{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return RT(this.x)&&RT(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const o={};return e.forEach((e=>{o[e]=n[e]&&n[e].active()?n[e]._to:this[e]})),o}}WD.defaults={},WD.defaultRoutes=void 0;const qD={values:e=>aT(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const o=this.chart.options.locale;let a,r=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(a="scientific"),r=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}(e,n)}const i=NT(Math.abs(r)),s=Math.max(Math.min(-1*Math.floor(i),20),0),l={notation:a,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),nD(e,o,l)},logarithmic(e,t,n){if(0===e)return"0";const o=e/Math.pow(10,Math.floor(NT(e)));return 1===o||2===o||5===o?qD.numeric.call(this,e,t,n):""}};var $D={formatters:qD};function GD(e,t,n,o,a){const r=lT(o,0),i=Math.min(lT(a,e.length),e.length);let s,l,c,d=0;for(n=Math.ceil(n),a&&(s=a-o,n=s/Math.floor(s/n)),c=r;c<0;)d++,c=Math.round(r+d*n);for(l=Math.max(r,0);l<i;l++)l===c&&(t.push(e[l]),d++,c=Math.round(r+d*n))}KC.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:$D.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),KC.route("scale.ticks","color","","color"),KC.route("scale.grid","color","","borderColor"),KC.route("scale.grid","borderColor","","borderColor"),KC.route("scale.title","color","","color"),KC.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),KC.describe("scales",{_fallback:"scale"}),KC.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const KD=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n;function JD(e,t){const n=[],o=e.length/t,a=e.length;let r=0;for(;r<a;r+=o)n.push(e[Math.floor(r)]);return n}function XD(e,t,n){const o=e.ticks.length,a=Math.min(t,o-1),r=e._startPixel,i=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(a);if(!(n&&(l=1===o?Math.max(c-r,i-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(a-1))/2,c+=a<t?l:-l,c<r-s||c>i+s)))return c}function QD(e){return e.drawTicks?e.tickLength:0}function ZD(e,t){if(!e.display)return 0;const n=_A(e.font,t),o=vA(e.padding);return(aT(e.text)?e.text.length:1)*n.lineHeight+o.height}function eP(e,t,n){let o=oC(e);return(n&&"right"!==t||!n&&"right"===t)&&(o=(e=>"left"===e?"right":"right"===e?"left":e)(o)),o}class tP extends WD{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:o}=this;return e=sT(e,Number.POSITIVE_INFINITY),t=sT(t,Number.NEGATIVE_INFINITY),n=sT(n,Number.POSITIVE_INFINITY),o=sT(o,Number.NEGATIVE_INFINITY),{min:sT(e,n),max:sT(t,o),minDefined:iT(e),maxDefined:iT(t)}}getMinMax(e){let t,{min:n,max:o,minDefined:a,maxDefined:r}=this.getUserBounds();if(a&&r)return{min:n,max:o};const i=this.getMatchingVisibleMetas();for(let s=0,l=i.length;s<l;++s)t=i[s].controller.getMinMax(this,e),a||(n=Math.min(n,t.min)),r||(o=Math.max(o,t.max));return n=r&&n>o?o:n,o=a&&n>o?n:o,{min:sT(n,sT(o,n)),max:sT(o,sT(n,o))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){dT(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:o,grace:a,ticks:r}=this.options,i=r.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:o,max:a}=e,r=cT(t,(a-o)/2),i=(e,t)=>n&&0===e?0:e+t;return{min:i(o,-Math.abs(r)),max:i(a,r)}}(this,a,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=i<this.ticks.length;this._convertTicksToLabels(s?JD(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=function(e,t){const n=e.options.ticks,o=n.maxTicksLimit||function(e){const t=e.options.offset,n=e._tickSize(),o=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(o,a))}(e),a=n.major.enabled?function(e){const t=[];let n,o;for(n=0,o=e.length;n<o;n++)e[n].major&&t.push(n);return t}(t):[],r=a.length,i=a[0],s=a[r-1],l=[];if(r>o)return function(e,t,n,o){let a,r=0,i=n[0];for(o=Math.ceil(o),a=0;a<e.length;a++)a===i&&(t.push(e[a]),r++,i=n[r*o])}(t,l,a,r/o),l;const c=function(e,t,n){const o=function(e){const t=e.length;let n,o;if(t<2)return!1;for(o=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==o)return!1;return o}(e),a=t.length/n;if(!o)return Math.max(a,1);const r=function(e){const t=[],n=Math.sqrt(e);let o;for(o=1;o<n;o++)e%o==0&&(t.push(o),t.push(e/o));return n===(0|n)&&t.push(n),t.sort(((e,t)=>e-t)).pop(),t}(o);for(let e=0,t=r.length-1;e<t;e++){const t=r[e];if(t>a)return t}return Math.max(a,1)}(a,t,o);if(r>0){let e,n;const o=r>1?Math.round((s-i)/(r-1)):null;for(GD(t,l,c,oT(o)?0:i-o,i),e=0,n=r-1;e<n;e++)GD(t,l,c,a[e],a[e+1]);return GD(t,l,c,s,oT(o)?t.length:s+o),l}return GD(t,l,c),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){dT(this.options.afterUpdate,[this])}beforeSetDimensions(){dT(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){dT(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),dT(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){dT(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,o,a;for(n=0,o=e.length;n<o;n++)a=e[n],a.label=dT(t.callback,[a.value,n,e],this)}afterTickToLabelConversion(){dT(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){dT(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=this.ticks.length,o=t.minRotation||0,a=t.maxRotation;let r,i,s,l=o;if(!this._isVisible()||!t.display||o>=a||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,p=$T(this.chart.width-d,0,this.maxWidth);r=e.offset?this.maxWidth/n:p/(n-1),d+6>r&&(r=p/(n-(e.offset?.5:1)),i=this.maxHeight-QD(e.grid)-t.padding-ZD(e.title,this.chart.options.font),s=Math.sqrt(d*d+u*u),l=zT(Math.min(Math.asin($T((c.highest.height+6)/r,-1,1)),Math.asin($T(i/s,-1,1))-Math.asin($T(u/s,-1,1)))),l=Math.max(o,Math.min(a,l))),this.labelRotation=l}afterCalculateLabelRotation(){dT(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){dT(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:o,grid:a}}=this,r=this._isVisible(),i=this.isHorizontal();if(r){const r=ZD(o,t.options.font);if(i?(e.width=this.maxWidth,e.height=QD(a)+r):(e.height=this.maxHeight,e.width=QD(a)+r),n.display&&this.ticks.length){const{first:t,last:o,widest:a,highest:r}=this._getLabelSizes(),s=2*n.padding,l=YT(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(i){const t=n.mirror?0:d*a.width+c*r.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*a.width+d*r.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,o,d,c)}}this._handleMargins(),i?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,o){const{ticks:{align:a,padding:r},position:i}=this.options,s=0!==this.labelRotation,l="top"!==i&&"x"===this.axis;if(this.isHorizontal()){const i=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,u=0;s?l?(d=o*e.width,u=n*t.height):(d=n*e.height,u=o*t.width):"start"===a?u=t.width:"end"===a?d=e.width:"inner"!==a&&(d=e.width/2,u=t.width/2),this.paddingLeft=Math.max((d-i+r)*this.width/(this.width-i),0),this.paddingRight=Math.max((u-c+r)*this.width/(this.width-c),0)}else{let n=t.height/2,o=e.height/2;"start"===a?(n=0,o=e.height):"end"===a&&(n=t.height,o=0),this.paddingTop=n+r,this.paddingBottom=o+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){dT(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)oT(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=JD(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length)}return e}_computeLabelSizes(e,t){const{ctx:n,_longestTextCache:o}=this,a=[],r=[];let i,s,l,c,d,u,p,h,m,f,g,v=0,_=0;for(i=0;i<t;++i){if(c=e[i].label,d=this._resolveTickFontOptions(i),n.font=u=d.string,p=o[u]=o[u]||{data:{},gc:[]},h=d.lineHeight,m=f=0,oT(c)||aT(c)){if(aT(c))for(s=0,l=c.length;s<l;++s)g=c[s],oT(g)||aT(g)||(m=JC(n,p.data,p.gc,m,g),f+=h)}else m=JC(n,p.data,p.gc,m,c),f=h;a.push(m),r.push(f),v=Math.max(m,v),_=Math.max(f,_)}!function(e,t){uT(e,(e=>{const n=e.gc,o=n.length/2;let a;if(o>t){for(a=0;a<o;++a)delete e.data[n[a]];n.splice(0,o)}}))}(o,t);const b=a.indexOf(v),y=r.indexOf(_),w=e=>({width:a[e]||0,height:r[e]||0});return{first:w(0),last:w(t-1),widest:w(b),highest:w(y),widths:a,heights:r}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return $T(this._alignToPixels?QC(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return yA(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=yA(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=YT(this.labelRotation),n=Math.abs(Math.cos(t)),o=Math.abs(Math.sin(t)),a=this._getLabelSizes(),r=e.autoSkipPadding||0,i=a?a.widest.width+r:0,s=a?a.highest.height+r:0;return this.isHorizontal()?s*n>i*o?i/n:s/o:s*o<i*n?s/n:i/o}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,o=this.options,{grid:a,position:r}=o,i=a.offset,s=this.isHorizontal(),l=this.ticks.length+(i?1:0),c=QD(a),d=[],u=a.setContext(this.getContext()),p=u.drawBorder?u.borderWidth:0,h=p/2,m=function(e){return QC(n,e,p)};let f,g,v,_,b,y,w,k,x,E,S,M;if("top"===r)f=m(this.bottom),y=this.bottom-c,k=f-h,E=m(e.top)+h,M=e.bottom;else if("bottom"===r)f=m(this.top),E=e.top,M=m(e.bottom)-h,y=f+h,k=this.top+c;else if("left"===r)f=m(this.right),b=this.right-c,w=f-h,x=m(e.left)+h,S=e.right;else if("right"===r)f=m(this.left),x=e.left,S=m(e.right)-h,b=f+h,w=this.left+c;else if("x"===t){if("center"===r)f=m((e.top+e.bottom)/2+.5);else if(rT(r)){const e=Object.keys(r)[0],t=r[e];f=m(this.chart.scales[e].getPixelForValue(t))}E=e.top,M=e.bottom,y=f+h,k=y+c}else if("y"===t){if("center"===r)f=m((e.left+e.right)/2);else if(rT(r)){const e=Object.keys(r)[0],t=r[e];f=m(this.chart.scales[e].getPixelForValue(t))}b=f-h,w=b-c,x=e.left,S=e.right}const T=lT(o.ticks.maxTicksLimit,l),C=Math.max(1,Math.ceil(l/T));for(g=0;g<l;g+=C){const e=a.setContext(this.getContext(g)),t=e.lineWidth,o=e.color,r=e.borderDash||[],l=e.borderDashOffset,c=e.tickWidth,u=e.tickColor,p=e.tickBorderDash||[],h=e.tickBorderDashOffset;v=XD(this,g,i),void 0!==v&&(_=QC(n,v,t),s?b=w=x=S=_:y=k=E=M=_,d.push({tx1:b,ty1:y,tx2:w,ty2:k,x1:x,y1:E,x2:S,y2:M,width:t,color:o,borderDash:r,borderDashOffset:l,tickWidth:c,tickColor:u,tickBorderDash:p,tickBorderDashOffset:h}))}return this._ticksLength=l,this._borderValue=f,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:o,ticks:a}=n,r=this.isHorizontal(),i=this.ticks,{align:s,crossAlign:l,padding:c,mirror:d}=a,u=QD(n.grid),p=u+c,h=d?-c:p,m=-YT(this.labelRotation),f=[];let g,v,_,b,y,w,k,x,E,S,M,T,C="middle";if("top"===o)w=this.bottom-h,k=this._getXAxisLabelAlignment();else if("bottom"===o)w=this.top+h,k=this._getXAxisLabelAlignment();else if("left"===o){const e=this._getYAxisLabelAlignment(u);k=e.textAlign,y=e.x}else if("right"===o){const e=this._getYAxisLabelAlignment(u);k=e.textAlign,y=e.x}else if("x"===t){if("center"===o)w=(e.top+e.bottom)/2+p;else if(rT(o)){const e=Object.keys(o)[0],t=o[e];w=this.chart.scales[e].getPixelForValue(t)+p}k=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===o)y=(e.left+e.right)/2-p;else if(rT(o)){const e=Object.keys(o)[0],t=o[e];y=this.chart.scales[e].getPixelForValue(t)}k=this._getYAxisLabelAlignment(u).textAlign}"y"===t&&("start"===s?C="top":"end"===s&&(C="bottom"));const A=this._getLabelSizes();for(g=0,v=i.length;g<v;++g){_=i[g],b=_.label;const e=a.setContext(this.getContext(g));x=this.getPixelForTick(g)+a.labelOffset,E=this._resolveTickFontOptions(g),S=E.lineHeight,M=aT(b)?b.length:1;const t=M/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let u,p=k;if(r?(y=x,"inner"===k&&(p=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),T="top"===o?"near"===l||0!==m?-M*S+S/2:"center"===l?-A.highest.height/2-t*S+S:-A.highest.height+S/2:"near"===l||0!==m?S/2:"center"===l?A.highest.height/2-t*S:A.highest.height-M*S,d&&(T*=-1)):(w=x,T=(1-M)*S/2),e.showLabelBackdrop){const t=vA(e.backdropPadding),n=A.heights[g],o=A.widths[g];let a=w+T-t.top,r=y-t.left;switch(C){case"middle":a-=n/2;break;case"bottom":a-=n}switch(k){case"center":r-=o/2;break;case"right":r-=o}u={left:r,top:a,width:o+t.width,height:n+t.height,color:e.backdropColor}}f.push({rotation:m,label:b,font:E,color:n,strokeColor:s,strokeWidth:c,textOffset:T,textAlign:p,textBaseline:C,translation:[y,w],backdrop:u})}return f}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-YT(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:o,padding:a}}=this.options,r=e+a,i=this._getLabelSizes().widest.width;let s,l;return"left"===t?o?(l=this.right+a,"near"===n?s="left":"center"===n?(s="center",l+=i/2):(s="right",l+=i)):(l=this.right-r,"near"===n?s="right":"center"===n?(s="center",l-=i/2):(s="left",l=this.left)):"right"===t?o?(l=this.left+a,"near"===n?s="right":"center"===n?(s="center",l-=i/2):(s="left",l-=i)):(l=this.left+r,"near"===n?s="left":"center"===n?(s="center",l+=i/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:o,width:a,height:r}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,o,a,r),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex((t=>t.value===e));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,r;const i=(e,t,o)=>{o.width&&o.color&&(n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.setLineDash(o.borderDash||[]),n.lineDashOffset=o.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(a=0,r=o.length;a<r;++a){const e=o[a];t.drawOnChartArea&&i({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&i({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{grid:n}}=this,o=n.setContext(this.getContext()),a=n.drawBorder?o.borderWidth:0;if(!a)return;const r=n.setContext(this.getContext(0)).lineWidth,i=this._borderValue;let s,l,c,d;this.isHorizontal()?(s=QC(e,this.left,a)-a/2,l=QC(e,this.right,r)+r/2,c=d=i):(c=QC(e,this.top,a)-a/2,d=QC(e,this.bottom,r)+r/2,s=l=i),t.save(),t.lineWidth=o.borderWidth,t.strokeStyle=o.borderColor,t.beginPath(),t.moveTo(s,c),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&oA(t,n);const o=this._labelItems||(this._labelItems=this._computeLabelItems(e));let a,r;for(a=0,r=o.length;a<r;++a){const e=o[a],n=e.font,r=e.label;e.backdrop&&(t.fillStyle=e.backdrop.color,t.fillRect(e.backdrop.left,e.backdrop.top,e.backdrop.width,e.backdrop.height)),sA(t,r,0,e.textOffset,n,e)}n&&aA(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:o}}=this;if(!n.display)return;const a=_A(n.font),r=vA(n.padding),i=n.align;let s=a.lineHeight/2;"bottom"===t||"center"===t||rT(t)?(s+=r.bottom,aT(n.text)&&(s+=a.lineHeight*(n.text.length-1))):s+=r.top;const{titleX:l,titleY:c,maxWidth:d,rotation:u}=function(e,t,n,o){const{top:a,left:r,bottom:i,right:s,chart:l}=e,{chartArea:c,scales:d}=l;let u,p,h,m=0;const f=i-a,g=s-r;if(e.isHorizontal()){if(p=aC(o,r,s),rT(n)){const e=Object.keys(n)[0],o=n[e];h=d[e].getPixelForValue(o)+f-t}else h="center"===n?(c.bottom+c.top)/2+f-t:KD(e,n,t);u=s-r}else{if(rT(n)){const e=Object.keys(n)[0],o=n[e];p=d[e].getPixelForValue(o)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:KD(e,n,t);h=aC(o,i,a),m="left"===n?-DT:DT}return{titleX:p,titleY:h,maxWidth:u,rotation:m}}(this,s,t,i);sA(e,n.text,0,0,a,{color:n.color,maxWidth:d,rotation:u,textAlign:eP(i,t,o),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=lT(e.grid&&e.grid.z,-1);return this._isVisible()&&this.draw===tP.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let a,r;for(a=0,r=t.length;a<r;++a){const r=t[a];r[n]!==this.id||e&&r.type!==e||o.push(r)}return o}_resolveTickFontOptions(e){return _A(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class nP{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const o=this.items,a=e.id,r=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in o||(o[a]=e,function(e,t,n){const o=gT(Object.create(null),[n?KC.get(n):{},KC.get(t),e.defaults]);KC.set(t,o),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((n=>{const o=n.split("."),a=o.pop(),r=[e].concat(o).join("."),i=t[n].split("."),s=i.pop(),l=i.join(".");KC.route(r,a,l,s)}))}(t,e.defaultRoutes),e.descriptors&&KC.describe(t,e.descriptors)}(e,r,n),this.override&&KC.override(e.id,e.overrides)),r}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,o=this.scope;n in t&&delete t[n],o&&n in KC[o]&&(delete KC[o][n],this.override&&delete WC[n])}}var oP=new class{constructor(){this.controllers=new nP(AD,"datasets",!0),this.elements=new nP(WD,"elements"),this.plugins=new nP(Object,"plugins"),this.scales=new nP(tP,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach((t=>{const o=n||this._getRegistryForType(t);n||o.isForType(t)||o===this.plugins&&t.id?this._exec(e,o,t):uT(t,(t=>{const o=n||this._getRegistryForType(t);this._exec(e,o,t)}))}))}_exec(e,t,n){const o=wT(e);dT(n["before"+o],[],n),t[e](n),dT(n["after"+o],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const o=t.get(e);if(void 0===o)throw new Error('"'+e+'" is not a registered '+n+".");return o}};class aP extends AD{update(e){const t=this._cachedMeta,{data:n=[]}=t,o=this.chart._animationsDisabled;let{start:a,count:r}=rC(t,n,o);if(this._drawStart=a,this._drawCount=r,iC(t)&&(a=0,r=n.length),this.options.showLine){const{dataset:a,_dataset:r}=t;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!r._decimated,a.points=n;const i=this.resolveDatasetElementOptions(e);i.segment=this.options.segment,this.updateElement(a,void 0,{animated:!o,options:i},e)}this.updateElements(n,a,r,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=oP.getElement("line")),super.addElements()}updateElements(e,t,n,o){const a="reset"===o,{iScale:r,vScale:i,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(t,o),d=this.getSharedOptions(c),u=this.includeOptions(o,d),p=r.axis,h=i.axis,{spanGaps:m,segment:f}=this.options,g=RT(m)?m:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||a||"none"===o;let _=t>0&&this.getParsed(t-1);for(let c=t;c<t+n;++c){const t=e[c],n=this.getParsed(c),m=v?t:{},b=oT(n[h]),y=m[p]=r.getPixelForValue(n[p],c),w=m[h]=a||b?i.getBasePixel():i.getPixelForValue(s?this.applyStack(i,n,s):n[h],c);m.skip=isNaN(y)||isNaN(w)||b,m.stop=c>0&&Math.abs(n[p]-_[p])>g,f&&(m.parsed=n,m.raw=l.data[c]),u&&(m.options=d||this.resolveDataElementOptions(c,t.active?"active":o)),v||this.updateElement(t,c,m,o),_=n}this.updateSharedOptions(d,o,c)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}const n=e.dataset,o=n.options&&n.options.borderWidth||0;if(!t.length)return o;const a=t[0].size(this.resolveDataElementOptions(0)),r=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(o,a,r)/2}}aP.id="scatter",aP.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},aP.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var rP=Object.freeze({__proto__:null,BarController:jD,BubbleController:YD,DoughnutController:zD,LineController:BD,PolarAreaController:HD,PieController:VD,RadarController:UD,ScatterController:aP});function iP(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class sP{constructor(e){this.options=e||{}}init(e){}formats(){return iP()}parse(e,t){return iP()}format(e,t){return iP()}add(e,t,n){return iP()}diff(e,t,n){return iP()}startOf(e,t,n){return iP()}endOf(e,t){return iP()}}sP.override=function(e){Object.assign(sP.prototype,e)};var lP={_date:sP};function cP(e,t,n,o){const{controller:a,data:r,_sorted:i}=e,s=a._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&i&&r.length){const e=s._reversePixels?XT:JT;if(!o)return e(r,t,n);if(a._sharedOptions){const o=r[0],a="function"==typeof o.getRange&&o.getRange(t);if(a){const o=e(r,t,n-a),i=e(r,t,n+a);return{lo:o.lo,hi:i.hi}}}}return{lo:0,hi:r.length-1}}function dP(e,t,n,o,a){const r=e.getSortedVisibleDatasetMetas(),i=n[t];for(let e=0,n=r.length;e<n;++e){const{index:n,data:s}=r[e],{lo:l,hi:c}=cP(r[e],t,i,a);for(let e=l;e<=c;++e){const t=s[e];t.skip||o(t,n,e)}}}function uP(e,t,n,o,a){const r=[];return a||e.isPointInArea(t)?(dP(e,n,t,(function(n,i,s){(a||nA(n,e.chartArea,0))&&n.inRange(t.x,t.y,o)&&r.push({element:n,datasetIndex:i,index:s})}),!0),r):r}function pP(e,t,n,o,a,r){return r||e.isPointInArea(t)?"r"!==n||o?function(e,t,n,o,a,r){let i=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,o){const a=t?Math.abs(e.x-o.x):0,r=n?Math.abs(e.y-o.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return dP(e,n,t,(function(n,c,d){const u=n.inRange(t.x,t.y,a);if(o&&!u)return;const p=n.getCenterPoint(a);if(!r&&!e.isPointInArea(p)&&!u)return;const h=s(t,p);h<l?(i=[{element:n,datasetIndex:c,index:d}],l=h):h===l&&i.push({element:n,datasetIndex:c,index:d})})),i}(e,t,n,o,a,r):function(e,t,n,o){let a=[];return dP(e,n,t,(function(e,n,r){const{startAngle:i,endAngle:s}=e.getProps(["startAngle","endAngle"],o),{angle:l}=HT(e,{x:t.x,y:t.y});qT(l,i,s)&&a.push({element:e,datasetIndex:n,index:r})})),a}(e,t,n,a):[]}function hP(e,t,n,o,a){const r=[],i="x"===n?"inXRange":"inYRange";let s=!1;return dP(e,n,t,((e,o,l)=>{e[i](t[n],a)&&(r.push({element:e,datasetIndex:o,index:l}),s=s||e.inRange(t.x,t.y,a))})),o&&!s?[]:r}var mP={evaluateInteractionItems:dP,modes:{index(e,t,n,o){const a=$A(t,e),r=n.axis||"x",i=n.includeInvisible||!1,s=n.intersect?uP(e,a,r,o,i):pP(e,a,r,!1,o,i),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset(e,t,n,o){const a=$A(t,e),r=n.axis||"xy",i=n.includeInvisible||!1;let s=n.intersect?uP(e,a,r,o,i):pP(e,a,r,!1,o,i);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,o)=>uP(e,$A(t,e),n.axis||"xy",o,n.includeInvisible||!1),nearest(e,t,n,o){const a=$A(t,e),r=n.axis||"xy",i=n.includeInvisible||!1;return pP(e,a,r,n.intersect,o,i)},x:(e,t,n,o)=>hP(e,$A(t,e),"x",n.intersect,o),y:(e,t,n,o)=>hP(e,$A(t,e),"y",n.intersect,o)}};const fP=["left","top","right","bottom"];function gP(e,t){return e.filter((e=>e.pos===t))}function vP(e,t){return e.filter((e=>-1===fP.indexOf(e.pos)&&e.box.axis===t))}function _P(e,t){return e.sort(((e,n)=>{const o=t?n:e,a=t?e:n;return o.weight===a.weight?o.index-a.index:o.weight-a.weight}))}function bP(e,t,n,o){return Math.max(e[n],t[n])+Math.max(e[o],t[o])}function yP(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function wP(e,t,n,o){const{pos:a,box:r}=n,i=e.maxPadding;if(!rT(a)){n.size&&(e[a]-=n.size);const t=o[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?r.height:r.width),n.size=t.size/t.count,e[a]+=n.size}r.getPadding&&yP(i,r.getPadding());const s=Math.max(0,t.outerWidth-bP(i,e,"left","right")),l=Math.max(0,t.outerHeight-bP(i,e,"top","bottom")),c=s!==e.w,d=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function kP(e,t){const n=t.maxPadding;return function(e){const o={left:0,top:0,right:0,bottom:0};return e.forEach((e=>{o[e]=Math.max(t[e],n[e])})),o}(e?["left","right"]:["top","bottom"])}function xP(e,t,n,o){const a=[];let r,i,s,l,c,d;for(r=0,i=e.length,c=0;r<i;++r){s=e[r],l=s.box,l.update(s.width||t.w,s.height||t.h,kP(s.horizontal,t));const{same:i,other:u}=wP(t,n,s,o);c|=i&&a.length,d=d||u,l.fullSize||a.push(s)}return c&&xP(a,t,n,o)||d}function EP(e,t,n,o,a){e.top=n,e.left=t,e.right=t+o,e.bottom=n+a,e.width=o,e.height=a}function SP(e,t,n,o){const a=n.padding;let{x:r,y:i}=t;for(const s of e){const e=s.box,l=o[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const o=t.w*c,r=l.size||e.height;kT(l.start)&&(i=l.start),e.fullSize?EP(e,a.left,i,n.outerWidth-a.right-a.left,r):EP(e,t.left+l.placed,i,o,r),l.start=i,l.placed+=o,i=e.bottom}else{const o=t.h*c,i=l.size||e.width;kT(l.start)&&(r=l.start),e.fullSize?EP(e,r,a.top,i,n.outerHeight-a.bottom-a.top):EP(e,r,t.top+l.placed,i,o),l.start=r,l.placed+=o,r=e.right}}t.x=r,t.y=i}KC.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var MP={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,o){if(!e)return;const a=vA(e.options.layout.padding),r=Math.max(t-a.width,0),i=Math.max(n-a.height,0),s=function(e){const t=function(e){const t=[];let n,o,a,r,i,s;for(n=0,o=(e||[]).length;n<o;++n)a=e[n],({position:r,options:{stack:i,stackWeight:s=1}}=a),t.push({index:n,box:a,pos:r,horizontal:a.isHorizontal(),weight:a.weight,stack:i&&r+i,stackWeight:s});return t}(e),n=_P(t.filter((e=>e.box.fullSize)),!0),o=_P(gP(t,"left"),!0),a=_P(gP(t,"right")),r=_P(gP(t,"top"),!0),i=_P(gP(t,"bottom")),s=vP(t,"x"),l=vP(t,"y");return{fullSize:n,leftAndTop:o.concat(r),rightAndBottom:a.concat(l).concat(i).concat(s),chartArea:gP(t,"chartArea"),vertical:o.concat(a).concat(l),horizontal:r.concat(i).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;uT(e.boxes,(e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()}));const d=l.reduce(((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1),0)||1,u=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:r,availableHeight:i,vBoxMaxWidth:r/2/d,hBoxMaxHeight:i/2}),p=Object.assign({},a);yP(p,vA(o));const h=Object.assign({maxPadding:p,w:r,h:i,x:a.left,y:a.top},a),m=function(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:o,stackWeight:a}=n;if(!e||!fP.includes(o))continue;const r=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=a}return t}(e),{vBoxMaxWidth:o,hBoxMaxHeight:a}=t;let r,i,s;for(r=0,i=e.length;r<i;++r){s=e[r];const{fullSize:i}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*o:i&&t.availableWidth,s.height=a):(s.width=o,s.height=c?c*a:i&&t.availableHeight)}return n}(l.concat(c),u);xP(s.fullSize,h,u,m),xP(l,h,u,m),xP(c,h,u,m)&&xP(l,h,u,m),function(e){const t=e.maxPadding;function n(n){const o=Math.max(t[n]-e[n],0);return e[n]+=o,o}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),SP(s.leftAndTop,h,u,m),h.x+=h.w,h.y+=h.h,SP(s.rightAndBottom,h,u,m),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},uT(s.chartArea,(t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class TP{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,o){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,o?Math.floor(t/o):n)}}isAttached(e){return!0}updateConfig(e){}}class CP extends TP{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const AP="$chartjs",DP={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},PP=e=>null===e||""===e,LP=!!JA&&{passive:!0};function NP(e,t,n){e.canvas.removeEventListener(t,n,LP)}function IP(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function OP(e,t,n){const o=e.canvas,a=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||IP(n.addedNodes,o),t=t&&!IP(n.removedNodes,o);t&&n()}));return a.observe(document,{childList:!0,subtree:!0}),a}function RP(e,t,n){const o=e.canvas,a=new MutationObserver((e=>{let t=!1;for(const n of e)t=t||IP(n.removedNodes,o),t=t&&!IP(n.addedNodes,o);t&&n()}));return a.observe(document,{childList:!0,subtree:!0}),a}const FP=new Map;let jP=0;function YP(){const e=window.devicePixelRatio;e!==jP&&(jP=e,FP.forEach(((t,n)=>{n.currentDevicePixelRatio!==e&&t()})))}function zP(e,t,n){const o=e.canvas,a=o&&HA(o);if(!a)return;const r=nC(((e,t)=>{const o=a.clientWidth;n(e,t),o<a.clientWidth&&n()}),window),i=new ResizeObserver((e=>{const t=e[0],n=t.contentRect.width,o=t.contentRect.height;0===n&&0===o||r(n,o)}));return i.observe(a),function(e,t){FP.size||window.addEventListener("resize",YP),FP.set(e,t)}(e,r),i}function BP(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){FP.delete(e),FP.size||window.removeEventListener("resize",YP)}(e)}function HP(e,t,n){const o=e.canvas,a=nC((t=>{null!==e.ctx&&n(function(e,t){const n=DP[e.type]||e.type,{x:o,y:a}=$A(e,t);return{type:n,chart:t,native:e,x:void 0!==o?o:null,y:void 0!==a?a:null}}(t,e))}),e,(e=>{const t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,LP)}(o,t,a),a}class VP extends TP{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,o=e.getAttribute("height"),a=e.getAttribute("width");if(e[AP]={initial:{height:o,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",PP(a)){const t=XA(e,"width");void 0!==t&&(e.width=t)}if(PP(o))if(""===e.style.height)e.height=e.width/(t||2);else{const t=XA(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[AP])return!1;const n=t[AP].initial;["height","width"].forEach((e=>{const o=n[e];oT(o)?t.removeAttribute(e):t.setAttribute(e,o)}));const o=n.style||{};return Object.keys(o).forEach((e=>{t.style[e]=o[e]})),t.width=t.width,delete t[AP],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const o=e.$proxies||(e.$proxies={}),a={attach:OP,detach:RP,resize:zP}[t]||HP;o[t]=a(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),o=n[t];o&&(({attach:BP,detach:BP,resize:BP}[t]||NP)(e,t,o),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,o){return function(e,t,n,o){const a=UA(e),r=qA(a,"margin"),i=VA(a.maxWidth,e,"clientWidth")||CT,s=VA(a.maxHeight,e,"clientHeight")||CT,l=function(e,t,n){let o,a;if(void 0===t||void 0===n){const r=HA(e);if(r){const e=r.getBoundingClientRect(),i=UA(r),s=qA(i,"border","width"),l=qA(i,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,o=VA(i.maxWidth,r,"clientWidth"),a=VA(i.maxHeight,r,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:o||CT,maxHeight:a||CT}}(e,t,n);let{width:c,height:d}=l;if("content-box"===a.boxSizing){const e=qA(a,"border","width"),t=qA(a,"padding");c-=t.width+e.width,d-=t.height+e.height}return c=Math.max(0,c-r.width),d=Math.max(0,o?Math.floor(c/o):d-r.height),c=GA(Math.min(c,i,l.maxWidth)),d=GA(Math.min(d,s,l.maxHeight)),c&&!d&&(d=GA(c/2)),{width:c,height:d}}(e,t,n,o)}isAttached(e){const t=HA(e);return!(!t||!t.isConnected)}}class UP{constructor(){this._init=[]}notify(e,t,n,o){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const a=o?this._descriptors(e).filter(o):this._descriptors(e),r=this._notify(a,e,t,n);return"afterDestroy"===t&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall")),r}_notify(e,t,n,o){o=o||{};for(const a of e){const e=a.plugin;if(!1===dT(e[n],[t,o,a.options],e)&&o.cancelable)return!1}return!0}invalidate(){oT(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,o=lT(n.options&&n.options.plugins,{}),a=function(e){const t={},n=[],o=Object.keys(oP.plugins.items);for(let e=0;e<o.length;e++)n.push(oP.getPlugin(o[e]));const a=e.plugins||[];for(let e=0;e<a.length;e++){const o=a[e];-1===n.indexOf(o)&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==o||t?function(e,{plugins:t,localIds:n},o,a){const r=[],i=e.getContext();for(const s of t){const t=s.id,l=WP(o[t],a);null!==l&&r.push({plugin:s,options:qP(e.config,{plugin:s,local:n[t]},l,i)})}return r}(e,a,o,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,o=(e,t)=>e.filter((e=>!t.some((t=>e.plugin.id===t.plugin.id))));this._notify(o(t,n),e,"stop"),this._notify(o(n,t),e,"start")}}function WP(e,t){return t||!1!==e?!0===e?{}:e:null}function qP(e,{plugin:t,local:n},o,a){const r=e.pluginScopeKeys(t),i=e.getOptionScopes(o,r);return n&&t.defaults&&i.push(t.defaults),e.createResolver(i,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function $P(e,t){const n=KC.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function GP(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function KP(e){const t=e.options||(e.options={});t.plugins=lT(t.plugins,{}),t.scales=function(e,t){const n=WC[e.type]||{scales:{}},o=t.scales||{},a=$P(e.type,t),r=Object.create(null),i=Object.create(null);return Object.keys(o).forEach((e=>{const t=o[e];if(!rT(t))return console.error(`Invalid scale configuration for scale: ${e}`);if(t._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=GP(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,a),c=n.scales||{};r[s]=r[s]||e,i[e]=vT(Object.create(null),[{axis:s},t,c[s],c[l]])})),e.data.datasets.forEach((n=>{const a=n.type||e.type,s=n.indexAxis||$P(a,t),l=(WC[a]||{}).scales||{};Object.keys(l).forEach((e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),a=n[t+"AxisID"]||r[t]||t;i[a]=i[a]||Object.create(null),vT(i[a],[{axis:t},o[a],l[e]])}))})),Object.keys(i).forEach((e=>{const t=i[e];vT(t,[KC.scales[t.type],KC.scale])})),i}(e,t)}function JP(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const XP=new Map,QP=new Set;function ZP(e,t){let n=XP.get(e);return n||(n=t(),XP.set(e,n),QP.add(n)),n}const eL=(e,t,n)=>{const o=yT(t,n);void 0!==o&&e.add(o)};class tL{constructor(e){this._config=function(e){return(e=e||{}).data=JP(e.data),KP(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=JP(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),KP(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ZP(e,(()=>[[`datasets.${e}`,""]]))}datasetAnimationScopeKeys(e,t){return ZP(`${e}.transition.${t}`,(()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]]))}datasetElementScopeKeys(e,t){return ZP(`${e}-${t}`,(()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]]))}pluginScopeKeys(e){const t=e.id;return ZP(`${this.type}-plugin-${t}`,(()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]]))}_cachedScopes(e,t){const n=this._scopeCache;let o=n.get(e);return o&&!t||(o=new Map,n.set(e,o)),o}getOptionScopes(e,t,n){const{options:o,type:a}=this,r=this._cachedScopes(e,n),i=r.get(t);if(i)return i;const s=new Set;t.forEach((t=>{e&&(s.add(e),t.forEach((t=>eL(s,e,t)))),t.forEach((e=>eL(s,o,e))),t.forEach((e=>eL(s,WC[a]||{},e))),t.forEach((e=>eL(s,KC,e))),t.forEach((e=>eL(s,qC,e)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),QP.has(t)&&r.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,WC[t]||{},KC.datasets[t]||{},{type:t},KC,qC]}resolveNamedOptions(e,t,n,o=[""]){const a={$shared:!0},{resolver:r,subPrefixes:i}=nL(this._resolverCache,e,o);let s=r;(function(e,t){const{isScriptable:n,isIndexable:o}=xA(e);for(const a of t){const t=n(a),r=o(a),i=(r||t)&&e[a];if(t&&(xT(i)||oL(i))||r&&aT(i))return!0}return!1})(r,t)&&(a.$shared=!1,s=kA(r,n=xT(n)?n():n,this.createResolver(e,n,i)));for(const e of t)a[e]=s[e];return a}createResolver(e,t,n=[""],o){const{resolver:a}=nL(this._resolverCache,e,n);return rT(t)?kA(a,t,void 0,o):a}}function nL(e,t,n){let o=e.get(t);o||(o=new Map,e.set(t,o));const a=n.join();let r=o.get(a);return r||(r={resolver:wA(t,n),subPrefixes:n.filter((e=>!e.toLowerCase().includes("hover")))},o.set(a,r)),r}const oL=e=>rT(e)&&Object.getOwnPropertyNames(e).reduce(((t,n)=>t||xT(e[n])),!1),aL=["top","bottom","left","right","chartArea"];function rL(e,t){return"top"===e||"bottom"===e||-1===aL.indexOf(e)&&"x"===t}function iL(e,t){return function(n,o){return n[e]===o[e]?n[t]-o[t]:n[e]-o[e]}}function sL(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),dT(n&&n.onComplete,[e],t)}function lL(e){const t=e.chart,n=t.options.animation;dT(n&&n.onProgress,[e],t)}function cL(e){return BA()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const dL={},uL=e=>{const t=cL(e);return Object.values(dL).filter((e=>e.canvas===t)).pop()};function pL(e,t,n){const o=Object.keys(e);for(const a of o){const o=+a;if(o>=t){const r=e[a];delete e[a],(n>0||o>t)&&(e[o+n]=r)}}}class hL{constructor(e,t){const n=this.config=new tL(t),o=cL(e),a=uL(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!BA()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?CP:VP}(o)),this.platform.updateConfig(n);const i=this.platform.acquireContext(o,r.aspectRatio),s=i&&i.canvas,l=s&&s.height,c=s&&s.width;this.id=nT(),this.ctx=i,this.canvas=s,this.width=c,this.height=l,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new UP,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...o){return t?(clearTimeout(n),n=setTimeout(e,t,o)):e.apply(this,o),t}}((e=>this.update(e)),r.resizeDelay||0),this._dataChanges=[],dL[this.id]=this,i&&s?(pD.listen(this,"complete",sL),pD.listen(this,"progress",lL),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:o,_aspectRatio:a}=this;return oT(e)?t&&a?a:o?n/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():KA(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ZC(this.canvas,this.ctx),this}stop(){return pD.stop(this),this}resize(e,t){pD.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,o=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(o,e,t,a),i=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,KA(this,i,!0)&&(this.notifyPlugins("resize",{size:r}),dT(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){uT(this.options.scales||{},((e,t)=>{e.id=t}))}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,o=Object.keys(n).reduce(((e,t)=>(e[t]=!1,e)),{});let a=[];t&&(a=a.concat(Object.keys(t).map((e=>{const n=t[e],o=GP(e,n),a="r"===o,r="x"===o;return{options:n,dposition:a?"chartArea":r?"bottom":"left",dtype:a?"radialLinear":r?"category":"linear"}})))),uT(a,(t=>{const a=t.options,r=a.id,i=GP(r,a),s=lT(a.type,t.dtype);void 0!==a.position&&rL(a.position,i)===rL(t.dposition)||(a.position=t.dposition),o[r]=!0;let l=null;r in n&&n[r].type===s?l=n[r]:(l=new(oP.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(a,e)})),uT(o,((e,t)=>{e||delete n[t]})),uT(n,(e=>{MP.configure(this,e,e.options),MP.addBox(this,e)}))}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort(((e,t)=>e.index-t.index)),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(iL("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach(((e,n)=>{0===t.filter((t=>t===e._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=t.length;n<o;n++){const o=t[n];let a=this.getDatasetMeta(n);const r=o.type||this.config.type;if(a.type&&a.type!==r&&(this._destroyDatasetMeta(n),a=this.getDatasetMeta(n)),a.type=r,a.indexAxis=o.indexAxis||$P(r,this.options),a.order=o.order||0,a.index=n,a.label=""+o.label,a.visible=this.isDatasetVisible(n),a.controller)a.controller.updateIndex(n),a.controller.linkScales();else{const t=oP.getController(r),{datasetElementType:o,dataElementType:i}=KC.datasets[r];Object.assign(t.prototype,{dataElementType:oP.getElement(i),datasetElementType:o&&oP.getElement(o)}),a.controller=new t(this,n),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){uT(this.data.datasets,((e,t)=>{this.getDatasetMeta(t).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!o&&-1===a.indexOf(t);t.buildOrUpdateElements(n),r=Math.max(+t.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),o||uT(a,(e=>{e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(iL("z","_idx"));const{_active:i,_lastEvent:s}=this;s?this._eventHandler(s,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){uT(this.scales,(e=>{MP.removeBox(this,e)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);ET(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:a}of t)pL(e,o,"_removeElements"===n?-a:a)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter((e=>e[0]===t)).map(((e,t)=>t+","+e.splice(1).join(",")))),o=n(0);for(let e=1;e<t;e++)if(!ET(o,n(e)))return;return Array.from(o).map((e=>e.split(","))).map((e=>({method:e[1],start:+e[2],count:+e[3]})))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;MP.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],uT(this.boxes,(e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))}),this),this._layers.forEach(((e,t)=>{e._idx=t})),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,xT(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),o={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",o)&&(n.controller._update(t),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(pD.has(this)?this.attached&&!pD.running(this)&&pD.start(this):(this.draw(),sL({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resize(e,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let o,a;for(o=0,a=t.length;o<a;++o){const a=t[o];e&&!a.visible||n.push(a)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,o=!n.disabled,a=this.chartArea,r={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&oA(t,{left:!1===n.left?0:a.left-n.left,right:!1===n.right?this.width:a.right+n.right,top:!1===n.top?0:a.top-n.top,bottom:!1===n.bottom?this.height:a.bottom+n.bottom}),e.controller.draw(),o&&aA(t),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return nA(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,o){const a=mP.modes[t];return"function"==typeof a?a(this,e,n,o):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let o=n.filter((e=>e&&e._dataset===t)).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=yA(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const o=n?"show":"hide",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,o);kT(t)?(a.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),r.update(a,{visible:n}),this.update((t=>t.datasetIndex===e?o:void 0)))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),pD.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),ZC(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete dL[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};uT(this.options.events,(e=>n(e,o)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,o)=>{t.addEventListener(this,n,o),e[n]=o},o=(n,o)=>{e[n]&&(t.removeEventListener(this,n,o),delete e[n])},a=(e,t)=>{this.canvas&&this.resize(e,t)};let r;const i=()=>{o("attach",i),this.attached=!0,this.resize(),n("resize",a),n("detach",r)};r=()=>{this.attached=!1,o("resize",a),this._stop(),this._resize(0,0),n("attach",i)},t.isAttached(this.canvas)?i():r()}unbindEvents(){uT(this._listeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._listeners={},uT(this._responsiveListeners,((e,t)=>{this.platform.removeEventListener(this,t,e)})),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const o=n?"set":"remove";let a,r,i,s;for("dataset"===t&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+o+"DatasetHoverStyle"]()),i=0,s=e.length;i<s;++i){r=e[i];const t=r&&this.getDatasetMeta(r.datasetIndex).controller;t&&t[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map((({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}));!pT(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}_updateHoverStyles(e,t,n){const o=this.options.hover,a=(e,t)=>e.filter((e=>!t.some((t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)))),r=a(t,e),i=n?e:a(e,t);r.length&&this.updateHoverStyle(r,o.mode,!1),i.length&&o.mode&&this.updateHoverStyle(i,o.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},o=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const a=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(a||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:o=[],options:a}=this,r=t,i=this._getActiveElements(e,o,n,r),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,o){return n&&"mouseout"!==e.type?o?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,dT(a.onHover,[e,i,this],this),s&&dT(a.onClick,[e,i,this],this));const c=!pT(i,o);return(c||t)&&(this._active=i,this._updateHoverStyles(i,o,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,o){if("mouseout"===e.type)return[];if(!n)return t;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,o)}}const mL=()=>uT(hL.instances,(e=>e._plugins.invalidate())),fL=!0;function gL(e,t,n){const{startAngle:o,pixelMargin:a,x:r,y:i,outerRadius:s,innerRadius:l}=t;let c=a/s;e.beginPath(),e.arc(r,i,s,o-c,n+c),l>a?(c=a/l,e.arc(r,i,l,n+c,o-c,!0)):e.arc(r,i,a,n+DT,o-DT),e.closePath(),e.clip()}function vL(e,t,n,o){return{x:n+e*Math.cos(t),y:o+e*Math.sin(t)}}function _L(e,t,n,o,a,r){const{x:i,y:s,startAngle:l,pixelMargin:c,innerRadius:d}=t,u=Math.max(t.outerRadius+o+n-c,0),p=d>0?d+o+n+c:0;let h=0;const m=a-l;if(o){const e=((d>0?d-o:0)+(u>0?u-o:0))/2;h=(m-(0!==e?m*e/(e+o):m))/2}const f=(m-Math.max(.001,m*u-n/ST)/u)/2,g=l+f+h,v=a-f-h,{outerStart:_,outerEnd:b,innerStart:y,innerEnd:w}=function(e,t,n,o){const a=mA(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),r=(n-t)/2,i=Math.min(r,o*t/2),s=e=>{const t=(n-Math.min(r,e))*o/2;return $T(e,0,Math.min(r,t))};return{outerStart:s(a.outerStart),outerEnd:s(a.outerEnd),innerStart:$T(a.innerStart,0,i),innerEnd:$T(a.innerEnd,0,i)}}(t,p,u,v-g),k=u-_,x=u-b,E=g+_/k,S=v-b/x,M=p+y,T=p+w,C=g+y/M,A=v-w/T;if(e.beginPath(),r){if(e.arc(i,s,u,E,S),b>0){const t=vL(x,S,i,s);e.arc(t.x,t.y,b,S,v+DT)}const t=vL(T,v,i,s);if(e.lineTo(t.x,t.y),w>0){const t=vL(T,A,i,s);e.arc(t.x,t.y,w,v+DT,A+Math.PI)}if(e.arc(i,s,p,v-w/p,g+y/p,!0),y>0){const t=vL(M,C,i,s);e.arc(t.x,t.y,y,C+Math.PI,g-DT)}const n=vL(k,g,i,s);if(e.lineTo(n.x,n.y),_>0){const t=vL(k,E,i,s);e.arc(t.x,t.y,_,g-DT,E)}}else{e.moveTo(i,s);const t=Math.cos(E)*u+i,n=Math.sin(E)*u+s;e.lineTo(t,n);const o=Math.cos(S)*u+i,a=Math.sin(S)*u+s;e.lineTo(o,a)}e.closePath()}Object.defineProperties(hL,{defaults:{enumerable:fL,value:KC},instances:{enumerable:fL,value:dL},overrides:{enumerable:fL,value:WC},registry:{enumerable:fL,value:oP},version:{enumerable:fL,value:"3.9.1"},getChart:{enumerable:fL,value:uL},register:{enumerable:fL,value:(...e)=>{oP.add(...e),mL()}},unregister:{enumerable:fL,value:(...e)=>{oP.remove(...e),mL()}}});class bL extends WD{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.getProps(["x","y"],n),{angle:a,distance:r}=HT(o,{x:e,y:t}),{startAngle:i,endAngle:s,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),u=this.options.spacing/2,p=lT(d,s-i)>=MT||qT(a,i,s),h=GT(r,l+u,c+u);return p&&h}getCenterPoint(e){const{x:t,y:n,startAngle:o,endAngle:a,innerRadius:r,outerRadius:i}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:l}=this.options,c=(o+a)/2,d=(r+i+l+s)/2;return{x:t+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,o=(t.offset||0)/2,a=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>MT?Math.floor(n/MT):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();let i=0;if(o){i=o/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*i,Math.sin(t)*i),this.circumference>=ST&&(i=o)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const s=function(e,t,n,o,a){const{fullCircles:r,startAngle:i,circumference:s}=t;let l=t.endAngle;if(r){_L(e,t,n,o,i+MT,a);for(let t=0;t<r;++t)e.fill();isNaN(s)||(l=i+s%MT,s%MT==0&&(l+=MT))}return _L(e,t,n,o,l,a),e.fill(),l}(e,this,i,a,r);(function(e,t,n,o,a,r){const{options:i}=t,{borderWidth:s,borderJoinStyle:l}=i,c="inner"===i.borderAlign;s&&(c?(e.lineWidth=2*s,e.lineJoin=l||"round"):(e.lineWidth=s,e.lineJoin=l||"bevel"),t.fullCircles&&function(e,t,n){const{x:o,y:a,startAngle:r,pixelMargin:i,fullCircles:s}=t,l=Math.max(t.outerRadius-i,0),c=t.innerRadius+i;let d;for(n&&gL(e,t,r+MT),e.beginPath(),e.arc(o,a,c,r+MT,r,!0),d=0;d<s;++d)e.stroke();for(e.beginPath(),e.arc(o,a,l,r,r+MT),d=0;d<s;++d)e.stroke()}(e,t,c),c&&gL(e,t,a),_L(e,t,n,o,a,r),e.stroke())})(e,this,i,a,s,r),e.restore()}}function yL(e,t,n=t){e.lineCap=lT(n.borderCapStyle,t.borderCapStyle),e.setLineDash(lT(n.borderDash,t.borderDash)),e.lineDashOffset=lT(n.borderDashOffset,t.borderDashOffset),e.lineJoin=lT(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=lT(n.borderWidth,t.borderWidth),e.strokeStyle=lT(n.borderColor,t.borderColor)}function wL(e,t,n){e.lineTo(n.x,n.y)}function kL(e,t,n={}){const o=e.length,{start:a=0,end:r=o-1}=n,{start:i,end:s}=t,l=Math.max(a,i),c=Math.min(r,s),d=a<i&&r<i||a>s&&r>s;return{count:o,start:l,loop:t.loop,ilen:c<l&&!d?o+c-l:c-l}}function xL(e,t,n,o){const{points:a,options:r}=t,{count:i,start:s,loop:l,ilen:c}=kL(a,n,o),d=function(e){return e.stepped?rA:e.tension||"monotone"===e.cubicInterpolationMode?iA:wL}(r);let u,p,h,{move:m=!0,reverse:f}=o||{};for(u=0;u<=c;++u)p=a[(s+(f?c-u:u))%i],p.skip||(m?(e.moveTo(p.x,p.y),m=!1):d(e,h,p,f,r.stepped),h=p);return l&&(p=a[(s+(f?c:0))%i],d(e,h,p,f,r.stepped)),!!l}function EL(e,t,n,o){const a=t.points,{count:r,start:i,ilen:s}=kL(a,n,o),{move:l=!0,reverse:c}=o||{};let d,u,p,h,m,f,g=0,v=0;const _=e=>(i+(c?s-e:e))%r,b=()=>{h!==m&&(e.lineTo(g,m),e.lineTo(g,h),e.lineTo(g,f))};for(l&&(u=a[_(0)],e.moveTo(u.x,u.y)),d=0;d<=s;++d){if(u=a[_(d)],u.skip)continue;const t=u.x,n=u.y,o=0|t;o===p?(n<h?h=n:n>m&&(m=n),g=(v*g+t)/++v):(b(),e.lineTo(t,n),p=o,v=0,h=m=n),f=n}b()}function SL(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||n?xL:EL}bL.id="arc",bL.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},bL.defaultRoutes={backgroundColor:"backgroundColor"};const ML="function"==typeof Path2D;class TL extends WD{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const o=n.spanGaps?this._loop:this._fullLoop;zA(this._points,n,e,o,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const n=e.points,o=e.options.spanGaps,a=n.length;if(!a)return[];const r=!!e._loop,{start:i,end:s}=function(e,t,n,o){let a=0,r=t-1;if(n&&!o)for(;a<t&&!e[a].skip;)a++;for(;a<t&&e[a].skip;)a++;for(a%=t,n&&(r+=a);r>a&&e[r%t].skip;)r--;return r%=t,{start:a,end:r}}(n,a,r,o);return function(e,t,n,o){return o&&o.setContext&&n?function(e,t,n,o){const a=e._chart.getContext(),r=dD(e.options),{_datasetIndex:i,options:{spanGaps:s}}=e,l=n.length,c=[];let d=r,u=t[0].start,p=u;function h(e,t,o,a){const r=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=r;for(;n[t%l].skip;)t+=r;e%l!=t%l&&(c.push({start:e%l,end:t%l,loop:o,style:a}),d=a,u=t%l)}}for(const e of t){u=s?u:e.start;let t,r=n[u%l];for(p=u+1;p<=e.end;p++){const s=n[p%l];t=dD(o.setContext(yA(a,{type:"segment",p0:r,p1:s,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:i}))),uD(t,d)&&h(u,p-1,e.loop,d),r=s,d=t}u<p-1&&h(u,p-1,e.loop,d)}return c}(e,t,n,o):t}(e,!0===o?[{start:i,end:s,loop:r}]:function(e,t,n,o){const a=e.length,r=[];let i,s=t,l=e[t];for(i=t+1;i<=n;++i){const n=e[i%a];n.skip||n.stop?l.skip||(o=!1,r.push({start:t%a,end:(i-1)%a,loop:o}),t=s=n.stop?i:null):(s=i,l.skip&&(t=i)),l=n}return null!==s&&r.push({start:t%a,end:s%a,loop:o}),r}(n,i,s<i?s+a:s,!!e._fullLoop&&0===i&&s===a-1),n,t)}(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,o=e[t],a=this.points,r=cD(this,{property:t,start:o,end:o});if(!r.length)return;const i=[],s=function(e){return e.stepped?ZA:e.tension||"monotone"===e.cubicInterpolationMode?eD:QA}(n);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:d}=r[l],u=a[c],p=a[d];if(u===p){i.push(u);continue}const h=s(u,p,Math.abs((o-u[t])/(p[t]-u[t])),n.stepped);h[t]=e[t],i.push(h)}return 1===i.length?i[0]:i}pathSegment(e,t,n){return SL(this)(e,this,t,n)}path(e,t,n){const o=this.segments,a=SL(this);let r=this._loop;t=t||0,n=n||this.points.length-t;for(const i of o)r&=a(e,this,i,{start:t,end:t+n-1});return!!r}draw(e,t,n,o){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),function(e,t,n,o){ML&&!t.options.segment?function(e,t,n,o){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,o)&&a.closePath()),yL(e,t.options),e.stroke(a)}(e,t,n,o):function(e,t,n,o){const{segments:a,options:r}=t,i=SL(t);for(const s of a)yL(e,r,s.style),e.beginPath(),i(e,t,s,{start:n,end:n+o-1})&&e.closePath(),e.stroke()}(e,t,n,o)}(e,this,n,o),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function CL(e,t,n,o){const a=e.options,{[n]:r}=e.getProps([n],o);return Math.abs(t-r)<a.radius+a.hitRadius}TL.id="line",TL.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},TL.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},TL.descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};class AL extends WD{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,n){const o=this.options,{x:a,y:r}=this.getProps(["x","y"],n);return Math.pow(e-a,2)+Math.pow(t-r,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(e,t){return CL(this,e,"x",t)}inYRange(e,t){return CL(this,e,"y",t)}getCenterPoint(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}size(e){let t=(e=e||this.options||{}).radius||0;return t=Math.max(t,t&&e.hoverRadius||0),2*(t+(t&&e.borderWidth||0))}draw(e,t){const n=this.options;this.skip||n.radius<.1||!nA(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,eA(e,n,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function DL(e,t){const{x:n,y:o,base:a,width:r,height:i}=e.getProps(["x","y","base","width","height"],t);let s,l,c,d,u;return e.horizontal?(u=i/2,s=Math.min(n,a),l=Math.max(n,a),c=o-u,d=o+u):(u=r/2,s=n-u,l=n+u,c=Math.min(o,a),d=Math.max(o,a)),{left:s,top:c,right:l,bottom:d}}function PL(e,t,n,o){return e?0:$T(t,n,o)}function LL(e,t,n,o){const a=null===t,r=null===n,i=e&&!(a&&r)&&DL(e,o);return i&&(a||GT(t,i.left,i.right))&&(r||GT(n,i.top,i.bottom))}function NL(e,t){e.rect(t.x,t.y,t.w,t.h)}function IL(e,t,n={}){const o=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,r=(e.x+e.w!==n.x+n.w?t:0)-o,i=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+o,y:e.y+a,w:e.w+r,h:e.h+i,radius:e.radius}}AL.id="point",AL.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},AL.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class OL extends WD{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:o}}=this,{inner:a,outer:r}=function(e){const t=DL(e),n=t.right-t.left,o=t.bottom-t.top,a=function(e,t,n){const o=e.options.borderWidth,a=e.borderSkipped,r=fA(o);return{t:PL(a.top,r.top,0,n),r:PL(a.right,r.right,0,t),b:PL(a.bottom,r.bottom,0,n),l:PL(a.left,r.left,0,t)}}(e,n/2,o/2),r=function(e,t,n){const{enableBorderRadius:o}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,r=gA(a),i=Math.min(t,n),s=e.borderSkipped,l=o||rT(a);return{topLeft:PL(!l||s.top||s.left,r.topLeft,0,i),topRight:PL(!l||s.top||s.right,r.topRight,0,i),bottomLeft:PL(!l||s.bottom||s.left,r.bottomLeft,0,i),bottomRight:PL(!l||s.bottom||s.right,r.bottomRight,0,i)}}(e,n/2,o/2);return{outer:{x:t.left,y:t.top,w:n,h:o,radius:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:o-a.t-a.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,r.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(a.b,a.r))}}}}(this),i=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?cA:NL;var s;e.save(),r.w===a.w&&r.h===a.h||(e.beginPath(),i(e,IL(r,t,a)),e.clip(),i(e,IL(a,-t,r)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),i(e,IL(a,t)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,t,n){return LL(this,e,t,n)}inXRange(e,t){return LL(this,e,null,t)}inYRange(e,t){return LL(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:o,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(t+o)/2:t,y:a?n:(n+o)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}OL.id="bar",OL.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},OL.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var RL=Object.freeze({__proto__:null,ArcElement:bL,LineElement:TL,PointElement:AL,BarElement:OL});function FL(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function jL(e){e.data.datasets.forEach((e=>{FL(e)}))}var YL={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled)return void jL(e);const o=e.width;e.data.datasets.forEach(((t,a)=>{const{_data:r,indexAxis:i}=t,s=e.getDatasetMeta(a),l=r||t.data;if("y"===bA([i,e.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=e.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let d,{start:u,count:p}=function(e,t){const n=t.length;let o,a=0;const{iScale:r}=e,{min:i,max:s,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(a=$T(JT(t,r.axis,i).lo,0,n-1)),o=c?$T(JT(t,r.axis,s).hi+1,a,n)-a:n-a,{start:a,count:o}}(s,l);if(p<=(n.threshold||4*o))FL(t);else{switch(oT(r)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":d=function(e,t,n,o,a){const r=a.samples||o;if(r>=n)return e.slice(t,t+n);const i=[],s=(n-2)/(r-2);let l=0;const c=t+n-1;let d,u,p,h,m,f=t;for(i[l++]=e[f],d=0;d<r-2;d++){let o,a=0,r=0;const c=Math.floor((d+1)*s)+1+t,g=Math.min(Math.floor((d+2)*s)+1,n)+t,v=g-c;for(o=c;o<g;o++)a+=e[o].x,r+=e[o].y;a/=v,r/=v;const _=Math.floor(d*s)+1+t,b=Math.min(Math.floor((d+1)*s)+1,n)+t,{x:y,y:w}=e[f];for(p=h=-1,o=_;o<b;o++)h=.5*Math.abs((y-a)*(e[o].y-w)-(y-e[o].x)*(r-w)),h>p&&(p=h,u=e[o],m=o);i[l++]=u,f=m}return i[l++]=e[c],i}(l,u,p,o,n);break;case"min-max":d=function(e,t,n,o){let a,r,i,s,l,c,d,u,p,h,m=0,f=0;const g=[],v=t+n-1,_=e[t].x,b=e[v].x-_;for(a=t;a<t+n;++a){r=e[a],i=(r.x-_)/b*o,s=r.y;const t=0|i;if(t===l)s<p?(p=s,c=a):s>h&&(h=s,d=a),m=(f*m+r.x)/++f;else{const n=a-1;if(!oT(c)&&!oT(d)){const t=Math.min(c,d),o=Math.max(c,d);t!==u&&t!==n&&g.push({...e[t],x:m}),o!==u&&o!==n&&g.push({...e[o],x:m})}a>0&&n!==u&&g.push(e[n]),g.push(r),l=t,f=0,p=h=s,c=d=u=a}}return g}(l,u,p,o);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=d}}))},destroy(e){jL(e)}};function zL(e,t,n,o){if(o)return;let a=t[e],r=n[e];return"angle"===e&&(a=WT(a),r=WT(r)),{property:e,start:a,end:r}}function BL(e,t,n){for(;t>e;t--){const e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function HL(e,t,n,o){return e&&t?o(e[n],t[n]):e?e[n]:t?t[n]:0}function VL(e,t){let n=[],o=!1;return aT(e)?(o=!0,n=e):n=function(e,t){const{x:n=null,y:o=null}=e||{},a=t.points,r=[];return t.segments.forEach((({start:e,end:t})=>{t=BL(e,t,a);const i=a[e],s=a[t];null!==o?(r.push({x:i.x,y:o}),r.push({x:s.x,y:o})):null!==n&&(r.push({x:n,y:i.y}),r.push({x:n,y:s.y}))})),r}(e,t),n.length?new TL({points:n,options:{tension:0},_loop:o,_fullLoop:o}):null}function UL(e){return e&&!1!==e.fill}function WL(e,t,n){let o=e[t].fill;const a=[t];let r;if(!n)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!iT(o))return o;if(r=e[o],!r)return!1;if(r.visible)return o;a.push(o),o=r.fill}return!1}function qL(e,t,n){const o=function(e){const t=e.options,n=t.fill;let o=lT(n&&n.target,n);return void 0===o&&(o=!!t.backgroundColor),!1!==o&&null!==o&&(!0===o?"origin":o)}(e);if(rT(o))return!isNaN(o.value)&&o;let a=parseFloat(o);return iT(a)&&Math.floor(a)===a?function(e,t,n,o){return"-"!==e&&"+"!==e||(n=t+n),!(n===t||n<0||n>=o)&&n}(o[0],t,a,n):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}function $L(e,t,n){const o=[];for(let a=0;a<n.length;a++){const r=n[a],{first:i,last:s,point:l}=GL(r,t,"x");if(!(!l||i&&s))if(i)o.unshift(l);else if(e.push(l),!s)break}e.push(...o)}function GL(e,t,n){const o=e.interpolate(t,n);if(!o)return{};const a=o[n],r=e.segments,i=e.points;let s=!1,l=!1;for(let e=0;e<r.length;e++){const t=r[e],o=i[t.start][n],c=i[t.end][n];if(GT(a,o,c)){s=a===o,l=a===c;break}}return{first:s,last:l,point:o}}class KL{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:o,y:a,radius:r}=this;return t=t||{start:0,end:MT},e.arc(o,a,r,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:o}=this,a=e.angle;return{x:t+Math.cos(a)*o,y:n+Math.sin(a)*o,angle:a}}}function JL(e,t,n){const o=function(e){const{chart:t,fill:n,line:o}=e;if(iT(n))return function(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return function(e){const{scale:t,index:n,line:o}=e,a=[],r=o.segments,i=o.points,s=function(e,t){const n=[],o=e.getMatchingVisibleMetas("line");for(let e=0;e<o.length;e++){const a=o[e];if(a.index===t)break;a.hidden||n.unshift(a.dataset)}return n}(t,n);s.push(VL({x:null,y:t.bottom},o));for(let e=0;e<r.length;e++){const t=r[e];for(let e=t.start;e<=t.end;e++)$L(a,i[e],s)}return new TL({points:a,options:{}})}(e);if("shape"===n)return!0;const a=function(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:t,fill:n}=e,o=t.options,a=t.getLabels().length,r=o.reverse?t.max:t.min,i=function(e,t,n){let o;return o="start"===e?n:"end"===e?t.options.reverse?t.min:t.max:rT(e)?e.value:t.getBaseValue(),o}(n,t,r),s=[];if(o.grid.circular){const e=t.getPointPositionForValue(0,r);return new KL({x:e.x,y:e.y,radius:t.getDistanceFromCenterForValue(i)})}for(let e=0;e<a;++e)s.push(t.getPointPositionForValue(e,i));return s}(e):function(e){const{scale:t={},fill:n}=e,o=function(e,t){let n=null;return"start"===e?n=t.bottom:"end"===e?n=t.top:rT(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}(n,t);if(iT(o)){const e=t.isHorizontal();return{x:e?o:null,y:e?null:o}}return null}(e)}(e);return a instanceof KL?a:VL(a,o)}(t),{line:a,scale:r,axis:i}=t,s=a.options,l=s.fill,c=s.backgroundColor,{above:d=c,below:u=c}=l||{};o&&a.points.length&&(oA(e,n),function(e,t){const{line:n,target:o,above:a,below:r,area:i,scale:s}=t,l=n._loop?"angle":t.axis;e.save(),"x"===l&&r!==a&&(XL(e,o,i.top),QL(e,{line:n,target:o,color:a,scale:s,property:l}),e.restore(),e.save(),XL(e,o,i.bottom)),QL(e,{line:n,target:o,color:r,scale:s,property:l}),e.restore()}(e,{line:a,target:o,above:d,below:u,area:n,scale:r,axis:i}),aA(e))}function XL(e,t,n){const{segments:o,points:a}=t;let r=!0,i=!1;e.beginPath();for(const s of o){const{start:o,end:l}=s,c=a[o],d=a[BL(o,l,a)];r?(e.moveTo(c.x,c.y),r=!1):(e.lineTo(c.x,n),e.lineTo(c.x,c.y)),i=!!t.pathSegment(e,s,{move:i}),i?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function QL(e,t){const{line:n,target:o,property:a,color:r,scale:i}=t,s=function(e,t,n){const o=e.segments,a=e.points,r=t.points,i=[];for(const e of o){let{start:o,end:s}=e;s=BL(o,s,a);const l=zL(n,a[o],a[s],e.loop);if(!t.segments){i.push({source:e,target:l,start:a[o],end:a[s]});continue}const c=cD(t,l);for(const t of c){const o=zL(n,r[t.start],r[t.end],t.loop),s=lD(e,a,o);for(const e of s)i.push({source:e,target:t,start:{[n]:HL(l,o,"start",Math.max)},end:{[n]:HL(l,o,"end",Math.min)}})}}return i}(n,o,a);for(const{source:t,target:l,start:c,end:d}of s){const{style:{backgroundColor:s=r}={}}=t,u=!0!==o;e.save(),e.fillStyle=s,ZL(e,i,u&&zL(a,c,d)),e.beginPath();const p=!!n.pathSegment(e,t);let h;if(u){p?e.closePath():eN(e,o,d,a);const t=!!o.pathSegment(e,l,{move:p,reverse:!0});h=p&&t,h||eN(e,o,c,a)}e.closePath(),e.fill(h?"evenodd":"nonzero"),e.restore()}}function ZL(e,t,n){const{top:o,bottom:a}=t.chart.chartArea,{property:r,start:i,end:s}=n||{};"x"===r&&(e.beginPath(),e.rect(i,o,s-i,a-o),e.clip())}function eN(e,t,n,o){const a=t.interpolate(n,o);a&&e.lineTo(a.x,a.y)}var tN={id:"filler",afterDatasetsUpdate(e,t,n){const o=(e.data.datasets||[]).length,a=[];let r,i,s,l;for(i=0;i<o;++i)r=e.getDatasetMeta(i),s=r.dataset,l=null,s&&s.options&&s instanceof TL&&(l={visible:e.isDatasetVisible(i),index:i,fill:qL(s,i,o),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:s}),r.$filler=l,a.push(l);for(i=0;i<o;++i)l=a[i],l&&!1!==l.fill&&(l.fill=WL(a,i,n.propagate))},beforeDraw(e,t,n){const o="beforeDraw"===n.drawTime,a=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let t=a.length-1;t>=0;--t){const n=a[t].$filler;n&&(n.line.updateControlPoints(r,n.axis),o&&n.fill&&JL(e.ctx,n,r))}},beforeDatasetsDraw(e,t,n){if("beforeDatasetsDraw"!==n.drawTime)return;const o=e.getSortedVisibleDatasetMetas();for(let t=o.length-1;t>=0;--t){const n=o[t].$filler;UL(n)&&JL(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){const o=t.meta.$filler;UL(o)&&"beforeDatasetDraw"===n.drawTime&&JL(e.ctx,o,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const nN=(e,t)=>{let{boxHeight:n=t,boxWidth:o=t}=e;return e.usePointStyle&&(n=Math.min(n,t),o=e.pointStyleWidth||Math.min(o,t)),{boxWidth:o,boxHeight:n,itemHeight:Math.max(t,n)}};class oN extends WD{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=dT(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter((t=>e.filter(t,this.chart.data)))),e.sort&&(t=t.sort(((t,n)=>e.sort(t,n,this.chart.data)))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,o=_A(n.font),a=o.size,r=this._computeTitleHeight(),{boxWidth:i,itemHeight:s}=nN(n,a);let l,c;t.font=o.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,a,i,s)+10):(c=this.maxHeight,l=this._fitCols(r,a,i,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,o){const{ctx:a,maxWidth:r,options:{labels:{padding:i}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=o+i;let d=e;a.textAlign="left",a.textBaseline="middle";let u=-1,p=-c;return this.legendItems.forEach(((e,h)=>{const m=n+t/2+a.measureText(e.text).width;(0===h||l[l.length-1]+m+2*i>r)&&(d+=c,l[l.length-(h>0?0:1)]=0,p+=c,u++),s[h]={left:0,top:p,row:u,width:m,height:o},l[l.length-1]+=m+i})),d}_fitCols(e,t,n,o){const{ctx:a,maxHeight:r,options:{labels:{padding:i}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-e;let d=i,u=0,p=0,h=0,m=0;return this.legendItems.forEach(((e,r)=>{const f=n+t/2+a.measureText(e.text).width;r>0&&p+o+2*i>c&&(d+=u+i,l.push({width:u,height:p}),h+=u+i,m++,u=p=0),s[r]={left:h,top:p,col:m,width:f,height:o},u=Math.max(u,f),p+=o+i})),d+=u,l.push({width:u,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:o},rtl:a}}=this,r=oD(a,this.left,this.width);if(this.isHorizontal()){let a=0,i=aC(n,this.left+o,this.right-this.lineWidths[a]);for(const s of t)a!==s.row&&(a=s.row,i=aC(n,this.left+o,this.right-this.lineWidths[a])),s.top+=this.top+e+o,s.left=r.leftForLtr(r.x(i),s.width),i+=s.width+o}else{let a=0,i=aC(n,this.top+e+o,this.bottom-this.columnSizes[a].height);for(const s of t)s.col!==a&&(a=s.col,i=aC(n,this.top+e+o,this.bottom-this.columnSizes[a].height)),s.top=i,s.left+=this.left+o,s.left=r.leftForLtr(r.x(s.left),s.width),i+=s.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;oA(e,this),this._draw(),aA(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:o}=this,{align:a,labels:r}=e,i=KC.color,s=oD(e.rtl,this.left,this.width),l=_A(r.font),{color:c,padding:d}=r,u=l.size,p=u/2;let h;this.drawTitle(),o.textAlign=s.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=l.string;const{boxWidth:m,boxHeight:f,itemHeight:g}=nN(r,u),v=this.isHorizontal(),_=this._computeTitleHeight();h=v?{x:aC(a,this.left+d,this.right-n[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:aC(a,this.top+_+d,this.bottom-t[0].height),line:0},aD(this.ctx,e.textDirection);const b=g+d;this.legendItems.forEach(((y,w)=>{o.strokeStyle=y.fontColor||c,o.fillStyle=y.fontColor||c;const k=o.measureText(y.text).width,x=s.textAlign(y.textAlign||(y.textAlign=r.textAlign)),E=m+p+k;let S=h.x,M=h.y;s.setWidth(this.width),v?w>0&&S+E+d>this.right&&(M=h.y+=b,h.line++,S=h.x=aC(a,this.left+d,this.right-n[h.line])):w>0&&M+b>this.bottom&&(S=h.x=S+t[h.line].width+d,h.line++,M=h.y=aC(a,this.top+_+d,this.bottom-t[h.line].height)),function(e,t,n){if(isNaN(m)||m<=0||isNaN(f)||f<0)return;o.save();const a=lT(n.lineWidth,1);if(o.fillStyle=lT(n.fillStyle,i),o.lineCap=lT(n.lineCap,"butt"),o.lineDashOffset=lT(n.lineDashOffset,0),o.lineJoin=lT(n.lineJoin,"miter"),o.lineWidth=a,o.strokeStyle=lT(n.strokeStyle,i),o.setLineDash(lT(n.lineDash,[])),r.usePointStyle){const i={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:a},l=s.xPlus(e,m/2);tA(o,i,l,t+p,r.pointStyleWidth&&m)}else{const r=t+Math.max((u-f)/2,0),i=s.leftForLtr(e,m),l=gA(n.borderRadius);o.beginPath(),Object.values(l).some((e=>0!==e))?cA(o,{x:i,y:r,w:m,h:f,radius:l}):o.rect(i,r,m,f),o.fill(),0!==a&&o.stroke()}o.restore()}(s.x(S),M,y),S=((e,t,n,o)=>e===(o?"left":"right")?n:"center"===e?(t+n)/2:t)(x,S+m+p,v?S+E:this.right,e.rtl),function(e,t,n){sA(o,n.text,e,t+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),M,y),v?h.x+=E+d:h.y+=b})),rD(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=_A(t.font),o=vA(t.padding);if(!t.display)return;const a=oD(e.rtl,this.left,this.width),r=this.ctx,i=t.position,s=n.size/2,l=o.top+s;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=aC(e.align,d,this.right-u);else{const t=this.columnSizes.reduce(((e,t)=>Math.max(e,t.height)),0);c=l+aC(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=aC(i,d,d+u);r.textAlign=a.textAlign(oC(i)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=n.string,sA(r,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=_A(e.font),n=vA(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,o,a;if(GT(e,this.left,this.right)&&GT(t,this.top,this.bottom))for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(o=a[n],GT(e,o.left,o.left+o.width)&&GT(t,o.top,o.top+o.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){return!("mousemove"!==e&&"mouseout"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const o=this._hoveredItem,a=((e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index)(o,n);o&&!a&&dT(t.onLeave,[e,o,this],this),this._hoveredItem=n,n&&!a&&dT(t.onHover,[e,n,this],this)}else n&&dT(t.onClick,[e,n,this],this)}}var aN={id:"legend",_element:oN,start(e,t,n){const o=e.legend=new oN({ctx:e.ctx,options:n,chart:e});MP.configure(e,o,n),MP.addBox(e,o)},stop(e){MP.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const o=e.legend;MP.configure(e,o,n),o.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const o=t.datasetIndex,a=n.chart;a.isDatasetVisible(o)?(a.hide(o),t.hidden=!0):(a.show(o),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:o,textAlign:a,color:r}}=e.legend.options;return e._getSortedDatasetMetas().map((e=>{const i=e.controller.getStyle(n?0:void 0),s=vA(i.borderWidth);return{text:t[e.index].label,fillStyle:i.backgroundColor,fontColor:r,hidden:!e.visible,lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:i.borderColor,pointStyle:o||i.pointStyle,rotation:i.rotation,textAlign:a||i.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class rN extends WD{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=e,this.height=this.bottom=t;const o=aT(n.text)?n.text.length:1;this._padding=vA(n.padding);const a=o*_A(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:t,left:n,bottom:o,right:a,options:r}=this,i=r.align;let s,l,c,d=0;return this.isHorizontal()?(l=aC(i,n,a),c=t+e,s=a-n):("left"===r.position?(l=n+e,c=aC(i,o,t),d=-.5*ST):(l=a-e,c=aC(i,t,o),d=.5*ST),s=o-t),{titleX:l,titleY:c,maxWidth:s,rotation:d}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=_A(t.font),o=n.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:i,rotation:s}=this._drawArgs(o);sA(e,t.text,0,0,n,{color:t.color,maxWidth:i,rotation:s,textAlign:oC(t.align),textBaseline:"middle",translation:[a,r]})}}var iN={id:"title",_element:rN,start(e,t,n){!function(e,t){const n=new rN({ctx:e.ctx,options:t,chart:e});MP.configure(e,n,t),MP.addBox(e,n),e.titleBlock=n}(e,n)},stop(e){const t=e.titleBlock;MP.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const o=e.titleBlock;MP.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const sN=new WeakMap;var lN={id:"subtitle",start(e,t,n){const o=new rN({ctx:e.ctx,options:n,chart:e});MP.configure(e,o,n),MP.addBox(e,o),sN.set(e,o)},stop(e){MP.removeBox(e,sN.get(e)),sN.delete(e)},beforeUpdate(e,t,n){const o=sN.get(e);MP.configure(e,o,n),o.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const cN={average(e){if(!e.length)return!1;let t,n,o=0,a=0,r=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();o+=e.x,a+=e.y,++r}}return{x:o/r,y:a/r}},nearest(e,t){if(!e.length)return!1;let n,o,a,r=t.x,i=t.y,s=Number.POSITIVE_INFINITY;for(n=0,o=e.length;n<o;++n){const o=e[n].element;if(o&&o.hasValue()){const e=VT(t,o.getCenterPoint());e<s&&(s=e,a=o)}}if(a){const e=a.tooltipPosition();r=e.x,i=e.y}return{x:r,y:i}}};function dN(e,t){return t&&(aT(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function uN(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function pN(e,t){const{element:n,datasetIndex:o,index:a}=t,r=e.getDatasetMeta(o).controller,{label:i,value:s}=r.getLabelAndValue(a);return{chart:e,label:i,parsed:r.getParsed(a),raw:e.data.datasets[o].data[a],formattedValue:s,dataset:r.getDataset(),dataIndex:a,datasetIndex:o,element:n}}function hN(e,t){const n=e.chart.ctx,{body:o,footer:a,title:r}=e,{boxWidth:i,boxHeight:s}=t,l=_A(t.bodyFont),c=_A(t.titleFont),d=_A(t.footerFont),u=r.length,p=a.length,h=o.length,m=vA(t.padding);let f=m.height,g=0,v=o.reduce(((e,t)=>e+t.before.length+t.lines.length+t.after.length),0);v+=e.beforeBody.length+e.afterBody.length,u&&(f+=u*c.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),v&&(f+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing),p&&(f+=t.footerMarginTop+p*d.lineHeight+(p-1)*t.footerSpacing);let _=0;const b=function(e){g=Math.max(g,n.measureText(e).width+_)};return n.save(),n.font=c.string,uT(e.title,b),n.font=l.string,uT(e.beforeBody.concat(e.afterBody),b),_=t.displayColors?i+2+t.boxPadding:0,uT(o,(e=>{uT(e.before,b),uT(e.lines,b),uT(e.after,b)})),_=0,n.font=d.string,uT(e.footer,b),n.restore(),g+=m.width,{width:g,height:f}}function mN(e,t,n,o){const{x:a,width:r}=n,{width:i,chartArea:{left:s,right:l}}=e;let c="center";return"center"===o?c=a<=(s+l)/2?"left":"right":a<=r/2?c="left":a>=i-r/2&&(c="right"),function(e,t,n,o){const{x:a,width:r}=o,i=n.caretSize+n.caretPadding;return"left"===e&&a+r+i>t.width||"right"===e&&a-r-i<0||void 0}(c,e,t,n)&&(c="center"),c}function fN(e,t,n){const o=n.yAlign||t.yAlign||function(e,t){const{y:n,height:o}=t;return n<o/2?"top":n>e.height-o/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||mN(e,t,n,o),yAlign:o}}function gN(e,t,n,o){const{caretSize:a,caretPadding:r,cornerRadius:i}=e,{xAlign:s,yAlign:l}=n,c=a+r,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=gA(i);let m=function(e,t){let{x:n,width:o}=e;return"right"===t?n-=o:"center"===t&&(n-=o/2),n}(t,s);const f=function(e,t,n){let{y:o,height:a}=e;return"top"===t?o+=n:o-="bottom"===t?a+n:a/2,o}(t,l,c);return"center"===l?"left"===s?m+=c:"right"===s&&(m-=c):"left"===s?m-=Math.max(d,p)+a:"right"===s&&(m+=Math.max(u,h)+a),{x:$T(m,0,o.width-t.width),y:$T(f,0,o.height-t.height)}}function vN(e,t,n){const o=vA(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-o.right:e.x+o.left}function _N(e){return dN([],uN(e))}function bN(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}class yN extends WD{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),o=n.enabled&&t.options.animation&&n.animations,a=new vD(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=yA(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(e,t){const{callbacks:n}=t,o=n.beforeTitle.apply(this,[e]),a=n.title.apply(this,[e]),r=n.afterTitle.apply(this,[e]);let i=[];return i=dN(i,uN(o)),i=dN(i,uN(a)),i=dN(i,uN(r)),i}getBeforeBody(e,t){return _N(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:n}=t,o=[];return uT(e,(e=>{const t={before:[],lines:[],after:[]},a=bN(n,e);dN(t.before,uN(a.beforeLabel.call(this,e))),dN(t.lines,a.label.call(this,e)),dN(t.after,uN(a.afterLabel.call(this,e))),o.push(t)})),o}getAfterBody(e,t){return _N(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:n}=t,o=n.beforeFooter.apply(this,[e]),a=n.footer.apply(this,[e]),r=n.afterFooter.apply(this,[e]);let i=[];return i=dN(i,uN(o)),i=dN(i,uN(a)),i=dN(i,uN(r)),i}_createItems(e){const t=this._active,n=this.chart.data,o=[],a=[],r=[];let i,s,l=[];for(i=0,s=t.length;i<s;++i)l.push(pN(this.chart,t[i]));return e.filter&&(l=l.filter(((t,o,a)=>e.filter(t,o,a,n)))),e.itemSort&&(l=l.sort(((t,o)=>e.itemSort(t,o,n)))),uT(l,(t=>{const n=bN(e.callbacks,t);o.push(n.labelColor.call(this,t)),a.push(n.labelPointStyle.call(this,t)),r.push(n.labelTextColor.call(this,t))})),this.labelColors=o,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),o=this._active;let a,r=[];if(o.length){const e=cN[n.position].call(this,o,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const t=this._size=hN(this,n),i=Object.assign({},e,t),s=fN(this.chart,n,i),l=gN(n,i,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,a={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,o){const a=this.getCaretPosition(e,n,o);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}getCaretPosition(e,t,n){const{xAlign:o,yAlign:a}=this,{caretSize:r,cornerRadius:i}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:d}=gA(i),{x:u,y:p}=e,{width:h,height:m}=t;let f,g,v,_,b,y;return"center"===a?(b=p+m/2,"left"===o?(f=u,g=f-r,_=b+r,y=b-r):(f=u+h,g=f+r,_=b-r,y=b+r),v=f):(g="left"===o?u+Math.max(s,c)+r:"right"===o?u+h-Math.max(l,d)-r:this.caretX,"top"===a?(_=p,b=_-r,f=g-r,v=g+r):(_=p+m,b=_+r,f=g+r,v=g-r),y=_),{x1:f,x2:g,x3:v,y1:_,y2:b,y3:y}}drawTitle(e,t,n){const o=this.title,a=o.length;let r,i,s;if(a){const l=oD(n.rtl,this.x,this.width);for(e.x=vN(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=_A(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,s=0;s<a;++s)t.fillText(o[s],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,s+1===a&&(e.y+=n.titleMarginBottom-i)}}_drawColorBox(e,t,n,o,a){const r=this.labelColors[n],i=this.labelPointStyles[n],{boxHeight:s,boxWidth:l,boxPadding:c}=a,d=_A(a.bodyFont),u=vN(this,"left",a),p=o.x(u),h=s<d.lineHeight?(d.lineHeight-s)/2:0,m=t.y+h;if(a.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},n=o.leftForLtr(p,l)+l/2,c=m+s/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,eA(e,t,n,c),e.strokeStyle=r.borderColor,e.fillStyle=r.backgroundColor,eA(e,t,n,c)}else{e.lineWidth=rT(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,e.strokeStyle=r.borderColor,e.setLineDash(r.borderDash||[]),e.lineDashOffset=r.borderDashOffset||0;const t=o.leftForLtr(p,l-c),n=o.leftForLtr(o.xPlus(p,1),l-c-2),i=gA(r.borderRadius);Object.values(i).some((e=>0!==e))?(e.beginPath(),e.fillStyle=a.multiKeyBackground,cA(e,{x:t,y:m,w:l,h:s,radius:i}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),cA(e,{x:n,y:m+1,w:l-2,h:s-2,radius:i}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(t,m,l,s),e.strokeRect(t,m,l,s),e.fillStyle=r.backgroundColor,e.fillRect(n,m+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:o}=this,{bodySpacing:a,bodyAlign:r,displayColors:i,boxHeight:s,boxWidth:l,boxPadding:c}=n,d=_A(n.bodyFont);let u=d.lineHeight,p=0;const h=oD(n.rtl,this.x,this.width),m=function(n){t.fillText(n,h.x(e.x+p),e.y+u/2),e.y+=u+a},f=h.textAlign(r);let g,v,_,b,y,w,k;for(t.textAlign=r,t.textBaseline="middle",t.font=d.string,e.x=vN(this,f,n),t.fillStyle=n.bodyColor,uT(this.beforeBody,m),p=i&&"right"!==f?"center"===r?l/2+c:l+2+c:0,b=0,w=o.length;b<w;++b){for(g=o[b],v=this.labelTextColors[b],t.fillStyle=v,uT(g.before,m),_=g.lines,i&&_.length&&(this._drawColorBox(t,e,b,h,n),u=Math.max(d.lineHeight,s)),y=0,k=_.length;y<k;++y)m(_[y]),u=d.lineHeight;uT(g.after,m)}p=0,u=d.lineHeight,uT(this.afterBody,m),e.y-=a}drawFooter(e,t,n){const o=this.footer,a=o.length;let r,i;if(a){const s=oD(n.rtl,this.x,this.width);for(e.x=vN(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=_A(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<a;++i)t.fillText(o[i],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}drawBackground(e,t,n,o){const{xAlign:a,yAlign:r}=this,{x:i,y:s}=e,{width:l,height:c}=n,{topLeft:d,topRight:u,bottomLeft:p,bottomRight:h}=gA(o.cornerRadius);t.fillStyle=o.backgroundColor,t.strokeStyle=o.borderColor,t.lineWidth=o.borderWidth,t.beginPath(),t.moveTo(i+d,s),"top"===r&&this.drawCaret(e,t,n,o),t.lineTo(i+l-u,s),t.quadraticCurveTo(i+l,s,i+l,s+u),"center"===r&&"right"===a&&this.drawCaret(e,t,n,o),t.lineTo(i+l,s+c-h),t.quadraticCurveTo(i+l,s+c,i+l-h,s+c),"bottom"===r&&this.drawCaret(e,t,n,o),t.lineTo(i+p,s+c),t.quadraticCurveTo(i,s+c,i,s+c-p),"center"===r&&"left"===a&&this.drawCaret(e,t,n,o),t.lineTo(i,s+d),t.quadraticCurveTo(i,s,i+d,s),t.closePath(),t.fill(),o.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,o=n&&n.x,a=n&&n.y;if(o||a){const n=cN[e.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=hN(this,e),i=Object.assign({},n,this._size),s=fN(t,e,i),l=gN(e,i,s,t);o._to===l.x&&a._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const o={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=vA(t.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&i&&(e.save(),e.globalAlpha=n,this.drawBackground(a,e,o,t),aD(e,t.textDirection),a.y+=r.top,this.drawTitle(a,e,t),this.drawBody(a,e,t),this.drawFooter(a,e,t),rD(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,o=e.map((({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}})),a=!pT(n,o),r=this._positionChanged(o,t);(a||r)&&(this._active=o,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,a=this._active||[],r=this._getActiveElements(e,a,t,n),i=this._positionChanged(r,e),s=t||!pT(r,a)||i;return s&&(this._active=r,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,o){const a=this.options;if("mouseout"===e.type)return[];if(!o)return t;const r=this.chart.getElementsAtEventForMode(e,a.mode,a,n);return a.reverse&&r.reverse(),r}_positionChanged(e,t){const{caretX:n,caretY:o,options:a}=this,r=cN[a.position].call(this,e,t);return!1!==r&&(n!==r.x||o!==r.y)}}yN.positioners=cN;var wN={id:"tooltip",_element:yN,positioners:cN,afterInit(e,t,n){n&&(e.tooltip=new yN({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",n))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:tT,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,o=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(o>0&&t.dataIndex<o)return n[t.dataIndex]}return""},afterTitle:tT,beforeBody:tT,beforeLabel:tT,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return oT(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:tT,afterBody:tT,beforeFooter:tT,footer:tT,afterFooter:tT}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kN=Object.freeze({__proto__:null,Decimation:YL,Filler:tN,Legend:aN,SubTitle:lN,Title:iN,Tooltip:wN});class xN extends tP{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:o}of t)e[n]===o&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(oT(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:$T(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:function(e,t,n,o){const a=e.indexOf(t);return-1===a?((e,t,n,o)=>("string"==typeof t?(n=e.push(t)-1,o.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,o):a!==e.lastIndexOf(t)?n:a}(n,e,lT(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,o=[];let a=this.getLabels();a=0===e&&t===a.length-1?a:a.slice(e,t+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)o.push({value:n});return o}getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function EN(e,t,{horizontal:n,minRotation:o}){const a=YT(o),r=(n?Math.sin(a):Math.cos(a))||.001,i=.75*t*(""+e).length;return Math.min(t/r,i)}xN.id="category",xN.defaults={ticks:{callback:xN.prototype.getLabelForValue}};class SN extends tP{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return oT(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:o,max:a}=this;const r=e=>o=t?o:e,i=e=>a=n?a:e;if(e){const e=IT(o),t=IT(a);e<0&&t<0?i(0):e>0&&t>0&&r(0)}if(o===a){let t=1;(a>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*a)),i(a+t),e||r(o-t)}this.min=o,this.max=a}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:o}=e;return o?(t=Math.ceil(this.max/o)-Math.floor(this.min/o)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${o} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const o=function(e,t){const n=[],{bounds:o,step:a,min:r,max:i,precision:s,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=e,p=a||1,h=c-1,{min:m,max:f}=t,g=!oT(r),v=!oT(i),_=!oT(l),b=(f-m)/(d+1);let y,w,k,x,E=OT((f-m)/h/p)*p;if(E<1e-14&&!g&&!v)return[{value:m},{value:f}];x=Math.ceil(f/E)-Math.floor(m/E),x>h&&(E=OT(x*E/h/p)*p),oT(s)||(y=Math.pow(10,s),E=Math.ceil(E*y)/y),"ticks"===o?(w=Math.floor(m/E)*E,k=Math.ceil(f/E)*E):(w=m,k=f),g&&v&&a&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((i-r)/a,E/1e3)?(x=Math.round(Math.min((i-r)/E,c)),E=(i-r)/x,w=r,k=i):_?(w=g?r:w,k=v?i:k,x=l-1,E=(k-w)/x):(x=(k-w)/E,x=FT(x,Math.round(x),E/1e3)?Math.round(x):Math.ceil(x));const S=Math.max(BT(E),BT(w));y=Math.pow(10,oT(s)?S:s),w=Math.round(w*y)/y,k=Math.round(k*y)/y;let M=0;for(g&&(u&&w!==r?(n.push({value:r}),w<r&&M++,FT(Math.round((w+M*E)*y)/y,r,EN(r,b,e))&&M++):w<r&&M++);M<x;++M)n.push({value:Math.round((w+M*E)*y)/y});return v&&u&&k!==i?n.length&&FT(n[n.length-1].value,i,EN(i,b,e))?n[n.length-1].value=i:n.push({value:i}):v&&k!==i||n.push({value:k}),n}({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&jT(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const o=(n-t)/Math.max(e.length-1,1)/2;t-=o,n+=o}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return nD(e,this.chart.options.locale,this.options.ticks.format)}}class MN extends SN{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=iT(e)?e:0,this.max=iT(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=YT(this.options.ticks.minRotation),o=(e?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,a.lineHeight/o))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function TN(e){return 1==e/Math.pow(10,Math.floor(NT(e)))}MN.id="linear",MN.defaults={ticks:{callback:$D.formatters.numeric}};class CN extends tP{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=SN.prototype.parse.apply(this,[e,t]);if(0!==n)return iT(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=iT(e)?Math.max(0,e):null,this.max=iT(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,o=this.max;const a=t=>n=e?n:t,r=e=>o=t?o:e,i=(e,t)=>Math.pow(10,Math.floor(NT(e))+t);n===o&&(n<=0?(a(1),r(10)):(a(i(n,-1)),r(i(o,1)))),n<=0&&a(i(o,-1)),o<=0&&r(i(n,1)),this._zero&&this.min!==this._suggestedMin&&n===i(this.min,0)&&a(i(n,-1)),this.min=n,this.max=o}buildTicks(){const e=this.options,t=function(e,t){const n=Math.floor(NT(t.max)),o=Math.ceil(t.max/Math.pow(10,n)),a=[];let r=sT(e.min,Math.pow(10,Math.floor(NT(t.min)))),i=Math.floor(NT(r)),s=Math.floor(r/Math.pow(10,i)),l=i<0?Math.pow(10,Math.abs(i)):1;do{a.push({value:r,major:TN(r)}),++s,10===s&&(s=1,++i,l=i>=0?1:l),r=Math.round(s*Math.pow(10,i)*l)/l}while(i<n||i===n&&s<o);const c=sT(e.max,r);return a.push({value:c,major:TN(r)}),a}({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&jT(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return void 0===e?"0":nD(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=NT(e),this._valueRange=NT(this.max)-NT(e)}getPixelForValue(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(NT(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function AN(e){const t=e.ticks;if(t.display&&e.display){const e=vA(t.backdropPadding);return lT(t.font&&t.font.size,KC.font.size)+e.height}return 0}function DN(e,t,n,o,a){return e===o||e===a?{start:t-n/2,end:t+n/2}:e<o||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function PN(e,t,n,o,a){const r=Math.abs(Math.sin(n)),i=Math.abs(Math.cos(n));let s=0,l=0;o.start<t.l?(s=(t.l-o.start)/r,e.l=Math.min(e.l,t.l-s)):o.end>t.r&&(s=(o.end-t.r)/r,e.r=Math.max(e.r,t.r+s)),a.start<t.t?(l=(t.t-a.start)/i,e.t=Math.min(e.t,t.t-l)):a.end>t.b&&(l=(a.end-t.b)/i,e.b=Math.max(e.b,t.b+l))}function LN(e){return 0===e||180===e?"center":e<180?"left":"right"}function NN(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function IN(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function ON(e,t,n,o){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,MT);else{let n=e.getPointPosition(0,t);a.moveTo(n.x,n.y);for(let r=1;r<o;r++)n=e.getPointPosition(r,t),a.lineTo(n.x,n.y)}}CN.id="logarithmic",CN.defaults={ticks:{callback:$D.formatters.logarithmic,major:{enabled:!0}}};class RN extends SN{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=vA(AN(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=iT(e)&&!isNaN(e)?e:0,this.max=iT(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/AN(this.options))}generateTickLabels(e){SN.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map(((e,t)=>{const n=dT(this.options.pointLabels.callback,[e,t],this);return n||0===n?n:""})).filter(((e,t)=>this.chart.getDataVisibility(t)))}fit(){const e=this.options;e.display&&e.pointLabels.display?function(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),o=[],a=[],r=e._pointLabels.length,i=e.options.pointLabels,s=i.centerPointLabels?ST/r:0;for(let u=0;u<r;u++){const r=i.setContext(e.getPointLabelContext(u));a[u]=r.padding;const p=e.getPointPosition(u,e.drawingArea+a[u],s),h=_A(r.font),m=(l=e.ctx,c=h,d=aT(d=e._pointLabels[u])?d:[d],{w:XC(l,c.string,d),h:d.length*c.lineHeight});o[u]=m;const f=WT(e.getIndexAngle(u)+s),g=Math.round(zT(f));PN(n,t,f,DN(g,p.x,m.w,0,180),DN(g,p.y,m.h,90,270))}var l,c,d;e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=function(e,t,n){const o=[],a=e._pointLabels.length,r=e.options,i=AN(r)/2,s=e.drawingArea,l=r.pointLabels.centerPointLabels?ST/a:0;for(let r=0;r<a;r++){const a=e.getPointPosition(r,s+i+n[r],l),c=Math.round(zT(WT(a.angle+DT))),d=t[r],u=IN(a.y,d.h,c),p=LN(c),h=NN(a.x,d.w,p);o.push({x:a.x,y:u,textAlign:p,left:h,top:u,right:h+d.w,bottom:u+d.h})}return o}(e,o,a)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,o){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,o))}getIndexAngle(e){return WT(e*(MT/(this._pointLabels.length||1))+YT(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(oT(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(oT(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return function(e,t,n){return yA(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const o=this.getIndexAngle(e)-DT+n;return{x:Math.cos(o)*t+this.xCenter,y:Math.sin(o)*t+this.yCenter,angle:o}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:o,bottom:a}=this._pointLabelItems[e];return{left:t,top:n,right:o,bottom:a}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),ON(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:o}=t,a=this._pointLabels.length;let r,i,s;if(t.pointLabels.display&&function(e,t){const{ctx:n,options:{pointLabels:o}}=e;for(let a=t-1;a>=0;a--){const t=o.setContext(e.getPointLabelContext(a)),r=_A(t.font),{x:i,y:s,textAlign:l,left:c,top:d,right:u,bottom:p}=e._pointLabelItems[a],{backdropColor:h}=t;if(!oT(h)){const e=gA(t.borderRadius),o=vA(t.backdropPadding);n.fillStyle=h;const a=c-o.left,r=d-o.top,i=u-c+o.width,s=p-d+o.height;Object.values(e).some((e=>0!==e))?(n.beginPath(),cA(n,{x:a,y:r,w:i,h:s,radius:e}),n.fill()):n.fillRect(a,r,i,s)}sA(n,e._pointLabels[a],i,s+r.lineHeight/2,r,{color:t.color,textAlign:l,textBaseline:"middle"})}}(this,a),o.display&&this.ticks.forEach(((e,t)=>{0!==t&&(i=this.getDistanceFromCenterForValue(e.value),function(e,t,n,o){const a=e.ctx,r=t.circular,{color:i,lineWidth:s}=t;!r&&!o||!i||!s||n<0||(a.save(),a.strokeStyle=i,a.lineWidth=s,a.setLineDash(t.borderDash),a.lineDashOffset=t.borderDashOffset,a.beginPath(),ON(e,n,r,o),a.closePath(),a.stroke(),a.restore())}(this,o.setContext(this.getContext(t-1)),i,a))})),n.display){for(e.save(),r=a-1;r>=0;r--){const o=n.setContext(this.getPointLabelContext(r)),{color:a,lineWidth:l}=o;l&&a&&(e.lineWidth=l,e.strokeStyle=a,e.setLineDash(o.borderDash),e.lineDashOffset=o.borderDashOffset,i=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),s=this.getPointPosition(r,i),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(s.x,s.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let a,r;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach(((o,i)=>{if(0===i&&!t.reverse)return;const s=n.setContext(this.getContext(i)),l=_A(s.font);if(a=this.getDistanceFromCenterForValue(this.ticks[i].value),s.showLabelBackdrop){e.font=l.string,r=e.measureText(o.label).width,e.fillStyle=s.backdropColor;const t=vA(s.backdropPadding);e.fillRect(-r/2-t.left,-a-l.size/2-t.top,r+t.width,l.size+t.height)}sA(e,o.label,0,-a,l,{color:s.color})})),e.restore()}drawTitle(){}}RN.id="radialLinear",RN.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$D.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},RN.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},RN.descriptors={angleLines:{_fallback:"grid"}};const FN={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},jN=Object.keys(FN);function YN(e,t){return e-t}function zN(e,t){if(oT(t))return null;const n=e._adapter,{parser:o,round:a,isoWeekday:r}=e._parseOpts;let i=t;return"function"==typeof o&&(i=o(i)),iT(i)||(i="string"==typeof o?n.parse(i,o):n.parse(i)),null===i?null:(a&&(i="week"!==a||!RT(r)&&!0!==r?n.startOf(i,a):n.startOf(i,"isoWeek",r)),+i)}function BN(e,t,n,o){const a=jN.length;for(let r=jN.indexOf(e);r<a-1;++r){const e=FN[jN[r]],a=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((n-t)/(a*e.size))<=o)return jN[r]}return jN[a-1]}function HN(e,t,n){if(n){if(n.length){const{lo:o,hi:a}=KT(n,t);e[n[o]>=t?n[o]:n[a]]=!0}}else e[t]=!0}function VN(e,t,n){const o=[],a={},r=t.length;let i,s;for(i=0;i<r;++i)s=t[i],a[s]=i,o.push({value:s,major:!1});return 0!==r&&n?function(e,t,n,o){const a=e._adapter,r=+a.startOf(t[0].value,o),i=t[t.length-1].value;let s,l;for(s=r;s<=i;s=+a.add(s,1,o))l=n[s],l>=0&&(t[l].major=!0);return t}(e,o,a,n):o}class UN extends tP{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const n=e.time||(e.time={}),o=this._adapter=new lP._date(e.adapters.date);o.init(t),vT(n.displayFormats,o.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:zN(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:o,max:a,minDefined:r,maxDefined:i}=this.getUserBounds();function s(e){r||isNaN(e.min)||(o=Math.min(o,e.min)),i||isNaN(e.max)||(a=Math.max(a,e.max))}r&&i||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),o=iT(o)&&!isNaN(o)?o:+t.startOf(Date.now(),n),a=iT(a)&&!isNaN(a)?a:+t.endOf(Date.now(),n)+1,this.min=Math.min(o,a-1),this.max=Math.max(o+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,o="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const a=this.min,r=function(e,t,n){let o=0,a=e.length;for(;o<a&&e[o]<t;)o++;for(;a>o&&e[a-1]>n;)a--;return o>0||a<e.length?e.slice(o,a):e}(o,a,this.max);return this._unit=t.unit||(n.autoSkip?BN(t.minUnit,this.min,this.max,this._getLabelCapacity(a)):function(e,t,n,o,a){for(let r=jN.length-1;r>=jN.indexOf(n);r--){const n=jN[r];if(FN[n].common&&e._adapter.diff(a,o,n)>=t-1)return n}return jN[n?jN.indexOf(n):0]}(this,r.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(let t=jN.indexOf(e)+1,n=jN.length;t<n;++t)if(FN[jN[t]].common)return jN[t]}(this._unit):void 0,this.initOffsets(o),e.reverse&&r.reverse(),VN(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((e=>+e.value)))}initOffsets(e){let t,n,o=0,a=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),o=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,n=this.getDecimalForValue(e[e.length-1]),a=1===e.length?n:(n-this.getDecimalForValue(e[e.length-2]))/2);const r=e.length<3?.5:.25;o=$T(o,0,r),a=$T(a,0,r),this._offsets={start:o,end:a,factor:1/(o+1+a)}}_generate(){const e=this._adapter,t=this.min,n=this.max,o=this.options,a=o.time,r=a.unit||BN(a.minUnit,t,n,this._getLabelCapacity(t)),i=lT(a.stepSize,1),s="week"===r&&a.isoWeekday,l=RT(s)||!0===s,c={};let d,u,p=t;if(l&&(p=+e.startOf(p,"isoWeek",s)),p=+e.startOf(p,l?"day":r),e.diff(n,t,r)>1e5*i)throw new Error(t+" and "+n+" are too far apart with stepSize of "+i+" "+r);const h="data"===o.ticks.source&&this.getDataTimestamps();for(d=p,u=0;d<n;d=+e.add(d,i,r),u++)HN(c,d,h);return d!==n&&"ticks"!==o.bounds&&1!==u||HN(c,d,h),Object.keys(c).sort(((e,t)=>e-t)).map((e=>+e))}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}_tickFormatFunction(e,t,n,o){const a=this.options,r=a.time.displayFormats,i=this._unit,s=this._majorUnit,l=i&&r[i],c=s&&r[s],d=n[t],u=s&&c&&d&&d.major,p=this._adapter.format(e,o||(u?c:l)),h=a.ticks.callback;return h?dT(h,[p,t,n],this):p}generateTickLabels(e){let t,n,o;for(t=0,n=e.length;t<n;++t)o=e[t],o.label=this._tickFormatFunction(o.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,o=YT(this.isHorizontal()?t.maxRotation:t.minRotation),a=Math.cos(o),r=Math.sin(o),i=this._resolveTickFontOptions(0).size;return{w:n*a+i*r,h:n*r+i*a}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,o=n[t.unit]||n.millisecond,a=this._tickFormatFunction(e,0,VN(this,[e],this._majorUnit),o),r=this._getLabelSize(a),i=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return i>0?i:1}getDataTimestamps(){let e,t,n=this._cache.data||[];if(n.length)return n;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(e=0,t=o.length;e<t;++e)n=n.concat(o[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const o=this.getLabels();for(t=0,n=o.length;t<n;++t)e.push(zN(this,o[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return eC(e.sort(YN))}}function WN(e,t,n){let o,a,r,i,s=0,l=e.length-1;n?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=JT(e,"pos",t)),({pos:o,time:r}=e[s]),({pos:a,time:i}=e[l])):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=JT(e,"time",t)),({time:o,pos:r}=e[s]),({time:a,pos:i}=e[l]));const c=a-o;return c?r+(i-r)*(t-o)/c:r}UN.id="time",UN.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class qN extends UN{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=WN(t,this.min),this._tableRange=WN(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,o=[],a=[];let r,i,s,l,c;for(r=0,i=e.length;r<i;++r)l=e[r],l>=t&&l<=n&&o.push(l);if(o.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(r=0,i=o.length;r<i;++r)c=o[r+1],s=o[r-1],l=o[r],Math.round((c+s)/2)!==l&&a.push({time:l,pos:r/(i-1)});return a}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(WN(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return WN(this._table,n*this._tableRange+this._minPos,!0)}}qN.id="timeseries",qN.defaults=UN.defaults;const $N=[rP,RL,kN,Object.freeze({__proto__:null,CategoryScale:xN,LinearScale:MN,LogarithmicScale:CN,RadialLinearScale:RN,TimeScale:UN,TimeSeriesScale:qN})];hL.register(...$N);const GN="label";function KN(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function JN(e,t){e.labels=t}function XN(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GN;const o=[];e.datasets=t.map((t=>{const a=e.datasets.find((e=>e[n]===t[n]));return a&&t.data&&!o.includes(a)?(o.push(a),Object.assign(a,t),a):{...t}}))}function QN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:GN;const n={labels:[],datasets:[]};return JN(n,e.labels),XN(n,e.datasets,t),n}function ZN(e,n){let{height:o=150,width:a=300,redraw:r=!1,datasetIdKey:i,type:s,data:l,options:c,plugins:d=[],fallbackContent:u,updateMode:p,...h}=e;const m=(0,t.useRef)(null),f=(0,t.useRef)(),g=()=>{m.current&&(f.current=new hL(m.current,{type:s,data:QN(l,i),options:c&&{...c},plugins:d}),KN(n,f.current))},v=()=>{KN(n,null),f.current&&(f.current.destroy(),f.current=null)};return(0,t.useEffect)((()=>{var e,t;!r&&f.current&&c&&(e=f.current,t=c,Object.assign(e.options,t))}),[r,c]),(0,t.useEffect)((()=>{!r&&f.current&&JN(f.current.config.data,l.labels)}),[r,l.labels]),(0,t.useEffect)((()=>{!r&&f.current&&l.datasets&&XN(f.current.config.data,l.datasets,i)}),[r,l.datasets]),(0,t.useEffect)((()=>{f.current&&(r?(v(),setTimeout(g)):f.current.update(p))}),[r,c,l.labels,l.datasets,p]),(0,t.useEffect)((()=>{f.current&&(v(),setTimeout(g))}),[s]),(0,t.useEffect)((()=>(g(),()=>v())),[]),t.createElement("canvas",Object.assign({ref:m,role:"img",height:o,width:a},h),u)}const eI=(0,t.forwardRef)(ZN);function tI(e,n){return hL.register(n),(0,t.forwardRef)(((n,o)=>t.createElement(eI,Object.assign({},n,{ref:o,type:e}))))}const nI=tI("line",BD),oI=tI("bar",jD);function aI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aI=function(){return!!e})()}var rI=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,aI()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,barChartLabel:[],createdValue:[],skippedValue:[],updatedValue:[],monthList:[],lineChartData:[]},t.chartOptions={scales:{x:{stacked:!0},y:{stacked:!0}}},t.lineOptions={scales:{x:{stacked:!0},y:{stacked:!0}}},t.lineDataNew=[],t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.getBarData(),this.listLastMonths(),this.getLineData(),this.context.setSelectedTabOnCookies("dashboard")}},{key:"getRandomColor",value:function(){var e=new Array("#e8e8e8","#f5ddde","#bee4e5","#cfe0c7","#f7e4bb","#9c89b8 ","#f0a6ca","#efc3e6","#f0e6ef","#b8bedd");return e[Math.floor(Math.random()*e.length)]}},{key:"getLineData",value:(a=u(m().mark((function e(){var t,n,o,a,r,i,s,l,c,d,u,p,h;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","LineChart"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(200==(n=e.sent).status&&n.data.success){for(o=n.data,a={data:[],label:n.data.label,color:[]},r=0;r<o.data.length;r++){for(i=[],s=0;s<o.data[r].length;s++)l=parseInt(o.data[r][s]),i.push(l);a.data.push(i),a.color.push(this.getRandomColor())}for(d in this.setState({lineChartData:a}),c=[],a)if(a.hasOwnProperty(d))for(u=0;u<a.label.length;u++)p={label:"",fill:!0,stack:"stack1",lineTension:.6,borderCapStyle:"round",borderDashOffset:0,borderJoinStyle:"miter",backgroundColor:"rgba(75,192,192,0.1)",borderColor:"",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:[]},"data"===d&&(Object.assign(p,{data:a[d][u]}),c.push(p)),"label"===d&&(c[u].label=a[d][u]),"color"===d&&(h=this.getRandomColor(),c[u].borderColor=h,c[u].backgroundColor="rgba(".concat(h,",0.1)"));console.log("lineDataSet",c),this.lineDataNew=c,this.forceUpdate()}case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getBarData",value:(o=u(m().mark((function e(){var t,n,o,a,r,i,s,l,c;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","BarChart"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(200==(n=e.sent).status&&n.data.success){for(r in o=n.data,a=[],o)o.hasOwnProperty(r)&&"success"!==r&&a.push(r);for(c in this.setState({barChartLabel:a}),i=[],s=[],l=[],o)o.hasOwnProperty(c)&&"success"!==c&&(i.push(o[c].created),s.push(o[c].skipped),l.push(o[c].updated));this.setState({createdValue:i,skippedValue:s,updatedValue:l})}case 8:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"listLastMonths",value:function(){var e,t=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),n=(new Date).getMonth()+1,o=[];for(e=0;e<12;e++)o.push(t[n]),++n>11&&(n=0);this.setState({monthList:o})}},{key:"render",value:function(){return this.state.lineChartData,this.lineData={labels:this.state.monthList,datasets:this.lineDataNew},this.barData={labels:this.state.barChartLabel,datasets:[{stack:"stack1",backgroundColor:"rgba(255,99,132,1)",borderColor:"rgba(255,99,132,1)",label:"Inserted",data:this.state.createdValue},{stack:"stack1",label:"Updated",backgroundColor:"rgba(44,195,193,1)",borderColor:"rgba(255,99,132,1)",data:this.state.updatedValue},{stack:"stack1",label:"Skipped",backgroundColor:"rgba(50, 173, 255,1)",borderColor:"rgba(50, 173, 255,1)",data:this.state.skippedValue}]},t.createElement("div",{className:" container"},t.createElement("div",{className:"csv-importer-panel  mt20"},t.createElement("div",null,t.createElement("div",{className:"col-md-12 mb30"},t.createElement("h2",{className:"main-heading"},this.context.language.ImportersActivity),t.createElement(nI,{data:this.lineData,width:"950px",height:"400px",options:this.lineOptions})),t.createElement("hr",null),t.createElement("div",{className:"col-md-12 mb30"},t.createElement("h2",{className:"main-heading"},this.context.language.ImportStatistics),t.createElement(oI,{data:this.barData,width:"1000px",height:"450px",options:this.chartOptions})))))}}]);var o,a}(t.Component);(0,p.A)(rI,"contextType",f);const iI=rI;function sI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sI=function(){return!!e})()}var lI=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,sI()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={purchasedProductKey:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){var e=this;return t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement("div",{className:"card-body"},""==this.state.purchasedProductKey?t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"col-md-8"},t.createElement("div",{className:"form-group"},t.createElement("h3",{className:"setting-heading"},"Thank you for your purchase"),t.createElement("p",null,"To get started you need to activate by entering the license key")),t.createElement("div",{className:"form-group"},t.createElement("label",null,this.context.language.EntertheLicenseKey),t.createElement("input",{type:"text",id:"license-key",name:"liceenseKey",className:"form-control col-md-6",value:this.state.licenseKey,onChange:function(t){e.setState({licenseKey:t.target.value})}})),t.createElement("div",{className:"row justify-content-left ml-1"},t.createElement("button",{onClick:function(){e.setState({loading:!0}),""===e.context.addonSlug?e.sendLicenseKey():e.sendLicenseKeyAndAddon()},className:"smack-btn smack-btn-primary mt-1 mr15"},this.state.loading?this.context.btnLoader:""===this.context.addonSlug?"Download and Activate":"Activate")))):"",""!==this.state.purchasedProductKey?t.createElement(t.Fragment,null,t.createElement("div",{className:"col-md-8"},t.createElement("h1",{className:"main-heading p-0 mt-0 mb-3 ml-1"},"License Details")),t.createElement("div",{className:"table-responsive mt-2"},t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",{className:"pl-4"}," Product Name "),t.createElement("th",null," License Key "))),t.createElement("tbody",null," ",this.state.loading?""!==this.state.purchasedProductKey?t.createElement("tr",null,t.createElement("td",{className:"pl-4 hoverDetail"},key),t.createElement("td",null,this.state.purchasedProductKey)):t.createElement("tr",null,t.createElement("td",{colSpan:"5",className:"text-center text-danger"},"No Data Found")):t.createElement("tr",null,t.createElement("td",{colSpan:"5",className:"text-center",style:{height:"60px"}}," "," ",this.context.loaderText," "," ")))))):"")))}}])}(t.Component);function cI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cI(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uI=function(){return!!e})()}(0,p.A)(lI,"contextType",f);var pI,hI,mI,fI,gI,vI=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,uI()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:"",smBundle:null}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"handleOnclickImport",value:(a=u(m().mark((function e(){var t,n,o,a,r,i,s,l,c,d,u,p,h,f;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("%cworking","color: #00a3cc"),this.state.smBundle){e.next=5;break}return console.error("No file selected for upload!"),bn.error("Please select a file to upload."),e.abrupt("return");case 5:return(t=new FormData).append("csvFile",this.state.smBundle,this.state.smBundle.name),t.append("action","oneClickUpload"),t.append("securekey",window.smack_nonce_object.nonce),e.prev=9,e.next=12,fetch(ajaxurl,{method:"POST",body:t});case 12:return n=e.sent,e.next=15,n.json();case 15:if(o=e.sent,console.log("%cresult","color: #00a3cc",o),!o.success){e.next=28;break}if(l=o.filename,c=o.selectedtype,d=o.posttype,u=o.file_size,p=o.file_type,h=o.taxonomy,f=o.hashkey,l&&c&&p&&Array.isArray(d)&&0!==d.length&&Array.isArray(h)&&0!==h.length){e.next=22;break}return bn.error("Some required fields are missing. Please check the file and try again."),e.abrupt("return");case 22:null===(a=this.context)||void 0===a||a.setCSVInfo(dI(dI({},null===(r=this.context)||void 0===r?void 0:r.csvInfo),{},{templateName:l,selectedtype:c,fileName:l,connectionType:"desktop",postTypes:d,fileSize:u,fileType:p,taxonomys:h,hashKey:f})),console.log("%csuccess","color: #ff0000",this.context.csvInfo),null===(i=this.context)||void 0===i||i.setShowComponent("csv-info"),null===(s=this.context)||void 0===s||s.setIsOnclick(!0),e.next=29;break;case 28:bn.error(o.message||"Failed to import CSV. Please try again.");case 29:console.log("Import Result:",o),e.next=36;break;case 32:e.prev=32,e.t0=e.catch(9),console.error("Error importing CSV:",e.t0),bn.error("An error occurred while importing. Please try again.");case 36:case"end":return e.stop()}}),e,this,[[9,32]])}))),function(){return a.apply(this,arguments)})},{key:"onFilePondProcess",value:function(e,t,o,a,r,i,s){this.setState({smBundle:t});var l=new FormData;l.append("csvFile",t,t.name),l.append("action","get_desktop"),l.append("securekey",window.smack_nonce_object_pro.nonce);var c=new XMLHttpRequest;return c.open("POST",ajaxurl),c.upload.onprogress=function(e){i(e.lengthComputable,e.loaded,e.total)},c.onload=function(){if(c.status>=200&&c.status<300){a(JSON.parse(c.responseText));var e=JSON.parse(c.responseText);console.log("saeanresponse",e),n.filePondResponse=e,n.filePondResponse.success?"ZipArchive class not exists"==n.filePondResponse.info?(bn.info("Please install php-zip extension"),n.showRecord=!1):n.showRecord=!0:(n.showRecord=!1,bn.error(n.filePondResponse.message))}else r("oh no")},c.send(l),{abort:function(){c.abort(),s()}}}},{key:"onProcessFile",value:function(){var e,t,o;if(this.setState({zipCsvFileName:[],zipCsvUrls:[]}),"csv"===n.filePondResponse.file_type||"xml"===n.filePondResponse.file_type||"txt"===n.filePondResponse.file_type||"json"===n.filePondResponse.file_type||"xlsx"===n.filePondResponse.file_type||"xls"===n.filePondResponse.file_type||"tsv"===n.filePondResponse.file_type)return this.context.setCSVInfo(dI(dI({},this.context.csvInfo),{},{hashKey:n.filePondResponse.hashkey,templateName:n.filePondResponse.filename.slice((n.filePondResponse.filename.endsWith(".xlsx"),0),n.filePondResponse.filename.endsWith(".xlsx")?-5:-4),selectedtype:n.filePondResponse.selectedtype,fileName:n.filePondResponse.filename,connectionType:"desktop",postTypes:n.filePondResponse.posttype,taxonomys:n.filePondResponse.taxonomy,fileSize:n.filePondResponse.file_size,fileType:n.filePondResponse.file_type})),this.context.setServerName(n.filePondResponse.server),"xml"===n.filePondResponse.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),void this.context.setShowComponent("csv-info");if("zip"===(null==n||null===(e=n.filePondResponse)||void 0===e?void 0:e.file_type)&&null!=n&&null!==(t=n.filePondResponse)&&void 0!==t&&t.filename.startsWith("smbundle_")&&(console.log("innnn","color: #00e600"),this.handleOnclickImport()),"zip"!==n.filePondResponse.file_type&&"gz"!==n.filePondResponse.file_type||null!=n&&null!==(o=n.filePondResponse)&&void 0!==o&&o.filename.startsWith("smbundle_"));else if("ZipArchive class not exists"!=n.filePondResponse.info){console.log("filepond",n.filePondResponse);for(var a=0;a<n.filePondResponse.info.length;a++)this.state.zipCsvFileName.push(n.filePondResponse.info[a].name),this.state.zipCsvUrls.push(n.filePondResponse.info[a].path);this.context.setCSVInfo(dI(dI({},this.context.csvInfo),{},{connectionType:"desktop"})),console.log("zipCsvFileName",this.state.zipCsvFileName),console.log("zipCsvUrls",this.state.zipCsvUrls),this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},(function(){document.getElementById("desk-csv-open").click()}))}}},{key:"onRemoveFile",value:function(){}},{key:"sendFileUrl",value:(o=u(m().mark((function e(){var t,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_csv_url"),t.set("url",this.context.selectedFileUrl),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(!(o=e.sent)||!o.data){e.next=17;break}if(200!=o.status||!o.data.success){e.next=17;break}if("csv"!==o.data.file_type&&"xml"!==o.data.file_type){e.next=17;break}return this.context.setCSVInfo(dI(dI({},this.context.csvInfo),{},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({hashKey:o.data.hashkey,templateName:n.filePondResponse.filename.slice(0,-4),selectedtype:o.data.selectedtype},"templateName",o.data.templatename),"postTypes",o.data.posttype),"fileName",o.data.filename),"fileType",o.data.file_type),"fileSize",o.data.file_size),"taxonomys",o.data.taxonomy))),"xml"===o.data.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),document.getElementById("desk-csv-close").click(),this.context.setShowComponent("csv-info"),e.abrupt("return");case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(5),console.log(e.t0);case 22:case"end":return e.stop()}}),e,this,[[5,19]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{class:"col-md-9 ".concat(n.showRecord&&this.state.showImportRecord?"min":"")},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"tab-pane fade show active",id:"v-pills-home",role:"tabpanel","aria-labelledby":"v-pills-home-tab"},t.createElement($w.a,{acceptedFileTypes:["text/csv/xml/json/xlsx/xls"].zip,allowMultiple:!1,maxFiles:1,server:{process:this.onFilePondProcess.bind(this)},onprocessfile:this.onProcessFile.bind(this),onremovefile:this.onRemoveFile.bind(this)}))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open","data-toggle":"modal","data-target":"#upload_csv"},this.context.language.UploadedCSVFileLists),t.createElement("div",{id:"upload_csv",className:"modal fade payment_modal",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("button",{type:"button",id:"desk-csv-close",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("ul",null,this.state.zipCsvFileName.map((function(n,o){return t.createElement("li",null,t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input",onClick:function(t){t.target.checked&&e.context.setSelectedFileUrl(e.state.zipCsvUrls[o])},type:"radio",name:"post-item",id:"radio-".concat(o)}),t.createElement("label",{for:"radio-".concat(o),class:"form-check-label"}," ",n)))}))),t.createElement("div",{className:"float-right"},t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:this.sendFileUrl.bind(this),value:"Choose CSV File"})))))))}}]);var o,a}(t.Component);function _I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_I(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yI=function(){return!!e})()}(0,p.A)(vI,"contextType",f);var wI=Rd.div(pI||(pI=g(["\n    padding: 50px;\n    background: white;\n    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n    border-radius: 6px;\n"]))),kI=Rd.button(hI||(hI=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),xI=(Rd.h1(mI||(mI=g(["\n    font-size: 30px;\n    font-family: 'Poppins';\n    font-weight: 500;\n    margin-bottom: 0;\n"]))),Rd.p(fI||(fI=g(["\n    font-size: 16px;\n"])))),EI=Rd.button(gI||(gI=g(["\n    font-size: 1rem;\n    padding: 8px 20px;\n    line-height: 1.5em;\n    font-weight: 600;\n    text-transform: uppercase;\n    -webkit-transition: all 200ms ease;\n    -moz-transition: all 200ms ease;\n    -ms-transition: all 200ms ease;\n    -o-transition: all 200ms ease;\n    transition: all 200ms ease;\n    font-family: 'Poppins', sans-serif;\n    border: none;\n    cursor: pointer;\n    border-radius: 6px;\n    background: #ffffff;\n    border: 1px solid #a0aec0;\n    color: #4a5568;\n    &:hover {\n        background-color: #e2e8f0;\n    }\n"]))),SI=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,yI()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,data:{},check:!0,zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:""}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.getFtpDetails(),this.context.setUploadFtpData(JSON.parse(localStorage.getItem("SavedData"))||{HostName:"",HostPort:"",HostUserName:"",HostPassword:"",HostPath:"",action:""})}},{key:"onInputChange",value:function(e,t){this.context.uploadFtpData[e]=t,this.context.setUploadFtpData(this.context.uploadFtpData),localStorage.setItem("SavedData",JSON.stringify(this.context.uploadFtpData))}},{key:"getFtpDetails",value:(a=u(m().mark((function e(){var t;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_ftp_details"),e.prev=2,e.next=5,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[2,8]])}))),function(){return a.apply(this,arguments)})},{key:"onContinue",value:(o=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="","get_ftp_url"===this.context.uploadFtpData.action?t="ftp":"get_sftp_url"===this.context.uploadFtpData.action?t="sftp":"get_ftps_url"===this.context.uploadFtpData.action&&(t="ftps"),n={method:t,data:this.context.uploadFtpData},this.context.setImportScheduleData(n),this.setState({loading:!0}),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:hu(this.context.uploadFtpData),config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(o=e.sent,this.setState({loading:!1}),!o||!o.data){e.next=23;break}if(200!=o.status||!o.data.success){e.next=22;break}if("csv"!==o.data.file_type&&"xml"!==o.data.file_type&&"txt"!==o.data.file_type&&"tsv"!==o.data.file_type){e.next=17;break}return this.context.setCSVInfo((0,p.A)({hashKey:o.data.hashkey,templateName:o.data.filename.slice(0,-4),selectedtype:o.data.selectedtype,connectionType:"ftp",fileType:o.data.file_type,postTypes:o.data.posttype,taxonomys:o.data.taxonomy,fileName:o.data.filename,fileSize:o.data.file_size},"fileType",o.data.file_type)),"xml"===o.data.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),this.context.setShowComponent("csv-info"),e.abrupt("return");case 17:if("zip"!==o.data.file_type){e.next=20;break}if("ZipArchive class not exists"!=o.data.info){for(a=0;a<o.data.info.length;a++)this.state.zipCsvFileName.push(data.info[a].name),this.state.zipCsvUrls.push(data.info[a].path);this.context.setCSVInfo(bI(bI({},this.context.csvInfo),{},{connectionType:"ftp"})),this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},(function(){document.getElementById("desk-csv-open").click()}))}else bn.info("Please install php-zip extension");return e.abrupt("return");case 20:e.next=23;break;case 22:o.data.message?bn.error(o.data.message):bn.error("Please Check Credentials");case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(5),console.log("request failed",e.t0);case 28:case"end":return e.stop()}}),e,this,[[5,25]])}))),function(){return o.apply(this,arguments)})},{key:"confirmationToProceedSFTPImport",value:function(){var e=this;(0,yn.ZX)({customUI:function(n){var o=n.onClose;return t.createElement(wI,null,t.createElement(xI,null,"Make Sure You have installed ssh2 extension in your server"),t.createElement(xI,null,"We can't provide support for SFTP server issues"),t.createElement(EI,{onClick:o},"Cancel"),t.createElement(kI,{onClick:function(){e.onInputChange("action","get_sftp_url"),o()}},"Yes, Proceed!"))}})}},{key:"render",value:function(){var e=this;return t.createElement(t.Fragment,null,t.createElement("div",{className:"col-md-9"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"tab-pane fade show active",id:"v-pills-profile",role:"tabpanel","aria-labelledby":"v-pills-profile-tab"},t.createElement("div",{className:"row mt30"},t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"hostname"},this.context.language.Hostname),t.createElement("input",{type:"text",className:"form-control",onChange:function(t){e.onInputChange("HostName",t.target.value)},id:"hostname",placeholder:"",value:this.context.uploadFtpData.HostName}),t.createElement("small",{className:"form-text text-muted"},"smackcoders.com or 54.213.74.129")),t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"host-port"},this.context.language.HostPort),t.createElement("input",{type:"text",className:"form-control",onChange:function(t){e.onInputChange("HostPort",t.target.value)},id:"host-port",placeholder:"",value:this.context.uploadFtpData.HostPort}),t.createElement("small",{className:"form-text text-muted"},this.context.language.DefaultPort,":21")),t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"host-username"},this.context.language.HostUsername),t.createElement("input",{type:"text",className:"form-control",onChange:function(t){e.onInputChange("HostUserName",t.target.value)},id:"host-username",placeholder:"",value:this.context.uploadFtpData.HostUserName}),t.createElement("small",{className:"form-text text-muted"},this.context.language.FTPUsername)),t.createElement("div",{className:"form-group col-md-6"},t.createElement("label",{for:"host-password"},this.context.language.HostPassword),t.createElement("input",{type:"text",className:"form-control",onChange:function(t){e.onInputChange("HostPassword",t.target.value)},id:"host-password",placeholder:"",value:this.context.uploadFtpData.HostPassword}),t.createElement("small",{className:"form-text text-muted"},this.context.language.FTPPassword)),t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{for:"host-path"},this.context.language.HostPath),t.createElement("input",{type:"text",className:"form-control",onChange:function(t){e.onInputChange("HostPath",t.target.value)},id:"host-path",placeholder:"",value:this.context.uploadFtpData.HostPath}),t.createElement("small",{className:"form-text text-muted"},"/home/guest/sample.csv")),t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"d-block"},this.context.language.ConnectionType),t.createElement("div",{className:"form-check form-check-inline"},t.createElement("input",{className:"connection-input",onClick:function(){e.onInputChange("action","get_ftp_url")},type:"radio",name:"connection-type",id:"ftp",value:"checkedValue",checked:"get_ftp_url"===this.context.uploadFtpData.action})," ",t.createElement("label",{for:"ftp",className:"form-check-label"},"FTP")),t.createElement("div",{className:"form-check form-check-inline"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){e.onInputChange("action","get_ftps_url")},name:"connection-type",id:"ftps",value:"checkedValue",checked:"get_ftps_url"===this.context.uploadFtpData.action})," ",t.createElement("label",{for:"ftps",className:"form-check-label"},"FTPS (SSL)")),t.createElement("div",{className:"form-check form-check-inline"},t.createElement("input",{className:"connection-input",type:"radio",onClick:function(){e.confirmationToProceedSFTPImport()},name:"connection-type",id:"sftp",value:"checkedValue",checked:"get_sftp_url"===this.context.uploadFtpData.action})," ",t.createElement("label",{for:"sftp",className:"form-check-label"},"SSH2 / SFTP")),t.createElement(MI,null),t.createElement(dc,{effect:"solid"}))),t.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:t.createElement("input",{type:"button",class:"smack-btn smack-btn-primary mb20",onClick:this.onContinue.bind(this),value:this.context.language.Continue}))))))}}]);var o,a}(t.Component);(0,p.A)(SI,"contextType",f);var MI=function(e){var n=e.size,o=void 0===n?16:n,a=e.color,r=void 0===a?"#000000":a;return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ml10","data-tip":"we can't provide support for sftp server issues",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},t.createElement("circle",{cx:"12",cy:"12",r:"10"}),t.createElement("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),t.createElement("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"}))};function TI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function CI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TI(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function AI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AI=function(){return!!e})()}var DI=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,AI()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:""}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){getFileTree(this.getFileData.bind(this))}},{key:"getFileData",value:function(e){if(e.success){if("csv"===e.file_type)return this.context.setCSVInfo(CI(CI({},this.context.csvInfo),{},{hashKey:e.hashkey,templateName:e.filename.slice(0,-4),selectedtype:e.selectedtype,fileName:e.filename,fileSize:e.file_size,connectionType:"server",postTypes:e.posttype,taxonomys:e.taxonomy,fileType:"csv"})),this.context.setIsXML(!1),void this.context.setShowComponent("csv-info");if("xml"===e.file_type)return this.context.setCSVInfo(CI(CI({},this.context.csvInfo),{},{hashKey:e.hashkey,templateName:e.filename.slice(0,-4),selectedtype:e.selectedtype,fileName:e.filename,fileSize:e.file_size,connectionType:"server",postTypes:e.posttype,taxonomys:e.taxonomy,fileType:"xml"})),this.context.setIsXML(!0),void this.context.setShowComponent("csv-info");if("zip"===e.file_type){if("ZipArchive class not exists"!=e.info){for(var t=0;t<e.info.length;t++)this.state.zipCsvFileName.push(e.info[t].name),this.state.zipCsvUrls.push(e.info[t].path);this.context.setCSVInfo(CI(CI({},this.context.csvInfo),{},{connectionType:"server"})),this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},(function(){document.getElementById("desk-csv-open").click()}))}else bn.info("Please install php-zip extension");return}}else bn.error(e.message)}},{key:"sendFileUrl",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_csv_url"),t.set("url",this.context.selectedFileUrl),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(!(n=e.sent)||!n.data){e.next=16;break}if(200!=n.status||!n.data.success){e.next=16;break}return this.context.setCSVInfo(CI(CI({},this.context.csvInfo),{},{hashKey:n.data.hashkey,templateName:n.data.filename.slice(0,-4),selectedtype:n.data.selectedtype,postTypes:n.data.posttype,fileName:n.data.filename,fileSize:n.data.file_size,taxonomys:n.data.taxonomy})),document.getElementById("desk-csv-close").click(),"xml"===n.data.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),this.context.setShowComponent("csv-info"),e.abrupt("return");case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement(t.Fragment,null,t.createElement("div",{className:"col-md-9"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"tab-pane fade show active",id:"v-pills-settings",role:"tabpanel","aria-labelledby":"v-pills-settings-tab"},t.createElement("div",{id:"file_tree",className:"file_tree mt40 col-md-6 offset-md-3",style:{height:"250px"}}))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open","data-toggle":"modal","data-target":"#upload_csv"},this.context.language.UploadedCSVFileLists),t.createElement("div",{id:"upload_csv",className:"modal fade payment_modal",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("button",{type:"button",id:"desk-csv-close",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("ul",null,this.state.zipCsvFileName.map((function(n,o){return t.createElement("li",null,t.createElement("div",{className:"form-check form-check-inline"},t.createElement("label",{class:"form-check-label"},t.createElement("input",{className:"form-check-input",onClick:function(t){t.target.checked&&e.context.setSelectedFileUrl(e.state.zipCsvUrls[o])},type:"radio",name:"post-item",id:""})," ",n)))}))),t.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:this.sendFileUrl.bind(this),value:"Choose CSV File"}))))))))}}]);var o}(t.Component);function PI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function LI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PI(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NI=function(){return!!e})()}(0,p.A)(DI,"contextType",f);var II,OI=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,NI()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:""}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"sendFileUrl",value:(o=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=this.context.selectedFileUrl){e.next=3;break}return bn.error("Please update URL to process"),e.abrupt("return");case 3:return(t=new FormData).set("action","get_csv_url"),t.set("url",this.context.selectedFileUrl),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=8,e.next=11,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 11:if(n=e.sent,this.setState({loading:!1}),!n||!n.data){e.next=27;break}if(200!=n.status||!n.data.success){e.next=26;break}if(document.getElementById("desk-csv-close").click(),"csv"!==n.data.file_type&&"xml"!==n.data.file_type&&"tsv"!==n.data.file_type){e.next=21;break}return this.context.setCSVInfo(LI(LI({},this.context.csvInfo),{},{hashKey:n.data.hashkey,selectedtype:n.data.selectedtype,connectionType:"url",postTypes:n.data.posttype,taxonomys:n.data.taxonomy,templateName:n.data.filename.slice(0,-4),fileName:n.data.filename,fileType:n.data.file_type})),"xml"===n.data.file_type?this.context.setIsXML(!0):this.context.setIsXML(!1),this.context.setShowComponent("csv-info"),e.abrupt("return");case 21:if("zip"!==n.data.file_type){e.next=24;break}if("ZipArchive class not exists"!=n.data.info){for(o=0;o<n.data.info.length;o++)this.state.zipCsvFileName.push(n.data.info[o].name),this.state.zipCsvUrls.push(n.data.info[o].path);this.context.setCSVInfo(LI(LI({},this.context.csvInfo),{},{connectionType:"url"})),this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},(function(){document.getElementById("desk-csv-open").click()}))}else bn.info("Please install php-zip extension");return e.abrupt("return");case 24:e.next=27;break;case 26:bn.error(n.data.message);case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(8),console.log(e.t0);case 32:case"end":return e.stop()}}),e,this,[[8,29]])}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"col-md-9"},t.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},t.createElement("div",{className:"tab-pane fade show active",id:"v-pills-messages",role:"tabpanel","aria-labelledby":"v-pills-messages-tab"},t.createElement("div",{className:"row mt30"},t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{for:"file-path"},this.context.language.FilePath),t.createElement("input",{type:"text",className:"form-control",onChange:function(t){e.context.setSelectedFileUrl(t.target.value)},id:"file-path",placeholder:""}),t.createElement("small",{className:"form-text text-muted"},"http://example.com/sample.csv (or) https://goo.gl/SX2tNf (or) http://bit.ly/2hXvlAQ"))),t.createElement("div",{class:"float-right mt50"},this.state.loading?this.context.loaderText:t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary  mb20",onClick:this.sendFileUrl.bind(this),value:"Continue"})))),t.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open","data-toggle":"modal","data-target":"#upload_csv"},this.context.language.UploadedCSVFileLists),t.createElement("div",{id:"upload_csv",className:"modal fade payment_modal",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("button",{type:"button",id:"desk-csv-close",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("ul",null,this.state.zipCsvFileName.map((function(n,o){return t.createElement("li",null,t.createElement("div",{className:"form-check form-check-inline"},t.createElement("label",{class:"form-check-label"},t.createElement("input",{className:"form-check-input",onClick:function(t){t.target.checked&&e.context.setSelectedFileUrl(e.state.zipCsvUrls[o])},type:"radio",name:"post-item",id:""})," ",n)))}))),t.createElement("div",{className:"float-right"},t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:this.sendFileUrl.bind(this),value:"Choose CSV File"})))))))}}]);var o}(t.Component);function RI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function FI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RI(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jI=function(){return!!e})()}(0,p.A)(OI,"contextType",f);var YI=Rd.td(II||(II=g(["\n    max-width: 250px;\n"]))),zI=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,jI()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,loadingSearch:!1,fromDate:new Date,toDate:new Date,templateName:"",exportTemplates:[]},t.handleChangeFrom=t.handleChangeFrom.bind(t),t.handleChangeTo=t.handleChangeTo.bind(t),t.temp=[],t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"handleChangeFrom",value:function(e){this.setState({fromDate:e})}},{key:"handleChangeTo",value:function(e){this.setState({toDate:e})}},{key:"searchTemplate",value:(p=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","search_template"),t.set("TemplateName",this.state.templateName),t.set("FromDate",_()(this.state.fromDate).format("YYYY-MM-DD")),t.set("ToDate",_()(this.state.toDate).format("YYYY-MM-DD")),t.set("filename",this.context.csvInfo.fileName),t.set("module",this.context.csvInfo.selectedtype),t.set("securekey",window.smack_nonce_object_pro.nonce),document.getElementById("searchBtn").disabled=!0,e.prev=9,e.next=12,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 12:n=e.sent,document.getElementById("searchBtn").disabled=!1,n&&n.data&&(200==n.status&&n.data.success?(this.temp=this.context.saveTemplateData,this.context.setSaveTemplateData(n.data.info)):this.context.setSaveTemplateData("")),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(9);case 19:case"end":return e.stop()}}),e,this,[[9,17]])}))),function(){return p.apply(this,arguments)})},{key:"showMappingFromTemplate",value:(d=u(m().mark((function e(){var t,n,o,a,r,i,s=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:"",n=s.length>1&&void 0!==s[1]&&s[1],(o=new FormData).set("action","templateinfo"),n&&o.set("TemplateName",t),o.set("HashKey",this.context.csvInfo.hashKey),o.set("Types",this.context.csvInfo.selectedtype),o.set("Mode",this.context.csvInfo.replaceExistingItem),o.set("securekey",window.smack_nonce_object_pro.nonce),o.set("MediaType",this.context.selectedMediaType),this.setState({loading:!0}),e.prev=11,e.next=14,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:if(!(a=e.sent)||!a.data){e.next=28;break}if(this.context.setFilterData(a.data.mapping_filter),this.context.setRecordcount(a.data.total_records),200!=a.status||!a.data.success){e.next=28;break}return this.setState({loading:!1}),r="",n?(this.context.setCurrentUser(a.data.currentuser),this.context.setMappingResult(a.data.already_mapped),this.context.setExistingTemplateName(t),this.context.setCSVInfo(FI(FI({},this.context.csvInfo),{},{templateName:t})),this.context.setIsTemplate(!0),r="normal"===a.data.mapping_type?"mapping-section":"advanced"===a.data.mapping_type?"dragdrop-section":""===a.data.mapping_type?"mapping-section":a.data.mapping_type):(this.context.setIsTemplate(!1),r="mapping-section"),this.context.isXML&&(r="dragdrop-section"),this.context.setCsvFields(a.data.csv_fields),i=mu(a.data.fields),this.context.setAllPluginFields(i),this.context.setShowComponent(r),e.abrupt("return");case 28:e.next=33;break;case 30:e.prev=30,e.t0=e.catch(11),console.log(e.t0);case 33:case"end":return e.stop()}}),e,this,[[11,30]])}))),function(){return d.apply(this,arguments)})},{key:"clearSearch",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=7,e.next=10,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&(!1===n.data.fields?this.context.setSaveTemplateData(""):(this.setState({loading:!1}),!0===n.data.show_template&&this.context.setSaveTemplateData(n.data.info))),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),console.log(e.t0);case 17:case"end":return e.stop()}}),e,this,[[7,14]])}))),function(){return a.apply(this,arguments)})},{key:"DeleteExportTemplate",value:(o=u(m().mark((function e(t,n,o){var a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","DeleteExportTemplate"),a.set("FileName",t),a.set("Module",n),a.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(!(r=e.sent)||!r.data){e.next=16;break}if(200!=r.status||!r.data.success){e.next=16;break}return(i=this.state.exportTemplates).splice(o,1),this.setState({exportTemplates:i}),toast.success("Template Deleted Successfully"),e.abrupt("return");case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(5),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(e,t,n){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this;return t.createElement("div",{className:"container"},t.createElement("div",{className:"csv-importer-panel mt20"},t.createElement("div",{className:"pt20"}),t.createElement("div",{className:"row col-md-11 m-auto clearfix"},t.createElement("div",{className:"form-group col pl0"},t.createElement("label",{for:""},this.context.language.Search),t.createElement("input",{type:"text",onChange:function(t){e.setState({templateName:t.target.value})},class:"form-control",id:"",placeholder:"Template Name ..."})),t.createElement("div",{className:"col-md-3"},t.createElement("label",{for:""},this.context.language.FromDate),t.createElement("label",null,t.createElement(nu(),{selected:this.state.fromDate,className:"form-control",onChange:this.handleChangeFrom,customInput:t.createElement(rw,null),showYearDropdown:!0}))),t.createElement("div",{className:"col-md-3"},t.createElement("label",{for:""},this.context.language.ToDate),t.createElement("label",null,t.createElement(nu(),{selected:this.state.toDate,customInput:t.createElement(rw,null),showYearDropdown:!0}))),t.createElement("div",{className:"form-group col pl0 d-flex align-items-end"},this.state.loadingSearch?this.context.loaderText:t.createElement(t.Fragment,null,t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.searchTemplate()},id:"searchBtn",value:this.context.language.SEARCH}),t.createElement("button",{type:"button",className:"smack-btn btn-default ml10",style:{whiteSpace:"nowrap"},onClick:function(){e.clearSearch()}},"Clear Search")))),t.createElement("hr",null),t.createElement("div",{className:"p20 col-md-12"},t.createElement("h1",{className:"main-heading d-flex"},this.context.language.SavedTemplate,"     ",t.createElement("div",{style:{display:"flex",alignItems:"center",cursor:"pointer"},onMouseEnter:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="red"},onMouseLeave:function(e){var t=e.currentTarget.querySelector(".text");e.currentTarget.querySelector("img"),t.style.color="#459cdd"},onClick:function(t){t.currentTarget.querySelector(".text").style.color="#459cdd",e.context.setDrawerValue("importTemplate#1"),e.context.setDrawerOpen(!0)}},t.createElement("div",{className:"text",style:{color:"#459cdd",fontSize:"14px",lineHeight:"14px",display:"flex",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?"))),t.createElement("table",{className:"table table-striped"},t.createElement("thead",null,t.createElement("tr",null,t.createElement("th",null," ",this.context.language.TEMPLATES),t.createElement("th",null," ",this.context.language.MATCHEDCOLUMNSCOUNT),t.createElement("th",null,this.context.language.MODULE," "),t.createElement("th",null,this.context.language.CREATEDTIME),t.createElement("th",{className:"text-center"},this.context.language.ACTION))),t.createElement("tbody",null,0!=this.context.saveTemplateData.length?this.context.saveTemplateData.map((function(n,o){return t.createElement("tr",null,t.createElement(YI,{title:n.template_name,className:"text-ellipsis"},n.template_name),t.createElement("td",null,n.count),t.createElement("td",null,n.module),t.createElement("td",null,_()(n.created_time).format("lll")),t.createElement("td",null,t.createElement("button",{type:"button",class:"smack-btn smack-btn-info usetemplate",onClick:function(){return e.showMappingFromTemplate(n.template_name,!0)}},e.context.language.USETEMPLATE)))})):t.createElement("tr",null,t.createElement("td",{colspan:"5"},t.createElement("span",{className:"text-danger"},"No Template Found")))))),t.createElement("div",{className:"col-md-12 mt20"},t.createElement("div",{className:"float-left"},t.createElement("input",{type:"button",className:"smack-btn btn-default",value:this.context.language.BACK,onClick:function(){e.context.setShowComponent("upload-dashboard")}})),t.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:t.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.showMappingFromTemplate()}},this.context.language.CREATENEWMAPPING))),t.createElement("div",{className:"clearfix"})))}}]);var o,a,d,p}(t.Component);function BI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BI=function(){return!!e})()}(0,p.A)(zI,"contextType",f);var HI=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,BI()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{loading:!1,mediaHandlingEnabled:!0,useMediaImagesIfAlreadyAvailable:!0,overwriteImageIfAlreadyAvailable:!1,alwaysCreateAsNewImage:!1,usePostContentImageOption:!1,retainPath:!1,thumbnail:!1,medium:!1,mediumLarge:!1,large:!1,custom:!1,customSlug:"",customWidth:"",customHeight:"",mediaImageTitle:"",mediaImageFileName:"",mediaImageCaption:"",mediaImageDescription:"",mediaImageAltText:"",selectedImageOption:"useExisting",slugonly:!1,directoryPath:!1}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){var e=this;this.context.setSelectedTabOnCookies("import-update"),this.context.allPluginFields.map((function(t){"acf_fields"===Object.keys(t)[0]||"acf_pro_fields"===Object.keys(t)[0]?e.context.setIsAcfField(!0):"jetenginecpt_fields"===Object.keys(t)[0]||"jetengine_fields"===Object.keys(t)[0]?e.context.setIsJetengineField(!0):"types_fields"===Object.keys(t)[0]?e.context.setIsToolsetField(!0):"pods_fields"===Object.keys(t)[0]?e.context.setIsPodsField(!0):"metabox_fields"===Object.keys(t)[0]&&e.context.setIsMetaboxField(!0)}))}},{key:"sendMediaHandlingConfiguration",value:(o=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","image_options"),t.set("media_handle_option",this.state.mediaHandlingEnabled),t.set("use_ExistingImage",this.state.useMediaImagesIfAlreadyAvailable),t.set("overwriteImage",this.state.overwriteImageIfAlreadyAvailable),t.set("newImage",this.state.alwaysCreateAsNewImage),t.set("postContent_image_option",this.state.usePostContentImageOption),t.set("title",this.state.mediaImageTitle),t.set("file_name",this.state.mediaImageFileName),t.set("caption",this.state.mediaImageCaption),t.set("alttext",this.state.mediaImageAltText),t.set("description",this.state.mediaImageDescription),t.set("thumbnail",this.state.thumbnail),t.set("medium",this.state.medium),t.set("medium_large",this.state.mediumLarge),t.set("large",this.state.large),t.set("custom",this.state.custom),t.set("custom_slug",this.state.customSlug),t.set("custom_width",this.state.customWidth),t.set("custom_height",this.state.customHeight),t.set("securekey",window.smack_nonce_object_pro.nonce),t.set("slugonly",this.state.slugonly),t.set("directoryPath",this.state.directoryPath),t.set("retainPath",this.state.retainPath),e.next=26,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 26:200==(n=e.sent).status&&n.data.success&&this.context.setShowComponent("import-config");case 28:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"handleCheck",value:function(e){this.setState((0,p.A)({},e.target.name,e.target.checked))}},{key:"handleChange",value:function(e){this.setState((0,p.A)({},e.target.name,e.target.value),(function(){}))}},{key:"render",value:function(){var e=this,n=this.state;return n.thumbnail,n.medium,n.mediumLarge,n.large,n.custom,t.createElement("div",{id:"mapping-accordion",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20"},t.createElement(dc,{effect:"solid"}),t.createElement("div",{className:"card-body"},t.createElement("h5",null,this.context.language.MediaHandling,"     ",t.createElement("span",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){e.context.setDrawerValue("import#4"),e.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Helps?")),t.createElement("div",{className:"col-md-12 row mt30 justify-content-center hidden-div"},t.createElement("label",{className:"align-self-center"},this.context.language.Downloadexternalimagestoyourmedia),t.createElement("div",{className:"form-group fieldset ml30"},t.createElement("input",{type:"checkbox",className:"ios-switch",name:"media-handle",id:"media-handle",onClick:function(t){e.setState({mediaHandlingEnabled:t.target.checked})},defaultChecked:this.state.mediaHandlingEnabled}),t.createElement("label",{className:"switch-ios",for:"media-handle"},t.createElement("i",null)))),t.createElement("div",{className:"media-fields ".concat(this.state.mediaHandlingEnabled?"active":"")},t.createElement("div",{className:"col-md-12 mt20"},t.createElement("div",{className:"border-container"},t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"media-image",id:"media-image-existing",checked:"useExisting"===this.state.selectedImageOption,onChange:function(){return e.setState({selectedImageOption:"useExisting"})}}),t.createElement("label",{htmlFor:"media-image-existing"},this.context.language.Usemediaimagesifalreadyavailable)),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"media-image",id:"media-image-overwrite",checked:"overwrite"===this.state.selectedImageOption,onChange:function(){return e.setState({selectedImageOption:"overwrite"})}}),t.createElement("label",{htmlFor:"media-image-overwrite"},this.context.language.Doyouwanttooverwritetheexistingimages)),t.createElement("div",{className:"form-group"},t.createElement("input",{type:"radio",name:"media-image",id:"media-new-image",checked:"createNew"===this.state.selectedImageOption,onChange:function(){return e.setState({selectedImageOption:"createNew"})}}),t.createElement("label",{htmlFor:"media-new-image"},this.context.language.AlwaysCreateAsNewImage)))),t.createElement("div",{className:"col-md-12 mt50"},t.createElement("div",{className:"border-container"},t.createElement("h5",{className:"border-container-header"},this.context.language.PostContentImageOption),t.createElement("div",{className:"form-group",style:{marginTop:"18px"}},t.createElement("input",{type:"checkbox",name:"postcontent-image",className:"",id:"postcontent-image-existing",disabled:!1,onClick:function(t){e.setState({usePostContentImageOption:t.target.checked})}}),t.createElement("label",{className:"ml10",for:"postcontent-image-existing"},this.context.language.DownloadPostContentExternalImagestoMedia)))),t.createElement("div",{className:"col-md-12 mt30"},t.createElement("div",{className:"border-container"},t.createElement("h5",{className:"border-container-header"},"Media Import Path"),t.createElement("div",{className:"form-group",style:{marginTop:"18px"}},t.createElement("input",{type:"checkbox",name:"postcontent-image",className:"",id:"postcontent-image-existing",disabled:!1,onClick:function(t){e.setState({retainPath:t.target.checked})}}),t.createElement("label",{className:"ml10",for:"postcontent-image-existing"},"Retaining the original file path instead of current month folder"))))),t.createElement("div",{className:"form-group mt30"},t.createElement("div",{className:"float-left"},t.createElement("button",{type:"button",class:"smack-btn btn-default hide-button",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back)),t.createElement("div",{className:"float-right"},t.createElement("button",{type:"button",id:"media",className:"smack-btn smack-btn-primary hide-button",onClick:function(){e.sendMediaHandlingConfiguration()}},this.context.language.Continue))))))}}]);var o}(t.Component);(0,p.A)(HI,"contextType",f);const VI=HI;var UI,WI,qI,$I,GI;function KI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(KI=function(){return!!e})()}var JI,XI,QI,ZI,eO,tO=Rd.div(UI||(UI=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),nO=Rd.button(WI||(WI=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),oO=Rd.h1(qI||(qI=g(['\n  font-size: 30px;\n  font-family: "Poppins";\n  font-weight: 500;\n  margin-bottom: 0;\n']))),aO=Rd.p($I||($I=g(["\n  font-size: 16px;\n"]))),rO=Rd.button(GI||(GI=g(['\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: "Poppins", sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n']))),iO=function(e){function n(e){var o,a,i,c;return(0,r.A)(this,n),a=this,i=n,c=[e],i=(0,l.A)(i),o=(0,s.A)(a,KI()?Reflect.construct(i,c||[],(0,l.A)(a).constructor):i.apply(a,c)),(0,p.A)(o,"handleCheckboxChange",(function(e){o.setState({isCategorieChecked:e.target.checked})})),o.state={loading:!1,timeZones:[],selectTimeZones:[],updateFieldsList:[],selectedUTC:"",selectedDate:new Date,scheduleTime:"",scheduleFrequency:"OneTime",enableSchedule:!1,showOnSchedule:"none",hiddenOnSchedule:"block",displayDuplicate:!1,displayskip:!1,unmatchedMode:!1,updateField:"",skipField:"",scheduled:!1,CustomPostCheck:!1,displayAcfFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayToolsetFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayJetEngineFieldsUpdate:!1,acfFieldsName:"",toolsetFieldsName:"",podsFieldsName:"",metaboxFieldsName:"",jetengineFieldsName:"",isAcfFields:!1,isJetengineFields:!1,showAdaptiveProcessingOptions:!1,highSpeedSmallFileProcessing:!1,iterativePieceByPieceProcessing:!0,iterationProcessRecordNumber:5,maximumProcessRecordNumber:50,minimumProcessRecordNumber:1,splitFileRecordChunk:!0,iterationProcessRecordLimitExceed:!1,totalRecords:"",isCategorieChecked:!1,selectedCategories:[],categoryOptions:[]},o.handleDateChange=o.handleDateChange.bind(o),o.handleChange=o.handleChange.bind(o),o.mediaHandlingRef=t.createRef(),o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.getUtcTimeZones(),this.getUpdateFields(),this.getTotalRecords(),("Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem)&&this.setState({displayskip:!0})}},{key:"setEnableSchedule",value:function(e){var t=this;this.setState({enableSchedule:e},(function(){t.state.enableSchedule?t.setState({showOnSchedule:"block",hiddenOnSchedule:"none"}):t.setState({showOnSchedule:"none",hiddenOnSchedule:"block"})}))}},{key:"getTotalRecords",value:(v=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_total_records"),t.set("hashKey",this.context.csvInfo.hashKey),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:200==(n=e.sent).status&&this.setState({totalRecords:n.data.total_records}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(){return v.apply(this,arguments)})},{key:"confirmationToScheduledExport",value:function(){var e=this;(0,yn.ZX)({customUI:function(n){var o=n.onClose;return t.createElement(tO,null,t.createElement(oO,null,"Are you sure?"),t.createElement(aO,null,"Do you want to schedule this import because you have ".concat(e.state.totalRecords," records in your file")),t.createElement(rO,{onClick:function(t){e.setEnableSchedule(!1),e.startBulkImport(),o()}},"Not Now, Import it!"),t.createElement(nO,{onClick:function(){e.setEnableSchedule(!0),o()}},"Yes, Schedule it!"))}})}},{key:"scheduleConfiguration",value:(g=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=this.state.selectedUTC){e.next=3;break}return bn.error("please Select you Time Zone"),e.abrupt("return");case 3:if(""!=this.state.scheduleTime){e.next=6;break}return bn.error("Please Enter the Schedule Time"),e.abrupt("return");case 6:if(!this.state.displayDuplicate||""!=this.state.updateField){e.next=9;break}return bn.error("Please Select field to Handle Duplicate"),e.abrupt("return");case 9:return this.context.csvInfo.connectionType,t="",n="",this.state.displayskip&&(t=this.state.skipField,n="skip"),this.state.displayDuplicate?(t=this.state.updateField,n="normal"):this.state.displayAcfFieldsUpdate?(t=this.state.acfFieldsName,n="acf"):this.state.displayJetEngineFieldsUpdate?(t=this.state.jetengineFieldsName,n="jetengine"):this.state.displayToolsetFieldsUpdate?(t=this.state.toolsetFieldsName,n="toolset"):this.state.displayPodsFieldsUpdate?(t=this.state.podsFieldsName,n="pods"):this.state.displayMetaboxFieldsUpdate&&(t=this.state.metaboxFieldsName,n="metabox"),(o=new FormData).set("action","save_schedule_info"),o.set("FileName",this.context.csvInfo.fileName),o.set("FileType",this.context.csvInfo.fileType),o.set("connectionType",this.context.csvInfo.connectionType),o.set("module",this.context.csvInfo.selectedtype),o.set("eventkey",this.context.csvInfo.hashKey),o.set("date",_()(this.state.selectedDate).format("MM/DD/YYYY")),o.set("frequency",this.state.scheduleFrequency),o.set("duplicate_header",t),o.set("UTC",this.state.selectedUTC),o.set("Time",this.state.scheduleTime),o.set("mappingFilterCheck",this.context.MappedFilter),(this.state.displayAcfFieldsUpdate||this.state.displayToolsetFieldsUpdate||this.state.displayPodsFieldsUpdate||this.state.displayMetaboxFieldsUpdate||this.state.displayJetEngineFieldsUpdate)&&o.set("UpdateUsing",n),"ftp"===this.context.csvInfo.connectionType&&(o.set("method",this.context.importScheduleData.method),o.set("hostname",this.context.importScheduleData.data.HostName),o.set("username",this.context.importScheduleData.data.HostUserName),o.set("password",this.context.importScheduleData.data.HostPassword),o.set("portnumber",this.context.importScheduleData.data.HostPort),o.set("initialpath",this.context.importScheduleData.data.HostPath)),"url"===this.context.csvInfo.connectionType&&(o.set("method","url"),o.set("fileurl",this.context.selectedFileUrl)),o.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=32,e.next=35,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 35:a=e.sent,this.setState({loading:!1}),a&&a.data&&200==a.status&&(this.setState({scheduled:!0}),bn.success(a.data.notification)),e.next=43;break;case 40:e.prev=40,e.t0=e.catch(32),console.log(e.t0);case 43:case"end":return e.stop()}}),e,this,[[32,40]])}))),function(){return g.apply(this,arguments)})},{key:"startBulkImport",value:(f=u(m().mark((function e(){var t,n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.setState({loading:!0}),!this.mediaHandlingRef.current){e.next=4;break}return e.next=4,this.mediaHandlingRef.current.sendMediaHandlingConfiguration();case 4:return(t=new FormData).set("action","bulk_file_import"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("highspeed",this.state.highSpeedSmallFileProcessing),t.set("PieceByPiece",this.state.iterativePieceByPieceProcessing),t.set("FileIteration",this.state.iterationProcessRecordNumber),t.set("SplitChunks",this.state.splitFileRecordChunk),this.context.setShowImportLog(!0),this.context.setImportLogDataLink("".concat(window.wpr_object.logfielpath,"/").concat(this.context.csvInfo.hashKey,"/").concat(this.context.csvInfo.hashKey,".html")),e.prev=13,e.next=16,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 16:return n=e.sent,this.setState({loading:!1}),o="csv"===n.data.file_extension||"xml"===n.data.file_extension||"xls"===n.data.file_extension||"xlsx"===n.data.file_extension||"tsv"===n.data.file_extension||"txt"===n.data.file_extension?Math.ceil(n.data.total_rows/n.data.file_iteration):Math.ceil(n.data.total_rows/3),a="",r="",this.state.displayskip&&(a=this.state.skipField,r="skip"),this.state.displayDuplicate?(a=this.state.updateField,r="normal"):this.state.displayAcfFieldsUpdate?(a=this.state.acfFieldsName,r="acf"):this.state.displayJetEngineFieldsUpdate?(a=this.state.jetengineFieldsName,r="jetengine"):this.state.displayToolsetFieldsUpdate?(a=this.state.toolsetFieldsName,r="toolset"):this.state.displayPodsFieldsUpdate?(a=this.state.podsFieldsName,r="pods"):this.state.displayMetaboxFieldsUpdate&&(a=this.state.metaboxFieldsName,r="metabox"),this.context.bulkImportData.totalPages=o,this.context.bulkImportData.totalRows=parseInt(n.data.total_rows),this.context.bulkImportData.fileName=n.data.file_name,this.context.bulkImportData.fileSize=n.data.filesize,this.context.bulkImportData.fileExtension=n.data.file_extension,this.context.bulkImportData.fileIteration=parseInt(n.data.file_iteration),this.context.bulkImportData.Check=a,this.context.bulkImportData.unmatchedRow=this.state.unmatchedMode,this.context.bulkImportData.UpdateUsing=r,this.context.setBulkImportData(this.context.bulkImportData),this.context.setShowComponent("bulk-import"),e.abrupt("return");case 37:e.prev=37,e.t0=e.catch(13);case 39:case"end":return e.stop()}}),e,this,[[13,37]])}))),function(){return f.apply(this,arguments)})},{key:"importConfiguration",value:(h=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.displayDuplicate||""!=this.state.updateField){e.next=3;break}return bn.error("Please Select field to Handle Duplicate"),e.abrupt("return");case 3:return this.context.setShowComponent("import-process"),(t=new FormData).set("action","StartImport"),"",n=this.context.rollBackMode?"true":"false",o=this.state.unmatchedMode,t.set("HashKey",this.context.csvInfo.hashKey),t.set("Check",this.state.updateField),t.set("skip",this.state.skipField),t.set("RollBack",n),t.set("UnmatchedRow",o),t.set("securekey",window.smack_nonce_object_pro.nonce),this.context.setShowImportLog(!0),this.context.setImportLogDataLink("".concat(window.wpr_object.logfielpath,"/").concat(this.context.csvInfo.hashKey,"/").concat(this.context.csvInfo.hashKey,".html")),this.setState({loading:!0}),e.prev=19,e.next=22,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 22:return e.sent,this.setState({loading:!1}),e.abrupt("return");case 28:e.prev=28,e.t0=e.catch(19);case 30:case"end":return e.stop()}}),e,this,[[19,28]])}))),function(){return h.apply(this,arguments)})},{key:"getUtcTimeZones",value:(d=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","timezone"),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=3,e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(!(n=e.sent)||!n.data){e.next=14;break}if(200!=n.status){e.next=14;break}return this.setState({}),this.setState({timeZones:n.data},(function(){})),this.state.selectTimeZones=this.state.timeZones.map((function(e){return{label:e.offset,value:e.timezone}})),this.setState({selectTimeZones:this.state.selectTimeZones}),e.abrupt("return");case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),console.log(e.t0);case 19:case"end":return e.stop()}}),e,this,[[3,16]])}))),function(){return d.apply(this,arguments)})},{key:"getUpdateFields",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","updatefields"),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=6,e.next=9,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 9:n=e.sent,this.setState({loading:!1}),n&&n.data&&200==n.status&&this.setState({updateFieldsList:n.data.update_fields,categoryOptions:n.data.category_list,CustomPostCheck:n.data.CustomPostCheck}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),console.log(e.t0);case 17:case"end":return e.stop()}}),e,this,[[6,14]])}))),function(){return a.apply(this,arguments)})},{key:"updateMaintenanceMode",value:(o=u(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","settings_options"),n.set("option","enable_main_mode"),n.set("value",t),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:e.sent,this.context.setMaintenanceMode(t);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"handleChange",value:function(e){this.setState((0,p.A)({},e.target.name,e.target.value),(function(){}))}},{key:"handleDateChange",value:function(e){this.setState({selectedDate:e})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,o=n.displayDuplicate,a=n.displayskip;!t.displayDuplicate&&!t.displayskip||o||a||(this.setState({isCategorieChecked:!1,selectedCategories:[]}),this.context.setcategoryimportconfigvalue([]))}},{key:"render",value:function(){var e=this,n=this.state,o=(n.displayDuplicate,n.displayskip,this.state.categoryOptions),a=this.state,r=a.skipField,i=a.updateField,s=(a.selectedUTC,a.selectedDate),l=a.scheduleTime,c=a.CustomPostCheck,d=a.scheduleFrequency;return t.createElement("div",{id:"import-configuration",className:"container"},t.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30"},t.createElement("div",{className:"row export mt20"},!["WooCommerce Orders","Media","WooCommerce Coupons","WooCommerce Product Variations","WooCommerce Refunds","WooCommerce Attributes","Comments","nav_menu_item","widgets","elementor_library"].includes(this.context.csvInfo.selectedtype)&&t.createElement(VI,{ref:this.mediaHandlingRef}),t.createElement("h1",{className:"main-heading pr15 pl15 mb5 col-md-12"},"Import configuration Section        ",t.createElement("span",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"inline-flex",alignItems:"center",marginLeft:"10px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){e.context.setDrawerValue("import#5"),e.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{style:{display:this.state.hiddenOnSchedule},className:"advanced-filter col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_safe_prestate_rollback",checked:this.context.rollBackMode,onChange:function(t){e.context.setRollBackMode(t.target.checked)}}),t.createElement("label",{for:"import_configuration_safe_prestate_rollback"},"Enable safe prestate Rollback ",t.createElement("b",null,"(Backup before import)")))),t.createElement("div",{style:{display:this.state.hiddenOnSchedule},className:"advanced-filter col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_maintenance_mode",checked:this.context.maintenanceMode,onClick:function(t){e.updateMaintenanceMode(t.target.checked)}}),t.createElement("label",{for:"import_configuration_maintenance_mode"},"Do you want to SWITCH ON Maintenance mode while import ?"))),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("div",{className:"advanced-filter col-md-12"},"elementor_library"!==this.context.csvInfo.selectedtype&&t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_skip_handle",className:"",onChange:function(t){t.target.checked?e.setState({displayskip:!0,displayAcfFieldsUpdate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayDuplicate:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayskip:!1})},checked:this.state.displayskip}),t.createElement("label",{for:"import_configuration_skip_handle"},"Skip update, If any extra records found")),t.createElement("div",{className:"row mt20 col-md-6",style:{display:this.state.displayskip?"block":"none"}},t.createElement("div",{className:"form-group col"},"Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",null,this.context.language.Mentionthefieldswhichyouwanttohandleduplicates):"",t.createElement("select",{className:"select form-control",name:"skipField",value:r,onChange:this.handleChange},t.createElement("option",{value:""},"Select Field"),0!=this.state.updateFieldsList.length?this.state.updateFieldsList.map((function(e,n){return t.createElement("option",{value:e},e)})):void 0)))):"",t.createElement("div",{className:"advanced-filter col-md-12"},"elementor_library"!==this.context.csvInfo.selectedtype&&t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_duplicate_handle",className:"",onChange:function(t){t.target.checked?e.setState({displayDuplicate:!0,displayAcfFieldsUpdate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayDuplicate:!1})},checked:this.state.displayDuplicate}),t.createElement("label",{for:"import_configuration_duplicate_handle"},"Do you want to handle the duplicate on existing records ?")),t.createElement("div",{className:"row mt20 col-md-6",style:{display:this.state.displayDuplicate?"block":"none"}},t.createElement("div",{className:"form-group col"},"Insert"===this.context.csvInfo.replaceExistingItem?t.createElement("label",null,this.context.language.Mentionthefieldswhichyouwanttohandleduplicates):"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",null,this.context.language.Updaterecordsbasedon):"",t.createElement("select",{className:"select form-control",name:"updateField",value:i,onChange:this.handleChange},t.createElement("option",{value:""},"Select Field"),0!=this.state.updateFieldsList.length?this.state.updateFieldsList.map((function(e,n){return t.createElement("option",{value:e},e)})):void 0)))),(c||"WooCommerce Product"===this.context.csvInfo.selectedtype||"Posts"===this.context.csvInfo.selectedtype||"Pages"===this.context.csvInfo.selectedtype)&&"Insert"===this.context.csvInfo.replaceExistingItem&&t.createElement("div",{className:"advanced-filters col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_data_specific_category",onChange:this.handleCheckboxChange,checked:this.state.isCategorieChecked}),t.createElement("label",{htmlFor:"import_data_specific_category"},"Do you want to import data filtered by category?")),this.state.isCategorieChecked&&t.createElement("div",{className:"category-dropdown"},t.createElement("label",{style:{marginLeft:"14px"}},"Choose Category:"),t.createElement(Jh,{id:"catagoryoptionimportconfig",options:o.map((function(e){return{label:e,value:e}})),isMulti:!0,onChange:function(t){var n=t?t.map((function(e){return e.value})):[];e.setState({selectedCategories:n}),e.context.setcategoryimportconfigvalue(n)}}))),(c||"WooCommerce Product"===this.context.csvInfo.selectedtype||"Posts"===this.context.csvInfo.selectedtype||"Page"===this.context.csvInfo.selectedtype)&&"Update"===this.context.csvInfo.replaceExistingItem&&t.createElement("div",{className:"advanced-filters col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_data_specific_category",onChange:function(t){var n=e.state,o=n.displayDuplicate,a=n.displayskip;if(o||a)return o&&a?(e.setState({isCategorieChecked:!1,selectedCategories:[]}),e.context.setcategoryimportconfigvalue([]),void bn.warn("Both 'Display Duplicate' and 'Display Skip' are selected. Categories have been reset.")):void e.setState({isCategorieChecked:t.target.checked});bn.warn("Choose 'Skip update' or 'Duplicate existing records' before selecting this option.")},checked:this.state.isCategorieChecked}),t.createElement("label",{htmlFor:"import_data_specific_category"},"Do you want to update records based on a selected category?")),this.state.isCategorieChecked&&t.createElement("div",{className:"category-dropdown"},t.createElement("label",{style:{marginLeft:"14px"}},"Choose Category:"),t.createElement(Jh,{id:"catagoryoptionimportconfig",options:o.map((function(e){return{label:e,value:e}})),isMulti:!0,onChange:function(t){var n=t?t.map((function(e){return e.value})):[];e.setState({selectedCategories:n}),e.context.setcategoryimportconfigvalue(n)}}))),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isAcfField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_acf_fields_update",className:"",onChange:function(t){t.target.checked?e.setState((0,p.A)((0,p.A)((0,p.A)({displayAcfFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1},"displayDuplicate",!1),"displayJetEngineFieldsUpdate",!1),"displayskip",!1)):e.setState({displayAcfFieldsUpdate:!1})},checked:this.state.displayAcfFieldsUpdate}),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_acf_fields_update"},"Do you want to update the records based on ACF Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayAcfFieldsUpdate?"block":"none"}},"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on ACF text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_acf_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.acfFieldsName?"0.5":"1"},onChange:function(t){e.setState({acfFieldsName:t.target.value})},value:this.state.acfFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isJetengineField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_jetengine_fields_update",className:"",onChange:function(t){t.target.checked?e.setState((0,p.A)((0,p.A)({displayJetEngineFieldsUpdate:!0,displayAcfFieldsUpdate:!1,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1},"displayDuplicate",!1),"displayskip",!1)):e.setState({displayJetEngineFieldsUpdate:!1})},checked:this.state.displayJetEngineFieldsUpdate}),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_jetengine_fields_update"},"Do you want to update the records based on JETENGINE Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayJetEngineFieldsUpdate?"block":"none"}},"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on JETENGINE text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_jetengine_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.jetengineFieldsName?"0.5":"1"},onChange:function(t){e.setState({jetengineFieldsName:t.target.value})},value:this.state.jetengineFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isMetaboxField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_metabox_fields_update",className:"",onChange:function(t){t.target.checked?e.setState({displayMetaboxFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayAcfFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayMetaboxFieldsUpdate:!1})},checked:this.state.displayMetaboxFieldsUpdate}),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_metabox_fields_update"},"Do you want to update the records based on Metabox Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayMetaboxFieldsUpdate?"block":"none"}},"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on Metabox text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_acf_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.metaboxFieldsName?"0.5":"1"},onChange:function(t){e.setState({metaboxFieldsName:t.target.value})},value:this.state.metaboxFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isPodsField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_pods_fields_update",className:"",onChange:function(t){t.target.checked?e.setState({displayPodsFieldsUpdate:!0,displayDuplicate:!1,displayToolsetFieldsUpdate:!1,displayAcfFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayPodsFieldsUpdate:!1})},checked:this.state.displayPodsFieldsUpdate}),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_pods_fields_update"},"Do you want to update the records based on Pods Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayPodsFieldsUpdate?"block":"none"}},"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on Pods text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_pods_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.podsFieldsName?"0.5":"1"},onChange:function(t){e.setState({podsFieldsName:t.target.value})},value:this.state.podsFieldsName})):"")),t.createElement("div",{className:"advanced-filter col-md-12",style:{display:this.context.isToolsetField?"block":"none"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_toolset_fields_update",className:"",onChange:function(t){t.target.checked?e.setState({displayToolsetFieldsUpdate:!0,displayDuplicate:!1,displayAcfFieldsUpdate:!1,displayPodsFieldsUpdate:!1,displayMetaboxFieldsUpdate:!1,displayskip:!1,displayJetEngineFieldsUpdate:!1}):e.setState({displayToolsetFieldsUpdate:!1})},checked:this.state.displayToolsetFieldsUpdate}),"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("label",{for:"import_configuration_toolset_fields_update"},"Do you want to update the records based on Toolset Fields ?"):""),t.createElement("div",{className:"row mt20 col-md-12",style:{display:this.state.displayToolsetFieldsUpdate?"block":"none"}},"Update"===this.context.csvInfo.replaceExistingItem||"Import-Update"===this.context.csvInfo.replaceExistingItem?t.createElement("div",{className:"form-group col-md-12"},t.createElement("label",{className:"mr10"},"Update records based on Toolset text or number fields"),t.createElement("input",{type:"text",id:"import_configuration_toolset_fields_update_on_text",className:"",placeholder:"Enter the fieldname",style:{opacity:""==this.state.toolsetFieldsName?"0.5":"1"},onChange:function(t){e.setState({toolsetFieldsName:t.target.value})},value:this.state.toolsetFieldsName})):"")),this.context.serverName.includes("nginx")?"":t.createElement("div",{className:"advanced-filter col-md-12",style:{display:"server"===this.context.csvInfo.connectionType?"none":"block",marginTop:"-2px"}},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_split_record",checked:this.state.showAdaptiveProcessingOptions,onClick:function(t){e.setState({showAdaptiveProcessingOptions:t.target.checked})}}),t.createElement("label",{for:"import_configuration_split_record"},"Do you want adaptive file processing of record"," ","?"),this.state.showAdaptiveProcessingOptions?t.createElement("div",{className:"ml-5"},t.createElement("div",{className:"radio"},t.createElement("input",{type:"radio",id:"iterative_piece_by_piece_processing",checked:this.state.iterativePieceByPieceProcessing,onClick:function(t){e.setState({iterativePieceByPieceProcessing:t.target.checked,highSpeedSmallFileProcessing:!1})}}),t.createElement("label",{for:"high_speed_file_processing"},"Iterative, Piece-by-Piece Processing"),this.state.iterativePieceByPieceProcessing?t.createElement("div",{className:"ml-5"},t.createElement("div",{className:"checkbox"},t.createElement("label",{for:"records_need_to_iterate"},"In each iteration how many records need to process"),t.createElement("input",{type:"number",max:this.context.recordcount>=1e3?20:10,min:1,value:this.state.iterationProcessRecordNumber||0,id:"records_processed_per_iteration",onChange:function(t){var n=parseInt(t.target.value,10);e.context.recordcount>=1e3?n>=1&&n<=20&&e.setState({iterationProcessRecordNumber:n}):n>=1&&n<=10&&(e.setState({iterationProcessRecordNumber:n}),10===n&&bn.warning("You currently have ".concat(e.context.recordcount," records. Iteration can only be increased if records exceed 1000.")))}})),t.createElement("br",null),this.context.recordcount>=1e3&&t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",checked:this.state.splitFileRecordChunk,id:"split_record_chunk",onChange:function(t){e.setState({splitFileRecordChunk:t.target.checked})},disabled:this.context.recordcount<1e3}),t.createElement("label",{htmlFor:"split_record_chunk"},"Do you need to split the file into 1000 records and process it"))):"")):"")),t.createElement("div",{className:"advanced-filter col-md-12"},t.createElement("div",{className:"checkbox"},t.createElement("input",{type:"checkbox",id:"import_configuration_schedule_import",checked:this.state.enableSchedule,onClick:function(t){e.setEnableSchedule(t.target.checked)}}),t.createElement("label",{for:"import_configuration_schedule_import"},this.context.language.DoyouwanttoSchedulethisImport," ?")),t.createElement("div",{className:"mt20 col-md-12",style:{display:this.state.showOnSchedule}},t.createElement("div",{className:"row"},t.createElement("div",{className:"form-group col-md-3"},t.createElement("label",{for:""},this.context.language.ScheduleDate),t.createElement(nu(),{className:"form-control",name:"selectedDate",minDate:new Date,selected:s,onChange:this.handleDateChange}),t.createElement("i",{className:"csv-icon-calendar2 input-icon"})),t.createElement("div",{className:"form-group col-md-3"},t.createElement("label",{for:""},this.context.language.ScheduleFrequency),t.createElement("select",{className:"select form-control",name:"scheduleFrequency",required:!0,value:d,onChange:this.handleChange},t.createElement("option",{value:"OneTime"},this.context.language.OneTime),t.createElement("option",{value:"Daily"},this.context.language.Daily),t.createElement("option",{value:"Weekly"},this.context.language.Weekly),t.createElement("option",{value:"Monthly"},this.context.language.Monthly),t.createElement("option",{value:"Every 4 hours"},this.context.language.Every4hours),t.createElement("option",{value:"Every 2 hours"},this.context.language.Every2hours),t.createElement("option",{value:"Hourly"},this.context.language.Hourly),t.createElement("option",{value:"Every 30 mins"},this.context.language.Every30mins),t.createElement("option",{value:"Every 15 mins"},this.context.language.Every15mins),t.createElement("option",{value:"Every 10 mins"},this.context.language.Every10mins),t.createElement("option",{value:"Every 5 mins"},this.context.language.Every5mins))),t.createElement("div",{className:"form-group col-md-4"},t.createElement("label",{htmlFor:""},this.context.language.TimeZone),t.createElement(Jh,{style:{borderRadius:"5px",backgroundColor:"white"},options:this.state.selectTimeZones,value:this.state.selectedUTC?{value:this.state.selectedUTC,label:this.state.selectedUTC}:null,onChange:function(t){t&&e.setState({selectedUTC:t.value})}})),t.createElement("div",{className:"form-group col-md-2"},t.createElement("label",{for:""},this.context.language.ScheduleTime),t.createElement("input",{type:"text",name:"scheduleTime",required:!0,value:l,className:"form-control",onChange:this.handleChange}),t.createElement("small",{className:"form-text text-muted"},this.context.language.Format,":21: 30"))))),t.createElement("div",{className:"form-group col-md-12 mt15"},t.createElement("div",{className:"float-left"},"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"nav_menu_item"===this.context.csvInfo.selectedtype||"widgets"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?t.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back):"elementor_library"===this.context.csvInfo.selectedtype?t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},this.context.language.Back):t.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setIsOnclick(!1),"Maping-section"===e.context.TabValue?e.context.setShowComponent("mapping-section"):"Drag&Drop-section"===e.context.TabValue?e.context.setShowComponent("dragdrop-section"):e.context.setShowComponent("mapping-section")}},this.context.language.Back)),t.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:t.createElement(t.Fragment,null,t.createElement("button",{style:{display:this.state.showOnSchedule},type:"button",className:"smack-btn smack-btn-primary",disabled:this.state.scheduled,onClick:function(){e.scheduleConfiguration()}},this.state.scheduled?this.context.language.Scheduled:this.context.language.Schedule),t.createElement("button",{type:"button",style:{display:this.state.hiddenOnSchedule},className:"smack-btn smack-btn-primary",onClick:function(){e.state.totalRecords>2e3?e.confirmationToScheduledExport():e.startBulkImport()}},"Insert"===this.context.csvInfo.replaceExistingItem?this.context.language.Import:"Update"===this.context.csvInfo.replaceExistingItem?this.context.language.Update:"MediaUpdate"===this.context.csvInfo.replaceExistingItem?this.context.language.Media:this.context.language.ImportUpdates)))))))}}]);var o,a,d,h,f,g,v}(t.Component);function sO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(n),!0).forEach((function(t){(0,p.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cO=function(){return!!e})()}(0,p.A)(iO,"contextType",f);var dO=Rd.div(JI||(JI=g(["\n  padding: 50px;\n  background: white;\n  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);\n  border-radius: 6px;\n"]))),uO=Rd.button(XI||(XI=g(["\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: 'Poppins', sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background-color: #00a699;\n    border-color: #00a699;\n    color: #ffffff;\n    margin-left:10px;\n}\n"]))),pO=Rd.h1(QI||(QI=g(['\n  font-size: 30px;\n  font-family: "Poppins";\n  font-weight: 500;\n  margin-bottom: 0;\n']))),hO=Rd.p(ZI||(ZI=g(["\n  font-size: 16px;\n"]))),mO=Rd.button(eO||(eO=g(['\n  font-size: 1rem;\n  padding: 8px 20px;\n  line-height: 1.5em;\n  font-weight: 600;\n  text-transform: uppercase;\n  -webkit-transition: all 200ms ease;\n  -moz-transition: all 200ms ease;\n  -ms-transition: all 200ms ease;\n  -o-transition: all 200ms ease;\n  transition: all 200ms ease;\n  font-family: "Poppins", sans-serif;\n  border: none;\n  cursor: pointer;\n  border-radius: 6px;\n  background: #ffffff;\n  border: 1px solid #a0aec0;\n  color: #4a5568;\n  &:hover {\n    background-color: #e2e8f0;\n  }\n']))),fO=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,cO()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!1,alert:"",responsefilename:"",filepath:""},t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){var e=this.context,t=e.csvInfo;(0,e.setCSVInfo)(lO(lO({},t),{},{replaceExistingItem:"Media"===t.selectedtype?"MediaUpdate":"Insert"})),this.context.setSelectedTabOnCookies("manager")}},{key:"sendConfiguration",value:(a=u(m().mark((function e(){var t,n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),t.set("OperationMode","advancedMode"),t.set("securekey",window.smack_nonce_object_pro.nonce),this.setState({loading:!0}),e.prev=8,e.next=11,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 11:(n=e.sent)&&n.data&&(this.context.setRecordcount(n.data.total_records),200==n.status&&n.data.success&&(o=n.data.hashkey,this.setState({alert:o,responsefilename:this.context.csvInfo.fileName,filepath:n.data.file_path,loading:!1}),this.context.setCurrentUser(n.data.currentuser),!0===this.context.unmatchedrow&&bn.info("Delete data from WordPress toggle is on, so this import will replace existing records.",{position:bn.POSITION.TOP_RIGHT,autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0}),!0===n.data.show_template?(this.context.setIsTemplate(!0),this.context.setSaveTemplateData(n.data.info),this.context.setShowComponent("save-template")):(this.context.setCsvFields(n.data.csv_fields),a=mu(n.data.fields),this.context.setAllPluginFields(a),"xml"===this.context.csvInfo.fileType?this.context.setShowComponent("dragdrop-section"):(this.context.csvInfo.fileName.startsWith("smbundle_"),this.context.setShowComponent("mapping-section"))))),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(8),console.log(e.t0);case 18:case"end":return e.stop()}}),e,this,[[8,15]])}))),function(){return a.apply(this,arguments)})},{key:"ElementorTemplate",value:(o=u(m().mark((function e(t,n,o){var a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","elementorTemplate"),a.set("HashKey",t),a.set("filename",n),a.set("filepath",o),e.prev=5,e.next=8,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(!(r=e.sent)||!r.data){e.next=14;break}if(200!=r.status||!r.data.success){e.next=14;break}return r.data.hashKey,this.context.setShowComponent("import-config"),e.abrupt("return");case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),console.log(e.t0);case 19:case"end":return e.stop()}}),e,this,[[5,16]])}))),function(e,t,n){return o.apply(this,arguments)})},{key:"confirmationToViaElementor",value:function(e,n,o){var a=this;(0,yn.ZX)({customUI:function(r){var i=r.onClose;return t.createElement(dO,null,t.createElement(pO,null,"Are you sure?"),t.createElement(hO,null,"You want to import this template through elementor?"),t.createElement(mO,{onClick:i},"Not Now"),t.createElement(uO,{onClick:function(){a.ElementorTemplate(e,n,o),i()}},"Yes, Import it!"))}})}},{key:"render",value:function(){var e,n=this,o=this.context,a=o.csvInfo,r=o.setCSVInfo,i="MediaUpdate"===a.replaceExistingItem,s="Media"===a.selectedtype,l=(a.selectedtype,"Insert"===a.replaceExistingItem||"Update"===a.replaceExistingItem);return t.createElement("div",{className:"csv-importer-panel mt20 container"},t.createElement("div",{className:"file-info-container clearfix"},t.createElement("h3",{className:"file-name"},this.context.csvInfo.fileName," -"," ",t.createElement("span",{className:"size"},this.context.csvInfo.fileSize),"     ",t.createElement("span",{style:{color:"#459cdd",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",marginLeft:"-5px"},onMouseEnter:function(e){return e.target.style.color="red"},onMouseLeave:function(e){return e.target.style.color="#459cdd"},onClick:function(){n.context.setDrawerValue("import#2"),n.context.setDrawerOpen(!0)}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}}),"Need a Help?")),t.createElement("div",{class:"d-flex justify-content-center mt40"},t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input ",onClick:function(){n.context.setCSVInfo(lO(lO({},n.context.csvInfo),{},{replaceExistingItem:"Insert"}))},type:"radio",id:"insertRad",value:"Insert",checked:"Insert"===this.context.csvInfo.replaceExistingItem,disabled:i})," ",t.createElement("label",{for:"insertRad",class:"form-check-label",style:{color:i?"grey":"black"}},this.context.language.FreshImport)),t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input ",onClick:function(){r(lO(lO({},a),{},{replaceExistingItem:"Update"}))},type:"radio",id:"updateRad",value:"Update",checked:"Update"===this.context.csvInfo.replaceExistingItem,disabled:i||"elementor_library"===a.selectedtype})," ","elementor_library"===this.context.csvInfo.selectedtype?t.createElement("label",{for:"updateRad",class:"form-check-label",style:{opacity:.6}},this.context.language.UpdateContent):t.createElement("label",{for:"updateRad",class:"form-check-label"},this.context.language.UpdateContent)),t.createElement("div",{className:"form-check form-check-inline form-group"},t.createElement("input",{className:"form-check-input",onClick:function(){r(lO(lO({},a),{},{replaceExistingItem:"MediaUpdate"}))},type:"radio",id:"mediaUpdateRad",value:"MediaUpdate",checked:"MediaUpdate"===this.context.csvInfo.replaceExistingItem,disabled:l})," ")),t.createElement("div",{className:"d-flex justify-content-center mt40"},t.createElement("div",{className:"form-group"},t.createElement("label",null,"Import each record as"),t.createElement("div",null,t.createElement("select",{value:this.context.csvInfo.selectedtype,className:"select form-control",onChange:function(e){n.context.setCSVInfo(lO(lO({},n.context.csvInfo),{},{selectedtype:e.target.value}))},name:"",id:"",disabled:s},t.createElement("optgroup",{label:"PostType"},this.context.csvInfo.postTypes.map((function(e){return t.createElement("option",{value:e},e)}))),t.createElement("optgroup",{label:"Taxonomy"},this.context.csvInfo.taxonomys.map((function(e){return t.createElement("option",{value:e},e)}))))))),t.createElement("div",{class:"col-md-12 mt40 p0"},t.createElement("div",{class:"float-left"},t.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){n.context.setShowComponent("upload-dashboard")}},"Back")),t.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:this.sendConfiguration.bind(this),value:null!==(e=this.context.csvInfo.fileName)&&void 0!==e&&e.startsWith("smbundle_")?"Oneclick Import":this.context.language.Continue})))))}}]);var o,a}(t.Component);function gO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gO=function(){return!!e})()}(0,p.A)(fO,"contextType",f);var vO=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),(t=(0,s.A)(o,gO()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i))).state={loading:!0,check:"",fileName:"",processingRecords:"",remainingRecords:"",totalRecords:"",fileSize:"",process:"",remainingTime:"00:00:00",stopWatch:"00:00:00",progWidth:"0",importStatus:"Processing",enableDownload:!1,controlImportProcess:!0,rollBackProgress:!1},t.message=[],t.status=[],t.verify=[],t.tag=[],t.categories=[],t.loopCount=0,t.remainingTime=0,t.stopSeconds=0,t.stopMinutes=0,t.stopHours=0,t.onUnload=t.onUnload.bind(t),t.progressWidth,t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"onUnload",value:(p=u(m().mark((function e(t){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","ImportStop"),n.set("Stop","false"),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=6,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:e.sent,t.returnValue="Hellooww";case 8:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.refreshIntervalId=setInterval(function(){this.getProgress.bind(this)(),this.state.loading&&this.state.controlImportProcess&&this.stopWatch()}.bind(this),1e3),window.addEventListener("beforeunload",this.onUnload)}},{key:"getProgress",value:(d=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","GetProgress"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=6,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:if(200==(n=e.sent).status&&n.data.success){for(this.message=[],this.status=[],this.verify=[],this.tag=[],this.categories=[],o=0;o<n.data.Info.length;o++)this.message.push(n.data.Info[o].message),this.status.push(n.data.Info[o].status),this.verify.push(n.data.Info[o].verify),this.tag.push(n.data.Info[o].tags),this.categories.push(n.data.Info[o].categories);this.setState({fileName:n.data.file_name}),this.setState({fileSize:n.data.filesize}),this.setState({processingRecords:n.data.processing_records}),this.setState({remainingRecords:n.data.remaining_records}),this.setState({totalRecords:n.data.total_records}),this.setState({loading:n.data.progress}),this.setState({importStatus:n.data.status}),this.loopCount=this.loopCount+1,n.data.processing_records>2&&(this.remainingTime=this.loopCount/n.data.processing_records*n.data.remaining_records,this.secondsToHms(this.remainingTime)),this.loadProgress(n.data)}case 8:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"loadProgress",value:function(e){e.processing_records!==e.total_records?this.progressWidth=e.processing_records/e.total_records*100:e.progress||(this.progressWidth=e.processing_records/e.total_records*100),this.progressWidth=Math.round(this.progressWidth),this.progressWidth>.9&&this.setState({progWidth:this.progressWidth})}},{key:"secondsToHms",value:function(e){e=Number(e);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60);t.toString().length<2&&(t="0"+t),n.toString().length<2&&(n="0"+n),o.toString().length<2&&(o="0"+o);var a=t+":"+n+":"+o;this.setState({remainingTime:a})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"accessImportProcess",value:(a=u(m().mark((function e(t){var n,o,a,r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.target.value,o="","Pause"===n?(this.setState({controlImportProcess:!1}),o="false",clearInterval(this.refreshIntervalId)):(this.setState({controlImportProcess:!0}),o="true"),(a=new FormData).set("action","ImportState"),a.set("State",o),a.set("HashKey",this.context.csvInfo.hashKey),a.set("securekey",window.smack_nonce_object_pro.nonce),e.next=10,Lt({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:200==(r=e.sent).status&&r.data.import_state&&(r.data.import_state?this.setState({loading:!1}):this.setState({loading:!0}),this.refreshIntervalId=setInterval(function(){this.getProgress.bind(this)(),this.state.loading&&this.state.controlImportProcess&&this.stopWatch()}.bind(this),1e3));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"startRollBackMode",value:(o=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({rollBackProgress:!0}),(t=new FormData).set("action","rollback_now"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:n=e.sent,this.setState({rollBackProgress:!1}),(o=n.data).success?(this.context.setRollBackMode(!1),bn.success(o.message)):bn.error(o.message);case 11:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n={width:this.state.progWidth+"%"};return!this.state.loading&&this.context.showImportLog,t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{className:" container"},t.createElement("div",{className:"importer-log"},t.createElement("div",{className:"card csv-importer-panel mt40 col-md-12"},t.createElement("div",{className:"card-body"},t.createElement("h4",{className:"text-center"},"Error occured due to 504 Gateway Time-out"===this.context.importStatus?"Error occured due to 504 Gateway Time-out":"Import ".concat(this.state.importStatus)),t.createElement("div",{className:"row justify-content-center"},t.createElement("div",{className:"mt30 "},"Completed"===this.state.importStatus?t.createElement(t.Fragment,null,t.createElement("input",{type:"button",className:"smack-btn btn-default",value:"Close",onClick:function(t){e.context.setShowComponent("upload-dashboard"),window.location.reload()}}),this.context.rollBackMode?t.createElement(t.Fragment,null,t.createElement("input",{type:"button",className:"ml20 smack-btn smack-btn-danger",value:"RoleBack Now",onClick:function(t){e.startRollBackMode()}})," "," ",this.state.rollBackProgress?t.createElement("div",{className:"btn ajax-loader loading",style:{marginLeft:"25px",marginRight:"0",bottom:"5px",padding:"0"}}):""," "):void 0):this.state.controlImportProcess?t.createElement("input",{type:"button",className:"smack-btn smack-btn-warning",value:"Pause",onClick:this.accessImportProcess.bind(this)}):t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",value:"Resume",onClick:this.accessImportProcess.bind(this)}))),t.createElement("table",{className:"table mt40"},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"text-left"},this.context.language.FileName,":"," ",t.createElement("span",null,this.state.fileName)),t.createElement("td",{className:"text-right"},this.context.language.FileSize,":"," ",t.createElement("span",null,this.state.fileSize))),t.createElement("tr",null,t.createElement("td",{className:"text-left"},this.context.language.Process,":"," ",t.createElement("span",null,this.context.csvInfo.replaceExistingItem)),t.createElement("td",{className:"text-right"},this.context.language.Totalnoofrecords,":"," ",t.createElement("span",null,this.state.totalRecords))),t.createElement("tr",null,t.createElement("td",{className:"text-left"},t.createElement("span",{className:"font-weight-normal text-success"}," ",this.context.language.CurrentProcessingRecord,":"," ",t.createElement("span",null,this.state.processingRecords))),t.createElement("td",{className:"text-right"},t.createElement("span",{className:"font-weight-normal text-danger"},this.context.language.RemainingRecord,":"," ",t.createElement("span",null,this.state.remainingRecords)))))),t.createElement("div",{className:"card-body px-3"},t.createElement("div",{className:"importing-details"},t.createElement("div",{className:"progress-status"},"Processing"===this.state.importStatus?"In Progress":""),t.createElement("div",{className:"import-progress"},t.createElement("div",{className:"progress-loading"},this.state.progWidth+"%"," "," ",this.context.language.Completed),t.createElement("div",{className:"progress-timing"},t.createElement("i",{className:"csv-icon-schedule"})," "," ",this.context.language.TimeElapsed,":"," ",t.createElement("span",null," "," ",this.state.stopWatch,"/"," "),this.state.remainingTime,"(",this.context.language.approximate,")"))),t.createElement("div",{className:"progress mt5 mb40"},t.createElement("div",{className:"progress-bar",style:n,role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"smack-btn smack-btn-primary",href:this.context.importLogDataLink},t.createElement("i",{className:"csv-icon-download-cloud mr10"})," ",this.context.language.DownloadLog))))))),t.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#displayLogText",id:"triggerLog"}),t.createElement("div",{id:"displayLogText",className:"modal fade",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("h1",{class:"main-heading"},"Import Log for ",this.state.fileName),t.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("div",{id:"showLogText"}))))))}}]);var o,a,d,p}(t.Component);(0,p.A)(vO,"contextType",f);const _O=vO;function bO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bO=function(){return!!e})()}var yO=function(e){function n(e){var t,o,a,i;return(0,r.A)(this,n),o=this,a=n,i=[e],a=(0,l.A)(a),t=(0,s.A)(o,bO()?Reflect.construct(a,i||[],(0,l.A)(o).constructor):a.apply(o,i)),(0,p.A)(t,"pauseBulkImport",u(m().mark((function e(){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","PauseImport"),n.set("HashKey",t.context.csvInfo.hashKey),e.next=5,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:o=e.sent,t.setState({controlImportProcess:!1}),o.data.pause_state&&t.timer&&clearInterval(t.timer);case 8:case"end":return e.stop()}}),e)})))),(0,p.A)(t,"resumeBulkImport",u(m().mark((function e(){var n,o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setState({controlImportProcess:!0}),(n=new FormData).set("action","ResumeImport"),n.set("HashKey",t.context.csvInfo.hashKey),e.next=6,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:(o=e.sent).data.resume_state&&("",a=t.context.rollBackMode?"true":"false",t.alternateWorker.bind(t)(t.context.csvInfo.hashKey,t.context.csvInfo.replaceExistingItem,a,t.context.bulkImportData.unmatchedRow,o.data.page_number,t.context.bulkImportData.totalPages,t.context.bulkImportData.Check,t.context.bulkImportData.UpdateUsing),t.timer=setInterval(t.stopWatch.bind(t),1e3));case 8:case"end":return e.stop()}}),e)})))),(0,p.A)(t,"bulkImportProcess",(function(){var e;e=t.context.rollBackMode?"true":"false";var n=t.context.bulkImportData.totalRows;"csv"===t.context.bulkImportData.fileExtension||"xml"===t.context.bulkImportData.fileExtension||"xls"===t.context.bulkImportData.fileExtension||"xlsx"===t.context.bulkImportData.fileExtension||"tsv"===t.context.bulkImportData.fileExtension||"txt"===t.context.bulkImportData.fileExtension?t.bulkImportCount=t.context.bulkImportData.fileIteration:t.bulkImportCount=3;var o=0*t.bulkImportCount+t.bulkImportCount;o>n&&(o=n);var a="1 - "+o;t.setState({processingRecords:a,remainingRecords:n}),t.alternateWorker.bind(t)(t.context.csvInfo.hashKey,t.context.csvInfo.replaceExistingItem,e,t.context.bulkImportData.unmatchedRow,1,t.context.bulkImportData.totalPages,t.context.bulkImportData.Check,t.context.bulkImportData.UpdateUsing,t.context.csvInfo.FileName,t.context.csvInfo.file_path),t.timer=setInterval(t.stopWatch.bind(t),1e3)})),(0,p.A)(t,"handleDownload",(function(){})),(0,p.A)(t,"handleFailedMedia",(function(){})),(0,p.A)(t,"handleClose1",(function(){t.setState({showModal:!1})})),(0,p.A)(t,"handleModalClose",(function(e){localStorage.setItem("previousUploadTap","import-update"),t.context.setImportProgressCompleted(!0)})),t.state={loading:!0,check:"",fileName:"",processingRecords:"",remainingRecords:"",totalRecords:"",fileSize:"",process:"",remainingTime:"00:00:00",stopWatch:"00:00:00",progWidth:"0",importStatus:"Processing",enableDownload:!1,controlImportProcess:!0,rollBackProgress:!1,importer_records:[],displayed_records:[],showDownloadBtn:!1,showDownloadBtn1:!1,showDownloadBtn2:!1,exportedFileUrl:"",failedFileUrl:"",exportedmediaFileUrl:"",mediaProgress:!1,filterId:0,showModal:!1,downloadLogLink:"",failedLogLink:""},t.bulkImportCount=3,t.loopCount=0,t.remainingTime=0,t.stopSeconds=0,t.stopMinutes=0,t.stopHours=0,t.progressWidth,t.url,t}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){console.log("datasample"),this.checkAjaxURL(),window.scrollTo(0,window.innerHeight/4),this.bulkImportProcess(),this.state.loading&&this.stopWatch(),"csv"===this.context.bulkImportData.fileExtension||"xml"===this.context.bulkImportData.fileExtension||"xls"===this.context.bulkImportData.fileExtension||"xlsx"===this.context.bulkImportData.fileExtension||"tsv"===this.context.bulkImportData.fileExtension||"txt"===this.context.bulkImportData.fileExtension?this.bulkImportCount=this.context.bulkImportData.fileIteration:this.bulkImportCount=3}},{key:"checkAjaxURL",value:function(){ajaxurl.includes("http")?this.url=ajaxurl:this.url=window.location.origin+ajaxurl}},{key:"loadProgress",value:function(e){e.processing_records!==e.total_records?this.progressWidth=e.processing_records/e.total_records*100:e.progress||(this.progressWidth=e.processing_records/e.total_records*100),this.progressWidth=Math.round(this.progressWidth),this.progressWidth>.9&&(this.progressWidth>100?this.setState({progWidth:100},(function(){})):this.setState({progWidth:this.progressWidth},(function(){})))}},{key:"componentWillUnmount",value:function(){}},{key:"alternateWorker",value:(f=u(m().mark((function e(t,n,o,a,r,i,s,l,c,d){var u,p,h,f,g,v,_,b,y,w;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u=r;case 1:if(!(u<=i)){e.next=49;break}return e.prev=2,p=performance.now(),(h=new FormData).append("action","bulk_import"),h.append("HashKey",t),h.append("Mode",n),h.append("PageNumber",u),h.append("RollBack",o),h.append("UnmatchedRow",a),h.append("Check",s),h.append("UpdateUsing",l),h.append("filename",c),h.append("file_path",d),h.set("mappingFilterCheck",this.context.MappedFilter),f=this.context.categoryimportconfigvalue||[],h.append("iscategories",f.length>0),h.append("Categories",JSON.stringify(f)),e.next=21,Lt({method:"post",url:ajaxurl,data:h,config:{headers:{"Content-Type":"multipart/form-data"},body:JSON.stringify({Categories:f})}});case 21:if(200!=(g=e.sent).status){e.next=34;break}if(v=performance.now(),_=g.data,console.log("reponse",_),b=[].concat(Mu(this.state.importer_records),[g.data.log_value?g.data.log_value:""]),console.log("newRecords",b),this.setState({importer_records:b,mediaProgress:g.data["media-progress"]}),y=((v-p)%6e4/1e3).toFixed(0),0!=_.success){e.next=33;break}return this.updateProgressBar({result:_,completedPage:u,secondsToComplete:y}),e.abrupt("break",49);case 33:this.updateProgressBar({result:_,completedPage:u,secondsToComplete:y});case 34:g.data.success?(console.log("Download link from response:",g.data.download_log_link),console.log("Media link from response:",g.data.media_link),this.setState({exportedFileUrl:g.data.download_log_link?g.data.download_log_link:"",exportedmediaFileUrl:g.data.media_link?g.data.media_link:"",showDownloadBtn:!0,showDownloadBtn2:!!g.data.media_link})):this.exportConfiguration(),g.data.success?this.setState({failedFileUrl:g.data["media-url"],showDownloadBtn1:!0}):this.setState({failedFileUrl:"",showDownloadBtn1:!1}),e.next=44;break;case 38:e.prev=38,e.t0=e.catch(2),u=i+1,"",w=504==e.t0.response.status||502==e.t0.response.status?"Error occured due to 504 Gateway Time-out":403==e.t0.response.status?"Error occured due to 403 Forbidden":500==e.t0.response.status?"Error occured due to 500. Kindly contact the support team.":e.t0.response.status,this.sendErrorStatus(i,w);case 44:if(this.state.controlImportProcess){e.next=46;break}return e.abrupt("return");case 46:u++,e.next=1;break;case 49:case"end":return e.stop()}}),e,this,[[2,38]])}))),function(e,t,n,o,a,r,i,s,l,c){return f.apply(this,arguments)})},{key:"sendErrorStatus",value:(h=u(m().mark((function e(t,n){var o,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=new FormData).set("action","send_error_status"),o.set("hash_key",this.context.csvInfo.hashKey),o.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt({method:"post",url:ajaxurl,data:o,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:(a=e.sent)&&a.data&&200==a.status&&a.data.success&&(this.context.setTotalRecords(a.data.total_records),this.context.setProcessedRecords(a.data.processed_records),this.context.setImportStatus(n),this.updateProgressBar({result:{success:!1},completedPage:t,secondsToComplete:0})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return h.apply(this,arguments)})},{key:"updateProgressBar",value:function(e){this.loopCount=this.loopCount+1;var t=e.result,n=e.completedPage,o=e.secondsToComplete;0==t.success&&this.timer&&clearInterval(this.timer);var a=this.context.bulkImportData.totalRows,r=Math.ceil(a/this.bulkImportCount),i=r-n,s=n*this.bulkImportCount+1,l=n*this.bulkImportCount+this.bulkImportCount;l>a&&(l=a);var c=s+" - "+l;s>a&&(c="",this.timer&&clearInterval(this.timer));var d=a-n*this.bulkImportCount;d<0&&(d=0),n!=r?this.setState({loading:!0}):this.setState({loading:!1,importStatus:"Completed",showModal:!0}),this.setState({remainingRecords:d,processingRecords:c});var u={total_records:a,processing_records:s,remaining_records:d};this.remainingTime=o*i,this.secondsToHms(this.remainingTime),this.loadProgress(u)}},{key:"secondsToHms",value:function(e){e=Number(e);var t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60);t.toString().length<2&&(t="0"+t),n.toString().length<2&&(n="0"+n),o.toString().length<2&&(o="0"+o);var a=t+":"+n+":"+o;this.setState({remainingTime:a})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"startRollBackMode",value:(d=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({rollBackProgress:!0}),(t=new FormData).set("action","rollback_now"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:n=e.sent,this.setState({rollBackProgress:!1}),(o=n.data).success?(this.context.setRollBackMode(!1),bn.success(o.message)):bn.error(o.message);case 11:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"downloadLog",value:(a=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","download_log"),n.set("filename",t),n.set("hashkey",this.context.csvInfo.hashKey),n.set("type",this.context.csvInfo.selectedtype),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:(o=e.sent).data.success?(this.setState({downloadLogLink:o.data.file_url}),document.getElementById("downloadFile").click()):bn.error("Log Doesn't Exists");case 10:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"downloadFailedLog",value:(o=u(m().mark((function e(t){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=new FormData).set("action","download_failed_log"),n.set("filename",t),n.set("hashkey",this.context.csvInfo.hashKey),n.set("type",this.context.csvInfo.selectedtype),n.set("securekey",window.smack_nonce_object_pro.nonce),e.next=8,Lt({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:(o=e.sent).data.success?(this.setState({failedLogLink:o.data.file_url}),document.getElementById("failedFile").click()):bn.error("Failed Log Doesn't Exists");case 10:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"render",value:function(){var e=this,n=[];this.state.importer_records.forEach((function(e){Object.values(e).forEach((function(e){n.push(e)}))})),n=Mu(n).reverse();var o={width:this.state.progWidth+"%"},a=(!this.state.loading&&this.context.showImportLog,this.state.showDownloadBtn,this.state.showDownloadBtn1,this.context.bulkImportData),r=a.fileSize,i=a.fileName,s=a.totalRows;return t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement("div",{className:" container"},t.createElement("div",{className:"importer-log"},t.createElement("div",{className:"card csv-importer-panel mt10 col-md-12"},t.createElement("div",{className:"card-body",style:{padding:"0.5rem 1rem 0.5rem 1rem"}},t.createElement("div",{className:"rollbackAlign"},"Completed"===this.state.importStatus?t.createElement(t.Fragment,null,this.context.rollBackMode?t.createElement(t.Fragment,null,this.state.rollBackProgress?t.createElement("p",null,this.context.loaderText):t.createElement("input",{type:"button",className:"ml20 smack-btn smack-btn-danger",value:"RoleBack Now",onClick:function(t){e.startRollBackMode()}})):void 0):this.state.controlImportProcess?t.createElement("input",{type:"button",className:"smack-btn smack-btn-warning",id:"smclose",value:"Pause",onClick:this.pauseBulkImport}):t.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",value:"Resume",onClick:this.resumeBulkImport})),t.createElement("table",{className:"table",style:{marginBottom:"0rem"}},t.createElement("tbody",null,t.createElement("tr",null,t.createElement("td",{className:"text-left",style:{padding:"3px"}},this.context.language.FileName,":",t.createElement("span",null,i)),t.createElement("td",{className:"text-right",style:{padding:"3px"}},this.context.language.FileSize,":",t.createElement("span",null,r))),t.createElement("tr",null,t.createElement("td",{className:"text-left",style:{padding:"3px"}},this.context.language.Process,":",t.createElement("span",null,this.context.csvInfo.replaceExistingItem)),t.createElement("td",{className:"text-right",style:{padding:"3px"}},this.context.language.Totalnoofrecords,":",t.createElement("span",null,s))),t.createElement("tr",null,t.createElement("td",{className:"text-left",style:{padding:"3px"}},t.createElement("span",{className:"font-weight-normal text-success"},this.context.language.CurrentProcessingRecord,":",t.createElement("span",null,null==this.context.importStatus||""==this.context.importStatus?this.state.processingRecords:this.context.processedRecords))),t.createElement("td",{className:"text-right",style:{padding:"3px"}},t.createElement("span",{className:"font-weight-normal text-danger"},this.context.language.RemainingRecord,":",t.createElement("span",null,null==this.context.importStatus||""==this.context.importStatus?this.state.remainingRecords:this.context.totalRecords-this.context.processedRecords)))))),t.createElement("div",{className:"card-body px-3"},t.createElement("div",{className:"importing-details"},t.createElement("div",{className:"progress-status"},"Processing"===this.state.importStatus?"In Progress":""),t.createElement("div",{className:"import-progress"},null==this.context.importStatus||""==this.context.importStatus?t.createElement("div",{className:"progress-loading"},this.state.progWidth+"%",this.context.language.Completed):t.createElement("div",{className:"progress-loading text-danger"},Math.round(this.context.processedRecords/this.context.totalRecords)+"%",this.context.language.Completed),t.createElement("div",{className:"progress-timing"},t.createElement("i",{className:"csv-icon-schedule"}),this.context.language.TimeElapsed,":",t.createElement("span",null," ",this.state.stopWatch,"/ "),this.state.remainingTime,"(",this.context.language.approximate,")"))),t.createElement("div",{className:"progress mt5 mb20"},t.createElement("div",{className:"".concat(null!=this.context.importStatus&&""!=this.context.importStatus?"progress-bar-error":"progress-bar"),style:o,role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),t.createElement(lS,{show:this.state.showModal,onHide:function(t){e.handleModalClose(t),e.handleClose1()},centered:!0,id:"failed_summary",style:{top:"30%",zIndex:"1041",position:"absolute",padding:0,maxHeight:"fit-content",margin:0,boxShadow:"none",background:"transparent"}},t.createElement(lS.Header,{closeButton:!0},t.createElement(lS.Title,null,this.context.language.ImportCompleted)),t.createElement(lS.Body,null,this.context.language.importHasFinished),t.createElement(lS.Footer,null,t.createElement(xS,{variant:"primary",id:"smmodaldown1",onClick:function(){return e.downloadLog(i)}},t.createElement("div",{className:"smsummarybutton"},t.createElement("i",{className:"csv-icon-download-cloud mr10",id:"smsumicon"}),this.context.language.Summary)),t.createElement(xS,{variant:"secondary",id:"smmodalfailed",onClick:function(){return e.downloadFailedLog(i)}},t.createElement("div",{id:"failedmedia"},t.createElement("i",{className:"csv-icon-download-cloud mr10",id:"smsumicon"}),this.context.language.FailedMedia,t.createElement(kx,{"data-tip":"Download the failed media file",id:"svgdesign"}),t.createElement(dc,{place:"top",type:"dark",effect:"solid"}))))),t.createElement("a",{id:"downloadFile",className:"hidden",href:this.state.downloadLogLink,download:!0},this.context.language.Download),t.createElement("a",{id:"failedFile",className:"hidden",href:this.state.failedLogLink,download:!0},this.context.language.Download),null==this.context.importStatus||""==this.context.importStatus?t.createElement("div",{className:"d-flex justify-content-center"}):t.createElement("div",{className:"d-flex justify-content-center"},t.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"smack-btn smack-btn-primary",href:"http://smackcoders.com"},"Click here to fix this error"))),t.createElement("div",{className:"importer_record_table_details"},t.createElement("div",{className:"csv-import-table"},this.state.progress>=0&&t.createElement("div",{class:"main_log_div page_wish_progress importing_progress_last d-flex justify-content-between fadeIn"},t.createElement("div",{class:""},t.createElement("div",null,t.createElement("span",null,"Message:"),t.createElement("span",null,this.state.iterationCount," page record"),t.createElement("span",null,"...")),t.createElement("div",null,t.createElement("span",null,"State:"),t.createElement("span",null,"Inserting..."))),t.createElement("div",{className:"d-flex align-items-center"},t.createElement("div",{class:"flex-column d-flex progressbar_page_wish_progress"},t.createElement(Progress,{time:this.state.progress}),t.createElement("label",{for:"file"},"Importing ....")))),n&&n.length>0&&n.map((function(e,n){return e?t.createElement("div",{className:"main_log_div d-flex justify-content-between ".concat("Skipped"===e.state?"skipped":""),id:"smlogmsg",key:n},t.createElement("div",{className:"".concat("Skipped"===e.state?"skippedtext":""," ").concat(e.total_image||e.failed_image_count?"":"no-media")},t.createElement("div",{className:"d-flex gap summary"},t.createElement("div",{className:"space2"},t.createElement("span",{className:"bold"},"Import Summary"),t.createElement("span",null,":")),t.createElement("div",{className:"d-flex overflow-x"},e.post_title&&e.post_title.length>0&&t.createElement("span",{className:"mr-2"},"Post_title: ",e.post_title),e.image_title&&e.image_title.length>0&&t.createElement("span",{className:"mr-2"},"Image_title: ",e.image_title),e.post_type&&e.post_type.length>0&&t.createElement("span",null,"Post_type: ",e.post_type),e.id&&e.post_type&&t.createElement("span",null," ID: ",e.id," "),e.Status&&t.createElement("span",null," Status: ",e.Status," "),e.Email&&t.createElement("span",null," Email: ",e.Email," "),e.Role&&t.createElement("span",null," Role: ",e.Role," "),e.Instruction&&t.createElement("span",null,"Instruction: ",e.Instruction),e.Sku&&t.createElement("span",null," SKU: ",e.Sku," "),e.TypeofProduct&&t.createElement("span",null,"Type of Product: ",e.TypeofProduct),e.Categories&&e.Categories.length>0&&t.createElement("span",null,"Categories: ",e.Categories),e.Tags&&e.Tags.length>0&&t.createElement("span",null," Tags: ",e.Tags," "),!e.post_type&&t.createElement("div",null,e.Message))),t.createElement("div",{className:"media-section"},(e.total_image||e.failed_image_count)&&t.createElement("span",{className:"d-flex"},t.createElement("span",{className:"space1"},t.createElement("span",{className:"bold"},"Media"),t.createElement("span",null,":")),t.createElement("p",null,e.total_image&&t.createElement("span",null,"No of images created/associated -",e.total_image)),t.createElement("p",null,e.failed_image_count&&t.createElement("span",null,"No of images failed -",e.failed_image_count)))),t.createElement("div",{className:"links-section"},(e.adminLink||e.webLink)&&t.createElement("span",{className:"d-flex"},t.createElement("span",{className:"space"},t.createElement("span",{className:"bold"},"Verify Import"),t.createElement("span",null,":")),t.createElement("a",{className:"Skipped"===e.state?"Disabled":"",target:"_blank",href:e.webLink},"View ",t.createElement("span",null," ",e.post_type," ")),t.createElement("p",null,"|"),t.createElement("a",{className:"Skipped"===e.state?"Disabled ml10":"ml10",target:"_blank",href:e.adminLink},"Edit ",t.createElement("span",null," ",e.post_type," "))))),t.createElement("div",{className:"d-flex align-items-center",id:"smscroll"},t.createElement("div",{className:"flex-column d-flex align-items-center"},"Skipped"===e.state?t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"skipped.png"),width:"37px",height:"37px"}),"Skipped"):"Failed"===e.state?t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"failed.png"),width:"37px",height:"37px"}),"Failed"):"Updated"===e.state?t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"updated.png"),width:"37px",height:"37px"}),"Updated"):t.createElement(t.Fragment,null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"inserted.png"),width:"37px",height:"37px"}),"Inserted")))):null})))))))),t.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#displayLogText",id:"triggerLog"}),t.createElement("div",{id:"displayLogText",className:"modal fade",role:"dialog"},t.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},t.createElement("div",{className:"modal-content"},t.createElement("div",{className:"modal-header"},t.createElement("h1",{class:"main-heading"},"Import Log for ",this.state.fileName),t.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),t.createElement("div",{className:"modal-body my-2"},t.createElement("div",{id:"showLogText"}))))))}}]);var o,a,d,h,f}(t.Component);function wO(e,t,n){return t=(0,l.A)(t),(0,s.A)(e,kO()?Reflect.construct(t,n||[],(0,l.A)(e).constructor):t.apply(e,n))}function kO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kO=function(){return!!e})()}(0,p.A)(yO,"contextType",f);var xO=function(e){function n(){return(0,r.A)(this,n),wO(this,n,arguments)}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.context.setDrawerValue("initial")}},{key:"render",value:function(){return"upload-dashboard"===this.context.showComponent?t.createElement(EO,null):"csv-info"===this.context.showComponent?t.createElement(fO,null):"mapping-section"===this.context.showComponent?t.createElement(Nk,{fromEditTemplate:!1}):"dragdrop-section"===this.context.showComponent?t.createElement(Vk,{fromEditTemplate:!1}):"media-handling"===this.context.showComponent?t.createElement(VI,null):"import-config"===this.context.showComponent?t.createElement(iO,null):"save-template"===this.context.showComponent?t.createElement(zI,null):"import-process"===this.context.showComponent?t.createElement(_O,null):"bulk-import"===this.context.showComponent?t.createElement(yO,null):void 0}}])}(t.Component);(0,p.A)(xO,"contextType",f);var EO=function(e){function n(){var e;(0,r.A)(this,n);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return e=wO(this,n,[].concat(o)),(0,p.A)(e,"state",{selectedId:"v-pills-home-tab"}),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){var e=this;return t.createElement(t.Fragment,null,t.createElement("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",justifyContent:"flex-end",paddingRight:"20px"},onMouseEnter:function(e){e.currentTarget.querySelector(".text").style.color="red"},onMouseLeave:function(e){e.currentTarget.querySelector(".text").style.color="#459cdd"},onClick:function(t){t.currentTarget.querySelector(".text").style.color="#1976d2",e.context.setDrawerValue("import#1"),e.context.setDrawerOpen(!0)}},t.createElement("span",{className:"text",style:{color:"blue",fontSize:"14px",lineHeight:"14px",display:"flex",alignItems:"center"}},t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:20,height:20,marginRight:"5px"}})," Need a Help?")),t.createElement("div",{className:"container"},t.createElement("div",{className:"csv-importer-panel row mt20"},t.createElement("div",{className:"col-md-3 pl0"},t.createElement("div",{className:"nav flex-column nav-pills file-choosen-tab",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},t.createElement("a",{className:"nav-link active",id:"v-pills-home-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-home",role:"tab","aria-controls":"v-pills-home","aria-selected":"false"},t.createElement("i",{className:"csv-icon-upload-cloud"}),this.context.language.UploadfromDesktop),t.createElement("a",{className:"nav-link",id:"v-pills-profile-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-profile",role:"tab","aria-controls":"v-pills-profile","aria-selected":"true"},t.createElement("i",{className:"csv-icon-upload3"}),this.context.language.UploadfromFTPSFTP),t.createElement("a",{className:"nav-link",id:"v-pills-messages-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-messages",role:"tab","aria-controls":"v-pills-messages","aria-selected":"false"},t.createElement("i",{className:"csv-icon-link"}),this.context.language.UploadfromURL),t.createElement("a",{className:"nav-link",id:"v-pills-settings-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-settings",role:"tab","aria-controls":"v-pills-settings","aria-selected":"false"},t.createElement("i",{className:"csv-icon-server"}),this.context.language.ChoosFileintheServer))),"v-pills-home-tab"==this.state.selectedId?t.createElement(vI,{uploadoptions:this}):"v-pills-profile-tab"==this.state.selectedId?t.createElement(SI,null):"v-pills-messages-tab"==this.state.selectedId?t.createElement(OI,null):"v-pills-settings-tab"==this.state.selectedId?t.createElement(DI,null):void 0)))}}])}(t.Component);(0,p.A)(EO,"contextType",f);var SO,MO={},TO=function(){if(SO)return MO;SO=1,MO.parse=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var o={},a=e.length;if(a<2)return o;var r=n&&n.decode||l,d=0,u=0,p=0;do{if(-1===(u=e.indexOf("=",d)))break;if(-1===(p=e.indexOf(";",d)))p=a;else if(u>p){d=e.lastIndexOf(";",u-1)+1;continue}var h=i(e,d,u),m=s(e,u,h),f=e.slice(h,m);if(!t.call(o,f)){var g=i(e,u+1,p),v=s(e,p,g);34===e.charCodeAt(g)&&34===e.charCodeAt(v-1)&&(g++,v--);var _=e.slice(g,v);o[f]=c(_,r)}d=p+1}while(d<a);return o},MO.serialize=function(t,i,s){var l=s&&s.encode||encodeURIComponent;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!n.test(t))throw new TypeError("argument name is invalid");var c=l(i);if(!o.test(c))throw new TypeError("argument val is invalid");var d=t+"="+c;if(!s)return d;if(null!=s.maxAge){var u=Math.floor(s.maxAge);if(!isFinite(u))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+u}if(s.domain){if(!a.test(s.domain))throw new TypeError("option domain is invalid");d+="; Domain="+s.domain}if(s.path){if(!r.test(s.path))throw new TypeError("option path is invalid");d+="; Path="+s.path}if(s.expires){var p=s.expires;if(!function(t){return"[object Date]"===e.call(t)}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");d+="; Expires="+p.toUTCString()}if(s.httpOnly&&(d+="; HttpOnly"),s.secure&&(d+="; Secure"),s.partitioned&&(d+="; Partitioned"),s.priority)switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return d};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,o=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/;function i(e,t,n){do{var o=e.charCodeAt(t);if(32!==o&&9!==o)return t}while(++t<n);return n}function s(e,t,n){for(;t>n;){var o=e.charCodeAt(--t);if(32!==o&&9!==o)return t+1}return n}function l(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function c(e,t){try{return t(e)}catch(t){return e}}return MO}();function CO(e,t={}){const n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class AO{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=TO.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?TO.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:CO(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),CO(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=CO(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const o="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=TO.serialize(e,o,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=TO.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const DO=function(e){return"string"==typeof e};function PO(e,t=166){let n;function o(...o){clearTimeout(n),n=setTimeout((()=>{e.apply(this,o)}),t)}return o.clear=()=>{clearTimeout(n)},o}const LO=PO,NO=lm,IO=l_;function OO(e){return`scale(${e}, ${e**2})`}const RO={entering:{opacity:1,transform:OO(1)},entered:{opacity:1,transform:"none"}},FO="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jO=t.forwardRef((function(e,n){const{addEndListener:o,appear:a=!0,children:r,easing:i,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:p,onExiting:h,style:m,timeout:f="auto",TransitionComponent:g=Bv,...v}=e,_=ey(),b=t.useRef(),y=Uv(),w=t.useRef(null),k=$v(w,sm(r),n),x=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},E=x(d),S=x(((e,t)=>{Wv(e);const{duration:n,delay:o,easing:a}=qv({style:m,timeout:f,easing:i},{mode:"enter"});let r;"auto"===f?(r=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[y.transitions.create("opacity",{duration:r,delay:o}),y.transitions.create("transform",{duration:FO?r:.666*r,delay:o,easing:a})].join(","),l&&l(e,t)})),M=x(c),T=x(h),C=x((e=>{const{duration:t,delay:n,easing:o}=qv({style:m,timeout:f,easing:i},{mode:"exit"});let a;"auto"===f?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=t,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:FO?a:.666*a,delay:FO?n:n||.333*a,easing:o})].join(","),e.style.opacity=0,e.style.transform=OO(.75),u&&u(e)})),A=x(p);return(0,cm.jsx)(g,{appear:a,in:s,nodeRef:w,onEnter:S,onEntered:M,onEntering:E,onExit:C,onExited:A,onExiting:T,addEndListener:e=>{"auto"===f&&_.start(b.current||0,e),o&&o(w.current,e)},timeout:"auto"===f?null:f,...v,children:(e,{ownerState:n,...o})=>t.cloneElement(r,{style:{opacity:0,transform:OO(.75),visibility:"exited"!==e||s?void 0:"hidden",...RO[e],...m,...r.props.style},ref:k,...o})})}));jO&&(jO.muiSupportAuto=!0);const YO=jO;function zO(e){return e_("MuiPopover",e)}function BO(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return n=>{const o="function"==typeof t?t(n):t,a="function"==typeof e?e({...n,...o}):e,r=Qh(n?.className,o?.className,a?.className);return{...o,...a,...!!r&&{className:r},...o?.style&&a?.style&&{style:{...o.style,...a.style}},...o?.sx&&a?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const n=t,o=Qh(n?.className,e?.className);return{...t,...e,...!!o&&{className:o},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function HO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function VO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function UO(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function WO(e){return"function"==typeof e?e():e}t_("MuiPopover",["root","paper"]);const qO=bv(y_,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$O=bv(E_,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),GO=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:p=8,marginThreshold:h=16,open:m,PaperProps:f={},slots:g={},slotProps:v={},transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:y="auto",TransitionProps:w={},disableScrollLock:k=!1,...x}=o,E=t.useRef(),S={...o,anchorOrigin:i,anchorReference:l,elevation:p,marginThreshold:h,transformOrigin:_,TransitionComponent:b,transitionDuration:y,TransitionProps:w},M=(e=>{const{classes:t}=e;return Zh({root:["root"],paper:["paper"]},zO,t)})(S),T=t.useCallback((()=>{if("anchorPosition"===l)return s;const e=WO(r),t=(e&&1===e.nodeType?e:NO(E.current).body).getBoundingClientRect();return{top:t.top+HO(t,i.vertical),left:t.left+VO(t,i.horizontal)}}),[r,i.horizontal,i.vertical,s,l]),C=t.useCallback((e=>({vertical:HO(e,_.vertical),horizontal:VO(e,_.horizontal)})),[_.horizontal,_.vertical]),A=t.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=C(t);if("none"===l)return{top:null,left:null,transformOrigin:UO(n)};const o=T();let a=o.top-n.vertical,i=o.left-n.horizontal;const s=a+t.height,c=i+t.width,d=IO(WO(r)),u=d.innerHeight-h,p=d.innerWidth-h;if(null!==h&&a<h){const e=a-h;a-=e,n.vertical+=e}else if(null!==h&&s>u){const e=s-u;a-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:UO(n)}}),[r,l,T,C,h]),[D,P]=t.useState(m),L=t.useCallback((()=>{const e=E.current;if(!e)return;const t=A(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[A]);t.useEffect((()=>(k&&window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L))),[r,k,L]),t.useEffect((()=>{m&&L()})),t.useImperativeHandle(a,(()=>m?{updatePosition:()=>{L()}}:null),[m,L]),t.useEffect((()=>{if(!m)return;const e=LO((()=>{L()})),t=IO(WO(r));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,m,L]);let N=y;const I={slots:{transition:b,...g},slotProps:{transition:w,paper:f,...v}},[O,R]=Dv("transition",{elementType:YO,externalForwardedProps:I,ownerState:S,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),L()},onExited:t=>{e.onExited?.(t),P(!1)}}),additionalProps:{appear:!0,in:m}});"auto"!==y||O.muiSupportAuto||(N=void 0);const F=u||(r?NO(WO(r)).body:void 0),[j,{slots:Y,slotProps:z,...B}]=Dv("root",{ref:n,elementType:qO,externalForwardedProps:{...I,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:BO("function"==typeof v.backdrop?v.backdrop(S):v.backdrop,{invisible:!0})},container:F,open:m},ownerState:S,className:Qh(M.root,d)}),[H,V]=Dv("paper",{ref:E,className:M.paper,elementType:$O,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:D?void 0:{opacity:0}},ownerState:S});return(0,cm.jsx)(j,{...B,...!DO(j)&&{slots:Y,slotProps:z,disableScrollLock:k},children:(0,cm.jsx)(O,{...R,timeout:N,children:(0,cm.jsx)(H,{...V,children:c})})})})),KO=GO;function JO(e){return e_("MuiCard",e)}t_("MuiCard",["root"]);const XO=bv(E_,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),QO=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiCard"}),{className:o,raised:a=!1,...r}=n,i={...n,raised:a},s=(e=>{const{classes:t}=e;return Zh({root:["root"]},JO,t)})(i);return(0,cm.jsx)(XO,{className:Qh(s.root,o),elevation:a?8:void 0,ref:t,ownerState:i,...r})})),ZO=QO;function eR(e){return parseInt(e,10)||0}const tR={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function nR(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const oR=t.forwardRef((function(e,n){const{onChange:o,maxRows:a,minRows:r=1,style:i,value:s,...l}=e,{current:c}=t.useRef(null!=s),d=t.useRef(null),u=im(n,d),p=t.useRef(null),h=t.useRef(null),m=t.useCallback((()=>{const t=d.current,n=h.current;if(!t||!n)return;const o=l_(t).getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=o.boxSizing,s=eR(o.paddingBottom)+eR(o.paddingTop),l=eR(o.borderBottomWidth)+eR(o.borderTopWidth),c=n.scrollHeight;n.value="x";const u=n.scrollHeight;let p=c;return r&&(p=Math.max(Number(r)*u,p)),a&&(p=Math.min(Number(a)*u,p)),p=Math.max(p,u),{outerHeightStyle:p+("border-box"===i?s+l:0),overflowing:Math.abs(p-c)<=1}}),[a,r,e.placeholder]),f=i_((()=>{const e=d.current,t=m();if(!e||!t||nR(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n})),g=t.useCallback((()=>{const e=d.current,t=m();if(!e||!t||nR(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[m]),v=t.useRef(-1);return mm((()=>{const e=PO(g),t=d?.current;if(!t)return;const n=l_(t);let o;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver((()=>{f()&&(o.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame((()=>{o.observe(t)})))})),o.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),o&&o.disconnect()}}),[m,g,f]),mm((()=>{g()})),(0,cm.jsxs)(t.Fragment,{children:[(0,cm.jsx)("textarea",{value:s,onChange:e=>{c||g(),o&&o(e)},ref:u,rows:r,style:i,...l}),(0,cm.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...tR,...i,paddingTop:0,paddingBottom:0}})]})})),aR=oR;function rR({props:e,states:t,muiFormControl:n}){return t.reduce(((t,o)=>(t[o]=e[o],n&&void 0===e[o]&&(t[o]=n[o]),t)),{})}const iR=t.createContext(void 0);function sR(){return t.useContext(iR)}const lR=mm;function cR(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function dR(e,t=!1){return e&&(cR(e.value)&&""!==e.value||t&&cR(e.defaultValue)&&""!==e.defaultValue)}function uR(e){return e_("MuiInputBase",e)}const pR=t_("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hR;const mR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${rm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},fR=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},gR=bv("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mR})(wv((({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${pR.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]})))),vR=bv("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fR})(wv((({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${pR.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${pR.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}))),_R=function(e){return function(t){return(0,cm.jsx)(F_,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),bR=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:i,className:s,color:l,components:c={},componentsProps:d={},defaultValue:u,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,error:f,fullWidth:g=!1,id:v,inputComponent:_="input",inputProps:b={},inputRef:y,margin:w,maxRows:k,minRows:x,multiline:E=!1,name:S,onBlur:M,onChange:T,onClick:C,onFocus:A,onKeyDown:D,onKeyUp:P,placeholder:L,readOnly:N,renderSuffix:I,rows:O,size:R,slotProps:F={},slots:j={},startAdornment:Y,type:z="text",value:B,...H}=o,V=null!=b.value?b.value:B,{current:U}=t.useRef(null!=V),W=t.useRef(),q=t.useCallback((e=>{}),[]),$=$v(W,y,b.ref,q),[G,K]=t.useState(!1),J=sR(),X=rR({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});X.focused=J?J.focused:G,t.useEffect((()=>{!J&&p&&G&&(K(!1),M&&M())}),[J,p,G,M]);const Q=J&&J.onFilled,Z=J&&J.onEmpty,ee=t.useCallback((e=>{dR(e)?Q&&Q():Z&&Z()}),[Q,Z]);lR((()=>{U&&ee({value:V})}),[V,ee,U]),t.useEffect((()=>{ee(W.current)}),[]);let te=_,ne=b;E&&"input"===te&&(ne=O?{type:void 0,minRows:O,maxRows:O,...ne}:{type:void 0,maxRows:k,minRows:x,...ne},te=aR),t.useEffect((()=>{J&&J.setAdornedStart(Boolean(Y))}),[J,Y]);const oe={...o,color:X.color||"primary",disabled:X.disabled,endAdornment:m,error:X.error,focused:X.focused,formControl:J,fullWidth:g,hiddenLabel:X.hiddenLabel,multiline:E,size:X.size,startAdornment:Y,type:z},ae=(e=>{const{classes:t,color:n,disabled:o,error:a,endAdornment:r,focused:i,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:m}=e;return Zh({root:["root",`color${rm(n)}`,o&&"disabled",a&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",p&&"medium"!==p&&`size${rm(p)}`,d&&"multiline",h&&"adornedStart",r&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",o&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",r&&"inputAdornedEnd",u&&"readOnly"]},uR,t)})(oe),re=j.root||c.Root||gR,ie=F.root||d.root||{},se=j.input||c.Input||vR;return ne={...ne,...F.input??d.input},(0,cm.jsxs)(t.Fragment,{children:[!h&&"function"==typeof _R&&(hR||(hR=(0,cm.jsx)(_R,{}))),(0,cm.jsxs)(re,{...ie,ref:n,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),C&&C(e)},...H,...!DO(re)&&{ownerState:{...oe,...ie.ownerState}},className:Qh(ae.root,ie.className,s,N&&"MuiInputBase-readOnly"),children:[Y,(0,cm.jsx)(iR.Provider,{value:null,children:(0,cm.jsx)(se,{"aria-invalid":X.error,"aria-describedby":a,autoComplete:r,autoFocus:i,defaultValue:u,disabled:X.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:S,placeholder:L,readOnly:N,required:X.required,rows:O,value:V,onKeyDown:D,onKeyUp:P,type:z,...ne,...!DO(se)&&{as:te,ownerState:{...oe,...ne.ownerState}},ref:$,className:Qh(ae.input,ne.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{M&&M(e),b.onBlur&&b.onBlur(e),J&&J.onBlur?J.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!U){const t=e.target||W.current;if(null==t)throw new Error(om(1));ee({value:t.value})}b.onChange&&b.onChange(e,...t),T&&T(e,...t)},onFocus:e=>{A&&A(e),b.onFocus&&b.onFocus(e),J&&J.onFocus?J.onFocus(e):K(!0)}})}),m,I?I({...X,startAdornment:Y}):null]})]})})),yR=bR;function wR(e){return e_("MuiInput",e)}const kR={...pR,...t_("MuiInput",["root","underline","input"])},xR=bv(gR,{shouldForwardProp:e=>_v(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mR(e,t),!n.disableUnderline&&t.underline]}})(wv((({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kR.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kR.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kR.disabled}, .${kR.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${kR.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})))]}}))),ER=bv(vR,{name:"MuiInput",slot:"Input",overridesResolver:fR})({}),SR=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:r,fullWidth:i=!1,inputComponent:s="input",multiline:l=!1,slotProps:c,slots:d={},type:u="text",...p}=n,h=(e=>{const{classes:t,disableUnderline:n}=e,o=Zh({root:["root",!n&&"underline"],input:["input"]},wR,t);return{...t,...o}})(n),m={root:{ownerState:{disableUnderline:o}}},f=c??r?xm(c??r,m):m,g=d.root??a.Root??xR,v=d.input??a.Input??ER;return(0,cm.jsx)(yR,{slots:{root:g,input:v},slotProps:f,fullWidth:i,inputComponent:s,multiline:l,ref:t,type:u,...p,classes:h})}));SR.muiName="Input";const MR=SR;function TR(e){return e_("MuiFilledInput",e)}const CR={...pR,...t_("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},AR=bv(gR,{shouldForwardProp:e=>_v(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...mR(e,t),!n.disableUnderline&&t.underline]}})(wv((({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${CR.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${CR.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${CR.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${CR.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${CR.disabled}, .${CR.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${CR.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}}))),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}}))),DR=bv(vR,{name:"MuiFilledInput",slot:"Input",overridesResolver:fR})(wv((({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]})))),PR=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:r,fullWidth:i=!1,hiddenLabel:s,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:u={},type:p="text",...h}=n,m={...n,disableUnderline:o,fullWidth:i,inputComponent:l,multiline:c,type:p},f=(e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:a,size:r,hiddenLabel:i,multiline:s}=e,l=Zh({root:["root",!n&&"underline",o&&"adornedStart",a&&"adornedEnd","small"===r&&`size${rm(r)}`,i&&"hiddenLabel",s&&"multiline"],input:["input"]},TR,t);return{...t,...l}})(n),g={root:{ownerState:m},input:{ownerState:m}},v=d??r?xm(g,d??r):g,_=u.root??a.Root??AR,b=u.input??a.Input??DR;return(0,cm.jsx)(yR,{slots:{root:_,input:b},slotProps:v,fullWidth:i,inputComponent:l,multiline:c,ref:t,type:p,...h,classes:f})}));PR.muiName="Input";const LR=PR;var NR;const IR=bv("fieldset",{shouldForwardProp:_v})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),OR=bv("legend",{shouldForwardProp:_v})(wv((({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))));function RR(e){return e_("MuiOutlinedInput",e)}const FR={...pR,...t_("MuiOutlinedInput",["root","notchedOutline","input"])},jR=bv(gR,{shouldForwardProp:e=>_v(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:mR})(wv((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${FR.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${FR.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${FR.focused} .${FR.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{[`&.${FR.focused} .${FR.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${FR.error} .${FR.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${FR.disabled} .${FR.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}}))),YR=bv((function(e){const{children:t,classes:n,className:o,label:a,notched:r,...i}=e,s=null!=a&&""!==a,l={...e,notched:r,withLabel:s};return(0,cm.jsx)(IR,{"aria-hidden":!0,className:o,ownerState:l,...i,children:(0,cm.jsx)(OR,{ownerState:l,children:s?(0,cm.jsx)("span",{children:a}):NR||(NR=(0,cm.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(wv((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}))),zR=bv(vR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fR})(wv((({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]})))),BR=t.forwardRef((function(e,n){var o;const a=Ev({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:d,slots:u={},type:p="text",...h}=a,m=(e=>{const{classes:t}=e,n=Zh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},RR,t);return{...t,...n}})(a),f=sR(),g=rR({props:a,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...a,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:f,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:c,size:g.size,type:p},_=u.root??r.Root??jR,b=u.input??r.Input??zR;return(0,cm.jsx)(yR,{slots:{root:_,input:b},renderSuffix:e=>(0,cm.jsx)(YR,{ownerState:v,className:m.notchedOutline,label:null!=l&&""!==l&&g.required?o||(o=(0,cm.jsxs)(t.Fragment,{children:[l," ","*"]})):l,notched:void 0!==d?d:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:n,type:p,...h,classes:{...m,notchedOutline:null}})}));BR.muiName="Input";const HR=BR;function VR(e){return e_("MuiFormLabel",e)}const UR=t_("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),WR=bv("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled]}})(wv((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(j_()).map((([t])=>({props:{color:t},style:{[`&.${UR.focused}`]:{color:(e.vars||e).palette[t].main}}}))),{props:{},style:{[`&.${UR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${UR.error}`]:{color:(e.vars||e).palette.error.main}}}]})))),qR=bv("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(wv((({theme:e})=>({[`&.${UR.error}`]:{color:(e.vars||e).palette.error.main}})))),$R=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiFormLabel"}),{children:o,className:a,color:r,component:i="label",disabled:s,error:l,filled:c,focused:d,required:u,...p}=n,h=rR({props:n,muiFormControl:sR(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:h.color||"primary",component:i,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},f=(e=>{const{classes:t,color:n,focused:o,disabled:a,error:r,filled:i,required:s}=e;return Zh({root:["root",`color${rm(n)}`,a&&"disabled",r&&"error",i&&"filled",o&&"focused",s&&"required"],asterisk:["asterisk",r&&"error"]},VR,t)})(m);return(0,cm.jsxs)(WR,{as:i,ownerState:m,className:Qh(f.root,a),ref:t,...p,children:[o,h.required&&(0,cm.jsxs)(qR,{ownerState:m,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]})})),GR=$R;function KR(e){return e_("MuiInputLabel",e)}t_("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const JR=bv(GR,{shouldForwardProp:e=>_v(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${UR.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(wv((({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]})))),XR=t.forwardRef((function(e,t){const n=Ev({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:a,shrink:r,variant:i,className:s,...l}=n,c=sR();let d=r;void 0===d&&c&&(d=c.filled||c.focused||c.adornedStart);const u=rR({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),p={...n,disableAnimation:o,formControl:c,shrink:d,size:u.size,variant:u.variant,required:u.required,focused:u.focused},h=(e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:r,variant:i,required:s}=e,l=Zh({root:["root",n&&"formControl",!r&&"animated",a&&"shrink",o&&"normal"!==o&&`size${rm(o)}`,i],asterisk:[s&&"asterisk"]},KR,t);return{...t,...l}})(p);return(0,cm.jsx)(JR,{"data-shrink":d,ref:t,className:Qh(h.root,s),...l,ownerState:p,classes:h})})),QR=XR,ZR=function(e,n){return t.isValidElement(e)&&-1!==n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function eF(e){return e_("MuiFormControl",e)}t_("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const tF=bv("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${rm(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),nF=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiFormControl"}),{children:a,className:r,color:i="primary",component:s="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:f="medium",variant:g="outlined",...v}=o,_={...o,color:i,component:s,disabled:l,error:c,fullWidth:u,hiddenLabel:p,margin:h,required:m,size:f,variant:g},b=(e=>{const{classes:t,margin:n,fullWidth:o}=e;return Zh({root:["root","none"!==n&&`margin${rm(n)}`,o&&"fullWidth"]},eF,t)})(_),[y,w]=t.useState((()=>{let e=!1;return a&&t.Children.forEach(a,(t=>{if(!ZR(t,["Input","Select"]))return;const n=ZR(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,x]=t.useState((()=>{let e=!1;return a&&t.Children.forEach(a,(t=>{ZR(t,["Input","Select"])&&(dR(t.props,!0)||dR(t.props.inputProps,!0))&&(e=!0)})),e})),[E,S]=t.useState(!1);l&&E&&S(!1);const M=void 0===d||l?E:d;let T;t.useRef(!1);const C=t.useCallback((()=>{x(!0)}),[]),A=t.useCallback((()=>{x(!1)}),[]),D=t.useMemo((()=>({adornedStart:y,setAdornedStart:w,color:i,disabled:l,error:c,filled:k,focused:M,fullWidth:u,hiddenLabel:p,size:f,onBlur:()=>{S(!1)},onFocus:()=>{S(!0)},onEmpty:A,onFilled:C,registerEffect:T,required:m,variant:g})),[y,i,l,c,k,M,u,p,T,A,C,m,f,g]);return(0,cm.jsx)(iR.Provider,{value:D,children:(0,cm.jsx)(tF,{as:s,ownerState:_,className:Qh(b.root,r),ref:n,...v,children:a})})})),oF=nF;function aF(e){return e_("MuiFormHelperText",e)}const rF=t_("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var iF;const sF=bv("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${rm(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(wv((({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rF.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rF.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]})))),lF=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiFormHelperText"}),{children:o,className:a,component:r="p",disabled:i,error:s,filled:l,focused:c,margin:d,required:u,variant:p,...h}=n,m=rR({props:n,muiFormControl:sR(),states:["variant","size","disabled","error","filled","focused","required"]}),f={...n,component:r,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete f.ownerState;const g=(e=>{const{classes:t,contained:n,size:o,disabled:a,error:r,filled:i,focused:s,required:l}=e;return Zh({root:["root",a&&"disabled",r&&"error",o&&`size${rm(o)}`,n&&"contained",s&&"focused",i&&"filled",l&&"required"]},aF,t)})(f);return(0,cm.jsx)(sF,{as:r,className:Qh(g.root,a),ref:t,...h,ownerState:f,children:" "===o?iF||(iF=(0,cm.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})})),cF=lF,dF=t.createContext(),uF=t.createContext({});function pF(e){return e_("MuiList",e)}t_("MuiList",["root","padding","dense","subheader"]);const hF=bv("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),mF=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiList"}),{children:a,className:r,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...d}=o,u=t.useMemo((()=>({dense:s})),[s]),p={...o,component:i,dense:s,disablePadding:l},h=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:a}=e;return Zh({root:["root",!n&&"padding",o&&"dense",a&&"subheader"]},pF,t)})(p);return(0,cm.jsx)(uF.Provider,{value:u,children:(0,cm.jsxs)(hF,{as:i,className:Qh(h.root,r),ref:n,ownerState:p,...d,children:[c,a]})})})),fF=mF,gF=c_;function vF(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _F(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bF(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function yF(e,t,n,o,a,r){let i=!1,s=a(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!o&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&bF(s,r)&&!t)return s.focus(),!0;s=a(e,s,n)}return!1}const wF=t.forwardRef((function(e,n){const{actions:o,autoFocus:a=!1,autoFocusItem:r=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu",...p}=e,h=t.useRef(null),m=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lR((()=>{a&&h.current.focus()}),[a]),t.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const n=`${gF(IO(e))}px`;h.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,h.current.style.width=`calc(100% + ${n})`}return h.current}})),[]);const f=$v(h,n);let g=-1;t.Children.forEach(i,((e,n)=>{t.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=n),g===n&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===n&&(g+=1,g>=i.length&&(g=-1))}));const v=t.Children.map(i,((e,n)=>{if(n===g){const n={};return r&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(n.tabIndex=0),t.cloneElement(e,n)}return e}));return(0,cm.jsx)(fF,{role:"menu",ref:f,className:s,onKeyDown:e=>{const t=h.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(d&&d(e));const o=NO(t).activeElement;if("ArrowDown"===n)e.preventDefault(),yF(t,o,c,l,vF);else if("ArrowUp"===n)e.preventDefault(),yF(t,o,c,l,_F);else if("Home"===n)e.preventDefault(),yF(t,null,c,l,vF);else if("End"===n)e.preventDefault(),yF(t,null,c,l,_F);else if(1===n.length){const a=m.current,r=n.toLowerCase(),i=performance.now();a.keys.length>0&&(i-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&r!==a.keys[0]&&(a.repeating=!1)),a.lastTime=i,a.keys.push(r);const s=o&&!a.repeating&&bF(o,a);a.previousKeyMatched&&(s||yF(t,o,!1,l,vF,a))?e.preventDefault():a.previousKeyMatched=!1}d&&d(e)},tabIndex:a?0:-1,...p,children:v})})),kF=wF;function xF(e){return e_("MuiMenu",e)}t_("MuiMenu",["root","paper","list"]);const EF={vertical:"top",horizontal:"right"},SF={vertical:"top",horizontal:"left"},MF=bv(KO,{shouldForwardProp:e=>_v(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TF=bv($O,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),CF=bv(kF,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),AF=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:i,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:u={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:m,...f}={},variant:g="selectedMenu",slots:v={},slotProps:_={},...b}=o,y=t.useContext(dF)??!1,w={...o,autoFocus:a,disableAutoFocusItem:s,MenuListProps:l,onEntering:m,PaperProps:u,transitionDuration:h,TransitionProps:f,variant:g},k=(e=>{const{classes:t}=e;return Zh({root:["root"],paper:["paper"],list:["list"]},xF,t)})(w),x=a&&!s&&d,E=t.useRef(null);let S=-1;t.Children.map(r,((e,n)=>{t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===S)&&(S=n))}));const M={slots:v,slotProps:{list:l,transition:f,paper:u,..._}},T=function(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1,...r}=e,i=a?{}:Mv(n,o),{props:s,internalRef:l}=Av({...r,externalSlotProps:i}),c=im(l,i?.ref,e.additionalProps?.ref);return Sv(t,{...s,ref:c},o)}({elementType:v.root,externalSlotProps:_.root,ownerState:w,className:[k.root,i]}),[C,A]=Dv("paper",{className:k.paper,elementType:TF,externalForwardedProps:M,shouldForwardComponentProp:!0,ownerState:w}),[D,P]=Dv("list",{className:Qh(k.list,l.className),elementType:CF,shouldForwardComponentProp:!0,externalForwardedProps:M,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:w}),L="function"==typeof M.slotProps.transition?M.slotProps.transition(w):M.slotProps.transition;return(0,cm.jsx)(MF,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?EF:SF,slots:{root:v.root,paper:C,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:T,paper:A,backdrop:"function"==typeof _.backdrop?_.backdrop(w):_.backdrop,transition:{...L,onEntering:(...e)=>{((e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:y?"rtl":"ltr"}),m&&m(e,t)})(...e),L?.onEntering?.(...e)}}},open:d,ref:n,transitionDuration:h,ownerState:w,...b,classes:p,children:(0,cm.jsx)(D,{actions:E,autoFocus:a&&(-1===S||s),autoFocusItem:x,variant:g,...P,children:r})})})),DF=AF;function PF(e){return e_("MuiNativeSelect",e)}const LF=t_("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),NF=bv("select")((({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${LF.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]}))),IF=bv(NF,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_v,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${LF.multiple}`]:t.multiple}]}})({}),OF=bv("svg")((({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${LF.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}))),RF=bv(OF,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rm(n.variant)}`],n.open&&t.iconOpen]}})({}),FF=t.forwardRef((function(e,n){const{className:o,disabled:a,error:r,IconComponent:i,inputRef:s,variant:l="standard",...c}=e,d={...e,disabled:a,variant:l,error:r},u=(e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:r,error:i}=e;return Zh({select:["select",n,o&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${rm(n)}`,r&&"iconOpen",o&&"disabled"]},PF,t)})(d);return(0,cm.jsxs)(t.Fragment,{children:[(0,cm.jsx)(IF,{ownerState:d,className:Qh(u.select,o),disabled:a,ref:s||n,...c}),e.multiple?null:(0,cm.jsx)(RF,{as:i,ownerState:d,className:u.icon})]})})),jF=FF,YF=function({controlled:e,default:n,name:o,state:a="value"}){const{current:r}=t.useRef(void 0!==e),[i,s]=t.useState(n);return[r?e:i,t.useCallback((e=>{r||s(e)}),[])]};function zF(e){return e_("MuiSelect",e)}const BF=t_("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var HF;const VF=bv(NF,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${BF.select}`]:t.select},{[`&.${BF.select}`]:t[n.variant]},{[`&.${BF.error}`]:t.error},{[`&.${BF.multiple}`]:t.multiple}]}})({[`&.${BF.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UF=bv(OF,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${rm(n.variant)}`],n.open&&t.iconOpen]}})({}),WF=bv("input",{shouldForwardProp:e=>vv(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function qF(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function $F(e){return null==e||"string"==typeof e&&!e.trim()}const GF=t.forwardRef((function(e,n){const{"aria-describedby":o,"aria-label":a,autoFocus:r,autoWidth:i,children:s,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:f,labelId:g,MenuProps:v={},multiple:_,name:b,onBlur:y,onChange:w,onClose:k,onFocus:x,onOpen:E,open:S,readOnly:M,renderValue:T,required:C,SelectDisplayProps:A={},tabIndex:D,type:P,value:L,variant:N="standard",...I}=e,[O,R]=YF({controlled:L,default:d,name:"Select"}),[F,j]=YF({controlled:S,default:c,name:"Select"}),Y=t.useRef(null),z=t.useRef(null),[B,H]=t.useState(null),{current:V}=t.useRef(null!=S),[U,W]=t.useState(),q=$v(n,f),$=t.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=B?.parentNode;t.useImperativeHandle(q,(()=>({focus:()=>{z.current.focus()},node:Y.current,value:O})),[O]),t.useEffect((()=>{c&&F&&B&&!V&&(W(i?null:G.clientWidth),z.current.focus())}),[B,i]),t.useEffect((()=>{r&&z.current.focus()}),[r]),t.useEffect((()=>{if(!g)return;const e=NO(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const K=(e,t)=>{e?E&&E(t):k&&k(t),V||(W(i?null:G.clientWidth),j(e))},J=t.Children.toArray(s),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(_){n=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==n&&(R(n),w)){const o=t.nativeEvent||t,a=new o.constructor(o.type,o);Object.defineProperty(a,"target",{writable:!0,value:{value:n,name:b}}),w(a,e)}_||K(!1,t)}},Q=null!==B&&F;let Z,ee;delete I["aria-invalid"];const te=[];let ne=!1,oe=!1;(dR({value:O})||p)&&(T?Z=T(O):ne=!0);const ae=J.map((e=>{if(!t.isValidElement(e))return null;let n;if(_){if(!Array.isArray(O))throw new Error(om(2));n=O.some((t=>qF(t,e.props.value))),n&&ne&&te.push(e.props.children)}else n=qF(O,e.props.value),n&&ne&&(ee=e.props.children);return n&&(oe=!0),t.cloneElement(e,{"aria-selected":n?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})}));ne&&(Z=_?0===te.length?null:te.reduce(((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e)),[]):ee);let re,ie=U;!i&&V&&B&&(ie=G.clientWidth),re=void 0!==D?D:u?null:0;const se=A.id||(b?`mui-component-select-${b}`:void 0),le={...e,variant:N,value:O,open:Q,error:h},ce=(e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:r,error:i}=e;return Zh({select:["select",n,o&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${rm(n)}`,r&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]},zF,t)})(le),de={...v.PaperProps,...v.slotProps?.paper},ue=nm();return(0,cm.jsxs)(t.Fragment,{children:[(0,cm.jsx)(VF,{as:"div",ref:$,tabIndex:re,role:"combobox","aria-controls":Q?ue:void 0,"aria-disabled":u?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,se].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":C?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:e=>{M||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||M?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!Q&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:b}}),y(e))},onFocus:x,...A,ownerState:le,className:Qh(A.className,ce.select,l),id:se,children:$F(Z)?HF||(HF=(0,cm.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Z}),(0,cm.jsx)(WF,{"aria-invalid":h,value:Array.isArray(O)?O.join(","):O,name:b,ref:Y,"aria-hidden":!0,onChange:e=>{const t=J.find((t=>t.props.value===e.target.value));void 0!==t&&(R(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:u,className:ce.nativeInput,autoFocus:r,required:C,...I,ownerState:le}),(0,cm.jsx)(UF,{as:m,className:ce.icon,ownerState:le}),(0,cm.jsx)(DF,{id:`menu-${b||""}`,anchorEl:G,open:Q,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:ue,...v.MenuListProps},paper:{...de,style:{minWidth:ie,...null!=de?de.style:null}}},children:ae})]})})),KF=GF,JF=ck((0,cm.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),XF={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_v(e)&&"variant"!==e,slot:"Root"},QF=bv(MR,XF)(""),ZF=bv(HR,XF)(""),ej=bv(LR,XF)(""),tj=t.forwardRef((function(e,n){const o=Ev({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:r,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=JF,id:u,input:p,inputProps:h,label:m,labelId:f,MenuProps:g,multiple:v=!1,native:_=!1,onClose:b,onOpen:y,open:w,renderValue:k,SelectDisplayProps:x,variant:E="outlined",...S}=o,M=_?jF:KF,T=rR({props:o,muiFormControl:sR(),states:["variant","error"]}),C=T.variant||E,A={...o,variant:C,classes:i},D=(e=>{const{classes:t}=e,n=Zh({root:["root"]},zF,t);return{...t,...n}})(A),{root:P,...L}=D,N=p||{standard:(0,cm.jsx)(QF,{ownerState:A}),outlined:(0,cm.jsx)(ZF,{label:m,ownerState:A}),filled:(0,cm.jsx)(ej,{ownerState:A})}[C],I=$v(n,sm(N));return(0,cm.jsx)(t.Fragment,{children:t.cloneElement(N,{inputComponent:M,inputProps:{children:r,error:T.error,IconComponent:d,variant:C,type:void 0,multiple:v,..._?{id:u}:{autoWidth:a,defaultOpen:l,displayEmpty:c,labelId:f,MenuProps:g,onClose:b,onOpen:y,open:w,renderValue:k,SelectDisplayProps:{id:u,...x}},...h,classes:h?xm(L,h.classes):L,...p?p.props.inputProps:{}},...(v&&_||c)&&"outlined"===C?{notched:!0}:{},ref:I,className:Qh(N.props.className,s,D.root),...!p&&{variant:C},...S})})}));tj.muiName="Select";const nj=tj;function oj(e){return e_("MuiTextField",e)}t_("MuiTextField",["root"]);const aj={standard:MR,filled:LR,outlined:HR},rj=bv(oF,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ij=t.forwardRef((function(e,t){const n=Ev({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:r,className:i,color:s="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:p=!1,helperText:h,id:m,InputLabelProps:f,inputProps:g,InputProps:v,inputRef:_,label:b,maxRows:y,minRows:w,multiline:k=!1,name:x,onBlur:E,onChange:S,onFocus:M,placeholder:T,required:C=!1,rows:A,select:D=!1,SelectProps:P,slots:L={},slotProps:N={},type:I,value:O,variant:R="outlined",...F}=n,j={...n,autoFocus:a,color:s,disabled:c,error:d,fullWidth:p,multiline:k,required:C,select:D,variant:R},Y=(e=>{const{classes:t}=e;return Zh({root:["root"]},oj,t)})(j),z=nm(m),B=h&&z?`${z}-helper-text`:void 0,H=b&&z?`${z}-label`:void 0,V=aj[R],U={slots:L,slotProps:{input:v,inputLabel:f,htmlInput:g,formHelperText:u,select:P,...N}},W={},q=U.slotProps.inputLabel;"outlined"===R&&(q&&void 0!==q.shrink&&(W.notched=q.shrink),W.label=b),D&&(P&&P.native||(W.id=void 0),W["aria-describedby"]=void 0);const[$,G]=Dv("root",{elementType:rj,shouldForwardComponentProp:!0,externalForwardedProps:{...U,...F},ownerState:j,className:Qh(Y.root,i),ref:t,additionalProps:{disabled:c,error:d,fullWidth:p,required:C,color:s,variant:R}}),[K,J]=Dv("input",{elementType:V,externalForwardedProps:U,additionalProps:W,ownerState:j}),[X,Q]=Dv("inputLabel",{elementType:QR,externalForwardedProps:U,ownerState:j}),[Z,ee]=Dv("htmlInput",{elementType:"input",externalForwardedProps:U,ownerState:j}),[te,ne]=Dv("formHelperText",{elementType:cF,externalForwardedProps:U,ownerState:j}),[oe,ae]=Dv("select",{elementType:nj,externalForwardedProps:U,ownerState:j}),re=(0,cm.jsx)(K,{"aria-describedby":B,autoComplete:o,autoFocus:a,defaultValue:l,fullWidth:p,multiline:k,name:x,rows:A,maxRows:y,minRows:w,type:I,value:O,id:z,inputRef:_,onBlur:E,onChange:S,onFocus:M,placeholder:T,inputProps:ee,slots:{input:L.htmlInput?Z:void 0},...J});return(0,cm.jsxs)($,{...G,children:[null!=b&&""!==b&&(0,cm.jsx)(X,{htmlFor:z,id:H,...Q,children:b}),D?(0,cm.jsx)(oe,{"aria-describedby":B,id:z,labelId:H,value:O,input:re,...ae,children:r}):re,h&&(0,cm.jsx)(te,{id:B,...ne,children:h})]})})),sj=ij;function lj(e){return e_("MuiInputAdornment",e)}const cj=t_("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var dj;const uj=bv("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${rm(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(wv((({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${cj.positionStart}&:not(.${cj.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]})))),pj=t.forwardRef((function(e,n){const o=Ev({props:e,name:"MuiInputAdornment"}),{children:a,className:r,component:i="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:d,...u}=o,p=sR()||{};let h=d;d&&p.variant,p&&!h&&(h=p.variant);const m={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:h},f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:a,size:r,variant:i}=e;return Zh({root:["root",n&&"disablePointerEvents",a&&`position${rm(a)}`,i,o&&"hiddenLabel",r&&`size${rm(r)}`]},lj,t)})(m);return(0,cm.jsx)(iR.Provider,{value:null,children:(0,cm.jsx)(uj,{as:i,ownerState:m,className:Qh(f.root,r),ref:n,...u,children:"string"!=typeof a||l?(0,cm.jsxs)(t.Fragment,{children:["start"===c?dj||(dj=(0,cm.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]}):(0,cm.jsx)(W_,{color:"textSecondary",children:a})})})})),hj=pj,mj=ck((0,cm.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),fj=ck((0,cm.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),gj=function(){var e=(0,t.useContext)(f),n=pu((0,t.useState)(null),2),o=n[0],a=n[1],r=pu((0,t.useState)(""),2),i=r[0],s=r[1],l=pu((0,t.useState)(""),2),c=l[0],d=l[1],p=pu((0,t.useState)(""),2),h=(p[0],p[1]),g=pu((0,t.useState)(!1),2),v=g[0],_=g[1],b=e.showDrawerValue;e.setDrawerValue,console.log("showDrawerValue","color: #00a3cc",b);var y=function(){var e=u(m().mark((function e(){var t,n,o,a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),(t=new FormData).set("action","helperImport"),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=4,e.next=7,Lt.post(ajaxurl,t,{headers:{"Content-Type":"multipart/form-data"}});case 7:n=e.sent,console.log("helpbox response",n),200===n.status?(a=n.data||{},(r=null===(o=a.data)||void 0===o?void 0:o.result)&&Array.isArray(r)?(d(r),h(r)):(d([]),console.log("No data found:",(null===(i=a.data)||void 0===i?void 0:i.message)||"No response data"))):(d([]),console.log("No data found:",n.data?n.data.message:"No response data")),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),d([]),console.error("Error fetching data:",e.t0);case 16:return e.prev=16,_(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=u(m().mark((function e(t){var n,o,a,r,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),(n=new FormData).set("action","helperSearch"),n.set("searchInput",t),n.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt.post(ajaxurl,n,{headers:{"Content-Type":"multipart/form-data"}});case 8:200===(o=e.sent).status&&o.data?(r=null===(a=o.data.data)||void 0===a?void 0:a.result,Array.isArray(r)?d(r):(d([]),console.log("No results found:",(null===(i=o.data.data)||void 0===i?void 0:i.message)||"No response data"))):(d([]),console.log("No data found:",o.data?o.data.message:"No response data")),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(5),console.error("Error during search:",e.t0),d([]);case 16:return e.prev=16,_(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[5,12,16,19]])})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=u(m().mark((function e(){var t,n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),(t=new FormData).set("action","needHelper"),t.set("ID",b),t.set("securekey",window.smack_nonce_object_pro.nonce),e.prev=5,e.next=8,Lt.post(ajaxurl,t,{headers:{"Content-Type":"multipart/form-data"}});case 8:200===(n=e.sent).status?(o=n.data||[],d(o.data.result)):(d([]),console.log("No data found:",n.data?n.data.message:"No response data")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.error("Error fetching data:",e.t0);case 15:return e.prev=15,_(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[5,12,15,18]])})));return function(){return e.apply(this,arguments)}}();(0,t.useEffect)((function(){"exportTemplate#1"===b||"importTemplate#1"===b||"mediaTemplate#1"===b||"import#1"===b||"import#2"===b||"import#3"===b||"import#4"===b||"import#5"===b||"media#1"===b||"media#2"===b||"media#3"===b||"export#1"===b||"export#2"===b||"export#3"===b?(k(),a(document.getElementById("help-button"))):a(null)}),[b]),(0,t.useEffect)((function(){console.log("context.showComponent",e.showComponent),"upload-dashboard"===e.showComponent&&y();var t=setInterval((function(){var e=document.getElementById("help-button");e&&(e.classList.add("shake-animation"),setTimeout((function(){e.classList.remove("shake-animation")}),500))}),3e4);return function(){return clearInterval(t)}}),[e.showComponent]);var x=Boolean(o),E={button:{backgroundColor:"#00a699",color:"white",borderRadius:"20px",display:"flex",alignItems:"center",padding:"10px 20px",border:"none",cursor:"pointer"},shakeAnimation:"\n\t\t    @keyframes shake {\n\t\t        0%, 100% { transform: translateX(0); }\n\t\t        25% { transform: translateX(-5px); }\n\t\t        50% { transform: translateX(5px); }\n\t\t        75% { transform: translateX(-5px); }\n\t\t    }\n\t\t    .shake-animation {\n\t\t        animation: shake 0.5s ease-in-out;\n\t\t    }\n\t\t",card:{height:"450px",width:"320px",display:"flex",flexDirection:"column"},headerBox:{backgroundColor:"#00a699",color:"white",padding:"10px 0",textAlign:"center",position:"relative"},contentBox:{flex:1,overflowY:"auto",padding:"10px"},footerBox:{padding:"15px 0",backgroundColor:"#f1f1f1",textAlign:"center"},innerCard:{margin:"10px 0",padding:"10px"},link:{color:"#00a699",textDecoration:"none",cursor:"pointer"},closeIcon:{position:"absolute",right:"10px",top:"10px",cursor:"pointer",color:"white"}};return t.createElement("div",{style:{position:"fixed",right:"2rem",bottom:"2rem"}},t.createElement("style",null,E.shakeAnimation),t.createElement(Ry,{id:"help-button",variant:"contained",size:"medium",startIcon:t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"five.png"),alt:"Help Icon",style:{width:24,height:24}}),sx:{backgroundColor:"#459cdd",color:"#fff",borderRadius:"20px",padding:"10px 20px","&:hover":{backgroundColor:"#3a8cc5"}},onClick:function(e){a(e.currentTarget)}},"Help"),t.createElement(KO,{open:x,anchorEl:o,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:function(){},disableRestoreFocus:!0},t.createElement(ZO,{style:E.card},t.createElement(gk,{style:E.headerBox},t.createElement(W_,{variant:"subtitle1",style:{fontSize:"16px"}},"Help Menu"),t.createElement(fj,{style:E.closeIcon,onClick:function(){e.showDrawerValue,(0,e.setDrawerValue)(""),a(null),s(""),e.setDrawerOpen(!1)}})),t.createElement(Tk,null),t.createElement(gk,{style:E.contentBox},v?t.createElement(gk,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},t.createElement(Ey,null),t.createElement(W_,{style:{marginLeft:"10px"}},"Fetching Data...")):c.length>0?c.map((function(e){return t.createElement(ZO,{key:e.title,style:E.innerCard},t.createElement(W_,{style:{fontSize:"15px"}},t.createElement("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",style:E.link},e.title)),t.createElement(W_,{style:{fontSize:"13px"}},e.content))})):t.createElement(gk,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},t.createElement(W_,null,"No results found"))),t.createElement(Tk,null),t.createElement(gk,{style:E.footerBox},t.createElement(sj,{placeholder:"Search here...",size:"small",fullWidth:!0,value:i,onChange:function(e){var t=e.target.value;s(t)},onKeyDown:function(e){"Enter"===e.key&&w(i)},InputProps:{endAdornment:t.createElement(hj,{position:"end",style:{cursor:"pointer"},onClick:function(){return w(i)}},t.createElement(mj,{style:{color:"#9e9e9e"}})),style:{paddingRight:"10px",paddingLeft:"10px"},disableUnderline:!0},sx:{"& .MuiOutlinedInput-root":{"& fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& input":{paddingLeft:"10px",border:"none",outline:"none"},marginTop:"10px"}}),t.createElement(W_,{sx:{display:"flex",marginTop:"10px",flexDirection:"row",fontSize:"14px",color:"#808080",marginLeft:"12px"}},"For any queries contact"," ",t.createElement("a",{href:"https://smackcoders.com/contact-us.html",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline",marginLeft:"5px"}},"support"))))))};var vj;function _j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_j=function(){return!!e})()}var bj=function(e){function n(){var e,t,o,a;(0,r.A)(this,n);for(var i=arguments.length,c=new Array(i),d=0;d<i;d++)c[d]=arguments[d];return t=this,o=n,a=[].concat(c),o=(0,l.A)(o),e=(0,s.A)(t,_j()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a)),(0,p.A)(e,"state",{showMaintenanceMode:!1,showChatGPTnotification:!0,selectedTab:"import-update"}),(0,p.A)(e,"disableChatGPTNotification",(function(){e.setState({showChatGPTnotification:!1}),e.context.setChatGPTnotify(!1)})),(0,p.A)(e,"setSelectedTab",(function(t){e.setState({selectedTab:t})})),e}return(0,c.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){"0"===smack_nonce_object_client.admin_mode&&this.context.setAdminMode(!1),this.context.setSelectedTabOnCookies("import-update"),this.checkRTLSupport(),this.checkMaintenanceMode();var e=new AO;if(e.get("selectedTab")||e.set("selectedTab","import-update",{path:"/"}),this.setState({selectedTab:e.get("selectedTab")}),!window.wpr_object.file)return window.wpr_object?(window.wpr_object.file=yj,this.context.setLanguage(window.wpr_object.file),console.log(window.wpr_object.file),void this.forceUpdate()):void(window.wpr_object={file:yj});this.context.setLanguage(JSON.parse(window.wpr_object.file)),this.forceUpdate()}},{key:"checkRTLSupport",value:function(){document.querySelector("html").getAttribute("dir")&&document.querySelector(".wp-ultimate-csv-importer").classList.add("rtl")}},{key:"handleStartNewImport",value:function(){this.context.importProgressCompleted?window.location.reload():this.setState({selectedTab:"import-update"})}},{key:"checkMaintenanceMode",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","checkmain_mode"),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=5,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(!(n=e.sent)||!n.data){e.next=11;break}if(200!=n.status||!n.data.success){e.next=11;break}return this.setState({showMaintenanceMode:!0}),this.context.setMaintenanceMode(!0),e.abrupt("return");case 11:this.setState({showMaintenanceMode:!1}),this.context.setMaintenanceMode(!1);case 13:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"disableMaintenanceMode",value:(o=u(m().mark((function e(){var t;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","settings_options"),t.set("option","enable_main_mode"),t.set("value",!1),t.set("securekey",window.smack_nonce_object_pro.nonce),e.next=7,Lt({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:e.sent.data.success&&(this.context.setMaintenanceMode(!1),location.reload());case 9:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"handleStartNewMediaImport",value:function(){this.context.importProgressCompleted?window.location.reload():(this.setState({selectedTab:"media"}),this.context.setMediaUploadOption(!0))}},{key:"render",value:function(){var e=this;return"export"===this.context.tabSelection.tabSelection?t.createElement(iw,null):!1===this.context.adminMode?t.createElement(ux,null):(console.log("this.context.tabSelection","color: #ace2e6",this.context.tabSelection),t.createElement(t.Fragment,null,t.createElement("div",{className:" container"},t.createElement("div",{className:"row tab-section justify-content-center"},t.createElement("ul",{className:"tabs d-flex w-100",style:{flexWrap:"nowrap"}},t.createElement("li",{className:"tab-list text-center ".concat("dashboard"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"dashboard"})},style:{flexGrow:1}},this.context.language.Dashboard),t.createElement("li",{className:"tab-list text-center ".concat("import-update"===this.state.selectedTab?"active":""),onClick:function(){return e.handleStartNewImport()},style:{flexGrow:1}},this.context.language.ImportUpdatere||"Import/Update"),t.createElement("li",{className:"tab-list text-center ".concat("media"===this.state.selectedTab?"active":""),onClick:function(){return e.handleStartNewMediaImport()},style:{flexGrow:1}},this.context.language.Media),t.createElement("li",{className:"tab-list text-center ".concat("manager"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"manager"})},style:{flexGrow:1}},this.context.language.Manager),t.createElement("li",{className:"tab-list text-center ".concat("export"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"export"})},style:{flexGrow:1}},this.context.language.Export),t.createElement("li",{className:"tab-list text-center ".concat("settings"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"settings"})},style:{flexGrow:1}},this.context.language.Settings),t.createElement("li",{className:"tab-list text-center ".concat("support"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"support"})},style:{flexGrow:1}},this.context.language.Support)))),t.createElement("div",{className:"container"},t.createElement("div",{className:"float-right"},t.createElement("ul",{className:"d-flex mb-0"},t.createElement("li",null,t.createElement("a",{className:"csv-link",href:"https://goo.gl/jdPMW8",target:"_blank"},"Documentation")),t.createElement("li",{className:"ml-4"},t.createElement("a",{className:"csv-link",href:"https://goo.gl/fKvDxH",target:"_blank"},"Sample CSV")))),"import-update"===this.state.selectedTab&&"upload-dashboard"===this.context.showComponent?t.createElement("div",{className:"col-md-8",style:{marginLeft:"179px"}},t.createElement("ul",{className:"mapping-switcher",style:{marginLeft:"-150px"}})):"",t.createElement("div",{className:"clearfix"})),this.state.showMaintenanceMode?t.createElement("div",{className:"container"},t.createElement("div",{className:"maintenance-mode"},t.createElement("span",null,t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"alert.png")})),"maintenance mode is enabled"," ",t.createElement("button",{type:"button",class:"csv-link",onClick:function(){return e.disableMaintenanceMode()}},"Disable"))):"",this.state.showChatGPTnotification?t.createElement("div",{className:"chatgpt-notify"},t.createElement("div",null,t.createElement("span",{class:"chatgptcontent"},"Now generate content using ChatGPT. To set it up, navigate to Settings >> OpenAI Settings."," ",t.createElement("img",{src:"".concat(window.wpr_object.imagePath,"info.png")}))),t.createElement("div",null,t.createElement("button",{type:"button",class:"chatgpt_close",onClick:function(){return e.disableChatGPTNotification()}}," ","x"," "))):"","import-update"===this.state.selectedTab?t.createElement(xO,null):"manager"===this.state.selectedTab?t.createElement(ux,null):"media"===this.state.selectedTab?t.createElement(iM,null):"export"===this.state.selectedTab?t.createElement(gM,null):"settings"===this.state.selectedTab?t.createElement(RM,null):"support"===this.state.selectedTab?t.createElement(YM,null):"dashboard"===this.state.selectedTab?t.createElement(iI,null):"license"===this.state.selectedTab?t.createElement(lI,null):"",t.createElement("div",{style:{marginRight:"20px",marginTop:"15px",float:"right"}},t.createElement(gj,null))))}}]);var o,a}(t.Component);(0,p.A)(bj,"contextType",f);var yj=(vj={ImportUpdate:"Import / Update",Dashboard:"Dashboard",Manager:"Manager",Export:"Export",Settings:"Settings",Media:"Media",Support:"Support",UploadfromDesktop:"Upload from Desktop",UploadfromFTPSFTP:"Upload from FTP / SFTP",UploadfromURL:"Upload from URL",ChoosFileintheServer:"Choose File in the Server","Drag&Dropyourfilesor":"Drag & Drop your files or",Browse:"Browse",NewItem:"New Item",Import:"Import",Update:"Update"},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"ImportUpdate","Import / Update"),"ExistingItems","Existing Items"),"ImportEachRecordAs","Importa each record as"),"Continue","Continue"),"Search","Search"),"FromDate","From Date"),"ToDate","To Date"),"SEARCH","SEARCH"),"SavedTemplate","Saved Template"),"TEMPLATES","TEMPLATES NAME"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"MATCHEDCOLUMNSCOUNT","MATCHED COLUMNS COUNT"),"MODULE","MODULE"),"CREATEDTIME","CREATED TIME"),"ACTION","ACTION"),"USETEMPLATE","USE TEMPLATE"),"CREATENEWMAPPING","CREATE NEW MAPPING"),"BACK","BACK"),"ADVANCEDMODE","ADVANCED MODE"),"DRAGDROPMODE","DRAG & DROP MODE"),"WordpressFields","Wordpress Fields"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"WPFIELDS","WP Fields"),"CSVHEADER","CSV Header"),"Action","Action"),"Name","Name"),"HINT","HINT"),"Example","Example"),"WordPressCoreFields","WordPress Core Fields"),"ACFImageMetaFields","ACF Image Meta Fields"),"ACFFreeFields","ACF Free Fields"),"ACFFields","ACF Fields"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"ACFGroupFields","ACF Group Fields"),"ACFProFields","ACF Pro Fields"),"ACFRepeaterFields","ACF Repeater Fields"),"ACFFlexibleFields","ACF Flexible Fields"),"TypesCustomFields","Types Custom Fields"),"AcfRepeaterofRepeaterFields","Acf Repeater of Repeater Fields"),"TypesImageMetaFields","Types Image Meta Fields"),"PodsFields","Pods Fields"),"PodsImageMetaFields","Pods Image Meta Fields"),"CustomFieldSuite","Custom Field Suite"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"AllInOneSeoFields","All In One Seo Fields"),"MetaBoxFields","Meta Box Fields"),"MetaBoxRelationFields","Meta Box Relation Fields"),"MetaBoxGroupFields","Meta Box Group Fields"),"YoastSeoFields","Yoast Seo Fields"),"WPCompleteFields","WPComplete Fields"),"RankMathFields","Rank Math Fields"),"RankMathProFields","Rank Math Pro Fields"),"BillingAndShippingInformation","Billing and Shipping Information"),"CustomFieldsWPMemberFields","Custom Fields WP Member Fields"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"CustomFieldsMemberFields","Custom Fields Member Fields"),"ProductMetaFields","Product Meta Fields"),"ProductAttrFields","Product Attribute Fields"),"ProductBundleMetaFields","Product Bundle Meta Fields"),"PPOMMetaFields","PPOM Meta Fields"),"PropertyMetaFields","Listing Property Fields"),"OwnerMetaFields","Owner Meta Fields"),"EPOMetaFields","EPO Meta Fields"),"WCPAMetaFields","WCPA Meta Fields"),"FPFMetaFields","FPF Meta Fields"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"ProductImageMetaFields","Product Image Meta Fields"),"OrderMetaFields","Order Meta Fields"),"CouponMetaFields","Coupon Meta Fields"),"RefundMetaFields","Refund Meta Fields"),"WPECommerceCustomFields","WP ECommerce Custom Fields"),"EventsManagerFields","Events Manager Fields"),"NextGENGalleryFields","NextGEN Gallery Fields"),"WPMLFields","WPML Fields"),"CMB2CustomFields","CMB2 Custom Fields"),"JobListingFields","Job Listing Fields"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"JetEngineFields","Jet Engine Fields"),"JetEngineRFFields","Jet Engine RF Fields"),"JetEngineCPTFields","Jet Engine CPT Fields"),"JetEngineBookingFields","Jet Engine Booking Fields"),"JetEngineReviewFields","Jet Engine Review Fields"),"JetEngineCPTRFFields","Jet Engine CPT RF Fields"),"JetEngineCCTFields","Jet Engine CCT Fields"),"JetEngineCCTRFFields","Jet Engine CCT RF Fields"),"JetEngineTaxonomyFields","Jet Engine Taxonomy Fields"),"JetEngineTaxonomyRFFields","Jet Engine Taxonomy RF Fields"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"JetEngineRelationsFields","Jet Engine Relations Fields"),"WordPressCustomFields","WordPress Custom Fields"),"DirectoryProFields","Directory Pro Fields"),"TermsandTaxonomies","Terms and Taxonomies"),"IsSerialized","Is Serialized"),"NoCustomFieldsFound","No Custom Fields Found"),"MediaUploadFields","Media Upload Fields"),"UploadMedia","Upload Media"),"UploadedListofFiles","Uploaded List of Files"),"UploadedMediaFileLists","Uploaded Media File Lists"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"SavethismappingasTemplate","Save this mapping as Template"),"Save","Save"),"Doyouneedtoupdatethecurrentmapping","Do you need to update the current mapping ?"),"Savethecurrentmappingasnewtemplate","Save the current mapping as new template"),"Back","Back"),"Size","Size"),"MediaHandling","Featured Image Media Handling"),"Downloadexternalimagestoyourmedia","Download external images to your media"),"ImageHandling","Image Handling"),"Usemediaimagesifalreadyavailable","Use media images if already available"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Doyouwanttooverwritetheexistingimages","Do you want to overwrite the existing images"),"ImageSizes","Image Sizes"),"Thumbnail","Thumbnail"),"Medium","Medium"),"MediumLarge","Medium Large"),"Large","Large"),"Custom","Custom"),"Slug","Slug"),"Width","Width"),"Height","Height"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Addcustomsizes","Add custom sizes"),"PostContentImageOption","Post Content Image Option"),"DownloadPostContentExternalImagestoMedia","Download Post Content External Images to Media"),"MediaSEOAdvancedOptions","Media SEO & Advanced Options"),"SetimageTitle","Set image Title"),"SetimageCaption","Set image Caption"),"SetimageAltText","Set image Alt Text"),"SetimageDescription","Set image Description"),"Changeimagefilenameto","Change image file name to"),"ImportconfigurationSection","Import configuration Section"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"EnablesafeprestateRollback","Enable safe prestate Rollback"),"Backupbeforeimport","Backup before import"),"DoyouwanttoSWITCHONMaintenancemodewhileimport","Do you want to SWITCH ON Maintenance mode while import"),"Doyouwanttohandletheduplicateonexistingrecords","Do you want to handle the duplicate on existing records"),"Mentionthefieldswhichyouwanttohandleduplicates","Mention the fields which you want to handle duplicates"),"DoyouwanttoUpdateanexistingrecords","Do you want to Update an existing records"),"Updaterecordsbasedon","Update records based on"),"DeletedatafromWordPress","Delete data from WordPress"),"EnabletodeletetheitemsnotpresentinCSVXMLfile","Enable to delete the items not present in CSV/XML file"),"DoyouwanttoSchedulethisImport","Do you want to Schedule this Import"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"ScheduleDate","Schedule Date"),"ScheduleFrequency","Schedule Frequency"),"TimeZone","Time Zone"),"ScheduleTime","Schedule Time"),"Schedule","Schedule"),"Import","Import"),"Format","Format"),"OneTime","OneTime"),"Daily","Daily"),"Weekly","Weekly"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Monthly","Monthly"),"Every4hours","Every 4 hours"),"Every2hours","Every 2 hours"),"Hourly","Hourly"),"Every30mins","Every 30 mins"),"Every15mins","Every 15 mins"),"Every10mins","Every 10 mins"),"Every5mins","Every 5 mins"),"FileName","File Name"),"FileSize","File Size"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Process","Process"),"Totalnoofrecords","Total no of records"),"CurrentProcessingRecord","Current Processing Record"),"RemainingRecord","Remaining Record"),"Completed","Completed"),"TimeElapsed","Time Elapsed"),"approximate","approximate"),"DownloadLog","Download Log"),"NoRecord","No Record"),"UploadedCSVFileLists","Uploaded CSV File Lists"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Hostname","Host Name"),"HostPort","Host Port"),"HostUsername","Host Username"),"HostPassword","HostPassword"),"HostPath","HostPath"),"DefaultPort","Default Port"),"FTPUsername","FTP Username"),"FTPPassword","FTP Password"),"ConnectionType","Connection Type"),"ImportersActivity","Importers Activity"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"ImportStatistics","Import Statistics"),"FileManager","File Manager"),"SmartSchedule","Smart Schedule"),"ScheduledExport","Scheduled Export"),"Templates","Templates"),"LogManager","Log Manager"),"UploadTemplates","Upload Templates"),"NotSelectedAnyTab","Not Selected Any Tab"),"EventInfo","Event Info"),"EventDate","Event Date"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"EventMode","Event Mode"),"EventStatus","Event Status"),"Actions","Actions"),"Date","Date"),"Purpose","Purpose"),"Revision","Revision"),"Select","Select"),"Inserted","Inserted"),"Updated","Updated"),"Skipped","Skipped"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Delete","Delete"),"Noeventsfound","No events found"),"ScheduleInfo","Schedule Info"),"ScheduledDate","Scheduled Date"),"ScheduledTime","Scheduled Time"),"Youhavenotscheduledanyevent","You haven’t scheduled any event"),"Frequency","Frequency"),"Time","Time"),"EditSchedule","Edit Schedule"),"SaveChanges","Save Changes"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"TemplateInfo","Template Info"),"TemplateName","Template Name"),"Module","Module"),"CreatedTime","Created Time"),"NoTemplateFound","No Template Found"),"Download","Download"),"NoLogRecordFound","No Log Record Found"),"GeneralSettings","General Settings"),"DatabaseOptimization","Database Optimization"),"SecurityandPerformance","Security and Performance"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Documentation","Documentation"),"MediaReport","Media Report"),"DropTable","Drop Table"),"Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored","If enabled plugin deactivation will remove plugin data, this cannot be restored."),"Scheduledlogmails","Scheduled log mails"),"Enabletogetscheduledlogmails","Enable to get scheduled log mails."),"Sendpasswordtouser","Send password to user"),"Enabletosendpasswordinformationthroughemail","Enable to send password information through email."),"WoocommerceCustomattribute","Woocommerce Custom attribute"),"Enablestoregisterwoocommercecustomattribute","Enables to register woocommerce custom attribute."),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"PleasemakesurethatyoutakenecessarybackupbeforeproceedingwithdatabaseoptimizationThedatalostcantbereverted","Please make sure that you take necessary backup before proceeding with database optimization. The data lost cannot be reverted."),"DeleteallorphanedPostPageMeta","Delete all orphaned Post/Page Meta"),"Deleteallunassignedtags","Delete all unassigned tags"),"DeleteallPostPagerevisions","Delete all Post/Page revisions"),"DeleteallautodraftedPostPage","Delete all auto drafted Post/Page"),"DeleteallPostPageintrash","Delete all Post/Page in trash"),"DeleteallCommentsintrash","Delete all Comments in trash"),"DeleteallUnapprovedComments","Delete all Unapproved Comments"),"DeleteallPingbackComments","Delete all Pingback Comments"),"DeleteallTrackbackComments","Delete all Trackback Comments"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"DeleteallSpamComments","Delete all Spam Comments"),"RunDBOptimizer","Run DB Optimizer"),"DatabaseOptimizationLog","Database Optimization Log"),"noofOrphanedPostPagemetahasbeenremoved","no of Orphaned Post/Page meta has been removed."),"noofUnassignedtagshasbeenremoved","no of Unassigned tags has been removed."),"noofPostPagerevisionhasbeenremoved","no of Post/Page revisions has been removed."),"noofAutodraftedPostPagehasbeenremoved","no of Auto drafted Post/Page has been removed."),"noofPostPageintrashhasbeenremoved","no of Post/Page in trash has been removed."),"noofSpamcommentshasbeenremoved","no of Spam comments has been removed."),"noofCommentsintrashhasbeenremoved","no of Comments in trash has been removed."),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"noofUnapprovedcommentshasbeenremoved","no of Unapproved comments has been removed."),"noofPingbackcommentshasbeenremoved","no of Pingback comments has been removed."),"noofTrackbackcommentshasbeenremoved","no of Trackback comments has been removed."),"Allowauthorseditorstoimport","Allow authors/editors to import"),"Thisenablesauthorseditorstoimport","This enables authors/editors to import."),"MinimumrequiredphpinivaluesIniconfiguredvalues","Minimum required php.ini values (Ini configured values)"),"Variables","Variables"),"SystemValues","System Values"),"MinimumRequirements","Minimum Requirements"),"RequiredtoenabledisableLoadersExtentionsandmodules","Required to enable/disable Loaders, Extentions and modules:"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"DebugInformation","Debug Information:"),"SmackcodersGuidelines","Smackcoders Guidelines"),"DevelopmentNews","Development News"),"WhatsNew","Whats New?"),"YoutubeChannel","Youtube Channel"),"OtherWordPressPlugins","Other WordPress Plugins"),"Count","Count"),"ImageType","Image Type"),"Status","Status"),"Loading","Loading"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"LoveWPUltimateCSVImporterGivea5starreviewon","Love WP Ultimate CSV Importer, Give a 5 star review on"),"ContactSupport","Contact Support"),"Email","Email"),"Supporttype","Support type"),"BugReporting","Bug Reporting"),"FeatureEnhancement","Feature Enhancement"),"Message","Message"),"Send","Send"),"NewsletterSubscription","Newsletter Subscription"),"Subscribe","Subscribe"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Note","Note"),"SubscribetoSmackcodersMailinglistafewmessagesayear","Subscribe to Smackcoders Mailing list (a few messages a year)"),"Pleasedraftamailto","Please draft a mail to"),"Ifyoudoesnotgetanyacknowledgementwithinanhour","If you does not get any acknowledgement within an hour!"),"Selectyourmoduletoexportthedata","Select your Module to Export Data"),"Toexportdatabasedonthefilters","To export data based on the filters"),"ExportFileName","Export File Name"),"AdvancedSettings","Advanced Settings"),"ExportType","Export Type"),"SplittheRecord","Split the Record"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"AdvancedFilters","Advanced Filters"),"Exportdatawithautodelimiters","Export data with auto delimiters"),"Delimiters","Delimiters"),"OtherDelimiters","Other Delimiters"),"Exportdataforthespecificperiod","Export data for the specific period"),"StartFrom","Start From"),"EndTo","End To"),"Exportdatawiththespecificstatus","Export data with the specific status"),"Exportdatawiththespecificjetbookingstatus","Export data with the specific Jet Booking status"),"All","All"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Publish","Publish"),"Sticky","Sticky"),"Private","Private"),"Protected","Protected"),"Draft","Draft"),"Pending","Pending"),"Trah","Trash"),"Pendingpayment","Pending payment"),"Processing","Processing"),"Onhold","On hold"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"Completed","Completed"),"Cancelled","Cancelled"),"Exportdatabyspecificauthors","Export data by specific authors"),"Authors","Authors"),"Exportdatabyspecificcategory","Export data by specific category"),"Exportdatabyspecificpost_title","Export data by specific post_title"),"ExportBasedOnLanguageCode","Export data based on language code"),"LanguageCode","Language Code"),"Exportdatabyspecificpost_id","Export data by specific post_id"),"Category","Category"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(vj,"PostId","Post_id"),"ExportdatabasedonspecificInclusions","Export data based on specific Inclusions"),"DoyouwanttoSchedulethisExport","Do you want to Schedule this Export"),"SelectTimeZone","Select TimeZone"),"ScheduleExport","Schedule Export"),"DataExported","Data Exported"));function wj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wj=function(){return!!e})()}var kj=function(e){function n(){return(0,r.A)(this,n),e=this,t=n,o=arguments,t=(0,l.A)(t),(0,s.A)(e,wj()?Reflect.construct(t,o||[],(0,l.A)(e).constructor):t.apply(e,o));var e,t,o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){return t.createElement(bj,null)}}])}(t.Component);function xj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xj=function(){return!!e})()}var Ej=function(e){function n(e){return(0,r.A)(this,n),t=this,o=n,a=[e],o=(0,l.A)(o),(0,s.A)(t,xj()?Reflect.construct(o,a||[],(0,l.A)(t).constructor):o.apply(t,a));var t,o,a}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){return t.createElement(kj,null)}}])}(t.Component);function Sj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sj=function(){return!!e})()}var Mj=function(e){function n(){var e,o,a,i,c;(0,r.A)(this,n);for(var d=arguments.length,u=new Array(d),h=0;h<d;h++)u[h]=arguments[h];return a=this,i=n,c=[].concat(u),i=(0,l.A)(i),o=(0,s.A)(a,Sj()?Reflect.construct(i,c||[],(0,l.A)(a).constructor):i.apply(a,c)),(0,p.A)(o,"state",(e={chosenServiceProvider:"",fileUrl:"",hostName:"",hostPort:"",hostUserName:"",hostPassword:"",hostPath:"",connectionType:"",selectedTab:"",mediaHandleCheckboxState:!1,activateMappingSection:!1,activateDragAndDropSection:!1,activateXmlFileMappingSection:!1,wordPressCoreFields:[],showWordPressDefaultCoreFieldsState:!1,ACFImageMetaFields:[],showACFImageMetaFieldsState:!1,PodsImageMetaFields:[],showPodsImageMetaFieldsState:!1,jobListingFields:[],showJobListingFieldsState:!1,TypesImageMetaFields:[],showTypesImageMetaFieldsState:!1,ProductImageMetaFields:[],showProductImageMetaFieldsState:!1,acfGroupFields:[],showAcfGroupFieldsState:!1,acfProFields:[],showAcfProFieldsState:!1,acfRepeaterFields:[],showAcfRepeaterFieldsState:!1,acfFlexibleFields:[],showAcfFlexibleFieldsState:!1,acfRepeaterofRepeaterFields:[],showAcfRepeaterofRepeaterFieldsState:!1,termsAndTaxonomiesFields:[],showTermsAndTaxonomiesState:!1,typesFields:[],showTypesFieldsState:!1,podsFields:[],showPodsFieldsState:!1,customFieldSuiteFields:[],showCustomFieldSuiteState:!1,allInOneSeoFields:[],showAllInOneSeoFieldsState:!1,metaBoxFields:[],showMetaBoxFieldsState:!1,MetaBoxRelationFields:[],showMetaBoxRelationFieldsState:!1,MetaBoxGroupFields:[],showMetaBoxGroupFieldsState:!1,billingAndShippingInformation:[],showBillingAndShippingInformationState:!1,wordPressCustomFields:[],wordPressUserCustomFields:[],wordPressUserCustomFieldsLabel:[],showWordPressCustomFieldsState:!1,DirectoryProFields:[],showDirectoryProFieldsState:!1,customFieldsWpMembersFields:[],showCustomFieldsWpMembersState:!1,customFieldsMembersFields:[],showCustomFieldsMembersState:!1,productMetaFields:[],showProductMetaFieldsState:!1,ProductAttrFields:[],showProductAttrFieldsState:!1,productBundleMetaFields:[],showProductBundleMetaFieldsState:!1,ppomMetaFields:[],showPpomMetaFieldsState:!1,epoMetaFields:[],showEpoMetaFieldsState:!1,wcpaMetaFields:[],showWcpaMetaFieldsState:!1,fpfMetaFields:[],showFpfMetaFieldsState:!1,listingMetaFields:[],showListingMetaFieldsState:!1,propertyMetaFields:[],showPropertyMetaFieldsState:!1,ownerMetaFields:[],showOwnerMetaFieldsState:!1,orderMetaFields:[],showOrderMetaFieldsState:!1,wpEcomCustomFields:[],showWpEcomCustomFieldsState:!1,eventsManagerFields:[],showEventsManagerFieldsState:!1,acfFreeFields:[],showAcfFreeFieldsState:!1,cmb2CustomFields:[],showCmb2CustomFieldsState:!1,jetEngineFields:[],showJetEngineFieldsState:!1,jetEngineRFFields:[],showJetEngineRFFieldsState:!1,jetEngineReviewFields:[],showJetEngineReviewFieldsState:!1,jetEngineBookingFields:[],showJetEngineBookingFieldsState:!1,jetEngineCPTFields:[],showJetEngineCPTFieldsState:!1,jetEngineCPTRFFields:[],showJetEngineCPTRFFieldsState:!1,jetEngineCCTFields:[],showJetEngineCCTFieldsState:!1,jetEngineCCTRFFields:[],showJetEngineCCTRFFieldsState:!1,jetEngineTaxonomyFields:[],showJetEngineTaxonomyFieldsState:!1,jetEngineTaxonomyRFFields:[],showJetEngineTaxonomyRFFieldsState:!1,jetEngineRelationsFields:[],showJetEngineRelationsFieldsState:!1,wpmlCustomFields:[],showWPMLCustomFields:!1},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"termsAndTaxonomiesFields",[]),"csvHeaderFields",[]),"fileName",""),"templateName",""),"saveTemplateNames",""),"editTemplateName",""),"selectedTemplateNameInManagerSection",""),"selectedModuleNameInManagerSection",""),"editedTemplateNameInManagerSection",""),"hashKey",""),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"selectedType",""),"csvFileNames",[]),"csvFileUrls",[]),"csvFileServer",[]),"selectedFileUrlsState",!1),"selectedFileUrl",""),"selectedFileServer",""),"saveSelectedMappedFields",[]),"activateMediaHandlingSection",!1),"activateDashboard",!0),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"fromMediaHandlingState",!1),"activateExportDataFilter",!1),"activateExportDownloadOptionSection",!1),"activateExportToGSheetSection",!1),"activateImportConfigurationSection",!1),"activateSaveMappingTemplateSection",!1),"activateProgressDisplaySection",!1),"activateUseExistingMappingState",!1),"activateCreateNewMappingState",!1),"activateTemplateSectionState",!1),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"fromSaveMappingSection",!1),"fromTemplateMappingSection",!1),"fromDragAndDropSection",!1),"activateLargeState",!1),"mode","Insert"),"exportModule",""),"optionalType",""),"templateNameArray",[]),"modulesNameArray",[]),"createdTimeArray",[]),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"matchedCountsArray",[]),"activateUseAlreadyMediaImageState",!1),"activateOverwriteExistingImageState",!1),"activateThumbnailState",!1),"activateMediumState",!1),"activateMediumLargeState",!1),"activateCustomState",!1),"mediaImageTitle",""),"mediaImageCaption",""),"mediaImageAltText",""),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"mediaImageDescription",""),"mediaImageFileName",""),"updateFields",[]),"duplicateHandleField",""),"countryLists",[]),"timeZones",[]),"selectedCountryTime",""),"receivedExportedFilePath",""),"importLogDataLink",""),"rollBackMode",!1),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"maintenanceMode",!1),"loaderText",t.createElement("div",{className:"btn ajax-loader loading"},"Please Wait")),"totalCustomFields",[]),"totalRows",0),"translateLanguage",{}),"uploadedFileType",""),"receivedExportedFileUrl",""),"categoryimportconfigvalue",[]),"setSelectedServiceProvider",(function(e){o.setState({chosenServiceProvider:e})})),"setFileUrl",(function(e){o.setState({fileUrl:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setHostName",(function(e){o.setState({hostName:e})})),"setHostPort",(function(e){o.setState({hostPort:e})})),"setHostUserName",(function(e){o.setState({hostUserName:e})})),"setHostPassword",(function(e){o.setState({hostPassword:e})})),"setHostPath",(function(e){o.setState({hostPath:e})})),"selectedConnectionType",(function(e){o.setState({connectionType:e})})),"setSelectedTab",(function(e){o.setState({selectedTab:e})})),"setSelectedTabCookies",(function(e){(new AO).set("selectedTab",e,{path:"/"})})),"changeActivateMappingSectionState",(function(e){o.setState({activateMappingSection:e})})),"changeMediaHandleCheckboxState",(function(e){o.setState({mediaHandleCheckboxState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"changeActivateDragAndDropSectionState",(function(e){o.setState({activateDragAndDropSection:e})})),"changeActivateXmlFileMappingSectionState",(function(e){o.setState({activateXmlFileMappingSection:e})})),"setWordPressDefaultCoreFields",(function(e){o.setState({wordPressCoreFields:e})})),"showWordPressDefaultCoreFields",(function(e){o.setState({showWordPressDefaultCoreFieldsState:e})})),"showACFImageMetaFields",(function(e){o.setState({showACFImageMetaFieldsState:e})})),"showACFGalleryMetaFields",(function(e){o.setState({showACFGalleryMetaFieldsState:e})})),"setAcfFreeFields",(function(e){o.setState({acfFreeFields:e})})),"showAcfFreeFields",(function(e){o.setState({showAcfFreeFieldsState:e})})),"setAcfGroupFields",(function(e){o.setState({acfGroupFields:e})})),"showAcfGroupFields",(function(e){o.setState({showAcfGroupFieldsState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setAcfProFields",(function(e){o.setState({acfProFields:e})})),"showAcfProFields",(function(e){o.setState({showAcfProFieldsState:e})})),"setAcfRepeaterofRepeaterFields",(function(e){o.setState({acfRepeaterofRepeaterFields:e})})),"showAcfRepeaterofRepeaterFields",(function(e){o.setState({showAcfRepeaterofRepeaterFieldsState:e})})),"setAcfRepeaterFields",(function(e){o.setState({acfRepeaterFields:e})})),"showAcfFlexibleFields",(function(e){o.setState({showAcfFlexibleFieldsState:e})})),"setTermsAndTaxonomies",(function(e){o.setState({termsAndTaxonomiesFields:e})})),"showTermsAndTaxonomies",(function(e){o.setState({showTermsAndTaxonomiesState:e})})),"setTypesFields",(function(e){o.setState({typesFields:e})})),"showTypesFields",(function(e){o.setState({showTypesFieldsState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"showTypesImageMetaFields",(function(e){o.setState({showTypesImageMetaFieldsState:e})})),"setPodsFields",(function(e){o.setState({podsFields:e})})),"showPodsFields",(function(e){o.setState({showPodsFieldsState:e})})),"showPodsImageMetaFields",(function(e){o.setState({showPodsImageMetaFieldsState:e})})),"setJobListingFields",(function(e){o.setState({jobListingFields:e})})),"showJobListingFields",(function(e){o.setState({showJobListingFieldsState:e})})),"setCustomFieldSuite",(function(e){o.setState({customFieldSuiteFields:e})})),"showCustomFieldSuite",(function(e){o.setState({showCustomFieldSuiteState:e})})),"setAllInOneSeoFields",(function(e){o.setState({allInOneSeoFields:e})})),"showAllInOneSeoFields",(function(e){o.setState({showAllInOneSeoFieldsState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setMetaBoxFields",(function(e){o.setState({metaBoxFields:e})})),"showMetaBoxFields",(function(e){o.setState({showMetaBoxFieldsState:e})})),"setMetaBoxRelationFields",(function(e){o.setState({MetaBoxRelationFieldsState:e})})),"showMetaBoxRelationFields",(function(e){o.setState({showMetaBoxRelationFields:e})})),"setMetaBoxGroupFields",(function(e){o.setState({MetaBoxGroupFieldsState:e})})),"showMetaBoxGroupFields",(function(e){o.setState({showMetaBoxGroupFields:e})})),"setYoastSeoFields",(function(e){o.setState({yoastSeoFields:e})})),"showYoastSeoFields",(function(e){o.setState({showYoastSeoFieldsState:e})})),"setWPCompleteFields",(function(e){o.setState({WPcompletFields:e})})),"showWPCompleteFields",(function(e){o.setState({showWPCompleteFieldsState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setSeoPressFields",(function(e){o.setState({seoPressFields:e})})),"showSeoPressFields",(function(e){o.setState({showSeoPressFieldsState:e})})),"setRankMathFields",(function(e){o.setState({rankMathFields:e})})),"setElementorFields",(function(e){o.setState({elementorFields:e})})),"showElementorFields",(function(e){o.setState({showElementorFieldsState:e})})),"showRankMathFields",(function(e){o.setState({showRankMathFieldsState:e})})),"setRankMathProFields",(function(e){o.setState({rankMathProFields:e})})),"showRankMathProFields",(function(e){o.setState({showRankMathProFieldsState:e})})),"setBillingAndShippingInformation",(function(e){o.setState({billingAndShippingInformation:e})})),"showBillingAndShippingInformation",(function(e){o.setState({showBillingAndShippingInformationState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setWordPressCustomFields",(function(e){o.setState({wordPressCustomFields:e})})),"setWordPressUserCustomFields",(function(e){o.setState({wordPressUserCustomFields:e})})),"setWordPressUserCustomFieldsLabel",(function(e){o.setState({wordPressUserCustomFieldsLabel:receivedWordPressUserCustomFieldsLabel})})),"showWordPressCustomFields",(function(e){o.setState({showWordPressCustomFieldsState:e})})),"setDirectoryProFields",(function(e){o.setState({DirectoryProFields:e})})),"showDirectoryProFields",(function(e){o.setState({showDirectoryProFieldsState:e})})),"setCustomFieldsWpMembers",(function(e){o.setState({customFieldsWpMembersFields:e})})),"showCustomFieldsWpMembers",(function(e){o.setState({showCustomFieldsWpMembersState:e})})),"setCustomFieldsMembers",(function(e){o.setState({customFieldsMembersFields:e})})),"showCustomFieldsMembers",(function(e){o.setState({showCustomFieldsMembersState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setProductMetaFields",(function(e){o.setState({productMetaFields:e})})),"showProductMetaFields",(function(e){o.setState({showProductMetaFieldsState:e})})),"setProductAttrFields",(function(e){o.setState({productAttreFields:e})})),"showProductAttrFields",(function(e){o.setState({showProductAttrFieldsState:e})})),"showProductImageMetaFields",(function(e){o.setState({showProductImageMetaFieldsState:e})})),"setProductBundleMetaFields",(function(e){o.setState({productBundleMetaFields:e})})),"showProductBundleMetaFields",(function(e){o.setState({showProductBundleMetaFieldsState:e})})),"setPpomMetaFields",(function(e){o.setState({ppomMetaFields:e})})),"showPpomMetaFields",(function(e){o.setState({showPpomMetaFieldsState:e})})),"setEpoMetaFields",(function(e){o.setState({epoMetaFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"showEpoMetaFields",(function(e){o.setState({showEpoMetaFieldsState:e})})),"setWcpaMetaFields",(function(e){o.setState({wcpaMetaFields:e})})),"showWcpaMetaFields",(function(e){o.setState({showWcpaMetaFieldsState:e})})),"setFpfMetaFields",(function(e){o.setState({fpfMetaFields:e})})),"showFpfMetaFields",(function(e){o.setState({showFpfMetaFieldsState:e})})),"setListingMetaFields",(function(e){o.setState({listingMetaFields:e})})),"showListingMetaFields",(function(e){o.setState({showListingMetaFieldsState:e})})),"setPropertyMetaFields",(function(e){o.setState({propertyMetaFields:e})})),"showPropertyMetaFields",(function(e){o.setState({showPropertyMetaFieldsState:e})})),"setOwnerMetaFields",(function(e){o.setState({ownerMetaFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"showOwnerMetaFields",(function(e){o.setState({showOwnerMetaFieldsState:e})})),"setOrderMetaFields",(function(e){o.setState({orderMetaFields:e})})),"showOrderMetaFields",(function(e){o.setState({showOrderMetaFieldsState:e})})),"setCouponMetaFields",(function(e){o.setState({couponMetaFields:e})})),"showCouponMetaFields",(function(e){o.setState({showCouponMetaFieldsState:e})})),"setRefundMetaFields",(function(e){o.setState({refundMetaFields:e})})),"showRefundMetaFields",(function(e){o.setState({showRefundMetaFieldsState:e})})),"setWpEcomCustomFields",(function(e){o.setState({wpEcomCustomFields:e})})),"showWpEcomCustomFields",(function(e){o.setState({showWpEcomCustomFieldsState:e})})),"setEventsManagerFields",(function(e){o.setState({eventsManagerFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"showEventsManagerFields",(function(e){o.setState({showEventsManagerFieldsState:e})})),"setNextgenGalleryFields",(function(e){o.setState({nextgenGalleryFields:e})})),"showNextgenGalleryFields",(function(e){o.setState({showNextgenGalleryFieldsState:e})})),"setCmb2CustomFields",(function(e){o.setState({cmb2CustomFields:e})})),"showCmb2CustomFields",(function(e){o.setState({showCmb2CustomFieldsState:e})})),"setJetEngineFields",(function(e){o.setState({jetEngineFields:e})})),"showJetEngineFieldsState",(function(e){o.setState({showJetEngineFieldsState:e})})),"setJetEngineFields",(function(e){o.setState({jetEngineRFFields:e})})),"showJetEngineRFFieldsState",(function(e){o.setState({showJetEngineRFFieldsState:e})})),"setJetEngineBookingFields",(function(e){o.setState({jetEngineBookingFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"showJetEngineBookingFieldsState",(function(e){o.setState({showJetEngineBookingFieldsState:e})})),"setJetEngineReviewFields",(function(e){o.setState({jetEngineReviewFields:e})})),"showJetEngineReviewFieldsState",(function(e){o.setState({showJetEngineReviewFieldsState:e})})),"setJetEngineCPTFields",(function(e){o.setState({jetEngineCPTFields:e})})),"showJetEngineCPTFieldsState",(function(e){o.setState({showJetEngineCPTFieldsState:e})})),"setJetEngineCPTFields",(function(e){o.setState({jetEngineCPTRFFields:e})})),"showJetEngineCPTRFFieldsState",(function(e){o.setState({showJetEngineCPTRFFieldsState:e})})),"setJetEngineTaxonomyFields",(function(e){o.setState({jetEngineTaxonomyFields:e})})),"showJetEngineTaxonomyFieldsState",(function(e){o.setState({showJetEngineTaxonomyFieldsState:e})})),"setJetEngineCPTFields",(function(e){o.setState({jetEngineTaxonomyRFFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setJetEngineCCTFields",(function(e){o.setState({jetEngineCCTFields:e})})),"showJetEngineCCTFieldsState",(function(e){o.setState({showJetEngineCCTFieldsState:e})})),"setJetEngineCCTFields",(function(e){o.setState({jetEngineCCTRFFields:e})})),"showJetEngineCCTRFFieldsState",(function(e){o.setState({showJetEngineCCTRFFieldsState:e})})),"showJetEngineTaxonomyRFFieldsState",(function(e){o.setState({showJetEngineTaxonomyRFFieldsState:e})})),"setJetEngineRelationsFields",(function(e){o.setState({jetEngineRelationsFields:e})})),"showJetEngineRelationsFieldsState",(function(e){o.setState({showJetEngineTaxonomyFieldsState:e})})),"setWPMLCustomFields",(function(e){o.setState({wpmlCustomFields:e})})),"showWPMLCustomFields",(function(e){o.setState({showWPMLCustomFieldsState:e})})),"setCsvHeaderFields",(function(e){o.setState({csvHeaderFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"getFileName",(function(e){o.setState({fileName:e})})),"getTemplateName",(function(e){o.setState({templateName:e})})),"saveTemplateName",(function(e){o.setState({saveTemplateNames:e})})),"editedTemplateName",(function(e){o.setState({editTemplateName:e})})),"selectedTemplateInManager",(function(e){o.setState({selectedTemplateNameInManagerSection:e})})),"selectedEditedTemplateInManager",(function(e){o.setState({editedTemplateNameInManagerSection:e})})),"selectedModuleInManager",(function(e){o.setState({selectedModuleNameInManagerSection:e})})),"setHashKey",(function(e){o.setState({hashKey:e})})),"setSelectedType",(function(e){o.setState({selectedType:e})})),"setMode",(function(e){o.setState({mode:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"getCsvFileNames",(function(e){o.setState({csvFileNames:e})})),"getCsvFilesUrl",(function(e){o.setState({csvFileUrls:e})})),"getCsvFilesServer",(function(e){o.setState({csvFileServer:e})})),"setSelectedFileUrlsState",(function(e){o.setState({selectedFileUrlsState:e})})),"setSelectedFileUrl",(function(e){o.setState({selectedFileUrl:e})})),"setSelectedFileServer",(function(e){o.setState({selectedFileServer:e})})),"saveMappedFields",(function(e){o.setState({saveSelectedMappedFields:e.slice()})})),"changeActivateMediaHandlingSection",(function(e){o.setState({activateMediaHandlingSection:e})})),"setActivateDashboard",(function(e){o.setState({activateDashboard:e})})),"backFromMediaHandlingState",(function(e){o.setState({fromMediaHandlingState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setExportDataFilterSection",(function(e){o.setState({activateExportDataFilter:e})})),"changeActivateExportDownloadOption",(function(e){o.setState({activateExportDownloadOptionSection:e})})),"changeActivateExportToGSheet",(function(e){o.setState({activateExportToGSheetSection:e})})),"changeActivateImportConfiguration",(function(e){o.setState({activateImportConfigurationSection:e})})),"changeActivateProgressDisplay",(function(e){o.setState({activateProgressDisplaySection:e})})),"changeActivateSaveMappingTemplateSectionState",(function(e){o.setState({activateSaveMappingTemplateSection:e})})),"changeUseExistingMappingState",(function(e){o.setState({activateUseExistingMappingState:e})})),"changeCreateNewMappingState",(function(e){o.setState({activateCreateNewMappingState:e})})),"changeActivateTemplateSectionState",(function(e){o.setState({activateTemplateSectionState:e})})),"fromSaveMappingSectionState",(function(e){o.setState({fromSaveMappingSection:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"fromTemplateMappingSectionState",(function(e){o.setState({fromTemplateMappingSection:e})})),"fromDragAndDropMappingSection",(function(e){o.setState({fromDragAndDropSection:e})})),"setMode",(function(e){o.setState({mode:e})})),"setExportModule",(function(e){o.setState({exportModule:e})})),"setOptionalType",(function(e){o.setState({optionalType:e})})),"setTemplateNameArray",(function(e){o.setState({templateNameArray:e})})),"setModulesArray",(function(e){o.setState({modulesNameArray:e})})),"setCreatedTimeArray",(function(e){o.setState({createdTimeArray:e})})),"setMatchedCounts",(function(e){o.setState({matchedCountsArray:e})})),"activateUseAlreadyMediaImage",(function(e){o.setState({activateUseAlreadyMediaImageState:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"activateOverwriteExistingImage",(function(e){o.setState({activateOverwriteExistingImageState:e})})),"activateThumbnail",(function(e){o.setState({activateThumbnailState:e})})),"activateMedium",(function(e){o.setState({activateMediumState:e})})),"activateMediumLarge",(function(e){o.setState({activateMediumLargeState:e})})),"activateLarge",(function(e){o.setState({activateLargeState:e})})),"activateCustom",(function(e){o.setState({activateCustomState:e})})),"setImageTitle",(function(e){o.setState({mediaImageTitle:e})})),"setImageCaption",(function(e){o.setState({mediaImageCaption:e})})),"setImageAltText",(function(e){o.setState({mediaImageAltText:e})})),"setImageDescription",(function(e){o.setState({mediaImageDescription:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"changeImageFileName",(function(e){o.setState({mediaImageFileName:e})})),"setUpdateFields",(function(e){o.setState({updateFields:e})})),"fieldHandleDuplicate",(function(e){o.setState({duplicateHandleField:e})})),"setCountryList",(function(e){o.setState({countryLists:e})})),"setTimeZones",(function(e){o.setState({timeZones:e})})),"selectedCountryTimeZone",(function(e){o.setState({selectedCountryTime:e})})),"exportedFileUrl",(function(e){o.setState({receivedExportedFileUrl:e})})),"importLogData",(function(e){o.setState({importLogDataLink:e})})),"setRollBackMode",(function(e){o.setState({rollBackMode:e})})),"setMaintenanceMode",(function(e){o.setState({maintenanceMode:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setChatGPTnotify",(function(e){o.setState({ChatGPTnotify:e})})),"setTotalCustomFields",(function(e){o.setState({totalCustomFields:e})})),"setTotalRows",(function(e){o.setState({totalRows:e})})),"languageTranslation",(function(e){o.setState({translateLanguage:e})})),"uploadFileType",(function(e){o.setState({uploadedFileType:e})})),"setcategoryimportconfigvalue",(function(e){o.setState({categoryimportconfigvalue:e})})))),o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){return t.createElement(zM.Provider,{value:this.state},this.props.children)}}])}(t.Component);function Tj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tj=function(){return!!e})()}var Cj=function(e){function n(){var e,o,a,i,c;(0,r.A)(this,n);for(var d=arguments.length,u=new Array(d),h=0;h<d;h++)u[h]=arguments[h];return a=this,i=n,c=[].concat(u),i=(0,l.A)(i),o=(0,s.A)(a,Tj()?Reflect.construct(i,c||[],(0,l.A)(a).constructor):i.apply(a,c)),(0,p.A)(o,"state",(e={showDrawerValue:"",showDrawerOpen:!1,showComponent:"upload-dashboard",chosenServiceProvider:"",bucketLists:[],endPoints:[],edgePoints:[],selectedBucketsName:"",showExport:"export-module",csvInfo:{replaceExistingItem:!1},mediaCsvInfo:{replaceExistingItem:!1},selectedMediaType:"Local",showMediaComponent:"",exportInfo:{moduleName:"",optionalType:""},showImportLog:!1,isXML:!1,language:{},selectedFileUrl:"",allPluginFields:[],allPluginFieldsMedia:[],csvFields:[],csvFieldsMedia:[],isTemplate:!1,existingTemplateName:"",saveTemplateData:[],importScheduleData:{},mappingResult:{},mediaMappingResult:{},maintenanceMode:!1,rollBackMode:!1,isAcfField:!1,isToolsetField:!1,isPodsField:!1,isMetaboxField:!1,isACPTFields:!1,isJetengineField:!1,mappingType:"",importLogDataLink:"",bulkImportData:{totalPages:"",totalRows:"",fileName:"",fileSize:"",fileExtension:"",fileIteration:"",Check:"",unmatchedRow:"",UpdateUsing:""},loaderText:t.createElement("div",{className:"btn ajax-loader loading"},"Please Wait"),uploadFtpData:{HostName:"",HostPort:"",HostUserName:"",HostPassword:"",HostPath:"",action:""},exportType:"csv",showSplitRecord:!1,recordLimit:"",isDemiliters:!1,delimitersOption:",",otherDelimiters:"",isSpecificPeriod:!1,startDate:"",endDate:"",isSpecificStatus:!1,isSpecificJetbookingStatus:!1,SpecificJetbookingStatus:"",specificStatus:"",isSpecificAuthors:!1,specificAuthors:"",isSpecificLangCode:!1,SpecificLangCode:"",isSpecificCategory:!1,isSpecificPostTitle:!1,specificPostTitle:"",isSpecificPostId:!1,categoryName:"",post_id:"",post_title:"",fileName:"",eventExclusion:{is_check:!1,exclusion_headers:{header:{}}},enableSchedule:!1,scheduleDate:"",scheduleFrequency:"OneTime",selectedUTC:"",scheduleTime:"",hostName:"",hostPort:"",hostUserName:"",hostPassword:"",hostPath:"",connectionType:"",simpleModeSelection:!1,advancedModeSelection:!0,homeSelection:!0,settingSelection:!1,syncMediaSelection:!1,serverName:"",importStatus:"",processedRecords:"",totalRecords:""},(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"chosenServiceProvider","amazonS3"),"importProgressCompleted",!1),"image",[]),"selectedSection",""),"currentpage",""),"awsaccessKey",""),"awssecretKey",""),"awsselectedRegion",""),"digitalaccessKey",""),"digitalsecretKey",""),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"digitalselectedRegion",""),"awschoosefromExistingBucket",!1),"digitalchoosefromExistingBucket",!1),"awscreateNewBucket",!1),"digitalcreateNewBucket",!1),"statusCopyFiles",!1),"awsstatusYearPath",!1),"digitalstatusYearPath",!1),"awsoffloadMedia",!1),"digitaloffloadMedia",!1),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"rewriteUrl",!1),"awsstatusPathSettings",!1),"digitalstatusPathSettings",!1),"awscnamePathSettings",!1),"digitalcnamePathSettings",!1),"awsdomainPath",""),"digitaldomainPath",""),"awsmediaPath",""),"digitalmediaPath",""),"selectedBucket",""),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"bulkImportData1",""),"bucketPage",!1),"digitaldelete",!1),"awsdelete",!1),"currentUser",""),"unmatchedrow",!1),"notify",""),"chatgptkey",""),"api_key",""),"mediaUploadOption",!1),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"MappedFilter",!1),"recordcount",0),"FilterData",[]),"TabValue",""),"isMigrate",!1),"exportQueryData",{seletedValue:"",Query:""}),"onclickImport",!1),"categoryimportconfigvalue",[]),"adminMode",!0),"filterFieldData",[]),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"clientExport",{clientMode:!1,module:"",fileName:""}),"tabSelection",""),"checkedClientMode",!1),"setCurrentUser",(function(e){o.setState({currentUser:e})})),"setUnmatchedrow",(function(e){o.setState({unmatchedrow:e},(function(){}))})),"setImportProgressCompleted",(function(e){o.setState({importProgressCompleted:e})})),"setIsTemplate",(function(e){o.setState({isTemplate:e})})),"setExistingTemplateName",(function(e){o.setState({existingTemplateName:e})})),"setMappingResult",(function(e){o.setState({mappingResult:e})})),"setMediaMappingResult",(function(e){o.setState({mediaMappingResult:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setSelectedServiceProvider",(function(e){o.setState({chosenServiceProvider:e})})),"setBucketLists",(function(e){o.setState({bucketLists:e})})),"setEndPoint",(function(e){o.setState({endPoints:e})})),"setEdgePoint",(function(e){o.setState({edgePoints:e})})),"setExistingBucket",(function(e){o.setState({selectedBucketsName:e})})),"setMaintenanceMode",(function(e){o.setState({maintenanceMode:e})})),"setChatGPTnotify",(function(e){o.setState({ChatGPTnotify:e})})),"setSaveApiKey",(function(e){o.setState({saveApiKey:e})})),"setRollBackMode",(function(e){o.setState({rollBackMode:e})})),"setMappingType",(function(e){o.setState({mappingType:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setImportLogDataLink",(function(e){o.setState({importLogDataLink:e})})),"setImportScheduleData",(function(e){o.setState({importScheduleData:e})})),"setSaveTemplateData",(function(e){o.setState({saveTemplateData:e})})),"setCSVInfo",(function(e){o.setState({csvInfo:e})})),"setMediaCSVInfo",(function(e){o.setState({mediaCsvInfo:e})})),"setMediaUploadOption",(function(e){o.setState({mediaUploadOption:e})})),"setSelectedMediaType",(function(e){o.setState({selectedMediaType:e})})),"setCsvFieldsMedia",(function(e){o.setState({csvFieldsMedia:e})})),"setshowMediaComponent",(function(e){o.setState({showMediaComponent:e})})),"setExportInfo",(function(e){o.setState({exportInfo:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setShowImportLog",(function(e){o.setState({showImportLog:e})})),"setBulkImportData",(function(e){o.setState({bulkImportData:e})})),"setIsXML",(function(e){o.setState({isXML:e})})),"setShowComponent",(function(e){o.setState({showComponent:e})})),"setOpenAIapikey",(function(e){o.setState({apiKeyValue:e})})),"setShowExport",(function(e){o.setState({showExport:e})})),"setLanguage",(function(e){o.setState({language:e})})),"setSelectedTabOnCookies",(function(e){(new AO).set("selectedTab",e,{path:"/"})})),"setSelectedFileUrl",(function(e){o.setState({selectedFileUrl:e})})),"setCsvFields",(function(e){o.setState({csvFields:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setAllPluginFields",(function(e){o.setState({allPluginFields:e})})),"setIsAcfField",(function(e){o.setState({isAcfField:e})})),"setIsToolsetField",(function(e){o.setState({isToolsetField:e})})),"setIsPodsField",(function(e){o.setState({isPodsField:e})})),"setIsMetaboxField",(function(e){o.setState({isMetaboxField:e})})),"setIsACPTField",(function(e){o.setState({isACPTField:e})})),"setUploadFtpData",(function(e){o.setState({uploadFtpData:e})})),"setIsJetengineField",(function(e){o.setState({isJetengineField:e})})),"setExportType",(function(e){o.setState({exportType:e})})),"setShowSplitRecord",(function(e){o.setState({showSplitRecord:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setRecordLimit",(function(e){o.setState({recordLimit:e})})),"setAlert",(function(e){o.setState({alert:e})})),"setIsDelimiters",(function(e){o.setState({isDelimiters:e})})),"setDelimitersOption",(function(e){o.setState({delimitersOption:e})})),"setOtherDelimiters",(function(e){o.setState({otherDelimiters:e})})),"setAllPluginFieldsMedia",(function(e){o.setState({allPluginFieldsMedia:e})})),"setIsSpecificPeriod",(function(e){o.setState({isSpecificPeriod:e})})),"setStartDate",(function(e){o.setState({startDate:e})})),"setEndDate",(function(e){o.setState({endDate:e})})),"setIsSpecificJetbookingStatus",(function(e){o.setState({isSpecificJetbookingStatus:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setSpecificJetbookingStatus",(function(e){o.setState({SpecificJetbookingStatus:e})})),"setIsSpecificStatus",(function(e){o.setState({isSpecificStatus:e})})),"setSpecificStatus",(function(e){o.setState({specificStatus:e})})),"setIsSpecificAuthors",(function(e){o.setState({isSpecificAuthors:e})})),"setIsSpecificLangCode",(function(e){o.setState({isSpecificLangCode:e})})),"setSpecificLangCode",(function(e){o.setState({SpecificLangCode:e})})),"setSpecificAuthors",(function(e){o.setState({specificAuthors:e})})),"setIsSpecificCategory",(function(e){o.setState({isSpecificCategory:e})})),"setIsSpecificPostTitle",(function(e){o.setState({isSpecificPostTitle:e})})),"setSpecificPostTitle",(function(e){o.setState({specificPostTitle:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setIsSpecificIterationId",(function(e){o.setState({isSpecificIterationId:e})})),"setIsSpecificPostId",(function(e){o.setState({isSpecificPostId:e})})),"setCategoryName",(function(e){o.setState({categoryName:e})})),"setpostId",(function(e){o.setState({postId:e})})),"setiterationId",(function(e){o.setState({iterationId:e})})),"setFileName",(function(e){o.setState({fileName:e})})),"setEventExclusion",(function(e){o.setState({eventExclusion:e})})),"setEnableSchedule",(function(e){o.setState({enableSchedule:e})})),"setScheduleDate",(function(e){o.setState({scheduleDate:e})})),"setScheduleFrequency",(function(e){o.setState({scheduleFrequency:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setSelectedUTC",(function(e){o.setState({selectedUTC:e})})),"setScheduleTime",(function(e){o.setState({scheduleTime:e})})),"setHostName",(function(e){o.setState({hostName:e})})),"setHostPort",(function(e){o.setState({hostPort:e})})),"setHostUserName",(function(e){o.setState({hostUserName:e})})),"setHostPassword",(function(e){o.setState({hostPassword:e})})),"setHostPath",(function(e){o.setState({hostPath:e})})),"setConnectionType",(function(e){o.setState({connectionType:e})})),"setSimpleModeSelection",(function(e){o.setState({simpleModeSelection:e})})),"setAdvancedModeSelection",(function(e){o.setState({advancedModeSelection:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setSyncMediaSelection",(function(e){o.setState({syncMediaSelection:e})})),"setSettingSelection",(function(e){o.setState({settingSelection:e})})),"setHomeSelection",(function(e){o.setState({homeSelection:e})})),"setServerName",(function(e){o.setState({serverName:e})})),"setImportStatus",(function(e){o.setState({importStatus:e})})),"setProcessedRecords",(function(e){o.setState({processedRecords:e})})),"setTotalRecords",(function(e){o.setState({totalRecords:e})})),"setImage",(function(e){o.setState({image:e})})),"setCurrentpage",(function(e){o.setState({currentpage:e})})),"setBucketPage",(function(e){o.setState({bucketPage:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setDigitaldelete",(function(e){o.setState({digitaldelete:e})})),"setAwsdelete",(function(e){o.setState({awsdelete:e})})),"setSelectedSection",(function(e){o.setState({selectedSection:e})})),"setAwsAccessKey",(function(e){o.setState({awsaccessKey:e})})),"setDigitalAccessKey",(function(e){o.setState({digitalaccessKey:e})})),"setAwsSecretKey",(function(e){o.setState({awssecretKey:e})})),"setDigitalSecretKey",(function(e){o.setState({digitalsecretKey:e})})),"setAwsSeletedRegion",(function(e){o.setState({awsselectedRegion:e})})),"setDigitalSeletedRegion",(function(e){o.setState({digitalselectedRegion:e})})),"setAwsChoosefromExistingBucket",(function(e){o.setState({awschoosefromExistingBucket:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setDigitalChoosefromExistingBucket",(function(e){o.setState({digitalchoosefromExistingBucket:e})})),"setAwsCreateNewBucket",(function(e){o.setState({awscreateNewBucket:e})})),"setDigitalCreateNewBucket",(function(e){o.setState({digitalcreateNewBucket:e})})),"setStatusCopyFiles",(function(e){o.setState({statusCopyFiles:e})})),"setAwsStatusYearPath",(function(e){o.setState({awsstatusYearPath:e})})),"setDigitalStatusYearPath",(function(e){o.setState({digitalstatusYearPath:e})})),"setAwsOffloadMedia",(function(e){o.setState({awsoffloadMedia:e})})),"setDigitalOffloadMedia",(function(e){o.setState({digitaloffloadMedia:e})})),"setRewriteUrl",(function(e){o.setState({rewriteUrl:e})})),"setAwsStatusPathSettings",(function(e){o.setState({awsstatusPathSettings:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setDigitalStatusPathSettings",(function(e){o.setState({digitalstatusPathSettings:e})})),"setAwsCnamePathSettings",(function(e){o.setState({awscnamePathSettings:e})})),"setDigitalCnamePathSettings",(function(e){o.setState({digitalcnamePathSettings:e})})),"setAwsDomainPath",(function(e){o.setState({awsdomainPath:e})})),"setDigitalDomainPath",(function(e){o.setState({digitaldomainPath:e})})),"setAwsMediaPath",(function(e){o.setState({awsmediaPath:e})})),"setDigitalMediaPath",(function(e){o.setState({digitalmediaPath:e})})),"setSelectedBucket",(function(e){o.setState({selectedBucket:e})})),"setBulkImportData1",(function(e){o.setState({bulkImportData1:e})})),"setLanguage",(function(e){o.setState({language:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setSelectedTabOnCookies",(function(e){(new AO).set("selectedTab",e,{path:"/"})})),"setDrawerValue",(function(e){o.setState({showDrawerValue:e})})),"setDrawerOpen",(function(e){o.setState({showDrawerOpen:e})})),"setcategoryimportconfigvalue",(function(e){o.setState({categoryimportconfigvalue:e})})),"setRecordcount",(function(e){o.setState({recordcount:e})})),"setMappedFilter",(function(e){o.setState({MappedFilter:e})})),"setFilterData",(function(e){o.setState({FilterData:e})})),"setTabValue",(function(e){o.setState({TabValue:e})})),"setIsmigration",(function(e){o.setState({isMigrate:e})})),"setIsOnclick",(function(e){o.setState({onclickImport:e})})),(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)(e,"setAdminMode",(function(e){o.setState({adminMode:e})})),"setExportQueryData",(function(e){o.setState({exportQueryData:e})})),"setClientExport",(function(e){o.setState({clientExport:e})})),"setFilterFieldData",(function(e){o.setState({filterFieldData:e})})),"setTabSelection",(function(e){o.setState({tabSelection:e})})),"setCheckedClientMode",(function(e){o.setState({checkedClientMode:e})})))),o}return(0,c.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){return t.createElement(f.Provider,{value:this.state},this.props.children)}}])}(t.Component);document.addEventListener("DOMContentLoaded",(function(){o.render(t.createElement("div",{className:"wp-ultimate-csv-importer"},t.createElement(sn,{position:"top-right",autoClose:4e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnVisibilityChange:!0,draggable:!0,pauseOnHover:!0}),t.createElement(Cj,null,t.createElement(Mj,null,t.createElement(Ej,null))),t.createElement("p",{className:"text-center mt40 pb20"},"Powered by"," ",t.createElement("a",{className:"csv-link",href:"https://www.smackcoders.com?utm_source=wordpress&utm_medium=plugin&utm_campaign=pro_csv_importer",target:"blank"},"Smackcoders")," ","| Plugin Version 8.7")),document.getElementById("wp-csv-importer-admin"))}))})()})();