@zimyo/engage 0.2.1-pms → 0.2.2-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
@@ -3171,7 +3171,7 @@ attempted value: ${a}
3171
3171
  `:o(i.children):i.type===e.CDATA?o(i.children):i.type===e.Text?i.data:""}return jF}var gg={},Vde;function osr(){if(Vde)return gg;Vde=1;var e=gg.getChildren=function(n){return n.children},t=gg.getParent=function(n){return n.parent};return gg.getSiblings=function(n){var r=t(n);return r?e(r):[n]},gg.getAttributeValue=function(n,r){return n.attribs&&n.attribs[r]},gg.hasAttrib=function(n,r){return!!n.attribs&&hasOwnProperty.call(n.attribs,r)},gg.getName=function(n){return n.name},gg}var U0={},Hde;function isr(){return Hde||(Hde=1,U0.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)}},U0.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}},U0.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}},U0.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)},U0.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}),U0}var MF,Wde;function asr(){if(Wde)return MF;Wde=1;var e=kk.isTag;MF={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 m=[],p,v=0,c=l.length;v<c&&!(s(l[v])&&(m.push(l[v]),--d<=0)||(p=l[v].children,u&&p&&p.length>0&&(p=n(s,p,u,d),m=m.concat(p),d-=p.length,d<=0)));v++);return m}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,m=l.length;d<m&&!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 m=d.shift();e(m)&&(m.children&&m.children.length>0&&d.unshift.apply(d,m.children),s(m)&&u.push(m))}return u}return MF}var vg={},Gde;function ssr(){if(Gde)return vg;Gde=1;var e=kk,t=vg.isTag=e.isTag;vg.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 vg.getElements=function(i,a,s,l){var u=Object.keys(i).map(function(d){var m=i[d];return d in n?n[d](m):r(d,m)});return u.length===0?[]:this.filter(u.reduce(o),a,s,l)},vg.getElementById=function(i,a,s){return Array.isArray(a)||(a=[a]),this.findOne(r("id",i),a,s!==!1)},vg.getElementsByTagName=function(i,a,s,l){return this.filter(n.tag_name(i),a,s,l)},vg.getElementsByTagType=function(i,a,s,l){return this.filter(n.tag_type(i),a,s,l)},vg}var WS={},qde;function lsr(){if(qde)return WS;qde=1,WS.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=WS.compareDocumentPosition=function(n,r){var o=[],i=[],a,s,l,u,d,m;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(m=0;o[m]===i[m];)m++;return m===0?e.DISCONNECTED:(s=o[m-1],l=s.children,u=o[m],d=i[m],l.indexOf(u)>l.indexOf(d)?s===r?e.FOLLOWING|e.CONTAINED_BY:e.FOLLOWING:s===n?e.PRECEDING|e.CONTAINS:e.PRECEDING)};return WS.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},WS}var Yde;function aIe(){return Yde||(Yde=1,function(e){var t=e.exports;[rsr(),osr(),isr(),asr(),ssr(),lsr()].forEach(function(n){Object.keys(n).forEach(function(r){t[r]=n[r].bind(t)})})}(kF)),kF.exports}var RF,Ude;function csr(){if(Ude)return RF;Ude=1;var e=rIe,t=aIe();function n(l,u){this.init(l,u)}CD(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,m,p){var v=i(d,m,p);v&&(l[u]=v)}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,m;u&&(u.name==="feed"?(m=u.children,l.type="atom",a(l,"id","id",m),a(l,"title","title",m),(d=o("link",m))&&(d=d.attribs)&&(d=d.href)&&(l.link=d),a(l,"description","subtitle",m),(d=i("updated",m))&&(l.updated=new Date(d)),a(l,"author","email",m,!0),l.items=r("entry",m).map(function(p){var v={},c;return p=p.children,a(v,"id","id",p),a(v,"title","title",p),(c=o("link",p))&&(c=c.attribs)&&(c=c.href)&&(v.link=c),(c=i("summary",p)||i("content",p))&&(v.description=c),(c=i("updated",p))&&(v.pubDate=new Date(c)),v})):(m=o("channel",u.children).children,l.type=u.name.substr(0,3),l.id="",a(l,"title","title",m),a(l,"link","link",m),a(l,"description","description",m),(d=i("lastBuildDate",m))&&(l.updated=new Date(d)),a(l,"author","managingEditor",m,!0),l.items=r("item",u.children).map(function(p){var v={},c;return p=p.children,a(v,"id","guid",p),a(v,"title","title",p),a(v,"link","link",p),a(v,"description","description",p),(c=i("pubDate",p))&&(v.pubDate=new Date(c)),v}))),this.dom=l,e.prototype._handleCallback.call(this,u?null:Error("couldn't find root of feed"))},RF=n,RF}var PF={},jA={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Xde;function usr(){return Xde||(Xde=1,function(e,t){var n=t9,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)}}(jA,jA.exports)),jA.exports}var Zde;function dsr(){if(Zde)return PF;Zde=1;var e=usr().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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(x){if(!x)return"utf8";for(var b;;)switch(x){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 x;default:if(b)return;x=(""+x).toLowerCase(),b=!0}}function r(x){var b=n(x);if(typeof b!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return b||x}PF.StringDecoder=o;function o(x){this.encoding=r(x);var b;switch(this.encoding){case"utf16le":this.text=m,this.end=p,b=4;break;case"utf8":this.fillLast=l,b=4;break;case"base64":this.text=v,this.end=c,b=3;break;default:this.write=f,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(b)}o.prototype.write=function(x){if(x.length===0)return"";var b,C;if(this.lastNeed){if(b=this.fillLast(x),b===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<x.length?b?b+this.text(x,C):this.text(x,C):b||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,b,C){var w=b.length-1;if(w<C)return 0;var y=i(b[w]);return y>=0?(y>0&&(x.lastNeed=y-1),y):--w<C||y===-2?0:(y=i(b[w]),y>=0?(y>0&&(x.lastNeed=y-2),y):--w<C||y===-2?0:(y=i(b[w]),y>=0?(y>0&&(y===2?y=0:x.lastNeed=y-3),y):0))}function s(x,b,C){if((b[0]&192)!==128)return x.lastNeed=0,"�";if(x.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return x.lastNeed=1,"�";if(x.lastNeed>2&&b.length>2&&(b[2]&192)!==128)return x.lastNeed=2,"�"}}function l(x){var b=this.lastTotal-this.lastNeed,C=s(this,x);if(C!==void 0)return C;if(this.lastNeed<=x.length)return x.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,b,0,x.length),this.lastNeed-=x.length}function u(x,b){var C=a(this,x,b);if(!this.lastNeed)return x.toString("utf8",b);this.lastTotal=C;var w=x.length-(C-this.lastNeed);return x.copy(this.lastChar,0,w),x.toString("utf8",b,w)}function d(x){var b=x&&x.length?this.write(x):"";return this.lastNeed?b+"�":b}function m(x,b){if((x.length-b)%2===0){var C=x.toString("utf16le",b);if(C){var w=C.charCodeAt(C.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",b,x.length-1)}function p(x){var b=x&&x.length?this.write(x):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,C)}return b}function v(x,b){var C=(x.length-b)%3;return C===0?x.toString("base64",b):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",b,x.length-C))}function c(x){var b=x&&x.length?this.write(x):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function f(x){return x.toString(this.encoding)}function g(x){return x&&x.length?this.write(x):""}return PF}var DF,Jde;function sIe(){if(Jde)return DF;Jde=1,DF=o;var e=Qke,t=t9.Writable,n=dsr().StringDecoder,r=t9.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 CD(o,t),o.prototype._write=function(i,a,s){i instanceof r&&(i=this._decoder.write(i)),this._parser.write(i),s()},DF}var NF,Kde;function psr(){if(Kde)return NF;Kde=1,NF=t;var e=sIe();function t(o){e.call(this,new n(this),o)}CD(t,e),t.prototype.readable=!0;function n(o){this.scope=o}var r=_D().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!")}),NF}var LF,Qde;function fsr(){if(Qde)return LF;Qde=1,LF=e;function e(n){this._cbs=n||{}}var t=_D().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")}),LF}var FF,epe;function hsr(){if(epe)return FF;epe=1,FF=e;function e(n){this._cbs=n||{},this.events=[]}var t=_D().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])}},FF}var tpe;function _D(){return tpe||(tpe=1,function(e){var t=Qke,n=rIe;function r(o,i){return delete e.exports[o],e.exports[o]=i,i}e.exports={Parser:t,Tokenizer:hke,ElementType:kk,DomHandler:n,get FeedHandler(){return r("FeedHandler",csr())},get Stream(){return r("Stream",psr())},get WritableStream(){return r("WritableStream",sIe())},get ProxyHandler(){return r("ProxyHandler",fsr())},get DomUtils(){return r("DomUtils",aIe())},get CollectingHandler(){return r("CollectingHandler",hsr())},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}}}(EF)),EF.exports}var Lh=_D();const msr=ql(Lh);function gsr(e){return e.type==="text"&&/\r?\n/.test(e.data)&&e.data.trim()===""}function vsr(e){return e.data}const bsr=["allowfullScreen","async","autoplay","capture","checked","controls","default","defer","disabled","formnovalidate","hidden","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","scoped","seamless","selected","itemscope"],ysr={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"},xsr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,$F={};function lIe(e){return $F.hasOwnProperty(e)||($F[e]=xsr.test(e)),$F[e]}const wsr=function(e,t){return bsr.map(r=>r.toLowerCase()).indexOf(e.toLowerCase())>=0&&(t=e),t};function Csr(e){return Object.keys(e).filter(t=>lIe(t)).reduce((t,n)=>{const r=n.toLowerCase(),o=ysr[r]||r;return t[o]=wsr(o,e[n]),t},{})}function _sr(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 cIe(e,t){const n=Object.assign({},Csr(e),{key:t});return typeof n.style=="string"||n.style instanceof String?n.style=_sr(n.style):delete n.style,n}const Ssr=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function Esr(e,t,n){const r=e.name;if(!lIe(r))return null;const o=cIe(e.attribs,t);let i=null;return Ssr.indexOf(r)===-1&&(i=uIe(e.children,n)),q.createElement(r,o,i)}function Tsr(e,t){let n;e.children.length>0&&(n=e.children[0].data);const r=cIe(e.attribs,t);return q.createElement("style",r,n)}function GS(){return null}const ksr={[Lh.ElementType.Text]:vsr,[Lh.ElementType.Tag]:Esr,[Lh.ElementType.Style]:Tsr,[Lh.ElementType.Directive]:GS,[Lh.ElementType.Comment]:GS,[Lh.ElementType.Script]:GS,[Lh.ElementType.CDATA]:GS,[Lh.ElementType.Doctype]:GS};function Isr(e,t,n){return ksr[e.type](e,t,n)}function uIe(e,t){return e.filter(n=>!gsr(n)).map((n,r)=>{let o;return typeof t=="function"&&(o=t(n,r),o===null||o)?o:Isr(n,r,t)})}function Osr(e,{decodeEntities:t=!0,transform:n,preprocessNodes:r=o=>o}={}){const o=r(msr.parseDOM(e,{decodeEntities:t}));return uIe(o,n)}var cZ={},Asr=Xo;Object.defineProperty(cZ,"__esModule",{value:!0});var dIe=cZ.default=void 0,jsr=Asr(mi()),Msr=L;dIe=cZ.default=(0,jsr.default)((0,Msr.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 A2=H.createContext({});process.env.NODE_ENV!=="production"&&(A2.displayName="TimelineContext");function Rsr(e){return rn("MuiTimeline",e)}en("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Qv(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${Ot(e)}`}const Psr=["position","className"],Dsr=e=>{const{position:t,classes:n}=e,r={root:["root",t&&Qv(t)]};return nn(r,Rsr,n)},Nsr=tt("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[Qv(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),pIe=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimeline"}),{position:o="right",className:i}=r,a=ht(r,Psr),s=te({},r,{position:o}),l=Dsr(s),u=H.useMemo(()=>({position:o}),[o]);return L.jsx(A2.Provider,{value:u,children:L.jsx(Nsr,te({className:Et(l.root,i),ownerState:s,ref:n},a))})});process.env.NODE_ENV!=="production"&&(pIe.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 Lsr(e){return rn("MuiTimelineConnector",e)}en("MuiTimelineConnector",["root"]);const Fsr=["className"],$sr=e=>{const{classes:t}=e;return nn({root:["root"]},Lsr,t)},Bsr=tt("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),fIe=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimelineConnector"}),{className:o}=r,i=ht(r,Fsr),a=r,s=$sr(a);return L.jsx(Bsr,te({className:Et(s.root,o),ownerState:a,ref:n},i))});process.env.NODE_ENV!=="production"&&(fIe.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 zsr(e){return rn("MuiTimelineContent",e)}const Vsr=en("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Hsr=["className"],Wsr=e=>{const{position:t,classes:n}=e,r={root:["root",Qv(t)]};return nn(r,zsr,n)},Gsr=tt(cr,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[Qv(n.position)]]}})(({ownerState:e})=>te({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),hIe=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimelineContent"}),{className:o}=r,i=ht(r,Hsr),{position:a}=H.useContext(A2),s=te({},r,{position:a||"right"}),l=Wsr(s);return L.jsx(Gsr,te({component:"div",className:Et(l.root,o),ownerState:s,ref:n},i))});process.env.NODE_ENV!=="production"&&(hIe.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 qsr(e){return rn("MuiTimelineDot",e)}en("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const Ysr=["className","color","variant"],Usr=e=>{const{color:t,variant:n,classes:r}=e,o={root:["root",n,t!=="inherit"&&`${n}${Ot(t)}`]};return nn(o,qsr,r)},Xsr=tt("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.color!=="inherit"&&`${n.variant}${Ot(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>te({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"&&te({borderColor:"transparent"},e.color!=="inherit"&&te({},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"&&te({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&te({},e.color==="grey"?{borderColor:(t.vars||t).palette.grey[400]}:{borderColor:(t.vars||t).palette[e.color].main})))),mIe=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimelineDot"}),{className:o,color:i="grey",variant:a="filled"}=r,s=ht(r,Ysr),l=te({},r,{color:i,variant:a}),u=Usr(l);return L.jsx(Xsr,te({className:Et(u.root,o),ownerState:l,ref:n},s))});process.env.NODE_ENV!=="production"&&(mIe.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 Zsr(e){return rn("MuiTimelineOppositeContent",e)}const Jsr=en("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Ksr=["className"],Qsr=e=>{const{position:t,classes:n}=e,r={root:["root",Qv(t)]};return nn(r,Zsr,n)},elr=tt(cr,{name:"MuiTimelineOppositeContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[Qv(n.position)]]}})(({ownerState:e})=>te({padding:"6px 16px",marginRight:"auto",textAlign:"right",flex:1},e.position==="left"&&{textAlign:"left"})),uZ=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimelineOppositeContent"}),{className:o}=r,i=ht(r,Ksr),{position:a}=H.useContext(A2),s=te({},r,{position:a||"left"}),l=Qsr(s);return L.jsx(elr,te({component:"div",className:Et(l.root,o),ownerState:s,ref:n},i))});process.env.NODE_ENV!=="production"&&(uZ.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])});uZ.muiName="TimelineOppositeContent";function tlr(e){return rn("MuiTimelineItem",e)}en("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const nlr=["position","className"],rlr=e=>{const{position:t,classes:n,hasOppositeContent:r}=e,o={root:["root",Qv(t),!r&&"missingOppositeContent"]};return nn(o,tlr,n)},olr=tt("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[Qv(n.position)]]}})(({ownerState:e})=>te({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",[`& .${Vsr.root}`]:{textAlign:"right"},[`& .${Jsr.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}})),gIe=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimelineItem"}),{position:o,className:i}=r,a=ht(r,nlr),{position:s}=H.useContext(A2);let l=!1;H.Children.forEach(r.children,p=>{Rb(p,["TimelineOppositeContent"])&&(l=!0)});const u=te({},r,{position:o||s||"right",hasOppositeContent:l}),d=rlr(u),m=H.useMemo(()=>({position:u.position}),[u.position]);return L.jsx(A2.Provider,{value:m,children:L.jsx(olr,te({className:Et(d.root,i),ownerState:u,ref:n},a))})});process.env.NODE_ENV!=="production"&&(gIe.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 ilr(e){return rn("MuiTimelineSeparator",e)}en("MuiTimelineSeparator",["root"]);const alr=["className"],slr=e=>{const{classes:t}=e;return nn({root:["root"]},ilr,t)},llr=tt("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),vIe=H.forwardRef(function(t,n){const r=tn({props:t,name:"MuiTimelineSeparator"}),{className:o}=r,i=ht(r,alr),a=r,s=slr(a);return L.jsx(llr,te({className:Et(s.root,o),ownerState:a,ref:n},i))});process.env.NODE_ENV!=="production"&&(vIe.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 clr=tt(R9)(()=>"width: 100%; font-weight: 400; line-height: 1.5; padding: 12px; color: #000; background:#fff; border:none; outline:none; resize: none; font-family: inherit;}"),bIe=e=>{var ue,me,Ee,we,ie,le,oe,Ce,pe,Te,Re,ke,Le,He,Ae,ye,Be,Xe,Oe,We,$e,Ve,et,pt,Ze,nt,xt,Bt,Yt,ut,Xt,on;const{pipId:t}=e,{session:{ASSETS_BASE_URL:n,ADMIN_BASE_URL:r}}=Ta(),o=es(qe=>qe.pushAlert),{MAP_PIP_COMPLETE_STATUS:i,VIEW_DETAILS_SUB_TAB:a,REASON_TO_INITIATE_PIP:s}=zd("en"),l=nl(),{pipId:u}=sX();let d=u||t;const{setImageURL:m,ImageViewer:p}=GP(),{setPdfURL:v,PdfViewer:c}=SU(),[f,g]=q.useState(!1),[x,b]=q.useState(null),[C,w]=q.useState(1),[y,_]=q.useState(""),[S,I]=q.useState(!1),[E,T]=q.useState([]),[O,A]=q.useState([]),[j,M]=q.useState(!1),[R,D]=q.useState(!1),[$,B]=q.useState(!1),{data:V,isFetching:G}=Va(ps,{url:`${r}${zn.PIP.GET_EMPLOYEE_PIP_DETAIL}`,params:{ID:d},isNativeEndpoint:!1},"PIPDetails",{enabled:!!d,cacheTime:1*60*60*1e3,staleTime:1*60*60*1e3}),W=(V==null?void 0:V.data)||[],Q=(qe,$t)=>{var Wn;if(Number(qe)===1)return L.jsxs("div",{children:["PIP Extended Till:"," ",Ut((Wn=$t==null?void 0:$t[0])==null?void 0:Wn.END_DATE).format("DD-MMM-YYYY")]})},Z=()=>{B(!0);const qe=new FormData;[...O,...E].forEach(Wn=>{qe.append(Wn.name,Wn)}),qe.append("ID",d!=null?d:""),qe.append("MESSAGE",y),J({isNativeEndpoint:!1,url:`${r}${zn.PIP.FETCH_PIP_FEEDBACK}`,data:qe})},{mutate:J,isLoading:ee}=Vi(za,"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),_(""),T([]),A([])},onError:({response:qe})=>{var $t;B(!1),o({type:"error",message:(($t=qe==null?void 0:qe.data)==null?void 0:$t.message)||"Error!"})}}),re=10,ce=qe=>{const $t=qe.target.files,Wn=Array.from($t);T(Sr=>Sr.concat(Wn)),qe.target.value=""};function he(qe){T(E.filter($t=>$t!==qe)),URL.revokeObjectURL(qe)}const ve=qe=>{const $t=[...O];let Wn=!1;qe.forEach(Sr=>{if($t.findIndex(hr=>hr.name===Sr.name)===-1&&($t.push(Sr),$t.length===re&&I(!0),$t.length>re))return alert(`You can only add a maximum of ${re} files`),I(!1),Wn=!0,!0}),Wn||A($t)};function fe(qe){A(O.filter($t=>$t!==qe)),URL.revokeObjectURL(qe)}const be=qe=>{const $t=Array.prototype.slice.call(qe.target.files);ve($t)},se=qe=>{let $t=`${n}${qe==null?void 0:qe.FILE_PATH}`;["jpeg","png","jpg"].includes(qe.FILE_TYPE)?Ba.unstable_batchedUpdates(()=>{D(!0),v($t)}):Ba.unstable_batchedUpdates(()=>{M(!0),m($t)})},ge=()=>{g(!1)};return Wc(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(fW,{alt:"Remy Sharp",src:"",sx:{width:24,height:24}}),L.jsxs("span",{className:"pip__initiate__employee__name",children:[(me=(ue=W[0])==null?void 0:ue.pip_employee_details)==null?void 0:me.EMPLOYEE_NAME," ","(",(we=(Ee=W[0])==null?void 0:Ee.pip_employee_details)==null?void 0:we.EMPLOYEE_CODE,")"]})]}),L.jsx("span",{style:{color:((ie=W[0])==null?void 0:ie.STATUS)===1?"#F40000":"#5FD18D"},children:((le=W[0])==null?void 0:le.STATUS)===1?"On PIP":"PIP Completed"}),L.jsx("span",{className:"face__to__face",children:((oe=W[0])==null?void 0:oe.STATUS)===1?Q((Ce=W[0])==null?void 0:Ce.IS_EXTEND,W):i[Number((pe=W[0])==null?void 0:pe.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:[" ",(ke=(Re=(Te=s==null?void 0:s.filter(qe=>{var $t;return Number(qe==null?void 0:qe.value)===Number(($t=W[0])==null?void 0:$t.REASON)}))==null?void 0:Te[0])==null?void 0:Re.label)!=null?ke:""]})]})}),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:[(He=(Le=W[0])==null?void 0:Le.pip_initiate_by)==null?void 0:He.EMPLOYEE_NAME," ","(",(ye=(Ae=W[0])==null?void 0:Ae.pip_initiate_by)==null?void 0:ye.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:(Be=W[0])!=null&&Be.CREATED_ON?Ut((Xe=W[0])==null?void 0:Xe.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:[(We=(Oe=W[0])==null?void 0:Oe.START_DATE)!=null?We:"--"," to ",(Ve=($e=W[0])==null?void 0:$e.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:((et=W[0])==null?void 0:et.km_org_pip_intervals)&&((Ze=(pt=W[0])==null?void 0:pt.km_org_pip_intervals)==null?void 0:Ze.map(qe=>qe.REVIEW_DATE).join(", "))})]})]}),((nt=W[0])==null?void 0:nt.STATUS)!==2?L.jsx(fi,{label:"Take Action On PIP",size:"small",onClick:qe=>{b({top:qe.pageY,left:qe.pageX}),g(!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:(xt=W[0])==null?void 0:xt.IMPROVEMENT_PLAN})]}),L.jsx("div",{style:{marginTop:"2.75rem"},children:L.jsx(rme,{value:C,indicatorColor:"primary",onChange:(qe,$t)=>w($t),TabIndicatorProps:{style:{borderTopLeftRadius:100,borderTopRightRadius:100}},centered:!1,children:[{name:"Timeline",value:1}].map(qe=>L.jsx(eme,{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(Yo,{className:"pip__view__details__history",children:(Yt=(Bt=W[0])==null?void 0:Bt.km_org_pip_feedback)!=null&&Yt.length?L.jsx(pIe,{style:{padding:"0px",margin:"0px"},children:((ut=W[0])==null?void 0:ut.km_org_pip_feedback)&&((on=(Xt=W[0])==null?void 0:Xt.km_org_pip_feedback)==null?void 0:on.map(qe=>{var $t,Wn,Sr,hr;return L.jsx(L.Fragment,{children:L.jsxs(gIe,{children:[L.jsx(uZ,{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:Ut(qe==null?void 0:qe.CREATED_ON).format("DD-MMM-YYYY")}),L.jsxs("p",{className:"pip__details__history__timelinecontent__subheading",children:["At :"," ",Ut.utc(qe==null?void 0:qe.CREATED_ON).format("h:mm A")]})]})}),L.jsxs(vIe,{children:[L.jsx(mIe,{style:{backgroundColor:"#4C70FF",width:"1px"}}),L.jsx(fIe,{style:{backgroundColor:"#E8E8EA"}})]}),L.jsx(hIe,{children:L.jsxs("div",{className:"pip__details__history__timelinecontent",children:[L.jsx("div",{className:"pip__details__history__timelinecontent__heading",children:Osr(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:_r.validateDataType(qe==null?void 0:qe.PIPHistory,bu.ARRAY)&&qe.PIPHistory.length&&_r.validateDataType(($t=qe==null?void 0:qe.PIPHistory[0])==null?void 0:$t.HISTORY,bu.OBJECT)&&((Wn=qe==null?void 0:qe.PIPHistory)==null?void 0:Wn.map(vn=>{var Qr,Nn,eo;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:Ut((Qr=W[0])==null?void 0:Qr.START_DATE).format("DD-MMM-YYYY")}),L.jsx(fke,{}),L.jsx("span",{style:{background:"rgba(76, 112, 255, 0.1)",padding:"5px",marginLeft:"7px"},children:Ut((eo=(Nn=vn==null?void 0:vn.HISTORY)==null?void 0:Nn.END_DATE)==null?void 0:eo.NEW_VALUE).format("DD-MMM-YYYY")})]})})}))}),L.jsx("div",{className:"images__structure",children:(qe==null?void 0:qe.FeedBackFile)&&((Sr=qe==null?void 0:qe.FeedBackFile)==null?void 0:Sr.map(vn=>L.jsx(L.Fragment,{children:(vn==null?void 0:vn.FILE_TYPE)==="pdf"||(vn==null?void 0:vn.FILE_TYPE)==="xls"?L.jsxs(vt,{className:"pdfView__preview",children:[L.jsx(vt,{style:{marginRight:"10px"},children:L.jsx("p",{children:(vn==null?void 0:vn.FILE_TYPE)==="pdf"?L.jsx(HT,{size:22,color:"red"}):L.jsx(YP,{style:{width:"30px"}})})}),L.jsxs(vt,{children:[L.jsx("p",{children:L.jsx(im,{data:vn==null?void 0:vn.FILE_NAME,limit:20})}),L.jsx("div",{className:"previeww__color",onClick:()=>{se(vn)},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(vn=>L.jsx(L.Fragment,{children:(vn==null?void 0:vn.FILE_TYPE)==="png"||(vn==null?void 0:vn.FILE_TYPE)==="jpeg"||(vn==null?void 0:vn.FILE_TYPE)==="webp"||(vn==null?void 0:vn.FILE_TYPE)==="jpg"?L.jsx("div",{children:L.jsx("img",{style:{cursor:"zoom-in"},onClick:()=>{se(vn)},alt:"",src:`${n}${vn==null?void 0:vn.FILE_PATH}`,width:200})}):null})))})]})})]})})}))}):L.jsx(q.Fragment,{children:L.jsx(vt,{className:"card-content-container",style:{paddingTop:"60px"},children:L.jsx(Gh,{message:"No Records Found"})})})})})]}),L.jsxs("div",{className:"bottom_text_pad",children:[L.jsxs("div",{className:"editor__remarks",children:[L.jsx(clr,{placeholder:"Type your review feedback",onChange:qe=>{_(qe.target.value)},value:y}),L.jsx(vt,{className:"main__upload__box",children:E&&E.map(qe=>L.jsxs(vt,{className:"all__upload__images",children:[L.jsx("img",{src:URL.createObjectURL(qe),height:"200",alt:"upload"}),L.jsx("button",{onClick:()=>he(qe),children:L.jsx(iv,{style:{width:"20px",height:"20px"}})})]},qe))}),L.jsx(vt,{className:"main__upload__box",children:O.map(qe=>L.jsxs(vt,{className:"pdfView__preview",children:[L.jsxs(vt,{style:{marginRight:"10px"},children:[L.jsx("p",{children:L.jsx(HT,{style:{width:"30px",height:"30px"}})})," "]}),L.jsx(vt,{children:L.jsx("p",{children:L.jsx(im,{data:qe==null?void 0:qe.name,limit:20})})}),L.jsx("button",{onClick:()=>fe(qe),children:L.jsx(iv,{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:ce,multiple:!0,accept:"image/png , image/jpeg, image/jpg, image/webp"}),L.jsx("span",{children:L.jsx(dIe,{})})]}),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(DU,{})})]})]})})]}),L.jsx("div",{className:"pip__view__details__footer",children:L.jsx(HP,{variant:"contained",size:"small",color:"primary",label:"Send",disabled:!y&&!O.length&&!E.length||$,onClick:Z})}),L.jsx(pke,{isPopoverOpen:f,anchorPosition:x,pipActionModalClose:ge})]}),j?L.jsx(c,{}):R&&L.jsx(p,{})]})};var dZ={},ulr=Xo;Object.defineProperty(dZ,"__esModule",{value:!0});var yIe=dZ.default=void 0,dlr=ulr(mi()),plr=L;yIe=dZ.default=(0,dlr.default)((0,plr.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 mC(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(m){a(m)}}function l(d){try{u(r.throw(d))}catch(m){a(m)}}function u(d){d.done?i(d.value):o(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function gC(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 flr(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 hlr(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(flr(arguments[t]));return e}var mlr=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 Ik(e,t){var n=glr(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 glr(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=mlr.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var vlr=[".DS_Store","Thumbs.db"];function blr(e){return mC(this,void 0,void 0,function(){return gC(this,function(t){return n9(e)&&ylr(e)?[2,_lr(e.dataTransfer,e.type)]:xlr(e)?[2,wlr(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Clr(e)]:[2,[]]})})}function ylr(e){return n9(e.dataTransfer)}function xlr(e){return n9(e)&&n9(e.target)}function n9(e){return typeof e=="object"&&e!==null}function wlr(e){return gH(e.target.files).map(function(t){return Ik(t)})}function Clr(e){return mC(this,void 0,void 0,function(){var t;return gC(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 Ik(r)})]}})})}function _lr(e,t){return mC(this,void 0,void 0,function(){var n,r;return gC(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=gH(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Slr))]):[3,2];case 1:return r=o.sent(),[2,npe(xIe(r))];case 2:return[2,npe(gH(e.files).map(function(i){return Ik(i)}))]}})})}function npe(e){return e.filter(function(t){return vlr.indexOf(t.name)===-1})}function gH(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Slr(e){if(typeof e.webkitGetAsEntry!="function")return rpe(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?wIe(t):rpe(e)}function xIe(e){return e.reduce(function(t,n){return hlr(t,Array.isArray(n)?xIe(n):[n])},[])}function rpe(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Ik(t);return Promise.resolve(n)}function Elr(e){return mC(this,void 0,void 0,function(){return gC(this,function(t){return[2,e.isDirectory?wIe(e):Tlr(e)]})})}function wIe(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var a=this;t.readEntries(function(s){return mC(a,void 0,void 0,function(){var l,u,d;return gC(this,function(m){switch(m.label){case 0:if(s.length)return[3,5];m.label=1;case 1:return m.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=m.sent(),n(l),[3,4];case 3:return u=m.sent(),r(u),[3,4];case 4:return[3,6];case 5:d=Promise.all(s.map(Elr)),o.push(d),i(),m.label=6;case 6:return[2]}})})},function(s){r(s)})}i()})}function Tlr(e){return mC(this,void 0,void 0,function(){return gC(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=Ik(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var klr=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 ope(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 ipe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ope(Object(n),!0).forEach(function(r){CIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ope(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CIe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ape(e,t){return jlr(e)||Alr(e,t)||Olr(e,t)||Ilr()}function Ilr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3172
3172
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Olr(e,t){if(e){if(typeof e=="string")return spe(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 spe(e,t)}}function spe(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 Alr(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 jlr(e){if(Array.isArray(e))return e}var Mlr="file-invalid-type",Rlr="file-too-large",Plr="file-too-small",Dlr="too-many-files",Nlr=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:Mlr,message:"File type must be ".concat(n)}},lpe=function(t){return{code:Rlr,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},cpe=function(t){return{code:Plr,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Llr={code:Dlr,message:"Too many files"};function _Ie(e,t){var n=e.type==="application/x-moz-file"||klr(e,t);return[n,n?null:Nlr(t)]}function SIe(e,t,n){if(qS(e.size))if(qS(t)&&qS(n)){if(e.size>n)return[!1,lpe(n)];if(e.size<t)return[!1,cpe(t)]}else{if(qS(t)&&e.size<t)return[!1,cpe(t)];if(qS(n)&&e.size>n)return[!1,lpe(n)]}return[!0,null]}function qS(e){return e!=null}function Flr(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=_Ie(s,n),u=ape(l,1),d=u[0],m=SIe(s,r,o),p=ape(m,1),v=p[0];return d&&v})}function r9(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble!="undefined"?e.cancelBubble:!1}function MA(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 upe(e){e.preventDefault()}function $lr(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Blr(e){return e.indexOf("Edge/")!==-1}function zlr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return $lr(e)||Blr(e)}function yf(){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!r9(r)&&s&&s.apply(void 0,[r].concat(i)),r9(r)})}}function dpe(){return"showOpenFilePicker"in window}function Vlr(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 ipe(ipe({},t),{},CIe({},n,[]))},{}):{}}]}var Hlr=["children"],Wlr=["open"],Glr=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],qlr=["refKey","onChange","onClick"];function Ylr(e){return Zlr(e)||Xlr(e)||EIe(e)||Ulr()}function Ulr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3173
3173
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xlr(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zlr(e){if(Array.isArray(e))return vH(e)}function BF(e,t){return Qlr(e)||Klr(e,t)||EIe(e,t)||Jlr()}function Jlr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3174
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EIe(e,t){if(e){if(typeof e=="string")return vH(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 vH(e,t)}}function vH(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 Klr(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 Qlr(e){if(Array.isArray(e))return e}function ppe(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 sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ppe(Object(n),!0).forEach(function(r){bH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ppe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o9(e,t){if(e==null)return{};var n=ecr(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 ecr(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 pZ=q.forwardRef(function(e,t){var n=e.children,r=o9(e,Hlr),o=kIe(r),i=o.open,a=o9(o,Wlr);return q.useImperativeHandle(t,function(){return{open:i}},[i]),q.createElement(q.Fragment,null,n(sa(sa({},a),{},{open:i})))});pZ.displayName="Dropzone";var TIe={disabled:!1,getFilesFromEvent:blr,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};pZ.defaultProps=TIe;pZ.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 yH={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function kIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=sa(sa({},TIe),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,m=t.onDragOver,p=t.onDrop,v=t.onDropAccepted,c=t.onDropRejected,f=t.onFileDialogCancel,g=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.preventDropOnDocument,C=t.noClick,w=t.noKeyboard,y=t.noDrag,_=t.noDragEventsBubbling,S=t.validator,I=q.useMemo(function(){return typeof g=="function"?g:fpe},[g]),E=q.useMemo(function(){return typeof f=="function"?f:fpe},[f]),T=q.useRef(null),O=q.useRef(null),A=q.useReducer(tcr,yH),j=BF(A,2),M=j[0],R=j[1],D=M.isFocused,$=M.isFileDialogActive,B=M.draggedFiles,V=function(){$&&setTimeout(function(){if(O.current){var Te=O.current.files;Te.length||(R({type:"closeDialog"}),E())}},300)};q.useEffect(function(){return x&&dpe()?function(){}:(window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)})},[O,$,E,x]);var G=q.useRef([]),W=function(Te){T.current&&T.current.contains(Te.target)||(Te.preventDefault(),G.current=[])};q.useEffect(function(){return b&&(document.addEventListener("dragover",upe,!1),document.addEventListener("drop",W,!1)),function(){b&&(document.removeEventListener("dragover",upe),document.removeEventListener("drop",W))}},[T,b]);var Q=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe),G.current=[].concat(Ylr(G.current),[pe.target]),MA(pe)&&Promise.resolve(o(pe)).then(function(Te){r9(pe)&&!_||(R({draggedFiles:Te,isDragActive:!0,type:"setDraggedFiles"}),u&&u(pe))})},[o,u,_]),Z=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe);var Te=MA(pe);if(Te&&pe.dataTransfer)try{pe.dataTransfer.dropEffect="copy"}catch(Re){}return Te&&m&&m(pe),!1},[m,_]),J=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe);var Te=G.current.filter(function(ke){return T.current&&T.current.contains(ke)}),Re=Te.indexOf(pe.target);Re!==-1&&Te.splice(Re,1),G.current=Te,!(Te.length>0)&&(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),MA(pe)&&d&&d(pe))},[T,d,_]),ee=q.useCallback(function(pe,Te){var Re=[],ke=[];pe.forEach(function(Le){var He=_Ie(Le,n),Ae=BF(He,2),ye=Ae[0],Be=Ae[1],Xe=SIe(Le,a,i),Oe=BF(Xe,2),We=Oe[0],$e=Oe[1],Ve=S?S(Le):null;if(ye&&We&&!Ve)Re.push(Le);else{var et=[Be,$e];Ve&&(et=et.concat(Ve)),ke.push({file:Le,errors:et.filter(function(pt){return pt})})}}),(!s&&Re.length>1||s&&l>=1&&Re.length>l)&&(Re.forEach(function(Le){ke.push({file:Le,errors:[Llr]})}),Re.splice(0)),R({acceptedFiles:Re,fileRejections:ke,type:"setFiles"}),p&&p(Re,ke,Te),ke.length>0&&c&&c(ke,Te),Re.length>0&&v&&v(Re,Te)},[R,s,n,a,i,l,p,v,c,S]),re=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe),G.current=[],MA(pe)&&Promise.resolve(o(pe)).then(function(Te){r9(pe)&&!_||ee(Te,pe)}),R({type:"reset"})},[o,ee,_]),ce=q.useCallback(function(){if(x&&dpe()){R({type:"openDialog"}),I();var pe={multiple:s,types:Vlr(n)};window.showOpenFilePicker(pe).then(function(Te){return o(Te)}).then(function(Te){return ee(Te,null)}).catch(function(Te){return E(Te)}).finally(function(){return R({type:"closeDialog"})});return}O.current&&(R({type:"openDialog"}),I(),O.current.value=null,O.current.click())},[R,I,E,x,ee,n,s]),he=q.useCallback(function(pe){!T.current||!T.current.isEqualNode(pe.target)||(pe.keyCode===32||pe.keyCode===13)&&(pe.preventDefault(),ce())},[T,O,ce]),ve=q.useCallback(function(){R({type:"focus"})},[]),fe=q.useCallback(function(){R({type:"blur"})},[]),be=q.useCallback(function(){C||(zlr()?setTimeout(ce,0):ce())},[O,C,ce]),se=function(Te){return r?null:Te},ge=function(Te){return w?null:se(Te)},ue=function(Te){return y?null:se(Te)},me=function(Te){_&&Te.stopPropagation()},Ee=q.useMemo(function(){return function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Te=pe.refKey,Re=Te===void 0?"ref":Te,ke=pe.role,Le=pe.onKeyDown,He=pe.onFocus,Ae=pe.onBlur,ye=pe.onClick,Be=pe.onDragEnter,Xe=pe.onDragOver,Oe=pe.onDragLeave,We=pe.onDrop,$e=o9(pe,Glr);return sa(sa(bH({onKeyDown:ge(yf(Le,he)),onFocus:ge(yf(He,ve)),onBlur:ge(yf(Ae,fe)),onClick:se(yf(ye,be)),onDragEnter:ue(yf(Be,Q)),onDragOver:ue(yf(Xe,Z)),onDragLeave:ue(yf(Oe,J)),onDrop:ue(yf(We,re)),role:typeof ke=="string"&&ke!==""?ke:"button"},Re,T),!r&&!w?{tabIndex:0}:{}),$e)}},[T,he,ve,fe,be,Q,Z,J,re,w,y,r]),we=q.useCallback(function(pe){pe.stopPropagation()},[]),ie=q.useMemo(function(){return function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Te=pe.refKey,Re=Te===void 0?"ref":Te,ke=pe.onChange,Le=pe.onClick,He=o9(pe,qlr),Ae=bH({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:se(yf(ke,re)),onClick:se(yf(Le,we)),autoComplete:"off",tabIndex:-1},Re,O);return sa(sa({},Ae),He)}},[O,n,s,re,r]),le=B.length,oe=le>0&&Flr({files:B,accept:n,minSize:a,maxSize:i,multiple:s,maxFiles:l}),Ce=le>0&&!oe;return sa(sa({},M),{},{isDragAccept:oe,isDragReject:Ce,isFocused:D&&!r,getRootProps:Ee,getInputProps:ie,rootRef:T,inputRef:O,open:se(ce)})}function tcr(e,t){switch(t.type){case"focus":return sa(sa({},e),{},{isFocused:!0});case"blur":return sa(sa({},e),{},{isFocused:!1});case"openDialog":return sa(sa({},yH),{},{isFileDialogActive:!0});case"closeDialog":return sa(sa({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return sa(sa({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return sa(sa({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return sa({},yH);default:return e}}function fpe(){}function ncr(e){return Wu({tag:"svg",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 rcr(e){return Wu({tag:"svg",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 fZ={},ocr=Xo;Object.defineProperty(fZ,"__esModule",{value:!0});var IIe=fZ.default=void 0,icr=ocr(mi()),acr=L;IIe=fZ.default=(0,icr.default)((0,acr.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zm-8 2V5h2v6h1.17L12 13.17 9.83 11zm-6 7h14v2H5z"}),"DownloadOutlined");function scr(e){return Wu({tag:"svg",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 OIe=5*1024*1024,lcr=OIe/1048576,ccr=e=>{var ie,le;const{employee_id:t,CONCERN:n}=e,{session:{user:r,ADMIN_BASE_URL:o,token:i}}=Ta(),a=nl(),s=es(oe=>oe.pushAlert),{MONTH_FILTERS_OPTIONS:l,PIP_STATUS_OPTIONS:u}=zd("en"),[{monthFilter:d,status:m},p]=q.useState({monthFilter:l[1],status:u[0]}),[v,c]=q.useState({}),[f,g]=q.useState(!1),[x,b]=q.useState(!1),[C,w]=q.useState(null),[y,_]=q.useState(!1),[S,I]=q.useState(""),[E,T]=q.useState({page:0,perPage:10}),[O,A]=q.useState(!1),[j,M]=q.useState(null),[R,D]=q.useState(!1),[$,B]=q.useState(!1),{data:V,isFetching:G}=Va(ps,{url:`${o}${zn.PIP.GET_LIST}`,isNativeEndpoint:!1,params:Ke(xe({search:S,monthFilter:d==null?void 0:d.value,status:m==null?void 0:m.value,page:E.page,perPage:E.perPage},t&&{employee_id:t,EMPLOYEE_ID:t}),{concern:n!=null?n:Ox.SELF})},"fetchPipList"),{mutate:W,isLoading:Q}=Vi(za,"mutateEmployeeAckowledgement",{onSuccess:({data:oe})=>{s({type:"success",message:(oe==null?void 0:oe.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:oe})=>{var Ce;s({type:"error",message:((Ce=oe==null?void 0:oe.data)==null?void 0:Ce.message)||"Error!"})}}),{mutate:Z,isLoading:J}=Vi(za,"mutateBulkUploadEmployeeToPip",{onSuccess:({data:oe})=>{A(!1),M(null),s({type:"success",message:(oe==null?void 0:oe.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:oe})=>{var Ce;s({type:"error",message:((Ce=oe==null?void 0:oe.data)==null?void 0:Ce.message)||"Error!"})}}),ee=oe=>{c(oe),g(!0)},re=oe=>{b(!0),w({top:oe.pageY,left:oe.pageX})},ce=()=>{b(!1)},he=(oe,Ce)=>{T(pe=>Ke(xe({},pe),{[oe]:Ce}))},ve=()=>Pn(exports,null,function*(){var oe,Ce,pe,Te,Re,ke;try{if(j){const Le=new FormData;Le.append("file",j),Le.append("uploadPath",`${r==null?void 0:r.org_id}/travelDesk/${r==null?void 0:r.employee_id}/${j==null?void 0:j.name}`),Le.append("ContentType",(oe=j==null?void 0:j.type)!=null?oe:""),Le.append("isAws",1);const He=yield Pi.post(`${o}auth/hrms/upload/file`,Le,{headers:{"Content-Type":'Content-Type": "multipart/form-data',token:i}});(He==null?void 0:He.status)===200?Z({url:`${o}${zn.PIP.UPLOAD_PIP_EMPLOYEES}`,isNativeEndpoint:!1,data:{filePath:(pe=(Ce=He==null?void 0:He.data)==null?void 0:Ce.data)==null?void 0:pe.filePath}}):s({type:"error",message:((Re=(Te=He==null?void 0:He.data)==null?void 0:Te.data)==null?void 0:Re.nessage)||"Something Went Wrong! /n Please try again later or contact Support."})}}catch(Le){s({type:"error",message:(ke=Le==null?void 0:Le.message)!=null?ke:"Something Went Wrong ! /n Please Try Again Later or Contact Support"})}}),fe=()=>{},be=oe=>{Array.isArray(oe)&&oe.forEach(Ce=>{var pe;M(Ce),D(Ce!==null&&((pe=Object.keys(Ce))==null?void 0:pe.length)>0&&(Ce==null?void 0:Ce.size)>=OIe)})},{getRootProps:se,getInputProps:ge}=kIe({onDrop:be,accept:".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",maxFiles:1}),ue=()=>{M(null),D(!1)},me=(oe="",Ce="sample.xlsx",pe="get",Te="")=>Pn(exports,null,function*(){try{B(!0);const Re=yield Pi({method:pe,url:oe,headers:{Token:i!=null?i:"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IjJkNjE5ZjdlLWZlYTQtNDI4NC1iMDI4LTI1NTJmZTNiNjA5YiJ9.eyJjYWxsYmFja191cmwiOiIiLCJzZXJ2aWNlIjoiYWNjb3VudCIsInJlbW90ZV9hZGRyIjoiMTYyLjE1OC4yMy4xNSwgMjQwOSIsImRldmljZSI6InBvc3RtYW4iLCJkZXZpY2VfdHlwZSI6InBvc3RtYW4iLCJzYWx0IjoiMzUyZTQ0ZTgtNGEzYy00MGZiLTljYjMtY2JkNDM3NzQ0M2UzIiwiaWF0IjoxNzMxMzA2NDExfQ.3d5zJGdMjUVNlls6TU8iNJs34z6mi2JWQJIM6wQYmnQs2k_BTM1cAElGzHA9co-3BrabF4iuU3_jGtxKcFLwcg"},data:Te,responseType:"blob","content-type":"application/json",Accept:"application/json"});B(!1);const ke=Re.headers["Content-Disposition"];let Le=Ce;if(ke)try{Le=ke.split("filename=")[1]}catch(Be){B(!1),console.error({contentDisposition:ke,headers:Re.headers})}const He=new Blob([Re==null?void 0:Re.data]),Ae=window.URL.createObjectURL(He),ye=document.createElement("a");ye.href=Ae,ye.download=Le,document.body.appendChild(ye),ye.click(),document.body.removeChild(ye),window.URL.revokeObjectURL(Ae)}catch(Re){s({type:"error",message:"Error in file download,please try again or contact support"}),B(!1),console.log(Re)}}),Ee=()=>Pn(exports,null,function*(){try{me(`${o!=null?o:"https://admin.zimyo.app/apiv2/"}${zn.PIP.SAPMLE_PIP_DOWNLOAD}`,"Sample Pip List.xlsx")}catch(oe){console.log(oe)}}),we=q.useMemo(()=>[{id:"pip_employee_details.EMPLOYEE_CODE",accessorKey:"pip_employee_details",header:"Employee Code",cell:(oe,Ce)=>L.jsx("span",{style:{color:"blue",cursor:"pointer"},onClick:()=>{n!==Ox.SELF&&ee(Ce)},children:oe==null?void 0:oe.EMPLOYEE_CODE})},{id:"pip_employee_details.EMPLOYEE_NAME",accessorKey:"pip_employee_details",header:"Employee Name",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe==null?void 0:oe.EMPLOYEE_NAME})},{id:"START_DATE",accessorKey:"START_DATE",header:"Start Date",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe?Ut(oe).format("DD-MMM-YYYY"):""})},{id:"END_DATE",accessorKey:"END_DATE",header:"End Date",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe?Ut(oe).format("DD-MMM-YYYY"):""})},{id:"STATUS",accessorKey:"STATUS",header:"Status",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:L.jsx(qx,{type:oe===1?"warning":"success",text:oe===1?"On PIP":"PIP Completed",onClick:()=>{}})})},{id:"IS_ACKNOWLEDGE",accessorKey:"IS_ACKNOWLEDGE",header:"Acknowledgement Status",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:L.jsx(qx,{type:oe===1?"success":"warning",text:oe===1?"Completed":"Pending",onClick:()=>{n===Ox.SELF&&oe!==1&&W({url:`${o}${zn.PIP.AKNOWLEDGE}`,isNativeEndpoint:!1,data:{PIP_ID:Ce==null?void 0:Ce.ID}})}})})},{id:"CONCLUSION",accessorKey:"CONCLUSION",header:"Conclusion",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:(Ce==null?void 0:Ce.STATUS)===1&&oe===2?L.jsx(qx,{type:"error",text:"Send Termination Mail to HR",onClick:()=>{}}):(Ce==null?void 0:Ce.STATUS)===1&&(Ce==null?void 0:Ce.IS_EXTEND)===1?L.jsx(qx,{type:"warning",text:"PIP Extended",onClick:()=>{}}):(Ce==null?void 0:Ce.STATUS)!==1?L.jsx(qx,{type:oe===2?"error":"success",text:oe===2?"Employee Terminated":"Employee Retained",onClick:()=>{}}):"-"})},{id:"pip_initiate_by",accessorKey:"pip_initiate_by",header:"Initiated By",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe==null?void 0:oe.EMPLOYEE_NAME})},{id:"DECISION",accessorKey:"DECISION",header:"DECISION",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe==null?void 0:oe.DECISION})},{id:"ID",accessorKey:"ID",header:"Action",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:(Ce==null?void 0:Ce.STATUS)===1&&n!==Ox.SELF&&(Ce==null?void 0:Ce.CONCLUSION)!==2?L.jsx(T6t,{style:{cursor:"pointer"},onClick:pe=>{re(pe),c(Ce)}}):L.jsx(L.Fragment,{})})}],[V,r,n]);return Wc(Q||$||J),L.jsx(P6t,{value:{employeeId:v==null?void 0:v.EMPLOYEE_ID,concern:n,pipId:v==null?void 0:v.ID},children:L.jsxs(vt,{className:"overview__container__bg",style:{overflow:"hidden"},children:[L.jsxs("div",{className:"flex-between-center g-10",children:[L.jsxs(vt,{display:"flex",gap:2,flexDirection:"row",children:[!!n&&n!==Ox.SELF&&L.jsx("div",{style:{width:300},children:L.jsx(O6t,{width:"100%",placeholder:"Search by EMP Code or Name",onSearch:oe=>{I(oe)}})}),L.jsx("div",{style:{width:200},children:L.jsx($p,{value:d,options:l,placeholder:"Month",onChange:oe=>p(Ce=>Ke(xe({},Ce),{monthFilter:oe})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:oe=>Ke(xe({},oe),{zIndex:99999999999,width:"200px"}),control:oe=>Ke(xe({},oe),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})}),L.jsx("div",{style:{width:200},children:L.jsx($p,{value:m,options:u,placeholder:"Status",onChange:oe=>p(Ce=>Ke(xe({},Ce),{status:oe})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:oe=>Ke(xe({},oe),{zIndex:99999999999,width:"200px"}),control:oe=>Ke(xe({},oe),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),!!n&&n!==Ox.SELF&&L.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(fi,{label:"Initiate Performance Imporovement Plan(PIP)",onClick:()=>{_(!0)}}),L.jsx(fi,{label:"Bulk Import",onClick:()=>{A(!0)}})]})]}),L.jsx(vt,{sx:{height:"70vh",overflow:"scroll"},children:L.jsx(lk,{columns:we,data:_r.validateDataType(V==null?void 0:V.list,bu.ARRAY)?V.list:[],loading:G,pagination:{show:!0,totalDataCount:(ie=V==null?void 0:V.totalCounts)!=null?ie:0,page:E.page,perPage:E.perPage,handlePageChange:oe=>{he("page",oe)},handlePerPageChange:oe=>{he("perPage",oe)}}})}),L.jsx(ck,{open:f,handleClose:()=>{g(!1)},title:L.jsx(T4,{title:"Pip Details"}),children:L.jsx(bIe,{})}),L.jsx(pke,{isPopoverOpen:x,anchorPosition:C,pipActionModalClose:ce}),y&&L.jsx(AIe,{openInitiatePIPModal:y,setOpenInitiatePIPModal:_,modalTitle:"Initiate Pip",CONCERN:n}),O&&L.jsx($y,{size:"md",open:O,title:L.jsxs(vt,{display:"flex",flexDirection:"row",alignItems:"center",children:[L.jsx(Nd,{children:L.jsx(yIe,{color:"secondary"})}),L.jsx(cr,{sx:{lineHeight:1.5,fontWeight:600},children:"Bulk Import Employees"})]}),onModalclose:fe,children:L.jsxs(vt,{sx:{pr:1,pl:1,pt:1},children:[L.jsxs(vt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:[L.jsxs(vt,{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(vt,{className:"w-50 flex-end-center h-100",children:L.jsx(HP,{startIcon:L.jsx(IIe,{}),label:"Download Template",variant:"outlined",color:"secondary",onClick:()=>{Ee()}})})]}),L.jsxs(vt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between"},children:[L.jsxs(vt,{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(vt,{className:"importfileBox",style:{border:R?"1.2px dashed red":"1.2px dashed #4D70FF"},children:L.jsxs(vt,{sx:{display:"flex",flexDirection:"column",padding:"8px"},children:[L.jsxs(vt,Ke(xe({style:{outline:"none"}},se()),{children:[L.jsx("input",xe({},ge())),L.jsx(vt,{style:{display:"flex",alignItems:"center",width:"10%",margin:"auto",marginBottom:"0.5rem"},children:L.jsx(scr,{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"})]})]})),j&&L.jsxs(vt,{style:{display:"flex"},children:[L.jsx(rcr,{style:{fontSize:"0.875rem",color:"#23a566",marginRight:"0.5rem"}}),L.jsx(cr,{style:{fontSize:"0.75rem",textDecoration:"underline"},children:(le=j==null?void 0:j.name)!=null?le:""}),L.jsx(ncr,{onClick:ue,style:{fontSize:"0.875rem",marginLeft:"0.5rem",marginTop:"0.2rem"}})]})]})}),R&&L.jsxs(vt,{style:{display:"flex",gap:"0.625rem"},children:[L.jsx(Ekt,{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 ",lcr," MB."]})]})]}),L.jsxs(vt,{className:"mb-10 mt-10",sx:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(fi,{label:"Cancel",variant:"outlined",onClick:fe}),L.jsx(fi,{label:"Submit",onClick:ve})]})]})})]})})},AIe=e=>{const{INITIAL_PIP_FORM_VALUES:t}=zd("en"),{session:{ADMIN_BASE_URL:n}}=Ta(),{data:r,isFetching:o}=Va(ps,{url:`${n}${zn.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 Wc(o),L.jsx(dke,xe({HRAdminMailOptions:i,initialPipDetails:t,modalType:ob.CREATE},e))};var hZ={},ucr=Xo;Object.defineProperty(hZ,"__esModule",{value:!0});var jIe=hZ.default=void 0,dcr=ucr(mi()),pcr=L;jIe=hZ.default=(0,dcr.default)((0,pcr.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 fcr="_templateModal__main_1x3oq_1",hcr="_templateModal__notification_slug_1x3oq_15",mcr="_templateModal_form_1x3oq_27",gcr="_templateModal__slugTitle_1x3oq_39",YS={templateModal__main:fcr,templateModal__notification_slug:hcr,templateModal_form:mcr,templateModal__slugTitle:gcr};function vcr(e){return Wu({tag:"svg",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 MIe={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 m="",p=d[5]!==void 0;return d[4]&&(m+="@supports (".concat(d[4],") {")),d[2]&&(m+="@media ".concat(d[2]," {")),p&&(m+="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {")),m+=l(d),p&&(m+="}"),d[2]&&(m+="}"),d[4]&&(m+="}"),m}).join("")},u.i=function(d,m,p,v,c){typeof d=="string"&&(d=[[null,d,void 0]]);var f={};if(p)for(var g=0;g<this.length;g++){var x=this[g][0];x!=null&&(f[x]=!0)}for(var b=0;b<d.length;b++){var C=[].concat(d[b]);p&&f[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),m&&(C[2]&&(C[1]="@media ".concat(C[2]," {").concat(C[1],"}")),C[2]=m),v&&(C[4]?(C[1]="@supports (".concat(C[4],") {").concat(C[1],"}"),C[4]=v):C[4]="".concat(v)),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(p,v,c){function f(C){return f=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},f(C)}function g(C,w,y){var _=y.value;if(typeof _!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(f(_)));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(E){_=E,delete this[w]}}),S=!1,I},set:function(I){_=I}}}function x(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(y){if(y!=="constructor"){var _=Object.getOwnPropertyDescriptor(C.prototype,y);typeof _.value=="function"&&Object.defineProperty(C.prototype,y,g(C,y,_))}}),C}function b(){return arguments.length===1?x.apply(void 0,arguments):g.apply(void 0,arguments)}c.d(v,{Ay:function(){return b}})},36115:function(p,v,c){c.d(v,{T:function(){return g}});var f=c(17352);class g{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=f.INSERT_AS_HTML,this.enter=f.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock=this.enter!=="br"?this.enter:f.PARAGRAPH,this.defaultMode=f.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:[]},`
3174
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EIe(e,t){if(e){if(typeof e=="string")return vH(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 vH(e,t)}}function vH(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 Klr(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 Qlr(e){if(Array.isArray(e))return e}function ppe(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 sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ppe(Object(n),!0).forEach(function(r){bH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ppe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o9(e,t){if(e==null)return{};var n=ecr(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 ecr(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 pZ=q.forwardRef(function(e,t){var n=e.children,r=o9(e,Hlr),o=kIe(r),i=o.open,a=o9(o,Wlr);return q.useImperativeHandle(t,function(){return{open:i}},[i]),q.createElement(q.Fragment,null,n(sa(sa({},a),{},{open:i})))});pZ.displayName="Dropzone";var TIe={disabled:!1,getFilesFromEvent:blr,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};pZ.defaultProps=TIe;pZ.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 yH={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function kIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=sa(sa({},TIe),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,m=t.onDragOver,p=t.onDrop,v=t.onDropAccepted,c=t.onDropRejected,f=t.onFileDialogCancel,g=t.onFileDialogOpen,x=t.useFsAccessApi,b=t.preventDropOnDocument,C=t.noClick,w=t.noKeyboard,y=t.noDrag,_=t.noDragEventsBubbling,S=t.validator,I=q.useMemo(function(){return typeof g=="function"?g:fpe},[g]),E=q.useMemo(function(){return typeof f=="function"?f:fpe},[f]),T=q.useRef(null),O=q.useRef(null),A=q.useReducer(tcr,yH),j=BF(A,2),M=j[0],R=j[1],D=M.isFocused,$=M.isFileDialogActive,B=M.draggedFiles,V=function(){$&&setTimeout(function(){if(O.current){var Te=O.current.files;Te.length||(R({type:"closeDialog"}),E())}},300)};q.useEffect(function(){return x&&dpe()?function(){}:(window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)})},[O,$,E,x]);var G=q.useRef([]),W=function(Te){T.current&&T.current.contains(Te.target)||(Te.preventDefault(),G.current=[])};q.useEffect(function(){return b&&(document.addEventListener("dragover",upe,!1),document.addEventListener("drop",W,!1)),function(){b&&(document.removeEventListener("dragover",upe),document.removeEventListener("drop",W))}},[T,b]);var Q=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe),G.current=[].concat(Ylr(G.current),[pe.target]),MA(pe)&&Promise.resolve(o(pe)).then(function(Te){r9(pe)&&!_||(R({draggedFiles:Te,isDragActive:!0,type:"setDraggedFiles"}),u&&u(pe))})},[o,u,_]),Z=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe);var Te=MA(pe);if(Te&&pe.dataTransfer)try{pe.dataTransfer.dropEffect="copy"}catch(Re){}return Te&&m&&m(pe),!1},[m,_]),J=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe);var Te=G.current.filter(function(ke){return T.current&&T.current.contains(ke)}),Re=Te.indexOf(pe.target);Re!==-1&&Te.splice(Re,1),G.current=Te,!(Te.length>0)&&(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),MA(pe)&&d&&d(pe))},[T,d,_]),ee=q.useCallback(function(pe,Te){var Re=[],ke=[];pe.forEach(function(Le){var He=_Ie(Le,n),Ae=BF(He,2),ye=Ae[0],Be=Ae[1],Xe=SIe(Le,a,i),Oe=BF(Xe,2),We=Oe[0],$e=Oe[1],Ve=S?S(Le):null;if(ye&&We&&!Ve)Re.push(Le);else{var et=[Be,$e];Ve&&(et=et.concat(Ve)),ke.push({file:Le,errors:et.filter(function(pt){return pt})})}}),(!s&&Re.length>1||s&&l>=1&&Re.length>l)&&(Re.forEach(function(Le){ke.push({file:Le,errors:[Llr]})}),Re.splice(0)),R({acceptedFiles:Re,fileRejections:ke,type:"setFiles"}),p&&p(Re,ke,Te),ke.length>0&&c&&c(ke,Te),Re.length>0&&v&&v(Re,Te)},[R,s,n,a,i,l,p,v,c,S]),re=q.useCallback(function(pe){pe.preventDefault(),pe.persist(),me(pe),G.current=[],MA(pe)&&Promise.resolve(o(pe)).then(function(Te){r9(pe)&&!_||ee(Te,pe)}),R({type:"reset"})},[o,ee,_]),ce=q.useCallback(function(){if(x&&dpe()){R({type:"openDialog"}),I();var pe={multiple:s,types:Vlr(n)};window.showOpenFilePicker(pe).then(function(Te){return o(Te)}).then(function(Te){return ee(Te,null)}).catch(function(Te){return E(Te)}).finally(function(){return R({type:"closeDialog"})});return}O.current&&(R({type:"openDialog"}),I(),O.current.value=null,O.current.click())},[R,I,E,x,ee,n,s]),he=q.useCallback(function(pe){!T.current||!T.current.isEqualNode(pe.target)||(pe.keyCode===32||pe.keyCode===13)&&(pe.preventDefault(),ce())},[T,O,ce]),ve=q.useCallback(function(){R({type:"focus"})},[]),fe=q.useCallback(function(){R({type:"blur"})},[]),be=q.useCallback(function(){C||(zlr()?setTimeout(ce,0):ce())},[O,C,ce]),se=function(Te){return r?null:Te},ge=function(Te){return w?null:se(Te)},ue=function(Te){return y?null:se(Te)},me=function(Te){_&&Te.stopPropagation()},Ee=q.useMemo(function(){return function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Te=pe.refKey,Re=Te===void 0?"ref":Te,ke=pe.role,Le=pe.onKeyDown,He=pe.onFocus,Ae=pe.onBlur,ye=pe.onClick,Be=pe.onDragEnter,Xe=pe.onDragOver,Oe=pe.onDragLeave,We=pe.onDrop,$e=o9(pe,Glr);return sa(sa(bH({onKeyDown:ge(yf(Le,he)),onFocus:ge(yf(He,ve)),onBlur:ge(yf(Ae,fe)),onClick:se(yf(ye,be)),onDragEnter:ue(yf(Be,Q)),onDragOver:ue(yf(Xe,Z)),onDragLeave:ue(yf(Oe,J)),onDrop:ue(yf(We,re)),role:typeof ke=="string"&&ke!==""?ke:"button"},Re,T),!r&&!w?{tabIndex:0}:{}),$e)}},[T,he,ve,fe,be,Q,Z,J,re,w,y,r]),we=q.useCallback(function(pe){pe.stopPropagation()},[]),ie=q.useMemo(function(){return function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Te=pe.refKey,Re=Te===void 0?"ref":Te,ke=pe.onChange,Le=pe.onClick,He=o9(pe,qlr),Ae=bH({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:se(yf(ke,re)),onClick:se(yf(Le,we)),autoComplete:"off",tabIndex:-1},Re,O);return sa(sa({},Ae),He)}},[O,n,s,re,r]),le=B.length,oe=le>0&&Flr({files:B,accept:n,minSize:a,maxSize:i,multiple:s,maxFiles:l}),Ce=le>0&&!oe;return sa(sa({},M),{},{isDragAccept:oe,isDragReject:Ce,isFocused:D&&!r,getRootProps:Ee,getInputProps:ie,rootRef:T,inputRef:O,open:se(ce)})}function tcr(e,t){switch(t.type){case"focus":return sa(sa({},e),{},{isFocused:!0});case"blur":return sa(sa({},e),{},{isFocused:!1});case"openDialog":return sa(sa({},yH),{},{isFileDialogActive:!0});case"closeDialog":return sa(sa({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return sa(sa({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return sa(sa({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return sa({},yH);default:return e}}function fpe(){}function ncr(e){return Wu({tag:"svg",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 rcr(e){return Wu({tag:"svg",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 fZ={},ocr=Xo;Object.defineProperty(fZ,"__esModule",{value:!0});var IIe=fZ.default=void 0,icr=ocr(mi()),acr=L;IIe=fZ.default=(0,icr.default)((0,acr.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zm-8 2V5h2v6h1.17L12 13.17 9.83 11zm-6 7h14v2H5z"}),"DownloadOutlined");function scr(e){return Wu({tag:"svg",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 OIe=5*1024*1024,lcr=OIe/1048576,ccr=e=>{var ie,le;const{employee_id:t,CONCERN:n}=e,{session:{user:r,ADMIN_BASE_URL:o,token:i}}=Ta(),a=nl(),s=es(oe=>oe.pushAlert),{MONTH_FILTERS_OPTIONS:l,PIP_STATUS_OPTIONS:u}=zd("en"),[{monthFilter:d,status:m},p]=q.useState({monthFilter:l[1],status:u[0]}),[v,c]=q.useState({}),[f,g]=q.useState(!1),[x,b]=q.useState(!1),[C,w]=q.useState(null),[y,_]=q.useState(!1),[S,I]=q.useState(""),[E,T]=q.useState({page:0,perPage:10}),[O,A]=q.useState(!1),[j,M]=q.useState(null),[R,D]=q.useState(!1),[$,B]=q.useState(!1),{data:V,isFetching:G}=Va(ps,{url:`${o}${zn.PIP.GET_LIST}`,isNativeEndpoint:!1,params:Ke(xe({search:S,monthFilter:d==null?void 0:d.value,status:m==null?void 0:m.value,page:E.page,perPage:E.perPage},t&&{employee_id:t,EMPLOYEE_ID:t}),{concern:n!=null?n:Ox.SELF})},"fetchPipList"),{mutate:W,isLoading:Q}=Vi(za,"mutateEmployeeAckowledgement",{onSuccess:({data:oe})=>{s({type:"success",message:(oe==null?void 0:oe.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:oe})=>{var Ce;s({type:"error",message:((Ce=oe==null?void 0:oe.data)==null?void 0:Ce.message)||"Error!"})}}),{mutate:Z,isLoading:J}=Vi(za,"mutateBulkUploadEmployeeToPip",{onSuccess:({data:oe})=>{fe(),s({type:"success",message:(oe==null?void 0:oe.message)||"Updated Successfully!"}),a.invalidateQueries("fetchPipList")},onError:({response:oe})=>{var Ce;s({type:"error",message:((Ce=oe==null?void 0:oe.data)==null?void 0:Ce.message)||"Error!"})}}),ee=oe=>{c(oe),g(!0)},re=oe=>{b(!0),w({top:oe.pageY,left:oe.pageX})},ce=()=>{b(!1)},he=(oe,Ce)=>{T(pe=>Ke(xe({},pe),{[oe]:Ce}))},ve=()=>Pn(exports,null,function*(){var oe,Ce,pe,Te,Re,ke;try{if(j){const Le=new FormData;Le.append("file",j),Le.append("uploadPath",`${r==null?void 0:r.org_id}/travelDesk/${r==null?void 0:r.employee_id}/${j==null?void 0:j.name}`),Le.append("ContentType",(oe=j==null?void 0:j.type)!=null?oe:""),Le.append("isAws",1);const He=yield Pi.post(`${o}auth/hrms/upload/file`,Le,{headers:{"Content-Type":'Content-Type": "multipart/form-data',token:i}});(He==null?void 0:He.status)===200?Z({url:`${o}${zn.PIP.UPLOAD_PIP_EMPLOYEES}`,isNativeEndpoint:!1,data:{filePath:(pe=(Ce=He==null?void 0:He.data)==null?void 0:Ce.data)==null?void 0:pe.filePath}}):s({type:"error",message:((Re=(Te=He==null?void 0:He.data)==null?void 0:Te.data)==null?void 0:Re.nessage)||"Something Went Wrong! /n Please try again later or contact Support."})}}catch(Le){s({type:"error",message:(ke=Le==null?void 0:Le.message)!=null?ke:"Something Went Wrong ! /n Please Try Again Later or Contact Support"})}}),fe=()=>{M(null),D(!1),A(!1)},be=oe=>{Array.isArray(oe)&&oe.forEach(Ce=>{var pe;M(Ce),D(Ce!==null&&((pe=Object.keys(Ce))==null?void 0:pe.length)>0&&(Ce==null?void 0:Ce.size)>=OIe)})},{getRootProps:se,getInputProps:ge}=kIe({onDrop:be,accept:".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",maxFiles:1}),ue=()=>{M(null),D(!1)},me=(oe="",Ce="sample.xlsx",pe="get",Te="")=>Pn(exports,null,function*(){try{B(!0);const Re=yield Pi({method:pe,url:oe,headers:{Token:i!=null?i:"eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCIsImtpZCI6IjJkNjE5ZjdlLWZlYTQtNDI4NC1iMDI4LTI1NTJmZTNiNjA5YiJ9.eyJjYWxsYmFja191cmwiOiIiLCJzZXJ2aWNlIjoiYWNjb3VudCIsInJlbW90ZV9hZGRyIjoiMTYyLjE1OC4yMy4xNSwgMjQwOSIsImRldmljZSI6InBvc3RtYW4iLCJkZXZpY2VfdHlwZSI6InBvc3RtYW4iLCJzYWx0IjoiMzUyZTQ0ZTgtNGEzYy00MGZiLTljYjMtY2JkNDM3NzQ0M2UzIiwiaWF0IjoxNzMxMzA2NDExfQ.3d5zJGdMjUVNlls6TU8iNJs34z6mi2JWQJIM6wQYmnQs2k_BTM1cAElGzHA9co-3BrabF4iuU3_jGtxKcFLwcg"},data:Te,responseType:"blob","content-type":"application/json",Accept:"application/json"});B(!1);const ke=Re.headers["Content-Disposition"];let Le=Ce;if(ke)try{Le=ke.split("filename=")[1]}catch(Be){B(!1),console.error({contentDisposition:ke,headers:Re.headers})}const He=new Blob([Re==null?void 0:Re.data]),Ae=window.URL.createObjectURL(He),ye=document.createElement("a");ye.href=Ae,ye.download=Le,document.body.appendChild(ye),ye.click(),document.body.removeChild(ye),window.URL.revokeObjectURL(Ae)}catch(Re){s({type:"error",message:"Error in file download,please try again or contact support"}),B(!1),console.log(Re)}}),Ee=()=>Pn(exports,null,function*(){try{me(`${o!=null?o:"https://admin.zimyo.app/apiv2/"}${zn.PIP.SAPMLE_PIP_DOWNLOAD}`,"Sample Pip List.xlsx")}catch(oe){console.log(oe)}}),we=q.useMemo(()=>[{id:"pip_employee_details.EMPLOYEE_CODE",accessorKey:"pip_employee_details",header:"Employee Code",cell:(oe,Ce)=>L.jsx("span",{style:{color:"blue",cursor:"pointer"},onClick:()=>{n!==Ox.SELF&&ee(Ce)},children:oe==null?void 0:oe.EMPLOYEE_CODE})},{id:"pip_employee_details.EMPLOYEE_NAME",accessorKey:"pip_employee_details",header:"Employee Name",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe==null?void 0:oe.EMPLOYEE_NAME})},{id:"START_DATE",accessorKey:"START_DATE",header:"Start Date",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe?Ut(oe).format("DD-MMM-YYYY"):""})},{id:"END_DATE",accessorKey:"END_DATE",header:"End Date",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe?Ut(oe).format("DD-MMM-YYYY"):""})},{id:"STATUS",accessorKey:"STATUS",header:"Status",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:L.jsx(qx,{type:oe===1?"warning":"success",text:oe===1?"On PIP":"PIP Completed",onClick:()=>{}})})},{id:"IS_ACKNOWLEDGE",accessorKey:"IS_ACKNOWLEDGE",header:"Acknowledgement Status",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:L.jsx(qx,{type:oe===1?"success":"warning",text:oe===1?"Completed":"Pending",onClick:()=>{n===Ox.SELF&&oe!==1&&W({url:`${o}${zn.PIP.AKNOWLEDGE}`,isNativeEndpoint:!1,data:{PIP_ID:Ce==null?void 0:Ce.ID}})}})})},{id:"CONCLUSION",accessorKey:"CONCLUSION",header:"Conclusion",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:(Ce==null?void 0:Ce.STATUS)===1&&oe===2?L.jsx(qx,{type:"error",text:"Send Termination Mail to HR",onClick:()=>{}}):(Ce==null?void 0:Ce.STATUS)===1&&(Ce==null?void 0:Ce.IS_EXTEND)===1?L.jsx(qx,{type:"warning",text:"PIP Extended",onClick:()=>{}}):(Ce==null?void 0:Ce.STATUS)!==1?L.jsx(qx,{type:oe===2?"error":"success",text:oe===2?"Employee Terminated":"Employee Retained",onClick:()=>{}}):"-"})},{id:"pip_initiate_by",accessorKey:"pip_initiate_by",header:"Initiated By",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe==null?void 0:oe.EMPLOYEE_NAME})},{id:"DECISION",accessorKey:"DECISION",header:"DECISION",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:oe==null?void 0:oe.DECISION})},{id:"ID",accessorKey:"ID",header:"Action",cell:(oe,Ce)=>L.jsx(L.Fragment,{children:(Ce==null?void 0:Ce.STATUS)===1&&n!==Ox.SELF&&(Ce==null?void 0:Ce.CONCLUSION)!==2?L.jsx(T6t,{style:{cursor:"pointer"},onClick:pe=>{re(pe),c(Ce)}}):L.jsx(L.Fragment,{})})}],[V,r,n]);return Wc(Q||$||J),L.jsx(P6t,{value:{employeeId:v==null?void 0:v.EMPLOYEE_ID,concern:n,pipId:v==null?void 0:v.ID},children:L.jsxs(vt,{className:"overview__container__bg",style:{overflow:"hidden"},children:[L.jsxs("div",{className:"flex-between-center g-10",children:[L.jsxs(vt,{display:"flex",gap:2,flexDirection:"row",children:[!!n&&n!==Ox.SELF&&L.jsx("div",{style:{width:300},children:L.jsx(O6t,{width:"100%",placeholder:"Search by EMP Code or Name",onSearch:oe=>{I(oe)}})}),L.jsx("div",{style:{width:200},children:L.jsx($p,{value:d,options:l,placeholder:"Month",onChange:oe=>p(Ce=>Ke(xe({},Ce),{monthFilter:oe})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:oe=>Ke(xe({},oe),{zIndex:99999999999,width:"200px"}),control:oe=>Ke(xe({},oe),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})}),L.jsx("div",{style:{width:200},children:L.jsx($p,{value:m,options:u,placeholder:"Status",onChange:oe=>p(Ce=>Ke(xe({},Ce),{status:oe})),styles:{indicatorSeparator:()=>({display:"none"}),menuPortal:oe=>Ke(xe({},oe),{zIndex:99999999999,width:"200px"}),control:oe=>Ke(xe({},oe),{minHeight:"40px",width:"200px"})},menuPortalTarget:document.body})})]}),!!n&&n!==Ox.SELF&&L.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(fi,{label:"Initiate Performance Imporovement Plan(PIP)",onClick:()=>{_(!0)}}),L.jsx(fi,{label:"Bulk Import",onClick:()=>{A(!0)}})]})]}),L.jsx(vt,{sx:{height:"70vh",overflow:"scroll"},children:L.jsx(lk,{columns:we,data:_r.validateDataType(V==null?void 0:V.list,bu.ARRAY)?V.list:[],loading:G,pagination:{show:!0,totalDataCount:(ie=V==null?void 0:V.totalCounts)!=null?ie:0,page:E.page,perPage:E.perPage,handlePageChange:oe=>{he("page",oe)},handlePerPageChange:oe=>{he("perPage",oe)}}})}),L.jsx(ck,{open:f,handleClose:()=>{g(!1)},title:L.jsx(T4,{title:"Pip Details"}),children:L.jsx(bIe,{})}),L.jsx(pke,{isPopoverOpen:x,anchorPosition:C,pipActionModalClose:ce}),y&&L.jsx(AIe,{openInitiatePIPModal:y,setOpenInitiatePIPModal:_,modalTitle:"Initiate Pip",CONCERN:n}),O&&L.jsx($y,{size:"md",open:O,title:L.jsxs(vt,{display:"flex",flexDirection:"row",alignItems:"center",children:[L.jsx(Nd,{children:L.jsx(yIe,{color:"secondary"})}),L.jsx(cr,{sx:{lineHeight:1.5,fontWeight:600},children:"Bulk Import Employees"})]}),onModalclose:fe,children:L.jsxs(vt,{sx:{pr:1,pl:1,pt:1},children:[L.jsxs(vt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:[L.jsxs(vt,{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(vt,{className:"w-50 flex-end-center h-100",children:L.jsx(HP,{startIcon:L.jsx(IIe,{}),label:"Download Template",variant:"outlined",color:"secondary",onClick:()=>{Ee()}})})]}),L.jsxs(vt,{style:{border:"1px solid #E8E8EA",padding:"8px",display:"flex",justifyContent:"space-between"},children:[L.jsxs(vt,{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(vt,{className:"importfileBox",style:{border:R?"1.2px dashed red":"1.2px dashed #4D70FF"},children:L.jsxs(vt,{sx:{display:"flex",flexDirection:"column",padding:"8px"},children:[L.jsxs(vt,Ke(xe({style:{outline:"none"}},se()),{children:[L.jsx("input",xe({},ge())),L.jsx(vt,{style:{display:"flex",alignItems:"center",width:"10%",margin:"auto",marginBottom:"0.5rem"},children:L.jsx(scr,{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"})]})]})),j&&L.jsxs(vt,{style:{display:"flex"},children:[L.jsx(rcr,{style:{fontSize:"0.875rem",color:"#23a566",marginRight:"0.5rem"}}),L.jsx(cr,{style:{fontSize:"0.75rem",textDecoration:"underline"},children:(le=j==null?void 0:j.name)!=null?le:""}),L.jsx(ncr,{onClick:ue,style:{fontSize:"0.875rem",marginLeft:"0.5rem",marginTop:"0.2rem"}})]})]})}),R&&L.jsxs(vt,{style:{display:"flex",gap:"0.625rem"},children:[L.jsx(Ekt,{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 ",lcr," MB."]})]})]}),L.jsxs(vt,{className:"mb-10 mt-10",sx:{display:"flex",justifyContent:"flex-end",gap:"10px"},children:[L.jsx(fi,{label:"Cancel",variant:"outlined",onClick:fe}),L.jsx(fi,{label:"Submit",onClick:ve})]})]})})]})})},AIe=e=>{const{INITIAL_PIP_FORM_VALUES:t}=zd("en"),{session:{ADMIN_BASE_URL:n}}=Ta(),{data:r,isFetching:o}=Va(ps,{url:`${n}${zn.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 Wc(o),L.jsx(dke,xe({HRAdminMailOptions:i,initialPipDetails:t,modalType:ob.CREATE},e))};var hZ={},ucr=Xo;Object.defineProperty(hZ,"__esModule",{value:!0});var jIe=hZ.default=void 0,dcr=ucr(mi()),pcr=L;jIe=hZ.default=(0,dcr.default)((0,pcr.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 fcr="_templateModal__main_1x3oq_1",hcr="_templateModal__notification_slug_1x3oq_15",mcr="_templateModal_form_1x3oq_27",gcr="_templateModal__slugTitle_1x3oq_39",YS={templateModal__main:fcr,templateModal__notification_slug:hcr,templateModal_form:mcr,templateModal__slugTitle:gcr};function vcr(e){return Wu({tag:"svg",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 MIe={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 m="",p=d[5]!==void 0;return d[4]&&(m+="@supports (".concat(d[4],") {")),d[2]&&(m+="@media ".concat(d[2]," {")),p&&(m+="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {")),m+=l(d),p&&(m+="}"),d[2]&&(m+="}"),d[4]&&(m+="}"),m}).join("")},u.i=function(d,m,p,v,c){typeof d=="string"&&(d=[[null,d,void 0]]);var f={};if(p)for(var g=0;g<this.length;g++){var x=this[g][0];x!=null&&(f[x]=!0)}for(var b=0;b<d.length;b++){var C=[].concat(d[b]);p&&f[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),m&&(C[2]&&(C[1]="@media ".concat(C[2]," {").concat(C[1],"}")),C[2]=m),v&&(C[4]?(C[1]="@supports (".concat(C[4],") {").concat(C[1],"}"),C[4]=v):C[4]="".concat(v)),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(p,v,c){function f(C){return f=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},f(C)}function g(C,w,y){var _=y.value;if(typeof _!="function")throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(f(_)));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(E){_=E,delete this[w]}}),S=!1,I},set:function(I){_=I}}}function x(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(y){if(y!=="constructor"){var _=Object.getOwnPropertyDescriptor(C.prototype,y);typeof _.value=="function"&&Object.defineProperty(C.prototype,y,g(C,y,_))}}),C}function b(){return arguments.length===1?x.apply(void 0,arguments):g.apply(void 0,arguments)}c.d(v,{Ay:function(){return b}})},36115:function(p,v,c){c.d(v,{T:function(){return g}});var f=c(17352);class g{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=f.INSERT_AS_HTML,this.enter=f.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock=this.enter!=="br"?this.enter:f.PARAGRAPH,this.defaultMode=f.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:[]},`
3175
3175
  `,{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 g.__defaultOptions||(g.__defaultOptions=new g),g.__defaultOptions}}g.prototype.controls={}},86302:function(p,v,c){c.d(v,{j:function(){return E}});var f=c(17352),g=c(59146),x=c(99951),b=c(69052),C=c(2461),w=c(25376),y=c(92039),_=c(98253),S=c(35642),I=(c(28712),c(21567));class E{constructor(){var O,A,j,M,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=(j=(A=window.requestIdleCallback)===null||A===void 0?void 0:A.bind(window))!==null&&j!==void 0?j:(D,$)=>{var B;const V=Date.now();return this.setTimeout(()=>{D({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-V))})},(B=$==null?void 0:$.timeout)!==null&&B!==void 0?B:1)},this.__cancelIdleCallbackNative=(R=(M=window.cancelIdleCallback)===null||M===void 0?void 0:M.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,...j){if(this.isDestructed)return 0;let M={};(0,S.R)(A)&&(A=0),(0,C.E)(A)||(M=A,A=M.timeout||0),M.label&&this.clearLabel(M.label);const R=(0,g.w)(O,A,...j),D=M.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 j=this.__callbacks.get(O);return this.setTimeout(j,{label:O,timeout:A})}clearLabel(O){O&&this.timers.has(O)&&((0,g.D)(this.timers.get(O)),this.timers.delete(O),this.__callbacks.delete(O))}clearTimeout(O){if((0,_.K)(O))return this.clearLabel(O);(0,g.D)(O),this.timers.delete(O),this.__callbacks.delete(O)}debounce(O,A,j=!1){let M=0,R=!1;const D=[],$=(...V)=>{if(!R){M=0;const G=O(...V);if(R=!0,D.length){const W=()=>{D.forEach(Q=>Q()),D.length=0};(0,y.y)(G)?G.finally(W):W()}}},B=(...V)=>{R=!1,A?(!M&&j&&$(...V),(0,g.D)(M),M=this.setTimeout(()=>$(...V),(0,b.T)(A)?A():A),this.timers.set(O,M)):$(...V)};return(0,w.Q)(A)&&A.promisify?(...V)=>{const G=this.promise(W=>{D.push(W)}).catch(W=>{if((0,x.z)(W))return null;throw W});return B(...V),G}:B}microDebounce(O,A=!1){let j,M=!1,R=!0;return(...D)=>{j=D,M?R=!0:(R=!0,A&&(R=!1,O(...j)),M=!0,this.__queueMicrotaskNative(()=>{M=!1,this.isDestructed||R&&O(...j)}))}}throttle(O,A,j=!1){let M,R,D,$=null;return(...B)=>{M=!0,D=B,A?$||(R=()=>{M?(O(...D),M=!1,$=this.setTimeout(R,(0,b.T)(A)?A():A),this.timers.set(R,$)):$=null},R()):O(...D)}}promise(O){let A=()=>{};const j=new Promise((M,R)=>{A=()=>R((0,I.h)("Abort async")),this.promisesRejections.add(A),O(M,R)});return j.finally||typeof process=="undefined"||f.IS_ES_NEXT||(j.finally=M=>(j.then(M).catch(M),j)),j.finally(()=>{this.promisesRejections.delete(A)}).catch(()=>null),j.rejectCallback=A,j}promiseState(O){if(O.status)return O.status;if(!Promise.race)return new Promise(j=>{O.then(M=>(j("fulfilled"),M),M=>{throw j("rejected"),M}),this.setTimeout(()=>{j("pending")},100)});const A={};return Promise.race([O,A]).then(j=>j===A?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(O,A){const j=this.requestIdleCallbackNative(O,A);return this.requestsIdle.add(j),j}requestIdlePromise(O){return this.promise(A=>{const j=this.requestIdleCallback(()=>A(j),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,g.D)(this.timers.get(O))),this.timers.clear(),this.promisesRejections.forEach(O=>O()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},64890:function(p,v,c){c.d(v,{j:function(){return f.j}});var f=c(86302)},37474:function(p,v,c){c.d(v,{u:function(){return w}});var f=c(64890),g=c(64567),x=c(56298),b=c(65147);const C=new Map;class w{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,b.kebabCase)(((0,b.isFunction)(this.className)?this.className():"")||(0,b.getClassName)(this))),this.__componentName}getFullElName(_,S,I){const E=[this.componentName];return _&&(_=_.replace(/[^a-z0-9-]/gi,"-"),E.push(`__${_}`)),S&&(E.push("_",S),E.push("_",(0,b.isVoid)(I)?"true":I.toString())),E.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(_,S){return(0,b.get)(_,S||this)}get isReady(){return this.componentStatus===g.f.ready}get isDestructed(){return this.componentStatus===g.f.destructed}get isInDestruct(){return g.f.beforeDestruct===this.componentStatus||g.f.destructed===this.componentStatus}bindDestruct(_){return _.hookStatus(g.f.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}constructor(){this.async=new f.j,this.ownerWindow=window,this.__componentStatus=g.f.beforeInit,this.uid="jodit-uid-"+(0,x.w9)()}destruct(){this.setStatus(g.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,b.isFunction)(I.setStatusComponent)&&I.setStatusComponent(_,S);const E=C.get(this),T=E==null?void 0:E[_];T&&T.length&&T.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=g.f},77753:function(p,v,c){c.d(v,{f:function(){return g.f},uA:function(){return f.u},vG:function(){return x.v}});var f=c(37474),g=c(64567),x=c(7982)},64567:function(p,v,c){c.d(v,{f:function(){return f}});const f={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},7982:function(p,v,c){c.d(v,{v:function(){return g}});var f=c(37474);class g extends f.u{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(b,...C){return this.j.i18n(b,...C)}setParentView(b){return this.jodit=b,b.components.add(this),this}constructor(b){super(),this.setParentView(b)}destruct(){return this.j.components.delete(this),super.destruct()}}},17352:function(p,v,c){c.r(v),c.d(v,{ACCURACY:function(){return we},APP_VERSION:function(){return f},BASE_PATH:function(){return pt},BR:function(){return le},CLIPBOARD_ID:function(){return xt},COMMAND_KEYS:function(){return ie},EMULATE_DBLCLICK_TIMEOUT:function(){return ye},ES:function(){return g},FAT_MODE:function(){return y},HOMEPAGE:function(){return _},INSEPARABLE_TAGS:function(){return W},INSERT_AS_HTML:function(){return Be},INSERT_AS_TEXT:function(){return Oe},INSERT_CLEAR_HTML:function(){return Xe},INSERT_ONLY_TEXT:function(){return We},INVISIBLE_SPACE:function(){return E},INVISIBLE_SPACE_REG_EXP:function(){return O},INVISIBLE_SPACE_REG_EXP_END:function(){return A},INVISIBLE_SPACE_REG_EXP_START:function(){return j},IS_BLOCK:function(){return $},IS_ES_MODERN:function(){return x},IS_ES_NEXT:function(){return b},IS_IE:function(){return Re},IS_INLINE:function(){return B},IS_MAC:function(){return Ve},IS_PROD:function(){return C},IS_TEST:function(){return w},KEY_ALIASES:function(){return et},KEY_ALT:function(){return he},KEY_BACKSPACE:function(){return J},KEY_DELETE:function(){return ue},KEY_DOWN:function(){return se},KEY_ENTER:function(){return re},KEY_ESC:function(){return ce},KEY_F3:function(){return me},KEY_LEFT:function(){return ve},KEY_META:function(){return Z},KEY_RIGHT:function(){return be},KEY_SPACE:function(){return ge},KEY_TAB:function(){return ee},KEY_UP:function(){return fe},LIST_TAGS:function(){return V},MARKER_CLASS:function(){return Ae},MODE_SOURCE:function(){return pe},MODE_SPLIT:function(){return Te},MODE_WYSIWYG:function(){return Ce},NBSP_SPACE:function(){return T},NEARBY:function(){return Ee},NO_EMPTY_TAGS:function(){return Q},PARAGRAPH:function(){return oe},PASSIVE_EVENTS:function(){return Yt},SAFE_COUNT_CHANGE_CALL:function(){return $e},SET_TEST:function(){return S},SOURCE_CONSUMER:function(){return Bt},SPACE_REG_EXP:function(){return M},SPACE_REG_EXP_END:function(){return D},SPACE_REG_EXP_START:function(){return R},TEMP_ATTR:function(){return Ze},TEXT_HTML:function(){return Le},TEXT_PLAIN:function(){return ke},TEXT_RTF:function(){return He},TOKENS:function(){return I},lang:function(){return nt}});const f="4.2.10",g="es2018",x=!0,b=!1,C=!0;let w=!1;const y=!0,_="https://xdsoft.net/jodit/",S=()=>w=!0,I={},E="\uFEFF",T=" ",O=()=>/[\uFEFF]/g,A=()=>/[\uFEFF]+$/g,j=()=>/^[\uFEFF]+/g,M=()=>/[\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,V=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",J="Backspace",ee="Tab",re="Enter",ce="Escape",he="Alt",ve="ArrowLeft",fe="ArrowUp",be="ArrowRight",se="ArrowDown",ge="Space",ue="Delete",me="F3",Ee=5,we=10,ie=[Z,J,ue,fe,se,be,ve,re,ce,me,ee],le="br",oe="p",Ce=1,pe=2,Te=3,Re=typeof navigator!="undefined"&&(navigator.userAgent.indexOf("MSIE")!==-1||/rv:11.0/i.test(navigator.userAgent)),ke=Re?"text":"text/plain",Le=Re?"html":"text/html",He=Re?"rtf":"text/rtf",Ae="jodit-selection_marker",ye=300,Be="insert_as_html",Xe="insert_clear_html",Oe="insert_as_text",We="insert_only_text",$e=10,Ve=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),et={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"},pt=(()=>{if(typeof document=="undefined")return"";const ut=document.currentScript,Xt=qe=>{const $t=qe.split("/");return/\.js/.test($t[$t.length-1])?$t.slice(0,$t.length-1).join("/")+"/":qe};if(ut)return Xt(ut.src);const on=document.querySelectorAll("script[src]");return on&&on.length?Xt(on[on.length-1].src):window.location.href})(),Ze="data-jodit-temp",nt={},xt="clipboard",Bt="source-consumer",Yt=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},92852:function(p,v,c){c.d(v,{X:function(){return b}});var f=c(17352),g=c(55186),x=c(65147);c(28712);class b{get doc(){return(0,x.isFunction)(this.document)?this.document():this.document}constructor(w,y){this.document=w,this.createAttributes=y}element(w,y,_){const S=this.doc.createElement(w.toLowerCase());return this.applyCreateAttributes(S),y&&((0,x.isPlainObject)(y)?(0,x.attr)(S,y):_=y),_&&(0,x.asArray)(_).forEach(I=>S.appendChild((0,x.isString)(I)?this.fromHTML(I):I)),S}div(w,y,_){const S=this.element("div",y,_);return w&&(S.className=w),S}sandbox(){var w;const y=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(y);const _=(w=y.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,y]}span(w,y,_){const S=this.element("span",y,_);return w&&(S.className=w),S}a(w,y,_){const S=this.element("a",y,_);return w&&(S.className=w),S}text(w){return this.doc.createTextNode(w)}fake(){return this.text(f.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(w,y){const _=this.div();_.innerHTML=w.toString();const S=_.firstChild===_.lastChild&&_.firstChild?_.firstChild:_;if(g.J.safeRemove(S),y){const I=(0,x.refs)(S);Object.keys(y).forEach(E=>{const T=I[E];T&&y[E]===!1&&g.J.hide(T)})}return S}applyCreateAttributes(w){if(this.createAttributes){const y=this.createAttributes;if(y&&y[w.tagName.toLowerCase()]){const _=y[w.tagName.toLowerCase()];(0,x.isFunction)(_)?_(w):(0,x.isPlainObject)(_)&&(0,x.attr)(w,_)}}}}},40594:function(p,v,c){c.d(v,{X:function(){return f.X}});var f=c(92852)},11961:function(p,v,c){c.d(v,{d:function(){return f.Ay}});var f=c(26318)},87875:function(p,v,c){c.d(v,{OK:function(){return y},PO:function(){return C},PP:function(){return w}});var f=c(64567),g=c(55186),x=c(9823),b=c(76166);function C(_,S){const I=Object.getOwnPropertyDescriptor(_,S);return!I||(0,x.Tn)(I.get)?null:I.value}function w(_,S,I){const E=I.get;if(!E)throw(0,b.z3)("Getter property descriptor expected");I.get=function(){const T=E.call(this);return T&&T.noCache===!0||Object.defineProperty(this,S,{configurable:I.configurable,enumerable:I.enumerable,writable:!1,value:T}),T}}function y(_,S,I){const E=I.value;if(!(0,x.Tn)(E))throw(0,b.z3)("Handler must be a Function");let T=!0;const O=new WeakMap;I.value=function(...A){var j;if(T&&O.has(this.constructor))return(j=O.get(this.constructor))===null||j===void 0?void 0:j.cloneNode(!0);const M=E.apply(this,A);return T&&g.J.isElement(M)&&O.set(this.constructor,M),T?M.cloneNode(!0):M},_.hookStatus(f.f.ready,A=>{T=!!((0,x.hH)(A)?A:A.jodit).options.cache})}},24767:function(p,v,c){function f(g){class x extends g{constructor(...C){super(...C),this.constructor===x&&(this instanceof x||Object.setPrototypeOf(this,x.prototype),this.setStatus("ready"))}}return x}c.d(v,{s:function(){return f}})},37075:function(p,v,c){c.d(v,{n:function(){return C},s:function(){return b}});var f=c(77753),g=c(9823),x=(c(28712),c(50156));function b(w,y=!1,_="debounce"){return(S,I)=>{const E=S[I];if(!(0,g.Tn)(E))throw(0,x.z3)("Handler must be a Function");return S.hookStatus(f.f.ready,T=>{const{async:O}=T,A=(0,g.Tn)(w)?w(T):w,j=(0,g.Et)(A)||(0,g.Qd)(A)?A:T.defaultTimeout;Object.defineProperty(T,I,{configurable:!0,value:O[_](T[I].bind(T),j,y)})}),{configurable:!0,get(){return E.bind(this)}}}}function C(w,y=!1){return b(w,y,"throttle")}},1963:function(p,v,c){c.d(v,{C:function(){return g}});var f=c(69052);function g(...x){return b=>{const C=b.prototype;for(let w=0;x.length>w;w++){const y=x[w],_=Object.getOwnPropertyNames(y.prototype);for(let S=0;_.length>S;S++){const I=_[S],E=Object.getOwnPropertyDescriptor(y.prototype,I);E!=null&&(0,f.T)(E.value)&&!(0,f.T)(C[I])&&Object.defineProperty(C,I,{enumerable:!0,configurable:!0,writable:!0,value:function(...T){return E.value.call(this,...T)}})}}}}},71151:function(p,v,c){c.d(v,{A:function(){return x}});var f=c(69052),g=c(50156);function x(b){return(C,w)=>{if(!(0,f.T)(C[w]))throw(0,g.z3)("Handler must be a Function");C.hookStatus(b,y=>{y[w].call(y)})}}},86285:function(p,v,c){c.d(v,{N:function(){return b}});var f=c(77753),g=c(69052),x=c(50156);function b(){return(C,w)=>{if(!(0,g.T)(C[w]))throw(0,x.z3)("Handler must be a Function");C.hookStatus(f.f.ready,y=>{const{async:_}=y,S=y[w];y[w]=(...I)=>_.requestIdleCallback(S.bind(y,...I))})}}},22664:function(p,v,c){c.r(v),c.d(v,{autobind:function(){return f.d},cache:function(){return g.PP},cacheHTML:function(){return g.OK},cached:function(){return g.PO},component:function(){return x.s},debounce:function(){return b.s},derive:function(){return C.C},getPropertyDescriptor:function(){return E.N},hook:function(){return w.A},idle:function(){return y.N},nonenumerable:function(){return _.m},persistent:function(){return S.y},throttle:function(){return b.n},wait:function(){return I.u},watch:function(){return E.w}});var f=c(11961),g=c(87875),x=c(24767),b=c(37075),C=c(1963),w=c(71151),y=c(86285),_=c(48791),S=c(33087),I=c(48647),E=c(66927)},48791:function(p,v,c){c.d(v,{m:function(){return f}});const f=(g,x)=>{(Object.getOwnPropertyDescriptor(g,x)||{}).enumerable!==!1&&Object.defineProperty(g,x,{enumerable:!1,set(b){Object.defineProperty(this,x,{enumerable:!1,writable:!0,value:b})}})}},33087:function(p,v,c){c.d(v,{y:function(){return x}});var f=c(64567),g=c(12041);function x(b,C){b.hookStatus(f.f.ready,w=>{const y=(0,g.h)(w)?w:w.jodit,_=`${y.options.namespace}${w.componentName}_prop_${C}`,S=w[C];Object.defineProperty(w,C,{get(){var I;return(I=y.storage.get(_))!==null&&I!==void 0?I:S},set(I){y.storage.set(_,I)}})})}},48647:function(p,v,c){c.d(v,{u:function(){return b}});var f=c(64567),g=c(69052),x=c(50156);function b(C){return(w,y)=>{if(!(0,g.T)(w[y]))throw(0,x.z3)("Handler must be a Function");w.hookStatus(f.f.ready,_=>{const{async:S}=_,I=_[y];let E=0;Object.defineProperty(_,y,{configurable:!0,value:function T(...O){S.clearTimeout(E),C(_)?I.apply(_,O):E=S.setTimeout(()=>T(...O),10)}})})}}},66927:function(p,v,c){c.d(v,{N:function(){return _},w:function(){return S}});var f=c(64567),g=c(32332),x=c(42589),b=c(69052),C=c(25376),w=c(12041),y=c(50156);function _(I,E){let T;do T=Object.getOwnPropertyDescriptor(I,E),I=Object.getPrototypeOf(I);while(!T&&I);return T}function S(I,E){return(T,O)=>{var A;if(!(0,b.T)(T[O]))throw(0,y.z3)("Handler must be a Function");const j=(A=E==null?void 0:E.immediately)===null||A===void 0||A,M=E==null?void 0:E.context,R=D=>{const $=(0,w.h)(D)?D:D.jodit;let B=(V,...G)=>{if(!D.isInDestruct)return D[O](V,...G)};j||(B=D.async.microDebounce(B,!0)),(0,x.u)(I).forEach(V=>{if(/:/.test(V)){const[ee,re]=V.split(":");let ce=M;return ee.length&&(ce=D.get(ee)),(0,b.T)(ce)&&(ce=ce(D)),$.events.on(ce||D,re,B),ce||$.events.on(re,B),void D.hookStatus("beforeDestruct",()=>{$.events.off(ce||D,re,B).off(re,B)})}const G=V.split("."),[W]=G,Q=G.slice(1);let Z=D[W];(0,C.Q)(Z)&&(0,g.s)(Z).on(`change.${Q.join(".")}`,B);const J=_(T,W);Object.defineProperty(D,W,{configurable:!0,set(ee){const re=Z;re!==ee&&(Z=ee,J&&J.set&&J.set.call(D,ee),(0,C.Q)(Z)&&(Z=(0,g.s)(Z),Z.on(`change.${Q.join(".")}`,B)),B(W,re,Z))},get:()=>J&&J.get?J.get.call(D):Z})})};(0,b.T)(T.hookStatus)?T.hookStatus(f.f.ready,R):R(T)}}},55186:function(p,v,c){c.d(v,{J:function(){return w}});var f=c(17352),g=c(42448),x=c(9823),b=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 E,T=_,O=_;I.s.save();let A=!1;do A=!1,E=T.previousSibling,E&&!w.isBlock(E)&&(A=!0,T=E);while(A);do A=!1,E=O.nextSibling,E&&!w.isBlock(E)&&(A=!0,O=E);while(A);const j=(0,x.Kg)(S)?I.createInside.element(S):S;T.parentNode&&T.parentNode.insertBefore(j,T);let M=T;for(;M&&(M=T.nextSibling,j.appendChild(T),T!==O&&M);)T=M;return I.s.restore(),j}static wrap(_,S,I){const E=(0,x.Kg)(S)?I.element(S):S;if(w.isNode(_)){if(!_.parentNode)throw(0,C.error)("Element should be in DOM");_.parentNode.insertBefore(E,_),E.appendChild(_)}else{const T=_.extractContents();_.insertNode(E),E.appendChild(T)}return E}static unwrap(_){const S=_.parentNode;if(S){for(;_.firstChild;)S.insertBefore(_.firstChild,_);w.safeRemove(_)}}static between(_,S,I){let E=_;for(;E&&E!==S&&(_===E||!I(E));){let T=E.firstChild||E.nextSibling;if(!T){for(;E&&!E.nextSibling;)E=E.parentNode;T=E==null?void 0:E.nextSibling}E=T}}static replace(_,S,I,E=!1,T=!1){(0,x.AH)(S)&&(S=I.fromHTML(S));const O=(0,x.Kg)(S)?I.element(S):S;if(!T)for(;_.firstChild;)O.appendChild(_.firstChild);return E&&w.isElement(_)&&w.isElement(O)&&(0,g.$)(_.attributes).forEach(A=>{O.setAttribute(A.name,A.value)}),_.parentNode&&_.parentNode.replaceChild(O,_),O}static isEmptyTextNode(_){return w.isText(_)&&(!_.nodeValue||_.nodeValue.replace(f.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=f.NO_EMPTY_TAGS){if(!_)return!0;let I;I=(0,x.Tn)(S)?S:T=>S.has(T.nodeName.toLowerCase());const E=T=>T.nodeValue==null||(0,b.Bq)(T.nodeValue).length===0;return w.isText(_)?E(_):!(w.isElement(_)&&I(_))&&w.each(_,T=>{if(w.isText(T)&&!E(T)||w.isElement(T)&&I(T))return!1})}static isNode(_){return!!(_&&(0,x.Kg)(_.nodeName)&&typeof _.nodeType=="number"&&_.childNodes&&(0,x.Tn)(_.appendChild))}static isCell(_){return w.isNode(_)&&(_.nodeName==="TD"||_.nodeName==="TH")}static isList(_){return w.isTag(_,f.LIST_TAGS)}static isLeaf(_){return w.isTag(_,"li")}static isImage(_){return w.isNode(_)&&/^(img|svg|picture|canvas)$/i.test(_.nodeName)}static isBlock(_){return!(0,x.Rd)(_)&&typeof _=="object"&&w.isNode(_)&&f.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,x.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 E=I.lastChild;if(E||(E=I.previousSibling),!E&&I.parentNode!==_){do I=I.parentNode;while(I&&!(I!=null&&I.previousSibling)&&I.parentNode!==_);E=I==null?void 0:I.previousSibling}I=E}while(I);return null}static prev(_,S,I,E=!0){return w.find(_,S,I,!1,E)}static next(_,S,I,E=!0){return w.find(_,S,I,!0,E)}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,E=!0,T=!0){const O=this.nextGen(_,I,E,T);let A=O.next();for(;!A.done;){if(S(A.value))return A.value;A=O.next()}return null}static*nextGen(_,S,I=!0,E=!0){const T=[];let O=_;do{let A=I?O.nextSibling:O.previousSibling;for(;A;)T.unshift(A),A=I?A.nextSibling:A.previousSibling;yield*GZ(this.runInStack(_,T,I,E)),O=O.parentNode}while(O&&O!==S);return null}static each(_,S,I=!0){const E=this.eachGen(_,I);let T=E.next();for(;!T.done;){if(S(T.value)===!1)return!1;T=E.next()}return!0}static eachGen(_,S=!0){return this.runInStack(_,[_],S)}static*runInStack(_,S,I,E=!0){for(;S.length;){const T=S.pop();if(E){let O=I?T.lastChild:T.firstChild;for(;O;)S.push(O),O=I?O.previousSibling:O.nextSibling}_!==T&&(yield T)}}static findWithCurrent(_,S,I,E="nextSibling",T="firstChild"){let O=_;do{if(S(O))return O||null;if(T&&O&&O[T]){const A=w.findWithCurrent(O[T],S,O,E,T);if(A)return A}for(;O&&!O[E]&&O!==I;)O=O.parentNode;O&&O[E]&&O!==I&&(O=O[E])}while(O&&O!==I);return null}static findSibling(_,S=!0,I=E=>!w.isEmptyTextNode(E)){let E=w.sibling(_,S);for(;E&&!I(E);)E=w.sibling(E,S);return E&&I(E)?E:null}static findNotEmptySibling(_,S){return w.findSibling(_,S,I=>{var E;return!w.isEmptyTextNode(I)&&!!(!w.isText(I)||!((E=I.nodeValue)===null||E===void 0)&&E.length&&(0,b.Bq)(I.nodeValue))})}static findNotEmptyNeighbor(_,S,I){return(0,C.call)(S?w.prev:w.next,_,E=>!!(E&&(!(w.isText(E)||w.isComment(E))||(0,b.Bq)((E==null?void 0:E.nodeValue)||"").length)),I)}static sibling(_,S){return S?_.previousSibling:_.nextSibling}static up(_,S,I,E=!1){let T=_;if(!T)return null;do{if(S(T))return T;if(T===I||!T.parentNode)break;T=T.parentNode}while(T&&T!==I);return T===I&&E&&S(T)?T:null}static closest(_,S,I){let E;const T=O=>O.toLowerCase();if((0,x.Tn)(S))E=S;else if((0,x.cy)(S)||(0,x.vM)(S)){const O=(0,x.vM)(S)?S:new Set(S.map(T));E=A=>!!(A&&O.has(T(A.nodeName)))}else E=O=>!!(O&&T(S)===T(O.nodeName));return w.up(_,E,I)}static furthest(_,S,I){let E=null,T=_==null?void 0:_.parentElement;for(;T&&T!==I;)S(T)&&(E=T),T=T==null?void 0:T.parentElement;return E}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,x.cy)(S)?S.forEach(I=>{this.append(_,I)}):_.appendChild(S)}static moveContent(_,S,I=!1,E=()=>!0){const T=(_.ownerDocument||document).createDocumentFragment();(0,g.$)(_.childNodes).filter(O=>!!E(O)||(w.safeRemove(O),!1)).forEach(O=>{T.appendChild(O)}),I&&S.firstChild?S.insertBefore(T,S.firstChild):S.appendChild(T)}static isOrContains(_,S,I=!1){return _===S?!I:!!(S&&_&&this.up(S,E=>E===_,_,!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,f.INSEPARABLE_TAGS)?w.after(_.startContainer,S):(_.insertNode(S),I&&_.setStartBefore(I)),_.collapse(!0),[S.nextSibling,S.previousSibling].forEach(E=>w.isText(E)&&!E.nodeValue&&w.safeRemove(E))}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(),E=_.tagName.toUpperCase();if(S instanceof Set)return S.has(I)||S.has(E);if(Array.isArray(S))throw new TypeError("Dom.isTag does not support array");return I===S||E===S}static markTemporary(_,S){return S&&(0,C.attr)(_,S),(0,C.attr)(_,f.TEMP_ATTR,!0),_}static isTemporary(_){return!!w.isElement(_)&&((0,x.rg)(_)||(0,C.attr)(_,f.TEMP_ATTR)==="true")}static replaceTemporaryFromString(_){return _.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(_){return(0,C.$$)(`[${f.TEMP_ATTR}]`,_)}}},71842:function(p,v,c){c.d(v,{J:function(){return f.J},p:function(){return g.p}});var f=c(55186),g=c(8453)},8453:function(p,v,c){c.d(v,{p:function(){return C}});var f=c(31635),g=c(22664),x=c(55186),b=c(43431);class C extends b.h{setWork(y){return this.isWorked&&this.break(),this.workNodes=x.J.eachGen(y,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(y,_={}){super(),this.async=y,this.options=_,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){var y;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:(y=this.options.timeout)!==null&&y!==void 0?y:10})}break(y){this.isWorked&&(this.stop(),this.emit("break",y))}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(y){var _;if(this.workNodes){this.isWorked=!0;let S=0;const I=(_=this.options.timeoutChunkSize)!==null&&_!==void 0?_:50;for(;!this.isFinished&&(y.timeRemaining()>0||y.didTimeout&&I>=S);){const E=this.workNodes.next();if(S+=1,this.visitNode(E.value)&&(this.hadAffect=!0),E.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(y){var _;return!(!y||this.options.whatToShow!==void 0&&y.nodeType!==this.options.whatToShow)&&(_=this.emit("visit",y))!==null&&_!==void 0&&_}}(0,f.Cg)([g.autobind],C.prototype,"workPerform",null)},50658:function(p,v,c){c.d(v,{b:function(){return _}});var f=c(17352),g=c(42589),x=c(37923),b=c(69052),C=c(98253),w=c(50156),y=c(10004);class _{mute(E){return this.__mutedEvents.add(E!=null?E:"*"),this}isMuted(E){return!(!E||!this.__mutedEvents.has(E))||this.__mutedEvents.has("*")}unmute(E){return this.__mutedEvents.delete(E!=null?E:"*"),this}__eachEvent(E,T){(0,g.u)(E).map(O=>O.trim()).forEach(O=>{const A=O.split(".");T.call(this,A[0],A[1]||y.X)})}__getStore(E){if(!E)throw(0,w.z3)("Need subject");if(E[this.__key]===void 0){const T=new y.d;Object.defineProperty(E,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:T})}return E[this.__key]}__removeStoreFromSubject(E){E[this.__key]!==void 0&&Object.defineProperty(E,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(E,T){const O=this.__doc.createEvent("HTMLEvents");(0,C.K)(T)?O.initEvent(T,!0,!0):(O.initEvent(T.type,T.bubbles,T.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(A=>{Object.defineProperty(O,A,{value:T[A],enumerable:!0})}),Object.defineProperty(O,"originalEvent",{value:T,enumerable:!0})),E.dispatchEvent(O)}get current(){return this.currents[this.currents.length-1]}on(E,T,O,A){let j,M,R,D;if((0,C.K)(E)||(0,C.B)(E)?(j=this,M=E,R=T,D=O):(j=E,M=T,R=O,D=A),!(0,C.K)(M)&&!(0,C.B)(M)||M.length===0)throw(0,w.z3)("Need events names");if(!(0,b.T)(R))throw(0,w.z3)("Need event handler");if((0,x.c)(j))return j.forEach(W=>{this.on(W,M,R,D)}),this;const $=j,B=this.__getStore($),V=this;let G=function(W,...Q){if(!V.isMuted(W))return R&&R.call(this,...Q)};return S($)&&(G=function(W){if(!V.isMuted(W.type))return V.__prepareEvent(W),R&&R.call(this,W)===!1?(W.preventDefault(),W.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(M,(W,Q)=>{var Z,J;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=f.PASSIVE_EVENTS.has(W)?{passive:!0,capture:(Z=D==null?void 0:D.capture)!==null&&Z!==void 0&&Z}:(J=D==null?void 0:D.capture)!==null&&J!==void 0&&J;G.options=ee,$.addEventListener(W,G,ee),this.__memoryDOMSubjectToHandler($,G)}}),this}__memoryDOMSubjectToHandler(E,T){const O=this.__domEventsMap.get(E)||new Set;O.add(T),this.__domEventsMap.set(E,O)}__unmemoryDOMSubjectToHandler(E,T){const O=this.__domEventsMap,A=O.get(E)||new Set;A.delete(T),A.size?O.set(E,A):O.delete(E)}one(E,T,O,A){let j,M,R,D;(0,C.K)(E)||(0,C.B)(E)?(j=this,M=E,R=T,D=O):(j=E,M=T,R=O,D=A);const $=(...B)=>(this.off(j,M,$),R(...B));return this.on(j,M,$,D),this}off(E,T,O){let A,j,M;if((0,C.K)(E)||(0,C.B)(E)?(A=this,j=E,M=T):(A=E,j=T,M=O),(0,x.c)(A))return A.forEach(V=>{this.off(V,j,M)}),this;const R=A,D=this.__getStore(R);if(!(0,C.K)(j)&&!(0,C.B)(j)||j.length===0)return D.namespaces().forEach(V=>{this.off(R,"."+V)}),this.__removeStoreFromSubject(R),this;const $=V=>{var G;S(R)&&(R.removeEventListener(V.event,V.syntheticCallback,(G=V.syntheticCallback.options)!==null&&G!==void 0&&G),this.__unmemoryDOMSubjectToHandler(R,V.syntheticCallback))},B=(V,G)=>{if(V==="")return void D.events(G).forEach(Q=>{Q!==""&&B(Q,G)});const W=D.get(V,G);if(W&&W.length)if((0,b.T)(M)){const Q=D.indexOf(V,G,M);Q!==!1&&($(W[Q]),W.splice(Q,1),W.length||D.clearEvents(G,V))}else W.forEach($),W.length=0,D.clearEvents(G,V)};return this.__eachEvent(j,(V,G)=>{G===y.X?D.namespaces().forEach(W=>{B(V,W)}):B(V,G)}),D.isEmpty()&&this.__removeStoreFromSubject(R),this}stopPropagation(E,T){const O=(0,C.K)(E)?this:E,A=(0,C.K)(E)?E:T;if(typeof A!="string")throw(0,w.z3)("Need event names");const j=this.__getStore(O);this.__eachEvent(A,(M,R)=>{const D=j.get(M,R);D&&this.__stopped.push(D),R===y.X&&j.namespaces(!0).forEach($=>this.stopPropagation(O,M+"."+$))})}__removeStop(E){if(E){const T=this.__stopped.indexOf(E);T!==-1&&this.__stopped.splice(0,T+1)}}__isStopped(E){return E!==void 0&&this.__stopped.indexOf(E)!==-1}fire(E,T,...O){let A,j;const M=(0,C.K)(E)?this:E,R=(0,C.K)(E)?E:T,D=(0,C.K)(E)?[T,...O]:O;if(!S(M)&&!(0,C.K)(R))throw(0,w.z3)("Need events names");const $=this.__getStore(M);return!(0,C.K)(R)&&S(M)?this.__triggerNativeEvent(M,T):this.__eachEvent(R,(B,V)=>{if(S(M))this.__triggerNativeEvent(M,B);else{const G=$.get(B,V);if(G)try{[...G].every(W=>!this.__isStopped(G)&&(this.currents.push(B),j=W.syntheticCallback.call(M,B,...D),this.currents.pop(),j!==void 0&&(A=j),!0))}finally{this.__removeStop(G)}V!==y.X||S(M)||$.namespaces().filter(W=>W!==V).forEach(W=>{const Q=this.fire.apply(this,[M,B+"."+W,...D]);Q!==void 0&&(A=Q)})}}),A}constructor(E){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=T=>{T.cancelBubble||(T.composed&&(0,b.T)(T.composedPath)&&T.composedPath()[0]&&Object.defineProperty(T,"target",{value:T.composedPath()[0],configurable:!0,enumerable:!0}),T.type.match(/^touch/)&&T.changedTouches&&T.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(O=>{Object.defineProperty(T,O,{value:T.changedTouches[0][O],configurable:!0,enumerable:!0})}),T.originalEvent||(T.originalEvent=T),T.type==="paste"&&T.clipboardData===void 0&&this.__doc.defaultView.clipboardData&&Object.defineProperty(T,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,E&&(this.__doc=E),this.__key+=new Date().getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((E,T)=>{this.off(T)}),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,b.T)(I.addEventListener)}},43431:function(p,v,c){c.d(v,{h:function(){return f}});class f{constructor(){this.__map=new Map}on(x,b){var C;return this.__map.has(x)||this.__map.set(x,new Set),(C=this.__map.get(x))===null||C===void 0||C.add(b),this}off(x,b){var C;return this.__map.has(x)&&((C=this.__map.get(x))===null||C===void 0||C.delete(b)),this}destruct(){this.__map.clear()}emit(x,...b){var C;let w;return this.__map.has(x)&&((C=this.__map.get(x))===null||C===void 0||C.forEach(y=>{w=y(...b)})),w}}},50025:function(p,v,c){c.d(v,{Xr:function(){return b.X},bk:function(){return f.b},d$:function(){return b.d},h5:function(){return g.h},sH:function(){return x.s}});var f=c(50658),g=c(43431),x=c(32332),b=c(10004)},32332:function(p,v,c){c.d(v,{s:function(){return y}});var f=c(66927),g=c(37923),x=c(69810),b=c(25376);const C=Symbol("observable-object");function w(_){return _[C]!==void 0}function y(_){if(w(_))return _;const S={},I={},E=(A,j)=>(0,g.c)(A)?(A.map(M=>E(M,j)),_):(I[A]||(I[A]=[]),I[A].push(j),_),T=(A,...j)=>{if((0,g.c)(A))A.map(M=>T(M,...j));else try{!S[A]&&I[A]&&(S[A]=!0,I[A].forEach(M=>M.call(_,...j)))}finally{S[A]=!1}},O=(A,j=[])=>{const M={};w(A)||(Object.defineProperty(A,C,{enumerable:!1,value:!0}),Object.keys(A).forEach(R=>{const D=R,$=j.concat(D).filter(V=>V.length);M[D]=A[D];const B=(0,f.N)(A,D);Object.defineProperty(A,D,{set:V=>{const G=M[D];if(!(0,x.P)(M[D],V)){T(["beforeChange",`beforeChange.${$.join(".")}`],D,V),(0,b.Q)(V)&&O(V,$),B&&B.set?B.set.call(_,V):M[D]=V;const W=[];T(["change",...$.reduce((Q,Z)=>(W.push(Z),Q.push(`change.${W.join(".")}`),Q),[])],$.join("."),G,V!=null&&V.valueOf?V.valueOf():V)}},get:()=>B&&B.get?B.get.call(_):M[D],enumerable:!0,configurable:!0}),(0,b.Q)(M[D])&&O(M[D],$)}),Object.defineProperty(_,"on",{value:E}))};return O(_),_}},10004:function(p,v,c){c.d(v,{X:function(){return g},d:function(){return x}});var f=c(42448);c(28712);const g="JoditEventDefaultNamespace";class x{constructor(){this.__store=new Map}get(C,w){if(this.__store.has(w))return this.__store.get(w)[C]}indexOf(C,w,y){const _=this.get(C,w);if(_){for(let S=0;_.length>S;S+=1)if(_[S].originalCallback===y)return S}return!1}namespaces(C=!1){const w=(0,f.$)(this.__store.keys());return C?w.filter(y=>y!==g):w}events(C){const w=this.__store.get(C);return w?Object.keys(w):[]}set(C,w,y,_=!1){let S=this.__store.get(w);S||(S={},this.__store.set(w,S)),S[C]===void 0&&(S[C]=[]),_?S[C].unshift(y):S[C].push(y)}clear(){this.__store.clear()}clearEvents(C,w){const y=this.__store.get(C);y&&y[w]&&(delete y[w],Object.keys(y).length||this.__store.delete(C))}isEmpty(){return this.__store.size===0}}},56298:function(p,v,c){c.d(v,{JW:function(){return M},My:function(){return D},RR:function(){return $},VF:function(){return I},av:function(){return j},fg:function(){return A},w9:function(){return O}});var f=c(83044),g=c(98253),x=c(12041),b=c(449),C=c(75766),w=c(77402),y=c(17352),_=c(71842),S=c(50025);const I={};let E=1;const T=new Set;function O(){function B(){return E+=10*(Math.random()+1),Math.round(E).toString(16)}let V=B();for(;T.has(V);)V=B();return T.add(V),V}const A=new w.$,j={},M=B=>{Object.keys(B).forEach(V=>{y.lang[V]?Object.assign(y.lang[V],B[V]):y.lang[V]=B[V]})},R=new WeakMap;function D(B,V,G="div",W=!1){const Q=(0,g.K)(V)?V:V?(0,C.u)(V.prototype):"jodit-utils",Z=R.get(B)||{},J=Q+G,ee=(0,x.h)(B)?B:B.j;if(!Z[J]){let re=ee.c,ce=(0,f.y)(B)&&B.o.shadowRoot?B.o.shadowRoot:B.od.body;if(W&&(0,f.y)(B)&&B.od!==B.ed){re=B.createInside;const ve=G==="style"?B.ed.head:B.ed.body;ce=(0,f.y)(B)&&B.o.shadowRoot?B.o.shadowRoot:ve}const he=re.element(G,{className:`jodit jodit-${(0,b.k)(Q)}-container jodit-box`});he.classList.add(`jodit_theme_${ee.o.theme||"default"}`),ce.appendChild(he),Z[J]=he,B.hookStatus("beforeDestruct",()=>{_.J.safeRemove(he),delete Z[J],Object.keys(Z).length&&R.delete(B)}),R.set(B,Z)}return Z[J].classList.remove("jodit_theme_default","jodit_theme_dark"),Z[J].classList.add(`jodit_theme_${ee.o.theme||"default"}`),Z[J]}const $=new S.bk},82317:function(p,v,c){c.d(v,{_:function(){return g}});var f=c(37923);const g=x=>(0,f.c)(x)?x:[x]},32709:function(p,v,c){c.d(v,{$r:function(){return x.$},_j:function(){return f._},uM:function(){return g.u}});var f=c(82317),g=c(42589),x=c(42448)},42589:function(p,v,c){function f(g){return Array.isArray(g)?g:g.split(/[,\s]+/)}c.d(v,{u:function(){return f}})},42448:function(p,v,c){c.d(v,{$:function(){return x}});var f=c(34796),g=c(44210);const x=function(...b){var C;return((0,f.a)(Array.from)?Array.from:(C=(0,g.c)("Array.from"))!==null&&C!==void 0?C:Array.from).apply(Array,b)}},89044:function(p,v,c){c.d(v,{D:function(){return f.D},w:function(){return f.w}});var f=c(59146)},59146:function(p,v,c){function f(x,b,...C){return b?window.setTimeout(x,b,...C):(x.call(null,...C),0)}function g(x){window.clearTimeout(x)}c.d(v,{D:function(){return g},w:function(){return f}})},78479:function(p,v,c){function f(){let g=!0;try{const x=document.createElement("input");x.type="color",x.value="!",g=x.type==="color"&&x.value!=="!"}catch(x){g=!1}return g}c.d(v,{k:function(){return f}})},9823:function(p,v,c){c.d(v,{AH:function(){return y.A},Bo:function(){return B.B},CE:function(){return _.C},E6:function(){return I.E},Et:function(){return j.E},Gp:function(){return S.n4},Kg:function(){return B.K},Lm:function(){return b.L},Mj:function(){return T.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 x.c},hH:function(){return W.h},kC:function(){return f.k},kO:function(){return S.kO},kf:function(){return M.k},l6:function(){return Z.l},mv:function(){return V.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 E.y},yL:function(){return D.y},zf:function(){return g.z}});var f=c(78479),g=c(99951),x=c(37923),b=c(9810),C=c(69810),w=c(69052),y=c(53701),_=c(21811),S=c(10058),I=c(3947),E=c(83044),T=c(82201),O=c(71274),A=c(34796),j=c(2461),M=c(12461),R=c(25376),D=c(92039),$=c(53470),B=c(98253),V=c(6939),G=c(59082),W=c(12041),Q=c(35642),Z=c(76776)},99951:function(p,v,c){function f(g){return!!g&&g instanceof DOMException&&g.name==="AbortError"}c.d(v,{z:function(){return f}})},37923:function(p,v,c){function f(g){return Array.isArray(g)}c.d(v,{c:function(){return f}})},9810:function(p,v,c){function f(g){return typeof g=="boolean"}c.d(v,{L:function(){return f}})},69810:function(p,v,c){c.d(v,{P:function(){return x},n:function(){return g}});var f=c(28616);function g(b,C){return b===C||(0,f.A)(b)===(0,f.A)(C)}function x(b,C){return b===C}},69052:function(p,v,c){function f(g){return typeof g=="function"}c.d(v,{T:function(){return f}})},21811:function(p,v,c){function f(g){return g.search(/<meta.*?Microsoft Excel\s[\d].*?>/)!==-1||g.search(/<meta.*?Microsoft Word\s[\d].*?>/)!==-1||g.search(/style="[^"]*mso-/)!==-1&&g.search(/<font/)!==-1}c.d(v,{C:function(){return f}})},53701:function(p,v,c){c.d(v,{A:function(){return g}});var f=c(98253);const g=x=>(0,f.K)(x)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(x.replace(/[\r\n]/g,""))},10058:function(p,v,c){c.d(v,{kO:function(){return w},n4:function(){return b},pV:function(){return C}});var f=c(55186),g=c(69052),x=c(35642);function b(y){return!(0,x.R)(y)&&(0,g.T)(y.init)}function C(y){return!(0,x.R)(y)&&(0,g.T)(y.destruct)}function w(y){return!(0,x.R)(y)&&f.J.isElement(y.container)}},3947:function(p,v,c){c.d(v,{E:function(){return x}});var f=c(12461),g=c(98253);function x(b){return(0,g.K)(b)&&(0,f.k)(b)&&(b=parseFloat(b)),typeof b=="number"&&Number.isFinite(b)&&!(b%1)}},83044:function(p,v,c){c.d(v,{y:function(){return g}});var f=c(69052);function g(x){return!!(x&&x instanceof Object&&(0,f.T)(x.constructor)&&(typeof Jodit!="undefined"&&x instanceof Jodit||x.isJodit))}},82201:function(p,v,c){c.d(v,{M:function(){return g}});var f=c(98253);const g=x=>(0,f.K)(x)&&x.length===23&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(x)},71274:function(p,v,c){c.d(v,{r:function(){return x}});var f=c(17352),g=c(55186);function x(b){return g.J.isNode(b)&&g.J.isTag(b,"span")&&b.hasAttribute("data-"+f.MARKER_CLASS)}},34796:function(p,v,c){function f(g){return!!g&&(typeof g).toLowerCase()==="function"&&(g===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(g)))}c.d(v,{a:function(){return f}})},2461:function(p,v,c){function f(g){return typeof g=="number"&&!isNaN(g)&&isFinite(g)}c.d(v,{E:function(){return f}})},12461:function(p,v,c){c.d(v,{k:function(){return g}});var f=c(98253);function g(x){if((0,f.K)(x)){if(!x.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;x=parseFloat(x)}return typeof x=="number"&&!isNaN(x)&&isFinite(x)}},25376:function(p,v,c){c.d(v,{Q:function(){return g}});var f=c(76776);function g(x){return!(!x||typeof x!="object"||x.nodeType||(0,f.l)(x)||x.constructor&&!{}.hasOwnProperty.call(x.constructor.prototype,"isPrototypeOf"))}},92039:function(p,v,c){function f(g){return g&&typeof g.then=="function"}c.d(v,{y:function(){return f}})},53470:function(p,v,c){c.d(v,{v:function(){return g}});var f=c(69052);function g(x){return!!x&&(0,f.T)(x.has)&&(0,f.T)(x.add)&&(0,f.T)(x.delete)}},98253:function(p,v,c){c.d(v,{B:function(){return x},K:function(){return g}});var f=c(37923);function g(b){return typeof b=="string"}function x(b){return(0,f.c)(b)&&g(b[0])}},6939:function(p,v,c){function f(g){if(g.includes(" "))return!1;if(typeof URL!="undefined")try{const b=new URL(g);return["https:","http:","ftp:","file:","rtmp:"].includes(b.protocol)}catch(b){return!1}const x=document.createElement("a");return x.href=g,!!x.hostname}c.d(v,{m:function(){return f}})},59082:function(p,v,c){function f(g){return!!g.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(g)&&g.trim().length>0}c.d(v,{u:function(){return f}})},12041:function(p,v,c){c.d(v,{h:function(){return g}});var f=c(69052);function g(x){return!!(x&&x instanceof Object&&(0,f.T)(x.constructor)&&x.isView)}},35642:function(p,v,c){function f(g){return g==null}c.d(v,{R:function(){return f}})},76776:function(p,v,c){function f(g){return g!=null&&g===g.window}c.d(v,{l:function(){return f}})},96768:function(p,v,c){c.d(v,{s:function(){return f}});const f=g=>{if(g==="rgba(0, 0, 0, 0)"||g==="")return!1;if(!g)return"#000000";if(g.substr(0,1)==="#")return g;const x=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(g)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(g);if(!x)return"#000000";const b=parseInt(x[2],10),C=parseInt(x[3],10);let w=(parseInt(x[4],10)|C<<8|b<<16).toString(16).toUpperCase();for(;6>w.length;)w="0"+w;return x[1]+"#"+w}},93495:function(p,v,c){c.d(v,{s:function(){return f.s}});var f=c(96768)},56176:function(p,v,c){c.d(v,{Z:function(){return w}});var f=c(17352),g=c(55186),x=c(59101),b=c(58720);function C(y){return y.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(y){if(y.indexOf("<html ")===-1)return y;y=(y=y.substring(y.indexOf("<html "),y.length)).substring(0,y.lastIndexOf("</html>")+7);const _=document.createElement("iframe");_.style.display="none",document.body.appendChild(_);let S="",I=[];try{const E=_.contentDocument||(_.contentWindow?_.contentWindow.document:null);if(E){E.open(),E.write(y),E.close();try{for(let T=0;E.styleSheets.length>T;T+=1){const O=E.styleSheets[T].cssRules;for(let A=0;O.length>A;A+=1)O[A].selectorText!==""&&(I=(0,b.$$)(O[A].selectorText,E.body),I.forEach(j=>{j.style.cssText=C(O[A].style.cssText+";"+j.style.cssText)}))}}catch(T){if(!f.IS_PROD)throw T}g.J.each(E.body,T=>{if(g.J.isElement(T)){const O=T,A=O.getAttribute("style");A&&(O.style.cssText=C(A)),O.hasAttribute("style")&&!O.getAttribute("style")&&O.removeAttribute("style")}}),S=E.firstChild?(0,x.Bq)(E.body.innerHTML):""}}catch(E){}finally{g.J.safeRemove(_)}return S&&(y=S),(0,x.Bq)(y.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},94450:function(p,v,c){c.d(v,{w:function(){return b}});var f=c(55186),g=c(42448),x=c(59101);function b(C){C.indexOf("<html ")!==-1&&(C=(C=C.substring(C.indexOf("<html "),C.length)).substring(0,C.lastIndexOf("</html>")+7));let w="";try{const y=document.createElement("div");y.innerHTML=C;const _=[];y.firstChild&&f.J.each(y,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":f.J.unwrap(S);break;default:(0,g.$)(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)}}),f.J.safeRemove.apply(null,_),w=y.innerHTML}catch(y){}return w&&(C=w),(C=C.split(/(\n)/).filter(x.Bq).join(`
3176
3176
  `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},4960:function(p,v,c){function f(g){const x=document.createElement("div");return x.textContent=g,x.innerHTML}c.d(v,{G:function(){return f}})},16113:function(p,v,c){c.d(v,{Gq:function(){return x.G},HA:function(){return b.H},Kq:function(){return w.K},ZM:function(){return f.Z},t_:function(){return C.t},vn:function(){return C.v},wE:function(){return g.w}});var f=c(56176),g=c(94450),x=c(4960),b=c(10025),C=c(26328),w=c(61793)},10025:function(p,v,c){function f(g){return g.replace(/\r\n|\r|\n/g,"<br/>")}c.d(v,{H:function(){return f}})},26328:function(p,v,c){c.d(v,{t:function(){return x},v:function(){return b}});var f=c(55186),g=c(97369);function x(C,w){(f.J.isElement(C)||f.J.isFragment(C))&&(w.removeOnError&&(b(C),(0,g.$$)("[onerror]",C).forEach(y=>b(y,w))),w.safeJavaScriptLink&&(b(C),(0,g.$$)('a[href^="javascript"]',C).forEach(y=>b(y,w))))}function b(C,{safeJavaScriptLink:w,removeOnError:y}={safeJavaScriptLink:!0,removeOnError:!0}){if(!f.J.isElement(C))return!1;let _=!1;y&&C.hasAttribute("onerror")&&((0,g.attr)(C,"onerror",null),_=!0);const S=C.getAttribute("href");return w&&S&&S.trim().indexOf("javascript")===0&&((0,g.attr)(C,"href",location.protocol+"//"+S),_=!0),_}},61793:function(p,v,c){c.d(v,{K:function(){return _}});var f=c(55186),g=c(98253),x=c(59101),b=c(97369);const C=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),w=new Set(["script","style"]),y=new Set(["br","hr","input"]);function _(S,I=document,E=null){const T=I.createElement("div");return(0,g.K)(S)?T.innerHTML=S:T.appendChild(S),(0,b.$$)("*",T).forEach(O=>{const A=O.parentNode;if(!A)return;if(E&&f.J.isTag(O,E)){const M=O.nodeName.toLowerCase(),R=f.J.isTag(O,y)?`%%%jodit-single-${M}%%%`:`%%%jodit-${M}%%%${_(O.innerHTML,I,E)}%%%/jodit-${M}%%%`;return f.J.before(O,I.createTextNode(R)),void f.J.safeRemove(O)}if(f.J.isTag(O,w))return void f.J.safeRemove(O);if(!f.J.isTag(O,C))return;const j=O.nextSibling;f.J.isText(j)&&/^\s/.test(j.nodeValue||"")||j&&A.insertBefore(I.createTextNode(" "),j)}),(0,x.Bq)(T.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(O,A,j,M)=>`<${A?"/":""}${M}>`)}},65147:function(p,v,c){c.r(v),c.d(v,{CamelCaseToKebabCase:function(){return _.N},NUMBER_FIELDS_REG:function(){return w.b$},applyStyles:function(){return C.ZM},asArray:function(){return f._j},camelCase:function(){return _.xQ},cleanFromWord:function(){return C.wE},clearTimeout:function(){return g.D},colorToHex:function(){return b.s},fuzzySearchIndex:function(){return _.Hp},getContentWidth:function(){return y.y6},getScrollParent:function(){return y.mH},hasBrowserColorPicker:function(){return x.kC},hasContainer:function(){return x.kO},htmlspecialchars:function(){return C.Gq},i18n:function(){return _.Ru},innerWidth:function(){return y.xM},isAbortError:function(){return x.zf},isArray:function(){return x.cy},isBoolean:function(){return x.Lm},isDestructable:function(){return x.pV},isEqual:function(){return x.n4},isFastEqual:function(){return x.P5},isFunction:function(){return x.Tn},isHTML:function(){return x.AH},isHtmlFromWord:function(){return x.CE},isInitable:function(){return x.Gp},isInt:function(){return x.E6},isJoditObject:function(){return x.y0},isLicense:function(){return x.Mj},isMarker:function(){return x.rg},isNativeFunction:function(){return x.a3},isNumber:function(){return x.Et},isNumeric:function(){return x.kf},isPlainObject:function(){return x.Qd},isPromise:function(){return x.yL},isSet:function(){return x.vM},isString:function(){return x.Kg},isStringArray:function(){return x.Bo},isURL:function(){return x.mv},isValidName:function(){return x.uV},isViewObject:function(){return x.hH},isVoid:function(){return x.Rd},isWindow:function(){return x.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 y.cY},position:function(){return y.G1},safeHTML:function(){return C.t_},sanitizeHTMLElement:function(){return C.vn},setTimeout:function(){return g.w},size:function(){return y.Ej},splitArray:function(){return f.uM},sprintf:function(){return _.nv},stringify:function(){return _.As},stripTags:function(){return C.Kq},toArray:function(){return f.$r},trim:function(){return _.Bq},trimChars:function(){return _.Gd},trimInv:function(){return _.gj},ucfirst:function(){return _.Z2}});var f=c(32709),g=c(89044),x=c(9823),b=c(93495),C=c(16113),w=c(65499),y=c(34125),_=c(6589),S=c(97369),I={};for(var E 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(E)&&(I[E]=function(T){return S[T]}.bind(0,E));c.d(v,I)},65499:function(p,v,c){c.d(v,{$2:function(){return f.$},Fd:function(){return C.F},Vd:function(){return w.V},b$:function(){return g.b$},f:function(){return b.f},iy:function(){return g.iy},jB:function(){return x.j},l2:function(){return _.l},n8:function(){return g.n8},rn:function(){return y.r}});var f=c(73446),g=c(59678),x=c(74995),b=c(31138),C=c(92998),w=c(13265),y=c(7920),_=c(39344)},73446:function(p,v,c){c.d(v,{$:function(){return x}});var f=c(96768),g=c(59101);const x=b=>{const C=["#"];let w=(0,f.s)(b);if(!w)return!1;if(w=(0,g.Bq)(w.toUpperCase()),w=w.substring(1),w.length===3){for(let y=0;3>y;y+=1)C.push(w[y]),C.push(w[y]);return C.join("")}return w.length>6&&(w=w.slice(0,6)),"#"+w}},59678:function(p,v,c){c.d(v,{b$:function(){return C},iy:function(){return y},n8:function(){return w}});var f=c(12461),g=c(35642),x=c(96768),b=c(449);const C=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function w(_,S){return!(0,g.R)(S)&&C.test(_)&&(0,f.k)(S.toString())?parseInt(S.toString(),10)+"px":S}function y(_,S){if((0,b.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,f.k)(S)?Number(S):S}return/color/i.test(_)&&/^rgb/i.test(S.toString())&&(0,x.s)(S.toString())||S}},74995:function(p,v,c){c.d(v,{j:function(){return x}});var f=c(17352),g=c(59101);function x(b){const C={},w={meta:1,ctrl:2,control:2,alt:3,shift:4};return b.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(y=>(0,g.Bq)(y.toLowerCase())).map(y=>f.KEY_ALIASES[y]||y).sort((y,_)=>w[y]&&!w[_]?-1:!w[y]&&w[_]?1:w[y]&&w[_]?w[y]-w[_]:y>_?1:-1).filter(y=>!C[y]&&y!==""&&(C[y]=!0)).join("+")}},31138:function(p,v,c){c.d(v,{f:function(){return f}});const f=(g,x=8)=>{const b=[];for(;g.length;)b.push(g.substr(0,x)),g=g.substr(x);return b[1]=b[1].replace(/./g,"*"),b[2]=b[2].replace(/./g,"*"),b.join("-")}},92998:function(p,v,c){c.d(v,{F:function(){return g}});var f=c(59101);const g=(...x)=>x.filter(b=>(0,f.Bq)(b).length).map((b,C)=>(b=b.replace(/([^:])[\\/]+/g,"$1/"),C&&(b=b.replace(/^\//,"")),C!==x.length-1&&(b=b.replace(/\/$/,"")),b)).join("/")},13265:function(p,v,c){c.d(v,{V:function(){return f}});const f=g=>g.split("/").reduce((x,b)=>{switch(b){case"":case".":break;case"..":x.pop();break;default:x.push(b)}return x},[]).join("/")+(g.endsWith("/")?"/":"")},7920:function(p,v,c){c.d(v,{r:function(){return f}});const f=(g,x)=>/^[0-9]+$/.test(g.toString())?g+x:g.toString()},39344:function(p,v,c){c.d(v,{l:function(){return f}});const f=(...g)=>g.filter(x=>x.length).map(x=>x.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},73780:function(p,v,c){c.d(v,{y:function(){return f}});const f=(g,x)=>{const b=w=>parseInt(w,10),C=x.getComputedStyle(g);return g.offsetWidth-b(C.getPropertyValue("padding-left")||"0")-b(C.getPropertyValue("padding-right")||"0")}},98228:function(p,v,c){c.d(v,{m:function(){return x}});var f=c(55186),g=c(97369);function x(b){if(!b)return null;const C=f.J.isHTMLElement(b),w=C&&(0,g.css)(b,"overflowY");return C&&w!=="visible"&&w!=="hidden"&&b.scrollHeight>=b.clientHeight?b:x(b.parentNode)||document.scrollingElement||document.body}},34125:function(p,v,c){c.d(v,{Ej:function(){return b.E},G1:function(){return w.G},cY:function(){return C.c},mH:function(){return g.m},xM:function(){return x.x},y6:function(){return f.y}});var f=c(73780),g=c(98228),x=c(49744),b=c(95350),C=c(91594),w=c(27594)},49744:function(p,v,c){c.d(v,{x:function(){return f}});const f=(g,x)=>{const b=x.getComputedStyle(g);let C=g.clientWidth;return C-=parseFloat(b.paddingLeft||"0")+parseFloat(b.paddingRight||"0"),C}},95350:function(p,v,c){c.d(v,{E:function(){return g}});var f=c(9823);function g(x){return(0,f.Kg)(x)||(0,f.cy)(x)?x.length:(0,f.Qd)(x)?Object.keys(x).length:0}},91594:function(p,v,c){c.d(v,{c:function(){return f}});const f=(g,x,b,C=!1)=>{let w;try{w=g.getBoundingClientRect()}catch(R){w={top:0,bottom:0,left:0,right:0,width:0,height:0}}const y=b.body,_=b.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},S=b.defaultView||b.parentWindow,I=S.pageYOffset||_.scrollTop||y.scrollTop,E=S.pageXOffset||_.scrollLeft||y.scrollLeft,T=_.clientTop||y.clientTop||0,O=_.clientLeft||y.clientLeft||0;let A,j;const M=x.iframe;if(!C&&x&&x.options&&x.o.iframe&&M){const{top:R,left:D}=f(M,x,x.od,!0);A=w.top+R,j=w.left+D}else A=w.top+I-T,j=w.left+E-O;return{top:Math.round(A),left:Math.round(j),width:w.width,height:w.height}}},27594:function(p,v,c){c.d(v,{G:function(){return g}});var f=c(83044);function g(x,b,C=!1){var w,y;const _=x.getBoundingClientRect();let S=_.left,I=_.top;if((0,f.y)(b)&&b.iframe&&b.ed.body.contains(x)&&!C){const{left:E,top:T}=g(b.iframe,b,!0);S+=E,I+=T}return{left:Math.round(S),top:Math.round(I),width:Math.round((w=x.offsetWidth)!==null&&w!==void 0?w:_.width),height:Math.round((y=x.offsetHeight)!==null&&y!==void 0?y:_.height)}}},83260:function(p,v,c){c.d(v,{x:function(){return f}});const f=g=>g.replace(/([-_])(.)/g,(x,b,C)=>C.toUpperCase())},67975:function(p,v,c){c.d(v,{H:function(){return g}});var f=c(17352);function g(x,b,C=0,w=1){let y=0,_=0,S=-1,I=0,E=0;for(_=C;x.length>y&&b.length>_;)x[y].toLowerCase()===b[_].toLowerCase()?(y++,I++,E=0,S===-1&&(S=_)):y>0&&(w>E||b[_]===f.INVISIBLE_SPACE?(E++,I++):(y=0,S=-1,I=0,E=0,_--)),_++;return y===x.length?[S,I]:[-1,0]}},91093:function(p,v,c){c.d(v,{R:function(){return y},n:function(){return w}});var f=c(17352),g=c(98253),x=c(10467),b=c(97369),C=c(36115);const w=(_,S)=>{if(!S||!S.length)return _;const I=/%([sd])/g;let E=I.exec(_),T=_,O=0;for(;E&&S[O]!==void 0;)T=T.replace(E[0],S[O].toString()),O+=1,E=I.exec(_);return T};function y(_,S,I){if(!(0,g.K)(_))throw(0,b.error)("i18n: Need string in first argument");if(!_.length)return _;const E=!!(I!=null&&I.debugLanguage);let T={};const O=D=>S&&S.length?w(D,S):D,A=(0,b.defaultLanguage)(C.T.defaultOptions.language,C.T.defaultOptions.language),j=(0,b.defaultLanguage)(I==null?void 0:I.language,A),M=D=>{if(!D)return;if((0,g.K)(D[_]))return O(D[_]);const $=_.toLowerCase();if((0,g.K)(D[$]))return O(D[$]);const B=(0,x.Z)(_);return(0,g.K)(D[B])?O(D[B]):void 0};f.lang[j]!==void 0?T=f.lang[j]:E||(T=f.lang[A]!==void 0?f.lang[A]:f.lang.en);const R=I==null?void 0:I.i18n;if(R&&R[j]){const D=M(R[j]);if(D)return D}return M(T)||(!E&&f.lang.en&&(0,g.K)(f.lang.en[_])&&f.lang.en[_]?O(f.lang.en[_]):E?"{"+_+"}":O(_))}},6589:function(p,v,c){c.d(v,{As:function(){return C.A},Bq:function(){return w.Bq},Gd:function(){return w.Gd},Hp:function(){return g.H},N:function(){return b.N},Ru:function(){return x.R},Z2:function(){return y.Z},gj:function(){return w.gj},kW:function(){return b.k},nv:function(){return x.n},xQ:function(){return f.x}});var f=c(83260),g=c(67975),x=c(91093),b=c(449),C=c(28616),w=c(59101),y=c(10467)},449:function(p,v,c){c.d(v,{N:function(){return g},k:function(){return f}});const f=x=>x.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),g=x=>x.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},28616:function(p,v,c){function f(g,x={}){if(typeof g!="object")return String(g);const b=new Set(x.excludeKeys),C=new WeakMap;return JSON.stringify(g,(w,y)=>{if(!b.has(w)){if(typeof y=="object"&&y!=null){if(C.get(y))return"[refObject]";C.set(y,!0)}return y}},x.prettify)}c.d(v,{A:function(){return f}})},59101:function(p,v,c){c.d(v,{Bq:function(){return g},Gd:function(){return x},gj:function(){return b}});var f=c(17352);function g(C){return C.replace((0,f.SPACE_REG_EXP_END)(),"").replace((0,f.SPACE_REG_EXP_START)(),"")}function x(C,w){return C.replace(RegExp(`[${w}]+$`),"").replace(RegExp(`^[${w}]+`),"")}function b(C){return C.replace((0,f.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,f.INVISIBLE_SPACE_REG_EXP_START)(),"")}},10467:function(p,v,c){function f(g){return g.length?g[0].toUpperCase()+g.substring(1):""}c.d(v,{Z:function(){return f}})},40080:function(p,v,c){c.d(v,{Mr:function(){return x},Op:function(){return C},Xm:function(){return b}});var f=c(71842),g=c(38322);function x(w,y){y&&y!=="normal"?y!=="center"?((0,g.A)(w,"float",y),(0,g.a)(w)):(0,g.A)(w,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,g.A)(w,"float")&&["right","left"].indexOf((0,g.A)(w,"float").toString().toLowerCase())!==-1&&(0,g.A)(w,"float",""),(0,g.a)(w))}function b(w){f.J.each(w,y=>{f.J.isHTMLElement(y)&&y.style.textAlign&&(y.style.textAlign="",y.style.cssText.trim().length||y.removeAttribute("style"))})}function C(w,y){if(f.J.isNode(y)&&f.J.isElement(y))switch(b(y),w.toLowerCase()){case"justifyfull":y.style.textAlign="justify";break;case"justifyright":y.style.textAlign="right";break;case"justifyleft":y.style.textAlign="left";break;case"justifycenter":y.style.textAlign="center"}}},27301:function(p,v,c){c.d(v,{Qt:function(){return y},S5:function(){return w},w4:function(){return C},x_:function(){return _}});var f=c(98253),g=c(60346);const x=new Map,b=S=>(I,E)=>Pn(this,null,function*(){if(x.has(E))return x.get(E);const T=S(I,E);return x.set(E,T),T}),C=b((S,I)=>S.async.promise((E,T)=>{if(S.isInDestruct)return T();const O=S.c.element("script",{type:"text/javascript",async:!0,src:(0,g.X)(I)});S.od.body.appendChild(O),S.e.on(O,"error",T).on(O,"load",E)})),w=b((S,I)=>S.async.promise((E,T)=>{if(S.isInDestruct)return T();const O=S.c.element("link");O.rel="stylesheet",O.media="all",O.crossOrigin="anonymous",!S.isInDestruct&&S.e.on(O,"load",()=>E(O)).on(O,"error",T),O.href=(0,g.X)(I),S.o.shadowRoot?S.o.shadowRoot.appendChild(O):S.od.body.appendChild(O)}));function y(S,I,E=0){return(0,f.K)(I[E])?C(S,I[E]).then(()=>y(S,I,E+1)):Promise.resolve()}function _(S,I,E=0){return(0,f.K)(I[E])?w(S,I[E]).then(()=>_(S,I,E+1)):Promise.resolve()}},26150:function(p,v,c){c.d(v,{C:function(){return b}});var f=c(9823),g=c(449),x=c(38322);function b(C,w,y){if(!C||!(0,f.Tn)(C.getAttribute))return null;if(!(0,f.Kg)(w))return Object.keys(w).forEach(S=>{const I=w[S];(0,f.Qd)(I)&&S==="style"?(0,x.A)(C,I):(S==="className"&&(S="class"),b(C,S,I))}),null;let _=(0,g.N)(w);if(/^-/.test(_)){const S=b(C,`data${_}`);if(S)return S;_=_.substr(1)}if(y!==void 0){if(y!=null){let S=y.toString();return C.nodeName!=="IMG"||_!=="width"&&_!=="height"||(S=S.replace("px","")),C.setAttribute(_,S),S}C.hasAttribute(_)&&C.removeAttribute(_)}return C.getAttribute(_)}},65717:function(p,v,c){c.d(v,{T:function(){return f}});const f=g=>{const x=navigator.userAgent.toLowerCase(),b=/(firefox)[\s/]([\w.]+)/.exec(x)||/(chrome)[\s/]([\w.]+)/.exec(x)||/(webkit)[\s/]([\w.]+)/.exec(x)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(x)||/(msie)[\s]([\w.]+)/.exec(x)||/(trident)\/([\w.]+)/.exec(x)||0>x.indexOf("compatible")||[];return g==="version"?b[2]:g==="webkit"?b[1]==="chrome"||b[1]==="webkit":g==="ff"?b[1]==="firefox":g==="msie"?b[1]==="trident"||b[1]==="msie":b[1]===g}},76104:function(p,v,c){c.d(v,{Z:function(){return g}});var f=c(25376);const g=(x,b)=>{const C=[],w=encodeURIComponent;for(const y in x)if(Object.prototype.hasOwnProperty.call(x,y)){const _=b?b+"["+y+"]":y,S=x[y];C.push((0,f.Q)(S)?g(S,_):w(_)+"="+w(S))}return C.join("&")}},60346:function(p,v,c){c.d(v,{X:function(){return f}});const f=g=>(window.location.protocol==="file:"&&/^\/\//.test(g)&&(g="https:"+g),g)},86248:function(p,v,c){c.d(v,{V:function(){return S},t:function(){return _}});var f=c(37923),g=c(25376),x=c(98253),b=c(35642),C=c(49429),w=c(84976),y=c(36115);function _(I,E,T=0){if(Object.getPrototypeOf(I)!==Object.prototype)return I;const O=y.T.defaultOptions;if((0,x.K)(I.preset)){if(O.presets[I.preset]!==void 0){const j=O.presets[I.preset];Object.keys(j).forEach(M=>{(0,b.R)(I[M])&&(I[M]=j[M])})}delete I.preset}const A={};return Object.keys(I).forEach(j=>{const M=I[j],R=E?E[j]:null;A[j]=(0,g.Q)(M)&&(0,g.Q)(R)&&!(0,C.mA)(M)?_(M,R,T+1):T!==0&&(0,f.c)(M)&&!(0,C.mA)(M)&&(0,f.c)(R)?[...M,...R.slice(M.length)]:M}),Object.setPrototypeOf(A,E),A}function S(I){return(0,w.HP)(I,!1).reduce((E,T)=>(E[T]=I[T],E),{})}},82807:function(p,v,c){c.d(v,{m:function(){return x}});var f=c(6939),g=c(70807);const x=(b,C=400,w=345)=>{if(!(0,f.m)(b))return b;const y=document.createElement("a"),_=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;y.href=b,C||(C=400),w||(w=345);const S=y.protocol||"";switch(y.hostname){case"www.vimeo.com":case"vimeo.com":return _.test(b)?b.replace(_,'<iframe width="'+C+'" height="'+w+'" src="'+S+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):b;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const I=y.search?(0,g.m)(y.search):{v:y.pathname.substr(1)};return I.v?'<iframe width="'+C+'" height="'+w+'" src="'+S+"//www.youtube.com/embed/"+I.v+'" frameborder="0" allowfullscreen></iframe>':b}}return b}},38322:function(p,v,c){c.d(v,{A:function(){return w},a:function(){return y}});var f=c(9810),g=c(25376),x=c(59678),b=c(83260),C=c(449);function w(_,S,I,E=!1){if((0,f.L)(I)&&(E=I,I=void 0),(0,g.Q)(S)||I!==void 0){const R=(D,$,B)=>{(B=(0,x.n8)($,B))===void 0||B!=null&&w(D,$,!0)===(0,x.iy)($,B)||(D.style[$]=B)};if((0,g.Q)(S)){const D=Object.keys(S);for(let $=0;D.length>$;$+=1)R(_,(0,b.x)(D[$]),S[D[$]])}else R(_,(0,b.x)(S),I);return""}const T=(0,C.k)(S),O=_.ownerDocument||document,A=!!O&&(O.defaultView||O.parentWindow),j=_.style[S];let M="";return j!==void 0&&j!==""?M=j:A&&!E&&(M=A.getComputedStyle(_).getPropertyValue(T)),x.b$.test(S)&&/^[-+]?[0-9.]+px$/.test(M.toString())&&(M=parseInt(M.toString(),10)),(0,x.iy)(S,M)}const y=_=>{w(_,"display")==="block"&&w(_,"display","");const{style:S}=_;S.marginLeft==="auto"&&S.marginRight==="auto"&&(S.marginLeft="",S.marginRight="")}},34446:function(p,v,c){c.d(v,{X:function(){return f}});const f=g=>{if(typeof navigator!="undefined"&&navigator.userAgent.indexOf("Mac OS X")!==-1){if(g.metaKey&&!g.altKey)return!0}else if(g.ctrlKey&&!g.altKey)return!0;return!1}},72197:function(p,v,c){c.d(v,{m:function(){return x}});var f=c(12041);const g=new WeakMap,x=(b,C,w)=>{let y=g.get(b);if(!y){y={},g.set(b,y);let _=null;(0,f.h)(b.j)&&(_=b.j.e),(0,f.h)(b)&&(_=b.e),_&&_.on("beforeDestruct",()=>{g.delete(b)})}return w===void 0?y[C]:(y[C]=w,w)}},17527:function(p,v,c){c.d(v,{e:function(){return g}});var f=c(98253);const g=(x,b="en")=>x!=="auto"&&(0,f.K)(x)?x:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substring(0,2):b},76166:function(p,v,c){c.d(v,{FI:function(){return x},fF:function(){return b},z3:function(){return g}});var f=c(20222);function g(C){return new TypeError(C)}function x(C){return new f.Rc(C)}function b(C){return new f.ZW(C)}},21567:function(p,v,c){function f(x="Aborted"){return new DOMException(x,"AbortError")}c.d(v,{h:function(){return f},r:function(){return g}});const g=c(99951).z},30495:function(p,v,c){c.d(v,{R:function(){return f}});class f extends Error{constructor(x){super(x),Object.setPrototypeOf(this,f.prototype)}}},20222:function(p,v,c){c.d(v,{Rc:function(){return g.R},ZW:function(){return x.Z},h2:function(){return f.h},rV:function(){return f.r}});var f=c(21567),g=c(30495),x=c(34899)},34899:function(p,v,c){c.d(v,{Z:function(){return f}});class f extends TypeError{constructor(x){super(x),Object.setPrototypeOf(this,f.prototype)}}},50156:function(p,v,c){c.d(v,{FI:function(){return f.FI},Rc:function(){return g.Rc},ZW:function(){return g.ZW},fF:function(){return f.fF},h2:function(){return g.h2},rV:function(){return g.rV},z3:function(){return f.z3}});var f=c(76166),g=c(20222)},49429:function(p,v,c){c.d(v,{Hp:function(){return x},mA:function(){return g},y6:function(){return b}});var f=c(28616);function g(C){return C&&C.isAtom}function x(C){return Object.defineProperty(C,"isAtom",{enumerable:!1,value:!0,configurable:!1}),C}function b(C){return JSON.parse((0,f.A)(C))}},75766:function(p,v,c){c.d(v,{M:function(){return g},u:function(){return x}});var f=c(69052);const g=new Map,x=b=>{var C;if((0,f.T)(b.className))return b.className();const w=((C=b.constructor)===null||C===void 0?void 0:C.originalConstructor)||b.constructor;if(g.has(w))return g.get(w);if(w.name)return w.name;const y=new RegExp(/^\s*function\s*(\S*)\s*\(/),_=w.toString().match(y);return _?_[1]:""}},16841:function(p,v,c){c.d(v,{J:function(){return x}});var f=c(98253),g=c(35642);function x(b,C){if(!(0,f.K)(b)||!b.length)return null;const w=b.split(".");let y=C;try{for(const _ of w){if((0,g.R)(y[_]))return null;y=y[_]}}catch(_){return null}return(0,g.R)(y)?null:y}},99898:function(p,v,c){c.d(v,{z:function(){return f}});const f=g=>{if(/^[0-9.]+$/.test(g.toString()))return parseFloat(g);const x=g.substr(-2,2).toUpperCase(),b=["KB","MB","GB","TB"],C=parseFloat(g.substr(0,g.length-2));return b.indexOf(x)!==-1?C*Math.pow(1024,b.indexOf(x)+1):parseInt(g,10)}},97369:function(p,v,c){c.r(v),c.d(v,{$$:function(){return J.$$},ConfigFlatten:function(){return I.V},ConfigProto:function(){return I.t},ConnectionError:function(){return M.Rc},LimitedStack:function(){return re.d},OptionsError:function(){return M.ZW},abort:function(){return M.h2},alignElement:function(){return f.Op},appendScriptAsync:function(){return g.w4},appendStyleAsync:function(){return g.S5},attr:function(){return w.C},browser:function(){return y.T},buildQuery:function(){return _.Z},call:function(){return ce.T1},callPromise:function(){return ce.o_},clearAlign:function(){return f.Xm},clearCenterAlign:function(){return T.a},cns:function(){return V.f},completeUrl:function(){return S.X},connection:function(){return M.FI},convertMediaUrlToVideoEmbed:function(){return E.m},css:function(){return T.A},cssPath:function(){return J.bE},ctrlKey:function(){return O.X},dataBind:function(){return A.m},defaultLanguage:function(){return j.e},error:function(){return M.z3},fastClone:function(){return R.y6},get:function(){return D.J},getClassName:function(){return $.u},getDataTransfer:function(){return ce.my},getXPathByElement:function(){return J.fz},hAlignElement:function(){return f.Mr},humanSizeToBytes:function(){return B.z},inView:function(){return Z.l},isAbort:function(){return M.rV},isAtom:function(){return R.mA},keepNames:function(){return $.M},keys:function(){return ce.HP},loadImage:function(){return ce.yt},loadNext:function(){return g.Qt},loadNextStyle:function(){return g.x_},markAsAtomic:function(){return R.Hp},markDeprecated:function(){return V.B},markOwner:function(){return ce.b_},memorizeExec:function(){return ce.qN},options:function(){return M.fF},parseQuery:function(){return G.m},previewBox:function(){return W.u},refs:function(){return J.DY},reset:function(){return Q.c},resolveElement:function(){return J.tI},scrollIntoViewIfNeeded:function(){return Z.$},set:function(){return ee.h}});var f=c(40080),g=c(27301),x=c(28712),b={};for(var C in x)0>["default","alignElement","clearAlign","hAlignElement","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(C)&&(b[C]=function(he){return x[he]}.bind(0,C));c.d(v,b);var w=c(26150),y=c(65717),_=c(76104),S=c(60346),I=c(86248),E=c(82807),T=c(38322),O=c(34446),A=c(72197),j=c(17527),M=c(50156),R=c(49429),D=c(16841),$=c(75766),B=c(99898),V=c(67400),G=c(70807),W=c(98434),Q=c(44210),Z=c(641),J=c(58720),ee=c(40677),re=c(70069),ce=c(84976)},67400:function(p,v,c){c.d(v,{B:function(){return g},f:function(){return f}});const f=console;function g(x,b=[""],C=null){return(...w)=>(f.warn(`Method "${b[0]}" deprecated.`+(b[1]?` Use "${b[1]}" instead`:"")),x.call(C,...w))}},70807:function(p,v,c){c.d(v,{m:function(){return f}});const f=g=>{const x={},b=g.substring(1).split("&");for(let C=0;b.length>C;C+=1){const w=b[C].split("=");x[decodeURIComponent(w[0])]=decodeURIComponent(w[1]||"")}return x}},98434:function(p,v,c){c.d(v,{u:function(){return w}});var f=c(55186),g=c(98253),x=c(26150),b=c(38322),C=c(58720);function w(y,_,S="px",I=null){const E=[],T=function(O,A){const j=[];try{(0,C.$$)("img",O.editor).forEach(M=>{const R=[(0,x.C)(M,"width"),(0,x.C)(M,"height"),M.src];(0,x.C)(M,{width:M.offsetWidth+A,height:M.offsetHeight+A});const D=O.createInside.a();O.ed.body.appendChild(D),D.href=M.src,M.src=D.href,f.J.safeRemove(D),j.push(()=>{var $;M.src=($=R[2])!==null&&$!==void 0?$:"",(0,x.C)(M,{width:R[0]||null,height:R[1]||null})})})}catch(M){throw j.forEach(R=>R()),j.length=0,M}return j}(y,S);try{const O=y.e.fire("beforePreviewBox",_,S);if(O!=null)return O;let A=y.c.div("jodit__preview-box jodit-context");I&&I.appendChild(A),(0,b.A)(A,{position:"relative",padding:16});const j=y.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${y.i18n("Empty")}</div>`;if(y.iframe){const R=y.create.element("iframe");(0,b.A)(R,{minWidth:800,minHeight:600,border:0}),A.appendChild(R);const D=R.contentWindow;if(D&&(y.e.fire("generateDocumentStructure.iframe",D.document,y),A=D.document.body,typeof ResizeObserver=="function")){let $=!1;const B=D.document.body,V=new ResizeObserver(y.async.debounce(()=>{V.unobserve(B),R.style.height=`${B.offsetHeight+20}px`,y.async.requestAnimationFrame(()=>{!$&&V.observe(B)})},100)),G=()=>{$=!0,V.unobserve(B),V.disconnect(),y.e.off("beforeDestruct",G)};E.push(G),y.e.on("beforeDestruct",G)}}else(0,b.A)(A,{minWidth:1024,minHeight:600,border:0});const M=(R,D)=>{const $=(0,g.K)(D)?y.c.div():D;(0,g.K)(D)&&($.innerHTML=D);for(let B=0;$.childNodes.length>B;B+=1){const V=$.childNodes[B];if(f.J.isElement(V)){const G=R.ownerDocument.createElement(V.nodeName);for(let W=0;V.attributes.length>W;W+=1)(0,x.C)(G,V.attributes[W].nodeName,V.attributes[W].nodeValue);V.childNodes.length===0||f.J.isTag(V,"table")?V.nodeName==="SCRIPT"?V.textContent&&(G.textContent=V.textContent):V.innerHTML&&(G.innerHTML=V.innerHTML):M(G,V);try{R.appendChild(G)}catch(W){}}else try{R.appendChild(V.cloneNode(!0))}catch(G){}}};return M(A,j),y.e.fire("afterPreviewBox",A),[A,()=>{E.forEach(R=>R())}]}finally{T.forEach(O=>O())}}},44210:function(p,v,c){c.d(v,{c:function(){return C}});var f=c(17352),g=c(69052),x=c(16841);const b={};function C(w){var y,_;if(!(w in b)){const S=document.createElement("iframe");try{if(S.src="about:blank",document.body.appendChild(S),!S.contentWindow)return null;const I=(0,x.J)(w,S.contentWindow),E=(0,x.J)(w.split(".").slice(0,-1).join("."),S.contentWindow);(0,g.T)(I)&&(b[w]=I.bind(E))}catch(I){if(!f.IS_PROD)throw I}finally{(y=S.parentNode)===null||y===void 0||y.removeChild(S)}}return(_=b[w])!==null&&_!==void 0?_:null}},641:function(p,v,c){c.d(v,{$:function(){return x},l:function(){return g}});var f=c(55186);function g(b,C,w){let y=b.getBoundingClientRect(),_=b;const S=y.top,I=y.height;for(;_&&_!==C&&_.parentNode;)if(_=_.parentNode,y=_.getBoundingClientRect(),S>y.bottom||y.top>=S+I)return!1;return(w.documentElement&&w.documentElement.clientHeight||0)>=S}function x(b,C,w){f.J.isHTMLElement(b)&&!g(b,C,w)&&(C.clientHeight!==C.scrollHeight&&(C.scrollTop=b.offsetTop),g(b,C,w)||b.scrollIntoView())}},58720:function(p,v,c){c.d(v,{$$:function(){return S},DY:function(){return E},bE:function(){return T},fz:function(){return I},tI:function(){return O}});var f=c(17352),g=c(55186),x=c(42448),b=c(98253),C=c(83260),w=c(97369);let y=1;const _=()=>(y++,y);function S(A,j){let M;if(f.IS_ES_NEXT||!/:scope/.test(A)||!f.IS_IE||j&&j.nodeType===Node.DOCUMENT_NODE)M=j.querySelectorAll(A);else{const R=j.id,D=R||"_selector_id_"+String(Math.random()).slice(2)+_();A=A.replace(/:scope/g,"#"+D),!R&&j.setAttribute("id",D),M=j.parentNode.querySelectorAll(A),R||j.removeAttribute("id")}return[].slice.call(M)}const I=(A,j)=>{if(!A||A.nodeType!==Node.ELEMENT_NODE||!A.parentNode||j===A)return"";if(A.id)return"//*[@id='"+A.id+"']";const M=[].filter.call(A.parentNode.childNodes,R=>R.nodeName===A.nodeName);return I(A.parentNode,j)+"/"+A.nodeName.toLowerCase()+(M.length>1?"["+((0,x.$)(M).indexOf(A)+1)+"]":"")},E=A=>("container"in A&&(A=A.container),S("[ref],[data-ref]",A).reduce((j,M)=>{const R=(0,w.attr)(M,"-ref");return R&&(0,b.K)(R)&&(j[(0,C.x)(R)]=M,j[R]=M),j},{})),T=A=>{if(!g.J.isElement(A))return null;const j=[];let M=A;for(;M&&M.nodeType===Node.ELEMENT_NODE;){let R=M.nodeName.toLowerCase();if(M.id){R+="#"+M.id,j.unshift(R);break}{let D=M,$=1;do D=D.previousElementSibling,D&&D.nodeName.toLowerCase()===R&&$++;while(D);R+=":nth-of-type("+$+")"}j.unshift(R),M=M.parentNode}return j.join(" > ")};function O(A,j){let M=A;if((0,b.K)(A))try{M=j.querySelector(A)}catch(R){throw(0,w.error)('String "'+A+'" should be valid HTML selector')}if(!M||typeof M!="object"||!g.J.isElement(M)||!M.cloneNode)throw(0,w.error)('Element "'+A+'" should be string or HTMLElement instance');return M}},40677:function(p,v,c){c.d(v,{h:function(){return C}});var f=c(37923),g=c(12461),x=c(25376),b=c(98253);function C(w,y,_){if(!(0,b.K)(w)||!w.length)return;const S=w.split(".");let I=_,E=S[0];for(let T=0;S.length-1>T;T+=1)E=S[T],(0,f.c)(I[E])||(0,x.Q)(I[E])||(I[E]=(0,g.k)(S[T+1])?[]:{}),I=I[E];I&&(I[S[S.length-1]]=y)}},70069:function(p,v,c){c.d(v,{d:function(){return f}});class f{constructor(x){this.limit=x,this.stack=[]}push(x){return this.stack.push(x),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(x){return this.stack.find(x)}}},84976:function(p,v,c){c.d(v,{HP:function(){return S},T1:function(){return C},b_:function(){return w},my:function(){return E},o_:function(){return y},qN:function(){return I},yt:function(){return _}});var f=c(92039),g=c(35642),x=c(26150),b=c(72197);function C(T,...O){return T(...O)}function w(T,O){(0,x.C)(O,"data-editor_id",T.id),!O.component&&Object.defineProperty(O,"jodit",{value:T})}function y(T,O){return(0,f.y)(T)?T.then(A=>A,()=>null).finally(O):O==null?void 0:O()}const _=(T,O)=>O.async.promise((A,j)=>{const M=new Image,R=()=>{O.e.off(M),j==null||j()},D=()=>{O.e.off(M),A(M)};O.e.one(M,"load",D).one(M,"error",R).one(M,"abort",R),M.src=T,M.complete&&D()}),S=(T,O=!0)=>{if(O)return Object.keys(T);const A=[];for(const j in T)A.push(j);return A},I=(T,O,{control:A},j)=>{var M;const R=`button${A.command}`;let D=(M=A.args&&A.args[0])!==null&&M!==void 0?M:(0,b.m)(T,R);if((0,g.R)(D))return!1;(0,b.m)(T,R,D),j&&(D=j(D)),T.execCommand(A.command,!1,D!=null?D:void 0)},E=T=>{if(T.clipboardData)return T.clipboardData;try{return T.dataTransfer||new DataTransfer}catch(O){return null}}},58269:function(p,v,c){c.d(v,{T:function(){return C}});var f=c(17352),g=c(56298),x=c(9823),b=c(32291);function C(w,y,_,S,I,E){if((0,x.Gp)(S))try{S.init(w)}catch(T){if(!f.IS_PROD)throw T}I.set(y,S),E.delete(y),S.hasStyle&&(0,b.M)(w,y).catch(T=>{}),S.styles&&((0,g.My)(w,y,"style").innerHTML=S.styles)}},32291:function(p,v,c){c.d(v,{M:function(){return w},o:function(){return _}});var f=c(17352),g=c(449),x=c(27301),b=c(96134);const C=new Set;function w(S,I){return Pn(this,null,function*(){const E=y(S,I,!1);if(!C.has(E))return C.add(E),(0,x.S5)(S,E)})}function y(S,I,E){return I=(0,g.k)(I),S.basePath+"plugins/"+I+"/"+I+"."+(E?"js":"css")}function _(S,I,E,T){try{const O=E.filter(A=>!S.has((0,b.P)(A.name)));O.length&&function(A,j,M){j.map(R=>{const D=R.url||y(A,R.name,!0);return(0,x.w4)(A,D).then(M).catch(()=>null)})}(I,O,T)}catch(O){if(!f.IS_PROD)throw O}}},58157:function(p,v,c){c.d(v,{k:function(){return x}});var f=c(17352),g=c(69052);function x(b,C){try{try{return(0,g.T)(C)?new C(b):C}catch(w){if((0,g.T)(C)&&!C.prototype)return C(b)}}catch(w){if(!f.IS_PROD)throw w}return null}},96134:function(p,v,c){c.d(v,{P:function(){return g}});var f=c(449);function g(x){return(0,f.k)(x).toLowerCase()}},71005:function(p,v,c){c.d(v,{k:function(){return f.k}});var f=c(29866);c(77402)},77402:function(p,v,c){c.d(v,{$:function(){return _}}),c(17352);var f=c(56298),g=c(32709),x=c(9823),b=c(58269),C=c(32291),w=c(58157),y=c(96134);class _{constructor(){this.__items=new Map}add(I,E){this.__items.set((0,y.P)(I),E),f.RR.fire(`plugin:${I}:ready`)}get(I){return this.__items.get((0,y.P)(I))}remove(I){this.__items.delete((0,y.P)(I))}__getFullPluginsList(I){const E=[];return this.__items.forEach((T,O)=>{I&&!I.has(O)||E.push([O,T])}),E}__init(I){const{extraList:E,disableList:T,filter:O}=function(D){return{extraList:D.o.extraPlugins.map($=>(0,x.Kg)($)?{name:$}:$),disableList:new Set((0,g.uM)(D.o.disablePlugins).map(y.P)),filter:D.o.safeMode?new Set(D.o.safePluginsList):null}}(I),A=new Map,j={},M=new Set;I.__plugins=j;const R=()=>{if(I.isInDestruct)return;let D=!1;this.__getFullPluginsList(O).forEach(([$,B])=>{if(T.has($)||A.has($))return;const V=B==null?void 0:B.requires;if(V&&(0,x.cy)(V)&&V.length){if(V.some(W=>T.has(W)))return;if(!V.every(W=>A.has(W)))return void M.add($)}D=!0;const G=(0,w.k)(I,B);if(!G)return A.set($,null),void M.delete($);(0,b.T)(I,$,B,G,A,M),j[$]=G}),D&&(I.e.fire("updatePlugins"),R())};E&&E.length&&(0,C.o)(this.__items,I,E,R),R(),function(D,$){D.e.on("beforeDestruct",()=>{Object.keys($).forEach(B=>{const V=$[B];(0,x.pV)(V)&&V.destruct(D),delete $[B]}),delete D.__plugins})}(I,j)}wait(I){return new Promise(E=>{if(this.get(I))return E();const T=()=>{E(),f.RR.off(`plugin:${I}:ready`,T)};f.RR.on(`plugin:${I}:ready`,T)})}}},29866:function(p,v,c){c.d(v,{k:function(){return C}});var f=c(31635),g=c(77753),x=c(22664),b=c(83044);class C extends g.vG{className(){return"Plugin"}constructor(y){super(y),this.buttons=[],this.hasStyle=!1,this.__inited=!1,y.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}__afterPluginSystemInit(){const{j:y,buttons:_}=this;_&&(0,b.y)(y)&&_.forEach(S=>{y.registerButton(S)})}__afterInit(){this.__inited=!0,this.setStatus(g.f.ready),this.afterInit(this.jodit)}init(y){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var y;if(this.isInDestruct)return;const{j:_}=this;if(_.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(g.f.beforeDestruct),!this.__inited)return super.destruct();(0,b.y)(_)&&((y=this.buttons)===null||y===void 0||y.forEach(S=>{_==null||_.unregisterButton(S)})),this.beforeDestruct(this.j),super.destruct()}}C.requires=[],(0,f.Cg)([x.autobind],C.prototype,"__afterPluginSystemInit",null),(0,f.Cg)([x.autobind],C.prototype,"__afterInit",null),(0,f.Cg)([x.autobind],C.prototype,"__beforeDestruct",null)},49853:function(p,v,c){c.d(v,{d:function(){return _}});var f=c(31635),g=c(64890),x=c(26318),b=c(65147),C=c(50156),w=(c(27337),c(91672)),y=c(36115);class _{className(){return"Ajax"}constructor(I,E=y.T.prototype.defaultAjaxOptions){this.__async=new g.j,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,b.ConfigProto)(I||{},E),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(I,E){return(0,b.isPlainObject)(I)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(I):(0,b.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,I,E):(0,b.isString)(I)||I instanceof window.FormData||typeof I=="object"&&I!=null&&(0,b.isFunction)(I.append)?I:(0,b.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:E}=this,T=this.prepareRequest();return this.__async.promise((O,A)=>Pn(this,null,function*(){var j;const M=()=>{this.__isFulfilled=!0,A(C.FI("Connection error"))},R=()=>{this.__isFulfilled=!0,O(new w.Y(T,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=M,I.ontimeout=M,E.responseType&&(I.responseType=E.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&&(E.successStatuses.includes(I.status)?R():I.statusText&&(this.__isFulfilled=!0,A(C.FI(I.statusText))))},I.withCredentials=(j=E.withCredentials)!==null&&j!==void 0&&j;const{url:D,data:$,method:B}=T;I.open(B,D,!0),E.contentType&&I.setRequestHeader&&I.setRequestHeader("Content-type",E.contentType);let{headers:V}=E;(0,b.isFunction)(V)&&(V=yield V.call(this)),V&&I.setRequestHeader&&Object.keys(V).forEach(G=>{I.setRequestHeader(G,V[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 E=this.o.data,T=(this.o.method||"get").toLowerCase();if(T==="get"&&E&&(0,b.isPlainObject)(E)){const A=I.indexOf("?");if(A!==-1){const j=(0,b.parseQuery)(I);I=I.substring(0,A)+"?"+(0,b.buildQuery)(xe(xe({},j),E))}else I+="?"+(0,b.buildQuery)(this.o.data)}const O={url:I,method:T,data:E};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,f.Cg)([x.Ay],_.prototype,"destruct",null)},27337:function(p,v,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(p,v,c){c.d(v,{Y:function(){return g.Y},d:function(){return f.d}});var f=c(49853),g=c(91672)},91672:function(p,v,c){c.d(v,{Y:function(){return f}});class f{get url(){return this.request.url}constructor(x,b,C,w){this.request=x,this.status=b,this.statusText=C,this.body=w}json(){return Pn(this,null,function*(){return JSON.parse(this.body)})}text(){return Promise.resolve(this.body)}blob(){return Pn(this,null,function*(){return this.body})}}},46602:function(p,v,c){c.d(v,{W:function(){return f.W}});var f=c(5298);c(83541)},5298:function(p,v,c){c.d(v,{W:function(){return x}});var f=c(17352),g=c(55186);function x(b,C,w){let y=g.J.findSibling(C,w),_=g.J.findSibling(C,!w);for(;g.J.isElement(y)&&!g.J.isTag(y,f.INSEPARABLE_TAGS)&&g.J.isContentEditable(y,b.editor)&&(!_||!g.J.closest(C,g.J.isElement,b.editor));)w||!y.firstChild?y.appendChild(C):g.J.before(y.firstChild,C),y=g.J.sibling(C,w),_=g.J.sibling(C,!w)}},83541:function(p,v,c){c.d(v,{G:function(){return g}});var f=c(55186);function g(x,b,C){let w=x;for(;w&&w!==C;){if(f.J.findSibling(w,b))return;if(f.J.isBlock(w.parentElement))break;w=w.parentElement,w&&w!==C&&(b?f.J.before(w,x):f.J.after(w,x))}}},87332:function(p,v,c){c.d(v,{Ag:function(){return g.Ag},DI:function(){return g.DI},LN:function(){return f.L},OJ:function(){return g.OJ},Zk:function(){return g.Zk},dj:function(){return g.dj},xk:function(){return g.xk}});var f=c(84602),g=c(8757)},84602:function(p,v,c){c.d(v,{L:function(){return S}});var f=c(31635),g=c(17352),x=c(22664),b=c(55186),C=c(65147),w=c(9823),y=(c(28712),c(83541)),_=c(8757);class S{constructor(E){this.jodit=E,E.e.on("removeMarkers",()=>{this.removeMarkers()})}get j(){return this.jodit}errorNode(E){if(!b.J.isNode(E))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 E=this.sel;return E&&E.rangeCount?E.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:E}=this,T=E!=null&&E.rangeCount?E.getRangeAt(0):null;return!(!T||!b.J.isOrContains(this.area,T.startContainer))}createRange(E=!1){const T=this.doc.createRange();return E&&this.selectRange(T),T}remove(){const E=this.sel,T=this.current();if(E&&T)for(let O=0;E.rangeCount>O;O+=1)E.getRangeAt(O).deleteContents(),E.getRangeAt(O).collapse(!0)}clear(){var E,T;!((E=this.sel)===null||E===void 0)&&E.rangeCount&&((T=this.sel)===null||T===void 0||T.removeAllRanges())}removeNode(E){if(!b.J.isOrContains(this.j.editor,E,!0))throw(0,C.error)("Selection.removeNode can remove only editor's children");b.J.safeRemove(E),this.j.e.fire("afterRemoveNode",E)}insertCursorAtPoint(E,T){this.removeMarkers();try{const O=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const A=this.doc.caretPositionFromPoint(E,T);if(A)return void O.setStart(A.offsetNode,A.offset)}if(this.doc.caretRangeFromPoint){const A=this.doc.caretRangeFromPoint(E,T);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-"+g.MARKER_CLASS+"]",this.area)}removeMarkers(){b.J.safeRemove.apply(null,this.markers)}marker(E=!1,T){let O=null;T&&(O=T.cloneRange(),O.collapse(E));const A=this.j.createInside.span();return A.id=g.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),A.style.lineHeight="0",A.style.display="none",b.J.markTemporary(A),(0,C.attr)(A,"data-"+g.MARKER_CLASS,E?"start":"end"),A.appendChild(this.j.createInside.text(g.INVISIBLE_SPACE)),O&&b.J.isOrContains(this.area,E?O.startContainer:O.endContainer)&&O.insertNode(A),A}restore(){let E=!1;const T=j=>`span[data-${g.MARKER_CLASS}=${j?"start":"end"}]`,O=this.area.querySelector(T(!0)),A=this.area.querySelector(T(!1));if(O){if(E=this.createRange(),A)E.setStartAfter(O),b.J.safeRemove(O),E.setEndBefore(A),b.J.safeRemove(A);else{const j=O.previousSibling;b.J.isText(j)?E.setStart(j,j.nodeValue?j.nodeValue.length:0):E.setStartBefore(O),b.J.safeRemove(O),E.collapse(!0)}E&&this.selectRange(E)}}fakes(){const E=this.sel;if(!E||!E.rangeCount)return[];const T=E.getRangeAt(0),O=T.cloneRange();O.collapse(!0);const A=this.j.createInside.fake();b.J.safeInsertNode(O,A),T.setStartBefore(A);const j=[A];if(!T.collapsed){const M=T.cloneRange();M.collapse(!1);const R=this.j.createInside.fake();b.J.safeInsertNode(M,R),T.setEndAfter(R),j.push(R)}return this.selectRange(T),j}restoreFakes(E){var T,O,A,j;const M=E.filter(B=>B.isConnected);if(!M.length)return;const[R,D]=M,$=this.createRange();$.setStartAfter(R),D&&$.setEndBefore(D),this.selectRange($),((T=R.parentNode)===null||T===void 0?void 0:T.firstChild)!==((O=R.parentNode)===null||O===void 0?void 0:O.lastChild)&&b.J.safeRemove(R),((A=D==null?void 0:D.parentNode)===null||A===void 0?void 0:A.firstChild)!==((j=D==null?void 0:D.parentNode)===null||j===void 0?void 0:j.lastChild)&&b.J.safeRemove(D)}save(E=!1){if(this.hasMarkers)return[];const T=this.sel;if(!T||!T.rangeCount)return[];const O=[],A=T.rangeCount,j=[];for(let M=0;A>M;M+=1)if(j[M]=T.getRangeAt(M),j[M].collapsed){const R=this.marker(!0,j[M]);O[M]={startId:R.id,collapsed:!0,startMarker:R.outerHTML}}else{const R=this.marker(!0,j[M]),D=this.marker(!1,j[M]);O[M]={startId:R.id,endId:D.id,collapsed:!1,startMarker:R.outerHTML,endMarker:D.outerHTML}}if(!E){T.removeAllRanges();for(let M=A-1;M>=0;--M){const R=this.doc.getElementById(O[M].startId);if(R){if(O[M].collapsed)j[M].setStartAfter(R),j[M].collapse(!0);else if(j[M].setStartBefore(R),O[M].endId){const D=this.doc.getElementById(O[M].endId);D&&j[M].setEndAfter(D)}try{T.addRange(j[M].cloneRange())}catch(D){}}}}return O}focus(E={preventScroll:!0}){var T,O;if(!this.isFocused()){const A=(0,C.getScrollParent)(this.j.container),j=A==null?void 0:A.scrollTop;this.j.iframe&&this.doc.readyState==="complete"&&this.j.iframe.focus(E),this.win.focus(),this.area.focus(E),j&&(A!=null&&A.scrollTo)&&A.scrollTo(0,j);const M=this.sel,R=M!=null&&M.rangeCount?M==null?void 0:M.getRangeAt(0):null;if(!R||!b.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=(T=this.j)===null||T===void 0?void 0:T.events)===null||O===void 0||O.fire("focus"),!0}return!1}isCollapsed(){const E=this.sel;for(let T=0;E&&E.rangeCount>T;T+=1)if(!E.getRangeAt(T).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(E=!0){if(this.j.getRealMode()===g.MODE_WYSIWYG){const T=this.sel;if(!T||T.rangeCount===0)return null;const O=T.getRangeAt(0);let A=O.startContainer,j=!1;const M=R=>j?R.lastChild:R.firstChild;if(b.J.isTag(A,"br")&&T.isCollapsed)return A;if(!b.J.isText(A)){if(A=O.startContainer.childNodes[O.startOffset],A||(A=O.startContainer.childNodes[O.startOffset-1],j=!0),A&&T.isCollapsed&&!b.J.isText(A)){if(!j&&b.J.isText(A.previousSibling))A=A.previousSibling;else if(E){let R=M(A);for(;R;){if(R&&b.J.isText(R)){A=R;break}R=M(R)}}}if(A&&!T.isCollapsed&&!b.J.isText(A)){let R=A,D=A;do R=R.firstChild,D=D.lastChild;while(R&&D&&!b.J.isText(R));R===D&&R&&b.J.isText(R)&&(A=R)}}if(A&&b.J.isOrContains(this.area,A))return A}return null}insertNode(E,T=!0,O=!0){this.errorNode(E);const A=b.J.isFragment(E)?E.lastChild:E;this.j.e.fire("safeHTML",E),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const j=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",E),j&&j.rangeCount){const R=j.getRangeAt(0);b.J.isOrContains(this.area,R.commonAncestorContainer)?b.J.safeInsertNode(R,E):this.area.appendChild(E)}else this.area.appendChild(E);const M=R=>{if(b.J.isBlock(R)){const D=R.lastChild;if(D)return M(D)}this.setCursorAfter(R)};T&&(b.J.isFragment(E)?A&&M(A):M(E)),this.j.o.scrollToPastedContent&&(0,C.scrollIntoViewIfNeeded)(A!=null?A:E,this.j.editor,this.doc)}),O&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",b.J.isFragment(E)?A:E)}insertHTML(E,T=!0){if(E==="")return;const O=this.j.createInside.div(),A=this.j.createInside.fragment();let j;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),b.J.isNode(E)?O.appendChild(E):O.innerHTML=E.toString(),(this.j.isEditorMode()||this.j.e.fire("insertHTML",O.innerHTML)!==!1)&&(j=O.lastChild,j)){for(;O.firstChild;)j=O.firstChild,A.appendChild(O.firstChild);this.insertNode(A,T,!1),this.j.__imdSynchronizeValues()}}insertImage(E,T=null,O=null){const A=(0,w.Kg)(E)?this.j.createInside.element("img"):E;if((0,w.Kg)(E)&&A.setAttribute("src",E),O!=null){let M=O.toString();M&&M!=="auto"&&0>String(M).indexOf("px")&&0>String(M).indexOf("%")&&(M+="px"),(0,C.call)(this.j.o.resizer.forImageChangeAttributes?C.attr:C.css,A,"width",M)}T&&typeof T=="object"&&(0,C.css)(A,T);const j=()=>{(A.offsetHeight>A.naturalHeight||A.offsetWidth>A.naturalWidth)&&(A.style.width="",A.style.height=""),A.removeEventListener("load",j)};this.j.e.on(A,"load",j),A.complete&&j(),this.insertNode(A),this.j.e.fire("afterInsertImage",A)}eachSelection(E){var T;const O=this.sel;if(O&&O.rangeCount){const A=O.getRangeAt(0);let j=A.commonAncestorContainer;b.J.isHTMLElement(j)||(j=j.parentElement);const M=[],R=A.startOffset,D=j.childNodes.length;let $=A.startContainer===this.area?j.childNodes[D>R?R:D-1]:A.startContainer,B=A.endContainer===this.area?j.childNodes[A.endOffset-1]:A.endContainer;b.J.isText($)&&$===A.startContainer&&A.startOffset===((T=$.nodeValue)===null||T===void 0?void 0:T.length)&&$.nextSibling&&($=$.nextSibling),b.J.isText(B)&&B===A.endContainer&&A.endOffset===0&&B.previousSibling&&(B=B.previousSibling);const V=W=>{!W||W===j||b.J.isEmptyTextNode(W)||(0,w.rg)(W)||M.push(W)};V($),$!==B&&b.J.isOrContains(j,$,!0)&&b.J.find($,W=>(V(W),W===B||W&&W.contains&&W.contains(B)),j,!0,!1);const G=W=>{if(b.J.isOrContains(this.j.editor,W,!0)){if(W.nodeName.match(/^(UL|OL)$/))return(0,C.toArray)(W.childNodes).forEach(G);if(b.J.isTag(W,"li"))if(W.firstChild)W=W.firstChild;else{const Q=this.j.createInside.text(g.INVISIBLE_SPACE);W.appendChild(Q),W=Q}E(W)}};M.length===0&&b.J.isEmptyTextNode($)&&M.push($),M.length===0&&$.firstChild&&M.push($.firstChild),M.forEach(G)}}cursorInTheEdge(E,T,O=null){var A,j;const M=!E,R=(A=this.sel)===null||A===void 0?void 0:A.getRangeAt(0);if(O!=null||(O=this.current(!1)),!R||!O||!b.J.isOrContains(T,O,!0))return null;const D=E?R.startContainer:R.endContainer,$=E?R.startOffset:R.endOffset,B=G=>!!(G&&!b.J.isTag(G,"br")&&!b.J.isEmptyTextNode(G)&&!b.J.isTemporary(G)&&!(b.J.isElement(G)&&this.j.e.fire("isInvisibleForCursor",G)===!0));if(b.J.isText(D)){const G=!((j=D.nodeValue)===null||j===void 0)&&j.length?D.nodeValue:"";if(M&&G.replace((0,g.INVISIBLE_SPACE_REG_EXP_END)(),"").length>$)return!1;const W=(0,g.INVISIBLE_SPACE_REG_EXP_START)().exec(G);if(E&&(W&&$>W[0].length||!W&&$>0))return!1}else{const G=(0,C.toArray)(D.childNodes);if(M){if(G.slice($).some(B))return!1}else if(G.slice(0,$).some(B))return!1}let V=O;for(;V&&V!==T;){const G=b.J.sibling(V,E);if(G){if(V=G,V&&B(V))return!1}else V=V.parentNode}return!0}cursorOnTheLeft(E,T){return this.cursorInTheEdge(!0,E,T)}cursorOnTheRight(E,T){return this.cursorInTheEdge(!1,E,T)}setCursorAfter(E){return this.setCursorNearWith(E,!1)}setCursorBefore(E){return this.setCursorNearWith(E,!0)}setCursorNearWith(E,T){var O,A;if(this.errorNode(E),!b.J.up(E,R=>R===this.area||R&&R.parentNode===this.area,this.area))throw(0,C.error)("Node element must be in editor");const j=this.createRange();let M=null;return b.J.isText(E)?T?j.setStart(E,0):j.setEnd(E,(A=(O=E.nodeValue)===null||O===void 0?void 0:O.length)!==null&&A!==void 0?A:0):(M=this.j.createInside.fake(),T?j.setStartBefore(E):j.setEndAfter(E),j.collapse(T),b.J.safeInsertNode(j,M),j.selectNode(M)),j.collapse(T),this.selectRange(j),M}setCursorIn(E,T=!1){if(this.errorNode(E),!b.J.up(E,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=E,j=E;do{if(b.J.isText(A)||b.J.isTag(A,g.INSEPARABLE_TAGS))break;j=A,A=T?A.firstChild:A.lastChild}while(A);if(!A){const R=this.j.createInside.text(g.INVISIBLE_SPACE);b.J.isTag(j,g.INSEPARABLE_TAGS)?A=j:(j.appendChild(R),j=R)}const M=A||j;return b.J.isTag(M,g.INSEPARABLE_TAGS)?(T||b.J.isTag(M,"br")?O.setStartBefore(M):O.setEndAfter(M),O.collapse(T)):(O.selectNodeContents(M),O.collapse(T)),this.selectRange(O),j}selectRange(E,T=!0){const O=this.sel;return T&&!this.isFocused()&&this.focus(),O&&(O.removeAllRanges(),O.addRange(E)),this.j.e.fire("changeSelection"),this}select(E,T=!1){if(this.errorNode(E),!b.J.up(E,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[T?"selectNodeContents":"selectNode"](E),this.selectRange(O)}get html(){const E=this.sel;if(E&&E.rangeCount>0){const T=E.getRangeAt(0).cloneContents(),O=this.j.createInside.div();return O.appendChild(T),O.innerHTML}return""}*wrapInTagGen(E){if(this.isCollapsed()){const O=this.jodit.createInside.element("font",g.INVISIBLE_SPACE);return this.insertNode(O,!1,!1),E&&E[0]&&O.appendChild(E[0]),yield O,void b.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 T=(0,C.$$)('font[size="7"]',this.area);for(const O of T){const{firstChild:A,lastChild:j}=O;A&&A===j&&(0,w.rg)(A)||(A&&(0,w.rg)(A)&&b.J.before(O,A),j&&(0,w.rg)(j)&&b.J.after(O,j),yield O),b.J.unwrap(O)}}wrapInTag(E){const T=[];for(const O of this.wrapInTagGen())try{if(O.firstChild&&O.firstChild===O.lastChild&&(0,w.rg)(O.firstChild))continue;(0,w.Tn)(E)?E(O):T.push(b.J.replace(O,E,this.j.createInside))}finally{const A=O.parentNode;A&&(b.J.unwrap(O),b.J.isEmpty(A)&&b.J.unwrap(A))}return T}commitStyle(E){new _.xk(E).apply(this.j)}splitSelection(E,T){if(!this.isCollapsed())return null;const O=this.createRange(),A=this.range;O.setStartBefore(E);const j=this.cursorOnTheRight(E,T),M=this.cursorOnTheLeft(E,T),R=this.j.createInside.element("br"),D=this.j.createInside.fake(),$=D.cloneNode();try{if(j||M){T?b.J.before(T,R):b.J.safeInsertNode(A,R);const W=(Q,Z)=>{let J=Z(Q);for(;J;){const ee=Z(J);if(!J||!b.J.isTag(J,"br")&&!b.J.isEmptyTextNode(J))break;b.J.safeRemove(J),J=ee}};W(R,Q=>Q.nextSibling),W(R,Q=>Q.previousSibling),b.J.after(R,$),b.J.before(R,D),j?(O.setEndBefore(R),A.setEndBefore(R)):(O.setEndAfter(R),A.setEndAfter(R))}else O.setEnd(A.startContainer,A.startOffset);const B=O.extractContents(),V=W=>b.J.each(W,Q=>b.J.isEmptyTextNode(Q)&&b.J.safeRemove(Q));try{if(V(B),V(E),E.parentNode.insertBefore(B,E),!T&&j&&(R==null?void 0:R.parentNode)){const W=this.createRange();W.setStartBefore(R),this.selectRange(W)}}catch(W){if(!g.IS_PROD)throw W}const G=W=>{var Q,Z,J;((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)&&((J=W==null?void 0:W.parentNode)===null||J===void 0||J.appendChild(R.cloneNode()))};G(D),G($)}finally{b.J.safeRemove(D),b.J.safeRemove($)}return E.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:E}=this,T=E.cloneRange();if(!b.J.isOrContains(this.j.editor,E.commonAncestorContainer,!0))return this;const O=D=>{const $=this.j.createInside.fake(),B=E.cloneRange();return B.collapse(D),b.J.safeInsertNode(B,$),(0,y.G)($,D,this.j.editor),$},A=O(!0),j=O(!1);T.setStartAfter(A),T.setEndBefore(j);const M=b.J.findSibling(A,!1),R=b.J.findSibling(j,!0);if(M!==R){const D=b.J.isElement(M)&&b.J.isOrContains(M,j),$=!D&&b.J.isElement(R)&&b.J.isOrContains(R,A);if(D||$){let B=D?M:R,V=B;for(;b.J.isElement(B);)B=D?B.firstElementChild:B.lastElementChild,B&&b.J.isOrContains(B,D?j:A)&&(V=B);D?T.setStart(V,0):T.setEnd(V,V.childNodes.length)}}if(this.selectRange(T),b.J.safeRemove(A,j),this.isCollapsed())throw(0,C.error)("Selection is collapsed");return this}}(0,f.Cg)([x.autobind],S.prototype,"createRange",null),(0,f.Cg)([x.autobind],S.prototype,"focus",null),(0,f.Cg)([x.autobind],S.prototype,"setCursorAfter",null),(0,f.Cg)([x.autobind],S.prototype,"setCursorBefore",null),(0,f.Cg)([x.autobind],S.prototype,"setCursorIn",null)},20384:function(p,v,c){c.d(v,{y:function(){return C}});var f=c(55186),g=c(71274),x=c(59101),b=c(84976);function C(y,_,S){const I=S.s.createRange(),E=(0,g.r)(_.previousSibling)?_.previousSibling:_;I.setStartBefore(y),I.setEndBefore(E),w(y,I,!0);const T=(0,g.r)(_.nextSibling)?_.nextSibling:_;I.setStartAfter(T),I.setEndAfter(y),w(y,I,!1)}function w(y,_,S){const I=_.extractContents();I.textContent&&(0,x.Bq)(I.textContent).length||!I.firstChild||f.J.unwrap(I.firstChild),y.parentNode&&(0,b.T1)(S?f.J.before:f.J.after,y,I)}},10466:function(p,v,c){c.d(v,{E:function(){return f}}),c(17352),c(28712);class f{setState(x){this.__previewsStates.add(x),this.__state=x}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(x,b){this.transitions=b,this.silent=!0,this.__previewsStates=new Set,this.setState(x)}dispatch(x,b){const C=this.transitions[this.getState()][x];if(C){const w=C.call(this,b);return this.setState(w.next),w}throw new Error(`invalid action: ${this.getState()}.${x.toString()}`)}}},75220:function(p,v,c){c.d(v,{G:function(){return b}});var f=c(55186),g=c(38046),x=c(95274);function b(C,w){let{firstChild:y}=w;for(;y&&!(0,g._)(y);)if(y=y.nextSibling,!y)return null;return y&&!f.J.next(y,g._,w)&&(0,x.sz)(C,y,!1)?y:null}},52052:function(p,v,c){c.d(v,{A:function(){return b}});var f=c(55186),g=c(38046),x=c(95274);function b(C,w,y){const{parentNode:_}=w;return _===y||!f.J.isHTMLElement(_)||f.J.next(w,g._,_)||f.J.prev(w,g._,_)?null:C.isElementCommit&&C.elementIsBlock&&!f.J.isBlock(_)?b(C,_,y):!(0,x.sz)(C,_,!1)||f.J.isBlock(_)&&!C.elementIsBlock?C.isElementCommit&&!f.J.isBlock(_)?b(C,_,y):null:_}},70592:function(p,v,c){c.d(v,{Y:function(){return w},g:function(){return C}});var f=c(55186),g=c(35642),x=c(59678),b=(c(28712),c(38322));function C(y,_){return!!(!f.J.isTag(y,"font")&&f.J.isHTMLElement(y)&&Object.keys(_).every(S=>{const I=(0,b.A)(y,S,!0);return I===""&&(_[S]===""||_[S]==null)||!(0,g.R)(I)&&I!==""&&!(0,g.R)(_[S])&&(0,x.iy)(S,_[S]).toString().toLowerCase()===I.toString().toLowerCase()}))}function w(y,_){return!!(!f.J.isTag(y,"font")&&f.J.isHTMLElement(y)&&Object.keys(_).every(S=>(0,b.A)(y,S,!0)!==""))}document.createElement("div").style.color="red",document.createElement("div").style.color="red"},97621:function(p,v,c){c.d(v,{$s:function(){return y.$s},AS:function(){return b.A},Dd:function(){return w.D},EF:function(){return g.E},G6:function(){return x.G},LV:function(){return E.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 f.y}});var f=c(20384),g=c(10466),x=c(75220),b=c(52052),C=(c(70592),c(78777)),w=(c(38046),c(13676)),y=c(95274),_=c(90325),S=(c(61001),c(38271)),I=c(86500),E=c(3101);c(80394)},78777:function(p,v,c){c.d(v,{i:function(){return g}});var f=c(55186);function g(x,b){return!!f.J.closest(x,["style","script"],b)}},38046:function(p,v,c){c.d(v,{_:function(){return x}});var f=c(55186),g=c(71274);function x(b){return!!(b&&!f.J.isEmptyTextNode(b)&&!f.J.isTemporary(b)&&!(0,g.r)(b))}},13676:function(p,v,c){c.d(v,{D:function(){return C},M:function(){return b}});var f=c(95350),g=c(97369),x=(c(28712),c(70592));function b(w,y){return!w.attributes.length&&!(0,f.E)(y)||!(0,f.E)(y)||Object.keys(y).every(_=>_==="class"||_==="className"?w.classList.contains(y[_]):_==="style"?(0,x.g)(w,y[_]):(0,g.attr)(w,_)===y[_])}function C(w,y){return w.attributes.length===y.attributes.length&&Array.from(w.attributes).every(_=>y.hasAttribute(_.name)&&y.getAttribute(_.name)===_.value)}},95274:function(p,v,c){c.d(v,{$s:function(){return C},Wv:function(){return w},sz:function(){return b}});var f=c(55186),g=c(70592),x=c(38046);function b(y,_,S,I=!0){var E;if(!_||!(0,x._)(_))return!1;const{element:T,elementIsDefault:O,options:A}=y;if(f.J.isList(_)&&y.elementIsList)return!0;const j=f.J.isTag(_,T);return!(!j||O&&S)||!(!(!((E=A.attributes)===null||E===void 0)&&E.style&&(I?(0,g.g)(_,A.attributes.style):(0,g.Y)(_,A.attributes.style)))||y.elementIsList)||!j&&!S&&O&&f.J.isInlineBlock(_)}function C(y,_,S){return f.J.closest(_,I=>b(y,I,!0,!1),S)}function w(y,_){var S,I;const{element:E,options:T}=y;if(!_||!(0,x._)(_))return!1;const O=_.nodeName.toLowerCase()===E,A=!!(!((S=T.attributes)===null||S===void 0)&&S.style&&(0,g.Y)(_,(I=T.attributes)===null||I===void 0?void 0:I.style));return O&&A}},90325:function(p,v,c){c.d(v,{k:function(){return w}});var f=c(55186),g=(c(28712),c(20384)),x=c(38271),b=c(8757),C=c(61001);function w(_,S,I,E){if(!S)return E;const T=S.parentElement;if(!T)return E;const O=I.e.fire(`${b.ar}BeforeToggleList`,E,_,T);if(O!==void 0)return O;const A=I.e.fire.bind(I.e,`${b.ar}AfterToggleList`);if(E!==b.OJ){const M=(0,x.Y)(_,S.parentElement,I,b.DI,!0)===b.PL;if(E===b.dj||M||T.tagName.toLowerCase()!==_.element){const R=y(b.dj,T,S,I,_),D=(0,C.z)(_,R,I);return A(b.dj,D,_),b.dj}}const j=y(b.OJ,T,S,I,_);return A(b.OJ,j,_),b.OJ}function y(_,S,I,E,T){return E.e.fire(`${b.ar}BeforeUnwrapList`,_,S,T)||((0,g.y)(S,I,E),f.J.unwrap(I.parentElement),f.J.replace(I,E.o.enter,E.createInside))}},61001:function(p,v,c){c.d(v,{z:function(){return b}});var f=c(71842),g=c(97621),x=c(8757);function b(C,w,y){const _=y.e.fire(`${x.ar}BeforeWrapList`,x.dj,w,C),S=_!=null?_:f.J.replace(w,"li",y.createInside),I=S.previousElementSibling,E=S.nextElementSibling;let T=f.J.isTag(I,C.element)?I:null;return T!=null||(T=f.J.isTag(E,C.element)?E:null),f.J.isList(T)&&(0,g.M6)(T,C.options.attributes)||(T=y.createInside.element(C.element),(0,g.Yx)(C,T,y,x.DI),f.J.before(S,T)),I===T?f.J.append(T,S):f.J.prepend(T,S),f.J.isTag(T.nextElementSibling,C.element)&&(0,g.Dd)(T,T.nextElementSibling)&&(f.J.append(T,Array.from(T.nextElementSibling.childNodes)),f.J.safeRemove(T.nextElementSibling)),y.e.fire(`${x.ar}AfterWrapList`,x.Zk,T,C),T}},38271:function(p,v,c){c.d(v,{Y:function(){return E}});var f=c(55186),g=c(56298),x=(c(9823),c(59678)),b=c(95350),C=c(449),w=c(97369),y=c(38322),_=c(72197),S=c(8757);const I="toggleAttributes";function E(O,A,j,M,R=!1){if(!R&&O.isApplied(A,I))return M;!R&&O.setApplied(A,I);const{attributes:D}=O.options;return D&&(0,b.E)(D)>0&&Object.keys(D).forEach($=>{const B=D[$];switch($){case"style":M=function(V,G,W,Q,Z,J){return Object.keys(W).forEach(ee=>{const re=Q.style.getPropertyValue((0,C.k)(ee)),ce=W[ee];if(re!==""||ce!=null){if(function(he,ve,fe){const be=he.create.element(ve.tagName.toLowerCase());be.style.cssText=ve.style.cssText,function(ue){var me;if((0,_.m)(ue,"shadowRoot")!==void 0)return(0,_.m)(ue,"shadowRoot");const Ee=(0,g.My)(ue),we=document.createElement("iframe");(0,y.A)(we,{width:0,height:0,position:"absolute",border:0}),we.src="about:blank",Ee.appendChild(we);const ie=(me=we.contentWindow)===null||me===void 0?void 0:me.document,le=ie?ie.body:ue.od.body;return(0,_.m)(ue,"shadowRoot",le),le}(he).appendChild(be);const ge=(0,y.A)(be,fe);return f.J.safeRemove(be),ge}(G,Q,ee)===(0,x.iy)(ee,ce))return re?(!Z&&(0,y.A)(Q,ee,null),void(J=T(V,Q,J=S.Ag))):void 0;J=S.PL,Z||((0,y.A)(Q,ee,ce),J=T(V,Q,J))}}),J}(O,j,B,A,R,M);break;case"className":case"class":M=function(V,G,W,Q,Z){const J=V.e.fire.bind(V.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),J(Q,W,"class",null)))):(Q=S.PL,Z||(W.classList.add(G),J(Q,W,"class",G))),Q}(j,B,A,M,R);break;default:M=function(V,G,W,Q,Z,J){const ee=V.e.fire.bind(V.e,`${S.ar}AfterToggleAttribute`);return(0,w.attr)(W,Q)===G?(!Z&&(0,w.attr)(W,Q,null),J=S.Ag,!Z&&ee(J,W,Q,G),J):(J=S.PL,Z||((0,w.attr)(W,Q,G),ee(J,W,Q,G)),J)}(j,B,A,$,R,M)}}),M}function T(O,A,j){return(0,w.attr)(A,"style")||((0,w.attr)(A,"style",null),A.tagName.toLowerCase()===O.defaultTag&&(f.J.unwrap(A),j=S.OJ)),j}},86500:function(p,v,c){c.d(v,{t:function(){return C}});var f=c(55186),g=c(97369),x=c(70592),b=c(95274);function C(w,y){var _;const S=[],I=[];let E;const T=(_=w.options.attributes)===null||_===void 0?void 0:_.style;if(y.firstChild){const O=f.J.eachGen(y);let A=O.next();for(;!A.done;){const j=A.value;!(0,b.sz)(w,j,!0)||T&&!(0,x.Y)(j,T)?T&&(0,b.Wv)(w,j)?(E===void 0&&(E=!1),I.push(()=>{(0,g.css)(j,Object.keys(T).reduce((M,R)=>(M[R]=null,M),{})),(0,g.attr)(j,"style")||(0,g.attr)(j,"style",null),(0,g.attr)(j,"style")||j.nodeName.toLowerCase()!==w.element||S.push(j)})):f.J.isEmptyTextNode(j)||E===void 0&&(E=!1):(E===void 0&&(E=!0),S.push(j)),A=O.next()}}return I.forEach(O=>O()),S.forEach(f.J.unwrap),!!E}},80394:function(p,v,c){c.d(v,{Y:function(){return x}});var f=c(55186),g=c(71274);function x(b,C,w){const y=w.editor,_=w.createInside,S=(j,M="previousSibling")=>{let R=j,D=j;for(;D&&!(0,g.r)(D)&&!f.J.isTag(D,w.o.enter)&&(R=D,D=D[M]?D[M]:D.parentNode&&!f.J.isBlock(D.parentNode)&&D.parentNode!==y?D.parentNode:null,!f.J.isBlock(D)););return R},I=S(C),E=S(C,"nextSibling"),T=w.s.createRange();T.setStartBefore(I),T.setEndAfter(E);const O=T.extractContents(),A=_.element(b.element);return A.appendChild(O),f.J.safeInsertNode(T,A),b.elementIsBlock&&f.J.isEmpty(A)&&!f.J.isTag(A.firstElementChild,"br")&&A.appendChild(_.element("br")),A}},3101:function(p,v,c){c.d(v,{L:function(){return C}});var f=c(71842),g=c(26150),x=c(61001),b=c(80394);function C(y,_,S){const I=function(E,T,O){return E.elementIsBlock?f.J.up(T,A=>f.J.isBlock(A)&&!f.J.isTag(A,w),O.editor)||(0,b.Y)(E,T,O):((0,g.C)(T,"size",null),T)}(y,_,S);return y.elementIsList?(0,x.z)(y,I,S):f.J.replace(I,y.element,S.createInside,!0)}const w=new Set(["td","th","tr","tbody","table","li","ul","ol"])},10494:function(p,v,c){c.d(v,{O:function(){return b}});var f=c(97621),g=c(8757),x=c(37649);function b(C,w){var y;const{s:_,editor:S}=C;(y=S.firstChild)===null||y===void 0||y.normalize();const I=_.fakes(),E=C.s.wrapInTagGen(I);let T=E.next();if(T.done)return;let O={collapsed:_.isCollapsed(),mode:g.DI,element:T.value,next:x.x.START,jodit:C,style:w};for(;T&&!T.done;){const A=new f.EF(x.x.START,x.g);for(O.element=T.value;A.getState()!==x.x.END;)O=A.dispatch("exec",O);T=E.next()}_.restoreFakes(I)}},8757:function(p,v,c){c.d(v,{Ag:function(){return y},DI:function(){return _},OJ:function(){return C},PL:function(){return w},Zk:function(){return b},ar:function(){return I},dj:function(){return S},xk:function(){return E}});var f=c(17352),g=c(83260),x=c(10494);const b="wrap",C="unwrap",w="change",y="unset",_="initial",S="replace",I="commitStyle";class E{isApplied(O,A){const j=this.__applyMap.get(O);return!!j&&j[A]}setApplied(O,A){var j;const M=(j=this.__applyMap.get(O))!==null&&j!==void 0?j:{};M[A]=!0,this.__applyMap.set(O,M)}get elementIsList(){return!!(this.options.element&&f.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&f.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(j=>{O.e.on((0,g.x)(I+"_"+j),A[j])}),(0,x.O)(O,this)}finally{A&&Object.keys(A).forEach(j=>{O.e.off((0,g.x)(I+"_"+j),A[j])}),this.__applyMap=new WeakMap}O.synchronizeValues(),O.e.fire("afterCommitStyle",this)}}},37649:function(p,v,c){c.d(v,{g:function(){return w},x:function(){return C}});var f=c(17352),g=c(55186),x=(c(28712),c(87332)),b=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(y){const{element:_,jodit:S,style:I,mode:E,collapsed:T}=y;if((0,b.iu)(_,S.editor)||!T&&g.J.isEmptyContent(_))return Ke(xe({},y),{next:C.END});const O=(0,b.AS)(I,_,S.editor)||(0,b.G6)(I,_);if(O)return Ke(xe({},y),{next:C.ELEMENT,element:O});const A=(0,b.$s)(I,_,S.editor);return I.elementIsList&&g.J.isList(A)?Ke(xe({},y),{next:C.LIST}):A?Ke(xe({},y),{next:C.EXTRACT}):Ke(xe({},y),{next:E!==x.OJ?C.UNWRAP_CHILDREN:C.END})}},[C.LIST]:{exec(y){const{element:_,jodit:S,mode:I}=y;if(I!==x.DI&&I!==x.OJ&&I!==x.dj)return Ke(xe({},y),{next:C.END});const E=g.J.closest(_,"li",S.editor);return E&&g.J.closest(_,f.LIST_TAGS,S.editor)?Ke(xe({},y),{element:E,next:C.TOGGLE_LIST}):Ke(xe({},y),{next:C.END})}},[C.TOGGLE_LIST]:{exec:y=>Ke(xe({},y),{mode:(0,b.ks)(y.style,y.element,y.jodit,y.mode),next:C.END})},[C.EXTRACT]:{exec(y){const{element:_,jodit:S,style:I}=y,E=(0,b.$s)(I,_,S.editor);return I.elementIsBlock||(0,b.yP)(E,_,S),Ke(xe({},y),{element:E,next:C.ELEMENT})}},[C.UNWRAP_CHILDREN]:{exec(y){const{element:_,style:S}=y;return(0,b.tm)(S,_)?Ke(xe({},y),{mode:x.OJ,next:C.END}):Ke(xe({},y),{next:C.WRAP})}},[C.WRAP]:{exec(y){const{element:_,jodit:S,style:I}=y,E=(0,b.LV)(I,_,S);return Ke(xe({},y),{next:I.elementIsList?C.END:C.CHANGE,mode:x.Zk,element:E})}},[C.ELEMENT]:{exec(y){const{style:_,element:S,jodit:I}=y;return(0,b.Yx)(_,S,I,x.DI,!0)!==x.DI?Ke(xe({},y),{next:C.CHANGE}):g.J.isTag(S,_.element)?Ke(xe({},y),{next:C.UNWRAP}):Ke(xe({},y),{next:C.END})}},[C.CHANGE]:{exec(y){const{style:_,element:S,jodit:I,mode:E}=y,T=(0,b.Yx)(_,S,I,y.mode);return E!==x.Zk&&T===x.Ag&&!S.attributes.length&&g.J.isTag(S,_.element)?Ke(xe({},y),{next:C.UNWRAP}):Ke(xe({},y),{mode:T,next:C.END})}},[C.UNWRAP]:{exec:y=>y.element.attributes.length&&g.J.isTag(y.element,y.style.element)?Ke(xe({},y),{next:C.REPLACE_DEFAULT}):(g.J.unwrap(y.element),Ke(xe({},y),{mode:x.OJ,next:C.END}))},[C.REPLACE_DEFAULT]:{exec:y=>(g.J.replace(y.element,y.style.defaultTag,y.jodit.createInside,!0),Ke(xe({},y),{mode:x.dj,next:C.END}))},[C.END]:{exec:y=>y}}},17800:function(p,v,c){c.d(v,{I:function(){return f},O:function(){return g}});const f=(()=>{let x;return()=>(x===void 0&&(x=(()=>{const b="___Jodit___"+Math.random().toString();try{localStorage.setItem(b,"1");const C=localStorage.getItem(b)==="1";return localStorage.removeItem(b),C}catch(C){}return!1})()),x)})();class g{set(b,C){try{const w=localStorage.getItem(this.rootKey),y=w?JSON.parse(w):{};y[b]=C,localStorage.setItem(this.rootKey,JSON.stringify(y))}catch(w){}return this}delete(b){try{localStorage.removeItem(this.rootKey)}catch(C){}return this}get(b){try{const C=localStorage.getItem(this.rootKey),w=C?JSON.parse(C):{};return w[b]!==void 0?w[b]:null}catch(C){}}exists(b){return this.get(b)!=null}constructor(b){this.rootKey=b}clear(){try{localStorage.removeItem(this.rootKey)}catch(b){}return this}}},2788:function(p,v,c){c.d(v,{M:function(){return f}});class f{constructor(){this.data=new Map}set(x,b){return this.data.set(x,b),this}delete(x){return this.data.delete(x),this}get(x){return this.data.get(x)}exists(x){return this.data.has(x)}clear(){return this.data.clear(),this}}},63915:function(p,v,c){c.d(v,{wc:function(){return f.w}}),c(17800);var f=c(24834)},24834:function(p,v,c){c.d(v,{w:function(){return C}});var f=c(83260),g=c(17800),x=c(2788);const b="Jodit_";class C{set(y,_){return this.provider.set((0,f.x)(this.prefix+y),_),this}delete(y){return this.provider.delete((0,f.x)(this.prefix+y)),this}get(y){return this.provider.get((0,f.x)(this.prefix+y))}exists(y){return this.provider.exists((0,f.x)(this.prefix+y))}clear(){return this.provider.clear(),this}constructor(y,_){this.provider=y,this.prefix=b,_&&(this.prefix+=_)}static makeStorage(y=!1,_){let S;return y&&(0,g.I)()&&(S=new g.O(b+_)),S||(S=new x.M),new C(S,_)}}},58597:function(p,v,c){c.d(v,{z:function(){return b}});var f=c(9823),g=c(84976),x=c(34256);class b{dlg(y){const _=new x.lG(xe({language:this.o.language,shadowRoot:this.o.shadowRoot,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,theme:this.o.theme,globalFullSize:this.o.globalFullSize},y));return(0,g.b_)(this,_.container),_.parent=this,_.bindDestruct(this)}confirm(y,_,S){return y=C(y,this),_=C(_,this),x.pT.call(this.dlg({closeOnClickOverlay:!0}),y,_,S)}prompt(y,_,S,I,E){return y=C(y,this),_=C(_,this),I=C(I,this),x.XG.call(this.dlg({closeOnClickOverlay:!0}),y,_,S,I,E)}alert(y,_,S,I){return y=C(y,this),_=C(_,this),x.Fc.call(this.dlg({closeOnClickOverlay:!0}),y,_,S,I)}}function C(w,y){return(0,f.Kg)(w)&&!(0,f.AH)(w)&&(w=y.i18n(w)),w}},87906:function(p,v,c){c.d(v,{O:function(){return g}});var f=c(42448);class g{getElm(b){return this.container.querySelector(`.${this.getFullElName(b)}`)}getElms(b){return(0,f.$)(this.container.querySelectorAll(`.${this.getFullElName(b)}`))}}},75758:function(p,v,c){c.d(v,{K:function(){return g}});var f=c(35642);class g{afterSetMod(b,C){}setMod(b,C,w){b=b.toLowerCase();const y=this.mods[b];if(y===C)return this;const _=`${this.componentName}_${b}_`,S=(w||this.container).classList;return y!=null&&S.remove(`${_}${y.toString().toLowerCase()}`),!(0,f.R)(C)&&C!==""&&S.add(`${_}${C.toString().toLowerCase()}`),this.mods[b]=C,this.afterSetMod(b,C),this}getMod(b){var C;return(C=this.mods[b])!==null&&C!==void 0?C:null}}},92032:function(p,v,c){c.d(v,{$n:function(){return O},lD:function(){return T},ue:function(){return E}});var f=c(31635),g=c(64567),x=c(22664),b=c(55186),C=c(69052),w=c(98253),y=c(97369),_=c(29780),S=c(94070),I=c(931);const E=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let T=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,y.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,y.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,y.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,y.attr)(this.container,"data-ref",this.state.name),(0,y.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,y.attr)(this.container,"title",this.state.tooltip),(0,y.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,y.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;b.J.detach(this.icon);const j=I.I.makeIcon(this.j,this.state.icon);j&&this.icon.appendChild(j)}focus(){this.container.focus()}isFocused(){const{activeElement:A}=this.od;return!!(A&&b.J.isOrContains(this.container,A))}createContainer(){const A=this.componentName,j=this.j.c.element("button",{class:A,type:"button",role:"button",ariaPressed:!1}),M=this.j.c.span(A+"__icon"),R=this.j.c.span(A+"__text");return j.appendChild(M),j.appendChild(R),j}constructor(A,j){super(A),this.isButton=!0,this.state=E(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),j&&this.hookStatus(g.f.ready,()=>{this.setState(j)})}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(j=>j.call(this,A))}};function O(A,j,M,R){const D=new T(A);return D.state.tabIndex=A.o.allowTabNavigation?0:-1,(0,w.K)(j)?(D.state.icon.name=j,D.state.name=j,R&&(D.state.variant=R),M&&(D.state.text=M)):D.setState(j),D}(0,f.Cg)([x.cache],T.prototype,"text",null),(0,f.Cg)([x.cache],T.prototype,"icon",null),(0,f.Cg)([(0,x.watch)("state.size",{immediately:!1})],T.prototype,"onChangeSize",null),(0,f.Cg)([(0,x.watch)("state.type",{immediately:!1})],T.prototype,"onChangeType",null),(0,f.Cg)([(0,x.watch)("parentElement")],T.prototype,"updateSize",null),(0,f.Cg)([(0,x.watch)("state.variant",{immediately:!1})],T.prototype,"onChangeStatus",null),(0,f.Cg)([(0,x.watch)("state.text",{immediately:!1})],T.prototype,"onChangeText",null),(0,f.Cg)([(0,x.watch)("state.text",{immediately:!1})],T.prototype,"onChangeTextSetMode",null),(0,f.Cg)([(0,x.watch)("state.disabled")],T.prototype,"onChangeDisabled",null),(0,f.Cg)([(0,x.watch)("state.activated")],T.prototype,"onChangeActivated",null),(0,f.Cg)([(0,x.watch)("state.name",{immediately:!1})],T.prototype,"onChangeName",null),(0,f.Cg)([(0,x.watch)("state.tooltip",{immediately:!1})],T.prototype,"onChangeTooltip",null),(0,f.Cg)([(0,x.watch)("state.tabIndex",{immediately:!1})],T.prototype,"onChangeTabIndex",null),(0,f.Cg)([(0,x.watch)("state.icon",{immediately:!1})],T.prototype,"onChangeIcon",null),(0,f.Cg)([x.cacheHTML],T.prototype,"createContainer",null),(0,f.Cg)([(0,x.watch)("button:click")],T.prototype,"__onActionFire",null),T=(0,f.Cg)([x.component],T)},31202:function(p,v,c){c.d(v,{s:function(){return C}});var f=c(31635),g=c(24767),x=(c(28712),c(92032)),b=c(6455);let C=class extends b.U{className(){return"UIButtonGroup"}render(w){return`<div>
3177
3177
  <div class="&__label">~${w.label}~</div>
package/dist/main.js CHANGED
@@ -118067,7 +118067,7 @@ const HIe = 5 * 1024 * 1024, ycr = HIe / 1048576, Wcr = (e) => {
118067
118067
  }
118068
118068
  }), { mutate: X, isLoading: Z } = Ui(qa, "mutateBulkUploadEmployeeToPip", {
118069
118069
  onSuccess: ({ data: re }) => {
118070
- A(!1), M(null), s({
118070
+ pe(), s({
118071
118071
  type: "success",
118072
118072
  message: (re == null ? void 0 : re.message) || "Updated Successfully!"
118073
118073
  }), a.invalidateQueries("fetchPipList");
@@ -118127,6 +118127,7 @@ const HIe = 5 * 1024 * 1024, ycr = HIe / 1048576, Wcr = (e) => {
118127
118127
  });
118128
118128
  }
118129
118129
  }), pe = () => {
118130
+ M(null), D(!1), A(!1);
118130
118131
  }, ye = (re) => {
118131
118132
  Array.isArray(re) && re.forEach((Ce) => {
118132
118133
  var de;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zimyo/engage",
3
3
  "private": false,
4
- "version": "0.2.1-pms",
4
+ "version": "0.2.2-pms",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },