@zimyo/engage 0.2.5-pms → 0.2.6-pms

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.cjs CHANGED
@@ -3168,7 +3168,7 @@ attempted value: ${a}
3168
3168
  `:o(i.children):i.type===e.CDATA?o(i.children):i.type===e.Text?i.data:""}return _$}var jg={},Fpe;function Rcr(){if(Fpe)return jg;Fpe=1;var e=jg.getChildren=function(n){return n.children},t=jg.getParent=function(n){return n.parent};return jg.getSiblings=function(n){var r=t(n);return r?e(r):[n]},jg.getAttributeValue=function(n,r){return n.attribs&&n.attribs[r]},jg.hasAttrib=function(n,r){return!!n.attribs&&hasOwnProperty.call(n.attribs,r)},jg.getName=function(n){return n.name},jg}var pb={},$pe;function Pcr(){return $pe||($pe=1,pb.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},pb.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},pb.appendChild=function(e,t){if(t.parent=e,e.children.push(t)!==1){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},pb.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},pb.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}),pb}var S$,Bpe;function Dcr(){if(Bpe)return S$;Bpe=1;var e=iI.isTag;S$={filter:t,find:n,findOneChild:r,findOne:o,existsOne:i,findAll:a};function t(s,l,u,d){return Array.isArray(l)||(l=[l]),(typeof d!="number"||!isFinite(d))&&(d=1/0),n(s,l,u!==!1,d)}function n(s,l,u,d){for(var g=[],f,m=0,c=l.length;m<c&&!(s(l[m])&&(g.push(l[m]),--d<=0)||(f=l[m].children,u&&f&&f.length>0&&(f=n(s,f,u,d),g=g.concat(f),d-=f.length,d<=0)));m++);return g}function r(s,l){for(var u=0,d=l.length;u<d;u++)if(s(l[u]))return l[u];return null}function o(s,l){for(var u=null,d=0,g=l.length;d<g&&!u;d++)if(e(l[d]))s(l[d])?u=l[d]:l[d].children.length>0&&(u=o(s,l[d].children));else continue;return u}function i(s,l){for(var u=0,d=l.length;u<d;u++)if(e(l[u])&&(s(l[u])||l[u].children.length>0&&i(s,l[u].children)))return!0;return!1}function a(s,l){for(var u=[],d=l.slice();d.length;){var g=d.shift();e(g)&&(g.children&&g.children.length>0&&d.unshift.apply(d,g.children),s(g)&&u.push(g))}return u}return S$}var Rg={},zpe;function Ncr(){if(zpe)return Rg;zpe=1;var e=iI,t=Rg.isTag=e.isTag;Rg.testElement=function(i,a){for(var s in i)if(i.hasOwnProperty(s)){if(s==="tag_name"){if(!t(a)||!i.tag_name(a.name))return!1}else if(s==="tag_type"){if(!i.tag_type(a.type))return!1}else if(s==="tag_contains"){if(t(a)||!i.tag_contains(a.data))return!1}else if(!a.attribs||!i[s](a.attribs[s]))return!1}return!0};var n={tag_name:function(i){return typeof i=="function"?function(a){return t(a)&&i(a.name)}:i==="*"?t:function(a){return t(a)&&a.name===i}},tag_type:function(i){return typeof i=="function"?function(a){return i(a.type)}:function(a){return a.type===i}},tag_contains:function(i){return typeof i=="function"?function(a){return!t(a)&&i(a.data)}:function(a){return!t(a)&&a.data===i}}};function r(i,a){return typeof a=="function"?function(s){return s.attribs&&a(s.attribs[i])}:function(s){return s.attribs&&s.attribs[i]===a}}function o(i,a){return function(s){return i(s)||a(s)}}return Rg.getElements=function(i,a,s,l){var u=Object.keys(i).map(function(d){var g=i[d];return d in n?n[d](g):r(d,g)});return u.length===0?[]:this.filter(u.reduce(o),a,s,l)},Rg.getElementById=function(i,a,s){return Array.isArray(a)||(a=[a]),this.findOne(r("id",i),a,s!==!1)},Rg.getElementsByTagName=function(i,a,s,l){return this.filter(n.tag_name(i),a,s,l)},Rg.getElementsByTagType=function(i,a,s,l){return this.filter(n.tag_type(i),a,s,l)},Rg}var x5={},Vpe;function Lcr(){if(Vpe)return x5;Vpe=1,x5.removeSubsets=function(n){for(var r=n.length,o,i,a;--r>-1;){for(o=i=n[r],n[r]=null,a=!0;i;){if(n.indexOf(i)>-1){a=!1,n.splice(r,1);break}i=i.parent}a&&(n[r]=o)}return n};var e={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16},t=x5.compareDocumentPosition=function(n,r){var o=[],i=[],a,s,l,u,d,g;if(n===r)return 0;for(a=n;a;)o.unshift(a),a=a.parent;for(a=r;a;)i.unshift(a),a=a.parent;for(g=0;o[g]===i[g];)g++;return g===0?e.DISCONNECTED:(s=o[g-1],l=s.children,u=o[g],d=i[g],l.indexOf(u)>l.indexOf(d)?s===r?e.FOLLOWING|e.CONTAINED_BY:e.FOLLOWING:s===n?e.PRECEDING|e.CONTAINS:e.PRECEDING)};return x5.uniqueSort=function(n){var r=n.length,o,i;for(n=n.slice();--r>-1;)o=n[r],i=n.indexOf(o),i>-1&&i<r&&n.splice(r,1);return n.sort(function(a,s){var l=t(a,s);return l&e.PRECEDING?-1:l&e.FOLLOWING?1:0}),n},x5}var Hpe;function r3e(){return Hpe||(Hpe=1,function(e){var t=e.exports;[jcr(),Rcr(),Pcr(),Dcr(),Ncr(),Lcr()].forEach(function(n){Object.keys(n).forEach(function(r){t[r]=n[r].bind(t)})})}(y$)),y$.exports}var T$,Wpe;function Fcr(){if(Wpe)return T$;Wpe=1;var e=e3e,t=r3e();function n(l,u){this.init(l,u)}m8(n,e),n.prototype.init=e;function r(l,u){return t.getElementsByTagName(l,u,!0)}function o(l,u){return t.getElementsByTagName(l,u,!0,1)[0]}function i(l,u,d){return t.getText(t.getElementsByTagName(l,u,d,1)).trim()}function a(l,u,d,g,f){var m=i(d,g,f);m&&(l[u]=m)}var s=function(l){return l==="rss"||l==="feed"||l==="rdf:RDF"};return n.prototype.onend=function(){var l={},u=o(s,this.dom),d,g;u&&(u.name==="feed"?(g=u.children,l.type="atom",a(l,"id","id",g),a(l,"title","title",g),(d=o("link",g))&&(d=d.attribs)&&(d=d.href)&&(l.link=d),a(l,"description","subtitle",g),(d=i("updated",g))&&(l.updated=new Date(d)),a(l,"author","email",g,!0),l.items=r("entry",g).map(function(f){var m={},c;return f=f.children,a(m,"id","id",f),a(m,"title","title",f),(c=o("link",f))&&(c=c.attribs)&&(c=c.href)&&(m.link=c),(c=i("summary",f)||i("content",f))&&(m.description=c),(c=i("updated",f))&&(m.pubDate=new Date(c)),m})):(g=o("channel",u.children).children,l.type=u.name.substr(0,3),l.id="",a(l,"title","title",g),a(l,"link","link",g),a(l,"description","description",g),(d=i("lastBuildDate",g))&&(l.updated=new Date(d)),a(l,"author","managingEditor",g,!0),l.items=r("item",u.children).map(function(f){var m={},c;return f=f.children,a(m,"id","guid",f),a(m,"title","title",f),a(m,"link","link",f),a(m,"description","description",f),(c=i("pubDate",f))&&(m.pubDate=new Date(c)),m}))),this.dom=l,e.prototype._handleCallback.call(this,u?null:Error("couldn't find root of feed"))},T$=n,T$}var E$={},dM={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Gpe;function $cr(){return Gpe||(Gpe=1,function(e,t){var n=BR,r=n.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(a,s,l){return r(a,s,l)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=r(a);return s!==void 0?typeof l=="string"?u.fill(s,l):u.fill(s):u.fill(0),u},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}(dM,dM.exports)),dM.exports}var qpe;function Bcr(){if(qpe)return E$;qpe=1;var e=$cr().Buffer,t=e.isEncoding||function(b){switch(b=""+b,b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(b){if(!b)return"utf8";for(var y;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(y)return;b=(""+b).toLowerCase(),y=!0}}function r(b){var y=n(b);if(typeof y!="string"&&(e.isEncoding===t||!t(b)))throw new Error("Unknown encoding: "+b);return y||b}E$.StringDecoder=o;function o(b){this.encoding=r(b);var y;switch(this.encoding){case"utf16le":this.text=g,this.end=f,y=4;break;case"utf8":this.fillLast=l,y=4;break;case"base64":this.text=m,this.end=c,y=3;break;default:this.write=p,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(y)}o.prototype.write=function(b){if(b.length===0)return"";var y,C;if(this.lastNeed){if(y=this.fillLast(b),y===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<b.length?y?y+this.text(b,C):this.text(b,C):y||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function i(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function a(b,y,C){var w=y.length-1;if(w<C)return 0;var x=i(y[w]);return x>=0?(x>0&&(b.lastNeed=x-1),x):--w<C||x===-2?0:(x=i(y[w]),x>=0?(x>0&&(b.lastNeed=x-2),x):--w<C||x===-2?0:(x=i(y[w]),x>=0?(x>0&&(x===2?x=0:b.lastNeed=x-3),x):0))}function s(b,y,C){if((y[0]&192)!==128)return b.lastNeed=0,"�";if(b.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return b.lastNeed=1,"�";if(b.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return b.lastNeed=2,"�"}}function l(b){var y=this.lastTotal-this.lastNeed,C=s(this,b);if(C!==void 0)return C;if(this.lastNeed<=b.length)return b.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,y,0,b.length),this.lastNeed-=b.length}function u(b,y){var C=a(this,b,y);if(!this.lastNeed)return b.toString("utf8",y);this.lastTotal=C;var w=b.length-(C-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",y,w)}function d(b){var y=b&&b.length?this.write(b):"";return this.lastNeed?y+"�":y}function g(b,y){if((b.length-y)%2===0){var C=b.toString("utf16le",y);if(C){var w=C.charCodeAt(C.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",y,b.length-1)}function f(b){var y=b&&b.length?this.write(b):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,C)}return y}function m(b,y){var C=(b.length-y)%3;return C===0?b.toString("base64",y):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",y,b.length-C))}function c(b){var y=b&&b.length?this.write(b):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function p(b){return b.toString(this.encoding)}function v(b){return b&&b.length?this.write(b):""}return E$}var k$,Ype;function o3e(){if(Ype)return k$;Ype=1,k$=o;var e=ZIe,t=BR.Writable,n=Bcr().StringDecoder,r=BR.Buffer;function o(i,a){var s=this._parser=new e(i,a),l=this._decoder=new n;t.call(this,{decodeStrings:!1}),this.once("finish",function(){s.end(l.end())})}return m8(o,t),o.prototype._write=function(i,a,s){i instanceof r&&(i=this._decoder.write(i)),this._parser.write(i),s()},k$}var I$,Upe;function zcr(){if(Upe)return I$;Upe=1,I$=t;var e=o3e();function t(o){e.call(this,new n(this),o)}m8(t,e),t.prototype.readable=!0;function n(o){this.scope=o}var r=g8().EVENTS;return Object.keys(r).forEach(function(o){if(r[o]===0)n.prototype["on"+o]=function(){this.scope.emit(o)};else if(r[o]===1)n.prototype["on"+o]=function(i){this.scope.emit(o,i)};else if(r[o]===2)n.prototype["on"+o]=function(i,a){this.scope.emit(o,i,a)};else throw Error("wrong number of arguments!")}),I$}var O$,Xpe;function Vcr(){if(Xpe)return O$;Xpe=1,O$=e;function e(n){this._cbs=n||{}}var t=g8().EVENTS;return Object.keys(t).forEach(function(n){if(t[n]===0)n="on"+n,e.prototype[n]=function(){this._cbs[n]&&this._cbs[n]()};else if(t[n]===1)n="on"+n,e.prototype[n]=function(r){this._cbs[n]&&this._cbs[n](r)};else if(t[n]===2)n="on"+n,e.prototype[n]=function(r,o){this._cbs[n]&&this._cbs[n](r,o)};else throw Error("wrong number of arguments")}),O$}var A$,Zpe;function Hcr(){if(Zpe)return A$;Zpe=1,A$=e;function e(n){this._cbs=n||{},this.events=[]}var t=g8().EVENTS;return Object.keys(t).forEach(function(n){if(t[n]===0)n="on"+n,e.prototype[n]=function(){this.events.push([n]),this._cbs[n]&&this._cbs[n]()};else if(t[n]===1)n="on"+n,e.prototype[n]=function(r){this.events.push([n,r]),this._cbs[n]&&this._cbs[n](r)};else if(t[n]===2)n="on"+n,e.prototype[n]=function(r,o){this.events.push([n,r,o]),this._cbs[n]&&this._cbs[n](r,o)};else throw Error("wrong number of arguments")}),e.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},e.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var n=0,r=this.events.length;n<r;n++)if(this._cbs[this.events[n][0]]){var o=this.events[n].length;o===1?this._cbs[this.events[n][0]]():o===2?this._cbs[this.events[n][0]](this.events[n][1]):this._cbs[this.events[n][0]](this.events[n][1],this.events[n][2])}},A$}var Jpe;function g8(){return Jpe||(Jpe=1,function(e){var t=ZIe,n=e3e;function r(o,i){return delete e.exports[o],e.exports[o]=i,i}e.exports={Parser:t,Tokenizer:dIe,ElementType:iI,DomHandler:n,get FeedHandler(){return r("FeedHandler",Fcr())},get Stream(){return r("Stream",zcr())},get WritableStream(){return r("WritableStream",o3e())},get ProxyHandler(){return r("ProxyHandler",Vcr())},get DomUtils(){return r("DomUtils",r3e())},get CollectingHandler(){return r("CollectingHandler",Hcr())},DefaultHandler:n,get RssHandler(){return r("RssHandler",this.FeedHandler)},parseDOM:function(o,i){var a=new n(i);return new t(a,i).end(o),a.dom},parseFeed:function(o,i){var a=new e.exports.FeedHandler(i);return new t(a,i).end(o),a.dom},createDomStream:function(o,i,a){var s=new n(o,i,a);return new t(s,i)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}}(v$)),v$.exports}var Qh=g8();const Wcr=tc(Qh);function Gcr(e){return e.type==="text"&&/\r?\n/.test(e.data)&&e.data.trim()===""}function qcr(e){return e.data}const Ycr=["allowfullScreen","async","autoplay","capture","checked","controls","default","defer","disabled","formnovalidate","hidden","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","scoped","seamless","selected","itemscope"],Ucr={accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",as:"as",async:"async",autocomplete:"autoComplete",autoplay:"autoPlay",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",challenge:"challenge",checked:"checked",cite:"cite",classid:"classID",class:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlsList:"controlsList",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"encType",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",for:"htmlFor","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",integrity:"integrity",is:"is",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginHeight",marginwidth:"marginWidth",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",slot:"slot",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",datatype:"datatype",inlist:"inlist",prefix:"prefix",property:"property",resource:"resource",typeof:"typeof",vocab:"vocab",autocapitalize:"autoCapitalize",autocorrect:"autoCorrect",autosave:"autoSave",color:"color",itemprop:"itemProp",itemscope:"itemScope",itemtype:"itemType",itemid:"itemID",itemref:"itemRef",results:"results",security:"security",unselectable:"unselectable"},Xcr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,M$={};function i3e(e){return M$.hasOwnProperty(e)||(M$[e]=Xcr.test(e)),M$[e]}const Zcr=function(e,t){return Ycr.map(r=>r.toLowerCase()).indexOf(e.toLowerCase())>=0&&(t=e),t};function Jcr(e){return Object.keys(e).filter(t=>i3e(t)).reduce((t,n)=>{const r=n.toLowerCase(),o=Ucr[r]||r;return t[o]=Zcr(o,e[n]),t},{})}function Kcr(e=""){return e===""?{}:e.split(";").reduce((t,n)=>{let[r,o]=n.split(/^([^:]+):/).filter((i,a)=>a>0).map(i=>i.trim().toLowerCase());return o===void 0||(r=r.replace(/^-ms-/,"ms-").replace(/-(.)/g,(i,a)=>a.toUpperCase()),t[r]=o),t},{})}function a3e(e,t){const n=Object.assign({},Jcr(e),{key:t});return typeof n.style=="string"||n.style instanceof String?n.style=Kcr(n.style):delete n.style,n}const Qcr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function eur(e,t,n){const r=e.name;if(!i3e(r))return null;const o=a3e(e.attribs,t);let i=null;return Qcr.indexOf(r)===-1&&(i=s3e(e.children,n)),q.createElement(r,o,i)}function tur(e,t){let n;e.children.length>0&&(n=e.children[0].data);const r=a3e(e.attribs,t);return q.createElement("style",r,n)}function w5(){return null}const nur={[Qh.ElementType.Text]:qcr,[Qh.ElementType.Tag]:eur,[Qh.ElementType.Style]:tur,[Qh.ElementType.Directive]:w5,[Qh.ElementType.Comment]:w5,[Qh.ElementType.Script]:w5,[Qh.ElementType.CDATA]:w5,[Qh.ElementType.Doctype]:w5};function rur(e,t,n){return nur[e.type](e,t,n)}function s3e(e,t){return e.filter(n=>!Gcr(n)).map((n,r)=>{let o;return typeof t=="function"&&(o=t(n,r),o===null||o)?o:rur(n,r,t)})}function our(e,{decodeEntities:t=!0,transform:n,preprocessNodes:r=o=>o}={}){const o=r(Wcr.parseDOM(e,{decodeEntities:t}));return s3e(o,n)}var eJ={},iur=Jo;Object.defineProperty(eJ,"__esModule",{value:!0});var l3e=eJ.default=void 0,aur=iur(wi()),sur=L;l3e=eJ.default=(0,aur.default)((0,sur.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"InsertPhoto");const rC=z.createContext({});process.env.NODE_ENV!=="production"&&(rC.displayName="TimelineContext");function lur(e){return f0("MuiTimeline",e)}d1("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function g0(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${kt(e)}`}const cur=e=>{const{position:t,classes:n}=e,r={root:["root",t&&g0(t)]};return p1(r,lur,n)},uur=tt("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[g0(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),c3e=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimeline"}),d=r,{position:o="right",className:i}=d,a=Zr(d,["position","className"]),s=Xe(he({},r),{position:o}),l=cur(s),u=z.useMemo(()=>({position:o}),[o]);return L.jsx(rC.Provider,{value:u,children:L.jsx(uur,he({className:Et(l.root,i),ownerState:s,ref:n},a))})});process.env.NODE_ENV!=="production"&&(c3e.propTypes={children:k.node,classes:k.object,className:k.string,position:k.oneOf(["alternate-reverse","alternate","left","right"]),sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object])});function dur(e){return f0("MuiTimelineConnector",e)}d1("MuiTimelineConnector",["root"]);const pur=e=>{const{classes:t}=e;return p1({root:["root"]},dur,t)},fur=tt("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),u3e=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimelineConnector"}),l=r,{className:o}=l,i=Zr(l,["className"]),a=r,s=pur(a);return L.jsx(fur,he({className:Et(s.root,o),ownerState:a,ref:n},i))});process.env.NODE_ENV!=="production"&&(u3e.propTypes={children:k.node,classes:k.object,className:k.string,sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object])});function hur(e){return f0("MuiTimelineContent",e)}const mur=d1("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),gur=e=>{const{position:t,classes:n}=e,r={root:["root",g0(t)]};return p1(r,hur,n)},vur=tt(cr,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[g0(n.position)]]}})(({ownerState:e})=>he({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),d3e=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimelineContent"}),u=r,{className:o}=u,i=Zr(u,["className"]),{position:a}=z.useContext(rC),s=Xe(he({},r),{position:a||"right"}),l=gur(s);return L.jsx(vur,he({component:"div",className:Et(l.root,o),ownerState:s,ref:n},i))});process.env.NODE_ENV!=="production"&&(d3e.propTypes={children:k.node,classes:k.object,className:k.string,sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object])});function bur(e){return f0("MuiTimelineDot",e)}d1("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const yur=e=>{const{color:t,variant:n,classes:r}=e,o={root:["root",n,t!=="inherit"&&`${n}${kt(t)}`]};return p1(o,bur,r)},xur=tt("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.color!=="inherit"&&`${n.variant}${kt(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>he(he({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(t.vars||t).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&he({borderColor:"transparent"},e.color!=="inherit"&&he({},e.color==="grey"?{color:(t.vars||t).palette.grey[50],backgroundColor:(t.vars||t).palette.grey[400]}:{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main}))),e.variant==="outlined"&&he({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&he({},e.color==="grey"?{borderColor:(t.vars||t).palette.grey[400]}:{borderColor:(t.vars||t).palette[e.color].main})))),p3e=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimelineDot"}),d=r,{className:o,color:i="grey",variant:a="filled"}=d,s=Zr(d,["className","color","variant"]),l=Xe(he({},r),{color:i,variant:a}),u=yur(l);return L.jsx(xur,he({className:Et(u.root,o),ownerState:l,ref:n},s))});process.env.NODE_ENV!=="production"&&(p3e.propTypes={children:k.node,classes:k.object,className:k.string,color:k.oneOfType([k.oneOf(["error","grey","info","inherit","primary","secondary","success","warning"]),k.string]),sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object]),variant:k.oneOfType([k.oneOf(["filled","outlined"]),k.string])});function wur(e){return f0("MuiTimelineOppositeContent",e)}const Cur=d1("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),_ur=e=>{const{position:t,classes:n}=e,r={root:["root",g0(t)]};return p1(r,wur,n)},Sur=tt(cr,{name:"MuiTimelineOppositeContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[g0(n.position)]]}})(({ownerState:e})=>he({padding:"6px 16px",marginRight:"auto",textAlign:"right",flex:1},e.position==="left"&&{textAlign:"left"})),tJ=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimelineOppositeContent"}),u=r,{className:o}=u,i=Zr(u,["className"]),{position:a}=z.useContext(rC),s=Xe(he({},r),{position:a||"left"}),l=_ur(s);return L.jsx(Sur,he({component:"div",className:Et(l.root,o),ownerState:s,ref:n},i))});process.env.NODE_ENV!=="production"&&(tJ.propTypes={children:k.node,classes:k.object,className:k.string,sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object])});tJ.muiName="TimelineOppositeContent";function Tur(e){return f0("MuiTimelineItem",e)}d1("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Eur=e=>{const{position:t,classes:n,hasOppositeContent:r}=e,o={root:["root",g0(t),!r&&"missingOppositeContent"]};return p1(o,Tur,n)},kur=tt("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[g0(n.position)]]}})(({ownerState:e})=>he(he(he({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"}),(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${mur.root}`]:{textAlign:"right"},[`& .${Cur.root}`]:{textAlign:"left"}}}),!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}})),f3e=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimelineItem"}),f=r,{position:o,className:i}=f,a=Zr(f,["position","className"]),{position:s}=z.useContext(rC);let l=!1;z.Children.forEach(r.children,m=>{Kb(m,["TimelineOppositeContent"])&&(l=!0)});const u=Xe(he({},r),{position:o||s||"right",hasOppositeContent:l}),d=Eur(u),g=z.useMemo(()=>({position:u.position}),[u.position]);return L.jsx(rC.Provider,{value:g,children:L.jsx(kur,he({className:Et(d.root,i),ownerState:u,ref:n},a))})});process.env.NODE_ENV!=="production"&&(f3e.propTypes={children:k.node,classes:k.object,className:k.string,position:k.oneOf(["alternate-reverse","alternate","left","right"]),sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object])});function Iur(e){return f0("MuiTimelineSeparator",e)}d1("MuiTimelineSeparator",["root"]);const Our=e=>{const{classes:t}=e;return p1({root:["root"]},Iur,t)},Aur=tt("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),h3e=z.forwardRef(function(t,n){const r=_r({props:t,name:"MuiTimelineSeparator"}),l=r,{className:o}=l,i=Zr(l,["className"]),a=r,s=Our(a);return L.jsx(Aur,he({className:Et(s.root,o),ownerState:a,ref:n},i))});process.env.NODE_ENV!=="production"&&(h3e.propTypes={children:k.node,classes:k.object,className:k.string,sx:k.oneOfType([k.arrayOf(k.oneOfType([k.func,k.object,k.bool])),k.func,k.object])});const Mur=tt(cIe)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),m3e=e=>{var me,fe,ke,Ce,we,ge,de,Ae,ne,xe,Ie,Oe,Pe,Fe,Ee,ve,Se,Be,ze,qe,He,Ve,Ze,st,Je,ft,pt,It,nn,at,Gt,Yn;const{pipId:t}=e,{session:{ASSETS_BASE_URL:n,ADMIN_BASE_URL:r}}=Ma(),o=ss(Qe=>Qe.pushAlert),{MAP_PIP_COMPLETE_STATUS:i,VIEW_DETAILS_SUB_TAB:a,REASON_TO_INITIATE_PIP:s}=ep("en"),l=cl(),{pipId:u}=JX();let d=u||t;const{setImageURL:g,ImageViewer:f}=OD(),{setPdfURL:m,PdfViewer:c}=hX(),[p,v]=q.useState(!1),[b,y]=q.useState(null),[C,w]=q.useState(1),[x,_]=q.useState(""),[S,I]=q.useState(!1),[T,E]=q.useState([]),[O,A]=q.useState([]),[M,j]=q.useState(!1),[R,D]=q.useState(!1),[$,B]=q.useState(!1),{data:H,isFetching:G}=Ua(bs,{url:`${r}${Fn.PIP.GET_EMPLOYEE_PIP_DETAIL}`,params:{ID:d},isNativeEndpoint:!1},"PIPDetails",{enabled:!!d,cacheTime:1*60*60*1e3,staleTime:1*60*60*1e3}),W=(H==null?void 0:H.data)||[],Q=(Qe,Bt)=>{var nr;if(Number(Qe)===1)return L.jsxs("div",{children:["PIP Extended Till:"," ",Xt((nr=Bt==null?void 0:Bt[0])==null?void 0:nr.END_DATE).format("DD-MMM-YYYY")]})},Z=()=>{B(!0);const Qe=new FormData;[...O,...T].forEach(nr=>{Qe.append(nr.name,nr)}),Qe.append("ID",d!=null?d:""),Qe.append("MESSAGE",x),K({isNativeEndpoint:!1,url:`${r}${Fn.PIP.FETCH_PIP_FEEDBACK}`,data:Qe})},{mutate:K,isLoading:ee}=Wi(Ya,"createFeedbackMsg",{onSuccess:({data:Qe})=>{o({type:"success",message:(Qe==null?void 0:Qe.message)||"Send Message Successfully!"}),l.invalidateQueries("fetchPipList"),l.invalidateQueries("PIPDetails"),B(!1),_(""),E([]),A([])},onError:({response:Qe})=>{var Bt;B(!1),o({type:"error",message:((Bt=Qe==null?void 0:Qe.data)==null?void 0:Bt.message)||"Error!"})}}),oe=10,se=Qe=>{const Bt=Qe.target.files,nr=Array.from(Bt);E(Er=>Er.concat(nr)),Qe.target.value=""};function ce(Qe){E(T.filter(Bt=>Bt!==Qe)),URL.revokeObjectURL(Qe)}const pe=Qe=>{const Bt=[...O];let nr=!1;Qe.forEach(Er=>{if(Bt.findIndex(hr=>hr.name===Er.name)===-1&&(Bt.push(Er),Bt.length===oe&&I(!0),Bt.length>oe))return alert(`You can only add a maximum of ${oe} files`),I(!1),nr=!0,!0}),nr||A(Bt)};function ue(Qe){A(O.filter(Bt=>Bt!==Qe)),URL.revokeObjectURL(Qe)}const be=Qe=>{const Bt=Array.prototype.slice.call(Qe.target.files);pe(Bt)},ae=Qe=>{let Bt=`${n}${Qe==null?void 0:Qe.FILE_PATH}`;["jpeg","png","jpg"].includes(Qe.FILE_TYPE)?qa.unstable_batchedUpdates(()=>{D(!0),m(Bt)}):qa.unstable_batchedUpdates(()=>{j(!0),g(Bt)})},ye=()=>{v(!1)};return nu(ee||G),L.jsxs("form",{noValidate:!0,children:[L.jsxs("div",{className:"pip__view__details__container",children:[L.jsxs("div",{className:"w-100 flex-between-start",children:[L.jsxs("div",{className:" flex-column wrap-flex pip__view__details__container__heading",children:[L.jsxs("div",{className:"flex-start-center",style:{gap:"1rem"},children:[L.jsx("div",{className:"pip__initiate__employee__heading",children:"Employee Name"}),L.jsxs("div",{className:"pip__intiate__employee__container",children:[L.jsx(eG,{alt:"Remy Sharp",src:"",sx:{width:24,height:24}}),L.jsxs("span",{className:"pip__initiate__employee__name",children:[(fe=(me=W[0])==null?void 0:me.pip_employee_details)==null?void 0:fe.EMPLOYEE_NAME," ","(",(Ce=(ke=W[0])==null?void 0:ke.pip_employee_details)==null?void 0:Ce.EMPLOYEE_CODE,")"]})]}),L.jsx("span",{style:{color:((we=W[0])==null?void 0:we.STATUS)===1?"#F40000":"#5FD18D"},children:((ge=W[0])==null?void 0:ge.STATUS)===1?"On PIP":"PIP Completed"}),L.jsx("span",{className:"face__to__face",children:((de=W[0])==null?void 0:de.STATUS)===1?Q((Ae=W[0])==null?void 0:Ae.IS_EXTEND,W):i[Number((ne=W[0])==null?void 0:ne.CONCLUSION)]})]}),L.jsx("div",{className:"flex-start-center",style:{gap:"1rem"},children:L.jsxs("div",{className:"pip__initiate__employee__heading",children:["Reasons to initiate PIP :",L.jsxs("span",{style:{color:"#172B4D",textTransform:"capitalize"},children:[" ",(Oe=(Ie=(xe=s==null?void 0:s.filter(Qe=>{var Bt;return Number(Qe==null?void 0:Qe.value)===Number((Bt=W[0])==null?void 0:Bt.REASON)}))==null?void 0:xe[0])==null?void 0:Ie.label)!=null?Oe:""]})]})}),L.jsxs("div",{className:"flex-start-center wrap-flex ",style:{gap:"0.5rem"},children:[L.jsxs("div",{className:"pip__initiate__employee__heading",children:["Initiated by :",L.jsxs("span",{className:"pip__view__details__subheading",children:[(Fe=(Pe=W[0])==null?void 0:Pe.pip_initiate_by)==null?void 0:Fe.EMPLOYEE_NAME," ","(",(ve=(Ee=W[0])==null?void 0:Ee.pip_initiate_by)==null?void 0:ve.EMPLOYEE_CODE,")"]})]}),L.jsx("div",{children:"|"}),L.jsxs("div",{className:"pip__initiate__employee__heading",children:["Initiated On :",L.jsx("span",{className:"pip__view__details__subheading",children:(Se=W[0])!=null&&Se.CREATED_ON?Xt((Be=W[0])==null?void 0:Be.CREATED_ON).format("DD-MMM-YYYY"):"-- --"})]}),L.jsx("div",{children:"|"}),L.jsxs("div",{className:"pip__initiate__employee__heading",children:["PIP StartDate & EndDate :"," ",L.jsxs("span",{className:"pip__view__details__subheading",children:[(qe=(ze=W[0])==null?void 0:ze.START_DATE)!=null?qe:"--"," to ",(Ve=(He=W[0])==null?void 0:He.END_DATE)!=null?Ve:"--"]})]})]}),L.jsxs("div",{className:"pip__initiate__employee__heading",children:["Review Dates: ",L.jsx("span",{className:"admin__pip__view__details__subheading",children:((Ze=W[0])==null?void 0:Ze.km_org_pip_intervals)&&((Je=(st=W[0])==null?void 0:st.km_org_pip_intervals)==null?void 0:Je.map(Qe=>Qe.REVIEW_DATE).join(", "))})]})]}),((ft=W[0])==null?void 0:ft.STATUS)!==2?L.jsx(xi,{label:"Take Action On PIP",size:"small",onClick:Qe=>{y({top:Qe.pageY,left:Qe.pageX}),v(!0)}}):null]}),L.jsxs("div",{className:"pip__view__details__performance__plan",children:[L.jsx("div",{className:"pip__view__details__performance__plan__heading",children:"Performance Improvement Plan"}),L.jsx("div",{style:{textTransform:"capitalize"},children:(pt=W[0])==null?void 0:pt.IMPROVEMENT_PLAN})]}),L.jsx("div",{style:{marginTop:"2.75rem"},children:L.jsx(zme,{value:C,indicatorColor:"primary",onChange:(Qe,Bt)=>w(Bt),TabIndicatorProps:{style:{borderTopLeftRadius:100,borderTopRightRadius:100}},centered:!1,children:[{name:"Timeline",value:1}].map(Qe=>L.jsx(Fme,{value:Qe==null?void 0:Qe.value,sx:{opacity:"1 !important",minWidth:"72px !important",p:0},label:L.jsx(cr,{variant:"span",color:(Qe==null?void 0:Qe.value)===C?"Primary":"primary",children:Qe==null?void 0:Qe.name})},Qe==null?void 0:Qe.value))})}),L.jsx("div",{className:"pip__view__details__history__conatiner",children:C===(a==null?void 0:a.HISTORY)&&L.jsx(Zo,{className:"pip__view__details__history",children:(nn=(It=W[0])==null?void 0:It.km_org_pip_feedback)!=null&&nn.length?L.jsx(c3e,{style:{padding:"0px",margin:"0px"},children:((at=W[0])==null?void 0:at.km_org_pip_feedback)&&((Yn=(Gt=W[0])==null?void 0:Gt.km_org_pip_feedback)==null?void 0:Yn.map(Qe=>{var Bt,nr,Er,hr;return L.jsx(L.Fragment,{children:L.jsxs(f3e,{children:[L.jsx(tJ,{style:{flex:"none",paddingLeft:"0px"},children:L.jsxs("div",{className:"pip__details__timeline__date__content",children:[L.jsx("div",{className:"pip__view__details__history__date",children:Xt(Qe==null?void 0:Qe.CREATED_ON).format("DD-MMM-YYYY")}),L.jsxs("p",{className:"pip__details__history__timelinecontent__subheading",children:["At :"," ",Xt.utc(Qe==null?void 0:Qe.CREATED_ON).format("h:mm A")]})]})}),L.jsxs(h3e,{children:[L.jsx(p3e,{style:{backgroundColor:"#4C70FF",width:"1px"}}),L.jsx(u3e,{style:{backgroundColor:"#E8E8EA"}})]}),L.jsx(d3e,{children:L.jsxs("div",{className:"pip__details__history__timelinecontent",children:[L.jsx("div",{className:"pip__details__history__timelinecontent__heading",children:our(Qe==null?void 0:Qe.TITTLE)}),Qe!=null&&Qe.MESSAGE?L.jsx("div",{style:{padding:"0.5rem",background:"#4C70FF1A"},children:Qe==null?void 0:Qe.MESSAGE}):null,L.jsx("div",{children:Cr.validateDataType(Qe==null?void 0:Qe.PIPHistory,Mu.ARRAY)&&Qe.PIPHistory.length&&Cr.validateDataType((Bt=Qe==null?void 0:Qe.PIPHistory[0])==null?void 0:Bt.HISTORY,Mu.OBJECT)&&((nr=Qe==null?void 0:Qe.PIPHistory)==null?void 0:nr.map(pn=>{var eo,Rn,to;return L.jsx(L.Fragment,{children:L.jsxs("div",{style:{display:"flex"},children:[L.jsx("span",{style:{background:"rgba(76, 112, 255, 0.1)",padding:"5px",marginRight:"7px"},children:Xt((eo=W[0])==null?void 0:eo.START_DATE).format("DD-MMM-YYYY")}),L.jsx(uIe,{}),L.jsx("span",{style:{background:"rgba(76, 112, 255, 0.1)",padding:"5px",marginLeft:"7px"},children:Xt((to=(Rn=pn==null?void 0:pn.HISTORY)==null?void 0:Rn.END_DATE)==null?void 0:to.NEW_VALUE).format("DD-MMM-YYYY")})]})})}))}),L.jsx("div",{className:"images__structure",children:(Qe==null?void 0:Qe.FeedBackFile)&&((Er=Qe==null?void 0:Qe.FeedBackFile)==null?void 0:Er.map(pn=>L.jsx(L.Fragment,{children:(pn==null?void 0:pn.FILE_TYPE)==="pdf"||(pn==null?void 0:pn.FILE_TYPE)==="xls"?L.jsxs(gt,{className:"pdfView__preview",children:[L.jsx(gt,{style:{marginRight:"10px"},children:L.jsx("p",{children:(pn==null?void 0:pn.FILE_TYPE)==="pdf"?L.jsx(b4,{size:22,color:"red"}):L.jsx(MD,{style:{width:"30px"}})})}),L.jsxs(gt,{children:[L.jsx("p",{children:L.jsx(Cm,{data:pn==null?void 0:pn.FILE_NAME,limit:20})}),L.jsx("div",{className:"previeww__color",onClick:()=>{ae(pn)},children:"Preview"})]})]}):null})))}),L.jsx("div",{className:"images__structure",children:(Qe==null?void 0:Qe.FeedBackFile)&&((hr=Qe==null?void 0:Qe.FeedBackFile)==null?void 0:hr.map(pn=>L.jsx(L.Fragment,{children:(pn==null?void 0:pn.FILE_TYPE)==="png"||(pn==null?void 0:pn.FILE_TYPE)==="jpeg"||(pn==null?void 0:pn.FILE_TYPE)==="webp"||(pn==null?void 0:pn.FILE_TYPE)==="jpg"?L.jsx("div",{children:L.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>{ae(pn)},alt:"",src:`${n}${pn==null?void 0:pn.FILE_PATH}`,width:200})}):null})))})]})})]})})}))}):L.jsx(q.Fragment,{children:L.jsx(gt,{className:"card-content-container",style:{paddingTop:"60px"},children:L.jsx(lm,{message:"No Records Found"})})})})})]}),L.jsxs("div",{className:"bottom_text_pad",children:[L.jsxs("div",{className:"editor__remarks",children:[L.jsx(Mur,{placeholder:"Type your review feedback",onChange:Qe=>{_(Qe.target.value)},value:x}),L.jsx(gt,{className:"main__upload__box",children:T&&T.map(Qe=>L.jsxs(gt,{className:"all__upload__images",children:[L.jsx("img",{src:URL.createObjectURL(Qe),height:"200",alt:"upload"}),L.jsx("button",{onClick:()=>ce(Qe),children:L.jsx(xv,{style:{width:"20px",height:"20px"}})})]},Qe))}),L.jsx(gt,{className:"main__upload__box",children:O.map(Qe=>L.jsxs(gt,{className:"pdfView__preview",children:[L.jsxs(gt,{style:{marginRight:"10px"},children:[L.jsx("p",{children:L.jsx(b4,{style:{width:"30px",height:"30px"}})})," "]}),L.jsx(gt,{children:L.jsx("p",{children:L.jsx(Cm,{data:Qe==null?void 0:Qe.name,limit:20})})}),L.jsx("button",{onClick:()=>ue(Qe),children:L.jsx(xv,{style:{width:"20px",height:"20px"}})})]},""))}),L.jsx("div",{className:"editor__bottom",children:L.jsxs("div",{children:[L.jsxs("label",{style:{cursor:"pointer",marginRight:"10px"},children:[L.jsx("input",{type:"file",style:{display:"none"},onChange:se,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),L.jsx("span",{children:L.jsx(l3e,{})})]}),L.jsxs("label",{style:{cursor:"pointer"},children:[L.jsx("input",{id:"fileUpload",type:"file",multiple:!0,accept:"application/pdf, application/vnd.ms-excel",onChange:be,disabled:S,style:{display:"none"}}),L.jsx("span",{children:L.jsx(TX,{})})]})]})})]}),L.jsx("div",{className:"pip__view__details__footer",children:L.jsx(kD,{variant:"contained",size:"small",color:"primary",label:"Send",disabled:!x&&!O.length&&!T.length||$,onClick:Z})}),L.jsx(lIe,{isPopoverOpen:p,anchorPosition:b,pipActionModalClose:ye})]}),M?L.jsx(c,{}):R&&L.jsx(f,{})]})};var nJ={},jur=Jo;Object.defineProperty(nJ,"__esModule",{value:!0});var g3e=nJ.default=void 0,Rur=jur(wi()),Pur=L;g3e=nJ.default=(0,Rur.default)((0,Pur.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16zM8 13.01l1.41 1.41L11 12.84V17h2v-4.16l1.59 1.59L16 13.01 12.01 9z"}),"DriveFolderUpload");function GC(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{u(r.next(d))}catch(g){a(g)}}function l(d){try{u(r.throw(d))}catch(g){a(g)}}function u(d){d.done?i(d.value):o(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function qC(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return l([u,d])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Dur(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function Nur(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Dur(arguments[t]));return e}var Lur=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function aI(e,t){var n=Fur(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Fur(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Lur.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var $ur=[".DS_Store","Thumbs.db"];function Bur(e){return GC(this,void 0,void 0,function(){return qC(this,function(t){return zR(e)&&zur(e)?[2,Gur(e.dataTransfer,e.type)]:Vur(e)?[2,Hur(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Wur(e)]:[2,[]]})})}function zur(e){return zR(e.dataTransfer)}function Vur(e){return zR(e)&&zR(e.target)}function zR(e){return typeof e=="object"&&e!==null}function Hur(e){return cW(e.target.files).map(function(t){return aI(t)})}function Wur(e){return GC(this,void 0,void 0,function(){var t;return qC(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return aI(r)})]}})})}function Gur(e,t){return GC(this,void 0,void 0,function(){var n,r;return qC(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=cW(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(qur))]):[3,2];case 1:return r=o.sent(),[2,Kpe(v3e(r))];case 2:return[2,Kpe(cW(e.files).map(function(i){return aI(i)}))]}})})}function Kpe(e){return e.filter(function(t){return $ur.indexOf(t.name)===-1})}function cW(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function qur(e){if(typeof e.webkitGetAsEntry!="function")return Qpe(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?b3e(t):Qpe(e)}function v3e(e){return e.reduce(function(t,n){return Nur(t,Array.isArray(n)?v3e(n):[n])},[])}function Qpe(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=aI(t);return Promise.resolve(n)}function Yur(e){return GC(this,void 0,void 0,function(){return qC(this,function(t){return[2,e.isDirectory?b3e(e):Uur(e)]})})}function b3e(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var a=this;t.readEntries(function(s){return GC(a,void 0,void 0,function(){var l,u,d;return qC(this,function(g){switch(g.label){case 0:if(s.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=g.sent(),n(l),[3,4];case 3:return u=g.sent(),r(u),[3,4];case 4:return[3,6];case 5:d=Promise.all(s.map(Yur)),o.push(d),i(),g.label=6;case 6:return[2]}})})},function(s){r(s)})}i()})}function Uur(e){return GC(this,void 0,void 0,function(){return qC(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=aI(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var Xur=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?i===s.replace(/\/.*$/,""):o===s})}return!0};function efe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tfe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?efe(Object(n),!0).forEach(function(r){y3e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):efe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nfe(e,t){return Qur(e)||Kur(e,t)||Jur(e,t)||Zur()}function Zur(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3169
3169
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jur(e,t){if(e){if(typeof e=="string")return rfe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rfe(e,t)}}function rfe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kur(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Qur(e){if(Array.isArray(e))return e}var edr="file-invalid-type",tdr="file-too-large",ndr="file-too-small",rdr="too-many-files",odr=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:edr,message:"File type must be ".concat(n)}},ofe=function(t){return{code:tdr,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},ife=function(t){return{code:ndr,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},idr={code:rdr,message:"Too many files"};function x3e(e,t){var n=e.type==="application/x-moz-file"||Xur(e,t);return[n,n?null:odr(t)]}function w3e(e,t,n){if(C5(e.size))if(C5(t)&&C5(n)){if(e.size>n)return[!1,ofe(n)];if(e.size<t)return[!1,ife(t)]}else{if(C5(t)&&e.size<t)return[!1,ife(t)];if(C5(n)&&e.size>n)return[!1,ofe(n)]}return[!0,null]}function C5(e){return e!=null}function adr(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(s){var l=x3e(s,n),u=nfe(l,1),d=u[0],g=w3e(s,r,o),f=nfe(g,1),m=f[0];return d&&m})}function VR(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble!="undefined"?e.cancelBubble:!1}function pM(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function afe(e){e.preventDefault()}function sdr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function ldr(e){return e.indexOf("Edge/")!==-1}function cdr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return sdr(e)||ldr(e)}function Df(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(s){return!VR(r)&&s&&s.apply(void 0,[r].concat(i)),VR(r)})}}function sfe(){return"showOpenFilePicker"in window}function udr(e){return e=typeof e=="string"?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter(function(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}).reduce(function(t,n){return tfe(tfe({},t),{},y3e({},n,[]))},{}):{}}]}var ddr=["children"],pdr=["open"],fdr=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],hdr=["refKey","onChange","onClick"];function mdr(e){return bdr(e)||vdr(e)||C3e(e)||gdr()}function gdr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3170
3170
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vdr(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bdr(e){if(Array.isArray(e))return uW(e)}function j$(e,t){return wdr(e)||xdr(e,t)||C3e(e,t)||ydr()}function ydr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3171
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C3e(e,t){if(e){if(typeof e=="string")return uW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uW(e,t)}}function uW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xdr(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function wdr(e){if(Array.isArray(e))return e}function lfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lfe(Object(n),!0).forEach(function(r){dW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lfe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e,t){if(e==null)return{};var n=Cdr(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cdr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var rJ=q.forwardRef(function(e,t){var n=e.children,r=HR(e,ddr),o=S3e(r),i=o.open,a=HR(o,pdr);return q.useImperativeHandle(t,function(){return{open:i}},[i]),q.createElement(q.Fragment,null,n(ua(ua({},a),{},{open:i})))});rJ.displayName="Dropzone";var _3e={disabled:!1,getFilesFromEvent:Bur,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};rJ.defaultProps=_3e;rJ.propTypes={children:k.func,accept:k.oneOfType([k.string,k.arrayOf(k.string)]),multiple:k.bool,preventDropOnDocument:k.bool,noClick:k.bool,noKeyboard:k.bool,noDrag:k.bool,noDragEventsBubbling:k.bool,minSize:k.number,maxSize:k.number,maxFiles:k.number,disabled:k.bool,getFilesFromEvent:k.func,onFileDialogCancel:k.func,onFileDialogOpen:k.func,useFsAccessApi:k.bool,onDragEnter:k.func,onDragLeave:k.func,onDragOver:k.func,onDrop:k.func,onDropAccepted:k.func,onDropRejected:k.func,validator:k.func};var pW={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function S3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ua(ua({},_3e),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,g=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,c=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,y=t.preventDropOnDocument,C=t.noClick,w=t.noKeyboard,x=t.noDrag,_=t.noDragEventsBubbling,S=t.validator,I=q.useMemo(function(){return typeof v=="function"?v:cfe},[v]),T=q.useMemo(function(){return typeof p=="function"?p:cfe},[p]),E=q.useRef(null),O=q.useRef(null),A=q.useReducer(_dr,pW),M=j$(A,2),j=M[0],R=M[1],D=j.isFocused,$=j.isFileDialogActive,B=j.draggedFiles,H=function(){$&&setTimeout(function(){if(O.current){var xe=O.current.files;xe.length||(R({type:"closeDialog"}),T())}},300)};q.useEffect(function(){return b&&sfe()?function(){}:(window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)})},[O,$,T,b]);var G=q.useRef([]),W=function(xe){E.current&&E.current.contains(xe.target)||(xe.preventDefault(),G.current=[])};q.useEffect(function(){return y&&(document.addEventListener("dragover",afe,!1),document.addEventListener("drop",W,!1)),function(){y&&(document.removeEventListener("dragover",afe),document.removeEventListener("drop",W))}},[E,y]);var Q=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne),G.current=[].concat(mdr(G.current),[ne.target]),pM(ne)&&Promise.resolve(o(ne)).then(function(xe){VR(ne)&&!_||(R({draggedFiles:xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne))})},[o,u,_]),Z=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne);var xe=pM(ne);if(xe&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch(Ie){}return xe&&g&&g(ne),!1},[g,_]),K=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne);var xe=G.current.filter(function(Oe){return E.current&&E.current.contains(Oe)}),Ie=xe.indexOf(ne.target);Ie!==-1&&xe.splice(Ie,1),G.current=xe,!(xe.length>0)&&(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),pM(ne)&&d&&d(ne))},[E,d,_]),ee=q.useCallback(function(ne,xe){var Ie=[],Oe=[];ne.forEach(function(Pe){var Fe=x3e(Pe,n),Ee=j$(Fe,2),ve=Ee[0],Se=Ee[1],Be=w3e(Pe,a,i),ze=j$(Be,2),qe=ze[0],He=ze[1],Ve=S?S(Pe):null;if(ve&&qe&&!Ve)Ie.push(Pe);else{var Ze=[Se,He];Ve&&(Ze=Ze.concat(Ve)),Oe.push({file:Pe,errors:Ze.filter(function(st){return st})})}}),(!s&&Ie.length>1||s&&l>=1&&Ie.length>l)&&(Ie.forEach(function(Pe){Oe.push({file:Pe,errors:[idr]})}),Ie.splice(0)),R({acceptedFiles:Ie,fileRejections:Oe,type:"setFiles"}),f&&f(Ie,Oe,xe),Oe.length>0&&c&&c(Oe,xe),Ie.length>0&&m&&m(Ie,xe)},[R,s,n,a,i,l,f,m,c,S]),oe=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne),G.current=[],pM(ne)&&Promise.resolve(o(ne)).then(function(xe){VR(ne)&&!_||ee(xe,ne)}),R({type:"reset"})},[o,ee,_]),se=q.useCallback(function(){if(b&&sfe()){R({type:"openDialog"}),I();var ne={multiple:s,types:udr(n)};window.showOpenFilePicker(ne).then(function(xe){return o(xe)}).then(function(xe){return ee(xe,null)}).catch(function(xe){return T(xe)}).finally(function(){return R({type:"closeDialog"})});return}O.current&&(R({type:"openDialog"}),I(),O.current.value=null,O.current.click())},[R,I,T,b,ee,n,s]),ce=q.useCallback(function(ne){!E.current||!E.current.isEqualNode(ne.target)||(ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),se())},[E,O,se]),pe=q.useCallback(function(){R({type:"focus"})},[]),ue=q.useCallback(function(){R({type:"blur"})},[]),be=q.useCallback(function(){C||(cdr()?setTimeout(se,0):se())},[O,C,se]),ae=function(xe){return r?null:xe},ye=function(xe){return w?null:ae(xe)},me=function(xe){return x?null:ae(xe)},fe=function(xe){_&&xe.stopPropagation()},ke=q.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xe=ne.refKey,Ie=xe===void 0?"ref":xe,Oe=ne.role,Pe=ne.onKeyDown,Fe=ne.onFocus,Ee=ne.onBlur,ve=ne.onClick,Se=ne.onDragEnter,Be=ne.onDragOver,ze=ne.onDragLeave,qe=ne.onDrop,He=HR(ne,fdr);return ua(ua(dW({onKeyDown:ye(Df(Pe,ce)),onFocus:ye(Df(Fe,pe)),onBlur:ye(Df(Ee,ue)),onClick:ae(Df(ve,be)),onDragEnter:me(Df(Se,Q)),onDragOver:me(Df(Be,Z)),onDragLeave:me(Df(ze,K)),onDrop:me(Df(qe,oe)),role:typeof Oe=="string"&&Oe!==""?Oe:"button"},Ie,E),!r&&!w?{tabIndex:0}:{}),He)}},[E,ce,pe,ue,be,Q,Z,K,oe,w,x,r]),Ce=q.useCallback(function(ne){ne.stopPropagation()},[]),we=q.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xe=ne.refKey,Ie=xe===void 0?"ref":xe,Oe=ne.onChange,Pe=ne.onClick,Fe=HR(ne,hdr),Ee=dW({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:ae(Df(Oe,oe)),onClick:ae(Df(Pe,Ce)),autoComplete:"off",tabIndex:-1},Ie,O);return ua(ua({},Ee),Fe)}},[O,n,s,oe,r]),ge=B.length,de=ge>0&&adr({files:B,accept:n,minSize:a,maxSize:i,multiple:s,maxFiles:l}),Ae=ge>0&&!de;return ua(ua({},j),{},{isDragAccept:de,isDragReject:Ae,isFocused:D&&!r,getRootProps:ke,getInputProps:we,rootRef:E,inputRef:O,open:ae(se)})}function _dr(e,t){switch(t.type){case"focus":return ua(ua({},e),{},{isFocused:!0});case"blur":return ua(ua({},e),{},{isFocused:!1});case"openDialog":return ua(ua({},pW),{},{isFileDialogActive:!0});case"closeDialog":return ua(ua({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ua(ua({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ua(ua({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ua({},pW);default:return e}}function cfe(){}function Sdr(e){return nd({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(e)}function Tdr(e){return nd({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.318 12.545H7.91v-1.909h3.41v1.91zM14.728 0v6h6l-6-6zm1.363 10.636h-3.41v1.91h3.41v-1.91zm0 3.273h-3.41v1.91h3.41v-1.91zM20.727 6.5v15.864c0 .904-.732 1.636-1.636 1.636H4.909a1.636 1.636 0 0 1-1.636-1.636V1.636C3.273.732 4.005 0 4.909 0h9.318v6.5h6.5zm-3.273 2.773H6.545v7.909h10.91v-7.91zm-6.136 4.636H7.91v1.91h3.41v-1.91z"},child:[]}]})(e)}var oJ={},Edr=Jo;Object.defineProperty(oJ,"__esModule",{value:!0});var T3e=oJ.default=void 0,kdr=Edr(wi()),Idr=L;T3e=oJ.default=(0,kdr.default)((0,Idr.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zm-8 2V5h2v6h1.17L12 13.17 9.83 11zm-6 7h14v2H5z"}),"DownloadOutlined");function Odr(e){return nd({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 19v-4h3l-4-5-4 5h3v4z"},child:[]},{tag:"path",attr:{d:"M7 19h2v-2H7c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.756 2.673-3.015l.581-.102.192-.558C8.149 8.274 9.895 7 12 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2h-3v2h3c2.206 0 4-1.794 4-4a4.01 4.01 0 0 0-3.056-3.888C18.507 7.67 15.56 5 12 5 9.244 5 6.85 6.611 5.757 9.15 3.609 9.792 2 11.82 2 14c0 2.757 2.243 5 5 5z"},child:[]}]})(e)}const E3e=5*1024*1024,Adr=E3e/1048576,Mdr=e=>{var we,ge;const{employee_id:t,CONCERN:n}=e,{session:{user:r,ADMIN_BASE_URL:o,token:i}}=Ma(),a=cl(),s=ss(de=>de.pushAlert),{MONTH_FILTERS_OPTIONS:l,PIP_STATUS_OPTIONS:u}=ep("en"),[{monthFilter:d,status:g},f]=q.useState({monthFilter:l[1],status:u[0]}),[m,c]=q.useState({}),[p,v]=q.useState(!1),[b,y]=q.useState(!1),[C,w]=q.useState(null),[x,_]=q.useState(!1),[S,I]=q.useState(""),[T,E]=q.useState({page:0,perPage:10}),[O,A]=q.useState(!1),[M,j]=q.useState(null),[R,D]=q.useState(!1),[$,B]=q.useState(!1),{data:H,isFetching:G}=Ua(bs,{url:`${o}${Fn.PIP.GET_LIST}`,isNativeEndpoint:!1,params:Xe(he({search:S,monthFilter:d==null?void 0:d.value,status:g==null?void 0:g.value,page:T.page,perPage:T.perPage},t&&{employee_id:t,EMPLOYEE_ID:t}),{concern:n!=null?n:ew.SELF})},"fetchPipList"),{mutate:W,isLoading:Q}=Wi(Ya,"mutateEmployeeAckowledgement",{onSuccess:({data:de})=>{s({type:"success",message:(de==null?void 0:de.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:de})=>{var Ae;s({type:"error",message:((Ae=de==null?void 0:de.data)==null?void 0:Ae.message)||"Error!"})}}),{mutate:Z,isLoading:K}=Wi(Ya,"mutateBulkUploadEmployeeToPip",{onSuccess:({data:de})=>{ue(),s({type:"success",message:(de==null?void 0:de.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:de})=>{var Ae;s({type:"error",message:((Ae=de==null?void 0:de.data)==null?void 0:Ae.message)||"Error!"})}}),ee=de=>{c(de),v(!0)},oe=de=>{y(!0),w({top:de.pageY,left:de.pageX})},se=()=>{y(!1)},ce=(de,Ae)=>{E(ne=>Xe(he({},ne),{[de]:Ae}))},pe=()=>_n(exports,null,function*(){var de,Ae,ne,xe,Ie,Oe;try{if(M){const Pe=new FormData;Pe.append("file",M),Pe.append("uploadPath",`${r==null?void 0:r.org_id}/travelDesk/${r==null?void 0:r.employee_id}/${M==null?void 0:M.name}`),Pe.append("ContentType",(de=M==null?void 0:M.type)!=null?de:""),Pe.append("isAws",1);const Fe=yield Ai.post(`${o}auth/hrms/upload/file`,Pe,{headers:{"Content-Type":'Content-Type": "multipart/form-data',token:i}});(Fe==null?void 0:Fe.status)===200?Z({url:`${o}${Fn.PIP.UPLOAD_PIP_EMPLOYEES}`,isNativeEndpoint:!1,data:{filePath:(ne=(Ae=Fe==null?void 0:Fe.data)==null?void 0:Ae.data)==null?void 0:ne.filePath}}):s({type:"error",message:((Ie=(xe=Fe==null?void 0:Fe.data)==null?void 0:xe.data)==null?void 0:Ie.nessage)||"Something Went Wrong! /n Please try again later or contact Support."})}}catch(Pe){s({type:"error",message:(Oe=Pe==null?void 0:Pe.message)!=null?Oe:"Something Went Wrong ! /n Please Try Again Later or Contact Support"})}}),ue=()=>{j(null),D(!1),A(!1)},be=de=>{Array.isArray(de)&&de.forEach(Ae=>{var ne;j(Ae),D(Ae!==null&&((ne=Object.keys(Ae))==null?void 0:ne.length)>0&&(Ae==null?void 0:Ae.size)>=E3e)})},{getRootProps:ae,getInputProps:ye}=S3e({onDrop:be,accept:".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",maxFiles:1}),me=()=>{j(null),D(!1)},fe=(de="",Ae="sample.xlsx",ne="get",xe="")=>_n(exports,null,function*(){try{B(!0);const Ie=yield Ai({method:ne,url:de,headers:{Token:i!=null?i:"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IjJkNjE5ZjdlLWZlYTQtNDI4NC1iMDI4LTI1NTJmZTNiNjA5YiJ9.eyJjYWxsYmFja191cmwiOiIiLCJzZXJ2aWNlIjoiYWNjb3VudCIsInJlbW90ZV9hZGRyIjoiMTYyLjE1OC4yMy4xNSwgMjQwOSIsImRldmljZSI6InBvc3RtYW4iLCJkZXZpY2VfdHlwZSI6InBvc3RtYW4iLCJzYWx0IjoiMzUyZTQ0ZTgtNGEzYy00MGZiLTljYjMtY2JkNDM3NzQ0M2UzIiwiaWF0IjoxNzMxMzA2NDExfQ.3d5zJGdMjUVNlls6TU8iNJs34z6mi2JWQJIM6wQYmnQs2k_BTM1cAElGzHA9co-3BrabF4iuU3_jGtxKcFLwcg"},data:xe,responseType:"blob","content-type":"application/json",Accept:"application/json"});B(!1);const Oe=Ie.headers["Content-Disposition"];let Pe=Ae;if(Oe)try{Pe=Oe.split("filename=")[1]}catch(Se){B(!1),console.error({contentDisposition:Oe,headers:Ie.headers})}const Fe=new Blob([Ie==null?void 0:Ie.data]),Ee=window.URL.createObjectURL(Fe),ve=document.createElement("a");ve.href=Ee,ve.download=Pe,document.body.appendChild(ve),ve.click(),document.body.removeChild(ve),window.URL.revokeObjectURL(Ee)}catch(Ie){s({type:"error",message:"Error in file download,please try again or contact support"}),B(!1),console.log(Ie)}}),ke=()=>_n(exports,null,function*(){try{fe(`${o!=null?o:"https://admin.zimyo.app/apiv2/"}${Fn.PIP.SAPMLE_PIP_DOWNLOAD}`,"Sample Pip List.xlsx")}catch(de){console.log(de)}}),Ce=q.useMemo(()=>[{id:"pip_employee_details.EMPLOYEE_CODE",accessorKey:"pip_employee_details",header:"Employee Code",cell:(de,Ae)=>L.jsx("span",{style:{color:"blue",cursor:"pointer"},onClick:()=>{n!==ew.SELF&&ee(Ae)},children:de==null?void 0:de.EMPLOYEE_CODE})},{id:"pip_employee_details.EMPLOYEE_NAME",accessorKey:"pip_employee_details",header:"Employee Name",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de==null?void 0:de.EMPLOYEE_NAME})},{id:"START_DATE",accessorKey:"START_DATE",header:"Start Date",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de?Xt(de).format("DD-MMM-YYYY"):""})},{id:"END_DATE",accessorKey:"END_DATE",header:"End Date",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de?Xt(de).format("DD-MMM-YYYY"):""})},{id:"STATUS",accessorKey:"STATUS",header:"Status",cell:(de,Ae)=>L.jsx(L.Fragment,{children:L.jsx(vw,{type:de===0?"info":de===1?"warning":de===2?"success":"danger",text:de===0?"Waiting for Approval":de===1?"On PIP":de===2?"PIP Completed":"Pip Rejected",onClick:()=>{},style:{backgroundColor:de===3?"#CB4335":void 0,color:de===3?"#FDEDEC":"#000000"}})})},{id:"IS_ACKNOWLEDGE",accessorKey:"IS_ACKNOWLEDGE",header:"Acknowledgement Status",cell:(de,Ae)=>L.jsx(L.Fragment,{children:L.jsx(vw,{type:de===1?"success":"warning",text:de===1?"Completed":"Pending",onClick:()=>{n===ew.SELF&&de!==1&&W({url:`${o}${Fn.PIP.AKNOWLEDGE}`,isNativeEndpoint:!1,data:{PIP_ID:Ae==null?void 0:Ae.ID}})}})})},{id:"CONCLUSION",accessorKey:"CONCLUSION",header:"Conclusion",cell:(de,Ae)=>L.jsx(L.Fragment,{children:(Ae==null?void 0:Ae.STATUS)===1&&de===2?L.jsx(vw,{type:"error",text:"Send Termination Mail to HR",onClick:()=>{}}):(Ae==null?void 0:Ae.STATUS)===1&&(Ae==null?void 0:Ae.IS_EXTEND)===1?L.jsx(vw,{type:"warning",text:"PIP Extended",onClick:()=>{}}):(Ae==null?void 0:Ae.STATUS)!==1&&de?L.jsx(vw,{type:de===2?"error":"success",text:de===2?"Employee Terminated":"Employee Retained",onClick:()=>{}}):"-"})},{id:"pip_initiate_by",accessorKey:"pip_initiate_by",header:"Initiated By",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de==null?void 0:de.EMPLOYEE_NAME})},{id:"DECISION",accessorKey:"DECISION",header:"DECISION",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de==null?void 0:de.DECISION})},{id:"ID",accessorKey:"ID",header:"Action",cell:(de,Ae)=>L.jsx(L.Fragment,{children:(Ae==null?void 0:Ae.STATUS)===1&&n!==ew.SELF&&(Ae==null?void 0:Ae.CONCLUSION)!==2?L.jsx(jjt,{style:{cursor:"pointer"},onClick:ne=>{oe(ne),c(Ae)}}):L.jsx(L.Fragment,{})})}],[H,r,n]);return nu(Q||$||K),L.jsx(Bjt,{value:{employeeId:m==null?void 0:m.EMPLOYEE_ID,concern:n,pipId:m==null?void 0:m.ID},children:L.jsxs(gt,{className:"overview__container__bg",style:{overflow:"hidden"},children:[L.jsxs("div",{className:"flex-between-center g-10",children:[L.jsxs(gt,{display:"flex",gap:2,flexDirection:"row",children:[!!n&&n!==ew.SELF&&L.jsx("div",{style:{width:300},children:L.jsx(Djt,{width:"100%",placeholder:"Search by EMP Code or Name",onSearch:de=>{I(de)}})}),L.jsx("div",{style:{width:200},children:L.jsx(Kp,{value:d,options:l,placeholder:"Month",onChange:de=>f(Ae=>Xe(he({},Ae),{monthFilter:de})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:de=>Xe(he({},de),{zIndex:99999999999,width:"200px"}),control:de=>Xe(he({},de),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})}),L.jsx("div",{style:{width:200},children:L.jsx(Kp,{value:g,options:u,placeholder:"Status",onChange:de=>f(Ae=>Xe(he({},Ae),{status:de})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:de=>Xe(he({},de),{zIndex:99999999999,width:"200px"}),control:de=>Xe(he({},de),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),!!n&&n!==ew.SELF&&L.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(xi,{label:"Initiate Performance Improvement Plan(PIP)",onClick:()=>{_(!0)}}),L.jsx(xi,{label:"Bulk Import",onClick:()=>{A(!0)}})]})]}),L.jsx(gt,{sx:{height:"70vh",overflow:"scroll"},children:L.jsx(Nk,{columns:Ce,data:Cr.validateDataType(H==null?void 0:H.list,Mu.ARRAY)?H.list:[],loading:G,pagination:{show:!0,totalDataCount:(we=H==null?void 0:H.totalCounts)!=null?we:0,page:T.page,perPage:T.perPage,handlePageChange:de=>{ce("page",de)},handlePerPageChange:de=>{ce("perPage",de)}}})}),L.jsx(Lk,{open:p,handleClose:()=>{v(!1)},title:L.jsx(ek,{title:"Pip Details"}),children:L.jsx(m3e,{})}),L.jsx(lIe,{isPopoverOpen:b,anchorPosition:C,pipActionModalClose:se}),x&&L.jsx(k3e,{openInitiatePIPModal:x,setOpenInitiatePIPModal:_,modalTitle:"Initiate Pip",CONCERN:n}),O&&L.jsx(s1,{size:"md",open:O,title:L.jsxs(gt,{display:"flex",flexDirection:"row",alignItems:"center",children:[L.jsx(Xd,{children:L.jsx(g3e,{color:"secondary"})}),L.jsx(cr,{sx:{lineHeight:1.5,fontWeight:600},children:"Bulk Import Employees"})]}),onModalclose:ue,children:L.jsxs(gt,{sx:{pr:1,pl:1,pt:1},children:[L.jsxs(gt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:[L.jsxs(gt,{style:{maxHeight:"6.93rem",display:"flex",flexDirection:"column",justifyContent:"flex-start"},children:[L.jsx(cr,{className:"textfont",sx:{lineHeight:1.5,fontWeight:600},children:"1. Download the template"}),L.jsx(cr,{className:"textfont",variant:"caption",sx:{fontWeight:400,marginTop:1,lineHeight:"140%"},children:"Use this template with pre-defined columns, and fill in your data."})]}),L.jsx(gt,{className:"w-50 flex-end-center h-100",children:L.jsx(kD,{startIcon:L.jsx(T3e,{}),label:"Download Template",variant:"outlined",color:"secondary",onClick:()=>{ke()}})})]}),L.jsxs(gt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between"},children:[L.jsxs(gt,{sx:{display:"flex",flexDirection:"column"},children:[L.jsx(cr,{sx:{lineHeight:1.5,fontWeight:600},children:"2. Import Excel Sheet."}),L.jsx(cr,{variant:"caption",sx:{fontWeight:400,marginTop:1,lineHeight:"140%"},children:"Once you’ve filled out the Excel Sheet, import it"})]}),L.jsx(gt,{className:"importfileBox",style:{border:R?"1.2px dashed red":"1.2px dashed #4D70FF"},children:L.jsxs(gt,{sx:{display:"flex",flexDirection:"column",padding:"8px"},children:[L.jsxs(gt,Xe(he({style:{outline:"none"}},ae()),{children:[L.jsx("input",he({},ye())),L.jsx(gt,{style:{display:"flex",alignItems:"center",width:"10%",margin:"auto",marginBottom:"0.5rem"},children:L.jsx(Odr,{style:{color:"#4D70FF",width:"3rem",height:"1.5rem"}})}),L.jsxs(cr,{className:"textfont",variant:"body1",children:["Drag and Drop your file here or  ",L.jsx("span",{style:{textDecoration:"underline",color:"#4D70FF",cursor:"pointer"},children:"Choose file"})]})]})),M&&L.jsxs(gt,{style:{display:"flex"},children:[L.jsx(Tdr,{style:{fontSize:"0.875rem",color:"#23a566",marginRight:"0.5rem"}}),L.jsx(cr,{style:{fontSize:"0.75rem",textDecoration:"underline"},children:(ge=M==null?void 0:M.name)!=null?ge:""}),L.jsx(Sdr,{onClick:me,style:{fontSize:"0.875rem",marginLeft:"0.5rem",marginTop:"0.2rem"}})]})]})}),R&&L.jsxs(gt,{style:{display:"flex",gap:"0.625rem"},children:[L.jsx(MIt,{style:{color:"#E70000",height:"0.833rem",width:"0.833rem",marginTop:"-4rem"}}),L.jsxs(cr,{style:{color:"#E70000",fontSize:"0.75rem",fontWeight:"25rem",marginTop:"-10px"},children:[" ","File size must be less than ",Adr," MB."]})]})]}),L.jsxs(gt,{className:"mb-10 mt-10",sx:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(xi,{label:"Cancel",variant:"outlined",onClick:ue}),L.jsx(xi,{label:"Submit",onClick:pe})]})]})})]})})},k3e=e=>{const{INITIAL_PIP_FORM_VALUES:t}=ep("en"),{session:{ADMIN_BASE_URL:n}}=Ma(),{data:r,isFetching:o}=Ua(bs,{url:`${n}${Fn.COMMON.FETCH_HRADMIN_EMAIL_LIST}`,isNativeEndpoint:!1},"fetchHRAdminOptions",{cacheTime:60*60*1e3,staleTime:60*60*1e3}),i=q.useMemo(()=>r==null?void 0:r.map(a=>{var s;return{label:a==null?void 0:a.EMPLOYEE_NAME,value:(s=a==null?void 0:a.emp_details)==null?void 0:s.EMPLOYEE_ID}}).filter(a=>a.value!=""),[r]);return nu(o),L.jsx(sIe,he({HRAdminMailOptions:i,initialPipDetails:t,modalType:Cb.CREATE},e))};var iJ={},jdr=Jo;Object.defineProperty(iJ,"__esModule",{value:!0});var I3e=iJ.default=void 0,Rdr=jdr(wi()),Pdr=L;I3e=iJ.default=(0,Rdr.default)((0,Pdr.jsx)("path",{d:"M18.41 5.8 17.2 4.59c-.78-.78-2.05-.78-2.83 0l-2.68 2.68L3 15.96V20h4.04l8.74-8.74 2.63-2.63c.79-.78.79-2.05 0-2.83M6.21 18H5v-1.21l8.66-8.66 1.21 1.21zM11 20l4-4h6v4z"}),"DriveFileRenameOutline");const Ddr="_templateModal__main_1buad_1",Ndr="_templateModal__notification_slug_1buad_8",Ldr="_templateModal_form_1buad_14",Fdr="_templateModal__slugTitle_1buad_20",_5={templateModal__main:Ddr,templateModal__notification_slug:Ndr,templateModal_form:Ldr,templateModal__slugTitle:Fdr};function $dr(e){return nd({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"},child:[]}]})(e)}var O3e={exports:{}};/*! For license information please see jodit-react.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r(q)})(self,n=>(()=>{var r={922:s=>{s.exports=function(l){var u=[];return u.toString=function(){return this.map(function(d){var g="",f=d[5]!==void 0;return d[4]&&(g+="@supports (".concat(d[4],") {")),d[2]&&(g+="@media ".concat(d[2]," {")),f&&(g+="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {")),g+=l(d),f&&(g+="}"),d[2]&&(g+="}"),d[4]&&(g+="}"),g}).join("")},u.i=function(d,g,f,m,c){typeof d=="string"&&(d=[[null,d,void 0]]);var p={};if(f)for(var v=0;v<this.length;v++){var b=this[v][0];b!=null&&(p[b]=!0)}for(var y=0;y<d.length;y++){var C=[].concat(d[y]);f&&p[C[0]]||(c!==void 0&&(C[5]===void 0||(C[1]="@layer".concat(C[5].length>0?" ".concat(C[5]):""," {").concat(C[1],"}")),C[5]=c),g&&(C[2]&&(C[1]="@media ".concat(C[2]," {").concat(C[1],"}")),C[2]=g),m&&(C[4]?(C[1]="@supports (".concat(C[4],") {").concat(C[1],"}"),C[4]=m):C[4]="".concat(m)),u.push(C))}},u}},155:s=>{s.exports=function(l,u){return u||(u={}),l&&(l=String(l.__esModule?l.default:l),/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),u.hash&&(l+=u.hash),/["'() \t\n]|(%20)/.test(l)||u.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},499:s=>{s.exports=function(l){return l[1]}},714:s=>{s.exports=function(){var l={26318:function(f,m,c){function p(C){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},p(C)}function v(C,w,x){var _=x.value;if(typeof _!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(p(_)));var S=!1;return{configurable:!0,get:function(){if(S||this===C.prototype||this.hasOwnProperty(w)||typeof _!="function")return _;var I=_.bind(this);return S=!0,Object.defineProperty(this,w,{configurable:!0,get:function(){return I},set:function(T){_=T,delete this[w]}}),S=!1,I},set:function(I){_=I}}}function b(C){var w;return typeof Reflect!="undefined"&&typeof Reflect.ownKeys=="function"?w=Reflect.ownKeys(C.prototype):(w=Object.getOwnPropertyNames(C.prototype),typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(C.prototype)))),w.forEach(function(x){if(x!=="constructor"){var _=Object.getOwnPropertyDescriptor(C.prototype,x);typeof _.value=="function"&&Object.defineProperty(C.prototype,x,v(C,x,_))}}),C}function y(){return arguments.length===1?b.apply(void 0,arguments):v.apply(void 0,arguments)}c.d(m,{Ay:function(){return y}})},36115:function(f,m,c){c.d(m,{T:function(){return v}});var p=c(17352);class v{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=typeof document!="undefined"?document:null,this.ownerWindow=typeof window!="undefined"?window:null,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=p.INSERT_AS_HTML,this.enter=p.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock=this.enter!=="br"?this.enter:p.PARAGRAPH,this.defaultMode=p.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
3171
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C3e(e,t){if(e){if(typeof e=="string")return uW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uW(e,t)}}function uW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xdr(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function wdr(e){if(Array.isArray(e))return e}function lfe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lfe(Object(n),!0).forEach(function(r){dW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lfe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e,t){if(e==null)return{};var n=Cdr(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cdr(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var rJ=q.forwardRef(function(e,t){var n=e.children,r=HR(e,ddr),o=S3e(r),i=o.open,a=HR(o,pdr);return q.useImperativeHandle(t,function(){return{open:i}},[i]),q.createElement(q.Fragment,null,n(ua(ua({},a),{},{open:i})))});rJ.displayName="Dropzone";var _3e={disabled:!1,getFilesFromEvent:Bur,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};rJ.defaultProps=_3e;rJ.propTypes={children:k.func,accept:k.oneOfType([k.string,k.arrayOf(k.string)]),multiple:k.bool,preventDropOnDocument:k.bool,noClick:k.bool,noKeyboard:k.bool,noDrag:k.bool,noDragEventsBubbling:k.bool,minSize:k.number,maxSize:k.number,maxFiles:k.number,disabled:k.bool,getFilesFromEvent:k.func,onFileDialogCancel:k.func,onFileDialogOpen:k.func,useFsAccessApi:k.bool,onDragEnter:k.func,onDragLeave:k.func,onDragOver:k.func,onDrop:k.func,onDropAccepted:k.func,onDropRejected:k.func,validator:k.func};var pW={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function S3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ua(ua({},_3e),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,g=t.onDragOver,f=t.onDrop,m=t.onDropAccepted,c=t.onDropRejected,p=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,y=t.preventDropOnDocument,C=t.noClick,w=t.noKeyboard,x=t.noDrag,_=t.noDragEventsBubbling,S=t.validator,I=q.useMemo(function(){return typeof v=="function"?v:cfe},[v]),T=q.useMemo(function(){return typeof p=="function"?p:cfe},[p]),E=q.useRef(null),O=q.useRef(null),A=q.useReducer(_dr,pW),M=j$(A,2),j=M[0],R=M[1],D=j.isFocused,$=j.isFileDialogActive,B=j.draggedFiles,H=function(){$&&setTimeout(function(){if(O.current){var xe=O.current.files;xe.length||(R({type:"closeDialog"}),T())}},300)};q.useEffect(function(){return b&&sfe()?function(){}:(window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)})},[O,$,T,b]);var G=q.useRef([]),W=function(xe){E.current&&E.current.contains(xe.target)||(xe.preventDefault(),G.current=[])};q.useEffect(function(){return y&&(document.addEventListener("dragover",afe,!1),document.addEventListener("drop",W,!1)),function(){y&&(document.removeEventListener("dragover",afe),document.removeEventListener("drop",W))}},[E,y]);var Q=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne),G.current=[].concat(mdr(G.current),[ne.target]),pM(ne)&&Promise.resolve(o(ne)).then(function(xe){VR(ne)&&!_||(R({draggedFiles:xe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne))})},[o,u,_]),Z=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne);var xe=pM(ne);if(xe&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch(Ie){}return xe&&g&&g(ne),!1},[g,_]),K=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne);var xe=G.current.filter(function(Oe){return E.current&&E.current.contains(Oe)}),Ie=xe.indexOf(ne.target);Ie!==-1&&xe.splice(Ie,1),G.current=xe,!(xe.length>0)&&(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),pM(ne)&&d&&d(ne))},[E,d,_]),ee=q.useCallback(function(ne,xe){var Ie=[],Oe=[];ne.forEach(function(Pe){var Fe=x3e(Pe,n),Ee=j$(Fe,2),ve=Ee[0],Se=Ee[1],Be=w3e(Pe,a,i),ze=j$(Be,2),qe=ze[0],He=ze[1],Ve=S?S(Pe):null;if(ve&&qe&&!Ve)Ie.push(Pe);else{var Ze=[Se,He];Ve&&(Ze=Ze.concat(Ve)),Oe.push({file:Pe,errors:Ze.filter(function(st){return st})})}}),(!s&&Ie.length>1||s&&l>=1&&Ie.length>l)&&(Ie.forEach(function(Pe){Oe.push({file:Pe,errors:[idr]})}),Ie.splice(0)),R({acceptedFiles:Ie,fileRejections:Oe,type:"setFiles"}),f&&f(Ie,Oe,xe),Oe.length>0&&c&&c(Oe,xe),Ie.length>0&&m&&m(Ie,xe)},[R,s,n,a,i,l,f,m,c,S]),oe=q.useCallback(function(ne){ne.preventDefault(),ne.persist(),fe(ne),G.current=[],pM(ne)&&Promise.resolve(o(ne)).then(function(xe){VR(ne)&&!_||ee(xe,ne)}),R({type:"reset"})},[o,ee,_]),se=q.useCallback(function(){if(b&&sfe()){R({type:"openDialog"}),I();var ne={multiple:s,types:udr(n)};window.showOpenFilePicker(ne).then(function(xe){return o(xe)}).then(function(xe){return ee(xe,null)}).catch(function(xe){return T(xe)}).finally(function(){return R({type:"closeDialog"})});return}O.current&&(R({type:"openDialog"}),I(),O.current.value=null,O.current.click())},[R,I,T,b,ee,n,s]),ce=q.useCallback(function(ne){!E.current||!E.current.isEqualNode(ne.target)||(ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),se())},[E,O,se]),pe=q.useCallback(function(){R({type:"focus"})},[]),ue=q.useCallback(function(){R({type:"blur"})},[]),be=q.useCallback(function(){C||(cdr()?setTimeout(se,0):se())},[O,C,se]),ae=function(xe){return r?null:xe},ye=function(xe){return w?null:ae(xe)},me=function(xe){return x?null:ae(xe)},fe=function(xe){_&&xe.stopPropagation()},ke=q.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xe=ne.refKey,Ie=xe===void 0?"ref":xe,Oe=ne.role,Pe=ne.onKeyDown,Fe=ne.onFocus,Ee=ne.onBlur,ve=ne.onClick,Se=ne.onDragEnter,Be=ne.onDragOver,ze=ne.onDragLeave,qe=ne.onDrop,He=HR(ne,fdr);return ua(ua(dW({onKeyDown:ye(Df(Pe,ce)),onFocus:ye(Df(Fe,pe)),onBlur:ye(Df(Ee,ue)),onClick:ae(Df(ve,be)),onDragEnter:me(Df(Se,Q)),onDragOver:me(Df(Be,Z)),onDragLeave:me(Df(ze,K)),onDrop:me(Df(qe,oe)),role:typeof Oe=="string"&&Oe!==""?Oe:"button"},Ie,E),!r&&!w?{tabIndex:0}:{}),He)}},[E,ce,pe,ue,be,Q,Z,K,oe,w,x,r]),Ce=q.useCallback(function(ne){ne.stopPropagation()},[]),we=q.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},xe=ne.refKey,Ie=xe===void 0?"ref":xe,Oe=ne.onChange,Pe=ne.onClick,Fe=HR(ne,hdr),Ee=dW({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:ae(Df(Oe,oe)),onClick:ae(Df(Pe,Ce)),autoComplete:"off",tabIndex:-1},Ie,O);return ua(ua({},Ee),Fe)}},[O,n,s,oe,r]),ge=B.length,de=ge>0&&adr({files:B,accept:n,minSize:a,maxSize:i,multiple:s,maxFiles:l}),Ae=ge>0&&!de;return ua(ua({},j),{},{isDragAccept:de,isDragReject:Ae,isFocused:D&&!r,getRootProps:ke,getInputProps:we,rootRef:E,inputRef:O,open:ae(se)})}function _dr(e,t){switch(t.type){case"focus":return ua(ua({},e),{},{isFocused:!0});case"blur":return ua(ua({},e),{},{isFocused:!1});case"openDialog":return ua(ua({},pW),{},{isFileDialogActive:!0});case"closeDialog":return ua(ua({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ua(ua({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ua(ua({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ua({},pW);default:return e}}function cfe(){}function Sdr(e){return nd({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(e)}function Tdr(e){return nd({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.318 12.545H7.91v-1.909h3.41v1.91zM14.728 0v6h6l-6-6zm1.363 10.636h-3.41v1.91h3.41v-1.91zm0 3.273h-3.41v1.91h3.41v-1.91zM20.727 6.5v15.864c0 .904-.732 1.636-1.636 1.636H4.909a1.636 1.636 0 0 1-1.636-1.636V1.636C3.273.732 4.005 0 4.909 0h9.318v6.5h6.5zm-3.273 2.773H6.545v7.909h10.91v-7.91zm-6.136 4.636H7.91v1.91h3.41v-1.91z"},child:[]}]})(e)}var oJ={},Edr=Jo;Object.defineProperty(oJ,"__esModule",{value:!0});var T3e=oJ.default=void 0,kdr=Edr(wi()),Idr=L;T3e=oJ.default=(0,kdr.default)((0,Idr.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zm-8 2V5h2v6h1.17L12 13.17 9.83 11zm-6 7h14v2H5z"}),"DownloadOutlined");function Odr(e){return nd({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 19v-4h3l-4-5-4 5h3v4z"},child:[]},{tag:"path",attr:{d:"M7 19h2v-2H7c-1.654 0-3-1.346-3-3 0-1.404 1.199-2.756 2.673-3.015l.581-.102.192-.558C8.149 8.274 9.895 7 12 7c2.757 0 5 2.243 5 5v1h1c1.103 0 2 .897 2 2s-.897 2-2 2h-3v2h3c2.206 0 4-1.794 4-4a4.01 4.01 0 0 0-3.056-3.888C18.507 7.67 15.56 5 12 5 9.244 5 6.85 6.611 5.757 9.15 3.609 9.792 2 11.82 2 14c0 2.757 2.243 5 5 5z"},child:[]}]})(e)}const E3e=5*1024*1024,Adr=E3e/1048576,Mdr=e=>{var we,ge;const{employee_id:t,CONCERN:n}=e,{session:{user:r,ADMIN_BASE_URL:o,token:i}}=Ma(),a=cl(),s=ss(de=>de.pushAlert),{MONTH_FILTERS_OPTIONS:l,PIP_STATUS_OPTIONS:u}=ep("en"),[{monthFilter:d,status:g},f]=q.useState({monthFilter:l[1],status:u[0]}),[m,c]=q.useState({}),[p,v]=q.useState(!1),[b,y]=q.useState(!1),[C,w]=q.useState(null),[x,_]=q.useState(!1),[S,I]=q.useState(""),[T,E]=q.useState({page:0,perPage:10}),[O,A]=q.useState(!1),[M,j]=q.useState(null),[R,D]=q.useState(!1),[$,B]=q.useState(!1),{data:H,isFetching:G}=Ua(bs,{url:`${o}${Fn.PIP.GET_LIST}`,isNativeEndpoint:!1,params:Xe(he({search:S,monthFilter:d==null?void 0:d.value,status:g==null?void 0:g.value,page:T.page,perPage:T.perPage},t&&{employee_id:t,EMPLOYEE_ID:t}),{concern:n!=null?n:ew.SELF})},"fetchPipList"),{mutate:W,isLoading:Q}=Wi(Ya,"mutateEmployeeAckowledgement",{onSuccess:({data:de})=>{s({type:"success",message:(de==null?void 0:de.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:de})=>{var Ae;s({type:"error",message:((Ae=de==null?void 0:de.data)==null?void 0:Ae.message)||"Error!"})}}),{mutate:Z,isLoading:K}=Wi(Ya,"mutateBulkUploadEmployeeToPip",{onSuccess:({data:de})=>{ue(),s({type:"success",message:(de==null?void 0:de.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:de})=>{var Ae;s({type:"error",message:((Ae=de==null?void 0:de.data)==null?void 0:Ae.message)||"Error!"})}}),ee=de=>{c(de),v(!0)},oe=de=>{y(!0),w({top:de.pageY,left:de.pageX})},se=()=>{y(!1)},ce=(de,Ae)=>{E(ne=>Xe(he({},ne),{[de]:Ae}))},pe=()=>_n(exports,null,function*(){var de,Ae,ne,xe,Ie,Oe;try{if(M){const Pe=new FormData;Pe.append("file",M),Pe.append("uploadPath",`${r==null?void 0:r.org_id}/travelDesk/${r==null?void 0:r.employee_id}/${M==null?void 0:M.name}`),Pe.append("ContentType",(de=M==null?void 0:M.type)!=null?de:""),Pe.append("isAws",1);const Fe=yield Ai.post(`${o}auth/hrms/upload/file`,Pe,{headers:{"Content-Type":'Content-Type": "multipart/form-data',token:i}});(Fe==null?void 0:Fe.status)===200?Z({url:`${o}${Fn.PIP.UPLOAD_PIP_EMPLOYEES}`,isNativeEndpoint:!1,data:{filePath:(ne=(Ae=Fe==null?void 0:Fe.data)==null?void 0:Ae.data)==null?void 0:ne.filePath}}):s({type:"error",message:((Ie=(xe=Fe==null?void 0:Fe.data)==null?void 0:xe.data)==null?void 0:Ie.nessage)||"Something Went Wrong! /n Please try again later or contact Support."})}}catch(Pe){s({type:"error",message:(Oe=Pe==null?void 0:Pe.message)!=null?Oe:"Something Went Wrong ! /n Please Try Again Later or Contact Support"})}}),ue=()=>{j(null),D(!1),A(!1)},be=de=>{Array.isArray(de)&&de.forEach(Ae=>{var ne;j(Ae),D(Ae!==null&&((ne=Object.keys(Ae))==null?void 0:ne.length)>0&&(Ae==null?void 0:Ae.size)>=E3e)})},{getRootProps:ae,getInputProps:ye}=S3e({onDrop:be,accept:".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",maxFiles:1}),me=()=>{j(null),D(!1)},fe=(de="",Ae="sample.xlsx",ne="get",xe="")=>_n(exports,null,function*(){try{B(!0);const Ie=yield Ai({method:ne,url:de,headers:{Token:i!=null?i:"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IjJkNjE5ZjdlLWZlYTQtNDI4NC1iMDI4LTI1NTJmZTNiNjA5YiJ9.eyJjYWxsYmFja191cmwiOiIiLCJzZXJ2aWNlIjoiYWNjb3VudCIsInJlbW90ZV9hZGRyIjoiMTYyLjE1OC4yMy4xNSwgMjQwOSIsImRldmljZSI6InBvc3RtYW4iLCJkZXZpY2VfdHlwZSI6InBvc3RtYW4iLCJzYWx0IjoiMzUyZTQ0ZTgtNGEzYy00MGZiLTljYjMtY2JkNDM3NzQ0M2UzIiwiaWF0IjoxNzMxMzA2NDExfQ.3d5zJGdMjUVNlls6TU8iNJs34z6mi2JWQJIM6wQYmnQs2k_BTM1cAElGzHA9co-3BrabF4iuU3_jGtxKcFLwcg"},data:xe,responseType:"blob","content-type":"application/json",Accept:"application/json"});B(!1);const Oe=Ie.headers["Content-Disposition"];let Pe=Ae;if(Oe)try{Pe=Oe.split("filename=")[1]}catch(Se){B(!1),console.error({contentDisposition:Oe,headers:Ie.headers})}const Fe=new Blob([Ie==null?void 0:Ie.data]),Ee=window.URL.createObjectURL(Fe),ve=document.createElement("a");ve.href=Ee,ve.download=Pe,document.body.appendChild(ve),ve.click(),document.body.removeChild(ve),window.URL.revokeObjectURL(Ee)}catch(Ie){s({type:"error",message:"Error in file download,please try again or contact support"}),B(!1),console.log(Ie)}}),ke=()=>_n(exports,null,function*(){try{fe(`${o!=null?o:"https://admin.zimyo.app/apiv2/"}${Fn.PIP.SAPMLE_PIP_DOWNLOAD}`,"Sample Pip List.xlsx")}catch(de){console.log(de)}}),Ce=q.useMemo(()=>[{id:"pip_employee_details.EMPLOYEE_CODE",accessorKey:"pip_employee_details",header:"Employee Code",cell:(de,Ae)=>L.jsx("span",{style:{color:"blue",cursor:"pointer"},onClick:()=>{n!==ew.SELF&&ee(Ae)},children:de==null?void 0:de.EMPLOYEE_CODE})},{id:"pip_employee_details.EMPLOYEE_NAME",accessorKey:"pip_employee_details",header:"Employee Name",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de==null?void 0:de.EMPLOYEE_NAME})},{id:"START_DATE",accessorKey:"START_DATE",header:"Start Date",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de?Xt(de).format("DD-MMM-YYYY"):""})},{id:"END_DATE",accessorKey:"END_DATE",header:"End Date",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de?Xt(de).format("DD-MMM-YYYY"):""})},{id:"STATUS",accessorKey:"STATUS",header:"Status",cell:(de,Ae)=>L.jsx(L.Fragment,{children:L.jsx(vw,{type:de===0?"info":de===1?"warning":de===2?"success":"danger",text:de===0?"Waiting for Approval":de===1?"On PIP":de===2?"PIP Completed":"Pip Rejected",onClick:()=>{},style:{backgroundColor:de===3?"#CB4335":void 0,color:de===3?"#FDEDEC":"#000000"}})})},{id:"IS_ACKNOWLEDGE",accessorKey:"IS_ACKNOWLEDGE",header:"Acknowledgement Status",cell:(de,Ae)=>L.jsx(L.Fragment,{children:L.jsx(vw,{type:de===1?"success":"warning",text:de===1?"Completed":"Pending",onClick:()=>{n===ew.SELF&&de!==1&&W({url:`${o}${Fn.PIP.AKNOWLEDGE}`,isNativeEndpoint:!1,data:{PIP_ID:Ae==null?void 0:Ae.ID}})}})})},{id:"CONCLUSION",accessorKey:"CONCLUSION",header:"Conclusion",cell:(de,Ae)=>L.jsx(L.Fragment,{children:(Ae==null?void 0:Ae.STATUS)===1&&de===2?L.jsx(vw,{type:"error",text:"Send Termination Mail to HR",onClick:()=>{}}):(Ae==null?void 0:Ae.STATUS)===1&&(Ae==null?void 0:Ae.IS_EXTEND)===1?L.jsx(vw,{type:"warning",text:"PIP Extended",onClick:()=>{}}):(Ae==null?void 0:Ae.STATUS)===2?L.jsx(vw,{type:de===2?"error":"success",text:de===2?"Employee Terminated":"Employee Retained",onClick:()=>{}}):"-"})},{id:"pip_initiate_by",accessorKey:"pip_initiate_by",header:"Initiated By",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de==null?void 0:de.EMPLOYEE_NAME})},{id:"DECISION",accessorKey:"DECISION",header:"DECISION",cell:(de,Ae)=>L.jsx(L.Fragment,{children:de==null?void 0:de.DECISION})},{id:"ID",accessorKey:"ID",header:"Action",cell:(de,Ae)=>L.jsx(L.Fragment,{children:(Ae==null?void 0:Ae.STATUS)===1&&n!==ew.SELF&&(Ae==null?void 0:Ae.CONCLUSION)!==2?L.jsx(jjt,{style:{cursor:"pointer"},onClick:ne=>{oe(ne),c(Ae)}}):L.jsx(L.Fragment,{})})}],[H,r,n]);return nu(Q||$||K),L.jsx(Bjt,{value:{employeeId:m==null?void 0:m.EMPLOYEE_ID,concern:n,pipId:m==null?void 0:m.ID},children:L.jsxs(gt,{className:"overview__container__bg",style:{overflow:"hidden"},children:[L.jsxs("div",{className:"flex-between-center g-10",children:[L.jsxs(gt,{display:"flex",gap:2,flexDirection:"row",children:[!!n&&n!==ew.SELF&&L.jsx("div",{style:{width:300},children:L.jsx(Djt,{width:"100%",placeholder:"Search by EMP Code or Name",onSearch:de=>{I(de)}})}),L.jsx("div",{style:{width:200},children:L.jsx(Kp,{value:d,options:l,placeholder:"Month",onChange:de=>f(Ae=>Xe(he({},Ae),{monthFilter:de})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:de=>Xe(he({},de),{zIndex:99999999999,width:"200px"}),control:de=>Xe(he({},de),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})}),L.jsx("div",{style:{width:200},children:L.jsx(Kp,{value:g,options:u,placeholder:"Status",onChange:de=>f(Ae=>Xe(he({},Ae),{status:de})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:de=>Xe(he({},de),{zIndex:99999999999,width:"200px"}),control:de=>Xe(he({},de),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),!!n&&n!==ew.SELF&&L.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(xi,{label:"Initiate Performance Improvement Plan(PIP)",onClick:()=>{_(!0)}}),L.jsx(xi,{label:"Bulk Import",onClick:()=>{A(!0)}})]})]}),L.jsx(gt,{sx:{height:"70vh",overflow:"scroll"},children:L.jsx(Nk,{columns:Ce,data:Cr.validateDataType(H==null?void 0:H.list,Mu.ARRAY)?H.list:[],loading:G,pagination:{show:!0,totalDataCount:(we=H==null?void 0:H.totalCounts)!=null?we:0,page:T.page,perPage:T.perPage,handlePageChange:de=>{ce("page",de)},handlePerPageChange:de=>{ce("perPage",de)}}})}),L.jsx(Lk,{open:p,handleClose:()=>{v(!1)},title:L.jsx(ek,{title:"Pip Details"}),children:L.jsx(m3e,{})}),L.jsx(lIe,{isPopoverOpen:b,anchorPosition:C,pipActionModalClose:se}),x&&L.jsx(k3e,{openInitiatePIPModal:x,setOpenInitiatePIPModal:_,modalTitle:"Initiate Pip",CONCERN:n}),O&&L.jsx(s1,{size:"md",open:O,title:L.jsxs(gt,{display:"flex",flexDirection:"row",alignItems:"center",children:[L.jsx(Xd,{children:L.jsx(g3e,{color:"secondary"})}),L.jsx(cr,{sx:{lineHeight:1.5,fontWeight:600},children:"Bulk Import Employees"})]}),onModalclose:ue,children:L.jsxs(gt,{sx:{pr:1,pl:1,pt:1},children:[L.jsxs(gt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:[L.jsxs(gt,{style:{maxHeight:"6.93rem",display:"flex",flexDirection:"column",justifyContent:"flex-start"},children:[L.jsx(cr,{className:"textfont",sx:{lineHeight:1.5,fontWeight:600},children:"1. Download the template"}),L.jsx(cr,{className:"textfont",variant:"caption",sx:{fontWeight:400,marginTop:1,lineHeight:"140%"},children:"Use this template with pre-defined columns, and fill in your data."})]}),L.jsx(gt,{className:"w-50 flex-end-center h-100",children:L.jsx(kD,{startIcon:L.jsx(T3e,{}),label:"Download Template",variant:"outlined",color:"secondary",onClick:()=>{ke()}})})]}),L.jsxs(gt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between"},children:[L.jsxs(gt,{sx:{display:"flex",flexDirection:"column"},children:[L.jsx(cr,{sx:{lineHeight:1.5,fontWeight:600},children:"2. Import Excel Sheet."}),L.jsx(cr,{variant:"caption",sx:{fontWeight:400,marginTop:1,lineHeight:"140%"},children:"Once you’ve filled out the Excel Sheet, import it"})]}),L.jsx(gt,{className:"importfileBox",style:{border:R?"1.2px dashed red":"1.2px dashed #4D70FF"},children:L.jsxs(gt,{sx:{display:"flex",flexDirection:"column",padding:"8px"},children:[L.jsxs(gt,Xe(he({style:{outline:"none"}},ae()),{children:[L.jsx("input",he({},ye())),L.jsx(gt,{style:{display:"flex",alignItems:"center",width:"10%",margin:"auto",marginBottom:"0.5rem"},children:L.jsx(Odr,{style:{color:"#4D70FF",width:"3rem",height:"1.5rem"}})}),L.jsxs(cr,{className:"textfont",variant:"body1",children:["Drag and Drop your file here or  ",L.jsx("span",{style:{textDecoration:"underline",color:"#4D70FF",cursor:"pointer"},children:"Choose file"})]})]})),M&&L.jsxs(gt,{style:{display:"flex"},children:[L.jsx(Tdr,{style:{fontSize:"0.875rem",color:"#23a566",marginRight:"0.5rem"}}),L.jsx(cr,{style:{fontSize:"0.75rem",textDecoration:"underline"},children:(ge=M==null?void 0:M.name)!=null?ge:""}),L.jsx(Sdr,{onClick:me,style:{fontSize:"0.875rem",marginLeft:"0.5rem",marginTop:"0.2rem"}})]})]})}),R&&L.jsxs(gt,{style:{display:"flex",gap:"0.625rem"},children:[L.jsx(MIt,{style:{color:"#E70000",height:"0.833rem",width:"0.833rem",marginTop:"-4rem"}}),L.jsxs(cr,{style:{color:"#E70000",fontSize:"0.75rem",fontWeight:"25rem",marginTop:"-10px"},children:[" ","File size must be less than ",Adr," MB."]})]})]}),L.jsxs(gt,{className:"mb-10 mt-10",sx:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(xi,{label:"Cancel",variant:"outlined",onClick:ue}),L.jsx(xi,{label:"Submit",onClick:pe})]})]})})]})})},k3e=e=>{const{INITIAL_PIP_FORM_VALUES:t}=ep("en"),{session:{ADMIN_BASE_URL:n}}=Ma(),{data:r,isFetching:o}=Ua(bs,{url:`${n}${Fn.COMMON.FETCH_HRADMIN_EMAIL_LIST}`,isNativeEndpoint:!1},"fetchHRAdminOptions",{cacheTime:60*60*1e3,staleTime:60*60*1e3}),i=q.useMemo(()=>r==null?void 0:r.map(a=>{var s;return{label:a==null?void 0:a.EMPLOYEE_NAME,value:(s=a==null?void 0:a.emp_details)==null?void 0:s.EMPLOYEE_ID}}).filter(a=>a.value!=""),[r]);return nu(o),L.jsx(sIe,he({HRAdminMailOptions:i,initialPipDetails:t,modalType:Cb.CREATE},e))};var iJ={},jdr=Jo;Object.defineProperty(iJ,"__esModule",{value:!0});var I3e=iJ.default=void 0,Rdr=jdr(wi()),Pdr=L;I3e=iJ.default=(0,Rdr.default)((0,Pdr.jsx)("path",{d:"M18.41 5.8 17.2 4.59c-.78-.78-2.05-.78-2.83 0l-2.68 2.68L3 15.96V20h4.04l8.74-8.74 2.63-2.63c.79-.78.79-2.05 0-2.83M6.21 18H5v-1.21l8.66-8.66 1.21 1.21zM11 20l4-4h6v4z"}),"DriveFileRenameOutline");const Ddr="_templateModal__main_1buad_1",Ndr="_templateModal__notification_slug_1buad_8",Ldr="_templateModal_form_1buad_14",Fdr="_templateModal__slugTitle_1buad_20",_5={templateModal__main:Ddr,templateModal__notification_slug:Ndr,templateModal_form:Ldr,templateModal__slugTitle:Fdr};function $dr(e){return nd({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"},child:[]},{tag:"path",attr:{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"},child:[]}]})(e)}var O3e={exports:{}};/*! For license information please see jodit-react.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r(q)})(self,n=>(()=>{var r={922:s=>{s.exports=function(l){var u=[];return u.toString=function(){return this.map(function(d){var g="",f=d[5]!==void 0;return d[4]&&(g+="@supports (".concat(d[4],") {")),d[2]&&(g+="@media ".concat(d[2]," {")),f&&(g+="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {")),g+=l(d),f&&(g+="}"),d[2]&&(g+="}"),d[4]&&(g+="}"),g}).join("")},u.i=function(d,g,f,m,c){typeof d=="string"&&(d=[[null,d,void 0]]);var p={};if(f)for(var v=0;v<this.length;v++){var b=this[v][0];b!=null&&(p[b]=!0)}for(var y=0;y<d.length;y++){var C=[].concat(d[y]);f&&p[C[0]]||(c!==void 0&&(C[5]===void 0||(C[1]="@layer".concat(C[5].length>0?" ".concat(C[5]):""," {").concat(C[1],"}")),C[5]=c),g&&(C[2]&&(C[1]="@media ".concat(C[2]," {").concat(C[1],"}")),C[2]=g),m&&(C[4]?(C[1]="@supports (".concat(C[4],") {").concat(C[1],"}"),C[4]=m):C[4]="".concat(m)),u.push(C))}},u}},155:s=>{s.exports=function(l,u){return u||(u={}),l&&(l=String(l.__esModule?l.default:l),/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),u.hash&&(l+=u.hash),/["'() \t\n]|(%20)/.test(l)||u.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},499:s=>{s.exports=function(l){return l[1]}},714:s=>{s.exports=function(){var l={26318:function(f,m,c){function p(C){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},p(C)}function v(C,w,x){var _=x.value;if(typeof _!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(p(_)));var S=!1;return{configurable:!0,get:function(){if(S||this===C.prototype||this.hasOwnProperty(w)||typeof _!="function")return _;var I=_.bind(this);return S=!0,Object.defineProperty(this,w,{configurable:!0,get:function(){return I},set:function(T){_=T,delete this[w]}}),S=!1,I},set:function(I){_=I}}}function b(C){var w;return typeof Reflect!="undefined"&&typeof Reflect.ownKeys=="function"?w=Reflect.ownKeys(C.prototype):(w=Object.getOwnPropertyNames(C.prototype),typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(C.prototype)))),w.forEach(function(x){if(x!=="constructor"){var _=Object.getOwnPropertyDescriptor(C.prototype,x);typeof _.value=="function"&&Object.defineProperty(C.prototype,x,v(C,x,_))}}),C}function y(){return arguments.length===1?b.apply(void 0,arguments):v.apply(void 0,arguments)}c.d(m,{Ay:function(){return y}})},36115:function(f,m,c){c.d(m,{T:function(){return v}});var p=c(17352);class v{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=typeof document!="undefined"?document:null,this.ownerWindow=typeof window!="undefined"?window:null,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=p.INSERT_AS_HTML,this.enter=p.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock=this.enter!=="br"?this.enter:p.PARAGRAPH,this.defaultMode=p.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
3172
3172
  `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return v.__defaultOptions||(v.__defaultOptions=new v),v.__defaultOptions}}v.prototype.controls={}},86302:function(f,m,c){c.d(m,{j:function(){return T}});var p=c(17352),v=c(59146),b=c(99951),y=c(69052),C=c(2461),w=c(25376),x=c(92039),_=c(98253),S=c(35642),I=(c(28712),c(21567));class T{constructor(){var O,A,M,j,R;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=(O=queueMicrotask==null?void 0:queueMicrotask.bind(window))!==null&&O!==void 0?O:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=(M=(A=window.requestIdleCallback)===null||A===void 0?void 0:A.bind(window))!==null&&M!==void 0?M:(D,$)=>{var B;const H=Date.now();return this.setTimeout(()=>{D({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-H))})},(B=$==null?void 0:$.timeout)!==null&&B!==void 0?B:1)},this.__cancelIdleCallbackNative=(R=(j=window.cancelIdleCallback)===null||j===void 0?void 0:j.bind(window))!==null&&R!==void 0?R:D=>{this.clearTimeout(D)},this.isDestructed=!1}delay(O){return this.promise(A=>this.setTimeout(A,O))}setTimeout(O,A,...M){if(this.isDestructed)return 0;let j={};(0,S.R)(A)&&(A=0),(0,C.E)(A)||(j=A,A=j.timeout||0),j.label&&this.clearLabel(j.label);const R=(0,v.w)(O,A,...M),D=j.label||R;return this.timers.set(D,R),this.__callbacks.set(D,O),R}updateTimeout(O,A){if(!O||!this.timers.has(O))return null;const M=this.__callbacks.get(O);return this.setTimeout(M,{label:O,timeout:A})}clearLabel(O){O&&this.timers.has(O)&&((0,v.D)(this.timers.get(O)),this.timers.delete(O),this.__callbacks.delete(O))}clearTimeout(O){if((0,_.K)(O))return this.clearLabel(O);(0,v.D)(O),this.timers.delete(O),this.__callbacks.delete(O)}debounce(O,A,M=!1){let j=0,R=!1;const D=[],$=(...H)=>{if(!R){j=0;const G=O(...H);if(R=!0,D.length){const W=()=>{D.forEach(Q=>Q()),D.length=0};(0,x.y)(G)?G.finally(W):W()}}},B=(...H)=>{R=!1,A?(!j&&M&&$(...H),(0,v.D)(j),j=this.setTimeout(()=>$(...H),(0,y.T)(A)?A():A),this.timers.set(O,j)):$(...H)};return(0,w.Q)(A)&&A.promisify?(...H)=>{const G=this.promise(W=>{D.push(W)}).catch(W=>{if((0,b.z)(W))return null;throw W});return B(...H),G}:B}microDebounce(O,A=!1){let M,j=!1,R=!0;return(...D)=>{M=D,j?R=!0:(R=!0,A&&(R=!1,O(...M)),j=!0,this.__queueMicrotaskNative(()=>{j=!1,this.isDestructed||R&&O(...M)}))}}throttle(O,A,M=!1){let j,R,D,$=null;return(...B)=>{j=!0,D=B,A?$||(R=()=>{j?(O(...D),j=!1,$=this.setTimeout(R,(0,y.T)(A)?A():A),this.timers.set(R,$)):$=null},R()):O(...D)}}promise(O){let A=()=>{};const M=new Promise((j,R)=>{A=()=>R((0,I.h)("Abort async")),this.promisesRejections.add(A),O(j,R)});return M.finally||typeof process=="undefined"||p.IS_ES_NEXT||(M.finally=j=>(M.then(j).catch(j),M)),M.finally(()=>{this.promisesRejections.delete(A)}).catch(()=>null),M.rejectCallback=A,M}promiseState(O){if(O.status)return O.status;if(!Promise.race)return new Promise(M=>{O.then(j=>(M("fulfilled"),j),j=>{throw M("rejected"),j}),this.setTimeout(()=>{M("pending")},100)});const A={};return Promise.race([O,A]).then(M=>M===A?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(O,A){const M=this.requestIdleCallbackNative(O,A);return this.requestsIdle.add(M),M}requestIdlePromise(O){return this.promise(A=>{const M=this.requestIdleCallback(()=>A(M),O)})}cancelIdleCallback(O){return this.requestsIdle.delete(O),this.__cancelIdleCallbackNative(O)}requestAnimationFrame(O){const A=requestAnimationFrame(O);return this.requestsRaf.add(A),A}cancelAnimationFrame(O){this.requestsRaf.delete(O),cancelAnimationFrame(O)}clear(){this.requestsIdle.forEach(O=>this.cancelIdleCallback(O)),this.requestsRaf.forEach(O=>this.cancelAnimationFrame(O)),this.timers.forEach(O=>(0,v.D)(this.timers.get(O))),this.timers.clear(),this.promisesRejections.forEach(O=>O()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},64890:function(f,m,c){c.d(m,{j:function(){return p.j}});var p=c(86302)},37474:function(f,m,c){c.d(m,{u:function(){return w}});var p=c(64890),v=c(64567),b=c(56298),y=c(65147);const C=new Map;class w{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,y.kebabCase)(((0,y.isFunction)(this.className)?this.className():"")||(0,y.getClassName)(this))),this.__componentName}getFullElName(_,S,I){const T=[this.componentName];return _&&(_=_.replace(/[^a-z0-9-]/gi,"-"),T.push(`__${_}`)),S&&(T.push("_",S),T.push("_",(0,y.isVoid)(I)?"true":I.toString())),T.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(_,S){return(0,y.get)(_,S||this)}get isReady(){return this.componentStatus===v.f.ready}get isDestructed(){return this.componentStatus===v.f.destructed}get isInDestruct(){return v.f.beforeDestruct===this.componentStatus||v.f.destructed===this.componentStatus}bindDestruct(_){return _.hookStatus(v.f.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}constructor(){this.async=new p.j,this.ownerWindow=window,this.__componentStatus=v.f.beforeInit,this.uid="jodit-uid-"+(0,b.w9)()}destruct(){this.setStatus(v.f.destructed),this.async&&(this.async.destruct(),this.async=void 0),C.get(this)&&C.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(_){this.setStatus(_)}setStatus(_){return this.setStatusComponent(_,this)}setStatusComponent(_,S){if(_===this.__componentStatus)return;S===this&&(this.__componentStatus=_);const I=Object.getPrototypeOf(this);I&&(0,y.isFunction)(I.setStatusComponent)&&I.setStatusComponent(_,S);const T=C.get(this),E=T==null?void 0:T[_];E&&E.length&&E.forEach(O=>O(S))}hookStatus(_,S){let I=C.get(this);I||(I={},C.set(this,I)),I[_]||(I[_]=[]),I[_].push(S)}static isInstanceOf(_,S){return _ instanceof S}}w.STATUSES=v.f},77753:function(f,m,c){c.d(m,{f:function(){return v.f},uA:function(){return p.u},vG:function(){return b.v}});var p=c(37474),v=c(64567),b=c(7982)},64567:function(f,m,c){c.d(m,{f:function(){return p}});const p={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},7982:function(f,m,c){c.d(m,{v:function(){return v}});var p=c(37474);class v extends p.u{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(y,...C){return this.j.i18n(y,...C)}setParentView(y){return this.jodit=y,y.components.add(this),this}constructor(y){super(),this.setParentView(y)}destruct(){return this.j.components.delete(this),super.destruct()}}},17352:function(f,m,c){c.r(m),c.d(m,{ACCURACY:function(){return Ce},APP_VERSION:function(){return p},BASE_PATH:function(){return st},BR:function(){return ge},CLIPBOARD_ID:function(){return pt},COMMAND_KEYS:function(){return we},EMULATE_DBLCLICK_TIMEOUT:function(){return ve},ES:function(){return v},FAT_MODE:function(){return x},HOMEPAGE:function(){return _},INSEPARABLE_TAGS:function(){return W},INSERT_AS_HTML:function(){return Se},INSERT_AS_TEXT:function(){return ze},INSERT_CLEAR_HTML:function(){return Be},INSERT_ONLY_TEXT:function(){return qe},INVISIBLE_SPACE:function(){return T},INVISIBLE_SPACE_REG_EXP:function(){return O},INVISIBLE_SPACE_REG_EXP_END:function(){return A},INVISIBLE_SPACE_REG_EXP_START:function(){return M},IS_BLOCK:function(){return $},IS_ES_MODERN:function(){return b},IS_ES_NEXT:function(){return y},IS_IE:function(){return Ie},IS_INLINE:function(){return B},IS_MAC:function(){return Ve},IS_PROD:function(){return C},IS_TEST:function(){return w},KEY_ALIASES:function(){return Ze},KEY_ALT:function(){return ce},KEY_BACKSPACE:function(){return K},KEY_DELETE:function(){return me},KEY_DOWN:function(){return ae},KEY_ENTER:function(){return oe},KEY_ESC:function(){return se},KEY_F3:function(){return fe},KEY_LEFT:function(){return pe},KEY_META:function(){return Z},KEY_RIGHT:function(){return be},KEY_SPACE:function(){return ye},KEY_TAB:function(){return ee},KEY_UP:function(){return ue},LIST_TAGS:function(){return H},MARKER_CLASS:function(){return Ee},MODE_SOURCE:function(){return ne},MODE_SPLIT:function(){return xe},MODE_WYSIWYG:function(){return Ae},NBSP_SPACE:function(){return E},NEARBY:function(){return ke},NO_EMPTY_TAGS:function(){return Q},PARAGRAPH:function(){return de},PASSIVE_EVENTS:function(){return nn},SAFE_COUNT_CHANGE_CALL:function(){return He},SET_TEST:function(){return S},SOURCE_CONSUMER:function(){return It},SPACE_REG_EXP:function(){return j},SPACE_REG_EXP_END:function(){return D},SPACE_REG_EXP_START:function(){return R},TEMP_ATTR:function(){return Je},TEXT_HTML:function(){return Pe},TEXT_PLAIN:function(){return Oe},TEXT_RTF:function(){return Fe},TOKENS:function(){return I},lang:function(){return ft}});const p="4.2.10",v="es2018",b=!0,y=!1,C=!0;let w=!1;const x=!0,_="https://xdsoft.net/jodit/",S=()=>w=!0,I={},T="\uFEFF",E=" ",O=()=>/[\uFEFF]/g,A=()=>/[\uFEFF]+$/g,M=()=>/^[\uFEFF]+/g,j=()=>/[\s\n\t\r\uFEFF\u200b]+/g,R=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,D=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,$=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,B=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,H=new Set(["ul","ol"]),G=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],W=new Set([...G,"br","hr"]),Q=new Set(G),Z="Meta",K="Backspace",ee="Tab",oe="Enter",se="Escape",ce="Alt",pe="ArrowLeft",ue="ArrowUp",be="ArrowRight",ae="ArrowDown",ye="Space",me="Delete",fe="F3",ke=5,Ce=10,we=[Z,K,me,ue,ae,be,pe,oe,se,fe,ee],ge="br",de="p",Ae=1,ne=2,xe=3,Ie=typeof navigator!="undefined"&&(navigator.userAgent.indexOf("MSIE")!==-1||/rv:11.0/i.test(navigator.userAgent)),Oe=Ie?"text":"text/plain",Pe=Ie?"html":"text/html",Fe=Ie?"rtf":"text/rtf",Ee="jodit-selection_marker",ve=300,Se="insert_as_html",Be="insert_clear_html",ze="insert_as_text",qe="insert_only_text",He=10,Ve=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ze={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Ve?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},st=(()=>{if(typeof document=="undefined")return"";const at=document.currentScript,Gt=Qe=>{const Bt=Qe.split("/");return/\.js/.test(Bt[Bt.length-1])?Bt.slice(0,Bt.length-1).join("/")+"/":Qe};if(at)return Gt(at.src);const Yn=document.querySelectorAll("script[src]");return Yn&&Yn.length?Gt(Yn[Yn.length-1].src):window.location.href})(),Je="data-jodit-temp",ft={},pt="clipboard",It="source-consumer",nn=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},92852:function(f,m,c){c.d(m,{X:function(){return y}});var p=c(17352),v=c(55186),b=c(65147);c(28712);class y{get doc(){return(0,b.isFunction)(this.document)?this.document():this.document}constructor(w,x){this.document=w,this.createAttributes=x}element(w,x,_){const S=this.doc.createElement(w.toLowerCase());return this.applyCreateAttributes(S),x&&((0,b.isPlainObject)(x)?(0,b.attr)(S,x):_=x),_&&(0,b.asArray)(_).forEach(I=>S.appendChild((0,b.isString)(I)?this.fromHTML(I):I)),S}div(w,x,_){const S=this.element("div",x,_);return w&&(S.className=w),S}sandbox(){var w;const x=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(x);const _=(w=x.contentWindow)===null||w===void 0?void 0:w.document;if(!_)throw Error("Iframe error");return _.open(),_.write("<!DOCTYPE html><html><head></head><body></body></html>"),_.close(),[_.body,x]}span(w,x,_){const S=this.element("span",x,_);return w&&(S.className=w),S}a(w,x,_){const S=this.element("a",x,_);return w&&(S.className=w),S}text(w){return this.doc.createTextNode(w)}fake(){return this.text(p.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(w,x){const _=this.div();_.innerHTML=w.toString();const S=_.firstChild===_.lastChild&&_.firstChild?_.firstChild:_;if(v.J.safeRemove(S),x){const I=(0,b.refs)(S);Object.keys(x).forEach(T=>{const E=I[T];E&&x[T]===!1&&v.J.hide(E)})}return S}applyCreateAttributes(w){if(this.createAttributes){const x=this.createAttributes;if(x&&x[w.tagName.toLowerCase()]){const _=x[w.tagName.toLowerCase()];(0,b.isFunction)(_)?_(w):(0,b.isPlainObject)(_)&&(0,b.attr)(w,_)}}}}},40594:function(f,m,c){c.d(m,{X:function(){return p.X}});var p=c(92852)},11961:function(f,m,c){c.d(m,{d:function(){return p.Ay}});var p=c(26318)},87875:function(f,m,c){c.d(m,{OK:function(){return x},PO:function(){return C},PP:function(){return w}});var p=c(64567),v=c(55186),b=c(9823),y=c(76166);function C(_,S){const I=Object.getOwnPropertyDescriptor(_,S);return!I||(0,b.Tn)(I.get)?null:I.value}function w(_,S,I){const T=I.get;if(!T)throw(0,y.z3)("Getter property descriptor expected");I.get=function(){const E=T.call(this);return E&&E.noCache===!0||Object.defineProperty(this,S,{configurable:I.configurable,enumerable:I.enumerable,writable:!1,value:E}),E}}function x(_,S,I){const T=I.value;if(!(0,b.Tn)(T))throw(0,y.z3)("Handler must be a Function");let E=!0;const O=new WeakMap;I.value=function(...A){var M;if(E&&O.has(this.constructor))return(M=O.get(this.constructor))===null||M===void 0?void 0:M.cloneNode(!0);const j=T.apply(this,A);return E&&v.J.isElement(j)&&O.set(this.constructor,j),E?j.cloneNode(!0):j},_.hookStatus(p.f.ready,A=>{E=!!((0,b.hH)(A)?A:A.jodit).options.cache})}},24767:function(f,m,c){function p(v){class b extends v{constructor(...C){super(...C),this.constructor===b&&(this instanceof b||Object.setPrototypeOf(this,b.prototype),this.setStatus("ready"))}}return b}c.d(m,{s:function(){return p}})},37075:function(f,m,c){c.d(m,{n:function(){return C},s:function(){return y}});var p=c(77753),v=c(9823),b=(c(28712),c(50156));function y(w,x=!1,_="debounce"){return(S,I)=>{const T=S[I];if(!(0,v.Tn)(T))throw(0,b.z3)("Handler must be a Function");return S.hookStatus(p.f.ready,E=>{const{async:O}=E,A=(0,v.Tn)(w)?w(E):w,M=(0,v.Et)(A)||(0,v.Qd)(A)?A:E.defaultTimeout;Object.defineProperty(E,I,{configurable:!0,value:O[_](E[I].bind(E),M,x)})}),{configurable:!0,get(){return T.bind(this)}}}}function C(w,x=!1){return y(w,x,"throttle")}},1963:function(f,m,c){c.d(m,{C:function(){return v}});var p=c(69052);function v(...b){return y=>{const C=y.prototype;for(let w=0;b.length>w;w++){const x=b[w],_=Object.getOwnPropertyNames(x.prototype);for(let S=0;_.length>S;S++){const I=_[S],T=Object.getOwnPropertyDescriptor(x.prototype,I);T!=null&&(0,p.T)(T.value)&&!(0,p.T)(C[I])&&Object.defineProperty(C,I,{enumerable:!0,configurable:!0,writable:!0,value:function(...E){return T.value.call(this,...E)}})}}}}},71151:function(f,m,c){c.d(m,{A:function(){return b}});var p=c(69052),v=c(50156);function b(y){return(C,w)=>{if(!(0,p.T)(C[w]))throw(0,v.z3)("Handler must be a Function");C.hookStatus(y,x=>{x[w].call(x)})}}},86285:function(f,m,c){c.d(m,{N:function(){return y}});var p=c(77753),v=c(69052),b=c(50156);function y(){return(C,w)=>{if(!(0,v.T)(C[w]))throw(0,b.z3)("Handler must be a Function");C.hookStatus(p.f.ready,x=>{const{async:_}=x,S=x[w];x[w]=(...I)=>_.requestIdleCallback(S.bind(x,...I))})}}},22664:function(f,m,c){c.r(m),c.d(m,{autobind:function(){return p.d},cache:function(){return v.PP},cacheHTML:function(){return v.OK},cached:function(){return v.PO},component:function(){return b.s},debounce:function(){return y.s},derive:function(){return C.C},getPropertyDescriptor:function(){return T.N},hook:function(){return w.A},idle:function(){return x.N},nonenumerable:function(){return _.m},persistent:function(){return S.y},throttle:function(){return y.n},wait:function(){return I.u},watch:function(){return T.w}});var p=c(11961),v=c(87875),b=c(24767),y=c(37075),C=c(1963),w=c(71151),x=c(86285),_=c(48791),S=c(33087),I=c(48647),T=c(66927)},48791:function(f,m,c){c.d(m,{m:function(){return p}});const p=(v,b)=>{(Object.getOwnPropertyDescriptor(v,b)||{}).enumerable!==!1&&Object.defineProperty(v,b,{enumerable:!1,set(y){Object.defineProperty(this,b,{enumerable:!1,writable:!0,value:y})}})}},33087:function(f,m,c){c.d(m,{y:function(){return b}});var p=c(64567),v=c(12041);function b(y,C){y.hookStatus(p.f.ready,w=>{const x=(0,v.h)(w)?w:w.jodit,_=`${x.options.namespace}${w.componentName}_prop_${C}`,S=w[C];Object.defineProperty(w,C,{get(){var I;return(I=x.storage.get(_))!==null&&I!==void 0?I:S},set(I){x.storage.set(_,I)}})})}},48647:function(f,m,c){c.d(m,{u:function(){return y}});var p=c(64567),v=c(69052),b=c(50156);function y(C){return(w,x)=>{if(!(0,v.T)(w[x]))throw(0,b.z3)("Handler must be a Function");w.hookStatus(p.f.ready,_=>{const{async:S}=_,I=_[x];let T=0;Object.defineProperty(_,x,{configurable:!0,value:function E(...O){S.clearTimeout(T),C(_)?I.apply(_,O):T=S.setTimeout(()=>E(...O),10)}})})}}},66927:function(f,m,c){c.d(m,{N:function(){return _},w:function(){return S}});var p=c(64567),v=c(32332),b=c(42589),y=c(69052),C=c(25376),w=c(12041),x=c(50156);function _(I,T){let E;do E=Object.getOwnPropertyDescriptor(I,T),I=Object.getPrototypeOf(I);while(!E&&I);return E}function S(I,T){return(E,O)=>{var A;if(!(0,y.T)(E[O]))throw(0,x.z3)("Handler must be a Function");const M=(A=T==null?void 0:T.immediately)===null||A===void 0||A,j=T==null?void 0:T.context,R=D=>{const $=(0,w.h)(D)?D:D.jodit;let B=(H,...G)=>{if(!D.isInDestruct)return D[O](H,...G)};M||(B=D.async.microDebounce(B,!0)),(0,b.u)(I).forEach(H=>{if(/:/.test(H)){const[ee,oe]=H.split(":");let se=j;return ee.length&&(se=D.get(ee)),(0,y.T)(se)&&(se=se(D)),$.events.on(se||D,oe,B),se||$.events.on(oe,B),void D.hookStatus("beforeDestruct",()=>{$.events.off(se||D,oe,B).off(oe,B)})}const G=H.split("."),[W]=G,Q=G.slice(1);let Z=D[W];(0,C.Q)(Z)&&(0,v.s)(Z).on(`change.${Q.join(".")}`,B);const K=_(E,W);Object.defineProperty(D,W,{configurable:!0,set(ee){const oe=Z;oe!==ee&&(Z=ee,K&&K.set&&K.set.call(D,ee),(0,C.Q)(Z)&&(Z=(0,v.s)(Z),Z.on(`change.${Q.join(".")}`,B)),B(W,oe,Z))},get:()=>K&&K.get?K.get.call(D):Z})})};(0,y.T)(E.hookStatus)?E.hookStatus(p.f.ready,R):R(E)}}},55186:function(f,m,c){c.d(m,{J:function(){return w}});var p=c(17352),v=c(42448),b=c(9823),y=c(59101),C=c(97369);class w{constructor(){throw new Error("Dom is static module")}static detach(_){for(;_&&_.firstChild;)_.removeChild(_.firstChild)}static wrapInline(_,S,I){let T,E=_,O=_;I.s.save();let A=!1;do A=!1,T=E.previousSibling,T&&!w.isBlock(T)&&(A=!0,E=T);while(A);do A=!1,T=O.nextSibling,T&&!w.isBlock(T)&&(A=!0,O=T);while(A);const M=(0,b.Kg)(S)?I.createInside.element(S):S;E.parentNode&&E.parentNode.insertBefore(M,E);let j=E;for(;j&&(j=E.nextSibling,M.appendChild(E),E!==O&&j);)E=j;return I.s.restore(),M}static wrap(_,S,I){const T=(0,b.Kg)(S)?I.element(S):S;if(w.isNode(_)){if(!_.parentNode)throw(0,C.error)("Element should be in DOM");_.parentNode.insertBefore(T,_),T.appendChild(_)}else{const E=_.extractContents();_.insertNode(T),T.appendChild(E)}return T}static unwrap(_){const S=_.parentNode;if(S){for(;_.firstChild;)S.insertBefore(_.firstChild,_);w.safeRemove(_)}}static between(_,S,I){let T=_;for(;T&&T!==S&&(_===T||!I(T));){let E=T.firstChild||T.nextSibling;if(!E){for(;T&&!T.nextSibling;)T=T.parentNode;E=T==null?void 0:T.nextSibling}T=E}}static replace(_,S,I,T=!1,E=!1){(0,b.AH)(S)&&(S=I.fromHTML(S));const O=(0,b.Kg)(S)?I.element(S):S;if(!E)for(;_.firstChild;)O.appendChild(_.firstChild);return T&&w.isElement(_)&&w.isElement(O)&&(0,v.$)(_.attributes).forEach(A=>{O.setAttribute(A.name,A.value)}),_.parentNode&&_.parentNode.replaceChild(O,_),O}static isEmptyTextNode(_){return w.isText(_)&&(!_.nodeValue||_.nodeValue.replace(p.INVISIBLE_SPACE_REG_EXP(),"").trim().length===0)}static isEmptyContent(_){return w.each(_,S=>w.isEmptyTextNode(S))}static isContentEditable(_,S){return w.isNode(_)&&!w.closest(_,I=>w.isElement(I)&&I.getAttribute("contenteditable")==="false",S)}static isEmpty(_,S=p.NO_EMPTY_TAGS){if(!_)return!0;let I;I=(0,b.Tn)(S)?S:E=>S.has(E.nodeName.toLowerCase());const T=E=>E.nodeValue==null||(0,y.Bq)(E.nodeValue).length===0;return w.isText(_)?T(_):!(w.isElement(_)&&I(_))&&w.each(_,E=>{if(w.isText(E)&&!T(E)||w.isElement(E)&&I(E))return!1})}static isNode(_){return!!(_&&(0,b.Kg)(_.nodeName)&&typeof _.nodeType=="number"&&_.childNodes&&(0,b.Tn)(_.appendChild))}static isCell(_){return w.isNode(_)&&(_.nodeName==="TD"||_.nodeName==="TH")}static isList(_){return w.isTag(_,p.LIST_TAGS)}static isLeaf(_){return w.isTag(_,"li")}static isImage(_){return w.isNode(_)&&/^(img|svg|picture|canvas)$/i.test(_.nodeName)}static isBlock(_){return!(0,b.Rd)(_)&&typeof _=="object"&&w.isNode(_)&&p.IS_BLOCK.test(_.nodeName)}static isText(_){return!!(_&&_.nodeType===Node.TEXT_NODE)}static isComment(_){return!!(_&&_.nodeType===Node.COMMENT_NODE)}static isElement(_){var S;return w.isNode(_)?!!(((S=_.ownerDocument)===null||S===void 0?void 0:S.defaultView)&&_.nodeType===Node.ELEMENT_NODE):!1}static isFragment(_){var S;return w.isNode(_)?!!(((S=_.ownerDocument)===null||S===void 0?void 0:S.defaultView)&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE):!1}static isHTMLElement(_){var S;if(!w.isNode(_))return!1;const I=(S=_.ownerDocument)===null||S===void 0?void 0:S.defaultView;return!!(I&&_ instanceof I.HTMLElement)}static isInlineBlock(_){return w.isElement(_)&&!/^(BR|HR)$/i.test(_.tagName)&&["inline","inline-block"].indexOf((0,C.css)(_,"display").toString())!==-1}static canSplitBlock(_){return!(0,b.Rd)(_)&&w.isHTMLElement(_)&&w.isBlock(_)&&!/^(TD|TH|CAPTION|FORM)$/.test(_.nodeName)&&_.style!==void 0&&!/^(fixed|absolute)/i.test(_.style.position)}static last(_,S){let I=_==null?void 0:_.lastChild;if(!I)return null;do{if(S(I))return I;let T=I.lastChild;if(T||(T=I.previousSibling),!T&&I.parentNode!==_){do I=I.parentNode;while(I&&!(I!=null&&I.previousSibling)&&I.parentNode!==_);T=I==null?void 0:I.previousSibling}I=T}while(I);return null}static prev(_,S,I,T=!0){return w.find(_,S,I,!1,T)}static next(_,S,I,T=!0){return w.find(_,S,I,!0,T)}static prevWithClass(_,S){return w.prev(_,I=>w.isElement(I)&&I.classList.contains(S),_.parentNode)}static nextWithClass(_,S){return w.next(_,I=>w.isElement(I)&&I.classList.contains(S),_.parentNode)}static find(_,S,I,T=!0,E=!0){const O=this.nextGen(_,I,T,E);let A=O.next();for(;!A.done;){if(S(A.value))return A.value;A=O.next()}return null}static*nextGen(_,S,I=!0,T=!0){const E=[];let O=_;do{let A=I?O.nextSibling:O.previousSibling;for(;A;)E.unshift(A),A=I?A.nextSibling:A.previousSibling;yield*W3(this.runInStack(_,E,I,T)),O=O.parentNode}while(O&&O!==S);return null}static each(_,S,I=!0){const T=this.eachGen(_,I);let E=T.next();for(;!E.done;){if(S(E.value)===!1)return!1;E=T.next()}return!0}static eachGen(_,S=!0){return this.runInStack(_,[_],S)}static*runInStack(_,S,I,T=!0){for(;S.length;){const E=S.pop();if(T){let O=I?E.lastChild:E.firstChild;for(;O;)S.push(O),O=I?O.previousSibling:O.nextSibling}_!==E&&(yield E)}}static findWithCurrent(_,S,I,T="nextSibling",E="firstChild"){let O=_;do{if(S(O))return O||null;if(E&&O&&O[E]){const A=w.findWithCurrent(O[E],S,O,T,E);if(A)return A}for(;O&&!O[T]&&O!==I;)O=O.parentNode;O&&O[T]&&O!==I&&(O=O[T])}while(O&&O!==I);return null}static findSibling(_,S=!0,I=T=>!w.isEmptyTextNode(T)){let T=w.sibling(_,S);for(;T&&!I(T);)T=w.sibling(T,S);return T&&I(T)?T:null}static findNotEmptySibling(_,S){return w.findSibling(_,S,I=>{var T;return!w.isEmptyTextNode(I)&&!!(!w.isText(I)||!((T=I.nodeValue)===null||T===void 0)&&T.length&&(0,y.Bq)(I.nodeValue))})}static findNotEmptyNeighbor(_,S,I){return(0,C.call)(S?w.prev:w.next,_,T=>!!(T&&(!(w.isText(T)||w.isComment(T))||(0,y.Bq)((T==null?void 0:T.nodeValue)||"").length)),I)}static sibling(_,S){return S?_.previousSibling:_.nextSibling}static up(_,S,I,T=!1){let E=_;if(!E)return null;do{if(S(E))return E;if(E===I||!E.parentNode)break;E=E.parentNode}while(E&&E!==I);return E===I&&T&&S(E)?E:null}static closest(_,S,I){let T;const E=O=>O.toLowerCase();if((0,b.Tn)(S))T=S;else if((0,b.cy)(S)||(0,b.vM)(S)){const O=(0,b.vM)(S)?S:new Set(S.map(E));T=A=>!!(A&&O.has(E(A.nodeName)))}else T=O=>!!(O&&E(S)===E(O.nodeName));return w.up(_,T,I)}static furthest(_,S,I){let T=null,E=_==null?void 0:_.parentElement;for(;E&&E!==I;)S(E)&&(T=E),E=E==null?void 0:E.parentElement;return T}static appendChildFirst(_,S){const I=_.firstChild;I?I!==S&&_.insertBefore(S,I):_.appendChild(S)}static after(_,S){const{parentNode:I}=_;I&&(I.lastChild===_?I.appendChild(S):I.insertBefore(S,_.nextSibling))}static before(_,S){const{parentNode:I}=_;I&&I.insertBefore(S,_)}static prepend(_,S){_.insertBefore(S,_.firstChild)}static append(_,S){(0,b.cy)(S)?S.forEach(I=>{this.append(_,I)}):_.appendChild(S)}static moveContent(_,S,I=!1,T=()=>!0){const E=(_.ownerDocument||document).createDocumentFragment();(0,v.$)(_.childNodes).filter(O=>!!T(O)||(w.safeRemove(O),!1)).forEach(O=>{E.appendChild(O)}),I&&S.firstChild?S.insertBefore(E,S.firstChild):S.appendChild(E)}static isOrContains(_,S,I=!1){return _===S?!I:!!(S&&_&&this.up(S,T=>T===_,_,!0))}static safeRemove(..._){_.forEach(S=>w.isNode(S)&&S.parentNode&&S.parentNode.removeChild(S))}static safeInsertNode(_,S){_.collapsed||_.deleteContents();const I=w.isFragment(S)?S.lastChild:S;_.startContainer===_.endContainer&&_.collapsed&&w.isTag(_.startContainer,p.INSEPARABLE_TAGS)?w.after(_.startContainer,S):(_.insertNode(S),I&&_.setStartBefore(I)),_.collapse(!0),[S.nextSibling,S.previousSibling].forEach(T=>w.isText(T)&&!T.nodeValue&&w.safeRemove(T))}static hide(_){_&&((0,C.dataBind)(_,"__old_display",_.style.display),_.style.display="none")}static show(_){if(!_)return;const S=(0,C.dataBind)(_,"__old_display");_.style.display==="none"&&(_.style.display=S||"")}static isTag(_,S){if(!this.isElement(_))return!1;const I=_.tagName.toLowerCase(),T=_.tagName.toUpperCase();if(S instanceof Set)return S.has(I)||S.has(T);if(Array.isArray(S))throw new TypeError("Dom.isTag does not support array");return I===S||T===S}static markTemporary(_,S){return S&&(0,C.attr)(_,S),(0,C.attr)(_,p.TEMP_ATTR,!0),_}static isTemporary(_){return!!w.isElement(_)&&((0,b.rg)(_)||(0,C.attr)(_,p.TEMP_ATTR)==="true")}static replaceTemporaryFromString(_){return _.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(_){return(0,C.$$)(`[${p.TEMP_ATTR}]`,_)}}},71842:function(f,m,c){c.d(m,{J:function(){return p.J},p:function(){return v.p}});var p=c(55186),v=c(8453)},8453:function(f,m,c){c.d(m,{p:function(){return C}});var p=c(31635),v=c(22664),b=c(55186),y=c(43431);class C extends y.h{setWork(x){return this.isWorked&&this.break(),this.workNodes=b.J.eachGen(x,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(x,_={}){super(),this.async=x,this.options=_,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){var x;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:(x=this.options.timeout)!==null&&x!==void 0?x:10})}break(x){this.isWorked&&(this.stop(),this.emit("break",x))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}workPerform(x){var _;if(this.workNodes){this.isWorked=!0;let S=0;const I=(_=this.options.timeoutChunkSize)!==null&&_!==void 0?_:50;for(;!this.isFinished&&(x.timeRemaining()>0||x.didTimeout&&I>=S);){const T=this.workNodes.next();if(S+=1,this.visitNode(T.value)&&(this.hadAffect=!0),T.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(x){var _;return!(!x||this.options.whatToShow!==void 0&&x.nodeType!==this.options.whatToShow)&&(_=this.emit("visit",x))!==null&&_!==void 0&&_}}(0,p.Cg)([v.autobind],C.prototype,"workPerform",null)},50658:function(f,m,c){c.d(m,{b:function(){return _}});var p=c(17352),v=c(42589),b=c(37923),y=c(69052),C=c(98253),w=c(50156),x=c(10004);class _{mute(T){return this.__mutedEvents.add(T!=null?T:"*"),this}isMuted(T){return!(!T||!this.__mutedEvents.has(T))||this.__mutedEvents.has("*")}unmute(T){return this.__mutedEvents.delete(T!=null?T:"*"),this}__eachEvent(T,E){(0,v.u)(T).map(O=>O.trim()).forEach(O=>{const A=O.split(".");E.call(this,A[0],A[1]||x.X)})}__getStore(T){if(!T)throw(0,w.z3)("Need subject");if(T[this.__key]===void 0){const E=new x.d;Object.defineProperty(T,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:E})}return T[this.__key]}__removeStoreFromSubject(T){T[this.__key]!==void 0&&Object.defineProperty(T,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(T,E){const O=this.__doc.createEvent("HTMLEvents");(0,C.K)(E)?O.initEvent(E,!0,!0):(O.initEvent(E.type,E.bubbles,E.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(A=>{Object.defineProperty(O,A,{value:E[A],enumerable:!0})}),Object.defineProperty(O,"originalEvent",{value:E,enumerable:!0})),T.dispatchEvent(O)}get current(){return this.currents[this.currents.length-1]}on(T,E,O,A){let M,j,R,D;if((0,C.K)(T)||(0,C.B)(T)?(M=this,j=T,R=E,D=O):(M=T,j=E,R=O,D=A),!(0,C.K)(j)&&!(0,C.B)(j)||j.length===0)throw(0,w.z3)("Need events names");if(!(0,y.T)(R))throw(0,w.z3)("Need event handler");if((0,b.c)(M))return M.forEach(W=>{this.on(W,j,R,D)}),this;const $=M,B=this.__getStore($),H=this;let G=function(W,...Q){if(!H.isMuted(W))return R&&R.call(this,...Q)};return S($)&&(G=function(W){if(!H.isMuted(W.type))return H.__prepareEvent(W),R&&R.call(this,W)===!1?(W.preventDefault(),W.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(j,(W,Q)=>{var Z,K;if(W.length===0)throw(0,w.z3)("Need event name");if(B.indexOf(W,Q,R)===!1&&(B.set(W,Q,{event:W,originalCallback:R,syntheticCallback:G},D==null?void 0:D.top),S($))){const ee=p.PASSIVE_EVENTS.has(W)?{passive:!0,capture:(Z=D==null?void 0:D.capture)!==null&&Z!==void 0&&Z}:(K=D==null?void 0:D.capture)!==null&&K!==void 0&&K;G.options=ee,$.addEventListener(W,G,ee),this.__memoryDOMSubjectToHandler($,G)}}),this}__memoryDOMSubjectToHandler(T,E){const O=this.__domEventsMap.get(T)||new Set;O.add(E),this.__domEventsMap.set(T,O)}__unmemoryDOMSubjectToHandler(T,E){const O=this.__domEventsMap,A=O.get(T)||new Set;A.delete(E),A.size?O.set(T,A):O.delete(T)}one(T,E,O,A){let M,j,R,D;(0,C.K)(T)||(0,C.B)(T)?(M=this,j=T,R=E,D=O):(M=T,j=E,R=O,D=A);const $=(...B)=>(this.off(M,j,$),R(...B));return this.on(M,j,$,D),this}off(T,E,O){let A,M,j;if((0,C.K)(T)||(0,C.B)(T)?(A=this,M=T,j=E):(A=T,M=E,j=O),(0,b.c)(A))return A.forEach(H=>{this.off(H,M,j)}),this;const R=A,D=this.__getStore(R);if(!(0,C.K)(M)&&!(0,C.B)(M)||M.length===0)return D.namespaces().forEach(H=>{this.off(R,"."+H)}),this.__removeStoreFromSubject(R),this;const $=H=>{var G;S(R)&&(R.removeEventListener(H.event,H.syntheticCallback,(G=H.syntheticCallback.options)!==null&&G!==void 0&&G),this.__unmemoryDOMSubjectToHandler(R,H.syntheticCallback))},B=(H,G)=>{if(H==="")return void D.events(G).forEach(Q=>{Q!==""&&B(Q,G)});const W=D.get(H,G);if(W&&W.length)if((0,y.T)(j)){const Q=D.indexOf(H,G,j);Q!==!1&&($(W[Q]),W.splice(Q,1),W.length||D.clearEvents(G,H))}else W.forEach($),W.length=0,D.clearEvents(G,H)};return this.__eachEvent(M,(H,G)=>{G===x.X?D.namespaces().forEach(W=>{B(H,W)}):B(H,G)}),D.isEmpty()&&this.__removeStoreFromSubject(R),this}stopPropagation(T,E){const O=(0,C.K)(T)?this:T,A=(0,C.K)(T)?T:E;if(typeof A!="string")throw(0,w.z3)("Need event names");const M=this.__getStore(O);this.__eachEvent(A,(j,R)=>{const D=M.get(j,R);D&&this.__stopped.push(D),R===x.X&&M.namespaces(!0).forEach($=>this.stopPropagation(O,j+"."+$))})}__removeStop(T){if(T){const E=this.__stopped.indexOf(T);E!==-1&&this.__stopped.splice(0,E+1)}}__isStopped(T){return T!==void 0&&this.__stopped.indexOf(T)!==-1}fire(T,E,...O){let A,M;const j=(0,C.K)(T)?this:T,R=(0,C.K)(T)?T:E,D=(0,C.K)(T)?[E,...O]:O;if(!S(j)&&!(0,C.K)(R))throw(0,w.z3)("Need events names");const $=this.__getStore(j);return!(0,C.K)(R)&&S(j)?this.__triggerNativeEvent(j,E):this.__eachEvent(R,(B,H)=>{if(S(j))this.__triggerNativeEvent(j,B);else{const G=$.get(B,H);if(G)try{[...G].every(W=>!this.__isStopped(G)&&(this.currents.push(B),M=W.syntheticCallback.call(j,B,...D),this.currents.pop(),M!==void 0&&(A=M),!0))}finally{this.__removeStop(G)}H!==x.X||S(j)||$.namespaces().filter(W=>W!==H).forEach(W=>{const Q=this.fire.apply(this,[j,B+"."+W,...D]);Q!==void 0&&(A=Q)})}}),A}constructor(T){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=E=>{E.cancelBubble||(E.composed&&(0,y.T)(E.composedPath)&&E.composedPath()[0]&&Object.defineProperty(E,"target",{value:E.composedPath()[0],configurable:!0,enumerable:!0}),E.type.match(/^touch/)&&E.changedTouches&&E.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(O=>{Object.defineProperty(E,O,{value:E.changedTouches[0][O],configurable:!0,enumerable:!0})}),E.originalEvent||(E.originalEvent=E),E.type==="paste"&&E.clipboardData===void 0&&this.__doc.defaultView.clipboardData&&Object.defineProperty(E,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,T&&(this.__doc=T),this.__key+=new Date().getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((T,E)=>{this.off(E)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function S(I){return(0,y.T)(I.addEventListener)}},43431:function(f,m,c){c.d(m,{h:function(){return p}});class p{constructor(){this.__map=new Map}on(b,y){var C;return this.__map.has(b)||this.__map.set(b,new Set),(C=this.__map.get(b))===null||C===void 0||C.add(y),this}off(b,y){var C;return this.__map.has(b)&&((C=this.__map.get(b))===null||C===void 0||C.delete(y)),this}destruct(){this.__map.clear()}emit(b,...y){var C;let w;return this.__map.has(b)&&((C=this.__map.get(b))===null||C===void 0||C.forEach(x=>{w=x(...y)})),w}}},50025:function(f,m,c){c.d(m,{Xr:function(){return y.X},bk:function(){return p.b},d$:function(){return y.d},h5:function(){return v.h},sH:function(){return b.s}});var p=c(50658),v=c(43431),b=c(32332),y=c(10004)},32332:function(f,m,c){c.d(m,{s:function(){return x}});var p=c(66927),v=c(37923),b=c(69810),y=c(25376);const C=Symbol("observable-object");function w(_){return _[C]!==void 0}function x(_){if(w(_))return _;const S={},I={},T=(A,M)=>(0,v.c)(A)?(A.map(j=>T(j,M)),_):(I[A]||(I[A]=[]),I[A].push(M),_),E=(A,...M)=>{if((0,v.c)(A))A.map(j=>E(j,...M));else try{!S[A]&&I[A]&&(S[A]=!0,I[A].forEach(j=>j.call(_,...M)))}finally{S[A]=!1}},O=(A,M=[])=>{const j={};w(A)||(Object.defineProperty(A,C,{enumerable:!1,value:!0}),Object.keys(A).forEach(R=>{const D=R,$=M.concat(D).filter(H=>H.length);j[D]=A[D];const B=(0,p.N)(A,D);Object.defineProperty(A,D,{set:H=>{const G=j[D];if(!(0,b.P)(j[D],H)){E(["beforeChange",`beforeChange.${$.join(".")}`],D,H),(0,y.Q)(H)&&O(H,$),B&&B.set?B.set.call(_,H):j[D]=H;const W=[];E(["change",...$.reduce((Q,Z)=>(W.push(Z),Q.push(`change.${W.join(".")}`),Q),[])],$.join("."),G,H!=null&&H.valueOf?H.valueOf():H)}},get:()=>B&&B.get?B.get.call(_):j[D],enumerable:!0,configurable:!0}),(0,y.Q)(j[D])&&O(j[D],$)}),Object.defineProperty(_,"on",{value:T}))};return O(_),_}},10004:function(f,m,c){c.d(m,{X:function(){return v},d:function(){return b}});var p=c(42448);c(28712);const v="JoditEventDefaultNamespace";class b{constructor(){this.__store=new Map}get(C,w){if(this.__store.has(w))return this.__store.get(w)[C]}indexOf(C,w,x){const _=this.get(C,w);if(_){for(let S=0;_.length>S;S+=1)if(_[S].originalCallback===x)return S}return!1}namespaces(C=!1){const w=(0,p.$)(this.__store.keys());return C?w.filter(x=>x!==v):w}events(C){const w=this.__store.get(C);return w?Object.keys(w):[]}set(C,w,x,_=!1){let S=this.__store.get(w);S||(S={},this.__store.set(w,S)),S[C]===void 0&&(S[C]=[]),_?S[C].unshift(x):S[C].push(x)}clear(){this.__store.clear()}clearEvents(C,w){const x=this.__store.get(C);x&&x[w]&&(delete x[w],Object.keys(x).length||this.__store.delete(C))}isEmpty(){return this.__store.size===0}}},56298:function(f,m,c){c.d(m,{JW:function(){return j},My:function(){return D},RR:function(){return $},VF:function(){return I},av:function(){return M},fg:function(){return A},w9:function(){return O}});var p=c(83044),v=c(98253),b=c(12041),y=c(449),C=c(75766),w=c(77402),x=c(17352),_=c(71842),S=c(50025);const I={};let T=1;const E=new Set;function O(){function B(){return T+=10*(Math.random()+1),Math.round(T).toString(16)}let H=B();for(;E.has(H);)H=B();return E.add(H),H}const A=new w.$,M={},j=B=>{Object.keys(B).forEach(H=>{x.lang[H]?Object.assign(x.lang[H],B[H]):x.lang[H]=B[H]})},R=new WeakMap;function D(B,H,G="div",W=!1){const Q=(0,v.K)(H)?H:H?(0,C.u)(H.prototype):"jodit-utils",Z=R.get(B)||{},K=Q+G,ee=(0,b.h)(B)?B:B.j;if(!Z[K]){let oe=ee.c,se=(0,p.y)(B)&&B.o.shadowRoot?B.o.shadowRoot:B.od.body;if(W&&(0,p.y)(B)&&B.od!==B.ed){oe=B.createInside;const pe=G==="style"?B.ed.head:B.ed.body;se=(0,p.y)(B)&&B.o.shadowRoot?B.o.shadowRoot:pe}const ce=oe.element(G,{className:`jodit jodit-${(0,y.k)(Q)}-container jodit-box`});ce.classList.add(`jodit_theme_${ee.o.theme||"default"}`),se.appendChild(ce),Z[K]=ce,B.hookStatus("beforeDestruct",()=>{_.J.safeRemove(ce),delete Z[K],Object.keys(Z).length&&R.delete(B)}),R.set(B,Z)}return Z[K].classList.remove("jodit_theme_default","jodit_theme_dark"),Z[K].classList.add(`jodit_theme_${ee.o.theme||"default"}`),Z[K]}const $=new S.bk},82317:function(f,m,c){c.d(m,{_:function(){return v}});var p=c(37923);const v=b=>(0,p.c)(b)?b:[b]},32709:function(f,m,c){c.d(m,{$r:function(){return b.$},_j:function(){return p._},uM:function(){return v.u}});var p=c(82317),v=c(42589),b=c(42448)},42589:function(f,m,c){function p(v){return Array.isArray(v)?v:v.split(/[,\s]+/)}c.d(m,{u:function(){return p}})},42448:function(f,m,c){c.d(m,{$:function(){return b}});var p=c(34796),v=c(44210);const b=function(...y){var C;return((0,p.a)(Array.from)?Array.from:(C=(0,v.c)("Array.from"))!==null&&C!==void 0?C:Array.from).apply(Array,y)}},89044:function(f,m,c){c.d(m,{D:function(){return p.D},w:function(){return p.w}});var p=c(59146)},59146:function(f,m,c){function p(b,y,...C){return y?window.setTimeout(b,y,...C):(b.call(null,...C),0)}function v(b){window.clearTimeout(b)}c.d(m,{D:function(){return v},w:function(){return p}})},78479:function(f,m,c){function p(){let v=!0;try{const b=document.createElement("input");b.type="color",b.value="!",v=b.type==="color"&&b.value!=="!"}catch(b){v=!1}return v}c.d(m,{k:function(){return p}})},9823:function(f,m,c){c.d(m,{AH:function(){return x.A},Bo:function(){return B.B},CE:function(){return _.C},E6:function(){return I.E},Et:function(){return M.E},Gp:function(){return S.n4},Kg:function(){return B.K},Lm:function(){return y.L},Mj:function(){return E.M},P5:function(){return C.P},Qd:function(){return R.Q},Rd:function(){return Q.R},Tn:function(){return w.T},a3:function(){return A.a},cy:function(){return b.c},hH:function(){return W.h},kC:function(){return p.k},kO:function(){return S.kO},kf:function(){return j.k},l6:function(){return Z.l},mv:function(){return H.m},n4:function(){return C.n},pV:function(){return S.pV},rg:function(){return O.r},uV:function(){return G.u},vM:function(){return $.v},y0:function(){return T.y},yL:function(){return D.y},zf:function(){return v.z}});var p=c(78479),v=c(99951),b=c(37923),y=c(9810),C=c(69810),w=c(69052),x=c(53701),_=c(21811),S=c(10058),I=c(3947),T=c(83044),E=c(82201),O=c(71274),A=c(34796),M=c(2461),j=c(12461),R=c(25376),D=c(92039),$=c(53470),B=c(98253),H=c(6939),G=c(59082),W=c(12041),Q=c(35642),Z=c(76776)},99951:function(f,m,c){function p(v){return!!v&&v instanceof DOMException&&v.name==="AbortError"}c.d(m,{z:function(){return p}})},37923:function(f,m,c){function p(v){return Array.isArray(v)}c.d(m,{c:function(){return p}})},9810:function(f,m,c){function p(v){return typeof v=="boolean"}c.d(m,{L:function(){return p}})},69810:function(f,m,c){c.d(m,{P:function(){return b},n:function(){return v}});var p=c(28616);function v(y,C){return y===C||(0,p.A)(y)===(0,p.A)(C)}function b(y,C){return y===C}},69052:function(f,m,c){function p(v){return typeof v=="function"}c.d(m,{T:function(){return p}})},21811:function(f,m,c){function p(v){return v.search(/<meta.*?Microsoft Excel\s[\d].*?>/)!==-1||v.search(/<meta.*?Microsoft Word\s[\d].*?>/)!==-1||v.search(/style="[^"]*mso-/)!==-1&&v.search(/<font/)!==-1}c.d(m,{C:function(){return p}})},53701:function(f,m,c){c.d(m,{A:function(){return v}});var p=c(98253);const v=b=>(0,p.K)(b)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(b.replace(/[\r\n]/g,""))},10058:function(f,m,c){c.d(m,{kO:function(){return w},n4:function(){return y},pV:function(){return C}});var p=c(55186),v=c(69052),b=c(35642);function y(x){return!(0,b.R)(x)&&(0,v.T)(x.init)}function C(x){return!(0,b.R)(x)&&(0,v.T)(x.destruct)}function w(x){return!(0,b.R)(x)&&p.J.isElement(x.container)}},3947:function(f,m,c){c.d(m,{E:function(){return b}});var p=c(12461),v=c(98253);function b(y){return(0,v.K)(y)&&(0,p.k)(y)&&(y=parseFloat(y)),typeof y=="number"&&Number.isFinite(y)&&!(y%1)}},83044:function(f,m,c){c.d(m,{y:function(){return v}});var p=c(69052);function v(b){return!!(b&&b instanceof Object&&(0,p.T)(b.constructor)&&(typeof Jodit!="undefined"&&b instanceof Jodit||b.isJodit))}},82201:function(f,m,c){c.d(m,{M:function(){return v}});var p=c(98253);const v=b=>(0,p.K)(b)&&b.length===23&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(b)},71274:function(f,m,c){c.d(m,{r:function(){return b}});var p=c(17352),v=c(55186);function b(y){return v.J.isNode(y)&&v.J.isTag(y,"span")&&y.hasAttribute("data-"+p.MARKER_CLASS)}},34796:function(f,m,c){function p(v){return!!v&&(typeof v).toLowerCase()==="function"&&(v===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(v)))}c.d(m,{a:function(){return p}})},2461:function(f,m,c){function p(v){return typeof v=="number"&&!isNaN(v)&&isFinite(v)}c.d(m,{E:function(){return p}})},12461:function(f,m,c){c.d(m,{k:function(){return v}});var p=c(98253);function v(b){if((0,p.K)(b)){if(!b.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;b=parseFloat(b)}return typeof b=="number"&&!isNaN(b)&&isFinite(b)}},25376:function(f,m,c){c.d(m,{Q:function(){return v}});var p=c(76776);function v(b){return!(!b||typeof b!="object"||b.nodeType||(0,p.l)(b)||b.constructor&&!{}.hasOwnProperty.call(b.constructor.prototype,"isPrototypeOf"))}},92039:function(f,m,c){function p(v){return v&&typeof v.then=="function"}c.d(m,{y:function(){return p}})},53470:function(f,m,c){c.d(m,{v:function(){return v}});var p=c(69052);function v(b){return!!b&&(0,p.T)(b.has)&&(0,p.T)(b.add)&&(0,p.T)(b.delete)}},98253:function(f,m,c){c.d(m,{B:function(){return b},K:function(){return v}});var p=c(37923);function v(y){return typeof y=="string"}function b(y){return(0,p.c)(y)&&v(y[0])}},6939:function(f,m,c){function p(v){if(v.includes(" "))return!1;if(typeof URL!="undefined")try{const y=new URL(v);return["https:","http:","ftp:","file:","rtmp:"].includes(y.protocol)}catch(y){return!1}const b=document.createElement("a");return b.href=v,!!b.hostname}c.d(m,{m:function(){return p}})},59082:function(f,m,c){function p(v){return!!v.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(v)&&v.trim().length>0}c.d(m,{u:function(){return p}})},12041:function(f,m,c){c.d(m,{h:function(){return v}});var p=c(69052);function v(b){return!!(b&&b instanceof Object&&(0,p.T)(b.constructor)&&b.isView)}},35642:function(f,m,c){function p(v){return v==null}c.d(m,{R:function(){return p}})},76776:function(f,m,c){function p(v){return v!=null&&v===v.window}c.d(m,{l:function(){return p}})},96768:function(f,m,c){c.d(m,{s:function(){return p}});const p=v=>{if(v==="rgba(0, 0, 0, 0)"||v==="")return!1;if(!v)return"#000000";if(v.substr(0,1)==="#")return v;const b=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(v)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(v);if(!b)return"#000000";const y=parseInt(b[2],10),C=parseInt(b[3],10);let w=(parseInt(b[4],10)|C<<8|y<<16).toString(16).toUpperCase();for(;6>w.length;)w="0"+w;return b[1]+"#"+w}},93495:function(f,m,c){c.d(m,{s:function(){return p.s}});var p=c(96768)},56176:function(f,m,c){c.d(m,{Z:function(){return w}});var p=c(17352),v=c(55186),b=c(59101),y=c(58720);function C(x){return x.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(_,S,I)=>{switch(I.toLowerCase()){case"pt":return(1.328*parseFloat(S)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(S)).toFixed(0)+"px"}return _})}function w(x){if(x.indexOf("<html ")===-1)return x;x=(x=x.substring(x.indexOf("<html "),x.length)).substring(0,x.lastIndexOf("</html>")+7);const _=document.createElement("iframe");_.style.display="none",document.body.appendChild(_);let S="",I=[];try{const T=_.contentDocument||(_.contentWindow?_.contentWindow.document:null);if(T){T.open(),T.write(x),T.close();try{for(let E=0;T.styleSheets.length>E;E+=1){const O=T.styleSheets[E].cssRules;for(let A=0;O.length>A;A+=1)O[A].selectorText!==""&&(I=(0,y.$$)(O[A].selectorText,T.body),I.forEach(M=>{M.style.cssText=C(O[A].style.cssText+";"+M.style.cssText)}))}}catch(E){if(!p.IS_PROD)throw E}v.J.each(T.body,E=>{if(v.J.isElement(E)){const O=E,A=O.getAttribute("style");A&&(O.style.cssText=C(A)),O.hasAttribute("style")&&!O.getAttribute("style")&&O.removeAttribute("style")}}),S=T.firstChild?(0,b.Bq)(T.body.innerHTML):""}}catch(T){}finally{v.J.safeRemove(_)}return S&&(x=S),(0,b.Bq)(x.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},94450:function(f,m,c){c.d(m,{w:function(){return y}});var p=c(55186),v=c(42448),b=c(59101);function y(C){C.indexOf("<html ")!==-1&&(C=(C=C.substring(C.indexOf("<html "),C.length)).substring(0,C.lastIndexOf("</html>")+7));let w="";try{const x=document.createElement("div");x.innerHTML=C;const _=[];x.firstChild&&p.J.each(x,S=>{if(S)switch(S.nodeType){case Node.ELEMENT_NODE:switch(S.nodeName){case"STYLE":case"LINK":case"META":_.push(S);break;case"W:SDT":case"W:SDTPR":case"FONT":p.J.unwrap(S);break;default:(0,v.$)(S.attributes).forEach(I=>{["src","href","rel","content"].indexOf(I.name.toLowerCase())===-1&&S.removeAttribute(I.name)})}break;case Node.TEXT_NODE:break;default:_.push(S)}}),p.J.safeRemove.apply(null,_),w=x.innerHTML}catch(x){}return w&&(C=w),(C=C.split(/(\n)/).filter(b.Bq).join(`
3173
3173
  `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},4960:function(f,m,c){function p(v){const b=document.createElement("div");return b.textContent=v,b.innerHTML}c.d(m,{G:function(){return p}})},16113:function(f,m,c){c.d(m,{Gq:function(){return b.G},HA:function(){return y.H},Kq:function(){return w.K},ZM:function(){return p.Z},t_:function(){return C.t},vn:function(){return C.v},wE:function(){return v.w}});var p=c(56176),v=c(94450),b=c(4960),y=c(10025),C=c(26328),w=c(61793)},10025:function(f,m,c){function p(v){return v.replace(/\r\n|\r|\n/g,"<br/>")}c.d(m,{H:function(){return p}})},26328:function(f,m,c){c.d(m,{t:function(){return b},v:function(){return y}});var p=c(55186),v=c(97369);function b(C,w){(p.J.isElement(C)||p.J.isFragment(C))&&(w.removeOnError&&(y(C),(0,v.$$)("[onerror]",C).forEach(x=>y(x,w))),w.safeJavaScriptLink&&(y(C),(0,v.$$)('a[href^="javascript"]',C).forEach(x=>y(x,w))))}function y(C,{safeJavaScriptLink:w,removeOnError:x}={safeJavaScriptLink:!0,removeOnError:!0}){if(!p.J.isElement(C))return!1;let _=!1;x&&C.hasAttribute("onerror")&&((0,v.attr)(C,"onerror",null),_=!0);const S=C.getAttribute("href");return w&&S&&S.trim().indexOf("javascript")===0&&((0,v.attr)(C,"href",location.protocol+"//"+S),_=!0),_}},61793:function(f,m,c){c.d(m,{K:function(){return _}});var p=c(55186),v=c(98253),b=c(59101),y=c(97369);const C=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),w=new Set(["script","style"]),x=new Set(["br","hr","input"]);function _(S,I=document,T=null){const E=I.createElement("div");return(0,v.K)(S)?E.innerHTML=S:E.appendChild(S),(0,y.$$)("*",E).forEach(O=>{const A=O.parentNode;if(!A)return;if(T&&p.J.isTag(O,T)){const j=O.nodeName.toLowerCase(),R=p.J.isTag(O,x)?`%%%jodit-single-${j}%%%`:`%%%jodit-${j}%%%${_(O.innerHTML,I,T)}%%%/jodit-${j}%%%`;return p.J.before(O,I.createTextNode(R)),void p.J.safeRemove(O)}if(p.J.isTag(O,w))return void p.J.safeRemove(O);if(!p.J.isTag(O,C))return;const M=O.nextSibling;p.J.isText(M)&&/^\s/.test(M.nodeValue||"")||M&&A.insertBefore(I.createTextNode(" "),M)}),(0,b.Bq)(E.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(O,A,M,j)=>`<${A?"/":""}${j}>`)}},65147:function(f,m,c){c.r(m),c.d(m,{CamelCaseToKebabCase:function(){return _.N},NUMBER_FIELDS_REG:function(){return w.b$},applyStyles:function(){return C.ZM},asArray:function(){return p._j},camelCase:function(){return _.xQ},cleanFromWord:function(){return C.wE},clearTimeout:function(){return v.D},colorToHex:function(){return y.s},fuzzySearchIndex:function(){return _.Hp},getContentWidth:function(){return x.y6},getScrollParent:function(){return x.mH},hasBrowserColorPicker:function(){return b.kC},hasContainer:function(){return b.kO},htmlspecialchars:function(){return C.Gq},i18n:function(){return _.Ru},innerWidth:function(){return x.xM},isAbortError:function(){return b.zf},isArray:function(){return b.cy},isBoolean:function(){return b.Lm},isDestructable:function(){return b.pV},isEqual:function(){return b.n4},isFastEqual:function(){return b.P5},isFunction:function(){return b.Tn},isHTML:function(){return b.AH},isHtmlFromWord:function(){return b.CE},isInitable:function(){return b.Gp},isInt:function(){return b.E6},isJoditObject:function(){return b.y0},isLicense:function(){return b.Mj},isMarker:function(){return b.rg},isNativeFunction:function(){return b.a3},isNumber:function(){return b.Et},isNumeric:function(){return b.kf},isPlainObject:function(){return b.Qd},isPromise:function(){return b.yL},isSet:function(){return b.vM},isString:function(){return b.Kg},isStringArray:function(){return b.Bo},isURL:function(){return b.mv},isValidName:function(){return b.uV},isViewObject:function(){return b.hH},isVoid:function(){return b.Rd},isWindow:function(){return b.l6},kebabCase:function(){return _.kW},nl2br:function(){return C.HA},normalizeColor:function(){return w.$2},normalizeCssNumericValue:function(){return w.n8},normalizeCssValue:function(){return w.iy},normalizeKeyAliases:function(){return w.jB},normalizeLicense:function(){return w.f},normalizePath:function(){return w.Fd},normalizeRelativePath:function(){return w.Vd},normalizeSize:function(){return w.rn},normalizeUrl:function(){return w.l2},offset:function(){return x.cY},position:function(){return x.G1},safeHTML:function(){return C.t_},sanitizeHTMLElement:function(){return C.vn},setTimeout:function(){return v.w},size:function(){return x.Ej},splitArray:function(){return p.uM},sprintf:function(){return _.nv},stringify:function(){return _.As},stripTags:function(){return C.Kq},toArray:function(){return p.$r},trim:function(){return _.Bq},trimChars:function(){return _.Gd},trimInv:function(){return _.gj},ucfirst:function(){return _.Z2}});var p=c(32709),v=c(89044),b=c(9823),y=c(93495),C=c(16113),w=c(65499),x=c(34125),_=c(6589),S=c(97369),I={};for(var T in S)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isAbortError","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(T)&&(I[T]=function(E){return S[E]}.bind(0,T));c.d(m,I)},65499:function(f,m,c){c.d(m,{$2:function(){return p.$},Fd:function(){return C.F},Vd:function(){return w.V},b$:function(){return v.b$},f:function(){return y.f},iy:function(){return v.iy},jB:function(){return b.j},l2:function(){return _.l},n8:function(){return v.n8},rn:function(){return x.r}});var p=c(73446),v=c(59678),b=c(74995),y=c(31138),C=c(92998),w=c(13265),x=c(7920),_=c(39344)},73446:function(f,m,c){c.d(m,{$:function(){return b}});var p=c(96768),v=c(59101);const b=y=>{const C=["#"];let w=(0,p.s)(y);if(!w)return!1;if(w=(0,v.Bq)(w.toUpperCase()),w=w.substring(1),w.length===3){for(let x=0;3>x;x+=1)C.push(w[x]),C.push(w[x]);return C.join("")}return w.length>6&&(w=w.slice(0,6)),"#"+w}},59678:function(f,m,c){c.d(m,{b$:function(){return C},iy:function(){return x},n8:function(){return w}});var p=c(12461),v=c(35642),b=c(96768),y=c(449);const C=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function w(_,S){return!(0,v.R)(S)&&C.test(_)&&(0,p.k)(S.toString())?parseInt(S.toString(),10)+"px":S}function x(_,S){if((0,y.k)(_)==="font-weight"){switch(S.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,p.k)(S)?Number(S):S}return/color/i.test(_)&&/^rgb/i.test(S.toString())&&(0,b.s)(S.toString())||S}},74995:function(f,m,c){c.d(m,{j:function(){return b}});var p=c(17352),v=c(59101);function b(y){const C={},w={meta:1,ctrl:2,control:2,alt:3,shift:4};return y.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(x=>(0,v.Bq)(x.toLowerCase())).map(x=>p.KEY_ALIASES[x]||x).sort((x,_)=>w[x]&&!w[_]?-1:!w[x]&&w[_]?1:w[x]&&w[_]?w[x]-w[_]:x>_?1:-1).filter(x=>!C[x]&&x!==""&&(C[x]=!0)).join("+")}},31138:function(f,m,c){c.d(m,{f:function(){return p}});const p=(v,b=8)=>{const y=[];for(;v.length;)y.push(v.substr(0,b)),v=v.substr(b);return y[1]=y[1].replace(/./g,"*"),y[2]=y[2].replace(/./g,"*"),y.join("-")}},92998:function(f,m,c){c.d(m,{F:function(){return v}});var p=c(59101);const v=(...b)=>b.filter(y=>(0,p.Bq)(y).length).map((y,C)=>(y=y.replace(/([^:])[\\/]+/g,"$1/"),C&&(y=y.replace(/^\//,"")),C!==b.length-1&&(y=y.replace(/\/$/,"")),y)).join("/")},13265:function(f,m,c){c.d(m,{V:function(){return p}});const p=v=>v.split("/").reduce((b,y)=>{switch(y){case"":case".":break;case"..":b.pop();break;default:b.push(y)}return b},[]).join("/")+(v.endsWith("/")?"/":"")},7920:function(f,m,c){c.d(m,{r:function(){return p}});const p=(v,b)=>/^[0-9]+$/.test(v.toString())?v+b:v.toString()},39344:function(f,m,c){c.d(m,{l:function(){return p}});const p=(...v)=>v.filter(b=>b.length).map(b=>b.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},73780:function(f,m,c){c.d(m,{y:function(){return p}});const p=(v,b)=>{const y=w=>parseInt(w,10),C=b.getComputedStyle(v);return v.offsetWidth-y(C.getPropertyValue("padding-left")||"0")-y(C.getPropertyValue("padding-right")||"0")}},98228:function(f,m,c){c.d(m,{m:function(){return b}});var p=c(55186),v=c(97369);function b(y){if(!y)return null;const C=p.J.isHTMLElement(y),w=C&&(0,v.css)(y,"overflowY");return C&&w!=="visible"&&w!=="hidden"&&y.scrollHeight>=y.clientHeight?y:b(y.parentNode)||document.scrollingElement||document.body}},34125:function(f,m,c){c.d(m,{Ej:function(){return y.E},G1:function(){return w.G},cY:function(){return C.c},mH:function(){return v.m},xM:function(){return b.x},y6:function(){return p.y}});var p=c(73780),v=c(98228),b=c(49744),y=c(95350),C=c(91594),w=c(27594)},49744:function(f,m,c){c.d(m,{x:function(){return p}});const p=(v,b)=>{const y=b.getComputedStyle(v);let C=v.clientWidth;return C-=parseFloat(y.paddingLeft||"0")+parseFloat(y.paddingRight||"0"),C}},95350:function(f,m,c){c.d(m,{E:function(){return v}});var p=c(9823);function v(b){return(0,p.Kg)(b)||(0,p.cy)(b)?b.length:(0,p.Qd)(b)?Object.keys(b).length:0}},91594:function(f,m,c){c.d(m,{c:function(){return p}});const p=(v,b,y,C=!1)=>{let w;try{w=v.getBoundingClientRect()}catch(R){w={top:0,bottom:0,left:0,right:0,width:0,height:0}}const x=y.body,_=y.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},S=y.defaultView||y.parentWindow,I=S.pageYOffset||_.scrollTop||x.scrollTop,T=S.pageXOffset||_.scrollLeft||x.scrollLeft,E=_.clientTop||x.clientTop||0,O=_.clientLeft||x.clientLeft||0;let A,M;const j=b.iframe;if(!C&&b&&b.options&&b.o.iframe&&j){const{top:R,left:D}=p(j,b,b.od,!0);A=w.top+R,M=w.left+D}else A=w.top+I-E,M=w.left+T-O;return{top:Math.round(A),left:Math.round(M),width:w.width,height:w.height}}},27594:function(f,m,c){c.d(m,{G:function(){return v}});var p=c(83044);function v(b,y,C=!1){var w,x;const _=b.getBoundingClientRect();let S=_.left,I=_.top;if((0,p.y)(y)&&y.iframe&&y.ed.body.contains(b)&&!C){const{left:T,top:E}=v(y.iframe,y,!0);S+=T,I+=E}return{left:Math.round(S),top:Math.round(I),width:Math.round((w=b.offsetWidth)!==null&&w!==void 0?w:_.width),height:Math.round((x=b.offsetHeight)!==null&&x!==void 0?x:_.height)}}},83260:function(f,m,c){c.d(m,{x:function(){return p}});const p=v=>v.replace(/([-_])(.)/g,(b,y,C)=>C.toUpperCase())},67975:function(f,m,c){c.d(m,{H:function(){return v}});var p=c(17352);function v(b,y,C=0,w=1){let x=0,_=0,S=-1,I=0,T=0;for(_=C;b.length>x&&y.length>_;)b[x].toLowerCase()===y[_].toLowerCase()?(x++,I++,T=0,S===-1&&(S=_)):x>0&&(w>T||y[_]===p.INVISIBLE_SPACE?(T++,I++):(x=0,S=-1,I=0,T=0,_--)),_++;return x===b.length?[S,I]:[-1,0]}},91093:function(f,m,c){c.d(m,{R:function(){return x},n:function(){return w}});var p=c(17352),v=c(98253),b=c(10467),y=c(97369),C=c(36115);const w=(_,S)=>{if(!S||!S.length)return _;const I=/%([sd])/g;let T=I.exec(_),E=_,O=0;for(;T&&S[O]!==void 0;)E=E.replace(T[0],S[O].toString()),O+=1,T=I.exec(_);return E};function x(_,S,I){if(!(0,v.K)(_))throw(0,y.error)("i18n: Need string in first argument");if(!_.length)return _;const T=!!(I!=null&&I.debugLanguage);let E={};const O=D=>S&&S.length?w(D,S):D,A=(0,y.defaultLanguage)(C.T.defaultOptions.language,C.T.defaultOptions.language),M=(0,y.defaultLanguage)(I==null?void 0:I.language,A),j=D=>{if(!D)return;if((0,v.K)(D[_]))return O(D[_]);const $=_.toLowerCase();if((0,v.K)(D[$]))return O(D[$]);const B=(0,b.Z)(_);return(0,v.K)(D[B])?O(D[B]):void 0};p.lang[M]!==void 0?E=p.lang[M]:T||(E=p.lang[A]!==void 0?p.lang[A]:p.lang.en);const R=I==null?void 0:I.i18n;if(R&&R[M]){const D=j(R[M]);if(D)return D}return j(E)||(!T&&p.lang.en&&(0,v.K)(p.lang.en[_])&&p.lang.en[_]?O(p.lang.en[_]):T?"{"+_+"}":O(_))}},6589:function(f,m,c){c.d(m,{As:function(){return C.A},Bq:function(){return w.Bq},Gd:function(){return w.Gd},Hp:function(){return v.H},N:function(){return y.N},Ru:function(){return b.R},Z2:function(){return x.Z},gj:function(){return w.gj},kW:function(){return y.k},nv:function(){return b.n},xQ:function(){return p.x}});var p=c(83260),v=c(67975),b=c(91093),y=c(449),C=c(28616),w=c(59101),x=c(10467)},449:function(f,m,c){c.d(m,{N:function(){return v},k:function(){return p}});const p=b=>b.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),v=b=>b.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},28616:function(f,m,c){function p(v,b={}){if(typeof v!="object")return String(v);const y=new Set(b.excludeKeys),C=new WeakMap;return JSON.stringify(v,(w,x)=>{if(!y.has(w)){if(typeof x=="object"&&x!=null){if(C.get(x))return"[refObject]";C.set(x,!0)}return x}},b.prettify)}c.d(m,{A:function(){return p}})},59101:function(f,m,c){c.d(m,{Bq:function(){return v},Gd:function(){return b},gj:function(){return y}});var p=c(17352);function v(C){return C.replace((0,p.SPACE_REG_EXP_END)(),"").replace((0,p.SPACE_REG_EXP_START)(),"")}function b(C,w){return C.replace(RegExp(`[${w}]+$`),"").replace(RegExp(`^[${w}]+`),"")}function y(C){return C.replace((0,p.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,p.INVISIBLE_SPACE_REG_EXP_START)(),"")}},10467:function(f,m,c){function p(v){return v.length?v[0].toUpperCase()+v.substring(1):""}c.d(m,{Z:function(){return p}})},40080:function(f,m,c){c.d(m,{Mr:function(){return b},Op:function(){return C},Xm:function(){return y}});var p=c(71842),v=c(38322);function b(w,x){x&&x!=="normal"?x!=="center"?((0,v.A)(w,"float",x),(0,v.a)(w)):(0,v.A)(w,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,v.A)(w,"float")&&["right","left"].indexOf((0,v.A)(w,"float").toString().toLowerCase())!==-1&&(0,v.A)(w,"float",""),(0,v.a)(w))}function y(w){p.J.each(w,x=>{p.J.isHTMLElement(x)&&x.style.textAlign&&(x.style.textAlign="",x.style.cssText.trim().length||x.removeAttribute("style"))})}function C(w,x){if(p.J.isNode(x)&&p.J.isElement(x))switch(y(x),w.toLowerCase()){case"justifyfull":x.style.textAlign="justify";break;case"justifyright":x.style.textAlign="right";break;case"justifyleft":x.style.textAlign="left";break;case"justifycenter":x.style.textAlign="center"}}},27301:function(f,m,c){c.d(m,{Qt:function(){return x},S5:function(){return w},w4:function(){return C},x_:function(){return _}});var p=c(98253),v=c(60346);const b=new Map,y=S=>(I,T)=>_n(this,null,function*(){if(b.has(T))return b.get(T);const E=S(I,T);return b.set(T,E),E}),C=y((S,I)=>S.async.promise((T,E)=>{if(S.isInDestruct)return E();const O=S.c.element("script",{type:"text/javascript",async:!0,src:(0,v.X)(I)});S.od.body.appendChild(O),S.e.on(O,"error",E).on(O,"load",T)})),w=y((S,I)=>S.async.promise((T,E)=>{if(S.isInDestruct)return E();const O=S.c.element("link");O.rel="stylesheet",O.media="all",O.crossOrigin="anonymous",!S.isInDestruct&&S.e.on(O,"load",()=>T(O)).on(O,"error",E),O.href=(0,v.X)(I),S.o.shadowRoot?S.o.shadowRoot.appendChild(O):S.od.body.appendChild(O)}));function x(S,I,T=0){return(0,p.K)(I[T])?C(S,I[T]).then(()=>x(S,I,T+1)):Promise.resolve()}function _(S,I,T=0){return(0,p.K)(I[T])?w(S,I[T]).then(()=>_(S,I,T+1)):Promise.resolve()}},26150:function(f,m,c){c.d(m,{C:function(){return y}});var p=c(9823),v=c(449),b=c(38322);function y(C,w,x){if(!C||!(0,p.Tn)(C.getAttribute))return null;if(!(0,p.Kg)(w))return Object.keys(w).forEach(S=>{const I=w[S];(0,p.Qd)(I)&&S==="style"?(0,b.A)(C,I):(S==="className"&&(S="class"),y(C,S,I))}),null;let _=(0,v.N)(w);if(/^-/.test(_)){const S=y(C,`data${_}`);if(S)return S;_=_.substr(1)}if(x!==void 0){if(x!=null){let S=x.toString();return C.nodeName!=="IMG"||_!=="width"&&_!=="height"||(S=S.replace("px","")),C.setAttribute(_,S),S}C.hasAttribute(_)&&C.removeAttribute(_)}return C.getAttribute(_)}},65717:function(f,m,c){c.d(m,{T:function(){return p}});const p=v=>{const b=navigator.userAgent.toLowerCase(),y=/(firefox)[\s/]([\w.]+)/.exec(b)||/(chrome)[\s/]([\w.]+)/.exec(b)||/(webkit)[\s/]([\w.]+)/.exec(b)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(b)||/(msie)[\s]([\w.]+)/.exec(b)||/(trident)\/([\w.]+)/.exec(b)||0>b.indexOf("compatible")||[];return v==="version"?y[2]:v==="webkit"?y[1]==="chrome"||y[1]==="webkit":v==="ff"?y[1]==="firefox":v==="msie"?y[1]==="trident"||y[1]==="msie":y[1]===v}},76104:function(f,m,c){c.d(m,{Z:function(){return v}});var p=c(25376);const v=(b,y)=>{const C=[],w=encodeURIComponent;for(const x in b)if(Object.prototype.hasOwnProperty.call(b,x)){const _=y?y+"["+x+"]":x,S=b[x];C.push((0,p.Q)(S)?v(S,_):w(_)+"="+w(S))}return C.join("&")}},60346:function(f,m,c){c.d(m,{X:function(){return p}});const p=v=>(window.location.protocol==="file:"&&/^\/\//.test(v)&&(v="https:"+v),v)},86248:function(f,m,c){c.d(m,{V:function(){return S},t:function(){return _}});var p=c(37923),v=c(25376),b=c(98253),y=c(35642),C=c(49429),w=c(84976),x=c(36115);function _(I,T,E=0){if(Object.getPrototypeOf(I)!==Object.prototype)return I;const O=x.T.defaultOptions;if((0,b.K)(I.preset)){if(O.presets[I.preset]!==void 0){const M=O.presets[I.preset];Object.keys(M).forEach(j=>{(0,y.R)(I[j])&&(I[j]=M[j])})}delete I.preset}const A={};return Object.keys(I).forEach(M=>{const j=I[M],R=T?T[M]:null;A[M]=(0,v.Q)(j)&&(0,v.Q)(R)&&!(0,C.mA)(j)?_(j,R,E+1):E!==0&&(0,p.c)(j)&&!(0,C.mA)(j)&&(0,p.c)(R)?[...j,...R.slice(j.length)]:j}),Object.setPrototypeOf(A,T),A}function S(I){return(0,w.HP)(I,!1).reduce((T,E)=>(T[E]=I[E],T),{})}},82807:function(f,m,c){c.d(m,{m:function(){return b}});var p=c(6939),v=c(70807);const b=(y,C=400,w=345)=>{if(!(0,p.m)(y))return y;const x=document.createElement("a"),_=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;x.href=y,C||(C=400),w||(w=345);const S=x.protocol||"";switch(x.hostname){case"www.vimeo.com":case"vimeo.com":return _.test(y)?y.replace(_,'<iframe width="'+C+'" height="'+w+'" src="'+S+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):y;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const I=x.search?(0,v.m)(x.search):{v:x.pathname.substr(1)};return I.v?'<iframe width="'+C+'" height="'+w+'" src="'+S+"//www.youtube.com/embed/"+I.v+'" frameborder="0" allowfullscreen></iframe>':y}}return y}},38322:function(f,m,c){c.d(m,{A:function(){return w},a:function(){return x}});var p=c(9810),v=c(25376),b=c(59678),y=c(83260),C=c(449);function w(_,S,I,T=!1){if((0,p.L)(I)&&(T=I,I=void 0),(0,v.Q)(S)||I!==void 0){const R=(D,$,B)=>{(B=(0,b.n8)($,B))===void 0||B!=null&&w(D,$,!0)===(0,b.iy)($,B)||(D.style[$]=B)};if((0,v.Q)(S)){const D=Object.keys(S);for(let $=0;D.length>$;$+=1)R(_,(0,y.x)(D[$]),S[D[$]])}else R(_,(0,y.x)(S),I);return""}const E=(0,C.k)(S),O=_.ownerDocument||document,A=!!O&&(O.defaultView||O.parentWindow),M=_.style[S];let j="";return M!==void 0&&M!==""?j=M:A&&!T&&(j=A.getComputedStyle(_).getPropertyValue(E)),b.b$.test(S)&&/^[-+]?[0-9.]+px$/.test(j.toString())&&(j=parseInt(j.toString(),10)),(0,b.iy)(S,j)}const x=_=>{w(_,"display")==="block"&&w(_,"display","");const{style:S}=_;S.marginLeft==="auto"&&S.marginRight==="auto"&&(S.marginLeft="",S.marginRight="")}},34446:function(f,m,c){c.d(m,{X:function(){return p}});const p=v=>{if(typeof navigator!="undefined"&&navigator.userAgent.indexOf("Mac OS X")!==-1){if(v.metaKey&&!v.altKey)return!0}else if(v.ctrlKey&&!v.altKey)return!0;return!1}},72197:function(f,m,c){c.d(m,{m:function(){return b}});var p=c(12041);const v=new WeakMap,b=(y,C,w)=>{let x=v.get(y);if(!x){x={},v.set(y,x);let _=null;(0,p.h)(y.j)&&(_=y.j.e),(0,p.h)(y)&&(_=y.e),_&&_.on("beforeDestruct",()=>{v.delete(y)})}return w===void 0?x[C]:(x[C]=w,w)}},17527:function(f,m,c){c.d(m,{e:function(){return v}});var p=c(98253);const v=(b,y="en")=>b!=="auto"&&(0,p.K)(b)?b:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substring(0,2):y},76166:function(f,m,c){c.d(m,{FI:function(){return b},fF:function(){return y},z3:function(){return v}});var p=c(20222);function v(C){return new TypeError(C)}function b(C){return new p.Rc(C)}function y(C){return new p.ZW(C)}},21567:function(f,m,c){function p(b="Aborted"){return new DOMException(b,"AbortError")}c.d(m,{h:function(){return p},r:function(){return v}});const v=c(99951).z},30495:function(f,m,c){c.d(m,{R:function(){return p}});class p extends Error{constructor(b){super(b),Object.setPrototypeOf(this,p.prototype)}}},20222:function(f,m,c){c.d(m,{Rc:function(){return v.R},ZW:function(){return b.Z},h2:function(){return p.h},rV:function(){return p.r}});var p=c(21567),v=c(30495),b=c(34899)},34899:function(f,m,c){c.d(m,{Z:function(){return p}});class p extends TypeError{constructor(b){super(b),Object.setPrototypeOf(this,p.prototype)}}},50156:function(f,m,c){c.d(m,{FI:function(){return p.FI},Rc:function(){return v.Rc},ZW:function(){return v.ZW},fF:function(){return p.fF},h2:function(){return v.h2},rV:function(){return v.rV},z3:function(){return p.z3}});var p=c(76166),v=c(20222)},49429:function(f,m,c){c.d(m,{Hp:function(){return b},mA:function(){return v},y6:function(){return y}});var p=c(28616);function v(C){return C&&C.isAtom}function b(C){return Object.defineProperty(C,"isAtom",{enumerable:!1,value:!0,configurable:!1}),C}function y(C){return JSON.parse((0,p.A)(C))}},75766:function(f,m,c){c.d(m,{M:function(){return v},u:function(){return b}});var p=c(69052);const v=new Map,b=y=>{var C;if((0,p.T)(y.className))return y.className();const w=((C=y.constructor)===null||C===void 0?void 0:C.originalConstructor)||y.constructor;if(v.has(w))return v.get(w);if(w.name)return w.name;const x=new RegExp(/^\s*function\s*(\S*)\s*\(/),_=w.toString().match(x);return _?_[1]:""}},16841:function(f,m,c){c.d(m,{J:function(){return b}});var p=c(98253),v=c(35642);function b(y,C){if(!(0,p.K)(y)||!y.length)return null;const w=y.split(".");let x=C;try{for(const _ of w){if((0,v.R)(x[_]))return null;x=x[_]}}catch(_){return null}return(0,v.R)(x)?null:x}},99898:function(f,m,c){c.d(m,{z:function(){return p}});const p=v=>{if(/^[0-9.]+$/.test(v.toString()))return parseFloat(v);const b=v.substr(-2,2).toUpperCase(),y=["KB","MB","GB","TB"],C=parseFloat(v.substr(0,v.length-2));return y.indexOf(b)!==-1?C*Math.pow(1024,y.indexOf(b)+1):parseInt(v,10)}},97369:function(f,m,c){c.r(m),c.d(m,{$$:function(){return K.$$},ConfigFlatten:function(){return I.V},ConfigProto:function(){return I.t},ConnectionError:function(){return j.Rc},LimitedStack:function(){return oe.d},OptionsError:function(){return j.ZW},abort:function(){return j.h2},alignElement:function(){return p.Op},appendScriptAsync:function(){return v.w4},appendStyleAsync:function(){return v.S5},attr:function(){return w.C},browser:function(){return x.T},buildQuery:function(){return _.Z},call:function(){return se.T1},callPromise:function(){return se.o_},clearAlign:function(){return p.Xm},clearCenterAlign:function(){return E.a},cns:function(){return H.f},completeUrl:function(){return S.X},connection:function(){return j.FI},convertMediaUrlToVideoEmbed:function(){return T.m},css:function(){return E.A},cssPath:function(){return K.bE},ctrlKey:function(){return O.X},dataBind:function(){return A.m},defaultLanguage:function(){return M.e},error:function(){return j.z3},fastClone:function(){return R.y6},get:function(){return D.J},getClassName:function(){return $.u},getDataTransfer:function(){return se.my},getXPathByElement:function(){return K.fz},hAlignElement:function(){return p.Mr},humanSizeToBytes:function(){return B.z},inView:function(){return Z.l},isAbort:function(){return j.rV},isAtom:function(){return R.mA},keepNames:function(){return $.M},keys:function(){return se.HP},loadImage:function(){return se.yt},loadNext:function(){return v.Qt},loadNextStyle:function(){return v.x_},markAsAtomic:function(){return R.Hp},markDeprecated:function(){return H.B},markOwner:function(){return se.b_},memorizeExec:function(){return se.qN},options:function(){return j.fF},parseQuery:function(){return G.m},previewBox:function(){return W.u},refs:function(){return K.DY},reset:function(){return Q.c},resolveElement:function(){return K.tI},scrollIntoViewIfNeeded:function(){return Z.$},set:function(){return ee.h}});var p=c(40080),v=c(27301),b=c(28712),y={};for(var C in b)0>["default","alignElement","clearAlign","hAlignElement","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(C)&&(y[C]=function(ce){return b[ce]}.bind(0,C));c.d(m,y);var w=c(26150),x=c(65717),_=c(76104),S=c(60346),I=c(86248),T=c(82807),E=c(38322),O=c(34446),A=c(72197),M=c(17527),j=c(50156),R=c(49429),D=c(16841),$=c(75766),B=c(99898),H=c(67400),G=c(70807),W=c(98434),Q=c(44210),Z=c(641),K=c(58720),ee=c(40677),oe=c(70069),se=c(84976)},67400:function(f,m,c){c.d(m,{B:function(){return v},f:function(){return p}});const p=console;function v(b,y=[""],C=null){return(...w)=>(p.warn(`Method "${y[0]}" deprecated.`+(y[1]?` Use "${y[1]}" instead`:"")),b.call(C,...w))}},70807:function(f,m,c){c.d(m,{m:function(){return p}});const p=v=>{const b={},y=v.substring(1).split("&");for(let C=0;y.length>C;C+=1){const w=y[C].split("=");b[decodeURIComponent(w[0])]=decodeURIComponent(w[1]||"")}return b}},98434:function(f,m,c){c.d(m,{u:function(){return w}});var p=c(55186),v=c(98253),b=c(26150),y=c(38322),C=c(58720);function w(x,_,S="px",I=null){const T=[],E=function(O,A){const M=[];try{(0,C.$$)("img",O.editor).forEach(j=>{const R=[(0,b.C)(j,"width"),(0,b.C)(j,"height"),j.src];(0,b.C)(j,{width:j.offsetWidth+A,height:j.offsetHeight+A});const D=O.createInside.a();O.ed.body.appendChild(D),D.href=j.src,j.src=D.href,p.J.safeRemove(D),M.push(()=>{var $;j.src=($=R[2])!==null&&$!==void 0?$:"",(0,b.C)(j,{width:R[0]||null,height:R[1]||null})})})}catch(j){throw M.forEach(R=>R()),M.length=0,j}return M}(x,S);try{const O=x.e.fire("beforePreviewBox",_,S);if(O!=null)return O;let A=x.c.div("jodit__preview-box jodit-context");I&&I.appendChild(A),(0,y.A)(A,{position:"relative",padding:16});const M=x.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${x.i18n("Empty")}</div>`;if(x.iframe){const R=x.create.element("iframe");(0,y.A)(R,{minWidth:800,minHeight:600,border:0}),A.appendChild(R);const D=R.contentWindow;if(D&&(x.e.fire("generateDocumentStructure.iframe",D.document,x),A=D.document.body,typeof ResizeObserver=="function")){let $=!1;const B=D.document.body,H=new ResizeObserver(x.async.debounce(()=>{H.unobserve(B),R.style.height=`${B.offsetHeight+20}px`,x.async.requestAnimationFrame(()=>{!$&&H.observe(B)})},100)),G=()=>{$=!0,H.unobserve(B),H.disconnect(),x.e.off("beforeDestruct",G)};T.push(G),x.e.on("beforeDestruct",G)}}else(0,y.A)(A,{minWidth:1024,minHeight:600,border:0});const j=(R,D)=>{const $=(0,v.K)(D)?x.c.div():D;(0,v.K)(D)&&($.innerHTML=D);for(let B=0;$.childNodes.length>B;B+=1){const H=$.childNodes[B];if(p.J.isElement(H)){const G=R.ownerDocument.createElement(H.nodeName);for(let W=0;H.attributes.length>W;W+=1)(0,b.C)(G,H.attributes[W].nodeName,H.attributes[W].nodeValue);H.childNodes.length===0||p.J.isTag(H,"table")?H.nodeName==="SCRIPT"?H.textContent&&(G.textContent=H.textContent):H.innerHTML&&(G.innerHTML=H.innerHTML):j(G,H);try{R.appendChild(G)}catch(W){}}else try{R.appendChild(H.cloneNode(!0))}catch(G){}}};return j(A,M),x.e.fire("afterPreviewBox",A),[A,()=>{T.forEach(R=>R())}]}finally{E.forEach(O=>O())}}},44210:function(f,m,c){c.d(m,{c:function(){return C}});var p=c(17352),v=c(69052),b=c(16841);const y={};function C(w){var x,_;if(!(w in y)){const S=document.createElement("iframe");try{if(S.src="about:blank",document.body.appendChild(S),!S.contentWindow)return null;const I=(0,b.J)(w,S.contentWindow),T=(0,b.J)(w.split(".").slice(0,-1).join("."),S.contentWindow);(0,v.T)(I)&&(y[w]=I.bind(T))}catch(I){if(!p.IS_PROD)throw I}finally{(x=S.parentNode)===null||x===void 0||x.removeChild(S)}}return(_=y[w])!==null&&_!==void 0?_:null}},641:function(f,m,c){c.d(m,{$:function(){return b},l:function(){return v}});var p=c(55186);function v(y,C,w){let x=y.getBoundingClientRect(),_=y;const S=x.top,I=x.height;for(;_&&_!==C&&_.parentNode;)if(_=_.parentNode,x=_.getBoundingClientRect(),S>x.bottom||x.top>=S+I)return!1;return(w.documentElement&&w.documentElement.clientHeight||0)>=S}function b(y,C,w){p.J.isHTMLElement(y)&&!v(y,C,w)&&(C.clientHeight!==C.scrollHeight&&(C.scrollTop=y.offsetTop),v(y,C,w)||y.scrollIntoView())}},58720:function(f,m,c){c.d(m,{$$:function(){return S},DY:function(){return T},bE:function(){return E},fz:function(){return I},tI:function(){return O}});var p=c(17352),v=c(55186),b=c(42448),y=c(98253),C=c(83260),w=c(97369);let x=1;const _=()=>(x++,x);function S(A,M){let j;if(p.IS_ES_NEXT||!/:scope/.test(A)||!p.IS_IE||M&&M.nodeType===Node.DOCUMENT_NODE)j=M.querySelectorAll(A);else{const R=M.id,D=R||"_selector_id_"+String(Math.random()).slice(2)+_();A=A.replace(/:scope/g,"#"+D),!R&&M.setAttribute("id",D),j=M.parentNode.querySelectorAll(A),R||M.removeAttribute("id")}return[].slice.call(j)}const I=(A,M)=>{if(!A||A.nodeType!==Node.ELEMENT_NODE||!A.parentNode||M===A)return"";if(A.id)return"//*[@id='"+A.id+"']";const j=[].filter.call(A.parentNode.childNodes,R=>R.nodeName===A.nodeName);return I(A.parentNode,M)+"/"+A.nodeName.toLowerCase()+(j.length>1?"["+((0,b.$)(j).indexOf(A)+1)+"]":"")},T=A=>("container"in A&&(A=A.container),S("[ref],[data-ref]",A).reduce((M,j)=>{const R=(0,w.attr)(j,"-ref");return R&&(0,y.K)(R)&&(M[(0,C.x)(R)]=j,M[R]=j),M},{})),E=A=>{if(!v.J.isElement(A))return null;const M=[];let j=A;for(;j&&j.nodeType===Node.ELEMENT_NODE;){let R=j.nodeName.toLowerCase();if(j.id){R+="#"+j.id,M.unshift(R);break}{let D=j,$=1;do D=D.previousElementSibling,D&&D.nodeName.toLowerCase()===R&&$++;while(D);R+=":nth-of-type("+$+")"}M.unshift(R),j=j.parentNode}return M.join(" > ")};function O(A,M){let j=A;if((0,y.K)(A))try{j=M.querySelector(A)}catch(R){throw(0,w.error)('String "'+A+'" should be valid HTML selector')}if(!j||typeof j!="object"||!v.J.isElement(j)||!j.cloneNode)throw(0,w.error)('Element "'+A+'" should be string or HTMLElement instance');return j}},40677:function(f,m,c){c.d(m,{h:function(){return C}});var p=c(37923),v=c(12461),b=c(25376),y=c(98253);function C(w,x,_){if(!(0,y.K)(w)||!w.length)return;const S=w.split(".");let I=_,T=S[0];for(let E=0;S.length-1>E;E+=1)T=S[E],(0,p.c)(I[T])||(0,b.Q)(I[T])||(I[T]=(0,v.k)(S[E+1])?[]:{}),I=I[T];I&&(I[S[S.length-1]]=x)}},70069:function(f,m,c){c.d(m,{d:function(){return p}});class p{constructor(b){this.limit=b,this.stack=[]}push(b){return this.stack.push(b),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(b){return this.stack.find(b)}}},84976:function(f,m,c){c.d(m,{HP:function(){return S},T1:function(){return C},b_:function(){return w},my:function(){return T},o_:function(){return x},qN:function(){return I},yt:function(){return _}});var p=c(92039),v=c(35642),b=c(26150),y=c(72197);function C(E,...O){return E(...O)}function w(E,O){(0,b.C)(O,"data-editor_id",E.id),!O.component&&Object.defineProperty(O,"jodit",{value:E})}function x(E,O){return(0,p.y)(E)?E.then(A=>A,()=>null).finally(O):O==null?void 0:O()}const _=(E,O)=>O.async.promise((A,M)=>{const j=new Image,R=()=>{O.e.off(j),M==null||M()},D=()=>{O.e.off(j),A(j)};O.e.one(j,"load",D).one(j,"error",R).one(j,"abort",R),j.src=E,j.complete&&D()}),S=(E,O=!0)=>{if(O)return Object.keys(E);const A=[];for(const M in E)A.push(M);return A},I=(E,O,{control:A},M)=>{var j;const R=`button${A.command}`;let D=(j=A.args&&A.args[0])!==null&&j!==void 0?j:(0,y.m)(E,R);if((0,v.R)(D))return!1;(0,y.m)(E,R,D),M&&(D=M(D)),E.execCommand(A.command,!1,D!=null?D:void 0)},T=E=>{if(E.clipboardData)return E.clipboardData;try{return E.dataTransfer||new DataTransfer}catch(O){return null}}},58269:function(f,m,c){c.d(m,{T:function(){return C}});var p=c(17352),v=c(56298),b=c(9823),y=c(32291);function C(w,x,_,S,I,T){if((0,b.Gp)(S))try{S.init(w)}catch(E){if(!p.IS_PROD)throw E}I.set(x,S),T.delete(x),S.hasStyle&&(0,y.M)(w,x).catch(E=>{}),S.styles&&((0,v.My)(w,x,"style").innerHTML=S.styles)}},32291:function(f,m,c){c.d(m,{M:function(){return w},o:function(){return _}});var p=c(17352),v=c(449),b=c(27301),y=c(96134);const C=new Set;function w(S,I){return _n(this,null,function*(){const T=x(S,I,!1);if(!C.has(T))return C.add(T),(0,b.S5)(S,T)})}function x(S,I,T){return I=(0,v.k)(I),S.basePath+"plugins/"+I+"/"+I+"."+(T?"js":"css")}function _(S,I,T,E){try{const O=T.filter(A=>!S.has((0,y.P)(A.name)));O.length&&function(A,M,j){M.map(R=>{const D=R.url||x(A,R.name,!0);return(0,b.w4)(A,D).then(j).catch(()=>null)})}(I,O,E)}catch(O){if(!p.IS_PROD)throw O}}},58157:function(f,m,c){c.d(m,{k:function(){return b}});var p=c(17352),v=c(69052);function b(y,C){try{try{return(0,v.T)(C)?new C(y):C}catch(w){if((0,v.T)(C)&&!C.prototype)return C(y)}}catch(w){if(!p.IS_PROD)throw w}return null}},96134:function(f,m,c){c.d(m,{P:function(){return v}});var p=c(449);function v(b){return(0,p.k)(b).toLowerCase()}},71005:function(f,m,c){c.d(m,{k:function(){return p.k}});var p=c(29866);c(77402)},77402:function(f,m,c){c.d(m,{$:function(){return _}}),c(17352);var p=c(56298),v=c(32709),b=c(9823),y=c(58269),C=c(32291),w=c(58157),x=c(96134);class _{constructor(){this.__items=new Map}add(I,T){this.__items.set((0,x.P)(I),T),p.RR.fire(`plugin:${I}:ready`)}get(I){return this.__items.get((0,x.P)(I))}remove(I){this.__items.delete((0,x.P)(I))}__getFullPluginsList(I){const T=[];return this.__items.forEach((E,O)=>{I&&!I.has(O)||T.push([O,E])}),T}__init(I){const{extraList:T,disableList:E,filter:O}=function(D){return{extraList:D.o.extraPlugins.map($=>(0,b.Kg)($)?{name:$}:$),disableList:new Set((0,v.uM)(D.o.disablePlugins).map(x.P)),filter:D.o.safeMode?new Set(D.o.safePluginsList):null}}(I),A=new Map,M={},j=new Set;I.__plugins=M;const R=()=>{if(I.isInDestruct)return;let D=!1;this.__getFullPluginsList(O).forEach(([$,B])=>{if(E.has($)||A.has($))return;const H=B==null?void 0:B.requires;if(H&&(0,b.cy)(H)&&H.length){if(H.some(W=>E.has(W)))return;if(!H.every(W=>A.has(W)))return void j.add($)}D=!0;const G=(0,w.k)(I,B);if(!G)return A.set($,null),void j.delete($);(0,y.T)(I,$,B,G,A,j),M[$]=G}),D&&(I.e.fire("updatePlugins"),R())};T&&T.length&&(0,C.o)(this.__items,I,T,R),R(),function(D,$){D.e.on("beforeDestruct",()=>{Object.keys($).forEach(B=>{const H=$[B];(0,b.pV)(H)&&H.destruct(D),delete $[B]}),delete D.__plugins})}(I,M)}wait(I){return new Promise(T=>{if(this.get(I))return T();const E=()=>{T(),p.RR.off(`plugin:${I}:ready`,E)};p.RR.on(`plugin:${I}:ready`,E)})}}},29866:function(f,m,c){c.d(m,{k:function(){return C}});var p=c(31635),v=c(77753),b=c(22664),y=c(83044);class C extends v.vG{className(){return"Plugin"}constructor(x){super(x),this.buttons=[],this.hasStyle=!1,this.__inited=!1,x.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}__afterPluginSystemInit(){const{j:x,buttons:_}=this;_&&(0,y.y)(x)&&_.forEach(S=>{x.registerButton(S)})}__afterInit(){this.__inited=!0,this.setStatus(v.f.ready),this.afterInit(this.jodit)}init(x){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var x;if(this.isInDestruct)return;const{j:_}=this;if(_.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(v.f.beforeDestruct),!this.__inited)return super.destruct();(0,y.y)(_)&&((x=this.buttons)===null||x===void 0||x.forEach(S=>{_==null||_.unregisterButton(S)})),this.beforeDestruct(this.j),super.destruct()}}C.requires=[],(0,p.Cg)([b.autobind],C.prototype,"__afterPluginSystemInit",null),(0,p.Cg)([b.autobind],C.prototype,"__afterInit",null),(0,p.Cg)([b.autobind],C.prototype,"__beforeDestruct",null)},49853:function(f,m,c){c.d(m,{d:function(){return _}});var p=c(31635),v=c(64890),b=c(26318),y=c(65147),C=c(50156),w=(c(27337),c(91672)),x=c(36115);class _{className(){return"Ajax"}constructor(I,T=x.T.prototype.defaultAjaxOptions){this.__async=new v.j,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,y.ConfigProto)(I||{},T),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(I,T){return(0,y.isPlainObject)(I)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(I):(0,y.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,I,T):(0,y.isString)(I)||I instanceof window.FormData||typeof I=="object"&&I!=null&&(0,y.isFunction)(I.append)?I:(0,y.buildQuery)(I)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(I){}return this}send(){this.__activated=!0;const{xhr:I,o:T}=this,E=this.prepareRequest();return this.__async.promise((O,A)=>_n(this,null,function*(){var M;const j=()=>{this.__isFulfilled=!0,A(C.FI("Connection error"))},R=()=>{this.__isFulfilled=!0,O(new w.Y(E,I.status,I.statusText,I.responseType?I.response:I.responseText))};I.onload=R,I.onabort=()=>{this.__isFulfilled=!0,A(C.h2("Abort connection"))},I.onerror=j,I.ontimeout=j,T.responseType&&(I.responseType=T.responseType),I.onprogress=G=>{var W,Q;let Z=0;G.lengthComputable&&(Z=G.loaded/G.total*100),(Q=(W=this.options).onProgress)===null||Q===void 0||Q.call(W,Z)},I.onreadystatechange=()=>{var G,W;(W=(G=this.options).onProgress)===null||W===void 0||W.call(G,10),I.readyState===XMLHttpRequest.DONE&&(T.successStatuses.includes(I.status)?R():I.statusText&&(this.__isFulfilled=!0,A(C.FI(I.statusText))))},I.withCredentials=(M=T.withCredentials)!==null&&M!==void 0&&M;const{url:D,data:$,method:B}=E;I.open(B,D,!0),T.contentType&&I.setRequestHeader&&I.setRequestHeader("Content-type",T.contentType);let{headers:H}=T;(0,y.isFunction)(H)&&(H=yield H.call(this)),H&&I.setRequestHeader&&Object.keys(H).forEach(G=>{I.setRequestHeader(G,H[G])}),this.__async.setTimeout(()=>{I.send($?this.__buildParams($):void 0)},0)}))}prepareRequest(){if(!this.o.url)throw C.z3("Need URL for AJAX request");let I=this.o.url;const T=this.o.data,E=(this.o.method||"get").toLowerCase();if(E==="get"&&T&&(0,y.isPlainObject)(T)){const A=I.indexOf("?");if(A!==-1){const M=(0,y.parseQuery)(I);I=I.substring(0,A)+"?"+(0,y.buildQuery)(he(he({},M),T))}else I+="?"+(0,y.buildQuery)(this.o.data)}const O={url:I,method:E,data:T};return _.log.splice(100),_.log.push(O),O}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}_.log=[],(0,p.Cg)([b.Ay],_.prototype,"destruct",null)},27337:function(f,m,c){c(36115).T.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:()=>new XMLHttpRequest}},53883:function(f,m,c){c.d(m,{Y:function(){return v.Y},d:function(){return p.d}});var p=c(49853),v=c(91672)},91672:function(f,m,c){c.d(m,{Y:function(){return p}});class p{get url(){return this.request.url}constructor(b,y,C,w){this.request=b,this.status=y,this.statusText=C,this.body=w}json(){return _n(this,null,function*(){return JSON.parse(this.body)})}text(){return Promise.resolve(this.body)}blob(){return _n(this,null,function*(){return this.body})}}},46602:function(f,m,c){c.d(m,{W:function(){return p.W}});var p=c(5298);c(83541)},5298:function(f,m,c){c.d(m,{W:function(){return b}});var p=c(17352),v=c(55186);function b(y,C,w){let x=v.J.findSibling(C,w),_=v.J.findSibling(C,!w);for(;v.J.isElement(x)&&!v.J.isTag(x,p.INSEPARABLE_TAGS)&&v.J.isContentEditable(x,y.editor)&&(!_||!v.J.closest(C,v.J.isElement,y.editor));)w||!x.firstChild?x.appendChild(C):v.J.before(x.firstChild,C),x=v.J.sibling(C,w),_=v.J.sibling(C,!w)}},83541:function(f,m,c){c.d(m,{G:function(){return v}});var p=c(55186);function v(b,y,C){let w=b;for(;w&&w!==C;){if(p.J.findSibling(w,y))return;if(p.J.isBlock(w.parentElement))break;w=w.parentElement,w&&w!==C&&(y?p.J.before(w,b):p.J.after(w,b))}}},87332:function(f,m,c){c.d(m,{Ag:function(){return v.Ag},DI:function(){return v.DI},LN:function(){return p.L},OJ:function(){return v.OJ},Zk:function(){return v.Zk},dj:function(){return v.dj},xk:function(){return v.xk}});var p=c(84602),v=c(8757)},84602:function(f,m,c){c.d(m,{L:function(){return S}});var p=c(31635),v=c(17352),b=c(22664),y=c(55186),C=c(65147),w=c(9823),x=(c(28712),c(83541)),_=c(8757);class S{constructor(T){this.jodit=T,T.e.on("removeMarkers",()=>{this.removeMarkers()})}get j(){return this.jodit}errorNode(T){if(!y.J.isNode(T))throw(0,C.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,w.Tn)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const T=this.sel;return T&&T.rangeCount?T.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:T}=this,E=T!=null&&T.rangeCount?T.getRangeAt(0):null;return!(!E||!y.J.isOrContains(this.area,E.startContainer))}createRange(T=!1){const E=this.doc.createRange();return T&&this.selectRange(E),E}remove(){const T=this.sel,E=this.current();if(T&&E)for(let O=0;T.rangeCount>O;O+=1)T.getRangeAt(O).deleteContents(),T.getRangeAt(O).collapse(!0)}clear(){var T,E;!((T=this.sel)===null||T===void 0)&&T.rangeCount&&((E=this.sel)===null||E===void 0||E.removeAllRanges())}removeNode(T){if(!y.J.isOrContains(this.j.editor,T,!0))throw(0,C.error)("Selection.removeNode can remove only editor's children");y.J.safeRemove(T),this.j.e.fire("afterRemoveNode",T)}insertCursorAtPoint(T,E){this.removeMarkers();try{const O=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const A=this.doc.caretPositionFromPoint(T,E);if(A)return void O.setStart(A.offsetNode,A.offset)}if(this.doc.caretRangeFromPoint){const A=this.doc.caretRangeFromPoint(T,E);O.setStart(A.startContainer,A.startOffset)}})(),O.collapse(!0),this.selectRange(O),!0}catch(O){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,C.$$)("span[data-"+v.MARKER_CLASS+"]",this.area)}removeMarkers(){y.J.safeRemove.apply(null,this.markers)}marker(T=!1,E){let O=null;E&&(O=E.cloneRange(),O.collapse(T));const A=this.j.createInside.span();return A.id=v.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),A.style.lineHeight="0",A.style.display="none",y.J.markTemporary(A),(0,C.attr)(A,"data-"+v.MARKER_CLASS,T?"start":"end"),A.appendChild(this.j.createInside.text(v.INVISIBLE_SPACE)),O&&y.J.isOrContains(this.area,T?O.startContainer:O.endContainer)&&O.insertNode(A),A}restore(){let T=!1;const E=M=>`span[data-${v.MARKER_CLASS}=${M?"start":"end"}]`,O=this.area.querySelector(E(!0)),A=this.area.querySelector(E(!1));if(O){if(T=this.createRange(),A)T.setStartAfter(O),y.J.safeRemove(O),T.setEndBefore(A),y.J.safeRemove(A);else{const M=O.previousSibling;y.J.isText(M)?T.setStart(M,M.nodeValue?M.nodeValue.length:0):T.setStartBefore(O),y.J.safeRemove(O),T.collapse(!0)}T&&this.selectRange(T)}}fakes(){const T=this.sel;if(!T||!T.rangeCount)return[];const E=T.getRangeAt(0),O=E.cloneRange();O.collapse(!0);const A=this.j.createInside.fake();y.J.safeInsertNode(O,A),E.setStartBefore(A);const M=[A];if(!E.collapsed){const j=E.cloneRange();j.collapse(!1);const R=this.j.createInside.fake();y.J.safeInsertNode(j,R),E.setEndAfter(R),M.push(R)}return this.selectRange(E),M}restoreFakes(T){var E,O,A,M;const j=T.filter(B=>B.isConnected);if(!j.length)return;const[R,D]=j,$=this.createRange();$.setStartAfter(R),D&&$.setEndBefore(D),this.selectRange($),((E=R.parentNode)===null||E===void 0?void 0:E.firstChild)!==((O=R.parentNode)===null||O===void 0?void 0:O.lastChild)&&y.J.safeRemove(R),((A=D==null?void 0:D.parentNode)===null||A===void 0?void 0:A.firstChild)!==((M=D==null?void 0:D.parentNode)===null||M===void 0?void 0:M.lastChild)&&y.J.safeRemove(D)}save(T=!1){if(this.hasMarkers)return[];const E=this.sel;if(!E||!E.rangeCount)return[];const O=[],A=E.rangeCount,M=[];for(let j=0;A>j;j+=1)if(M[j]=E.getRangeAt(j),M[j].collapsed){const R=this.marker(!0,M[j]);O[j]={startId:R.id,collapsed:!0,startMarker:R.outerHTML}}else{const R=this.marker(!0,M[j]),D=this.marker(!1,M[j]);O[j]={startId:R.id,endId:D.id,collapsed:!1,startMarker:R.outerHTML,endMarker:D.outerHTML}}if(!T){E.removeAllRanges();for(let j=A-1;j>=0;--j){const R=this.doc.getElementById(O[j].startId);if(R){if(O[j].collapsed)M[j].setStartAfter(R),M[j].collapse(!0);else if(M[j].setStartBefore(R),O[j].endId){const D=this.doc.getElementById(O[j].endId);D&&M[j].setEndAfter(D)}try{E.addRange(M[j].cloneRange())}catch(D){}}}}return O}focus(T={preventScroll:!0}){var E,O;if(!this.isFocused()){const A=(0,C.getScrollParent)(this.j.container),M=A==null?void 0:A.scrollTop;this.j.iframe&&this.doc.readyState==="complete"&&this.j.iframe.focus(T),this.win.focus(),this.area.focus(T),M&&(A!=null&&A.scrollTo)&&A.scrollTo(0,M);const j=this.sel,R=j!=null&&j.rangeCount?j==null?void 0:j.getRangeAt(0):null;if(!R||!y.J.isOrContains(this.area,R.startContainer)){const D=this.createRange();D.setStart(this.area,0),D.collapse(!0),this.selectRange(D,!1)}return this.j.editorIsActive||(O=(E=this.j)===null||E===void 0?void 0:E.events)===null||O===void 0||O.fire("focus"),!0}return!1}isCollapsed(){const T=this.sel;for(let E=0;T&&T.rangeCount>E;E+=1)if(!T.getRangeAt(E).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(T=!0){if(this.j.getRealMode()===v.MODE_WYSIWYG){const E=this.sel;if(!E||E.rangeCount===0)return null;const O=E.getRangeAt(0);let A=O.startContainer,M=!1;const j=R=>M?R.lastChild:R.firstChild;if(y.J.isTag(A,"br")&&E.isCollapsed)return A;if(!y.J.isText(A)){if(A=O.startContainer.childNodes[O.startOffset],A||(A=O.startContainer.childNodes[O.startOffset-1],M=!0),A&&E.isCollapsed&&!y.J.isText(A)){if(!M&&y.J.isText(A.previousSibling))A=A.previousSibling;else if(T){let R=j(A);for(;R;){if(R&&y.J.isText(R)){A=R;break}R=j(R)}}}if(A&&!E.isCollapsed&&!y.J.isText(A)){let R=A,D=A;do R=R.firstChild,D=D.lastChild;while(R&&D&&!y.J.isText(R));R===D&&R&&y.J.isText(R)&&(A=R)}}if(A&&y.J.isOrContains(this.area,A))return A}return null}insertNode(T,E=!0,O=!0){this.errorNode(T);const A=y.J.isFragment(T)?T.lastChild:T;this.j.e.fire("safeHTML",T),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const M=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",T),M&&M.rangeCount){const R=M.getRangeAt(0);y.J.isOrContains(this.area,R.commonAncestorContainer)?y.J.safeInsertNode(R,T):this.area.appendChild(T)}else this.area.appendChild(T);const j=R=>{if(y.J.isBlock(R)){const D=R.lastChild;if(D)return j(D)}this.setCursorAfter(R)};E&&(y.J.isFragment(T)?A&&j(A):j(T)),this.j.o.scrollToPastedContent&&(0,C.scrollIntoViewIfNeeded)(A!=null?A:T,this.j.editor,this.doc)}),O&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",y.J.isFragment(T)?A:T)}insertHTML(T,E=!0){if(T==="")return;const O=this.j.createInside.div(),A=this.j.createInside.fragment();let M;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),y.J.isNode(T)?O.appendChild(T):O.innerHTML=T.toString(),(this.j.isEditorMode()||this.j.e.fire("insertHTML",O.innerHTML)!==!1)&&(M=O.lastChild,M)){for(;O.firstChild;)M=O.firstChild,A.appendChild(O.firstChild);this.insertNode(A,E,!1),this.j.__imdSynchronizeValues()}}insertImage(T,E=null,O=null){const A=(0,w.Kg)(T)?this.j.createInside.element("img"):T;if((0,w.Kg)(T)&&A.setAttribute("src",T),O!=null){let j=O.toString();j&&j!=="auto"&&0>String(j).indexOf("px")&&0>String(j).indexOf("%")&&(j+="px"),(0,C.call)(this.j.o.resizer.forImageChangeAttributes?C.attr:C.css,A,"width",j)}E&&typeof E=="object"&&(0,C.css)(A,E);const M=()=>{(A.offsetHeight>A.naturalHeight||A.offsetWidth>A.naturalWidth)&&(A.style.width="",A.style.height=""),A.removeEventListener("load",M)};this.j.e.on(A,"load",M),A.complete&&M(),this.insertNode(A),this.j.e.fire("afterInsertImage",A)}eachSelection(T){var E;const O=this.sel;if(O&&O.rangeCount){const A=O.getRangeAt(0);let M=A.commonAncestorContainer;y.J.isHTMLElement(M)||(M=M.parentElement);const j=[],R=A.startOffset,D=M.childNodes.length;let $=A.startContainer===this.area?M.childNodes[D>R?R:D-1]:A.startContainer,B=A.endContainer===this.area?M.childNodes[A.endOffset-1]:A.endContainer;y.J.isText($)&&$===A.startContainer&&A.startOffset===((E=$.nodeValue)===null||E===void 0?void 0:E.length)&&$.nextSibling&&($=$.nextSibling),y.J.isText(B)&&B===A.endContainer&&A.endOffset===0&&B.previousSibling&&(B=B.previousSibling);const H=W=>{!W||W===M||y.J.isEmptyTextNode(W)||(0,w.rg)(W)||j.push(W)};H($),$!==B&&y.J.isOrContains(M,$,!0)&&y.J.find($,W=>(H(W),W===B||W&&W.contains&&W.contains(B)),M,!0,!1);const G=W=>{if(y.J.isOrContains(this.j.editor,W,!0)){if(W.nodeName.match(/^(UL|OL)$/))return(0,C.toArray)(W.childNodes).forEach(G);if(y.J.isTag(W,"li"))if(W.firstChild)W=W.firstChild;else{const Q=this.j.createInside.text(v.INVISIBLE_SPACE);W.appendChild(Q),W=Q}T(W)}};j.length===0&&y.J.isEmptyTextNode($)&&j.push($),j.length===0&&$.firstChild&&j.push($.firstChild),j.forEach(G)}}cursorInTheEdge(T,E,O=null){var A,M;const j=!T,R=(A=this.sel)===null||A===void 0?void 0:A.getRangeAt(0);if(O!=null||(O=this.current(!1)),!R||!O||!y.J.isOrContains(E,O,!0))return null;const D=T?R.startContainer:R.endContainer,$=T?R.startOffset:R.endOffset,B=G=>!!(G&&!y.J.isTag(G,"br")&&!y.J.isEmptyTextNode(G)&&!y.J.isTemporary(G)&&!(y.J.isElement(G)&&this.j.e.fire("isInvisibleForCursor",G)===!0));if(y.J.isText(D)){const G=!((M=D.nodeValue)===null||M===void 0)&&M.length?D.nodeValue:"";if(j&&G.replace((0,v.INVISIBLE_SPACE_REG_EXP_END)(),"").length>$)return!1;const W=(0,v.INVISIBLE_SPACE_REG_EXP_START)().exec(G);if(T&&(W&&$>W[0].length||!W&&$>0))return!1}else{const G=(0,C.toArray)(D.childNodes);if(j){if(G.slice($).some(B))return!1}else if(G.slice(0,$).some(B))return!1}let H=O;for(;H&&H!==E;){const G=y.J.sibling(H,T);if(G){if(H=G,H&&B(H))return!1}else H=H.parentNode}return!0}cursorOnTheLeft(T,E){return this.cursorInTheEdge(!0,T,E)}cursorOnTheRight(T,E){return this.cursorInTheEdge(!1,T,E)}setCursorAfter(T){return this.setCursorNearWith(T,!1)}setCursorBefore(T){return this.setCursorNearWith(T,!0)}setCursorNearWith(T,E){var O,A;if(this.errorNode(T),!y.J.up(T,R=>R===this.area||R&&R.parentNode===this.area,this.area))throw(0,C.error)("Node element must be in editor");const M=this.createRange();let j=null;return y.J.isText(T)?E?M.setStart(T,0):M.setEnd(T,(A=(O=T.nodeValue)===null||O===void 0?void 0:O.length)!==null&&A!==void 0?A:0):(j=this.j.createInside.fake(),E?M.setStartBefore(T):M.setEndAfter(T),M.collapse(E),y.J.safeInsertNode(M,j),M.selectNode(j)),M.collapse(E),this.selectRange(M),j}setCursorIn(T,E=!1){if(this.errorNode(T),!y.J.up(T,R=>R===this.area||R&&R.parentNode===this.area,this.area))throw(0,C.error)("Node element must be in editor");const O=this.createRange();let A=T,M=T;do{if(y.J.isText(A)||y.J.isTag(A,v.INSEPARABLE_TAGS))break;M=A,A=E?A.firstChild:A.lastChild}while(A);if(!A){const R=this.j.createInside.text(v.INVISIBLE_SPACE);y.J.isTag(M,v.INSEPARABLE_TAGS)?A=M:(M.appendChild(R),M=R)}const j=A||M;return y.J.isTag(j,v.INSEPARABLE_TAGS)?(E||y.J.isTag(j,"br")?O.setStartBefore(j):O.setEndAfter(j),O.collapse(E)):(O.selectNodeContents(j),O.collapse(E)),this.selectRange(O),M}selectRange(T,E=!0){const O=this.sel;return E&&!this.isFocused()&&this.focus(),O&&(O.removeAllRanges(),O.addRange(T)),this.j.e.fire("changeSelection"),this}select(T,E=!1){if(this.errorNode(T),!y.J.up(T,A=>A===this.area||A&&A.parentNode===this.area,this.area))throw(0,C.error)("Node element must be in editor");const O=this.createRange();return O[E?"selectNodeContents":"selectNode"](T),this.selectRange(O)}get html(){const T=this.sel;if(T&&T.rangeCount>0){const E=T.getRangeAt(0).cloneContents(),O=this.j.createInside.div();return O.appendChild(E),O.innerHTML}return""}*wrapInTagGen(T){if(this.isCollapsed()){const O=this.jodit.createInside.element("font",v.INVISIBLE_SPACE);return this.insertNode(O,!1,!1),T&&T[0]&&O.appendChild(T[0]),yield O,void y.J.unwrap(O)}(0,C.$$)("*[style*=font-size]",this.area).forEach(O=>{(0,C.attr)(O,"data-font-size",O.style.fontSize.toString()),O.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,C.$$)("*[data-font-size]",this.area).forEach(O=>{const A=(0,C.attr)(O,"data-font-size");A&&(O.style.fontSize=A,(0,C.attr)(O,"data-font-size",null))});const E=(0,C.$$)('font[size="7"]',this.area);for(const O of E){const{firstChild:A,lastChild:M}=O;A&&A===M&&(0,w.rg)(A)||(A&&(0,w.rg)(A)&&y.J.before(O,A),M&&(0,w.rg)(M)&&y.J.after(O,M),yield O),y.J.unwrap(O)}}wrapInTag(T){const E=[];for(const O of this.wrapInTagGen())try{if(O.firstChild&&O.firstChild===O.lastChild&&(0,w.rg)(O.firstChild))continue;(0,w.Tn)(T)?T(O):E.push(y.J.replace(O,T,this.j.createInside))}finally{const A=O.parentNode;A&&(y.J.unwrap(O),y.J.isEmpty(A)&&y.J.unwrap(A))}return E}commitStyle(T){new _.xk(T).apply(this.j)}splitSelection(T,E){if(!this.isCollapsed())return null;const O=this.createRange(),A=this.range;O.setStartBefore(T);const M=this.cursorOnTheRight(T,E),j=this.cursorOnTheLeft(T,E),R=this.j.createInside.element("br"),D=this.j.createInside.fake(),$=D.cloneNode();try{if(M||j){E?y.J.before(E,R):y.J.safeInsertNode(A,R);const W=(Q,Z)=>{let K=Z(Q);for(;K;){const ee=Z(K);if(!K||!y.J.isTag(K,"br")&&!y.J.isEmptyTextNode(K))break;y.J.safeRemove(K),K=ee}};W(R,Q=>Q.nextSibling),W(R,Q=>Q.previousSibling),y.J.after(R,$),y.J.before(R,D),M?(O.setEndBefore(R),A.setEndBefore(R)):(O.setEndAfter(R),A.setEndAfter(R))}else O.setEnd(A.startContainer,A.startOffset);const B=O.extractContents(),H=W=>y.J.each(W,Q=>y.J.isEmptyTextNode(Q)&&y.J.safeRemove(Q));try{if(H(B),H(T),T.parentNode.insertBefore(B,T),!E&&M&&(R==null?void 0:R.parentNode)){const W=this.createRange();W.setStartBefore(R),this.selectRange(W)}}catch(W){if(!v.IS_PROD)throw W}const G=W=>{var Q,Z,K;((Q=W==null?void 0:W.parentNode)===null||Q===void 0?void 0:Q.firstChild)===((Z=W==null?void 0:W.parentNode)===null||Z===void 0?void 0:Z.lastChild)&&((K=W==null?void 0:W.parentNode)===null||K===void 0||K.appendChild(R.cloneNode()))};G(D),G($)}finally{y.J.safeRemove(D),y.J.safeRemove($)}return T.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:T}=this,E=T.cloneRange();if(!y.J.isOrContains(this.j.editor,T.commonAncestorContainer,!0))return this;const O=D=>{const $=this.j.createInside.fake(),B=T.cloneRange();return B.collapse(D),y.J.safeInsertNode(B,$),(0,x.G)($,D,this.j.editor),$},A=O(!0),M=O(!1);E.setStartAfter(A),E.setEndBefore(M);const j=y.J.findSibling(A,!1),R=y.J.findSibling(M,!0);if(j!==R){const D=y.J.isElement(j)&&y.J.isOrContains(j,M),$=!D&&y.J.isElement(R)&&y.J.isOrContains(R,A);if(D||$){let B=D?j:R,H=B;for(;y.J.isElement(B);)B=D?B.firstElementChild:B.lastElementChild,B&&y.J.isOrContains(B,D?M:A)&&(H=B);D?E.setStart(H,0):E.setEnd(H,H.childNodes.length)}}if(this.selectRange(E),y.J.safeRemove(A,M),this.isCollapsed())throw(0,C.error)("Selection is collapsed");return this}}(0,p.Cg)([b.autobind],S.prototype,"createRange",null),(0,p.Cg)([b.autobind],S.prototype,"focus",null),(0,p.Cg)([b.autobind],S.prototype,"setCursorAfter",null),(0,p.Cg)([b.autobind],S.prototype,"setCursorBefore",null),(0,p.Cg)([b.autobind],S.prototype,"setCursorIn",null)},20384:function(f,m,c){c.d(m,{y:function(){return C}});var p=c(55186),v=c(71274),b=c(59101),y=c(84976);function C(x,_,S){const I=S.s.createRange(),T=(0,v.r)(_.previousSibling)?_.previousSibling:_;I.setStartBefore(x),I.setEndBefore(T),w(x,I,!0);const E=(0,v.r)(_.nextSibling)?_.nextSibling:_;I.setStartAfter(E),I.setEndAfter(x),w(x,I,!1)}function w(x,_,S){const I=_.extractContents();I.textContent&&(0,b.Bq)(I.textContent).length||!I.firstChild||p.J.unwrap(I.firstChild),x.parentNode&&(0,y.T1)(S?p.J.before:p.J.after,x,I)}},10466:function(f,m,c){c.d(m,{E:function(){return p}}),c(17352),c(28712);class p{setState(b){this.__previewsStates.add(b),this.__state=b}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(b,y){this.transitions=y,this.silent=!0,this.__previewsStates=new Set,this.setState(b)}dispatch(b,y){const C=this.transitions[this.getState()][b];if(C){const w=C.call(this,y);return this.setState(w.next),w}throw new Error(`invalid action: ${this.getState()}.${b.toString()}`)}}},75220:function(f,m,c){c.d(m,{G:function(){return y}});var p=c(55186),v=c(38046),b=c(95274);function y(C,w){let{firstChild:x}=w;for(;x&&!(0,v._)(x);)if(x=x.nextSibling,!x)return null;return x&&!p.J.next(x,v._,w)&&(0,b.sz)(C,x,!1)?x:null}},52052:function(f,m,c){c.d(m,{A:function(){return y}});var p=c(55186),v=c(38046),b=c(95274);function y(C,w,x){const{parentNode:_}=w;return _===x||!p.J.isHTMLElement(_)||p.J.next(w,v._,_)||p.J.prev(w,v._,_)?null:C.isElementCommit&&C.elementIsBlock&&!p.J.isBlock(_)?y(C,_,x):!(0,b.sz)(C,_,!1)||p.J.isBlock(_)&&!C.elementIsBlock?C.isElementCommit&&!p.J.isBlock(_)?y(C,_,x):null:_}},70592:function(f,m,c){c.d(m,{Y:function(){return w},g:function(){return C}});var p=c(55186),v=c(35642),b=c(59678),y=(c(28712),c(38322));function C(x,_){return!!(!p.J.isTag(x,"font")&&p.J.isHTMLElement(x)&&Object.keys(_).every(S=>{const I=(0,y.A)(x,S,!0);return I===""&&(_[S]===""||_[S]==null)||!(0,v.R)(I)&&I!==""&&!(0,v.R)(_[S])&&(0,b.iy)(S,_[S]).toString().toLowerCase()===I.toString().toLowerCase()}))}function w(x,_){return!!(!p.J.isTag(x,"font")&&p.J.isHTMLElement(x)&&Object.keys(_).every(S=>(0,y.A)(x,S,!0)!==""))}document.createElement("div").style.color="red",document.createElement("div").style.color="red"},97621:function(f,m,c){c.d(m,{$s:function(){return x.$s},AS:function(){return y.A},Dd:function(){return w.D},EF:function(){return v.E},G6:function(){return b.G},LV:function(){return T.L},M6:function(){return w.M},Yx:function(){return S.Y},iu:function(){return C.i},ks:function(){return _.k},tm:function(){return I.t},yP:function(){return p.y}});var p=c(20384),v=c(10466),b=c(75220),y=c(52052),C=(c(70592),c(78777)),w=(c(38046),c(13676)),x=c(95274),_=c(90325),S=(c(61001),c(38271)),I=c(86500),T=c(3101);c(80394)},78777:function(f,m,c){c.d(m,{i:function(){return v}});var p=c(55186);function v(b,y){return!!p.J.closest(b,["style","script"],y)}},38046:function(f,m,c){c.d(m,{_:function(){return b}});var p=c(55186),v=c(71274);function b(y){return!!(y&&!p.J.isEmptyTextNode(y)&&!p.J.isTemporary(y)&&!(0,v.r)(y))}},13676:function(f,m,c){c.d(m,{D:function(){return C},M:function(){return y}});var p=c(95350),v=c(97369),b=(c(28712),c(70592));function y(w,x){return!w.attributes.length&&!(0,p.E)(x)||!(0,p.E)(x)||Object.keys(x).every(_=>_==="class"||_==="className"?w.classList.contains(x[_]):_==="style"?(0,b.g)(w,x[_]):(0,v.attr)(w,_)===x[_])}function C(w,x){return w.attributes.length===x.attributes.length&&Array.from(w.attributes).every(_=>x.hasAttribute(_.name)&&x.getAttribute(_.name)===_.value)}},95274:function(f,m,c){c.d(m,{$s:function(){return C},Wv:function(){return w},sz:function(){return y}});var p=c(55186),v=c(70592),b=c(38046);function y(x,_,S,I=!0){var T;if(!_||!(0,b._)(_))return!1;const{element:E,elementIsDefault:O,options:A}=x;if(p.J.isList(_)&&x.elementIsList)return!0;const M=p.J.isTag(_,E);return!(!M||O&&S)||!(!(!((T=A.attributes)===null||T===void 0)&&T.style&&(I?(0,v.g)(_,A.attributes.style):(0,v.Y)(_,A.attributes.style)))||x.elementIsList)||!M&&!S&&O&&p.J.isInlineBlock(_)}function C(x,_,S){return p.J.closest(_,I=>y(x,I,!0,!1),S)}function w(x,_){var S,I;const{element:T,options:E}=x;if(!_||!(0,b._)(_))return!1;const O=_.nodeName.toLowerCase()===T,A=!!(!((S=E.attributes)===null||S===void 0)&&S.style&&(0,v.Y)(_,(I=E.attributes)===null||I===void 0?void 0:I.style));return O&&A}},90325:function(f,m,c){c.d(m,{k:function(){return w}});var p=c(55186),v=(c(28712),c(20384)),b=c(38271),y=c(8757),C=c(61001);function w(_,S,I,T){if(!S)return T;const E=S.parentElement;if(!E)return T;const O=I.e.fire(`${y.ar}BeforeToggleList`,T,_,E);if(O!==void 0)return O;const A=I.e.fire.bind(I.e,`${y.ar}AfterToggleList`);if(T!==y.OJ){const j=(0,b.Y)(_,S.parentElement,I,y.DI,!0)===y.PL;if(T===y.dj||j||E.tagName.toLowerCase()!==_.element){const R=x(y.dj,E,S,I,_),D=(0,C.z)(_,R,I);return A(y.dj,D,_),y.dj}}const M=x(y.OJ,E,S,I,_);return A(y.OJ,M,_),y.OJ}function x(_,S,I,T,E){return T.e.fire(`${y.ar}BeforeUnwrapList`,_,S,E)||((0,v.y)(S,I,T),p.J.unwrap(I.parentElement),p.J.replace(I,T.o.enter,T.createInside))}},61001:function(f,m,c){c.d(m,{z:function(){return y}});var p=c(71842),v=c(97621),b=c(8757);function y(C,w,x){const _=x.e.fire(`${b.ar}BeforeWrapList`,b.dj,w,C),S=_!=null?_:p.J.replace(w,"li",x.createInside),I=S.previousElementSibling,T=S.nextElementSibling;let E=p.J.isTag(I,C.element)?I:null;return E!=null||(E=p.J.isTag(T,C.element)?T:null),p.J.isList(E)&&(0,v.M6)(E,C.options.attributes)||(E=x.createInside.element(C.element),(0,v.Yx)(C,E,x,b.DI),p.J.before(S,E)),I===E?p.J.append(E,S):p.J.prepend(E,S),p.J.isTag(E.nextElementSibling,C.element)&&(0,v.Dd)(E,E.nextElementSibling)&&(p.J.append(E,Array.from(E.nextElementSibling.childNodes)),p.J.safeRemove(E.nextElementSibling)),x.e.fire(`${b.ar}AfterWrapList`,b.Zk,E,C),E}},38271:function(f,m,c){c.d(m,{Y:function(){return T}});var p=c(55186),v=c(56298),b=(c(9823),c(59678)),y=c(95350),C=c(449),w=c(97369),x=c(38322),_=c(72197),S=c(8757);const I="toggleAttributes";function T(O,A,M,j,R=!1){if(!R&&O.isApplied(A,I))return j;!R&&O.setApplied(A,I);const{attributes:D}=O.options;return D&&(0,y.E)(D)>0&&Object.keys(D).forEach($=>{const B=D[$];switch($){case"style":j=function(H,G,W,Q,Z,K){return Object.keys(W).forEach(ee=>{const oe=Q.style.getPropertyValue((0,C.k)(ee)),se=W[ee];if(oe!==""||se!=null){if(function(ce,pe,ue){const be=ce.create.element(pe.tagName.toLowerCase());be.style.cssText=pe.style.cssText,function(me){var fe;if((0,_.m)(me,"shadowRoot")!==void 0)return(0,_.m)(me,"shadowRoot");const ke=(0,v.My)(me),Ce=document.createElement("iframe");(0,x.A)(Ce,{width:0,height:0,position:"absolute",border:0}),Ce.src="about:blank",ke.appendChild(Ce);const we=(fe=Ce.contentWindow)===null||fe===void 0?void 0:fe.document,ge=we?we.body:me.od.body;return(0,_.m)(me,"shadowRoot",ge),ge}(ce).appendChild(be);const ye=(0,x.A)(be,ue);return p.J.safeRemove(be),ye}(G,Q,ee)===(0,b.iy)(ee,se))return oe?(!Z&&(0,x.A)(Q,ee,null),void(K=E(H,Q,K=S.Ag))):void 0;K=S.PL,Z||((0,x.A)(Q,ee,se),K=E(H,Q,K))}}),K}(O,M,B,A,R,j);break;case"className":case"class":j=function(H,G,W,Q,Z){const K=H.e.fire.bind(H.e,`${S.ar}AfterToggleAttribute`);return W.classList.contains(G.toString())?(Q=S.Ag,Z||(W.classList.remove(G),W.classList.length===0&&((0,w.attr)(W,"class",null),K(Q,W,"class",null)))):(Q=S.PL,Z||(W.classList.add(G),K(Q,W,"class",G))),Q}(M,B,A,j,R);break;default:j=function(H,G,W,Q,Z,K){const ee=H.e.fire.bind(H.e,`${S.ar}AfterToggleAttribute`);return(0,w.attr)(W,Q)===G?(!Z&&(0,w.attr)(W,Q,null),K=S.Ag,!Z&&ee(K,W,Q,G),K):(K=S.PL,Z||((0,w.attr)(W,Q,G),ee(K,W,Q,G)),K)}(M,B,A,$,R,j)}}),j}function E(O,A,M){return(0,w.attr)(A,"style")||((0,w.attr)(A,"style",null),A.tagName.toLowerCase()===O.defaultTag&&(p.J.unwrap(A),M=S.OJ)),M}},86500:function(f,m,c){c.d(m,{t:function(){return C}});var p=c(55186),v=c(97369),b=c(70592),y=c(95274);function C(w,x){var _;const S=[],I=[];let T;const E=(_=w.options.attributes)===null||_===void 0?void 0:_.style;if(x.firstChild){const O=p.J.eachGen(x);let A=O.next();for(;!A.done;){const M=A.value;!(0,y.sz)(w,M,!0)||E&&!(0,b.Y)(M,E)?E&&(0,y.Wv)(w,M)?(T===void 0&&(T=!1),I.push(()=>{(0,v.css)(M,Object.keys(E).reduce((j,R)=>(j[R]=null,j),{})),(0,v.attr)(M,"style")||(0,v.attr)(M,"style",null),(0,v.attr)(M,"style")||M.nodeName.toLowerCase()!==w.element||S.push(M)})):p.J.isEmptyTextNode(M)||T===void 0&&(T=!1):(T===void 0&&(T=!0),S.push(M)),A=O.next()}}return I.forEach(O=>O()),S.forEach(p.J.unwrap),!!T}},80394:function(f,m,c){c.d(m,{Y:function(){return b}});var p=c(55186),v=c(71274);function b(y,C,w){const x=w.editor,_=w.createInside,S=(M,j="previousSibling")=>{let R=M,D=M;for(;D&&!(0,v.r)(D)&&!p.J.isTag(D,w.o.enter)&&(R=D,D=D[j]?D[j]:D.parentNode&&!p.J.isBlock(D.parentNode)&&D.parentNode!==x?D.parentNode:null,!p.J.isBlock(D)););return R},I=S(C),T=S(C,"nextSibling"),E=w.s.createRange();E.setStartBefore(I),E.setEndAfter(T);const O=E.extractContents(),A=_.element(y.element);return A.appendChild(O),p.J.safeInsertNode(E,A),y.elementIsBlock&&p.J.isEmpty(A)&&!p.J.isTag(A.firstElementChild,"br")&&A.appendChild(_.element("br")),A}},3101:function(f,m,c){c.d(m,{L:function(){return C}});var p=c(71842),v=c(26150),b=c(61001),y=c(80394);function C(x,_,S){const I=function(T,E,O){return T.elementIsBlock?p.J.up(E,A=>p.J.isBlock(A)&&!p.J.isTag(A,w),O.editor)||(0,y.Y)(T,E,O):((0,v.C)(E,"size",null),E)}(x,_,S);return x.elementIsList?(0,b.z)(x,I,S):p.J.replace(I,x.element,S.createInside,!0)}const w=new Set(["td","th","tr","tbody","table","li","ul","ol"])},10494:function(f,m,c){c.d(m,{O:function(){return y}});var p=c(97621),v=c(8757),b=c(37649);function y(C,w){var x;const{s:_,editor:S}=C;(x=S.firstChild)===null||x===void 0||x.normalize();const I=_.fakes(),T=C.s.wrapInTagGen(I);let E=T.next();if(E.done)return;let O={collapsed:_.isCollapsed(),mode:v.DI,element:E.value,next:b.x.START,jodit:C,style:w};for(;E&&!E.done;){const A=new p.EF(b.x.START,b.g);for(O.element=E.value;A.getState()!==b.x.END;)O=A.dispatch("exec",O);E=T.next()}_.restoreFakes(I)}},8757:function(f,m,c){c.d(m,{Ag:function(){return x},DI:function(){return _},OJ:function(){return C},PL:function(){return w},Zk:function(){return y},ar:function(){return I},dj:function(){return S},xk:function(){return T}});var p=c(17352),v=c(83260),b=c(10494);const y="wrap",C="unwrap",w="change",x="unset",_="initial",S="replace",I="commitStyle";class T{isApplied(O,A){const M=this.__applyMap.get(O);return!!M&&M[A]}setApplied(O,A){var M;const j=(M=this.__applyMap.get(O))!==null&&M!==void 0?M:{};j[A]=!0,this.__applyMap.set(O,j)}get elementIsList(){return!!(this.options.element&&p.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&p.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}constructor(O){this.options=O,this.__applyMap=new WeakMap}apply(O){const{hooks:A}=this.options;try{A&&Object.keys(A).forEach(M=>{O.e.on((0,v.x)(I+"_"+M),A[M])}),(0,b.O)(O,this)}finally{A&&Object.keys(A).forEach(M=>{O.e.off((0,v.x)(I+"_"+M),A[M])}),this.__applyMap=new WeakMap}O.synchronizeValues(),O.e.fire("afterCommitStyle",this)}}},37649:function(f,m,c){c.d(m,{g:function(){return w},x:function(){return C}});var p=c(17352),v=c(55186),b=(c(28712),c(87332)),y=c(97621);const C={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},w={[C.START]:{exec(x){const{element:_,jodit:S,style:I,mode:T,collapsed:E}=x;if((0,y.iu)(_,S.editor)||!E&&v.J.isEmptyContent(_))return Xe(he({},x),{next:C.END});const O=(0,y.AS)(I,_,S.editor)||(0,y.G6)(I,_);if(O)return Xe(he({},x),{next:C.ELEMENT,element:O});const A=(0,y.$s)(I,_,S.editor);return I.elementIsList&&v.J.isList(A)?Xe(he({},x),{next:C.LIST}):A?Xe(he({},x),{next:C.EXTRACT}):Xe(he({},x),{next:T!==b.OJ?C.UNWRAP_CHILDREN:C.END})}},[C.LIST]:{exec(x){const{element:_,jodit:S,mode:I}=x;if(I!==b.DI&&I!==b.OJ&&I!==b.dj)return Xe(he({},x),{next:C.END});const T=v.J.closest(_,"li",S.editor);return T&&v.J.closest(_,p.LIST_TAGS,S.editor)?Xe(he({},x),{element:T,next:C.TOGGLE_LIST}):Xe(he({},x),{next:C.END})}},[C.TOGGLE_LIST]:{exec:x=>Xe(he({},x),{mode:(0,y.ks)(x.style,x.element,x.jodit,x.mode),next:C.END})},[C.EXTRACT]:{exec(x){const{element:_,jodit:S,style:I}=x,T=(0,y.$s)(I,_,S.editor);return I.elementIsBlock||(0,y.yP)(T,_,S),Xe(he({},x),{element:T,next:C.ELEMENT})}},[C.UNWRAP_CHILDREN]:{exec(x){const{element:_,style:S}=x;return(0,y.tm)(S,_)?Xe(he({},x),{mode:b.OJ,next:C.END}):Xe(he({},x),{next:C.WRAP})}},[C.WRAP]:{exec(x){const{element:_,jodit:S,style:I}=x,T=(0,y.LV)(I,_,S);return Xe(he({},x),{next:I.elementIsList?C.END:C.CHANGE,mode:b.Zk,element:T})}},[C.ELEMENT]:{exec(x){const{style:_,element:S,jodit:I}=x;return(0,y.Yx)(_,S,I,b.DI,!0)!==b.DI?Xe(he({},x),{next:C.CHANGE}):v.J.isTag(S,_.element)?Xe(he({},x),{next:C.UNWRAP}):Xe(he({},x),{next:C.END})}},[C.CHANGE]:{exec(x){const{style:_,element:S,jodit:I,mode:T}=x,E=(0,y.Yx)(_,S,I,x.mode);return T!==b.Zk&&E===b.Ag&&!S.attributes.length&&v.J.isTag(S,_.element)?Xe(he({},x),{next:C.UNWRAP}):Xe(he({},x),{mode:E,next:C.END})}},[C.UNWRAP]:{exec:x=>x.element.attributes.length&&v.J.isTag(x.element,x.style.element)?Xe(he({},x),{next:C.REPLACE_DEFAULT}):(v.J.unwrap(x.element),Xe(he({},x),{mode:b.OJ,next:C.END}))},[C.REPLACE_DEFAULT]:{exec:x=>(v.J.replace(x.element,x.style.defaultTag,x.jodit.createInside,!0),Xe(he({},x),{mode:b.dj,next:C.END}))},[C.END]:{exec:x=>x}}},17800:function(f,m,c){c.d(m,{I:function(){return p},O:function(){return v}});const p=(()=>{let b;return()=>(b===void 0&&(b=(()=>{const y="___Jodit___"+Math.random().toString();try{localStorage.setItem(y,"1");const C=localStorage.getItem(y)==="1";return localStorage.removeItem(y),C}catch(C){}return!1})()),b)})();class v{set(y,C){try{const w=localStorage.getItem(this.rootKey),x=w?JSON.parse(w):{};x[y]=C,localStorage.setItem(this.rootKey,JSON.stringify(x))}catch(w){}return this}delete(y){try{localStorage.removeItem(this.rootKey)}catch(C){}return this}get(y){try{const C=localStorage.getItem(this.rootKey),w=C?JSON.parse(C):{};return w[y]!==void 0?w[y]:null}catch(C){}}exists(y){return this.get(y)!=null}constructor(y){this.rootKey=y}clear(){try{localStorage.removeItem(this.rootKey)}catch(y){}return this}}},2788:function(f,m,c){c.d(m,{M:function(){return p}});class p{constructor(){this.data=new Map}set(b,y){return this.data.set(b,y),this}delete(b){return this.data.delete(b),this}get(b){return this.data.get(b)}exists(b){return this.data.has(b)}clear(){return this.data.clear(),this}}},63915:function(f,m,c){c.d(m,{wc:function(){return p.w}}),c(17800);var p=c(24834)},24834:function(f,m,c){c.d(m,{w:function(){return C}});var p=c(83260),v=c(17800),b=c(2788);const y="Jodit_";class C{set(x,_){return this.provider.set((0,p.x)(this.prefix+x),_),this}delete(x){return this.provider.delete((0,p.x)(this.prefix+x)),this}get(x){return this.provider.get((0,p.x)(this.prefix+x))}exists(x){return this.provider.exists((0,p.x)(this.prefix+x))}clear(){return this.provider.clear(),this}constructor(x,_){this.provider=x,this.prefix=y,_&&(this.prefix+=_)}static makeStorage(x=!1,_){let S;return x&&(0,v.I)()&&(S=new v.O(y+_)),S||(S=new b.M),new C(S,_)}}},58597:function(f,m,c){c.d(m,{z:function(){return y}});var p=c(9823),v=c(84976),b=c(34256);class y{dlg(x){const _=new b.lG(he({language:this.o.language,shadowRoot:this.o.shadowRoot,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,theme:this.o.theme,globalFullSize:this.o.globalFullSize},x));return(0,v.b_)(this,_.container),_.parent=this,_.bindDestruct(this)}confirm(x,_,S){return x=C(x,this),_=C(_,this),b.pT.call(this.dlg({closeOnClickOverlay:!0}),x,_,S)}prompt(x,_,S,I,T){return x=C(x,this),_=C(_,this),I=C(I,this),b.XG.call(this.dlg({closeOnClickOverlay:!0}),x,_,S,I,T)}alert(x,_,S,I){return x=C(x,this),_=C(_,this),b.Fc.call(this.dlg({closeOnClickOverlay:!0}),x,_,S,I)}}function C(w,x){return(0,p.Kg)(w)&&!(0,p.AH)(w)&&(w=x.i18n(w)),w}},87906:function(f,m,c){c.d(m,{O:function(){return v}});var p=c(42448);class v{getElm(y){return this.container.querySelector(`.${this.getFullElName(y)}`)}getElms(y){return(0,p.$)(this.container.querySelectorAll(`.${this.getFullElName(y)}`))}}},75758:function(f,m,c){c.d(m,{K:function(){return v}});var p=c(35642);class v{afterSetMod(y,C){}setMod(y,C,w){y=y.toLowerCase();const x=this.mods[y];if(x===C)return this;const _=`${this.componentName}_${y}_`,S=(w||this.container).classList;return x!=null&&S.remove(`${_}${x.toString().toLowerCase()}`),!(0,p.R)(C)&&C!==""&&S.add(`${_}${C.toString().toLowerCase()}`),this.mods[y]=C,this.afterSetMod(y,C),this}getMod(y){var C;return(C=this.mods[y])!==null&&C!==void 0?C:null}}},92032:function(f,m,c){c.d(m,{$n:function(){return O},lD:function(){return E},ue:function(){return T}});var p=c(31635),v=c(64567),b=c(22664),y=c(55186),C=c(69052),w=c(98253),x=c(97369),_=c(29780),S=c(94070),I=c(931);const T=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let E=class extends _.D{className(){return"UIButton"}setState(A){return Object.assign(this.state,A),this}get text(){return this.getElm("text")}get icon(){return this.getElm("icon")}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,x.attr)(this.container,"type",this.state.type)}updateSize(){const A=this.closest(S.z);A&&(this.state.size=A.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,x.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,x.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,x.attr)(this.container,"data-ref",this.state.name),(0,x.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,x.attr)(this.container,"title",this.state.tooltip),(0,x.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,x.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const A=this.get("j.o.textIcons");if(A===!0||(0,C.T)(A)&&A(this.state.name))return;y.J.detach(this.icon);const M=I.I.makeIcon(this.j,this.state.icon);M&&this.icon.appendChild(M)}focus(){this.container.focus()}isFocused(){const{activeElement:A}=this.od;return!!(A&&y.J.isOrContains(this.container,A))}createContainer(){const A=this.componentName,M=this.j.c.element("button",{class:A,type:"button",role:"button",ariaPressed:!1}),j=this.j.c.span(A+"__icon"),R=this.j.c.span(A+"__text");return M.appendChild(j),M.appendChild(R),M}constructor(A,M){super(A),this.isButton=!0,this.state=T(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),M&&this.hookStatus(v.f.ready,()=>{this.setState(M)})}destruct(){return this.j.e.off(this.container),super.destruct()}onAction(A){return this.actionHandlers.push(A),this}__onActionFire(A){A.buffer={actionTrigger:this},this.actionHandlers.forEach(M=>M.call(this,A))}};function O(A,M,j,R){const D=new E(A);return D.state.tabIndex=A.o.allowTabNavigation?0:-1,(0,w.K)(M)?(D.state.icon.name=M,D.state.name=M,R&&(D.state.variant=R),j&&(D.state.text=j)):D.setState(M),D}(0,p.Cg)([b.cache],E.prototype,"text",null),(0,p.Cg)([b.cache],E.prototype,"icon",null),(0,p.Cg)([(0,b.watch)("state.size",{immediately:!1})],E.prototype,"onChangeSize",null),(0,p.Cg)([(0,b.watch)("state.type",{immediately:!1})],E.prototype,"onChangeType",null),(0,p.Cg)([(0,b.watch)("parentElement")],E.prototype,"updateSize",null),(0,p.Cg)([(0,b.watch)("state.variant",{immediately:!1})],E.prototype,"onChangeStatus",null),(0,p.Cg)([(0,b.watch)("state.text",{immediately:!1})],E.prototype,"onChangeText",null),(0,p.Cg)([(0,b.watch)("state.text",{immediately:!1})],E.prototype,"onChangeTextSetMode",null),(0,p.Cg)([(0,b.watch)("state.disabled")],E.prototype,"onChangeDisabled",null),(0,p.Cg)([(0,b.watch)("state.activated")],E.prototype,"onChangeActivated",null),(0,p.Cg)([(0,b.watch)("state.name",{immediately:!1})],E.prototype,"onChangeName",null),(0,p.Cg)([(0,b.watch)("state.tooltip",{immediately:!1})],E.prototype,"onChangeTooltip",null),(0,p.Cg)([(0,b.watch)("state.tabIndex",{immediately:!1})],E.prototype,"onChangeTabIndex",null),(0,p.Cg)([(0,b.watch)("state.icon",{immediately:!1})],E.prototype,"onChangeIcon",null),(0,p.Cg)([b.cacheHTML],E.prototype,"createContainer",null),(0,p.Cg)([(0,b.watch)("button:click")],E.prototype,"__onActionFire",null),E=(0,p.Cg)([b.component],E)},31202:function(f,m,c){c.d(m,{s:function(){return C}});var p=c(31635),v=c(24767),b=(c(28712),c(92032)),y=c(6455);let C=class extends y.U{className(){return"UIButtonGroup"}render(w){return`<div>
3174
3174
  <div class="&__label">~${w.label}~</div>
package/dist/main.js CHANGED
@@ -117138,7 +117138,7 @@ const B3e = 5 * 1024 * 1024, Bdr = B3e / 1048576, Opr = (e) => {
117138
117138
  header: "Conclusion",
117139
117139
  cell: (ue, Ae) => L.jsx(L.Fragment, { children: (Ae == null ? void 0 : Ae.STATUS) === 1 && ue === 2 ? L.jsx(A2, { type: "error", text: "Send Termination Mail to HR", onClick: () => {
117140
117140
  } }) : (Ae == null ? void 0 : Ae.STATUS) === 1 && (Ae == null ? void 0 : Ae.IS_EXTEND) === 1 ? L.jsx(A2, { type: "warning", text: "PIP Extended", onClick: () => {
117141
- } }) : (Ae == null ? void 0 : Ae.STATUS) !== 1 && ue ? L.jsx(A2, { type: ue === 2 ? "error" : "success", text: ue === 2 ? "Employee Terminated" : "Employee Retained", onClick: () => {
117141
+ } }) : (Ae == null ? void 0 : Ae.STATUS) === 2 ? L.jsx(A2, { type: ue === 2 ? "error" : "success", text: ue === 2 ? "Employee Terminated" : "Employee Retained", onClick: () => {
117142
117142
  } }) : "-" })
117143
117143
  },
117144
117144
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/engage",
3
3
  "private": false,
4
- "version": "0.2.5-pms",
4
+ "version": "0.2.6-pms",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },