(()=>{var e={2096:(e,t,n)=>{"use strict";n.d(t,{A:()=>re});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--v):0,g--,10===b&&(g=1,m--),b}function _(){return b=v2||N(b)>3?"":" "}function j(e,t){for(;--t&&_()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,O()+(t<6&&32==S()&&32==_()))}function T(e){for(;_();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&T(b);break;case 40:41===e&&T(e);break;case 92:_()}return v}function L(e,t){for(;_()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+k(t,v-1)+"*"+a(47===e?e:_())}function P(e){for(;!N(S());)_();return k(e,v)}var R="-ms-",F="-moz-",B="-webkit-",z="comm",q="rule",U="decl",H="@keyframes";function V(e,t){for(var n="",r=f(e),o=0;o0&&p(F)-y&&h(b>32?$(F+";",r,n,y-1):$(l(F," ","")+";",r,n,y-2),f);break;case 59:F+=";";default:if(h(R=Y(F,t,n,m,g,o,d,M,A=[],T=[],y),i),123===N)if(0===g)W(F,t,R,R,A,i,y,d,T);else switch(99===v&&110===u(F,3)?100:v){case 100:case 108:case 109:case 115:W(e,R,R,r&&h(Y(e,R,R,0,0,o,d,M,o,A=[],y),T),o,T,y,d,r?A:T);break;default:W(F,R,R,R,[""],T,0,d,T)}}m=g=b=0,E=k=1,M=F="",y=s;break;case 58:y=1+p(F),b=w;default:if(E<1)if(123==N)--E;else if(125==N&&0==E++&&125==C())continue;switch(F+=a(N),N*E){case 38:k=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(p(F)-1)*k,k=1;break;case 64:45===S()&&(F+=D(_())),v=S(),g=y=p(M=F+=P(O())),N++;break;case 45:45===w&&2==p(F)&&(E=0)}}return i}function Y(e,t,n,r,a,i,c,u,p,h,m){for(var g=a-1,y=0===a?i:[""],v=f(y),b=0,w=0,x=0;b0?y[C]+" "+_:l(_,/&\f/g,y[C])))&&(p[x++]=S);return E(e,t,n,0===a?q:u,p,h,m)}function Q(e,t,n){return E(e,t,n,z,a(b),d(e,2,-2),0)}function $(e,t,n,r){return E(e,t,n,U,d(e,0,r),d(e,r+1,-1),r)}var Z=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!N(o);)_();return k(e,v)},J=new WeakMap,X=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=function(e,t){return A(function(e,t){var n=-1,r=44;do{switch(N(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=Z(v-1,t,n);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=_());return e}(M(e),t))}(t,o),s=n.props,l=0,c=0;l6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+B)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+R+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+R+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+R+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+R+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=te(e.value,e.length);break;case H:return V([x(e,{value:l(e.value,"@","@"+B)})],r);case q:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return V([x(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([x(e,{props:[l(t,/:(plac\w+)/,":"+B+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,a,i=e.stylisPlugins||ne,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n{"use strict";n.d(t,{AH:()=>I,Y:()=>D,i7:()=>j});var r=n(1609),o=n(2096),a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function s(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var l=!1,c=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,d=function(e){return 45===e.charCodeAt(1)},p=function(e){return null!=e&&"boolean"!=typeof e},f=s((function(e){return d(e)?e:e.replace(c,"-$&").toLowerCase()})),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return y={name:t,styles:n,next:y},t}))}return 1===i[e]||d(e)||"number"!=typeof t||0===t?t:t+"px"},m="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return y={name:o.name,styles:o.styles,next:y},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)y={name:i.name,styles:i.styles,next:y},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:y}}var w,E,x=!!r.useInsertionEffect&&r.useInsertionEffect,C=x||function(e){return e()},_=(x||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null)),S=(_.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(_);return e(t,o,n)}))}),O=r.createContext({}),k={}.hasOwnProperty,N="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return a(t,n,r),C((function(){return function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},A=S((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var a=e[N],i=[o],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var l=b(i,void 0,r.useContext(O));s+=t.key+"-"+l.name;var c={};for(var u in e)k.call(e,u)&&"css"!==u&&u!==N&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),r.createElement(r.Fragment,null,r.createElement(M,{cache:t,serialized:l,isStringTag:"string"==typeof a}),r.createElement(a,c))})),D=(n(1035),function(e,t){var n=arguments;if(null==t||!k.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=A,a[1]=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[N]=e,n}(e,t);for(var i=2;i{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function u(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let o=_(("string"==typeof t?c(t):t).pathname||"/",n);if(null==o)return null;let a=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let e=0;null==i&&e{let s={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};s.relativePath.startsWith("/")&&(i(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=N([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),d(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:w(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of p(e.path))o(e,t,n);else o(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return o?[a,""]:[a];let i=p(r.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}n.d(t,{AO:()=>l,Gh:()=>k,HS:()=>N,Oi:()=>i,Rr:()=>c,pX:()=>j,pb:()=>_,rc:()=>o,tH:()=>I,ue:()=>u,yD:()=>O}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(a||(a={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const f=/^:[\w-]+$/,h=3,m=2,g=1,y=10,v=-2,b=e=>"*"===e;function w(e,t){let n=e.split("/"),r=n.length;return n.some(b)&&(r+=v),t&&(r+=m),n.filter((e=>!b(e))).reduce(((e,t)=>e+(f.test(t)?h:""===t?g:y)),r)}function E(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},a="/",i=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=o&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:i,pattern:e}}function C(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function S(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function O(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function k(e,t,n,o){let a;void 0===o&&(o=!1),"string"==typeof e?a=c(e):(a=r({},e),i(!a.pathname||!a.pathname.includes("?"),S("?","pathname","search",a)),i(!a.pathname||!a.pathname.includes("#"),S("#","pathname","hash",a)),i(!a.search||!a.search.includes("#"),S("#","search","hash",a)));let s,l=""===e||""===a.pathname,u=l?"/":a.pathname;if(null==u)s=n;else{let e=t.length-1;if(!o&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?c(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:A(r),hash:D(o)}}(a,s),p=u&&"/"!==u&&u.endsWith("/"),f=(l||"."===u)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}const N=e=>e.join("/").replace(/\/\/+/g,"/"),M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",D=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class I extends Error{}function j(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const T=["post","put","patch","delete"],L=(new Set(T),["get",...T]);new Set(L),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred")},8378:(e,t,n)=>{"use strict";n.d(t,{K:()=>a,t:()=>o});var r=n(1609);const o=(0,r.createContext)(),a=({children:e})=>{const[t,n]=(0,r.useState)(!1);return(0,r.createElement)(o.Provider,{value:{showGlossaryModal:t,setShowGlossaryModal:n}},e)}},1955:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,g:()=>i});var r=n(1609);const o=(0,r.createContext)(),a=({children:e})=>{const[t,n]=(0,r.useState)([]),[a,i]=(0,r.useState)((()=>()=>{}));return(0,r.createElement)(o.Provider,{value:{categories:t,setCategories:n,reFetchCategories:a,setReFetchCategories:i}},e)},i=()=>(0,r.useContext)(o)},8120:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r,o=n(1609),a=n(7723),i=n(8537),s=n(1419),l=n.n(s),c=n(1890),u=n(933),d=n.n(u),p=n(537),f=n(5786),h=n(4456);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 492 492"},e),r||(r=o.createElement("path",{d:"M300.188 246 484.14 62.04c5.06-5.064 7.852-11.82 7.86-19.024 0-7.208-2.792-13.972-7.86-19.028L468.02 7.872C462.952 2.796 456.196.016 448.984.016c-7.2 0-13.956 2.78-19.024 7.856L246.008 191.82 62.048 7.872C56.988 2.796 50.228.016 43.02.016c-7.2 0-13.96 2.78-19.02 7.856L7.872 23.988c-10.496 10.496-10.496 27.568 0 38.052L191.828 246 7.872 429.952C2.808 435.024.02 441.78.02 448.984s2.788 13.96 7.852 19.028l16.124 16.116c5.06 5.072 11.824 7.856 19.02 7.856 7.208 0 13.968-2.784 19.028-7.856l183.96-183.952 183.952 183.952c5.068 5.072 11.824 7.856 19.024 7.856h.008c7.204 0 13.96-2.784 19.028-7.856l16.12-16.116c5.06-5.064 7.852-11.824 7.852-19.028s-2.792-13.96-7.852-19.028z"}))),y={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},v=({open:e,reFetchCategories:t,setShowCategoryModal:n,updateCategory:r,setUpdateCategory:s})=>{const[u,m]=(0,o.useState)({title:"",icon:""}),[v,b]=(0,o.useState)({title:""});(0,o.useEffect)((()=>{null!==r?m({...u,title:(0,i.decodeEntities)(r?.name),icon:r?.meta?.faq_group_icon[0]||""}):w()}),[e,r]);const w=()=>{m({title:"",icon:""})},E=()=>{b({title:""})},x=()=>{E(),n(!1),s(null)},C=()=>{(0,h.O$)(((e,t)=>{m({...u,icon:e})}))};return(0,o.createElement)(d(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>x(),style:y},(0,o.createElement)("form",{onSubmit:e=>{e.preventDefault();const o=(0,f.q)(u,{title:{required:{value:!0,message:(0,a.__)("Please Insert FAQ Group Title.","betterdocs")}}});if(!o.valid)return void b(o.errors);const i={title:u?.title,icon:u?.icon};null!==r?(0,h.KK)({...i,term_id:r?.id}).then((e=>{e&&(E(),t(),l().fire({text:(0,a.__)("FAQ Group Updated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{c.oR.error(e?.message||(0,a.__)("Something went wrong!","betterdocs"))})).finally((()=>{n(!1),s(null)})):(0,h.rg)(i).then((e=>{e&&(E(),t(),l().fire({text:(0,a.__)("FAQ Group Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{c.oR.error(e?.message||(0,a.__)("Something went wrong!","betterdocs"))})).finally((()=>{n(!1)}))}},(0,o.createElement)("div",{className:"bd-faq-ctg-header"},(0,o.createElement)("h3",{className:"bd-faq-ctg-title"},r?(0,a.__)("Update FAQ Group","betterdocs"):(0,a.__)("Create New FAQ Group","betterdocs")),(0,o.createElement)("button",{type:"button",className:"bd-faq-modal-close-button",onClick:()=>x()},(0,o.createElement)(g,null))),(0,o.createElement)("div",{className:"bd-faq-ctg-body"},(0,o.createElement)("div",{className:"bd-faq-cgt-field"},(0,o.createElement)("label",{className:"bd-faq-label"},(0,a.__)("FAQ Group Title","betterdocs")),(0,o.createElement)("input",{type:"text",className:"bd-faq-input",value:u?.title,onChange:e=>m({...u,title:e.target.value.replace(/^\s+/,"")}),placeholder:(0,a.__)("FAQ Group Title...","betterdocs")}),(0,o.createElement)(p.A,{error:v.title})),(0,o.createElement)("div",{className:"bd-faq-cgt-field bd-faq-icon-field"},(0,o.createElement)("label",{className:"bd-faq-label"},(0,a.__)("FAQ Group Icon","betterdocs")),u.icon?(0,o.createElement)("div",{className:"bd-faq-control bd-faq-media"},(0,o.createElement)("div",{className:"bd-faq-image-preview"},(0,o.createElement)("img",{src:u.icon,alt:"Selected Icon"})),(0,o.createElement)("div",{className:"bd-faq-image-uploader uploaded"},(0,o.createElement)("div",{className:"bd-faq_image_overlay"},(0,o.createElement)("button",{type:"button",className:"bd-faq-btn bd-faq-image-change-btn",onClick:C},(0,o.createElement)("i",{className:"btd-icon btd-upload"})),(0,o.createElement)("button",{type:"button",className:"bd-faq-btn bd-faq-image-remove-btn",onClick:()=>{m({...u,icon:""})}},(0,o.createElement)("i",{className:"btd-icon btd-delete"}))))):(0,o.createElement)("div",{className:"bd-faq-control bd-faq-media"},(0,o.createElement)("div",{className:"bd-faq-image-uploader"},(0,o.createElement)("button",{type:"button",className:"bd-faq-btn bd-faq-image-upload-btn",onClick:C},(0,o.createElement)("span",{className:"icon"},(0,o.createElement)("i",{className:"btd-icon btd-upload"})),(0,o.createElement)("span",{className:"title"},(0,a.__)("Click to upload","betterdocs")),(0,o.createElement)("span",{className:"info"},(0,a.__)("SVG, PNG, JPG or GIF","betterdocs"))))))),(0,o.createElement)("div",{className:"bd-faq-ctg-footer"},(0,o.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>x()},(0,o.createElement)("span",{className:"bd-faq-text"},(0,a.__)("Cancel","betterdocs"))),(0,o.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,o.createElement)("span",{className:"bd-faq-text"},r?(0,a.__)("Update FAQ Group","betterdocs"):(0,a.__)("Create FAQ Group","betterdocs"))))))}},301:(e,t,n)=>{"use strict";n.d(t,{A:()=>Ze});var r=n(1609),o=n.n(r),a=n(5849),i=n(8401),s=n(933),l=n.n(s),c=n(1890),u=n(7867),d=n(9045),p=(n(9386),n(7517));const f=e=>(0,r.createElement)(p.Ay,{speed:2,width:"100%",viewBox:"0 0 600 160",backgroundColor:"#e5e5e5",foregroundColor:"#c5c5c5",...e},(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"55",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"42",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"41",rx:"0",ry:"0",width:"150",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"39",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"46",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"40",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"80",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"67",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"66",rx:"0",ry:"0",width:"120",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"64",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"71",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"65",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"105",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"92",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"91",rx:"0",ry:"0",width:"145",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"89",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"96",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"90",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"130",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"109",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"117",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"116",rx:"0",ry:"0",width:"130",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"114",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"121",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"115",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"155",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"134",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"142",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"141",rx:"0",ry:"0",width:"155",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"139",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"146",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"140",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"23",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"585",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"170",y:"0",rx:"0",ry:"0",width:"346",height:"28"}),(0,r.createElement)("rect",{x:"35",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"50",y:"0",rx:"0",ry:"0",width:"120",height:"9"}),(0,r.createElement)("rect",{x:"50",y:"19",rx:"0",ry:"0",width:"120",height:"9"}));var h,m,g,y=n(4456),v=n(7723),b=n(1419),w=n.n(b);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 134 134"},e),h||(h=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"})),r.createElement("mask",{id:"empty-faq_svg__a",width:134,height:134,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},m||(m=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"}))),g||(g=r.createElement("g",{mask:"url(#empty-faq_svg__a)"},r.createElement("path",{fill:"#B4C3DF",d:"m106.448 69.059-.227 61.295c-.005 1.598-1.36 2.887-3.025 2.881l-74.044-.276c-1.665-.006-3.02-1.306-3.014-2.904l.26-70.05c.005-1.599 1.366-2.899 3.036-2.888l16.632.061c1.05.006 2.019.537 2.56 1.388l3.812 6.002c.542.862 1.515 1.388 2.56 1.388l48.441.182c1.671.011 3.015 1.317 3.009 2.92"}),r.createElement("path",{fill:"#fff",d:"m107.56 50.873-.271 71.925a2.886 2.886 0 0 1-2.887 2.866l-66.024-.249a2.886 2.886 0 0 1-2.865-2.888l.315-83.662A2.885 2.885 0 0 1 38.715 36l54.282.205 4.685 4.718 5.005 5.044z"}),r.createElement("path",{fill:"#3A7EC1",d:"M93.55 49.695c.248.254.58 2.406 14.004 3.053l.005-1.88z",opacity:.2}),r.createElement("path",{fill:"#fff",d:"M92.958 47.942a2.885 2.885 0 0 0 2.865 2.887l11.742.044-14.563-14.668z"}),r.createElement("path",{fill:"#EE9811",d:"m97.493 94.109-51.959-.194a1.2 1.2 0 0 1-1.195-1.205 1.2 1.2 0 0 1 1.206-1.195l51.959.194a1.2 1.2 0 1 1-.011 2.4M97.582 101.979l-45.117-.171a1.2 1.2 0 1 1 .011-2.4l45.117.171a1.2 1.2 0 1 1-.011 2.4M97.554 109.85l-52.075-.193a1.2 1.2 0 1 1 .011-2.401l52.075.194c.658 0 1.2.542 1.194 1.205a1.21 1.21 0 0 1-1.205 1.195"}),r.createElement("path",{fill:"#F9C067",d:"m113.887 76.902-6.632 54.608a3.966 3.966 0 0 1-3.954 3.49l-74.304-.277a3.965 3.965 0 0 1-3.927-3.517L19.926 86.1a3.967 3.967 0 0 1 3.96-4.42l16.991.061a3.98 3.98 0 0 0 3.656-2.383l2.063-4.74a3.96 3.96 0 0 1 3.656-2.384l59.713.22c2.368.006 4.204 2.086 3.922 4.448"}))));var C,_,S;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),C||(C=r.createElement("path",{d:"M314.17 7.01v103.01h102.48z"})),_||(_=r.createElement("path",{d:"M294.16 395.58c0-64.19 52.23-116.42 116.42-116.42 5.08 0 10.09.33 15 .97V140.02H299.17c-8.28 0-15-6.71-15-15V0H30c-8.28 0-15 6.72-15 15v482c0 8.28 6.72 15 15 15h380.58c-64.19 0-116.42-52.23-116.42-116.42M330.58 182c8.28 0 15 6.72 15 15s-6.72 15-15 15H203.36c-8.28 0-15-6.72-15-15s6.72-15 15-15zM80 122h160.86c8.28 0 15 6.72 15 15s-6.72 15-15 15H80c-8.28 0-15-6.72-15-15s6.72-15 15-15m0 60h64.3c8.28 0 15 6.72 15 15s-6.72 15-15 15H80c-8.28 0-15-6.72-15-15s6.72-15 15-15m0 60h114.3c8.28 0 15 6.72 15 15s-6.72 15-15 15H80c-8.28 0-15-6.72-15-15s6.72-15 15-15m160.86 150H80c-8.28 0-15-6.72-15-15s6.72-15 15-15h160.86c8.28 0 15 6.72 15 15s-6.72 15-15 15m0-60H80c-8.28 0-15-6.72-15-15s6.72-15 15-15h160.86c8.28 0 15 6.72 15 15s-6.72 15-15 15"})),S||(S=r.createElement("path",{d:"M410.58 309.16c-47.65 0-86.42 38.77-86.42 86.42S362.93 482 410.58 482 497 443.23 497 395.58s-38.77-86.42-86.42-86.42M452 410.58h-26.42V437c0 8.28-6.72 15-15 15s-15-6.72-15-15v-26.42h-26.42c-8.28 0-15-6.72-15-15 0-8.29 6.72-15 15-15h26.42v-26.42c0-8.28 6.72-15 15-15s15 6.72 15 15v26.42H452c8.28 0 15 6.71 15 15 0 8.28-6.72 15-15 15"})));var N;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 173"},e),N||(N=r.createElement("path",{d:"M86.58.16C38.93.16.16 38.93.16 86.58S38.93 173 86.58 173 173 134.23 173 86.58 134.23.16 86.58.16M128 101.58h-26.42V128c0 8.28-6.72 15-15 15s-15-6.72-15-15v-26.42H45.16c-8.28 0-15-6.72-15-15 0-8.29 6.72-15 15-15h26.42V45.16c0-8.28 6.72-15 15-15s15 6.72 15 15v26.42H128c8.28 0 15 6.71 15 15 0 8.28-6.72 15-15 15"}))),D=({reFetchCategories:e,setShowCategoryModal:t,showNewFaqText:n=!0,showFaqActionButtons:o=!0})=>(0,r.createElement)("div",{className:"bd-faq-empty-dashboard"},(0,r.createElement)("div",{className:"bd-faq-empty-icon"},(0,r.createElement)(x,null)),(0,r.createElement)("h2",{className:"bd-faq-empty-dashboard-title"},(0,v.__)("No FAQ Found!","betterdocs")),n&&(0,r.createElement)("p",{className:"bd-faq-empty-dashboard-desc"},(0,v.__)("Please Create a New FAQ Group to get started.","betterdocs")),o&&(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>t(!0)},(0,r.createElement)("span",{className:"bd-faq-icon"},(0,r.createElement)(A,null)),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Create a New FAQ Group","betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button",onClick:()=>{(0,y.Az)().then((()=>{w().fire({text:(0,v.__)("Sample Data Generated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}),e()})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}},(0,r.createElement)("span",{className:"bd-faq-icon"},(0,r.createElement)(k,null)),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Generate Sample FAQs","betterdocs")))));var I=n(309);const j=(e,t)=>{const n=e.source.index,r=e.destination.index;let o=[...t],[a]=o.splice(n,1);return o.splice(r,0,a),o};var T=n(8537),L=n(1330),P=n(4417),R=n(6253),F=n.n(R),B=n(3622),z=n.n(B);const q={options:["inline","blockType","textAlign","colorPicker","link","list","emoji"],inline:{options:["bold","italic","underline","strikethrough","monospace"]},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},list:{options:["unordered","ordered"]},emoji:{className:void 0,component:void 0,popupClassName:void 0,emojis:["😃","😄","😁","😆","😅","😂","🤣","😊","🙂","😉","😍","🥰","😋","😎","🥳","😏","😒","😕","☹️","😣","😢","😭","😤","😡","🤬","🤯","🥵","🥶","😱","😨","🤔","🤫","😶","😐","😑","🙄","😮","👽","👾","🤖","🎃","😺","😸","😹","🙀","🤑","😈","💩","👻","💀","🙌","👏","🤝","👍","👊","✌️","🤞","👌","👈","👉","☝️","✋","🤚","🖐","🖖","🙏","👀","👓","☠️","🙈","🙉","🙊","🐞","🕷️","🌿","🍀","🌵","🍃","🍄","🥀","🌻","🌛","🌚","🌕","🌎","🌍","🌏","🪐","💫","⚡","☄️","💥","🔥","🌪️","🌈","🌥️","⛈️","❄️","☃️","💦","☔","🌊","🍏","🍌","🍉","🍇","🍍","🥭","🍞","🧀","🥚","🍗","🍔","🍕","🥘","🍙","🎂","🍰","☕","🍼","🍯","🍺","🍻","🥂","🍷","🍸","🥄","🍴","🍽️","⚽","🏀","🏈","⚾","🎾","🏐","🎱","🏓","⛳","🚗","🚕","🚌","🏎️","🚓","🚑","🚒","🚛","🚜","🚲","🏍️","✈️","🚁","🚀","🛸","⛵","🚢","⚓","🚧","🚥","🗽","🗼","🎡","🏝️","🏖️","🗻","📸","⏳","💡","🕯️","💸","💰","💎","🔪","🗡️","💊","💉","🩸","🦠","🧸","📧","💌","📌","📍","🖊️","🔎","🔒","🔓","❤️","🧡","💛","💚","💙","💜","🖤","💔","❣️","💕","💞","💓","💖","💘","💝","☮️","☢️","❌","⭕","⛔","🚫","💯","❗","❕","❓","❔","‼️","⁉️","✅","🌐","💤","🏳️","🏴","🏁","🚩","🏴‍☠️"]}},U=({aiValue:e=null,value:t,onChange:n,placeholder:o})=>{const[a,i]=(0,r.useState)(L.EditorState.createEmpty());return(0,r.useEffect)((()=>{if(t){const{contentBlocks:e,entityMap:n}=z()(t),r=L.ContentState.createFromBlockArray(e,n),o=L.EditorState.createWithContent(r);i(o)}}),[]),(0,r.useEffect)((()=>{if(e){const{contentBlocks:t,entityMap:n}=z()(e),r=L.ContentState.createFromBlockArray(t,n),o=L.EditorState.createWithContent(r);i(o)}}),[e]),(0,r.useEffect)((()=>{let e=F()((0,L.convertToRaw)(a.getCurrentContent()));n(e)}),[a]),(0,r.createElement)(P.Editor,{editorState:a,onEditorStateChange:i,wrapperClassName:"bd-faq-editor",toolbarClassName:"bd-faq-editor-toolbar",editorClassName:"bd-faq-editor-main",placeholder:o,toolbar:q})};var H,V,K=n(537),G=n(5786);function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 16 16"},e),H||(H=r.createElement("g",{fill:"#fff",clipPath:"url(#betterdocs-icon-white_svg__a)"},r.createElement("path",{d:"M7.608 6.345h4.012a.72.72 0 0 0 .709-.732.72.72 0 0 0-.71-.73H7.609a.72.72 0 0 0-.71.73.716.716 0 0 0 .71.732M5.995 9.193h4.011c.392 0 .71-.327.71-.73a.72.72 0 0 0-.71-.732H5.995a.72.72 0 0 0-.71.731c0 .404.318.731.71.731M9.077 11.37a.72.72 0 0 0-.71-.731H4.356a.72.72 0 0 0-.71.73c0 .404.318.732.71.732h4.011c.392 0 .71-.328.71-.731"}),r.createElement("path",{d:"M14.58 8.008c-.025-.058-.057-.1-.09-.15l1.068-1.9a3.34 3.34 0 0 0 .008-3.303C14.988 1.622 13.952 1 12.786 1H7.943c-1.134 0-2.194.63-2.773 1.647L.441 11.042a3.34 3.34 0 0 0-.008 3.303C1.013 15.378 2.048 16 3.213 16h8.293c1.476 0 2.83-.773 3.612-2.059a4.5 4.5 0 0 0 .236-4.252zM4.437 14.445H3.214c-.62 0-1.166-.327-1.476-.882a1.78 1.78 0 0 1 .008-1.756l4.73-8.395a1.7 1.7 0 0 1 1.475-.874h4.843c.62 0 1.166.328 1.476.882.31.546.302 1.202-.008 1.756l-4.737 8.395a1.69 1.69 0 0 1-1.468.874zm9.417-1.336a2.74 2.74 0 0 1-2.34 1.336h-.742c.016-.033.04-.058.057-.092l2.764-4.9.424.9c.4.89.343 1.924-.163 2.756"}))),V||(V=r.createElement("defs",null,r.createElement("clipPath",{id:"betterdocs-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 1h16v15H0z"})))));var Q,$;function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none"},e),Q||(Q=r.createElement("g",{clipPath:"url(#ai-icon-white_svg__a)"},r.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m10.396 18.86-4.286.372.371-4.285 8.915-8.858a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.704 5.676c-.501-.087-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.815-.498.93-.003l.035.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899A4.56 4.56 0 0 0 6.35 9.156l-.037.162c-.113.494-.818.491-.927-.004l-.029-.139a4.54 4.54 0 0 0-3.657-3.5z"}))),$||($=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M.5 0h20v20H.5z"})))));var X,ee;function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),X||(X=r.createElement("g",{clipPath:"url(#ai-icon-color_svg__a)"},r.createElement("path",{stroke:"#344054",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m9.895 18.861-4.286.371.371-4.286 8.915-8.857a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.204 5.674c-.501-.088-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.814-.499.929-.003l.036.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899a4.56 4.56 0 0 0-3.664 3.479l-.037.161c-.112.494-.818.491-.926-.004l-.029-.139a4.54 4.54 0 0 0-3.658-3.5h.003Z"}))),ee||(ee=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-color_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))))),re={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},oe=({open:e,setShowFaqAIModalForm:t,setFormFields:n,formFields:o})=>{const[a,i]=(0,r.useState)(o),[s,c]=(0,r.useState)(null),[u,d]=(0,r.useState)(null),[p,f]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1),[g,b]=(0,r.useState)(null);(0,r.useEffect)((()=>{(0,y.uF)().then((e=>{b(e)})).catch((function(e){console.log(e)}))}),[]);const w=()=>{d({title:""}),t(!1)},E=e=>e&&e.ai_autowrite_api_key?e.ai_autowrite_api_key:"";return(0,r.createElement)(l(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>w(),style:re},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-container","data-new-doc-page":"true"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-content"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-top-part"},(0,r.createElement)("div",{className:"autowrite-heading"},(0,r.createElement)("span",{className:"autowrite-icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none"},(0,r.createElement)("g",{clipPath:"url(#clip0_2453_20882)"},(0,r.createElement)("path",{d:"M15.8322 30.1765L8.97508 30.7708L9.56936 23.9136L23.8322 9.74219C24.0451 9.52448 24.2993 9.3515 24.58 9.23341C24.8606 9.11531 25.162 9.05447 25.4665 9.05447C25.771 9.05447 26.0724 9.11531 26.3531 9.23341C26.6337 9.3515 26.8879 9.52448 27.1008 9.74219L30.0037 12.6679C30.2176 12.8805 30.3874 13.1334 30.5033 13.4119C30.6192 13.6904 30.6788 13.9891 30.6788 14.2908C30.6788 14.5924 30.6192 14.8911 30.5033 15.1696C30.3874 15.4481 30.2176 15.701 30.0037 15.9136L15.8322 30.1765ZM1.92593 9.07933C1.12365 8.9399 1.12365 7.7879 1.92593 7.64848C3.34647 7.40124 4.6612 6.73658 5.70251 5.73923C6.74382 4.74188 7.46455 3.45703 7.77279 2.04848L7.82079 1.82676C7.99451 1.03591 9.12365 1.02905 9.30651 1.82219L9.36365 2.07819C9.68319 3.48048 10.4099 4.75709 11.4526 5.74772C12.4953 6.73834 13.8074 7.39881 15.2242 7.64619C16.0311 7.78333 16.0311 8.94219 15.2242 9.0839C13.8073 9.33071 12.4949 9.99066 11.4518 10.9809C10.4087 11.9711 9.68146 13.2474 9.36136 14.6496L9.30193 14.9079C9.12136 15.6988 7.99222 15.6942 7.81851 14.901L7.77279 14.6793C7.46424 13.2702 6.74284 11.9849 5.70064 10.9874C4.65845 9.99003 3.34273 9.32574 1.92136 9.07933H1.92593Z",stroke:"#E31B54",strokeWidth:"2.28571",strokeLinecap:"round",strokeLinejoin:"round"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_2453_20882"},(0,r.createElement)("rect",{width:32,height:32,fill:"white"}))))),(0,r.createElement)("h1",null,(0,v.__)("Write FAQ with BetterDocs AI","betterdocs"))),(0,r.createElement)("div",{className:"autowrite-subheadding"},(0,r.createElement)("p",null,(0,v.__)("Generate FAQs effortlessly with BetterDocs AI. Simply input your question & relevant keywords and let the system automatically generate FAQs tailored to your needs.","betterdocs"))),g&&!E(g)&&(0,r.createElement)("div",{id:"betterdocs-ai-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",null,(0,v.__)("Please insert your","betterdocs")," ",(0,r.createElement)("a",{target:"_blank",href:"/wp-admin/admin.php?page=betterdocs-settings&tab=tab-ai-autowrite"},(0,v.__)("OpenAI API Key","betterdocs"))," ",(0,v.__)('to use this "Write with AI" feature.',"betterdocs")))),u&&(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("div",{id:"betterdocs-ai-error-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",{className:"footer-message"},u))))),(0,r.createElement)("form",{id:"betterdocs-ai-form",className:g&&!E(g)&&"disabled-input-field",onSubmit:async e=>{e.preventDefault();const t=document.getElementById("betterdocs-ai-title").value,n=`Generate an FAQ answer for the question related to ${document.getElementById("betterdocs-ai-keyword").value}. The question: ${t}`;try{let{response:e,error:r}=await(async e=>{try{f(!0);const t="https://api.openai.com/v1/chat/completions",n={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${E(g)}`},body:JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a helpful assistant."},{role:"user",content:e}],max_tokens:100})},r=await fetch(t,n),o=await r.json();if(!r.ok)throw new Error(`${o?.error?.message}`);return o.error?(f(!1),m(!1),{response:null,error:o.error}):(f(!1),m(!0),{response:o.choices[0].message.content,error:null})}catch(e){throw f(!1),m(!1),new Error(`${e.message}`)}})(n);e=((e,t)=>{if("string"!=typeof t)return t;const n=new RegExp(`(<[^>]*>${e}<[^>]*>)|(${e})`,"gi");return t.replace(n,"")})("Answer:",e),e=e.replace(/^\s*\?/,""),r?d(r):(i((n=>({...n,question:t,aiAnswer:e}))),c(e))}catch(e){d(`${e.message}`)}}},(0,r.createElement)("div",{className:"form-inner-content"},(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-title"},(0,v.__)("Question:","betterdocs")),(0,r.createElement)("input",{type:"text",placeholder:(0,v.__)("Insert your question to generate a relevant response.","betterdocs"),id:"betterdocs-ai-title",name:"betterdocs-ai-title",required:!0,value:o?.question,onChange:e=>n((t=>({...t,question:e.target.value.replace(/^\s+/,"")})))})),(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-keyword"},(0,v.__)("Keywords:","betterdocs")),(0,r.createElement)("input",{type:"text",placeholder:(0,v.__)("Add keywords to generate precise & relevant FAQs (comma-separated).","betterdocs"),id:"betterdocs-ai-keyword",name:"betterdocs-ai-keyword",required:!0})),s&&(0,r.createElement)("div",{className:"form-group generated-answer"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-keyword"},(0,v.__)("Generated FAQ:","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-ai-content-wrapper"},(0,r.createElement)("p",{className:"betterdocs-ai-content",dangerouslySetInnerHTML:{__html:s}})))),(0,r.createElement)("div",{className:"generate-button-container"},(0,r.createElement)("button",{type:"submit",className:h?"generate-btn regenerate-btn":"generate-btn",disabled:p},p&&!h?(0,r.createElement)(J,null):h?(0,r.createElement)(ne,null):(0,r.createElement)(J,null),(0,r.createElement)("span",null,p?"Generating...":h?"Regenerate FAQ":"Generate FAQ")),h&&(0,r.createElement)("button",{type:"button",className:"keep-btn",onClick:()=>(n(a),void w())},(0,v.__)("Keep","betterdocs"))))),(0,r.createElement)("div",{className:"bd-close-button",onClick:()=>w()},"✕")))},ae=({reFetchFaqList:e,createFaqAt:t,setCreateFaqAt:n,reFetchCategories:o})=>{var a,i;const[s,l]=(0,r.useState)(!1),[u,d]=(0,r.useState)({question:"",answer:"",aiAnswer:null}),[p,f]=(0,r.useState)({question:"",answer:""}),[h,m]=(0,r.useState)(null);return(0,r.useEffect)((()=>{(0,y.uF)().then((e=>{m(e)})).catch((function(e){console.log(e)}))}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:r=>{r.preventDefault();const a=(0,G.q)(u,{question:{required:{value:!0,message:(0,v.__)("Please insert your question here.","betterdocs")}},answer:{minLength:{value:9,message:(0,v.__)("Answer must not be Empty.","betterdocs")}}});a.valid?a.valid&&(f({question:"",answer:""}),(0,y.Dc)({term_id:t,post_title:u?.question,post_content:u?.answer}).then((t=>{e(),o(),t&&w().fire({text:(0,v.__)("FAQ Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{n(null)}))):f(a.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Question","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:u?.question,onChange:e=>d({...u,question:e.target.value.replace(/^\s+/,"")}),placeholder:(0,v.__)("Add New Question","betterdocs")}),h&&(null===(a=h?.enable_faq_write_with_ai)||void 0===a||a)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{l(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Write With AI","betterdocs")))),(0,r.createElement)(K.A,{error:p.question})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Answer","betterdocs")),(0,r.createElement)(U,{value:u?.answer,aiValue:u?.aiAnswer,onChange:e=>{d({...u,answer:e})},placeholder:(0,v.__)("Write your Answer here.","betterdocs")}),(0,r.createElement)(K.A,{error:p.answer}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>{n(null)}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Create","betterdocs"))))))),s&&h&&(null===(i=h?.enable_faq_write_with_ai)||void 0===i||i)&&(0,r.createElement)(oe,{open:!0,setFormFields:d,formFields:u,setShowFaqAIModalForm:l}))};var ie;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),ie||(ie=r.createElement("path",{d:"m30 16-4.788 4.788A.71.71 0 0 1 24 20.286V17.5h-6.5V24h2.786a.71.71 0 0 1 .502 1.212L16 30l-4.788-4.788A.71.71 0 0 1 11.714 24H14.5v-6.5H8v2.786a.71.71 0 0 1-1.212.502L2 16l4.788-4.788A.71.71 0 0 1 8 11.714V14.5h6.5V8h-2.786a.71.71 0 0 1-.502-1.212L16 2l4.788 4.788A.71.71 0 0 1 20.286 8H17.5v6.5H24v-2.786a.71.71 0 0 1 1.212-.502z"})));var ce;function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",ue({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),ce||(ce=r.createElement("path",{d:"M424 64h-88V48c0-26.51-21.49-48-48-48h-64c-26.51 0-48 21.49-48 48v16H88c-22.091 0-40 17.909-40 40v32c0 8.837 7.163 16 16 16h384c8.837 0 16-7.163 16-16v-32c0-22.091-17.909-40-40-40M208 48c0-8.82 7.18-16 16-16h64c8.82 0 16 7.18 16 16v16h-96zM78.364 184a5 5 0 0 0-4.994 5.238l13.2 277.042c1.22 25.64 22.28 45.72 47.94 45.72h242.98c25.66 0 46.72-20.08 47.94-45.72l13.2-277.042a5 5 0 0 0-4.994-5.238zM320 224c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16z"})));var pe;function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 491.996 491.996"},e),pe||(pe=r.createElement("path",{d:"m484.132 124.986-16.116-16.228c-5.072-5.068-11.82-7.86-19.032-7.86-7.208 0-13.964 2.792-19.036 7.86l-183.84 183.848L62.056 108.554c-5.064-5.068-11.82-7.856-19.028-7.856s-13.968 2.788-19.036 7.856l-16.12 16.128c-10.496 10.488-10.496 27.572 0 38.06l219.136 219.924c5.064 5.064 11.812 8.632 19.084 8.632h.084c7.212 0 13.96-3.572 19.024-8.632l218.932-219.328c5.072-5.064 7.856-12.016 7.864-19.224 0-7.212-2.792-14.068-7.864-19.128"})));var me,ge,ye;function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",ve({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 512 512"},e),me||(me=r.createElement("path",{d:"M352.459 220c0-11.046-8.954-20-20-20h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20M126.459 280c-11.046 0-20 8.954-20 20s8.954 20 20 20H251.57c11.046 0 20-8.954 20-20s-8.954-20-20-20z"})),ge||(ge=r.createElement("path",{d:"M173.459 472H106.57c-22.056 0-40-17.944-40-40V80c0-22.056 17.944-40 40-40h245.889c22.056 0 40 17.944 40 40v123c0 11.046 8.954 20 20 20s20-8.954 20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112 0-80 35.888-80 80v352c0 44.112 35.888 80 80 80h66.889c11.046 0 20-8.954 20-20s-8.954-20-20-20"})),ye||(ye=r.createElement("path",{d:"M467.884 289.572c-23.394-23.394-61.458-23.395-84.837-.016l-109.803 109.56a20 20 0 0 0-5.01 8.345l-23.913 78.725a20 20 0 0 0 24.476 25.087l80.725-22.361a20 20 0 0 0 8.79-5.119l109.573-109.367c23.394-23.394 23.394-61.458-.001-84.854M333.776 451.768l-40.612 11.25 11.885-39.129 74.089-73.925 28.29 28.29zM439.615 346.13l-3.875 3.867-28.285-28.285 3.862-3.854c7.798-7.798 20.486-7.798 28.284 0s7.798 20.486.014 28.272M332.459 120h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20s-8.954-20-20-20"}))),we=()=>(0,r.createElement)("div",{className:"bd-empty-faq-category"},(0,r.createElement)("div",{className:"bd-faq-empty-icon"},(0,r.createElement)(x,null)),(0,r.createElement)("h2",{className:"bd-faq-empty-title"},(0,v.__)("No FAQ Found!","betterdocs")));var Ee,xe;function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",Ce({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:800,height:800,viewBox:"0 0 97.541 97.54"},e),Ee||(Ee=r.createElement("path",{d:"M70.063 27.182a7.784 7.784 0 0 0 10.97-.961c2.76-3.289 2.329-8.211-.96-10.973a7.8 7.8 0 0 0-5-1.822 7.78 7.78 0 0 0-5.971 2.782c-2.761 3.29-2.329 8.211.961 10.974M88.445 36.096a8.4 8.4 0 0 0-1.448.127c-4.485.791-7.493 5.086-6.702 9.573a8.24 8.24 0 0 0 8.119 6.825 8.5 8.5 0 0 0 1.451-.126c4.485-.792 7.492-5.086 6.701-9.571a8.24 8.24 0 0 0-8.121-6.828M88.158 63.113a8.7 8.7 0 0 0-4.354-1.172 8.78 8.78 0 0 0-7.579 4.371c-1.165 2.019-1.477 4.371-.872 6.625s2.052 4.139 4.069 5.304a8.7 8.7 0 0 0 4.357 1.174 8.77 8.77 0 0 0 7.576-4.369c2.406-4.172.972-9.525-3.197-11.933M63.316 78.646c-1.07 0-2.13.188-3.15.558a9.15 9.15 0 0 0-5.193 4.761 9.15 9.15 0 0 0-.308 7.04 9.24 9.24 0 0 0 8.654 6.063c1.07 0 2.13-.188 3.147-.559a9.14 9.14 0 0 0 5.191-4.764 9.15 9.15 0 0 0 .312-7.037 9.24 9.24 0 0 0-8.653-6.062M39.903 78.757a9.7 9.7 0 0 0-3.31-.588 9.71 9.71 0 0 0-9.097 6.375 9.6 9.6 0 0 0 .322 7.403 9.6 9.6 0 0 0 5.462 5.006 9.6 9.6 0 0 0 3.312.587 9.71 9.71 0 0 0 9.097-6.372 9.6 9.6 0 0 0-.326-7.4 9.62 9.62 0 0 0-5.46-5.011M24.916 65.6a10.2 10.2 0 0 0-8.805-5.078c-1.771 0-3.522.472-5.067 1.361a10.1 10.1 0 0 0-4.731 6.166 10.08 10.08 0 0 0 1.014 7.706 10.2 10.2 0 0 0 8.806 5.08c1.77 0 3.521-.472 5.065-1.362 4.848-2.799 6.516-9.023 3.718-13.873M11.495 54.991c5.158 0 9.555-3.695 10.453-8.786a10.55 10.55 0 0 0-1.762-7.94 10.56 10.56 0 0 0-6.861-4.372 10.607 10.607 0 0 0-12.313 8.622 10.56 10.56 0 0 0 1.762 7.941 10.56 10.56 0 0 0 6.861 4.371c.617.109 1.243.164 1.86.164M24.849 32.319c2.599 0 5.131-.923 7.13-2.598a11.03 11.03 0 0 0 3.918-7.538 11.02 11.02 0 0 0-2.551-8.104 11.08 11.08 0 0 0-8.511-3.965 11.1 11.1 0 0 0-7.131 2.597 11.03 11.03 0 0 0-3.923 7.537 11.03 11.03 0 0 0 2.555 8.104 11.09 11.09 0 0 0 8.513 3.967"})),xe||(xe=r.createElement("circle",{cx:49.955,cy:12.076,r:12.076}))),Se=()=>(0,r.createElement)("div",{className:"bd-faq-loader"},(0,r.createElement)(_e,null),(0,r.createElement)("h3",{className:"bd-title"},"Loading..."));var Oe=n(5798);const ke=({categoriesLoading:e,allFaqCategories:t,reFetchCategories:n,reFetchFaqList:o,faq:a,faqExpanded:i,setFaqExpanded:s,setReFetchFaqForCategory:l,showFaqAIModalForm:u,setShowFaqAIModalForm:d,settings:p})=>{var f,h;const[m,g]=(0,r.useState)({question:(0,T.decodeEntities)(a?.title?.rendered?a?.title?.rendered:a?.post_title?a?.post_title:""),answer:a?.content?.rendered?a?.content?.rendered:a?.post_content?a?.post_content:"",aiAnswer:null}),[b,E]=(0,r.useState)({default:{value:null,label:"Uncategorized"},cats:[]}),[x,C]=(0,r.useState)("not-set"),[_,S]=(0,r.useState)(!1),[O,k]=(0,r.useState)(""!=a?.meta?.faq_open_by_default);(0,r.useEffect)((()=>{i==(a?.id||a?.ID)&&g({question:(0,T.decodeEntities)(a?.title?.rendered?a?.title?.rendered:a?.post_title?a?.post_title:""),answer:a?.content?.rendered?a?.content?.rendered:a?.post_content?a?.post_content:""})}),[i]),(0,r.useEffect)((()=>{if(t?.length){let e;if(a?.betterdocs_faq_category){let n=t?.find((e=>e?.id==a?.betterdocs_faq_category[0]||e?.term_id==a?.betterdocs_faq_category[0]));e={value:n?.id||n?.term_id,label:(0,T.decodeEntities)(n?.name)}}else e={value:null,label:"Uncategorized"};let n=t?.map((e=>({value:e?.id||e?.term_id,label:(0,T.decodeEntities)(e?.name)})));E({default:e,cats:[...n]})}}),[t,a]);const[N,M]=(0,r.useState)({question:"",answer:""}),A=()=>{M({question:"",answer:""})},D=(e,t)=>{!_&&e?(S(!0),window.lastRequest=null,(0,y.pk)(e).then((e=>{t(e?.map((e=>({value:e?.id,label:e?.name}))))})).catch((e=>t([]))).finally((()=>{if(S(!1),window.lastRequest){const e=window.lastRequest;window.lastRequest=null,D(...e)}}))):window.lastRequest=[e,t]};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault();const t=(0,G.q)(m,{question:{required:{value:!0,message:(0,v.__)("Please insert your question here.","betterdocs")}},answer:{minLength:{value:9,message:(0,v.__)("Answer must not be Empty.","betterdocs")}}});t.valid?t.valid&&(A(),(0,y.g1)(x&&"not-set"!=x?{post_id:a?.id||a?.ID,post_title:m?.question,post_content:m?.answer,term_id:x}:{post_id:a?.id||a?.ID,post_title:m?.question,post_content:m?.answer}).then((e=>{e&&w().fire({text:(0,v.__)("FAQ Updated Successfully","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{s(void 0),n(),o(),x&&"not-set"!=x&&l(x)}))):M(t.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},b?.cats?.length?(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label"},(0,v.__)("FAQ Group","betterdocs")),(0,r.createElement)(Oe.A,{cacheOptions:!0,className:"bd-faq-select",classNamePrefix:"bd-faq-select",defaultOptions:b?.cats,defaultValue:b?.default,isLoading:e,isClearable:!1,isSearchable:!0,name:"category",loadOptions:D,onChange:e=>(e=>{C(null==e?"not-set":e?.value)})(e),noOptionsMessage:()=>"No FAQ Group Found!"})):"",(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Question","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:m?.question,onChange:e=>g({...m,question:e.target.value.replace(/^\s+/,"")}),placeholder:(0,v.__)("Add New Question","betterdocs")}),p&&(null===(f=p?.enable_faq_write_with_ai)||void 0===f||f)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{d(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Write With AI","betterdocs")))),(0,r.createElement)(K.A,{error:N.question})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,v.__)("Answer","betterdocs")),(0,r.createElement)(U,{value:m?.answer,aiValue:m?.aiAnswer,onChange:e=>{g({...m,answer:e.replace(/^\s+/,"")})},placeholder:(0,v.__)("Write your Answer here.","betterdocs")}),(0,r.createElement)(K.A,{error:N.answer}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-toggle-switcher-group"},(0,r.createElement)("p",null,(0,v.__)("Keep It Open By default","betterdocs")),(0,r.createElement)("label",{className:"bd-faq-toggler"},(0,r.createElement)("input",{type:"checkbox",checked:O,onChange:()=>{(e=>{k(!O),(0,y.i4)(e?.id,!O)})(a)},className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"}))),(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>(s(void 0),g({question:"",answer:""}),A(),void C("not-set"))},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Update","betterdocs"))))))),u&&p&&(null===(h=p?.enable_faq_write_with_ai)||void 0===h||h)&&(0,r.createElement)(oe,{open:!0,setFormFields:g,formFields:m,setShowFaqAIModalForm:d}))};var Ne;function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 352.8 352.8"},e),Ne||(Ne=r.createElement("path",{d:"M318.54 57.28h-47.65V15c0-8.28-6.72-15-15-15H34.26c-8.28 0-15 6.72-15 15v265.52c0 8.28 6.72 15 15 15h47.65v42.28c0 8.28 6.72 15 15 15h221.63c8.28 0 15-6.72 15-15V72.28c0-8.28-6.72-15-15-15M49.26 265.52V30h191.62v27.28H96.92c-8.28 0-15 6.72-15 15v193.24zm254.28 57.28H111.92V87.28h191.62z"})));var De,Ie;function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",je({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),De||(De=r.createElement("g",{clipPath:"url(#magic_svg__a)"},r.createElement("path",{stroke:"#A0A8B2",strokeLinecap:"round",strokeLinejoin:"round",d:"m6.927 13.202-3 .26.26-2.999 6.24-6.201a1 1 0 0 1 1.43 0l1.27 1.28a1 1 0 0 1 0 1.42zM.843 3.973c-.351-.061-.351-.565 0-.626A3.18 3.18 0 0 0 3.401.897L3.422.8c.076-.346.57-.349.651-.002l.025.112a3.19 3.19 0 0 0 2.564 2.436c.353.06.353.567 0 .629a3.19 3.19 0 0 0-2.567 2.434l-.026.113c-.079.346-.573.344-.649-.003l-.02-.097a3.18 3.18 0 0 0-2.56-2.45z"}))),Ie||(Ie=r.createElement("defs",null,r.createElement("clipPath",{id:"magic_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),Le=({data:e,index:t,category:n,categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,reFetchFaqList:s,setCreateFaqAt:l,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:f})=>{const[h,m]=(0,r.useState)(e?.status),[g,b]=(0,r.useState)(!1);(0,r.useEffect)((()=>{m(e?.status)}),[e]),(0,r.useEffect)((()=>{void 0!==u&&l(null)}),[u]);const E=e=>{d(e?.id)},x=e=>{d(u===e?.id?void 0:e?.id)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I.sx,{key:e?.id,draggableId:e?.id.toString(),index:t},((t,l)=>{var C,_,S;return(0,r.createElement)("div",{className:"bd-faq",ref:t.innerRef,...t.draggableProps,style:(_=l.isDragging,S=t.draggableProps.style,{boxShadow:_&&"0 0 5px rgba(0, 0, 0, 0.5)",...S})},(0,r.createElement)("div",{className:"bd-faq-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-drag-button",...t.dragHandleProps},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-title",onClick:()=>x(e)},(0,T.decodeEntities)(e?.title?.rendered)),(0,r.createElement)("label",{className:"bd-faq-toggler"},(0,r.createElement)("input",{type:"checkbox",checked:"publish"===h,onChange:()=>{return t=e?.id,void(0,y.t6)(t,"publish"===h?"draft":"publish").then((()=>{m("publish"===h?"draft":"publish"),"publish"===h?c.oR.error((0,v.__)("FAQ Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Enabled.","betterdocs"))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}));var t},className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>E(e)},(0,r.createElement)(be,null)),f&&(null===(C=f?.enable_faq_write_with_ai)||void 0===C||C)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{E(e),b(!0)}},(0,r.createElement)(Te,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{w().fire({title:(0,v.__)("Duplicate this FAQ?","betterdocs"),icon:"info",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t.isConfirmed&&(0,y.Dc)({term_id:n,post_title:"Copy "+e?.title?.rendered,post_content:e?.content?.rendered}).then((e=>{e&&(s(),i(),w().fire({text:(0,v.__)("FAQ Duplicated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}))}},(0,r.createElement)(Ae,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.id,void w().fire({title:(0,v.__)("Delete this FAQ?","betterdocs"),text:(0,v.__)("You won’t be able to revert this!","betterdocs"),icon:"warning",showCancelButton:!0,confirmButtonText:(0,v.__)("Yes, delete it!","betterdocs"),cancelButtonText:(0,v.__)("Cancel","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e.isConfirmed&&(0,y.md)(t).then((()=>{s(),i(),w().fire({text:(0,v.__)("FAQ Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(u===e?.id?"active":""),onClick:()=>x(e)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-body "+(u===e?.id?"active":"")},(0,r.createElement)("div",{className:"bd-faq-body-inner"},(0,r.createElement)(ke,{categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,faq:e,reFetchFaqList:s,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,showFaqAIModalForm:g,setShowFaqAIModalForm:b,settings:f}))))})))},Pe=({category:e,allFaqCategories:t,changeFaqSort:n,reFetchFaqForCategory:o,createFaqAt:a,categoriesLoading:i,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,setChangeFaqSort:f,setReFetchData:h})=>{const{isLoading:m,data:g,refetch:v}=(0,u.I)(["allFaqList",e?.id],y.Ws),[b,w]=(0,r.useState)([]);return(0,r.useEffect)((()=>{v()}),[t]),(0,r.useEffect)((()=>{h({func:v})}),[g]),(0,r.useEffect)((()=>{let t=[];if(e?.meta?._betterdocs_faq_order[0]&&(t=e?.meta?._betterdocs_faq_order[0].split(",").map((e=>Number(e)))),g?.length)if(t.length){let e=[];t.forEach((t=>{let n=g?.find((e=>e?.id===t));n&&e.push(n)})),w(e)}else w(g);else w([])}),[g,e?.meta?._betterdocs_faq_order[0]]),(0,r.useEffect)((()=>{if(n?.destination?.droppableId==e?.id){let t=j(n,b);w(t),(0,y.qK)(e?.id,t?.map((e=>e?.id))?.toString()).then((()=>{s()})),f({})}}),[n]),(0,r.useEffect)((()=>{o&&o==e?.id&&(v(),p(null))}),[o]),(0,r.createElement)(I.gL,{droppableId:e?.id.toString(),type:"FAQ"},(n=>(0,r.createElement)("div",{...n.droppableProps,ref:n.innerRef,className:"bd-faq-list-droppable"},m?(0,r.createElement)(Se,null):b?.length>0?b?.map(((n,o)=>(0,r.createElement)(Le,{key:n?.id,data:n,index:o,reFetchFaqList:v,category:e?.id,categoriesLoading:i,allFaqCategories:t,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:betterdocsFaq?.betterdocs_settings}))):a!==e?.id&&(0,r.createElement)(we,null),n.placeholder)))},Re=({index:e,category:t,categoriesLoading:n,allFaqCategories:o,reFetchCategories:a,setFetchUncategorizedFaq:i,setUpdateCategory:s,categoryExpanded:l,setCategoryExpanded:u,setCreateFaqAt:d,createFaqAt:p,faqExpanded:f,setFaqExpanded:h,changeFaqSort:m,setChangeFaqSort:g,reFetchFaqForCategory:b,setReFetchFaqForCategory:E,setShowFaqAIModalForm:x})=>{const[C,_]=(0,r.useState)(),[S,O]=(0,r.useState)(!0),k=(0,r.useRef)(!1);(0,r.useEffect)((()=>{l!==p&&d(null)}),[l,p]),(0,r.useEffect)((()=>{O(t?.meta?.status[0])}),[t?.meta?.status[0]]);const N=e=>{l==e?(u(void 0),h(void 0),d(null)):u(e)},M=e=>{k.current||(k.current=!0,(0,y.Bp)(e,"1"===S?"0":"1").then((()=>{"1"===S?c.oR.error((0,v.__)("FAQ Group Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Group Enabled.","betterdocs")),a()})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{k.current=!1})))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I.sx,{key:t?.id,draggableId:t?.id.toString(),index:e},((e,O)=>{return(0,r.createElement)("div",{className:"bd-faq-ctg",ref:e.innerRef,...e.draggableProps,style:(k=O.isDragging,A=e.draggableProps.style,{boxShadow:k&&"0 0 5px rgba(0, 0, 0, 0.5)",...A})},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-ctg-drag-button",...e.dragHandleProps},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>N(t?.id)},(0,T.decodeEntities)(t?.name)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>{return e=t?.id,d(e),h(void 0),void u(e);var e}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Add a New FAQ","betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>s(t)},(0,r.createElement)(be,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return e=t?.id,void w().fire({text:(0,v.__)("Delete this FAQ Group?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),input:"checkbox",inputValue:0,inputPlaceholder:(0,v.__)("Also delete all FAQs inside this FAQ Group","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t?.isConfirmed&&(0==t?.value?(0,y.IE)(e,!1).then((()=>{a(),i(!0),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})):(0,y.IE)(e,!0).then((()=>{a(),i(!0),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully With All FAQs.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})))}));var e}},(0,r.createElement)(de,null)),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>M(t?.id)},(0,r.createElement)("input",{type:"checkbox",checked:"1"===S,onChange:()=>M(t?.id),className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(l==t?.id?"active":""),onClick:()=>N(t?.id)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-category-body "+(l==t?.id?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-category-body-inner"},p===t?.id&&(0,r.createElement)(ae,{reFetchFaqList:C?.func,createFaqAt:p,setCreateFaqAt:d,reFetchCategories:a,setShowFaqAIModalForm:x}),l==t?.id?(0,r.createElement)(Pe,{category:t,allFaqCategories:o,changeFaqSort:m,reFetchFaqForCategory:b,createFaqAt:p,categoriesLoading:n,reFetchCategories:a,setCreateFaqAt:d,faqExpanded:f,setFaqExpanded:h,setReFetchFaqForCategory:E,setChangeFaqSort:g,setReFetchData:_}):""))));var k,A})))},Fe=({data:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,reFetchFaqList:a,setCreateFaqAt:i,faqExpanded:s,setFaqExpanded:l,setReFetchFaqForCategory:u,settings:d})=>{var p;const[f,h]=(0,r.useState)(e?.post_status),[m,g]=(0,r.useState)(!1);(0,r.useEffect)((()=>{void 0!==s&&i(null)}),[s]);const b=e=>{l(e?.ID)},E=e=>{l(s===e?.ID?void 0:e?.ID)};return(0,r.createElement)("div",{className:"bd-faq"},(0,r.createElement)("div",{className:"bd-faq-head"},(0,r.createElement)("h3",{className:"bd-faq-title",onClick:()=>E(e)},e?.post_title),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>{return t=e?.ID,void(0,y.t6)(t,"publish"===f?"draft":"publish").then((()=>{h("publish"===f?"draft":"publish"),"publish"===f?c.oR.error((0,v.__)("FAQ Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Enabled.","betterdocs"))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}));var t}},(0,r.createElement)("input",{type:"checkbox",checked:"publish"===f,className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>b(e)},(0,r.createElement)(be,null)),d&&(null===(p=d?.enable_faq_write_with_ai)||void 0===p||p)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{b(e),g(!0)}},(0,r.createElement)(Te,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{w().fire({title:(0,v.__)("Duplicate this FAQ?","betterdocs"),icon:"info",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t.isConfirmed&&(0,y.Dc)({term_id:null,post_title:"Copy "+e?.post_title,post_content:e?.post_content}).then((e=>{e&&w().fire({text:(0,v.__)("FAQ Duplicated Successfully","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}).then((()=>a()))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}))}},(0,r.createElement)(Ae,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.ID,void w().fire({title:(0,v.__)("Delete this FAQ?","betterdocs"),text:(0,v.__)("You won’t be able to revert this!","betterdocs"),icon:"warning",showCancelButton:!0,confirmButtonText:(0,v.__)("Yes, delete it!","betterdocs"),cancelButtonText:(0,v.__)("Cancel","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e.isConfirmed&&(0,y.md)(t).then((()=>{w().fire({text:(0,v.__)("FAQ Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}).then((()=>a()))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(s===e?.ID?"active":""),onClick:()=>{E(e)}},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-body "+(s===e?.ID?"active":"")},(0,r.createElement)("div",{className:"bd-faq-body-inner"},(0,r.createElement)(ke,{faq:e,reFetchFaqList:a,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,faqExpanded:s,setFaqExpanded:l,setReFetchFaqForCategory:u,showFaqAIModalForm:m,setShowFaqAIModalForm:g,settings:d}))))},Be=({categoriesLoading:e,allFaqCategories:t,reFetchCategories:n,allUncategorizedFaq:o,setFetchUncategorizedFaq:a,categoryExpanded:i,setCategoryExpanded:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:u,setReFetchFaqForCategory:d})=>{const p=()=>{s("uncategorized"==i?void 0:"uncategorized")};return(0,r.createElement)("div",{className:"bd-faq-ctg"},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>p()},(0,v.__)("Uncategorized","betterdocs")),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+("uncategorized"==i?"active":""),onClick:()=>p()},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-category-body "+("uncategorized"==i?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-category-body-inner"},"uncategorized"==i&&o?.map((o=>(0,r.createElement)(Fe,{key:Math.random(),data:o,reFetchFaqList:a,categoriesLoading:e,allFaqCategories:t,reFetchCategories:n,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:u,setReFetchFaqForCategory:d,settings:betterdocsFaq?.betterdocs_settings})))))))},ze=o().memo((({isLoading:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,setUpdateCategory:a,setUncategorizedLoading:i,setUncategorizedEmpty:s,setShowFaqAIModalForm:l,perPage:c,currentPage:d})=>{const{isLoading:p,data:f,refetch:h}=(0,u.I)(["uncategorizedFaq"],y.sh),[m,g]=(0,r.useState)(null),[v,b]=(0,r.useState)(void 0),[w,E]=(0,r.useState)(void 0),[x,C]=(0,r.useState)([]),[_,S]=(0,r.useState)({}),[O,k]=(0,r.useState)(null);return(0,r.useEffect)((()=>{C(n?.length?n.sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})):[])}),[n]),(0,r.useEffect)((()=>{s(!f?.length)}),[f]),(0,r.useEffect)((()=>{i(p)}),[p]),(0,r.createElement)(r.Fragment,null,e?"":(0,r.createElement)(I.JY,{onDragEnd:e=>{if(e.destination)if("category"==e.type){const t=((e,t,n,r)=>{const o=t.map((e=>({id:e?.id,current_position:e?.meta?.order[0]})));let a=[],i=1!=n?r*n+1-10:n;o?.splice(e?.destination?.index,0,...o?.splice(e?.source?.index,1));for(let e=0;e({...e,meta:{...e?.meta,order:[t.find((t=>t?.id===e?.id))?.updated_position]}}))).sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})))}else S(e)}},(0,r.createElement)("div",{className:"bd-faq-ctg-list"},(0,r.createElement)(I.gL,{droppableId:"bdCategoryList",type:"category"},(e=>(0,r.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"bd-faq-ctg-list-droppable"},t?"loading":x?.map(((e,i)=>(0,r.createElement)(Re,{key:e.id,index:i,category:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,createFaqAt:m,setFetchUncategorizedFaq:h,setUpdateCategory:a,categoryExpanded:w,setCategoryExpanded:E,setCreateFaqAt:g,faqExpanded:v,setFaqExpanded:b,changeFaqSort:_,setChangeFaqSort:S,reFetchFaqForCategory:O,setReFetchFaqForCategory:k,setShowFaqAIModalForm:l}))),e.placeholder))),f?.length?(0,r.createElement)(Be,{categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,allUncategorizedFaq:f,setFetchUncategorizedFaq:h,categoryExpanded:w,setCategoryExpanded:E,setCreateFaqAt:g,faqExpanded:v,setFaqExpanded:b,setReFetchFaqForCategory:k}):"")))}));var qe=n(8120),Ue=n(1955),He=n(5387);const Ve=({data:e,index:t,category:n,categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,reFetchFaqList:s,setCreateFaqAt:l,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:f})=>{var h;const[m,g]=(0,r.useState)(e?.status),[b,E]=(0,r.useState)(!1);(0,r.useEffect)((()=>{g(e?.status)}),[e]),(0,r.useEffect)((()=>{void 0!==u&&l(null)}),[u]);const x=e=>{d(e?.id)},C=e=>{d(u===e?.id?void 0:e?.id)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq"},(0,r.createElement)("div",{className:"bd-faq-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-drag-button"},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-title",onClick:()=>C(e)},(0,T.decodeEntities)(e?.title?.rendered)),(0,r.createElement)("label",{className:"bd-faq-toggler"},(0,r.createElement)("input",{type:"checkbox",checked:"publish"===m,onChange:()=>{return t=e?.id,void(0,y.t6)(t,"publish"===m?"draft":"publish").then((()=>{g("publish"===m?"draft":"publish"),"publish"===m?c.oR.error((0,v.__)("FAQ Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Enabled.","betterdocs"))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}));var t},className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>x(e)},(0,r.createElement)(be,null)),f&&(null===(h=f?.enable_faq_write_with_ai)||void 0===h||h)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{x(e),E(!0)}},(0,r.createElement)(Te,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{w().fire({title:(0,v.__)("Duplicate this FAQ?","betterdocs"),icon:"info",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t.isConfirmed&&(0,y.Dc)({term_id:n,post_title:"Copy "+e?.title?.rendered,post_content:e?.content?.rendered}).then((e=>{e&&(s(),i(),w().fire({text:(0,v.__)("FAQ Duplicated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}))}},(0,r.createElement)(Ae,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.id,void w().fire({title:(0,v.__)("Delete this FAQ?","betterdocs"),text:(0,v.__)("You won’t be able to revert this!","betterdocs"),icon:"warning",showCancelButton:!0,confirmButtonText:(0,v.__)("Yes, delete it!","betterdocs"),cancelButtonText:(0,v.__)("Cancel","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e.isConfirmed&&(0,y.md)(t).then((()=>{s(),i(),w().fire({text:(0,v.__)("FAQ Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)}))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(u===e?.id?"active":""),onClick:()=>C(e)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-body "+(u===e?.id?"active":"")},(0,r.createElement)("div",{className:"bd-faq-body-inner"},(0,r.createElement)(ke,{categoriesLoading:o,allFaqCategories:a,reFetchCategories:i,faq:e,reFetchFaqList:s,faqExpanded:u,setFaqExpanded:d,setReFetchFaqForCategory:p,showFaqAIModalForm:b,setShowFaqAIModalForm:E,settings:f})))))},Ke=({category:e,allFaqCategories:t,changeFaqSort:n,reFetchFaqForCategory:o,createFaqAt:a,categoriesLoading:i,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,setChangeFaqSort:f,setReFetchData:h})=>{const{isLoading:m,data:g,refetch:v}=(0,u.I)(["allFaqList",e?.term_id],y.Ws),[b,w]=(0,r.useState)([]);return(0,r.useEffect)((()=>{v()}),[t]),(0,r.useEffect)((()=>{h({func:v})}),[g]),(0,r.useEffect)((()=>{let t=[];if(e?.meta?._betterdocs_faq_order[0]&&(t=e?.meta?._betterdocs_faq_order[0].split(",").map((e=>Number(e)))),g?.length)if(t.length){let e=[];t.forEach((t=>{let n=g?.find((e=>e?.id===t));n&&e.push(n)})),w(e)}else w(g);else w([])}),[g,e?.meta?._betterdocs_faq_order[0]]),(0,r.useEffect)((()=>{if(n?.destination?.droppableId==e?.term_id){let t=j(n,b);w(t),(0,y.qK)(e?.term_id,t?.map((e=>e?.id))?.toString()).then((()=>{s()})),f({})}}),[n]),(0,r.useEffect)((()=>{o&&o==e?.term_id&&(v(),p(null))}),[o]),(0,r.createElement)("div",{className:"bd-faq-list-droppable"},m?(0,r.createElement)(Se,null):b?.length>0?b?.map(((n,o)=>(0,r.createElement)(Ve,{key:n?.id,data:n,index:o,reFetchFaqList:v,category:e?.term_id,categoriesLoading:i,allFaqCategories:t,reFetchCategories:s,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:d,setReFetchFaqForCategory:p,settings:betterdocsFaq?.betterdocs_settings}))):a!==e?.term_id&&(0,r.createElement)(we,null))},Ge=({category:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,setFetchUncategorizedFaq:a,setUpdateCategory:i,categoryExpanded:s,setCategoryExpanded:l,setCreateFaqAt:u,createFaqAt:d,faqExpanded:p,setFaqExpanded:f,changeFaqSort:h,setChangeFaqSort:m,reFetchFaqForCategory:g,setReFetchFaqForCategory:b,setShowFaqAIModalForm:E})=>{const[x,C]=(0,r.useState)(),[_,S]=(0,r.useState)(!0),O=(0,r.useRef)(!1);(0,r.useEffect)((()=>{s!==d&&u(null)}),[s,d]),(0,r.useEffect)((()=>{S(e?.meta?.status[0])}),[e?.meta?.status[0]]);const k=e=>{s==e?(l(void 0),f(void 0),u(null)):l(e)},N=e=>{O.current||(O.current=!0,(0,y.Bp)(e,"1"===_?"0":"1").then((()=>{"1"===_?c.oR.error((0,v.__)("FAQ Group Disabled.","betterdocs")):c.oR.success((0,v.__)("FAQ Group Enabled.","betterdocs")),o()})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})).finally((()=>{O.current=!1})))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-ctg"},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-ctg-drag-button"},(0,r.createElement)(le,null)),(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>k(e?.term_id)},(0,T.decodeEntities)(e?.name)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>{return t=e?.term_id,u(t),f(void 0),void l(t);var t}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,v.__)("Add a New FAQ","betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>i(e)},(0,r.createElement)(be,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return t=e?.term_id,void w().fire({text:(0,v.__)("Delete this FAQ Group?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,v.__)("Yes","betterdocs"),cancelButtonText:(0,v.__)("No","betterdocs"),input:"checkbox",inputValue:0,inputPlaceholder:(0,v.__)("Also delete all FAQs inside this FAQ Group","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e?.isConfirmed&&(0==e?.value?(0,y.IE)(t,!1).then((()=>{o(),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})):(0,y.IE)(t,!0).then((()=>{o(),w().fire({text:(0,v.__)("FAQ Group Deleted Successfully With All FAQs.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?c.oR.error(`${e?.name} :${e?.message}`):c.oR.error(`${e?.message}`)})))}));var t}},(0,r.createElement)(de,null)),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>N(e?.term_id)},(0,r.createElement)("input",{type:"checkbox",checked:"1"===_,onChange:()=>N(e?.term_id),className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(s==e?.term_id?"active":""),onClick:()=>k(e?.term_id)},(0,r.createElement)(he,null))),(0,r.createElement)("div",{className:"bd-faq-category-body "+(s==e?.term_id?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-category-body-inner"},d===e?.term_id&&(0,r.createElement)(ae,{reFetchFaqList:x?.func,createFaqAt:d,setCreateFaqAt:u,reFetchCategories:o,setShowFaqAIModalForm:E}),s==e?.term_id?(0,r.createElement)(Ke,{category:e,allFaqCategories:n,changeFaqSort:h,reFetchFaqForCategory:g,createFaqAt:d,categoriesLoading:t,reFetchCategories:o,setCreateFaqAt:u,faqExpanded:p,setFaqExpanded:f,setReFetchFaqForCategory:b,setChangeFaqSort:m,setReFetchData:C}):"")))))},We=o().memo((({isLoading:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,setUpdateCategory:a,setShowFaqAIModalForm:i})=>{const[s,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(void 0),[d,p]=(0,r.useState)(void 0),[f,h]=(0,r.useState)([]),[m,g]=(0,r.useState)({}),[y,v]=(0,r.useState)(null);return(0,r.useEffect)((()=>{n?.length?h(n.sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})),33):h([])}),[n]),(0,r.createElement)(r.Fragment,null,e?"":(0,r.createElement)("div",{className:"bd-faq-ctg-list"},(0,r.createElement)("div",{className:"bd-faq-ctg-list-droppable"},t?"loading":f?.map(((e,f)=>(0,r.createElement)(Ge,{key:e?.term_id,index:f,category:e,categoriesLoading:t,allFaqCategories:n,reFetchCategories:o,createFaqAt:s,setUpdateCategory:a,categoryExpanded:d,setCategoryExpanded:p,setCreateFaqAt:l,faqExpanded:c,setFaqExpanded:u,changeFaqSort:m,setChangeFaqSort:g,reFetchFaqForCategory:y,setReFetchFaqForCategory:v,setShowFaqAIModalForm:i}))))))})),Ye=()=>{const{categories:e,setCategories:t,reFetchCategories:n,setReFetchCategories:o}=(0,Ue.g)(),[a,i]=(0,r.useState)(10),[s,l]=(0,r.useState)(1),[,,,c]=(0,He.KC)(),p=c?.length>0,{isLoading:h,data:m,refetch:g}=(0,u.I)(["allFaqCategories",a,s],y.QU,{keepPreviousData:!0,enabled:!p}),{isLoading:v,data:b,isRefetching:w,refetch:E}=(0,u.I)(["allFaqSearchedData",c],y.Yq,{keepPreviousData:!0,enabled:!!p});(0,r.useEffect)((()=>{o((()=>g))}),[g]),(0,r.useEffect)((()=>{m?.data&&t(m.data)}),[m]);const[x,C]=(0,r.useState)(!0),[_,S]=(0,r.useState)(!1),[O,k]=(0,r.useState)(!0),[N,M]=(0,r.useState)(!0),[A,I]=(0,r.useState)(!1),[j,T]=(0,r.useState)(null);(0,r.useEffect)((()=>{C(!(!h&&!O))}),[h,O]),(0,r.useEffect)((()=>{e.length||!N?S(!1):S(!0)}),[e,N]);let L=[];for(let e=1;e<=10;e++)L?.push(10*e);return(0,r.createElement)(r.Fragment,null,(p&&v||p&&w)&&(0,r.createElement)(f,null),p&&!v&&!w&&(0,r.createElement)(We,{isLoading:v,categoriesLoading:v,allFaqCategories:b,reFetchCategories:E,setUpdateCategory:T,setIsEmptyDashboard:S,setUncategorizedLoading:k,setUncategorizedEmpty:M}),p&&!v&&!w&&0==b?.length&&(0,r.createElement)(D,{reFetchCategories:g,setShowCategoryModal:I,showFaqActionButtons:!1,showNewFaqText:!1}),!p&&x?(0,r.createElement)(f,null):(0,r.createElement)(r.Fragment,null,!p&&_?(0,r.createElement)(D,{reFetchCategories:g,setShowCategoryModal:I}):""),!p&&(0,r.createElement)(ze,{isLoading:x,categoriesLoading:h,allFaqCategories:e,reFetchCategories:g,setUpdateCategory:T,setIsEmptyDashboard:S,setUncategorizedLoading:k,setUncategorizedEmpty:M,perPage:a,currentPage:s}),(0,r.createElement)("div",{className:"btd-faq-pagination-wrapper"},(0,r.createElement)("select",{name:"per_page",id:"bdt-faq-per-page",value:a,onChange:e=>{i(e?.target?.value)}},L?.map(((e,t)=>(0,r.createElement)("option",{value:e},e)))),m?.total>a&&!p?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.A,{pageSize:a,current:s,onChange:(e,t)=>{l(e),i(t)},total:m?.total})):""),A||null!==j?(0,r.createElement)(qe.A,{open:!0,reFetchCategories:g,setShowCategoryModal:I,updateCategory:j,setUpdateCategory:T}):"")},Qe=()=>(0,r.createElement)("div",{className:"betterdocs-faq-wrapper betterdocs-dashboard-container"},(0,r.createElement)(Ye,null)),$e=new a.E,Ze=()=>((0,r.useEffect)((()=>{l().setAppElement("#betterdocs-faq-builder-wrapper")}),[]),(0,r.createElement)("div",{id:"betterdocs-faq-builder-wrapper",className:"betterdocs-faq-builder-wrapper"},(0,r.createElement)(i.Ht,{client:$e},(0,r.createElement)(c.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Qe,null))))},537:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1609),o=n(886);const a=({error:e})=>e&&e.length&&(0,r.createElement)("p",{className:"bd-error-message"},(0,o.decode)(e))||""},4456:(e,t,n)=>{"use strict";n.d(t,{Bp:()=>p,Dc:()=>g,rg:()=>c,md:()=>v,IE:()=>d,t6:()=>b,Az:()=>E,QU:()=>i,Ws:()=>h,sh:()=>m,Yq:()=>s,uF:()=>C,i4:()=>x,O$:()=>_,mG:()=>f,qK:()=>w,pk:()=>l,g1:()=>y,KK:()=>u});var r=n(1455),o=n.n(r);const a=JSON.parse('{"Orders":{"posts":[{"post_title":"What are my payment options?","post_content":"We accept all the popular payment methods such as PayPal, Visa, MasterCard, Discover, Amazon Pay, American Express and Google Pay."},{"post_title":"How to track my order?","post_content":"You will receive an email from us after you have placed the order. You’ll get confirmation in your email when you purchase and we’ll let you know when your order is on the move. You will be able to track your order through your preferred shipping partner."},{"post_title":"How do I cancel or change my order?","post_content":"Unfortunately, it’s not possible to make any changes to an order or cancel it once it has been placed. However, you could ask for a refund."}]},"Shipping & Delivery":{"posts":[{"post_title":"How long does the delivery take?","post_content":"We usually take 3-5 business days for your order to be shipped & delivered."},{"post_title":"Do you offer free shipping?","post_content":"Yes, free shipping is available for all the orders that\'s placed inside the United States. We charge shipping fees for overseas orders."},{"post_title":"Do you ship overseas?","post_content":"Yes, we ship all over the world. Please note that additional shipping costs will be applied based on your delivery location."}]},"Refund & Exchange":{"posts":[{"post_title":"What is your Refund & Exchange Policy?","post_content":"You can ask for a refund within 30 days of your purchase. Returned items must be in the exact same condition as they were received."},{"post_title":"How do I track my Refund?","post_content":"To track the status of your refund, kindly refer to your confirmation email that you have received from us."},{"post_title":"How long does it take to get the Refund?","post_content":"Once we receive your return, please allow us 3-5 business days for your refund to process. Refund amount will be automatically debited to the same form of payment originally used for purchase."}]}}');n(1609);const i=({queryKey:e})=>{const[t,n,r]=e;o().use(o().createNonceMiddleware(betterdocs_admin.nonce));let a=o()({path:`wp/v2/betterdocs_faq_category?per_page=${n}&page=${r}`,method:"GET",parse:!1}),i=0,s=0;return a.then((e=>(s=e?.headers?.get("X-WP-TotalPages"),i=e?.headers?.get("X-WP-Total"),e.json()))).then((e=>({data:e,totalPages:s,total:i})))},s=({queryKey:e})=>{const[t,n]=e;return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`betterdocs/v1/faq-terms-by-keyword-search?search=${n}`,method:"GET",parse:!1}).then((e=>e.json())).then((e=>e))},l=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`betterdocs/faq/category_search/?title=${e}`,method:"GET"})),c=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/create_category",method:"POST",data:{title:e?.title,group_icon_url:e?.icon,slug:null,description:null,nonce:betterdocs_admin.nonce}})),u=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/update_category",method:"POST",data:{term_id:e?.term_id,title:e?.title,group_icon_url:e?.icon,slug:null,description:null,nonce:betterdocs_admin.nonce}})),d=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/delete_category",method:"POST",data:{term_id:e,with_all_post:t,nonce:betterdocs_admin.nonce}})),p=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/category_status",method:"POST",data:{term_id:e,status:t,nonce:betterdocs_admin.nonce}})),f=e=>{o().use(o().createNonceMiddleware(betterdocs_admin.nonce));const t=JSON.stringify(e);return o()({path:"betterdocs/faq/category_order",method:"POST",data:{faq_category_order:t,nonce:betterdocs_admin.nonce}})},h=async({queryKey:e})=>{const[t,n]=e;return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`wp/v2/betterdocs_faq?betterdocs_faq_category=${n}&status=publish,draft&posts_per_page=-1`,method:"GET"})},m=async({queryKey:e})=>{const[t]=e;return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/uncategorised?status=publish,draft",method:"GET"})},g=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/create_post",method:"POST",data:{post_title:e?.post_title,post_content:e?.post_content,term_id:e?.term_id?e?.term_id:null,nonce:betterdocs_admin.nonce}})),y=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/update_post",method:"POST",data:{post_id:e?.post_id,post_title:e?.post_title,post_content:e?.post_content,term_id:e?.term_id,nonce:betterdocs_admin.nonce}})),v=e=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/delete_post",method:"POST",data:{post_id:e,nonce:betterdocs_admin.nonce}})),b=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`wp/v2/betterdocs_faq/${e}`,method:"POST",data:{status:t,nonce:betterdocs_admin.nonce}})),w=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:`betterdocs/faq/update_order_by_category?term_id=${e}&posts=${t}`,method:"POST",data:{nonce:betterdocs_admin.nonce}})),E=()=>{const e=JSON.stringify(a);return o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/faq/sample_data",method:"POST",data:{sample_data:e,nonce:betterdocs_admin.nonce}})},x=(e,t)=>(o().use(o().createNonceMiddleware(betterdocs_admin.nonce)),o()({path:"betterdocs/v1/faq-accordion-toggle",method:"POST",body:JSON.stringify({faq_id:e,nonce:betterdocs_admin.nonce,toggle:t})})),C=async()=>{try{o().use(o().createNonceMiddleware(betterdocs_admin.nonce));const e=await o()({path:"betterdocs/v1/settings"});if(!e||e.error)throw new Error("Failed to fetch settings data");return e}catch(e){throw console.error("Error fetching settings data:",e),e}},_=e=>{if("undefined"==typeof wp||void 0===wp.media)return void console.error("WordPress Media Library is not loaded.");const t=wp.media({title:"Select or Upload Media",button:{text:"Use this media"},multiple:!1});t.on("select",(()=>{const n=t.state().get("selection").first().toJSON();e&&"function"==typeof e&&e(n.url,n.id)})),t.open()}},5786:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=(e,t)=>{const n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];let a="";if(e.hasOwnProperty(r)&&(a="object"!=typeof e[r]?e[r]:e[r].value),o.hasOwnProperty("required")){let e=!0;if("boolean"==typeof a&&(a||(e=!1)),a.length||(e=!1),!e){"object"!=typeof o.required?n[r]=`${ucFirst(r)} is required`:n[r]=o.required.message;continue}}if(o.hasOwnProperty("email")&&(new RegExp(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/).test(e[r])||("object"!=typeof o.email?n[r]=`${ucFirst(r)} must be a valid email`:n[r]=o.email.message)),o.hasOwnProperty("username")&&(new RegExp(/^\S+$/).test(e[r])||("object"!=typeof o.username?n[r]=`${ucFirst(r)} must be a valid username`:n[r]=o.username.message)),o.hasOwnProperty("minLength")&&e[r].lengtho.maxLength.value&&("object"!=typeof o.maxLength?n[r]=`The length of ${ucFirst(r)} must be under ${o.maxLength.value} character`:n[r]=o.maxLength.message),o.hasOwnProperty("match")){const t="object"!=typeof o.match?o.match:o.match.value,a=e[t];a&&a!==e[r]&&("object"!=typeof o.match?n[r]=`The ${ucFirst(r)} must match with ${ucFirst(t)}`:n[r]=o.match.message)}}return Object.keys(n).length?{valid:!1,errors:n}:{valid:!0,errors:void 0}}},5878:(e,t,n)=>{"use strict";n.d(t,{A:()=>Be});var r=n(1609),o=n.n(r),a=(n(5795),n(1890)),i=n(5849),s=n(8401),l=n(7867),c=n(9045),u=n(7517);const d=e=>(0,r.createElement)(u.Ay,{speed:2,width:"100%",viewBox:"0 0 600 160",backgroundColor:"#e5e5e5",foregroundColor:"#c5c5c5",...e},(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"55",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"35",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"42",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"41",rx:"0",ry:"0",width:"150",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"39",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"46",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"40",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"42",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"80",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"60",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"67",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"66",rx:"0",ry:"0",width:"120",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"64",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"71",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"65",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"67",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"105",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"85",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"92",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"91",rx:"0",ry:"0",width:"145",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"89",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"96",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"90",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"92",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"130",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"110",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"109",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"117",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"116",rx:"0",ry:"0",width:"130",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"114",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"121",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"115",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"117",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"155",rx:"1",ry:"1",width:"600",height:"2"}),(0,r.createElement)("rect",{x:"0",y:"135",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"598",y:"134",rx:"1",ry:"1",width:"2",height:"22"}),(0,r.createElement)("rect",{x:"7",y:"142",rx:"1",ry:"1",width:"4",height:"8"}),(0,r.createElement)("rect",{x:"17",y:"141",rx:"0",ry:"0",width:"155",height:"10"}),(0,r.createElement)("rect",{x:"456",y:"139",rx:"2",ry:"2",width:"54",height:"14"}),(0,r.createElement)("circle",{cx:"586",cy:"146",r:"5"}),(0,r.createElement)("rect",{x:"550",y:"140",rx:"6",ry:"6",width:"25",height:"12"}),(0,r.createElement)("rect",{x:"534",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"518",y:"142",rx:"1",ry:"1",width:"8",height:"8"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"23",rx:"1",ry:"1",width:"600",height:"5"}),(0,r.createElement)("rect",{x:"0",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"585",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"170",y:"0",rx:"0",ry:"0",width:"346",height:"28"}),(0,r.createElement)("rect",{x:"35",y:"0",rx:"0",ry:"0",width:"15",height:"28"}),(0,r.createElement)("rect",{x:"50",y:"0",rx:"0",ry:"0",width:"120",height:"9"}),(0,r.createElement)("rect",{x:"50",y:"19",rx:"0",ry:"0",width:"120",height:"9"}));var p=n(7723),f=n(1419),h=n.n(f),m=n(1455),g=n.n(m);const y=({queryKey:e})=>{const[t,n,r,o]=e;g().use(g().createNonceMiddleware(betterdocs.nonce));let a="";a=o?`&search=${encodeURIComponent(o)}`:`per_page=${n}&page=${r}`;let i=g()({path:`wp/v2/glossaries?${a}`,method:"GET",parse:!1}),s=0,l=0;return i.then((e=>(l=e?.headers?.get("X-WP-TotalPages"),s=e?.headers?.get("X-WP-Total"),e.json()))).then((e=>({data:e.map((e=>({...e,glossary_term_description:e.glossary_term_description}))),totalPages:l,total:s})))},v=e=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/create_glossary",method:"POST",data:{title:e?.title,slug:e?.slug,description:e?.description||"undefined",nonce:e?.nonce||betterdocs.nonce}})),b=e=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/update_glossary",method:"POST",data:{term_id:e?.term_id,title:e?.title,slug:e?.slug,description:e?.description||"undefined",nonce:e?.nonce||betterdocs.nonce}})),w=(e,t)=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/delete_glossary",method:"POST",data:{term_id:e,with_all_post:t,nonce:betterdocs.nonce}})),E=async()=>{try{g().use(g().createNonceMiddleware(betterdocs.nonce));const e=await g()({path:"betterdocs/v1/settings"});if(!e||e.error)throw new Error("Failed to fetch settings data");return e}catch(e){throw console.error("Error fetching settings data:",e),e}},x=async()=>{try{g().use(g().createNonceMiddleware(betterdocs.nonce));const e=await g()({path:"betterdocs/glossary/glossary_count",method:"GET"});if(!e||e.error)throw new Error("Failed to fetch settings data");return e}catch(e){throw console.error("Error fetching settings data:",e),e}};var C,_,S;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 134 134"},e),C||(C=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"})),r.createElement("mask",{id:"empty-faq_svg__a",width:134,height:134,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},_||(_=r.createElement("circle",{cx:67,cy:67,r:67,fill:"#E5EBF7"}))),S||(S=r.createElement("g",{mask:"url(#empty-faq_svg__a)"},r.createElement("path",{fill:"#B4C3DF",d:"m106.448 69.059-.227 61.295c-.005 1.598-1.36 2.887-3.025 2.881l-74.044-.276c-1.665-.006-3.02-1.306-3.014-2.904l.26-70.05c.005-1.599 1.366-2.899 3.036-2.888l16.632.061c1.05.006 2.019.537 2.56 1.388l3.812 6.002c.542.862 1.515 1.388 2.56 1.388l48.441.182c1.671.011 3.015 1.317 3.009 2.92"}),r.createElement("path",{fill:"#fff",d:"m107.56 50.873-.271 71.925a2.886 2.886 0 0 1-2.887 2.866l-66.024-.249a2.886 2.886 0 0 1-2.865-2.888l.315-83.662A2.885 2.885 0 0 1 38.715 36l54.282.205 4.685 4.718 5.005 5.044z"}),r.createElement("path",{fill:"#3A7EC1",d:"M93.55 49.695c.248.254.58 2.406 14.004 3.053l.005-1.88z",opacity:.2}),r.createElement("path",{fill:"#fff",d:"M92.958 47.942a2.885 2.885 0 0 0 2.865 2.887l11.742.044-14.563-14.668z"}),r.createElement("path",{fill:"#EE9811",d:"m97.493 94.109-51.959-.194a1.2 1.2 0 0 1-1.195-1.205 1.2 1.2 0 0 1 1.206-1.195l51.959.194a1.2 1.2 0 1 1-.011 2.4M97.582 101.979l-45.117-.171a1.2 1.2 0 1 1 .011-2.4l45.117.171a1.2 1.2 0 1 1-.011 2.4M97.554 109.85l-52.075-.193a1.2 1.2 0 1 1 .011-2.401l52.075.194c.658 0 1.2.542 1.194 1.205a1.21 1.21 0 0 1-1.205 1.195"}),r.createElement("path",{fill:"#F9C067",d:"m113.887 76.902-6.632 54.608a3.966 3.966 0 0 1-3.954 3.49l-74.304-.277a3.965 3.965 0 0 1-3.927-3.517L19.926 86.1a3.967 3.967 0 0 1 3.96-4.42l16.991.061a3.98 3.98 0 0 0 3.656-2.383l2.063-4.74a3.96 3.96 0 0 1 3.656-2.384l59.713.22c2.368.006 4.204 2.086 3.922 4.448"}))));var N;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 173 173"},e),N||(N=r.createElement("path",{d:"M86.58.16C38.93.16.16 38.93.16 86.58S38.93 173 86.58 173 173 134.23 173 86.58 134.23.16 86.58.16M128 101.58h-26.42V128c0 8.28-6.72 15-15 15s-15-6.72-15-15v-26.42H45.16c-8.28 0-15-6.72-15-15 0-8.29 6.72-15 15-15h26.42V45.16c0-8.28 6.72-15 15-15s15 6.72 15 15v26.42H128c8.28 0 15 6.71 15 15 0 8.28-6.72 15-15 15"}))),D=({reFetchGlossaries:e,setShowGlossaryModal:t})=>(0,r.createElement)("div",{className:"bd-faq-empty-dashboard"},(0,r.createElement)("div",{className:"bd-faq-empty-icon"},(0,r.createElement)(k,null)),(0,r.createElement)("h2",{className:"bd-faq-empty-dashboard-title"},(0,p.__)("No Glossary Found!","betterdocs")),(0,r.createElement)("p",{className:"bd-faq-empty-dashboard-desc"},(0,p.__)("Please Create a New Glossary to get started.","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success",onClick:()=>t(!0)},(0,r.createElement)("span",{className:"bd-faq-icon"},(0,r.createElement)(A,null)),(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Create a New Glossary","betterdocs")))));var I=n(309),j=n(8537),T=n(1330),L=n(4417),P=n(6253),R=n.n(P),F=n(3622),B=n.n(F);const z={options:["inline","blockType","textAlign","colorPicker","link","list","emoji"],inline:{options:["bold","italic","underline","strikethrough","monospace"]},blockType:{inDropdown:!0,options:["Normal","H1","H2","H3","H4","H5","H6","Blockquote","Code"],className:void 0,component:void 0,dropdownClassName:void 0},list:{options:["unordered","ordered"]},emoji:{className:void 0,component:void 0,popupClassName:void 0,emojis:["😃","😄","😁","😆","😅","😂","🤣","😊","🙂","😉","😍","🥰","😋","😎","🥳","😏","😒","😕","☹️","😣","😢","😭","😤","😡","🤬","🤯","🥵","🥶","😱","😨","🤔","🤫","😶","😐","😑","🙄","😮","👽","👾","🤖","🎃","😺","😸","😹","🙀","🤑","😈","💩","👻","💀","🙌","👏","🤝","👍","👊","✌️","🤞","👌","👈","👉","☝️","✋","🤚","🖐","🖖","🙏","👀","👓","☠️","🙈","🙉","🙊","🐞","🕷️","🌿","🍀","🌵","🍃","🍄","🥀","🌻","🌛","🌚","🌕","🌎","🌍","🌏","🪐","💫","⚡","☄️","💥","🔥","🌪️","🌈","🌥️","⛈️","❄️","☃️","💦","☔","🌊","🍏","🍌","🍉","🍇","🍍","🥭","🍞","🧀","🥚","🍗","🍔","🍕","🥘","🍙","🎂","🍰","☕","🍼","🍯","🍺","🍻","🥂","🍷","🍸","🥄","🍴","🍽️","⚽","🏀","🏈","⚾","🎾","🏐","🎱","🏓","⛳","🚗","🚕","🚌","🏎️","🚓","🚑","🚒","🚛","🚜","🚲","🏍️","✈️","🚁","🚀","🛸","⛵","🚢","⚓","🚧","🚥","🗽","🗼","🎡","🏝️","🏖️","🗻","📸","⏳","💡","🕯️","💸","💰","💎","🔪","🗡️","💊","💉","🩸","🦠","🧸","📧","💌","📌","📍","🖊️","🔎","🔒","🔓","❤️","🧡","💛","💚","💙","💜","🖤","💔","❣️","💕","💞","💓","💖","💘","💝","☮️","☢️","❌","⭕","⛔","🚫","💯","❗","❕","❓","❔","‼️","⁉️","✅","🌐","💤","🏳️","🏴","🏁","🚩","🏴‍☠️"]}},q=({aiValue:e=null,value:t,onChange:n,placeholder:o})=>{const[a,i]=(0,r.useState)(T.EditorState.createEmpty());return(0,r.useEffect)((()=>{if(t){const{contentBlocks:e,entityMap:n}=B()(t),r=T.ContentState.createFromBlockArray(e,n),o=T.EditorState.createWithContent(r);i(o)}}),[]),(0,r.useEffect)((()=>{if(e){const{contentBlocks:t,entityMap:n}=B()(e),r=T.ContentState.createFromBlockArray(t,n),o=T.EditorState.createWithContent(r);i(o)}}),[e]),(0,r.useEffect)((()=>{let e=R()((0,T.convertToRaw)(a.getCurrentContent()));n(e)}),[a]),(0,r.createElement)(L.Editor,{editorState:a,onEditorStateChange:i,wrapperClassName:"bd-faq-editor",toolbarClassName:"bd-faq-editor-toolbar",editorClassName:"bd-faq-editor-main",placeholder:o,toolbar:z})};var U=n(886);const H=({error:e})=>e&&e.length&&(0,r.createElement)("p",{className:"bd-error-message"},(0,U.decode)(e))||"",V=(e,t)=>{const n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r];let a="";if(e.hasOwnProperty(r)&&(a="object"!=typeof e[r]?e[r]:e[r].value),o.hasOwnProperty("required")){let e=!0;if("boolean"==typeof a&&(a||(e=!1)),a?.length||(e=!1),!e){"object"!=typeof o.required?n[r]=`${ucFirst(r)} is required`:n[r]=o.required.message;continue}}if(o.hasOwnProperty("email")&&(new RegExp(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/).test(e[r])||("object"!=typeof o.email?n[r]=`${ucFirst(r)} must be a valid email`:n[r]=o.email.message)),o.hasOwnProperty("username")&&(new RegExp(/^\S+$/).test(e[r])||("object"!=typeof o.username?n[r]=`${ucFirst(r)} must be a valid username`:n[r]=o.username.message)),o.hasOwnProperty("minLength")&&e[r]?.lengtho.maxLength.value&&("object"!=typeof o.maxLength?n[r]=`The length of ${ucFirst(r)} must be under ${o.maxLength.value} character`:n[r]=o.maxLength.message),o.hasOwnProperty("match")){const t="object"!=typeof o.match?o.match:o.match.value,a=e[t];a&&a!==e[r]&&("object"!=typeof o.match?n[r]=`The ${ucFirst(r)} must match with ${ucFirst(t)}`:n[r]=o.match.message)}}return Object.keys(n)?.length?{valid:!1,errors:n}:{valid:!0,errors:void 0}};var K,G;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",viewBox:"0 0 16 16"},e),K||(K=r.createElement("g",{fill:"#fff",clipPath:"url(#betterdocs-icon-white_svg__a)"},r.createElement("path",{d:"M7.608 6.345h4.012a.72.72 0 0 0 .709-.732.72.72 0 0 0-.71-.73H7.609a.72.72 0 0 0-.71.73.716.716 0 0 0 .71.732M5.995 9.193h4.011c.392 0 .71-.327.71-.73a.72.72 0 0 0-.71-.732H5.995a.72.72 0 0 0-.71.731c0 .404.318.731.71.731M9.077 11.37a.72.72 0 0 0-.71-.731H4.356a.72.72 0 0 0-.71.73c0 .404.318.732.71.732h4.011c.392 0 .71-.328.71-.731"}),r.createElement("path",{d:"M14.58 8.008c-.025-.058-.057-.1-.09-.15l1.068-1.9a3.34 3.34 0 0 0 .008-3.303C14.988 1.622 13.952 1 12.786 1H7.943c-1.134 0-2.194.63-2.773 1.647L.441 11.042a3.34 3.34 0 0 0-.008 3.303C1.013 15.378 2.048 16 3.213 16h8.293c1.476 0 2.83-.773 3.612-2.059a4.5 4.5 0 0 0 .236-4.252zM4.437 14.445H3.214c-.62 0-1.166-.327-1.476-.882a1.78 1.78 0 0 1 .008-1.756l4.73-8.395a1.7 1.7 0 0 1 1.475-.874h4.843c.62 0 1.166.328 1.476.882.31.546.302 1.202-.008 1.756l-4.737 8.395a1.69 1.69 0 0 1-1.468.874zm9.417-1.336a2.74 2.74 0 0 1-2.34 1.336h-.742c.016-.033.04-.058.057-.092l2.764-4.9.424.9c.4.89.343 1.924-.163 2.756"}))),G||(G=r.createElement("defs",null,r.createElement("clipPath",{id:"betterdocs-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 1h16v15H0z"})))));var Q,$,Z=n(933),J=n.n(Z);function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none"},e),Q||(Q=r.createElement("g",{clipPath:"url(#ai-icon-white_svg__a)"},r.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m10.396 18.86-4.286.372.371-4.285 8.915-8.858a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.704 5.676c-.501-.087-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.815-.498.93-.003l.035.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899A4.56 4.56 0 0 0 6.35 9.156l-.037.162c-.113.494-.818.491-.927-.004l-.029-.139a4.54 4.54 0 0 0-3.657-3.5z"}))),$||($=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-white_svg__a"},r.createElement("path",{fill:"#fff",d:"M.5 0h20v20H.5z"})))));var te,ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",re({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),te||(te=r.createElement("g",{clipPath:"url(#ai-icon-color_svg__a)"},r.createElement("path",{stroke:"#344054",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.429,d:"m9.895 18.861-4.286.371.371-4.286 8.915-8.857a1.43 1.43 0 0 1 2.043 0l1.814 1.829a1.43 1.43 0 0 1 0 2.029zM1.204 5.674c-.501-.088-.501-.807 0-.894a4.54 4.54 0 0 0 3.654-3.5l.03-.139c.109-.494.814-.499.929-.003l.036.16a4.56 4.56 0 0 0 3.663 3.48c.504.086.504.81 0 .899a4.56 4.56 0 0 0-3.664 3.479l-.037.161c-.112.494-.818.491-.926-.004l-.029-.139a4.54 4.54 0 0 0-3.658-3.5h.003Z"}))),ne||(ne=r.createElement("defs",null,r.createElement("clipPath",{id:"ai-icon-color_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))))),ae={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},ie=({open:e,setShowGlossaryAIModalForm:t,setFormFields:n,formFields:o,setGlossaryExpand:a})=>{const[i,s]=(0,r.useState)(o),[l,c]=(0,r.useState)(null),[u,d]=(0,r.useState)(null),[f,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(null);(0,r.useEffect)((()=>{E().then((e=>{v(e)})).catch((function(e){console.log(e)}))}),[]);const b=()=>{d({title:""}),t(!1)},w=e=>e&&e.ai_autowrite_api_key?e.ai_autowrite_api_key:"";return(0,r.createElement)(J(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>b(),style:ae},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-container","data-new-doc-page":"true"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-content"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-top-part"},(0,r.createElement)("div",{className:"autowrite-heading"},(0,r.createElement)("span",{className:"autowrite-icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",fill:"none"},(0,r.createElement)("g",{clipPath:"url(#clip0_2453_20882)"},(0,r.createElement)("path",{d:"M15.8322 30.1765L8.97508 30.7708L9.56936 23.9136L23.8322 9.74219C24.0451 9.52448 24.2993 9.3515 24.58 9.23341C24.8606 9.11531 25.162 9.05447 25.4665 9.05447C25.771 9.05447 26.0724 9.11531 26.3531 9.23341C26.6337 9.3515 26.8879 9.52448 27.1008 9.74219L30.0037 12.6679C30.2176 12.8805 30.3874 13.1334 30.5033 13.4119C30.6192 13.6904 30.6788 13.9891 30.6788 14.2908C30.6788 14.5924 30.6192 14.8911 30.5033 15.1696C30.3874 15.4481 30.2176 15.701 30.0037 15.9136L15.8322 30.1765ZM1.92593 9.07933C1.12365 8.9399 1.12365 7.7879 1.92593 7.64848C3.34647 7.40124 4.6612 6.73658 5.70251 5.73923C6.74382 4.74188 7.46455 3.45703 7.77279 2.04848L7.82079 1.82676C7.99451 1.03591 9.12365 1.02905 9.30651 1.82219L9.36365 2.07819C9.68319 3.48048 10.4099 4.75709 11.4526 5.74772C12.4953 6.73834 13.8074 7.39881 15.2242 7.64619C16.0311 7.78333 16.0311 8.94219 15.2242 9.0839C13.8073 9.33071 12.4949 9.99066 11.4518 10.9809C10.4087 11.9711 9.68146 13.2474 9.36136 14.6496L9.30193 14.9079C9.12136 15.6988 7.99222 15.6942 7.81851 14.901L7.77279 14.6793C7.46424 13.2702 6.74284 11.9849 5.70064 10.9874C4.65845 9.99003 3.34273 9.32574 1.92136 9.07933H1.92593Z",stroke:"#E31B54",strokeWidth:"2.28571",strokeLinecap:"round",strokeLinejoin:"round"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_2453_20882"},(0,r.createElement)("rect",{width:32,height:32,fill:"white"}))))),(0,r.createElement)("h1",null,(0,p.__)("Write Glossary Term with BetterDocs AI","betterdocs"))),(0,r.createElement)("div",{className:"autowrite-subheadding"},(0,r.createElement)("p",null,(0,p.__)("Generate Glossaries effortlessly with BetterDocs AI. Simply input your glossary term and let the system automatically generate Glossaries tailored to your needs.","betterdocs"))),y&&!w(y)&&(0,r.createElement)("div",{id:"betterdocs-ai-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",null,(0,p.__)("Please insert your","betterdocs")," ",(0,r.createElement)("a",{target:"_blank",href:"/wp-admin/admin.php?page=betterdocs-settings&tab=tab-ai-autowrite"},(0,p.__)("OpenAI API Key","betterdocs"))," ",(0,p.__)('to use this "Write with AI" feature.',"betterdocs")))),u&&(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("div",{id:"betterdocs-ai-error-message"},(0,r.createElement)("div",{className:"warning-message"},(0,r.createElement)("span",{className:"dashicons dashicons-warning"}),(0,r.createElement)("div",{className:"footer-message"},u))))),(0,r.createElement)("form",{id:"betterdocs-ai-form",className:y&&!w(y)&&"disabled-input-field",onSubmit:async e=>{e.preventDefault();const t=document.getElementById("betterdocs-ai-title").value,n=`Generate a Glossary term for the text. The glossary term: ${t}`;try{let{response:e,error:r}=await(async e=>{try{h(!0);const t="https://api.openai.com/v1/chat/completions",n={method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${w(y)}`},body:JSON.stringify({model:"gpt-3.5-turbo",messages:[{role:"system",content:"You are a helpful assistant."},{role:"user",content:e}],max_tokens:100})},r=await fetch(t,n),o=await r.json();if(!r.ok)throw new Error(`${o?.error?.message}`);return o.error?(h(!1),g(!1),{response:null,error:o.error}):(h(!1),g(!0),{response:o.choices[0].message.content,error:null})}catch(e){throw h(!1),g(!1),new Error(`${e.message}`)}})(n);e=((e,t)=>{if("string"!=typeof t)return t;const n=new RegExp(`(<[^>]*>${e}<[^>]*>)|(${e})`,"gi");return t.replace(n,"")})("Glossary term:",e),e=e.replace(/^\s*\?/,""),r?d(r):(s((n=>({...n,title:t,description:e,aiAnswer:e}))),c(e))}catch(e){d(`${e.message}`)}}},(0,r.createElement)("div",{className:"form-inner-content"},(0,r.createElement)("div",{className:"form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-title"},(0,p.__)("Glossary Term:","betterdocs")),(0,r.createElement)("input",{type:"text",placeholder:(0,p.__)("Insert your term to generate a relevant response.","betterdocs"),id:"betterdocs-ai-title",name:"betterdocs-ai-title",required:!0,value:o?.title,onChange:e=>{n((t=>({...t,title:e.target.value.replace(/^\s+/,""),glossary:e.target.value.replace(/^\s+/,"")})))}})),l&&(0,r.createElement)("div",{className:"form-group generated-answer"},(0,r.createElement)("label",{htmlFor:"betterdocs-ai-keyword"},(0,p.__)("Generated Glossary:","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-ai-content-wrapper"},(0,r.createElement)("p",{className:"betterdocs-ai-content",dangerouslySetInnerHTML:{__html:l}})))),(0,r.createElement)("div",{className:"generate-button-container"},(0,r.createElement)("button",{type:"submit",className:m?"generate-btn regenerate-btn":"generate-btn",disabled:f},f&&!m?(0,r.createElement)(ee,null):m?(0,r.createElement)(oe,null):(0,r.createElement)(ee,null),(0,r.createElement)("span",null,f?"Generating...":m?"Regenerate Glossary":"Generate Glossary")),m&&(0,r.createElement)("button",{type:"button",className:"keep-btn",onClick:()=>(n(i),void b())},(0,p.__)("Keep","betterdocs"))))),(0,r.createElement)("div",{className:"bd-close-button",onClick:()=>b()},"✕")))},se=({reFetchFaqList:e,createFaqAt:t,setCreateGlossaryAt:n,open:o,reFetchGlossaries:i,setShowGlossaryModal:s,updateGlossary:l,setUpdateGlossary:c,glossary:u,showGlossaryAIModalForm:d,setShowGlossaryAIModalForm:f})=>{var m,g;const[y,b]=(0,r.useState)(null);(0,r.useEffect)((()=>{E().then((e=>{b(e)})).catch((function(e){console.log(e)}))}),[]);const[w,x]=(0,r.useState)({title:"",slug:"",description:""}),[C,_]=(0,r.useState)({title:"",slug:"",description:""});(0,r.useEffect)((()=>{null!==l?x({...w,title:(0,j.decodeEntities)(l?.name),slug:l?.slug,description:(0,j.decodeEntities)(l?.description)}):S()}),[o]);const S=()=>{x({title:"",slug:"",description:""})},O=()=>{_({title:"",slug:"",description:""})},[k,N]=(0,r.useState)({default:{value:null,label:"Uncategorized"},cats:[]}),[M,A]=(0,r.useState)("not-set"),[D,I]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault();const t=V(w,{title:{required:{value:!0,message:(0,p.__)("Please Insert Glossary Term is Title.","betterdocs")}},slug:{},description:{}});t.valid?t.valid&&(null!==l?l({term_id:l?.id||l?.term_id,title:w?.title,slug:w?.slug,description:w?.description}).then((e=>{e&&(O(),i(),h().fire({text:(0,p.__)("Glossary Term is Updated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{s(!1),c(null)})):v({title:w?.title,slug:w?.slug,description:w?.description}).then((e=>{e&&(O(),i(),h().fire({text:(0,p.__)("Glossary Term is Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{s(!1)}))):_(t.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:w?.title,onChange:e=>x({...w,title:e.target.value.replace(/^\s+/,"")}),placeholder:(0,p.__)("Write your Glossary Term here.","betterdocs")}),y&&(null===(m=y?.enable_faq_write_with_ai)||void 0===m||m)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{f(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Write With AI","betterdocs")))),(0,r.createElement)(H,{error:C.title})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term Description","betterdocs")),(0,r.createElement)(q,{value:w?.answer,aiValue:w?.aiAnswer,onChange:e=>{x({...w,description:e.replace(/^\s+/,"")})},placeholder:(0,p.__)("Write your Glossary Term description here.","betterdocs")}),(0,r.createElement)(H,{error:C.answer}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>(O(),s(!1),void c(null))},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Create","betterdocs"))))))),d&&y&&(null===(g=y?.enable_faq_write_with_ai)||void 0===g||g)&&(0,r.createElement)(ie,{open:!0,setFormFields:x,formFields:w,setShowGlossaryAIModalForm:f}))};var le;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",ce({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),le||(le=r.createElement("path",{d:"m30 16-4.788 4.788A.71.71 0 0 1 24 20.286V17.5h-6.5V24h2.786a.71.71 0 0 1 .502 1.212L16 30l-4.788-4.788A.71.71 0 0 1 11.714 24H14.5v-6.5H8v2.786a.71.71 0 0 1-1.212.502L2 16l4.788-4.788A.71.71 0 0 1 8 11.714V14.5h6.5V8h-2.786a.71.71 0 0 1-.502-1.212L16 2l4.788 4.788A.71.71 0 0 1 20.286 8H17.5v6.5H24v-2.786a.71.71 0 0 1 1.212-.502z"})));var de;function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",pe({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),de||(de=r.createElement("path",{d:"M424 64h-88V48c0-26.51-21.49-48-48-48h-64c-26.51 0-48 21.49-48 48v16H88c-22.091 0-40 17.909-40 40v32c0 8.837 7.163 16 16 16h384c8.837 0 16-7.163 16-16v-32c0-22.091-17.909-40-40-40M208 48c0-8.82 7.18-16 16-16h64c8.82 0 16 7.18 16 16v16h-96zM78.364 184a5 5 0 0 0-4.994 5.238l13.2 277.042c1.22 25.64 22.28 45.72 47.94 45.72h242.98c25.66 0 46.72-20.08 47.94-45.72l13.2-277.042a5 5 0 0 0-4.994-5.238zM320 224c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16zm-80 0c0-8.84 7.16-16 16-16s16 7.16 16 16v208c0 8.84-7.16 16-16 16s-16-7.16-16-16z"})));var he;function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 491.996 491.996"},e),he||(he=r.createElement("path",{d:"m484.132 124.986-16.116-16.228c-5.072-5.068-11.82-7.86-19.032-7.86-7.208 0-13.964 2.792-19.036 7.86l-183.84 183.848L62.056 108.554c-5.064-5.068-11.82-7.856-19.028-7.856s-13.968 2.788-19.036 7.856l-16.12 16.128c-10.496 10.488-10.496 27.572 0 38.06l219.136 219.924c5.064 5.064 11.812 8.632 19.084 8.632h.084c7.212 0 13.96-3.572 19.024-8.632l218.932-219.328c5.072-5.064 7.856-12.016 7.864-19.224 0-7.212-2.792-14.068-7.864-19.128"})));var ye,ve,be;function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",we({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 512 512"},e),ye||(ye=r.createElement("path",{d:"M352.459 220c0-11.046-8.954-20-20-20h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20M126.459 280c-11.046 0-20 8.954-20 20s8.954 20 20 20H251.57c11.046 0 20-8.954 20-20s-8.954-20-20-20z"})),ve||(ve=r.createElement("path",{d:"M173.459 472H106.57c-22.056 0-40-17.944-40-40V80c0-22.056 17.944-40 40-40h245.889c22.056 0 40 17.944 40 40v123c0 11.046 8.954 20 20 20s20-8.954 20-20V80c0-44.112-35.888-80-80-80H106.57c-44.112 0-80 35.888-80 80v352c0 44.112 35.888 80 80 80h66.889c11.046 0 20-8.954 20-20s-8.954-20-20-20"})),be||(be=r.createElement("path",{d:"M467.884 289.572c-23.394-23.394-61.458-23.395-84.837-.016l-109.803 109.56a20 20 0 0 0-5.01 8.345l-23.913 78.725a20 20 0 0 0 24.476 25.087l80.725-22.361a20 20 0 0 0 8.79-5.119l109.573-109.367c23.394-23.394 23.394-61.458-.001-84.854M333.776 451.768l-40.612 11.25 11.885-39.129 74.089-73.925 28.29 28.29zM439.615 346.13l-3.875 3.867-28.285-28.285 3.862-3.854c7.798-7.798 20.486-7.798 28.284 0s7.798 20.486.014 28.272M332.459 120h-206c-11.046 0-20 8.954-20 20s8.954 20 20 20h206c11.046 0 20-8.954 20-20s-8.954-20-20-20"})));var xe,Ce;function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),xe||(xe=r.createElement("g",{clipPath:"url(#magic_svg__a)"},r.createElement("path",{stroke:"#A0A8B2",strokeLinecap:"round",strokeLinejoin:"round",d:"m6.927 13.202-3 .26.26-2.999 6.24-6.201a1 1 0 0 1 1.43 0l1.27 1.28a1 1 0 0 1 0 1.42zM.843 3.973c-.351-.061-.351-.565 0-.626A3.18 3.18 0 0 0 3.401.897L3.422.8c.076-.346.57-.349.651-.002l.025.112a3.19 3.19 0 0 0 2.564 2.436c.353.06.353.567 0 .629a3.19 3.19 0 0 0-2.567 2.434l-.026.113c-.079.346-.573.344-.649-.003l-.02-.097a3.18 3.18 0 0 0-2.56-2.45z"}))),Ce||(Ce=r.createElement("defs",null,r.createElement("clipPath",{id:"magic_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"})))));var Oe,ke;function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",Ne({xmlns:"http://www.w3.org/2000/svg",width:15,height:14.118,fill:"none"},e),r.createElement("mask",{id:"sort_svg__a",width:17,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Oe||(Oe=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M3.838 8.952a.44.44 0 0 1 .624 0l3.217 3.218 3.218-3.218a.441.441 0 0 1 .624.625l-3.529 3.529a.44.44 0 0 1-.624 0L3.839 9.577a.44.44 0 0 1 0-.625m0-3.787a.44.44 0 0 0 .624 0L7.68 1.947l3.218 3.218a.441.441 0 1 0 .624-.625L7.993 1.011a.44.44 0 0 0-.624 0L3.84 4.54a.44.44 0 0 0 0 .625M1.503 7.059a.44.44 0 0 1 .441-.441h11.471a.441.441 0 1 1 0 .882H1.944a.44.44 0 0 1-.441-.441",clipRule:"evenodd"}))),ke||(ke=r.createElement("g",{mask:"url(#sort_svg__a)"},r.createElement("path",{fill:"#98A2B3",d:"M.62 0h14.118v14.118H.62z"})))),Ae={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(35, 40, 45, 0.5)",zIndex:9990,padding:50,paddingTop:70,display:"flex",flexDirection:"column",overflow:"auto"},content:{width:"40rem",maxWidth:"90%",position:"static",height:"auto",overflow:"initial",margin:"auto"}},De=({open:e,showGlossaryCounter:t,setShowGlossaryCounter:n,setGlossaryExpand:o,glossary:a})=>{const[i,s]=(0,r.useState)(null),[l,c]=(0,r.useState)({}),[u,d]=(0,r.useState)(!1),[f,h]=(0,r.useState)(!1);(0,r.useEffect)((()=>{E().then((e=>{s(e)})).catch((function(e){console.log(e)}))}),[]),(0,r.useEffect)((()=>{x().then((e=>{if(e){const t=[...e[a.name]];t.sort(((e,t)=>u?e.count-t.count:t.count-e.count));const n={...e,[a.name]:t};c(n)}})).catch((function(e){console.log(e)}))}),[u]);const m=()=>{n(!1),o(!1)},g=l[a.name];return(0,r.createElement)(J(),{isOpen:e,className:"bd-faq-ctg-modal",onRequestClose:()=>m(),style:Ae},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-container glossary-counter-container","data-new-doc-page":"true"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-form-content"},(0,r.createElement)("div",{className:"betterdocs-ai-autowrite-top-part"},(0,r.createElement)("div",{className:"autowrite-heading"},(0,r.createElement)("h3",null,(0,p.__)(`${a.name}`,"betterdocs"))),(0,r.createElement)("div",{className:"autowrite-subheadding"},(0,r.createElement)("p",null,`${(0,p.__)("Total used in ","betterdocs")}`,(0,r.createElement)("span",null,g?g.length:0),1===g?.length?(0,p.__)(" doc.","betterdocs"):(0,p.__)(" docs.","betterdocs"))),(0,r.createElement)("div",{className:"BtdDataTableWrapper"},(0,r.createElement)("table",{className:"BtdDataTable"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",null,(0,r.createElement)("th",null,(0,p.__)("Title","betterdocs-pro")),(0,r.createElement)("th",{className:"text-center"},(0,r.createElement)("div",{className:"sorting-icon",onClick:()=>{d(!u)}},(0,p.__)("Count","betterdocs-pro"),(0,r.createElement)("span",null,(0,r.createElement)(Me,null)))))),(0,r.createElement)("tbody",null,g?.map(((e,t)=>(0,r.createElement)("tr",{key:e.id},(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"BtdTableItemTitleWrap"},(0,r.createElement)("a",{href:e.permalink,target:"_blank",dangerouslySetInnerHTML:{__html:e.post_title}}))),(0,r.createElement)("td",{className:"text-center"},(0,r.createElement)("p",{dangerouslySetInnerHTML:{__html:e.count}})))))))))),(0,r.createElement)("div",{className:"bd-close-button",onClick:()=>m()},"✕")))},Ie=({categoriesLoading:e,allGlossaryGlossaries:t,reFetchGlossaryList:n,faq:o,glossaryExpand:i,setGlossaryExpand:s,setReFetchGlossaryForGlossary:l,showGlossaryAIModalForm:c,setShowGlossaryAIModalForm:u,settings:d,glossary:f,open:m,reFetchGlossaries:g,setShowGlossaryModal:y,setUpdateGlossary:w,showGlossaryCounter:E,setShowGlossaryCounter:x})=>{var C,_,S;const[O,k]=(0,r.useState)({title:"",slug:"",description:""}),[N,M]=(0,r.useState)({title:"",slug:"",description:""});(0,r.useEffect)((()=>{null!==b?k({...O,title:(0,j.decodeEntities)(f?.name),slug:f?.slug,description:(0,j.decodeEntities)(f?.glossary_term_description||f?.description)}):A()}),[m]);const A=()=>{k({title:"",slug:"",description:""})},D=()=>{M({title:"",slug:"",description:""})},[I,T]=(0,r.useState)({default:{value:null,label:"Uncategorized"},cats:[]}),[L,P]=(0,r.useState)("not-set"),[R,F]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"bd-faq-create-new"},(0,r.createElement)("form",{onSubmit:e=>{e.preventDefault();const t=V(O,{title:{required:{value:!0,message:(0,p.__)("Please Insert Glossary Term is Title.","betterdocs")}},slug:{},description:{}});t.valid?t.valid&&(null!==f?b({term_id:f?.id||null,title:O?.title,slug:O?.slug,description:O?.description}).then((e=>{e&&(D(),g(),h().fire({text:(0,p.__)("Glossary Term is Updated Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{y(!1),w(null)})):v({title:O?.title,slug:O?.slug,description:O?.description}).then((e=>{e&&(D(),g(),h().fire({text:(0,p.__)("Glossary Term is Created Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500}))})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})).finally((()=>{y(!1)}))):M(t.errors)}},(0,r.createElement)("div",{className:"bd-faq-create-new-body"},(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term","betterdocs")),(0,r.createElement)("div",{className:"bd-faq-cgt-field-wrapper"},(0,r.createElement)("input",{type:"text",className:"bd-faq-input",name:"faq-question",value:O?.title,onChange:e=>k({...O,title:e.target.value.replace(/^\s+/,"")}),placeholder:(0,p.__)("Write your Glossary Term here.","betterdocs")}),d&&(null===(C=d?.enable_faq_write_with_ai)||void 0===C||C)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-success bd-write-with-ai-button",onClick:e=>{u(!0)}},(0,r.createElement)(Y,null),(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Write With AI","betterdocs")))),(0,r.createElement)(H,{error:N.title})),(0,r.createElement)("div",{className:"bd-faq-cgt-field"},(0,r.createElement)("label",{className:"bd-faq-label",required:!0},(0,p.__)("Glossary Term Description","betterdocs")),(0,r.createElement)(q,{value:f?.glossary_term_description||f?.description,aiValue:O?.aiAnswer,onChange:e=>{k({...O,description:e.replace(/^\s+/,"")})},placeholder:(0,p.__)("Write your Glossary Term description here.","betterdocs")}),(0,r.createElement)(H,{error:N.description}))),(0,r.createElement)("div",{className:"bd-faq-create-new-footer"},(0,r.createElement)("div",{className:"bd-faq-button-group"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button button-danger",onClick:()=>{return e=f.id,void s(i==e?void 0:e);var e}},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Cancel","betterdocs"))),(0,r.createElement)("button",{type:"submit",className:"bd-faq-button button-success"},(0,r.createElement)("span",{className:"bd-faq-text"},(0,p.__)("Update","betterdocs"))))))),c&&d&&(null===(_=d?.enable_faq_write_with_ai)||void 0===_||_)&&(0,r.createElement)(ie,{open:!0,setFormFields:k,formFields:O,showGlossaryAIModalForm:c,setShowGlossaryAIModalForm:u,setGlossaryExpand:s}),E&&d&&(null===(S=d?.enable_faq_write_with_ai)||void 0===S||S)&&(0,r.createElement)(De,{open:!0,showGlossaryCounter:E,setShowGlossaryCounter:x,setGlossaryExpand:s,glossary:f}))},je=({index:e,data:t,glossary:n,categoriesLoading:o,allFaqGlossaries:i,reFetchGlossaries:s,setFetchUncategorizedFaq:l,setUpdateGlossary:c,glossaryExpand:u,setGlossaryExpand:d,setCreateGlossaryAt:f,createFaqAt:m,changeFaqSort:y,setChangeFaqSort:v,reFetchFaqForGlossary:b,setReFetchFaqForGlossary:E,showGlossaryAIModalForm:C,setShowGlossaryAIModalForm:_,setShowGlossaryModal:S,showGlossaryCounter:O,setShowGlossaryCounter:k,glossariesKeyword:N,settings:M})=>{const[A,D]=(0,r.useState)(),[T,L]=(0,r.useState)(!1),[P,R]=(0,r.useState)(0);(0,r.useEffect)((()=>{u!==m&&f(null)}),[u,m]),(0,r.useEffect)((()=>{L("1"===n?.meta?.status?.[0])}),[n]);const F=e=>{d(void 0),d(e)},B=e=>{u==e?(d(void 0),f(null)):d(e)};return(0,r.useEffect)((()=>{x().then((e=>{e&&R(e[n?.name])})).catch((function(e){console.log(e)}))}),[N]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(I.sx,{key:n?.id,draggableId:n?.id.toString(),index:e},((e,y)=>{var v,b,x;return(0,r.createElement)("div",{className:"bd-faq-ctg",ref:e.innerRef,...e.draggableProps,style:(b=y.isDragging,x=e.draggableProps.style,{boxShadow:b&&"0 0 5px rgba(0, 0, 0, 0.5)",...x})},(0,r.createElement)("div",{className:"bd-faq-ctg-head"},(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-ctg-drag-button",...e.dragHandleProps},(0,r.createElement)(ue,null)),(0,r.createElement)("h3",{className:"bd-faq-ctg-title",onClick:()=>B(n?.id)},(0,j.decodeEntities)(n?.name),P?.length>0&&(0,r.createElement)("span",{onClick:()=>{F(n?.id),k(!0)}},(0,p.__)(`Available in ${P?.length||0} ${1===P?.length?"doc":"docs"}`,"betterdocs"))),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>B(n?.id)},(0,r.createElement)(Ee,null)),M&&(null===(v=M?.enable_faq_write_with_ai)||void 0===v||v)&&(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button magic-icon",onClick:()=>{F(n?.id),_(!0)}},(0,r.createElement)(Se,null)),(0,r.createElement)("button",{type:"button",className:"bd-faq-button-reset bd-faq-action-button",onClick:()=>{return e=n?.id,void h().fire({text:(0,p.__)("Delete this Glossary?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,p.__)("Yes","betterdocs"),cancelButtonText:(0,p.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t?.isConfirmed&&(0==t?.value?w(e,!1).then((()=>{s(),l(!0),h().fire({text:(0,p.__)("Glossary Deleted Successfully.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})):w(e,!0).then((()=>{s(),l(!0),h().fire({text:(0,p.__)("Glossary Deleted Successfully With All Glossaries.","betterdocs"),icon:"success",showConfirmButton:!1,timer:1500})})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)})))}));var e}},(0,r.createElement)(fe,null)),(0,r.createElement)("label",{className:"bd-faq-toggler",onClick:()=>{return e=n?.id,void((e,t)=>(g().use(g().createNonceMiddleware(betterdocs.nonce)),g()({path:"betterdocs/glossary/glossary_status",method:"POST",data:{term_id:e,status:t,nonce:betterdocs.nonce}})))(e,T?"0":"1").then((e=>{L(e),T?a.oR.success((0,p.__)("Glossary Enabled.","betterdocs")):a.oR.error((0,p.__)("Glossary Disabled.","betterdocs")),s()})).catch((e=>{e?.name?a.oR.error(`${e?.name} :${e?.message}`):a.oR.error(`${e?.message}`)}));var e}},(0,r.createElement)("input",{type:"checkbox",checked:"1"==T,className:"checkbox"}),(0,r.createElement)("span",{className:"knobs"}),(0,r.createElement)("span",{className:"layer"})),(0,r.createElement)("button",{type:"button",className:"bd-faq-accordion-icon "+(u==n?.id?"active":""),onClick:()=>B(n?.id)},(0,r.createElement)(ge,null))),(0,r.createElement)("div",{className:"bd-faq-glossary-body "+(u==n?.id?"active":"")},(0,r.createElement)("div",{style:{overflow:"hidden"}},(0,r.createElement)("div",{className:"bd-faq-glossary-body-inner"},m===n?.id&&(0,r.createElement)(se,{glossary:n,createFaqAt:m,setCreateGlossaryAt:f,reFetchGlossaries:s,showGlossaryAIModalForm:C,setShowGlossaryAIModalForm:_}),u==n?.id?(0,r.createElement)(Ie,{glossary:n,categoriesLoading:o,allFaqGlossaries:i,reFetchGlossaries:s,faq:t,glossaryExpand:u,setGlossaryExpand:d,setReFetchFaqForGlossary:E,settings:M,open,setShowGlossaryModal:S,updateGlossary:F,setUpdateGlossary:c,showGlossaryAIModalForm:C,setShowGlossaryAIModalForm:_,showGlossaryCounter:O,setShowGlossaryCounter:k}):""))))})))},Te=o().memo((({isLoading:e,categoriesLoading:t,allFaqGlossaries:n,reFetchGlossaries:o,setUpdateGlossary:a,showGlossaryAIModalForm:i,setShowGlossaryAIModalForm:s,showGlossaryCounter:l,setShowGlossaryCounter:c,setShowGlossaryModal:u,glossariesKeyword:d})=>{const[p,f]=(0,r.useState)(null),[h,m]=(0,r.useState)(void 0),[y,v]=(0,r.useState)(void 0),[b,w]=(0,r.useState)([]),[E,x]=(0,r.useState)({}),[C,_]=(0,r.useState)(null);return(0,r.useEffect)((()=>{w(n?.length?n.sort((function(e,t){return(e?.meta?.order?e.meta.order[0]:0)-(t?.meta?.order?t.meta.order[0]:0)})):[])}),[n]),(0,r.createElement)(r.Fragment,null,e?"":(0,r.createElement)(I.JY,{onDragEnd:e=>{if(e.destination)if("glossary"==e.type){const t=((e,t)=>{const n=t.map((e=>({id:e?.id,current_position:e?.meta?.order[0]})));let r=[];for(var o=0;oe?.destination?.index?n[o]?.current_position:o==e?.source?.index?n[e?.destination?.index]?.current_position:n[o-1]?.current_position),e?.source?.index>e?.destination?.index&&(t=o>e?.source?.index||o{g().use(g().createNonceMiddleware(betterdocs.nonce));const t=JSON.stringify(e);g()({path:"betterdocs/glossary/glossary_order",method:"POST",data:{glossaries_order:t,nonce:betterdocs.nonce}})})(t),w(b.map((e=>({...e,meta:{...e?.meta,order:[t.find((t=>t?.id===e?.id))?.updated_position]}}))).sort((function(e,t){return e?.meta?.order[0]-t?.meta?.order[0]})))}else x(e)}},(0,r.createElement)("div",{className:"bd-faq-ctg-list"},(0,r.createElement)(I.gL,{droppableId:"bdGlossaryList",type:"glossary"},(e=>(0,r.createElement)("div",{...e.droppableProps,ref:e.innerRef,className:"bd-faq-ctg-list-droppable"},t?"loading":b?.map(((e,g)=>(0,r.createElement)(je,{index:g,glossary:e,categoriesLoading:t,allFaqGlossaries:n,reFetchGlossaries:o,createFaqAt:p,setUpdateGlossary:a,glossaryExpand:y,setGlossaryExpand:v,setCreateGlossaryAt:f,faqExpanded:h,setFaqExpanded:m,changeFaqSort:E,setChangeFaqSort:x,reFetchFaqForGlossary:C,setReFetchFaqForGlossary:_,showGlossaryAIModalForm:i,setShowGlossaryAIModalForm:s,setShowGlossaryModal:u,settings:betterdocsGlossary?.betterdocs_settings,showGlossaryCounter:l,setShowGlossaryCounter:c,glossariesKeyword:d}))),e.placeholder))))))}));n(9386),n(2619);var Le=n(8378),Pe=n(5387);const Re=()=>{const[e,t]=(0,r.useState)(10),[n,o]=(0,r.useState)(1),[,,a]=(0,Pe.KC)(),{isLoading:i,data:s,refetch:u}=(0,l.I)(["allFaqGlossaries",e,n,a],y,{cacheTime:0}),[p,f]=(0,r.useState)(!0),[h,m]=(0,r.useState)(!1),{showGlossaryModal:g,setShowGlossaryModal:v}=(0,r.useContext)(Le.t),[b,w]=(0,r.useState)(!1),[E,x]=(0,r.useState)(null),[C,_]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{let e;return i?f(!0):e=setTimeout((()=>f(!1)),800),()=>clearTimeout(e)}),[i]),(0,r.useEffect)((()=>{m(!s?.data?.length)}),[s]),(0,r.createElement)(r.Fragment,null,p?(0,r.createElement)(d,null):(0,r.createElement)(r.Fragment,null,h?(0,r.createElement)(D,{reFetchGlossaries:u,setShowGlossaryModal:v}):""),g||null!==E?(0,r.createElement)(se,{open:!0,reFetchGlossaries:u,setShowGlossaryModal:v,updateGlossary:E,setUpdateGlossary:x,showGlossaryAIModalForm:b,setShowGlossaryAIModalForm:w}):"",(0,r.createElement)(Te,{isLoading:p,categoriesLoading:i,allFaqGlossaries:s?.data,reFetchGlossaries:u,setUpdateGlossary:x,setIsEmptyDashboard:m,showGlossaryAIModalForm:b,setShowGlossaryAIModalForm:w,setShowGlossaryModal:v,showGlossaryCounter:C,setShowGlossaryCounter:_,glossariesKeyword:a}),s?.total>e?(0,r.createElement)("div",{style:{marginTop:20},className:"btd-pagination-wrapper"},(0,r.createElement)(c.A,{pageSize:e,defaultCurrent:n,onChange:(e,n)=>{o(e),t(n)},total:s?.total})):"")},Fe=new i.E,Be=()=>(0,r.createElement)("div",{id:"betterdocsGlossaries",className:"betterdocs-faq-builder-wrapper"},(0,r.createElement)(s.Ht,{client:Fe},(0,r.createElement)("div",{className:"betterdocs-faq-wrapper betterdocs-dashboard-container"},(0,r.createElement)(Re,null))))},8061:(e,t,n)=>{"use strict";n.d(t,{A:()=>Wt});var r=n(1609),o=n.n(r),a=n(5849),i=n(8401),s=n(2619),l=n(1890),c=n(7723);const u=e=>(0,r.createElement)("div",null,e.title),d=e=>(0,r.createElement)("div",{className:"wprf-control-wrapper wpfr-section-html",dangerouslySetInnerHTML:{__html:e.html}});var p=n(668);const f=e=>{const t=(0,p.validFieldProps)(e,["is_pro","visible","trigger","copyOnClick","disable","parentIndex","context","badge","popup","tags"]),n=(0,r.useCallback)((n=>t.onChange(n,{popup:e?.popup,isPro:!!e.is_pro})),[t?.value]);if(e.tags){let a=Object.values(e.tags);Boolean(e?.context?.is_pro_active)&&e?.context?.values?.multiple_kb||(a=a.filter((e=>"%knowledge_base%"!==e.value)));let i=e.value.length>0?e.value.split("/"):[];const s=o().useRef(null),l=(t,r)=>{var o;const a=s.current,l=null!==(o=a?.selectionStart)&&void 0!==o?o:0;r&&null!=i.find((e=>e===t.value))&&(i=i.filter((e=>e!==t.value)));let c=i.join("/");if(!r){let e=c.indexOf("/",l);if(-1!==e){let n=c.slice(0,e),r=c.slice(e);c=`${n}${n.endsWith("/")?"":"/"}${t.value}${r}`}else c=`${c}${c.endsWith("/")?"":"/"}${t.value}`}n({target:{type:"button",name:e.name,value:c}})};return(0,r.createElement)(r.Fragment,null,o().createElement("input",{...t,onChange:n,ref:s,type:"text"}),(0,r.createElement)("div",{className:"wprf-tags-wrapper"},a.map(((e,t)=>{let n=i.includes(e.value);return(0,r.createElement)(o().Fragment,{key:t},(0,r.createElement)("span",{className:"button button-secondary "+(n?"active":""),title:e.label,onClick:t=>l(e,n)},e.value))}))))}return o().createElement("input",{...t,onChange:n})},h=(o().memo(f),(0,p.withLabel)(o().memo(f))),m=e=>{var t;return(0,r.createElement)("div",{className:"wprf-image-wrapper"},null!=e?.media?.url&&(0,r.createElement)("img",{src:e.media.url,alt:null!==(t=e?.media?.alt)&&void 0!==t?t:""}))};var g=n(1455),y=n.n(g);const v=e=>{var t;const n=(0,p.validFieldProps)(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick","description","label","help","style"]),[o,a]=(0,r.useState)(null),[i,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)([]),[d,f]=(0,r.useState)("ignore");let{label:h,label_subtitle:m,id:g,name:v,type:b,style:w,is_pro:E,badge:x,value:C,enable_disable_text_active:_=!1,...S}=e;null==g&&(g=v);const O={description:{position:"right"},...w},k=(...e)=>e.filter(Boolean).join(" "),N=k({[`wprf-style-${O?.type}`]:O?.type||!1,"wprf-label-none":void 0===h||""===h||0===h.length,[`wprf-${O?.label?.position||"inline"}-label`]:(null===(t=O?.label?.position)||void 0===t||t)&&null!=h});if("hidden"===b)return(0,r.createElement)(WrappedComponent,{...e,id:g});const M=k("wprf-control-wrapper",`wprf-type-${b}`,N,e?.classes,{[`wprf-name-${v}`]:v}),A=e=>{f(e.target.value)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:M},(0,r.createElement)("div",{className:"wprf-control-label"},h&&(0,r.createElement)("label",{htmlFor:g},h),m&&(0,r.createElement)("p",{className:"wprf-label-subtitle",dangerouslySetInnerHTML:{__html:m}})),(0,r.createElement)("div",{className:"wprf-control-field wprf-importer-upload-field"},(0,r.createElement)("span",{className:"wprf-json-uploader"},null===o?(0,r.createElement)("label",{className:"wprf-importer-upload-button"},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("span",null,(0,c.__)("Click to upload","betterdocs")),(0,r.createElement)("input",{type:"file",accept:e.file_type,onChange:t=>{if(!t.target.files.length)return;const n=t.target.files[0];if(0!=n?.size)if("application/json"===n?.type||"text/json"===n?.type||"application/xml"===n?.type||"text/xml"===n?.type||"text/csv"===n?.type||"application/csv"===n?.type||"application/vnd.ms-excel"===n?.type)if(a(n),"application/xml"===n.type||"text/xml"===n.type){let e=new FileReader;e.onload=function(e){const t=e.target.result,n=(new DOMParser).parseFromString(t,"text/xml");let r={};const o=[],a=n.evaluate("//wp:post_name",n,(e=>"wp"===e?"http://wordpress.org/export/1.2/":null),XPathResult.ANY_TYPE,null);let i=a.iterateNext();for(;i;)o.push(i.textContent),i=a.iterateNext();o&&(r.posts=o),y()({path:"/betterdocs/v1/parse-xml",method:"POST",data:r}).then((e=>{"success"===e.status&&e.data&&u(Object.values(e.data))})).catch((e=>{console.log(e)}))},e.readAsText(n)}else"text/csv"!==n.type&&"application/csv"!==n.type&&"application/vnd.ms-excel"!==n.type||(e=>{const t=new FormData;t.append("file",e),y()({path:"/betterdocs/v1/parse-csv",method:"POST",body:t}).then((e=>{"success"===e.status&&e.data&&u(Object.values(e.data))})).catch((e=>{console.log(e)}))})(n);else e.context.alerts.toast("error",(0,c.__)("Invalid file type.","betterdocs"));else e.context.alerts.toast("error",(0,c.__)("File can't be empty.","betterdocs"))}})):o.name&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"wpfr-json-file-name-wrapper"},(0,r.createElement)("span",{className:"wpfr-json-file-name"},o.name.length>20?`${o.name.substr(0,9)}...${o.name.substr(o.name.length-7)}`:o.name),(0,r.createElement)("span",{className:"wprf-json-file-delete-button",onClick:()=>{a(null),e.onChange({target:{type:"importerupload",name:e.name,value:null}})}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("mask",{id:"mask0_2475_21238","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"#D9D9D9"})),(0,r.createElement)("g",{mask:"url(#mask0_2475_21238)"},(0,r.createElement)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"#475467"}))))),l.length>0&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"data-exists"},(0,r.createElement)("input",{type:"hidden",name:"existing_slug",id:"existing_slug"}),(0,r.createElement)("div",{className:"error"},e?.text?.exists_notice&&(0,r.createElement)("p",{className:"exists-notice"},e?.text?.exists_notice),(0,r.createElement)("label",{htmlFor:"ignore-radio"},(0,r.createElement)("input",{type:"radio",name:"action",value:"ignore",id:"ignore-radio",checked:"ignore"===d,onChange:A}),(0,c.__)("Ignore","betterdocs")),(0,r.createElement)("label",{htmlFor:"keepboth-radio"},(0,r.createElement)("input",{type:"radio",name:"action",value:"keepboth",id:"keepboth-radio",checked:"keepboth"===d,onChange:A}),(0,c.__)("Keep Both","betterdocs")),(0,r.createElement)("label",{htmlFor:"replace-radio"},(0,r.createElement)("input",{type:"radio",name:"action",value:"replace",id:"replace-radio",checked:"replace"===d,onChange:A}),(0,c.__)("Replace","betterdocs"))))))))),o&&(0,r.createElement)("div",{className:"wprf-submit wprf-importer-submit"},(0,r.createElement)("button",{...n,type:"submit",disabled:i,onClick:()=>{s(!0);const t=new FormData;t.append("file",o),l.length>0&&t.append("existing_slug",l.join(","));const n=document.querySelector('input[name="action"]:checked');n&&t.append("action",n.value),y()({path:e.ajax.api,method:"POST",body:t}).then((t=>{if(s(!1),"failed"===t.status)throw new Error;if("success"===t.status){if(a(null),!e.ajax?.hideSwal){const t=e.ajax?.swal?.icon||"success",n=e.ajax?.swal?.text||"Complete";e.context.alerts.toast(t,n,{autoClose:e.ajax?.swal?.autoClose})}e.ajax?.reload&&setTimeout((()=>window.location.reload()),1e3)}})).catch((t=>{s(!0),e.ajax?.hideSwal||e.context.alerts.toast("error",t?.message||(0,c.__)("Something went wrong.","betterdocs"))}))},className:"wprf-submit-button"},(0,p.isObject)(e?.text)&&e?.ajax?i?e?.text?.loading:e.value?e?.text?.saved:e?.text?.normal:e?.text)))},b=(0,p.withLabel)(o().memo((e=>{(0,p.validFieldProps)(e,["is_pro","visible","trigger","disable","parentIndex","context","copyOnClick"]);const[t,n]=(0,r.useState)(null);return(0,r.useEffect)((()=>{e?.value||n(null)}),[e?.value]),(0,r.createElement)("div",{className:"wprf-control-field wprf-importer-upload-field"},(0,r.createElement)("span",{className:"wprf-json-uploader"},!t&&(0,r.createElement)("label",{className:"wprf-importer-upload-button"},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("i",{className:"btd-icon btd-upload"})),(0,r.createElement)("span",null,(0,c.__)("Click to upload","betterdocs")),(0,r.createElement)("input",{type:"file",accept:"application/JSON",onChange:t=>{(t=>{if(!t.target.files.length)return;const r=t.target.files[0];if(0==r?.size)return void e.context.alerts.toast("error",(0,c.__)("File can't be empty.","betterdocs"));if("application/json"!=r?.type&&"text/json"!=r?.type)return void e.context.alerts.toast("error",(0,c.__)("Invalid file type.","betterdocs"));n(r);let o=new FileReader;o.onload=t=>{const n=t?.target?.result;e.onChange({target:{type:"jsonuploader",name:e.name,value:n}})},o.readAsText(r)})(t)}})),t&&t?.name&&(0,r.createElement)("span",{className:"wpfr-json-file-name-wrapper"},(0,r.createElement)("span",{className:"wpfr-json-file-name"},t?.name.length>20?`${t?.name.substr(0,9)}...${t?.name.substr(t?.name.length-7)}`:t?.name),(0,r.createElement)("span",{className:"wprf-json-file-delete-button",onClick:()=>{n(null),e.onChange({target:{type:"jsonuploader",name:e.name,value:null}})}},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,r.createElement)("mask",{id:"mask0_2475_21238","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},(0,r.createElement)("rect",{width:"24",height:"24",fill:"#D9D9D9"})),(0,r.createElement)("g",{mask:"url(#mask0_2475_21238)"},(0,r.createElement)("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"#475467"})))))))})));var w=n(7500),E=n.n(w);const x=(0,p.withLabel)((function(e){const t=E()("wprf-checkbox-wrap wprf-name-migration_step",e?.classes);return(0,r.createElement)("div",{className:t},(0,r.createElement)(p.GenericInput,{...e,type:"checkbox"}),(0,r.createElement)("label",{htmlFor:e.id},e.label))})),C=e=>(0,r.createElement)("div",{className:`wprf-control-wrapper wprf-settings-section-header wprf-section-header wprf-direction-${e?.direction}`},e?.icon?(0,r.createElement)("div",{className:"wprf-icon header-icon",dangerouslySetInnerHTML:{__html:e?.icon}}):"",(0,r.createElement)("div",{className:"wprf-content"},(0,r.createElement)("h4",{className:"wprf-title",dangerouslySetInnerHTML:{__html:e.title}}),(0,r.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:e.description}})),e?.links?(0,r.createElement)("div",{className:"wprf-link-wrapper"},e?.links?.map((e=>(0,r.createElement)("a",{href:e?.url,target:"_blank",dangerouslySetInnerHTML:{__html:e?.label}})))):"");var _=n(8552),S=n(1419),O=n.n(S);function k(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function N(e){return e instanceof k(e).Element||e instanceof Element}function M(e){return e instanceof k(e).HTMLElement||e instanceof HTMLElement}function A(e){return"undefined"!=typeof ShadowRoot&&(e instanceof k(e).ShadowRoot||e instanceof ShadowRoot)}var D=Math.max,I=Math.min,j=Math.round;function T(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function L(){return!/^((?!chrome|android).)*safari/i.test(T())}function P(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&M(e)&&(o=e.offsetWidth>0&&j(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&j(r.height)/e.offsetHeight||1);var i=(N(e)?k(e):window).visualViewport,s=!L()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function R(e){var t=k(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function F(e){return e?(e.nodeName||"").toLowerCase():null}function B(e){return((N(e)?e.ownerDocument:e.document)||window.document).documentElement}function z(e){return P(B(e)).left+R(e).scrollLeft}function q(e){return k(e).getComputedStyle(e)}function U(e){var t=q(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function H(e,t,n){void 0===n&&(n=!1);var r,o,a=M(t),i=M(t)&&function(e){var t=e.getBoundingClientRect(),n=j(t.width)/e.offsetWidth||1,r=j(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=B(t),l=P(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==F(t)||U(s))&&(c=(r=t)!==k(r)&&M(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:R(r)),M(t)?((u=P(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=z(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function V(e){var t=P(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function K(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(A(e)?e.host:null)||B(e)}function G(e){return["html","body","#document"].indexOf(F(e))>=0?e.ownerDocument.body:M(e)&&U(e)?e:G(K(e))}function W(e,t){var n;void 0===t&&(t=[]);var r=G(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=k(r),i=o?[a].concat(a.visualViewport||[],U(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(W(K(i)))}function Y(e){return["table","td","th"].indexOf(F(e))>=0}function Q(e){return M(e)&&"fixed"!==q(e).position?e.offsetParent:null}function $(e){for(var t=k(e),n=Q(e);n&&Y(n)&&"static"===q(n).position;)n=Q(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===q(n).position)?t:n||function(e){var t=/firefox/i.test(T());if(/Trident/i.test(T())&&M(e)&&"fixed"===q(e).position)return null;var n=K(e);for(A(n)&&(n=n.host);M(n)&&["html","body"].indexOf(F(n))<0;){var r=q(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Z="top",J="bottom",X="right",ee="left",te="auto",ne=[Z,J,X,ee],re="start",oe="end",ae="viewport",ie="popper",se=ne.reduce((function(e,t){return e.concat([t+"-"+re,t+"-"+oe])}),[]),le=[].concat(ne,[te]).reduce((function(e,t){return e.concat([t,t+"-"+re,t+"-"+oe])}),[]),ce=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ue(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var de={placement:"bottom",modifiers:[],strategy:"absolute"};function pe(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?me(o):null,i=o?ge(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case Z:t={x:s,y:n.y-r.height};break;case J:t={x:s,y:n.y+n.height};break;case X:t={x:n.x+n.width,y:l};break;case ee:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?ye(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case re:t[c]=t[c]-(n[u]/2-r[u]/2);break;case oe:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var be={top:"auto",right:"auto",bottom:"auto",left:"auto"};function we(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var y=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),b=ee,w=Z,E=window;if(c){var x=$(n),C="clientHeight",_="clientWidth";x===k(n)&&"static"!==q(x=B(n)).position&&"absolute"===s&&(C="scrollHeight",_="scrollWidth"),(o===Z||(o===ee||o===X)&&a===oe)&&(w=J,m-=(d&&x===E&&E.visualViewport?E.visualViewport.height:x[C])-r.height,m*=l?1:-1),o!==ee&&(o!==Z&&o!==J||a!==oe)||(b=X,f-=(d&&x===E&&E.visualViewport?E.visualViewport.width:x[_])-r.width,f*=l?1:-1)}var S,O=Object.assign({position:s},c&&be),N=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:j(n*o)/o||0,y:j(r*o)/o||0}}({x:f,y:m},k(n)):{x:f,y:m};return f=N.x,m=N.y,l?Object.assign({},O,((S={})[w]=v?"0":"",S[b]=y?"0":"",S.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",S)):Object.assign({},O,((t={})[w]=v?m+"px":"",t[b]=y?f+"px":"",t.transform="",t))}const Ee={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];M(o)&&F(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(r)&&F(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var xe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ce(e){return e.replace(/left|right|bottom|top/g,(function(e){return xe[e]}))}var _e={start:"end",end:"start"};function Se(e){return e.replace(/start|end/g,(function(e){return _e[e]}))}function Oe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t,n){return t===ae?ke(function(e,t){var n=k(e),r=B(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=L();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+z(e),y:l}}(e,n)):N(t)?function(e,t){var n=P(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ke(function(e){var t,n=B(e),r=R(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=D(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=D(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+z(e),l=-r.scrollTop;return"rtl"===q(o||n).direction&&(s+=D(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(B(e)))}function Me(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function De(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?ae:c,d=n.elementContext,p=void 0===d?ie:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,y=Me("number"!=typeof g?g:Ae(g,ne)),v=p===ie?"reference":ie,b=e.rects.popper,w=e.elements[h?v:p],E=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=W(K(e)),n=["absolute","fixed"].indexOf(q(e).position)>=0&&M(e)?$(e):e;return N(n)?t.filter((function(e){return N(e)&&Oe(e,n)&&"body"!==F(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=Ne(e,n,r);return t.top=D(o.top,t.top),t.right=I(o.right,t.right),t.bottom=I(o.bottom,t.bottom),t.left=D(o.left,t.left),t}),Ne(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(N(w)?w:w.contextElement||B(e.elements.popper),l,u,i),x=P(e.elements.reference),C=ve({reference:x,element:b,strategy:"absolute",placement:o}),_=ke(Object.assign({},b,C)),S=p===ie?_:x,O={top:E.top-S.top+y.top,bottom:S.bottom-E.bottom+y.bottom,left:E.left-S.left+y.left,right:S.right-E.right+y.right},k=e.modifiersData.offset;if(p===ie&&k){var A=k[o];Object.keys(O).forEach((function(e){var t=[X,J].indexOf(e)>=0?1:-1,n=[Z,J].indexOf(e)>=0?"y":"x";O[e]+=A[n]*t}))}return O}function Ie(e,t,n){return D(e,I(t,n))}function je(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Te(e){return[Z,X,J,ee].some((function(t){return e[t]>=0}))}var Le=fe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,he)})),s&&l.addEventListener("resize",n.update,he),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,he)})),s&&l.removeEventListener("resize",n.update,he)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:me(t.placement),variation:ge(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ee,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=le.reduce((function(e,n){return e[n]=function(e,t,n){var r=me(e),o=[ee,Z].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[ee,X].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,y=me(g),v=l||(y!==g&&h?function(e){if(me(e)===te)return[];var t=Ce(e);return[Se(e),t,Se(t)]}(g):[Ce(g)]),b=[g].concat(v).reduce((function(e,n){return e.concat(me(n)===te?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?le:l,u=ge(r),d=u?s?se:se.filter((function(e){return ge(e)===u})):ne,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=De(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[me(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,E=t.rects.popper,x=new Map,C=!0,_=b[0],S=0;S=0,A=M?"width":"height",D=De(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),I=M?N?X:ee:N?J:Z;w[A]>E[A]&&(I=Ce(I));var j=Ce(I),T=[];if(a&&T.push(D[k]<=0),s&&T.push(D[I]<=0,D[j]<=0),T.every((function(e){return e}))){_=O,C=!1;break}x.set(O,T)}if(C)for(var L=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},P=h?3:1;P>0&&"break"!==L(P);P--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=De(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=me(t.placement),v=ge(t.placement),b=!v,w=ye(y),E="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,_=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,O="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(x){if(a){var M,A="y"===w?Z:ee,j="y"===w?J:X,T="y"===w?"height":"width",L=x[w],P=L+g[A],R=L-g[j],F=f?-_[T]/2:0,B=v===re?C[T]:_[T],z=v===re?-_[T]:-C[T],q=t.elements.arrow,U=f&&q?V(q):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=H[A],G=H[j],W=Ie(0,C[T],U[T]),Y=b?C[T]/2-F-W-K-O.mainAxis:B-W-K-O.mainAxis,Q=b?-C[T]/2+F+W+G+O.mainAxis:z+W+G+O.mainAxis,te=t.elements.arrow&&$(t.elements.arrow),ne=te?"y"===w?te.clientTop||0:te.clientLeft||0:0,oe=null!=(M=null==k?void 0:k[w])?M:0,ae=L+Q-oe,ie=Ie(f?I(P,L+Y-oe-ne):P,L,f?D(R,ae):R);x[w]=ie,N[w]=ie-L}if(s){var se,le="x"===w?Z:ee,ce="x"===w?J:X,ue=x[E],de="y"===E?"height":"width",pe=ue+g[le],fe=ue-g[ce],he=-1!==[Z,ee].indexOf(y),ve=null!=(se=null==k?void 0:k[E])?se:0,be=he?pe:ue-C[de]-_[de]-ve+O.altAxis,we=he?ue+C[de]+_[de]-ve-O.altAxis:fe,Ee=f&&he?function(e,t,n){var r=Ie(e,t,n);return r>n?n:r}(be,ue,we):Ie(f?be:pe,ue,f?we:fe);x[E]=Ee,N[E]=Ee-ue}t.modifiersData[r]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=me(n.placement),l=ye(s),c=[ee,X].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return Me("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ae(e,ne))}(o.padding,n),d=V(a),p="y"===l?Z:ee,f="y"===l?J:X,h=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=$(a),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=u[p],w=y-d[c]-u[f],E=y/2-d[c]/2+v,x=Ie(b,E,w),C=l;n.modifiersData[r]=((t={})[C]=x,t.centerOffset=x-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Oe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=De(t,{elementContext:"reference"}),s=De(t,{altBoundary:!0}),l=je(i,r),c=je(s,o,a),u=Te(l),d=Te(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Pe="tippy-content",Re="tippy-arrow",Fe="tippy-svg-arrow",Be={passive:!0,capture:!0},ze=function(){return document.body};function qe(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function He(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Ve(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ke(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function We(e){return[].slice.call(e)}function Ye(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Qe(){return document.createElement("div")}function $e(e){return["Element","Fragment"].some((function(t){return Ue(e,t)}))}function Ze(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Je(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Xe(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function et(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var tt={isTouch:!1},nt=0;function rt(){tt.isTouch||(tt.isTouch=!0,window.performance&&document.addEventListener("mousemove",ot))}function ot(){var e=performance.now();e-nt<20&&(tt.isTouch=!1,document.removeEventListener("mousemove",ot)),nt=e}function at(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var it=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),st=Object.assign({appendTo:ze,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),lt=Object.keys(st);function ct(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,a=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=st[o])?r:a),t}),{});return Object.assign({},e,t)}function ut(e,t){var n=Object.assign({},t,{content:He(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(ct(Object.assign({},st,{plugins:t}))):lt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},st.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function dt(e,t){e.innerHTML=t}function pt(e){var t=Qe();return!0===e?t.className=Re:(t.className=Fe,$e(e)?t.appendChild(e):dt(t,e)),t}function ft(e,t){$e(t.content)?(dt(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?dt(e,t.content):e.textContent=t.content)}function ht(e){var t=e.firstElementChild,n=We(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Pe)})),arrow:n.find((function(e){return e.classList.contains(Re)||e.classList.contains(Fe)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function mt(e){var t=Qe(),n=Qe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Qe();function o(n,r){var o=ht(t),a=o.box,i=o.content,s=o.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"==typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||ft(i,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(pt(r.arrow))):a.appendChild(pt(r.arrow)):s&&a.removeChild(s)}return r.className=Pe,r.setAttribute("data-state","hidden"),ft(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}mt.$$tippy=!0;var gt=1,yt=[],vt=[];function bt(e,t){var n,r,o,a,i,s,l,c,u=ut(e,Object.assign({},st,ct(Ye(t)))),d=!1,p=!1,f=!1,h=!1,m=[],g=Ve(W,u.interactiveDebounce),y=gt++,v=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:y,reference:e,popper:Qe(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!b.state.isDestroyed){j("onBeforeUpdate",[b,t]),K();var n=b.props,r=ut(e,Object.assign({},n,Ye(t),{ignoreAttributes:!0}));b.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),g=Ve(W,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?Ke(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),L(),I(),x&&x(n,r),b.popperInstance&&(Z(),X().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),j("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=tt.isTouch&&!b.props.touch,o=qe(b.props.duration,0,st.duration);if(!(e||t||n||r||N().hasAttribute("disabled")||(j("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,k()&&(E.style.visibility="visible"),I(),z(),b.state.isMounted||(E.style.transition="none"),k()){var a=A();Ze([a.box,a.content],0)}var i,l,c;s=function(){var e;if(b.state.isVisible&&!h){if(h=!0,E.offsetHeight,E.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=A(),n=t.box,r=t.content;Ze([n,r],o),Je([n,r],"visible")}T(),L(),Ge(vt,b),null==(e=b.popperInstance)||e.forceUpdate(),j("onMount",[b]),b.props.animation&&k()&&function(e){U(e,(function(){b.state.isShown=!0,j("onShown",[b])}))}(o)}},l=b.props.appendTo,c=N(),(i=b.props.interactive&&l===ze||"parent"===l?c.parentNode:He(l,[c])).contains(E)||i.appendChild(E),b.state.isMounted=!0,Z()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=qe(b.props.duration,1,st.duration);if(!(e||t||n)&&(j("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,k()&&(E.style.visibility="hidden"),P(),q(),I(!0),k()){var o=A(),a=o.box,i=o.content;b.props.animation&&(Ze([a,i],r),Je([a,i],"hidden"))}T(),L(),b.props.animation?k()&&function(e,t){U(e,(function(){!b.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&t()}))}(r,b.unmount):b.unmount()}},hideWithInteractivity:function(e){M().addEventListener("mousemove",g),Ge(yt,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(J(),X().forEach((function(e){e._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E),vt=vt.filter((function(e){return e!==b})),b.state.isMounted=!1,j("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),K(),delete e._tippy,b.state.isDestroyed=!0,j("onDestroy",[b]))}};if(!u.render)return b;var w=u.render(b),E=w.popper,x=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+b.id,b.popper=E,e._tippy=b,E._tippy=b;var C=v.map((function(e){return e.fn(b)})),_=e.hasAttribute("aria-expanded");return V(),L(),I(),j("onCreate",[b]),u.showOnCreate&&ee(),E.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&M().addEventListener("mousemove",g)})),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function O(){return"hold"===S()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function N(){return l||e}function M(){var e,t,n=N().parentNode;return n?null!=(t=Ke(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function A(){return ht(E)}function D(e){return b.state.isMounted&&!b.state.isVisible||tt.isTouch||a&&"focus"===a.type?0:qe(b.props.delay,e?0:1,st.delay)}function I(e){void 0===e&&(e=!1),E.style.pointerEvents=b.props.interactive&&!e?"":"none",E.style.zIndex=""+b.props.zIndex}function j(e,t,n){var r;void 0===n&&(n=!0),C.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=b.props)[e].apply(r,t)}function T(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=E.id;Ke(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function L(){!_&&b.props.aria.expanded&&Ke(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===N()?"true":"false"):e.removeAttribute("aria-expanded")}))}function P(){M().removeEventListener("mousemove",g),yt=yt.filter((function(e){return e!==g}))}function R(t){if(!tt.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!et(E,n)){if(Ke(b.props.triggerTarget||e).some((function(e){return et(e,n)}))){if(tt.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),p=!0,setTimeout((function(){p=!1})),b.state.isMounted||q())}}}function F(){f=!0}function B(){f=!1}function z(){var e=M();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Be),e.addEventListener("touchstart",B,Be),e.addEventListener("touchmove",F,Be)}function q(){var e=M();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Be),e.removeEventListener("touchstart",B,Be),e.removeEventListener("touchmove",F,Be)}function U(e,t){var n=A().box;function r(e){e.target===n&&(Xe(n,"remove",r),t())}if(0===e)return t();Xe(n,"remove",i),Xe(n,"add",r),i=r}function H(t,n,r){void 0===r&&(r=!1),Ke(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function V(){var e;O()&&(H("touchstart",G,{passive:!0}),H("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,G),e){case"mouseenter":H("mouseleave",Y);break;case"focus":H(it?"focusout":"blur",Q);break;case"focusin":H("focusout",Q)}}))}function K(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function G(e){var t,n=!1;if(b.state.isEnabled&&!$(e)&&!p){var r="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,L(),!b.state.isVisible&&Ue(e,"MouseEvent")&&yt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function W(e){var t=e.target,n=N().contains(t)||E.contains(t);if("mousemove"!==e.type||!n){var r=X().concat(E).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props.interactiveBorder,i=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,d="left"===i?s.right.x:0,p=t.top-r+l>a,f=r-t.bottom-c>a,h=t.left-n+u>a,m=n-t.right-d>a;return p||f||h||m}))})(r,e)&&(P(),te(e))}}function Y(e){$(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Q(e){b.props.trigger.indexOf("focusin")<0&&e.target!==N()||b.props.interactive&&e.relatedTarget&&E.contains(e.relatedTarget)||te(e)}function $(e){return!!tt.isTouch&&O()!==e.type.indexOf("touch")>=0}function Z(){J();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,l=k()?ht(E).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||N()}:e,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];k()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Le(c,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:u}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function X(){return We(E.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&j("onTrigger",[b,e]),z();var t=D(!0),r=S(),o=r[0],a=r[1];tt.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),j("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=D(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else q()}}function wt(e,t){void 0===t&&(t={});var n=st.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",rt,Be),window.addEventListener("blur",at);var r,o=Object.assign({},t,{plugins:n}),a=(r=e,$e(r)?[r]:function(e){return Ue(e,"NodeList")}(r)?We(r):Array.isArray(r)?r:We(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&bt(t,o);return n&&e.push(n),e}),[]);return $e(e)?a[0]:a}wt.defaultProps=st,wt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){st[t]=e[t]}))},wt.currentInput=tt,Object.assign({},Ee,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),wt.setDefaultProps({render:mt});const Et=wt;var xt=n(5795);function Ct(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var _t="undefined"!=typeof window&&"undefined"!=typeof document;function St(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Ot(){return _t&&document.createElement("div")}function kt(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!kt(e[n],t[n]))return!1}return!0}return!1}function Nt(e){var t=[];return e.forEach((function(e){t.find((function(t){return kt(e,t)}))||t.push(e)})),t}var Mt=_t?r.useLayoutEffect:r.useEffect;function At(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Dt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||At(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&At(t,"remove",e.props.className)},onAfterUpdate:r}}};function It(e){return function(t){var n,a,i=t.children,s=t.content,l=t.visible,c=t.singleton,u=t.render,d=t.reference,p=t.disabled,f=void 0!==p&&p,h=t.ignoreAttributes,m=void 0===h||h,g=(t.__source,t.__self,Ct(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),y=void 0!==l,v=void 0!==c,b=(0,r.useState)(!1),w=b[0],E=b[1],x=(0,r.useState)({}),C=x[0],_=x[1],S=(0,r.useState)(),O=S[0],k=S[1],N=(n=function(){return{container:Ot(),renders:1}},(a=(0,r.useRef)()).current||(a.current="function"==typeof n?n():n),a.current),M=Object.assign({ignoreAttributes:m},g,{content:N.container});y&&(M.trigger="manual",M.hideOnClick=!1),v&&(f=!0);var A=M,D=M.plugins||[];u&&(A=Object.assign({},M,{plugins:v&&null!=c.data?[].concat(D,[{fn:function(){return{onTrigger:function(e,t){var n=c.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,k(n.content)}}}}]):D,render:function(){return{popper:N.container}}}));var I=[d].concat(i?[i.type]:[]);return Mt((function(){var t=d;d&&d.hasOwnProperty("current")&&(t=d.current);var n=e(t||N.ref||Ot(),Object.assign({},A,{plugins:[Dt].concat(M.plugins||[])}));return N.instance=n,f&&n.disable(),l&&n.show(),v&&c.hook({instance:n,content:s,props:A,setSingletonContent:k}),E(!0),function(){n.destroy(),null==c||c.cleanup(n)}}),I),Mt((function(){var e,t,n,r,o;if(1!==N.renders){var a=N.instance;a.setProps((t=a.props,n=A,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:Nt([].concat((null==(r=t.popperOptions)?void 0:r.modifiers)||[],(null==(o=n.popperOptions)?void 0:o.modifiers)||[]))})}))),null==(e=a.popperInstance)||e.forceUpdate(),f?a.disable():a.enable(),y&&(l?a.show():a.hide()),v&&c.hook({instance:a,content:s,props:A,setSingletonContent:k})}else N.renders++})),Mt((function(){var e;if(u){var t=N.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;C.placement===n.placement&&C.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&C.escaped===(null==r?void 0:r.hasPopperEscaped)||_({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[C.placement,C.referenceHidden,C.escaped].concat(I)),o().createElement(o().Fragment,null,i?(0,r.cloneElement)(i,{ref:function(e){N.ref=e,St(i.ref,e)}}):null,w&&(0,xt.createPortal)(u?u(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(C),O,N.instance):s,N.container))}}var jt=function(e,t){return(0,r.forwardRef)((function(n,a){var i=n.children,s=Ct(n,["children"]);return o().createElement(e,Object.assign({},t,s),i?(0,r.cloneElement)(i,{ref:function(e){St(a,e),St(i.ref,e)}}):null)}))};const Tt=jt(It(Et)),Lt=e=>{const{data:t,innerRef:n,innerProps:o,isFocused:a,isSelected:i,selectProps:s}=e,l=`${s.classNamePrefix||"react-select"}__option`,c=a?`${l}--is-focused`:"",u=i?`${l}--is-selected`:"";return(0,r.createElement)("div",{ref:n,...o,className:`${l} ${c} ${u} custom-option`,style:{cursor:"pointer"}},(0,r.createElement)("span",null,t.label),t.tooltip&&(0,r.createElement)(Tt,{content:t.tooltip,placement:"right"},(0,r.createElement)("span",{className:"tooltip-icon",style:{marginLeft:"0px"}},(0,r.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M6.33203 10.332H7.66536V6.33203H6.33203V10.332ZM6.9987 4.9987C7.18759 4.9987 7.34592 4.93481 7.4737 4.80703C7.60148 4.67925 7.66536 4.52092 7.66536 4.33203C7.66536 4.14314 7.60148 3.98481 7.4737 3.85703C7.34592 3.72925 7.18759 3.66536 6.9987 3.66536C6.80981 3.66536 6.65148 3.72925 6.5237 3.85703C6.39592 3.98481 6.33203 4.14314 6.33203 4.33203C6.33203 4.52092 6.39592 4.67925 6.5237 4.80703C6.65148 4.93481 6.80981 4.9987 6.9987 4.9987ZM6.9987 13.6654C6.07648 13.6654 5.20981 13.4904 4.3987 13.1404C3.58759 12.7904 2.88203 12.3154 2.28203 11.7154C1.68203 11.1154 1.20703 10.4098 0.857031 9.5987C0.507031 8.78759 0.332031 7.92092 0.332031 6.9987C0.332031 6.07648 0.507031 5.20981 0.857031 4.3987C1.20703 3.58759 1.68203 2.88203 2.28203 2.28203C2.88203 1.68203 3.58759 1.20703 4.3987 0.857031C5.20981 0.507031 6.07648 0.332031 6.9987 0.332031C7.92092 0.332031 8.78759 0.507031 9.5987 0.857031C10.4098 1.20703 11.1154 1.68203 11.7154 2.28203C12.3154 2.88203 12.7904 3.58759 13.1404 4.3987C13.4904 5.20981 13.6654 6.07648 13.6654 6.9987C13.6654 7.92092 13.4904 8.78759 13.1404 9.5987C12.7904 10.4098 12.3154 11.1154 11.7154 11.7154C11.1154 12.3154 10.4098 12.7904 9.5987 13.1404C8.78759 13.4904 7.92092 13.6654 6.9987 13.6654ZM6.9987 12.332C8.48759 12.332 9.7487 11.8154 10.782 10.782C11.8154 9.7487 12.332 8.48759 12.332 6.9987C12.332 5.50981 11.8154 4.2487 10.782 3.21536C9.7487 2.18203 8.48759 1.66536 6.9987 1.66536C5.50981 1.66536 4.2487 2.18203 3.21536 3.21536C2.18203 4.2487 1.66536 5.50981 1.66536 6.9987C1.66536 8.48759 2.18203 9.7487 3.21536 10.782C4.2487 11.8154 5.50981 12.332 6.9987 12.332Z",fill:"#667085"})))))},Pt=(0,p.withLabel)((e=>{const t=(0,p.useBuilderContext)();let{id:n,name:o,multiple:a,placeholder:i,search:s=!1,onChange:l,parentIndex:u}=e;const{options:d,selectedOption:f,setOptions:h,setData:m}=(0,p.useOptions)(e,"options"),[g,y]=(0,r.useState)(null),[v,b]=(0,r.useState)(!1),[w,E]=(0,r.useState)(!1),[x,C]=(0,r.useState)(betterdocs_admin.disabled_embed_model_option),S=()=>{if(e.ajax&&(!e.ajax.rules||(0,p.when)(e.ajax.rules,t.values))){b(!0);let n={};if(Object.keys(e?.ajax.data).map((r=>{if(e?.ajax.data[r].indexOf("@")>-1){let o=e?.ajax.data[r].substr(1);n[r]=t.values?.[o]}else n[r]=e?.ajax.data[r]})),!w)return(0,p.wpFetch)({path:e?.ajax.api,data:n}).then((n=>{b(!1);const r=(0,p.merge)(e.options,n,"value");return t.setFormField([...u,"options"],r),m({options:r,parentIndex:[...u,"options"]}),n}))}};(0,r.useEffect)((()=>{!(0,p.isArray)(g)&&(0,p.isObject)(g)&&l({target:{type:"select",name:o,value:g.value,options:d,multiple:a}}),(0,p.isArray)(g)&&l({target:{type:"select",name:o,value:g.map((e=>e.value)),options:d,multiple:a}})}),[g]),(0,r.useEffect)((()=>{S()}),[]),(0,r.useEffect)((()=>{e?.menuOpen&&S()}),[e?.menuOpen]);const k=(0,r.useCallback)((t=>{if((0,p.isArray)(t)&&e?.filterValue?.length>0){var n;const r=t;let o=r,a=null!==(n=e?.filterValue)&&void 0!==n?n:["all"];(0,p.isArray)(a)||(a=[a]),r?.length>1&&(0,p.valueExists)(r.map((e=>e.value)),a)&&(o=r.filter((e=>!a.includes(e?.value)))),t=o}y(t)}),[o,n,u]),N=e.options_tooltip?{Option:Lt}:void 0;return(0,r.createElement)("div",{className:"wprf-select-wrapper"},(0,r.createElement)(_.Ay,{isDisabled:e?.disable,className:"wprf-select "+(0==x?"disabled-option":""),classNamePrefix:"wprf-select",isSearchable:null!=s&&s,id:n,name:o,isMulti:null!=a&&a,placeholder:i,isLoading:v,options:d,value:f,onMenuOpen:S,onMenuClose:()=>{b(!1)},isOptionDisabled:e=>e?.disabled,onChange:k,disabled:"disabled",components:N}),0==x&&(0,r.createElement)("div",{className:"model-wrapper"},betterdocs_admin?.count_new_docs>0&&(0,r.createElement)("div",{className:"sync-docs-wrapper"},(0,r.createElement)("a",{href:`?page=betterdocs-settings&sync-new-docs=1&_nonce=${betterdocs_admin?.sync_nonce}`},"Sync new docs(",betterdocs_admin?.count_new_docs,")")),(0,r.createElement)("div",{className:"change-model-wrapper",onClick:()=>{O().mixin({customClass:{container:"betterdocs-model-change-alert-container",popup:"betterdocs-model-change-alert-popup",closeButton:"betterdocs-model-change-alert-close-button",htmlContainer:"betterdocs-model-change-alert-html"},showCloseButton:!0,closeButtonHtml:'\n \n \n ',html:'\n
\n \n
\n

Are you sure you want to change the model?

\n

We do not recommend changing the model. Please confirm if you wish to proceed.

\n ',showConfirmButton:!1,icon:!1}).fire(),document.getElementById("confirmButton").addEventListener("click",(()=>{C(!0),O().close()})),document.getElementById("cancelButton").addEventListener("click",(()=>{C(!1),O().close()}))}},(0,c.__)("Change Model","betterdocs"))))}));n(4259);const Rt=new class{namespace="/betterdocs";version="v1";getPath=e=>`${this.namespace}/${this.version}/${e}`;post=(e,t={},n={})=>(n={path:this.getPath(e),method:"POST",data:t,...n},y()(n).then((e=>e)).catch((e=>e)));delete=(e,t={},n={})=>(n={path:this.getPath(e),method:"DELETE",data:t,...n},y()(n).then((e=>e)).catch((e=>console.error(e))));get=(e,t={})=>(t={path:this.getPath(e),method:"GET",...t},y()(t).then((e=>e)).catch((e=>console.error(e))));useQuery=e=>new URLSearchParams(e);getParam=(e,t=null)=>this.useQuery(location.search).get(e)||t},Ft=(e={})=>{var t,n,r,o,a;return O().mixin({target:null!==(t=e?.target)&&void 0!==t?t:"#betterdocsQuickBuilder",html:e?.html,title:null!==(n=e?.title)&&void 0!==n?n:(0,c.__)("Title Goes Here: title","betterdocs"),text:null!==(r=e?.text)&&void 0!==r?r:(0,c.__)("Text Goes Here: text","betterdocs"),icon:null!==(o=e?.icon)&&void 0!==o?o:e?.type||"success",timer:null!==(a=e?.timer)&&void 0!==a?a:null,...e})},Bt=(e=null)=>{let t={};null===e&&(e=sprintf(`
\n \n
\n

${(0,c.__)("License Not Activated","betterdocs")}

\n

${(0,c.__)("To access this feature, simply upgrade to BetterDocs PRO for premium access.","betterdocs")}

\n
\n
${(0,c.__)("Here’s what’s inside BetterDocs Pro.","betterdocs")}
\n
    \n
  • ${(0,c.__)("Multiple Knowledge Bases","betterdocs")}
  • \n
  • ${(0,c.__)("Internal Knowledge Base","betterdocs")}
  • \n
  • ${(0,c.__)("Instant Answer","betterdocs")}
  • \n
  • ${(0,c.__)("Advanced Live Search","betterdocs")}
  • \n
  • ${(0,c.__)("Insightful Analytics Report","betterdocs")}
  • \n
  • ${(0,c.__)("User Role Management","betterdocs")}
  • \n
\n
\n `,"https://betterdocs.co/upgrade")),(0,p.isObject)(e)&&(t=e,e=e.message||e.html);let n={showConfirmButton:!1,showDenyButton:!1,icon:!1,title:!1,showCloseButton:!0,closeButtonHtml:'\n \n ',customClass:{container:"betterdocs-pro-alert-container",popup:"betterdocs-pro-alert-popup",closeButton:"betterdocs-pro-alert-close-button",htmlContainer:"betterdocs-pro-alert-html"},...t,html:e};return Ft(n)},zt=(e=null)=>{const t=document.querySelector("li.wprf-tab-nav-item.wprf-active-nav")?.getAttribute("data-key");let n="Upgrade to BetterDocs PRO",r="To access this feature, simply upgrade to BetterDocs PRO for premium access.";"tab-ai-chatbot"===t&&(n="Upgrade To BetterDocs PRO & Get BetterDocs AI Chatbot Addon",r="To access this feature, simply upgrade to BetterDocs PRO, get the BetterDocs AI chatbot Addon, and activate the license keys.");let o={};null===e&&(e=sprintf(`
\n \n
\n

${(0,c.__)(`${n}`,"betterdocs")}

\n

${(0,c.__)(`${r}`,"betterdocs")}

\n
\n
${(0,c.__)("Here’s what’s inside BetterDocs Pro.","betterdocs")}
\n
    \n
  • ${(0,c.__)("Multiple Knowledge Bases","betterdocs")}
  • \n
  • ${(0,c.__)("Internal Knowledge Base","betterdocs")}
  • \n
  • ${(0,c.__)("Instant Answer","betterdocs")}
  • \n
  • ${(0,c.__)("Advanced Live Search","betterdocs")}
  • \n
  • ${(0,c.__)("Insightful Analytics Report","betterdocs")}
  • \n
  • ${(0,c.__)("User Role Management","betterdocs")}
  • \n
  • ${(0,c.__)("Glossaries & Encyclopedia","betterdocs")}
  • \n
  • ${(0,c.__)("AI-Powered Chatbot","betterdocs")}
  • \n
\n
\n `,"https://betterdocs.co/upgrade")),(0,p.isObject)(e)&&(o=e,e=e.message||e.html);let a={showConfirmButton:!1,showDenyButton:!1,icon:!1,type:"warning",title:!1,showCloseButton:!0,closeButtonHtml:'\n \n ',customClass:{container:"betterdocs-pro-alert-container",popup:"betterdocs-pro-alert-popup",closeButton:"betterdocs-pro-alert-close-button",htmlContainer:"betterdocs-pro-alert-html"},...o,html:e};return Ft(a)},qt={position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,icon:!1},Ut=(e,t,n)=>(e=e||null,t=t||null,new Promise(((r,o)=>{n=n||{};const a={...qt,...n,onClose:r};"success"==e&&l.oR.success(t,a),"error"==e&&l.oR.error(t,a),"info"==e&&l.oR.info(t,a),"warning"==e&&l.oR.warning(t,a),e||o()}))),Ht=e=>{const t=(0,p.useBuilderContext)();return(0,r.useEffect)((()=>{t.registerAlert("pro_alert",zt),t.registerAlert("toast",Ut),t.registerAlert("licenseInactiveAlert",Bt)}),[]),t.submit.onSubmit=(0,r.useCallback)(((e,t)=>{t?.isSubmitting||(t.setSubmitting(!0),(({builtin_doc_page:e,docs_slug:t,docs_page:n})=>{let r=document.querySelector("#wp-admin-bar-view-docs .ab-item");if(null==r){let e=document.querySelector("#wp-admin-bar-site-name");if(null==e)return;{let t=document.createElement("li");t.id="wp-admin-bar-view-docs",r=document.createElement("a"),r.classList.add("ab-item"),r.textContent="Visit Documentation";let n=new URL(window.location.href);r.href=n.origin,t.append(r),e.querySelector("#wp-admin-bar-site-name-default").append(t)}}let o=new URL(r.href),a=t?.length>0?t:"docs";e?o.searchParams.delete("page_id"):!e&&n>0&&(a="",o.searchParams.set("page_id",n)),o.pathname=a,r.href=o.toString()})(t.values),(0,s.doAction)("betterdocs_settings_saved",t),Rt.post("settings",t.values).then((e=>{var t;e?.success?Ut("success",(0,c.__)("Changes Saved Successfully.","betterdocs")):Ut("nothing_changed"===e?.code?"info":"error",(0,c.__)(null!==(t=e?.message)&&void 0!==t?t:"Something went wrong.","betterdocs"))})).catch((e=>{Ut("error",(0,c.__)("Something went wrong.","betterdocs"))})).finally((()=>{t.setSubmitting(!1)})))}),[]),(0,r.createElement)("div",{className:"betterdocs-quick-builder-wrapper"},(0,r.createElement)(p.FormBuilder,{...t}))},Vt=e=>{const t=(0,p.useBuilder)(betterdocsAdminSettings),[n,o]=(0,r.useState)(!0);t.values.is_pro_active=betterdocsAdminSettings?.is_pro_active,(0,r.useEffect)((()=>{0==t.values.enable_disable&&(t.values.ia_enable_preview=!1),betterdocsAdminSettings.values=t.values}),[t.values]);return(0,r.useEffect)((()=>{const e=((e,t=null)=>{var n;return(n=location.search,new URLSearchParams(n)).get(e)||t})("tab");e&&t.setActiveTab(e)}),[]),(0,r.useEffect)((()=>{o(!1)}),[]),(0,r.createElement)(p.BuilderProvider,{value:{...t,isLoading:n,setIsLoading:o}},(0,r.createElement)(Ht,{isLoading:n}))};(0,s.addFilter)("betterdocs_settings_gutenberg_link","BetterDocs",((e,t)=>(0,r.createElement)("div",{className:"betterdocs-settings-customizer-link design-gutenberg"},(0,r.createElement)("div",{className:"betterdocs-card-content"},(0,r.createElement)("h2",null,(0,c.__)("Full Site Editing in Gutenberg","betterdocs")),(0,r.createElement)("p",null,(0,c.__)("Effortlessly design and customize your docs category archive, single docs, ready patterns & more with full site editing (FSE) compatibility in Gutenberg.","betterdocs")),(0,r.createElement)("a",{className:"betterdocs-customize-button",href:t.url},t.button)),(0,r.createElement)("div",{className:"betterdocs-card-icon"},(0,r.createElement)("img",{src:t.customizer_img,alt:"betterdocs-documentation"}))))),(0,s.addFilter)("betterdocs_settings_elementor_link","BetterDocs",((e,t)=>(0,r.createElement)("div",{className:"betterdocs-settings-customizer-link design-elementor"},(0,r.createElement)("div",{className:"betterdocs-card-content"},(0,r.createElement)("h2",null,(0,c.__)("Instant Design in Elementor","betterdocs")),(0,r.createElement)("p",null,(0,c.__)("Easily design and customize your single docs, category archive page, FAQ builder & more using pre-made templates and widgets for Elementor & see changes in real time.","betterdocs")),(0,r.createElement)("a",{className:"betterdocs-customize-button",href:t.url},t.button)),(0,r.createElement)("div",{className:"betterdocs-card-icon"},(0,r.createElement)("img",{src:t.customizer_img,alt:"betterdocs-documentation"}))))),(0,s.addFilter)("betterdocs_settings_customizer_link","BetterDocs",((e,t)=>(0,r.createElement)("div",{className:"betterdocs-settings-customizer-link design-customizer"},(0,r.createElement)("div",{className:"betterdocs-card-content"},(0,r.createElement)("h2",null,(0,c.__)("Legacy Customizer","betterdocs")),(0,r.createElement)("p",null,(0,c.__)("Create and personalize your templates and pages effortlessly with the live customizer. Make your adjustments the way you want and see the changes in action.","betterdocs")),(0,r.createElement)("a",{className:"betterdocs-customize-button",href:t.url},t.button)),(0,r.createElement)("div",{className:"betterdocs-card-icon"},(0,r.createElement)("img",{src:t.customizer_img,alt:"betterdocs-documentation"}))))),(0,s.addFilter)("custom_field","BetterDocs",((e,t,n)=>{switch(t){case"title":return(0,r.createElement)(u,{...n});case"image":return(0,r.createElement)(m,{...n});case"html":return(0,r.createElement)(d,{...n});case"permalink_structure":return(0,r.createElement)(h,{...n});case"importerupload":return(0,r.createElement)(v,{...n});case"settingsuploader":return(0,r.createElement)(b,{...n});case"migration":return(0,r.createElement)(x,{...n});case"header":return(0,r.createElement)(C,{...n});case"embed_model_select":return(0,r.createElement)(Pt,{...n});default:return(0,r.createElement)(r.Fragment,null)}}));const Kt=()=>(0,r.createElement)("div",{className:"betterdocs-settings-wrapper"},(0,r.createElement)(Vt,null)),Gt=new a.E,Wt=()=>(0,r.createElement)("div",{className:"betterdocs-settings-wrap"},(0,s.doAction)("betterdocs_settings_header","settings"),(0,r.createElement)("div",{className:"betterdocs-left-right-settings"},(0,s.doAction)("betterdocs_before_settings_left"),(0,r.createElement)("div",{className:"betterdocs-settings"},(0,r.createElement)("div",{className:"betterdocs-settings-content"},(0,r.createElement)("div",{className:"betterdocs-dashboard-container betterdocs-settings-form-wrapper"},(0,r.createElement)("div",{id:"betterdocsQuickBuilder"},(0,r.createElement)(i.Ht,{client:Gt},(0,r.createElement)(l.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Kt,null))))),(0,s.doAction)("betterdocs_settings_footer")),(0,s.doAction)("betterdocs_after_settings_left")))},9386:(e,t,n)=>{"use strict";n.d(t,{YY:()=>b,IX:()=>S,_v:()=>g,i:()=>v,gz:()=>k,xV:()=>u,bB:()=>_,wb:()=>E,Wj:()=>f,GI:()=>p,Ut:()=>i,uM:()=>s,l0:()=>c,QC:()=>C,j3:()=>M,Yj:()=>d,qu:()=>m,uI:()=>O,rH:()=>N,C0:()=>h,IS:()=>x,CK:()=>w,mT:()=>l,vg:()=>y,gu:()=>o,uK:()=>a,cA:()=>A});var r=n(1609);const o=e=>(0,r.createElement)("svg",{width:"220",viewBox:"0 0 366 85",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M63.0434 32.6229H44.0487C42.1891 32.6229 40.6796 31.1131 40.6796 29.2531C40.6796 27.3931 42.1891 25.8832 44.0487 25.8832H63.0434C64.903 25.8832 66.4125 27.3931 66.4125 29.2531C66.4125 31.1131 64.903 32.6229 63.0434 32.6229Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M55.3974 45.7358H36.4026C34.5431 45.7358 33.0336 44.226 33.0336 42.366C33.0336 40.506 34.5431 38.9961 36.4026 38.9961H55.3974C57.2569 38.9961 58.7665 40.506 58.7665 42.366C58.7665 44.226 57.2569 45.7358 55.3974 45.7358Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M47.6529 59.1058H28.6472C26.7877 59.1058 25.2781 57.596 25.2781 55.736C25.2781 53.876 26.7877 52.3661 28.6472 52.3661H47.6529C49.5125 52.3661 51.022 53.876 51.022 55.736C51.022 57.596 49.5125 59.1058 47.6529 59.1058Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M46.1598 77H23.2162C17.7141 77 12.7863 74.1498 10.0462 69.3795C7.30613 64.6147 7.31707 58.9308 10.0845 54.1769L32.5085 15.5658C35.2322 10.8994 40.2639 8 45.6402 8H68.5838C74.0859 8 79.0137 10.8502 81.7538 15.6205C84.4939 20.3853 84.4829 26.0692 81.7155 30.8231L59.2915 69.4342C56.6006 74.1006 51.5634 77 46.1598 77ZM45.6402 15.1227C42.7853 15.1227 40.1108 16.6653 38.6669 19.149L16.2429 57.7601C14.7771 60.282 14.7662 63.2963 16.221 65.8291C17.6759 68.362 20.2902 69.8773 23.2162 69.8773H46.1598C49.0312 69.8773 51.7002 68.3401 53.1276 65.8674L75.5571 27.2454C77.0229 24.7235 77.0338 21.7092 75.579 19.1763C74.1241 16.6435 71.5098 15.1281 68.5838 15.1281H45.6402V15.1227Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M62.5512 77H29.0246C27.0557 77 25.4641 75.4026 25.4641 73.4387C25.4641 71.4748 27.0611 69.8774 29.0246 69.8774H62.5512C67.0852 69.8774 71.2364 67.5852 73.6483 63.7449C76.0658 59.8991 76.3337 55.1616 74.3648 51.0587L70.6567 43.3343C69.8034 41.5618 70.5527 39.4338 72.3248 38.5804C74.0968 37.727 76.2244 38.4764 77.0776 40.2489L80.7803 47.9733C83.8157 54.2918 83.4 61.6059 79.67 67.536C75.9454 73.4606 69.5409 77 62.5403 77H62.5512Z",fill:"#00B682"}),(0,r.createElement)("path",{d:"M124.384 42.1533C125.82 41.4325 126.913 40.4279 127.65 39.1338C128.387 37.8397 128.758 36.3819 128.758 34.7657C128.758 33.5044 128.534 32.3359 128.081 31.2603C127.633 30.1791 126.929 29.2455 125.979 28.4537C125.023 27.662 123.822 27.045 122.364 26.5918C120.906 26.1441 119.17 25.9148 117.155 25.9148H104.433C104.127 25.9148 103.882 26.1605 103.882 26.4662V59.4183C103.882 59.6749 104.056 59.8988 104.302 59.9534C105.672 60.2646 107.212 60.5212 108.927 60.7178C110.816 60.9362 112.82 61.0399 114.944 61.0399C117.641 61.0399 119.951 60.7997 121.878 60.3137C123.8 59.8278 125.378 59.1343 126.601 58.2389C127.824 57.3379 128.725 56.235 129.299 54.9191C129.872 53.6087 130.161 52.1399 130.161 50.5237C130.161 48.4707 129.659 46.7398 128.649 45.3147C127.639 43.895 126.219 42.8412 124.384 42.1587V42.1533ZM110.516 31.9209C110.516 31.6152 110.767 31.364 111.073 31.364H116.129C118.214 31.3312 119.732 31.708 120.688 32.4997C121.638 33.2914 122.118 34.3725 122.118 35.7376C122.118 37.1791 121.643 38.2984 120.688 39.112C119.732 39.9201 118.231 40.3241 116.183 40.3241H111.078C110.772 40.3241 110.521 40.0729 110.521 39.7672V31.9264L110.516 31.9209ZM121.605 54.4004C120.328 55.2631 118.269 55.6944 115.43 55.6944C114.387 55.6944 113.486 55.6671 112.732 55.6125C112.126 55.5689 111.531 55.487 110.952 55.3614C110.701 55.3068 110.521 55.0774 110.521 54.8208V46.0464C110.521 45.7406 110.767 45.4949 111.073 45.4949H116.669C119.006 45.4949 120.732 45.9426 121.851 46.8435C122.965 47.7445 123.522 48.9839 123.522 50.5674C123.522 52.26 122.883 53.5322 121.605 54.4004Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M273.916 31.2275C272.278 29.715 270.302 28.5466 267.981 27.7221C265.66 26.8976 263.078 26.4826 260.239 26.4826H250.612C250.312 26.4826 250.066 26.7283 250.066 27.0287V60.5213C250.066 60.8216 250.312 61.0673 250.612 61.0673H260.239C263.078 61.0673 265.66 60.6523 267.981 59.8278C270.302 59.0033 272.278 57.8239 273.916 56.2951C275.554 54.7662 276.821 52.9426 277.722 50.8186C278.623 48.6946 279.071 46.3412 279.071 43.7531C279.071 41.165 278.623 38.8062 277.722 36.6877C276.821 34.5637 275.554 32.7509 273.916 31.2384V31.2275ZM271.541 48.5471C270.984 49.9504 270.176 51.1571 269.111 52.1617C268.052 53.1719 266.747 53.9527 265.202 54.5096C263.657 55.0666 261.877 55.345 259.862 55.345H257.257C256.952 55.345 256.706 55.0993 256.706 54.7935V32.7564C256.706 32.4506 256.952 32.2049 257.257 32.2049H259.862C261.877 32.2049 263.657 32.4833 265.202 33.0403C266.747 33.5972 268.052 34.3889 269.111 35.4155C270.171 36.442 270.979 37.6705 271.541 39.112C272.098 40.5535 272.376 42.1314 272.376 43.8623C272.376 45.5932 272.098 47.1548 271.541 48.558V48.5471Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M305.798 38.7516C304.581 37.5995 303.172 36.7095 301.567 36.0816C299.961 35.4537 298.225 35.137 296.358 35.137C294.49 35.137 292.797 35.4591 291.176 36.1089C289.554 36.7586 288.14 37.665 286.944 38.8335C285.743 40.002 284.793 41.3779 284.089 42.9614C283.384 44.5448 283.029 46.2538 283.029 48.0885C283.029 50.0323 283.373 51.7959 284.061 53.3739C284.749 54.9573 285.699 56.3224 286.917 57.4745C288.135 58.6266 289.554 59.5166 291.176 60.1445C292.797 60.7724 294.528 61.0891 296.358 61.0891C298.187 61.0891 299.912 60.7669 301.517 60.1172C303.123 59.4674 304.531 58.572 305.749 57.4199C306.967 56.2678 307.928 54.8918 308.632 53.292C309.336 51.6922 309.691 49.9558 309.691 48.083C309.691 46.2102 309.347 44.4301 308.659 42.8467C307.971 41.2633 307.021 39.8982 305.804 38.7461L305.798 38.7516ZM302.675 50.8895C302.342 51.7522 301.861 52.5057 301.244 53.1555C300.627 53.8052 299.901 54.3076 299.077 54.6679C298.247 55.0283 297.34 55.2085 296.352 55.2085C295.364 55.2085 294.457 55.0283 293.627 54.6679C292.798 54.3076 292.077 53.8052 291.46 53.1555C290.843 52.5057 290.368 51.7522 290.029 50.8895C289.696 50.0268 289.527 49.0931 289.527 48.083C289.527 47.0729 289.696 46.1392 290.029 45.2765C290.362 44.4138 290.843 43.6603 291.46 43.0105C292.077 42.3608 292.798 41.8584 293.627 41.498C294.457 41.1377 295.364 40.9575 296.352 40.9575C297.34 40.9575 298.247 41.1377 299.077 41.498C299.907 41.8584 300.627 42.3608 301.244 43.0105C301.861 43.6603 302.336 44.4138 302.675 45.2765C303.008 46.1392 303.177 47.0729 303.177 48.083C303.177 49.0931 303.008 50.0268 302.675 50.8895Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M331.603 54.7226C330.576 55.0447 329.31 55.2085 327.797 55.2085C326.683 55.2085 325.657 55.0283 324.723 54.668C323.789 54.3076 322.976 53.8162 322.293 53.1828C321.611 52.5549 321.081 51.7959 320.699 50.9168C320.322 50.0377 320.131 49.0931 320.131 48.083C320.131 47.0729 320.322 46.0791 320.699 45.1946C321.076 44.3155 321.605 43.5565 322.293 42.9286C322.976 42.3007 323.795 41.8038 324.75 41.4434C325.7 41.0831 326.754 40.9029 327.906 40.9029C329.31 40.9029 330.522 41.0722 331.548 41.4161C331.92 41.5417 332.264 41.6728 332.586 41.8147C332.952 41.9731 333.356 41.7165 333.356 41.3179V36.5402C333.356 36.3109 333.214 36.1034 333.001 36.027C332.264 35.7649 331.461 35.5574 330.582 35.4045C329.555 35.2243 328.414 35.137 327.158 35.137C325.253 35.137 323.473 35.47 321.818 36.1362C320.164 36.8023 318.733 37.7196 317.527 38.8881C316.32 40.0566 315.37 41.4216 314.665 42.9887C313.967 44.5557 313.612 46.2539 313.612 48.0885C313.612 49.9231 313.945 51.5775 314.611 53.161C315.277 54.7444 316.205 56.1204 317.39 57.2888C318.575 58.4573 320 59.3855 321.654 60.0681C323.309 60.7506 325.144 61.0946 327.158 61.0946C328.594 61.0946 329.79 60.9799 330.746 60.7451C331.537 60.5486 332.285 60.3356 332.99 60.1063C333.214 60.0353 333.361 59.8224 333.361 59.5876V54.8754C333.361 54.4878 332.968 54.2257 332.608 54.3731C332.296 54.4987 331.963 54.6188 331.608 54.728L331.603 54.7226Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M245.299 35.137H244.382C242.438 35.137 240.8 35.5956 239.473 36.5129C238.141 37.4303 237.207 38.5714 236.667 39.9365L236.334 35.7376C236.312 35.4373 236.044 35.208 235.739 35.2353L230.884 35.6775C230.59 35.7048 230.371 35.9615 230.388 36.2563L230.835 42.9013V60.5049C230.835 60.8106 231.081 61.0564 231.387 61.0564H236.76C237.065 61.0564 237.311 60.8106 237.311 60.5049V48.4052C237.311 46.2812 237.884 44.5558 239.036 43.2235C240.189 41.8912 241.805 41.2251 243.891 41.2251C244.338 41.2251 244.77 41.2469 245.174 41.296C245.501 41.3343 245.78 41.0776 245.78 40.75V35.4919C245.78 35.4919 245.758 35.1261 245.294 35.1261L245.299 35.137Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M223.481 54.0236C222.907 54.3458 222.296 54.6188 221.646 54.8317C220.996 55.0501 220.281 55.2194 219.489 55.345C218.698 55.4706 217.819 55.5361 216.847 55.5361C214.362 55.5361 212.424 54.9682 211.021 53.838C209.617 52.7023 208.809 51.2226 208.591 49.388C209.132 50.0377 209.978 50.5401 211.124 50.9004C212.277 51.2608 213.609 51.441 215.116 51.441C218.496 51.4082 221.111 50.6656 222.968 49.2296C224.819 47.7936 225.747 45.757 225.747 43.1306C225.747 40.8264 224.911 38.9209 223.241 37.4138C221.57 35.9014 219.113 35.1479 215.875 35.1479C213.898 35.1479 212.064 35.4919 210.371 36.1744C208.678 36.8569 207.215 37.8015 205.976 39.0082C204.736 40.2149 203.77 41.6345 203.087 43.2726C202.405 44.9106 202.061 46.6961 202.061 48.6399C202.061 50.5837 202.394 52.2709 203.06 53.8216C203.726 55.3668 204.654 56.6827 205.839 57.7584C207.024 58.8395 208.449 59.664 210.103 60.2427C211.758 60.8161 213.576 61.1054 215.553 61.1054C217.709 61.1054 219.544 60.8816 221.056 60.4284C222.422 60.0243 223.519 59.5657 224.354 59.0579C224.518 58.9596 224.606 58.7849 224.606 58.5938V54.3294C224.606 53.909 224.147 53.6414 223.781 53.8598C223.683 53.9199 223.579 53.9799 223.481 54.0345V54.0236ZM211.07 42.2898C212.435 41.1213 214.035 40.5371 215.869 40.5371C216.95 40.5371 217.813 40.7773 218.457 41.2633C219.107 41.7492 219.429 42.4426 219.429 43.3381C219.429 43.9879 219.238 44.5612 218.862 45.0635C218.485 45.5659 217.873 45.9808 217.027 46.303C216.181 46.6251 215.067 46.8599 213.68 47.0019C212.293 47.1438 210.595 47.1821 208.58 47.1111C208.869 45.0635 209.694 43.4528 211.064 42.2843L211.07 42.2898Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M355.655 48.225C354.393 46.9855 352.253 46.0409 349.234 45.3912C348.049 45.14 347.077 44.9161 346.318 44.7141C345.564 44.5175 344.975 44.3101 344.565 44.0917C344.15 43.8732 343.866 43.6494 343.702 43.4146C343.539 43.1798 343.462 42.9013 343.462 42.5792C343.462 41.105 344.975 40.3678 347.994 40.3678C349.359 40.3678 350.719 40.5316 352.067 40.8538C352.974 41.0722 353.858 41.3834 354.721 41.782C355.081 41.9458 355.491 41.6783 355.491 41.2797V36.846C355.491 36.6222 355.36 36.4201 355.158 36.3328C354.202 35.9396 353.165 35.6448 352.04 35.4537C350.779 35.2353 349.43 35.1315 347.994 35.1315C346.378 35.1315 344.909 35.3117 343.599 35.6721C342.283 36.0325 341.153 36.5457 340.197 37.2119C339.242 37.878 338.515 38.6861 338.013 39.6416C337.511 40.5972 337.26 41.6455 337.26 42.7976C337.26 44.8506 337.909 46.4777 339.203 47.679C340.497 48.8857 342.55 49.7757 345.351 50.349C346.575 50.5674 347.574 50.7803 348.344 50.9987C349.119 51.2171 349.731 51.4465 350.178 51.6976C350.626 51.9488 350.932 52.2218 351.096 52.5057C351.259 52.7951 351.336 53.1337 351.336 53.5323C351.336 55.0775 349.698 55.8528 346.427 55.8528C344.811 55.8528 343.178 55.6017 341.546 55.0993C340.465 54.7662 339.433 54.3076 338.455 53.7343C338.089 53.5213 337.636 53.7834 337.636 54.2093V58.6976C337.636 58.905 337.751 59.1016 337.937 59.1944C339.209 59.8333 340.53 60.3028 341.895 60.6031C343.369 60.9253 345.007 61.0891 346.804 61.0891C350.042 61.0891 352.641 60.3957 354.601 59.0142C356.561 57.6274 357.544 55.7327 357.544 53.3193C357.544 51.1625 356.916 49.459 355.655 48.2195V48.225Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M196.158 54.941C195.405 55.2304 194.433 55.3723 193.242 55.3723C192.052 55.3723 190.987 55.0229 190.141 54.3185C189.295 53.6196 188.874 52.402 188.874 50.6766V41.1814H196.961C197.261 41.1814 197.507 40.9357 197.507 40.6354V36.2236C197.507 35.9232 197.261 35.6775 196.961 35.6775H188.874V28.421C188.874 28.0934 188.585 27.8368 188.257 27.875L182.934 28.5466C182.661 28.5793 182.453 28.8141 182.453 29.0871L182.399 51.7522C182.399 54.8809 183.245 57.2179 184.932 58.7685C186.625 60.3138 188.869 61.0891 191.675 61.0891C193.04 61.0891 194.203 60.9635 195.154 60.7124C196.104 60.4612 196.89 60.1554 197.501 59.7951V59.7732V55.1921C197.501 54.7935 197.092 54.5315 196.732 54.6953C196.551 54.7772 196.36 54.8591 196.153 54.941H196.158Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M176.212 54.941C175.459 55.2304 174.487 55.3723 173.297 55.3723C172.106 55.3723 171.041 55.0229 170.195 54.3185C169.349 53.6196 168.928 52.402 168.928 50.6766V41.1814H176.993C177.293 41.1814 177.539 40.9357 177.539 40.6354V36.229C177.539 35.9287 177.293 35.683 176.993 35.683H168.928V28.4264C168.928 28.0988 168.639 27.8422 168.311 27.8804L162.988 28.552C162.715 28.5848 162.507 28.8196 162.507 29.0926L162.453 51.7577C162.453 54.8864 163.299 57.2233 164.986 58.774C166.679 60.3192 168.923 61.0946 171.729 61.0946C173.094 61.0946 174.257 60.969 175.208 60.7178C176.005 60.5103 176.682 60.2592 177.239 59.9752C177.419 59.8824 177.523 59.6913 177.523 59.4893V55.214C177.523 54.8154 177.113 54.5478 176.747 54.7171C176.578 54.7935 176.392 54.87 176.201 54.9464L176.212 54.941Z",fill:"#16342F"}),(0,r.createElement)("path",{d:"M155.819 54.0236C155.245 54.3458 154.634 54.6188 153.984 54.8317C153.334 55.0501 152.619 55.2194 151.827 55.345C151.035 55.4706 150.156 55.5361 149.184 55.5361C146.7 55.5361 144.762 54.9682 143.358 53.838C141.955 52.7023 141.147 51.2226 140.929 49.388C141.469 50.0377 142.316 50.5401 143.462 50.9004C144.614 51.2608 145.947 51.441 147.454 51.441C150.833 51.4082 153.449 50.6656 155.305 49.2296C157.156 47.7936 158.085 45.757 158.085 43.1306C158.085 40.8264 157.249 38.9209 155.578 37.4138C153.908 35.9014 151.45 35.1479 148.213 35.1479C146.236 35.1479 144.401 35.4919 142.709 36.1744C141.016 36.8569 139.553 37.8015 138.313 39.0082C137.074 40.2149 136.107 41.6345 135.425 43.2726C134.742 44.9106 134.398 46.6961 134.398 48.6399C134.398 50.5837 134.731 52.2709 135.398 53.8216C136.064 55.3668 136.992 56.6827 138.177 57.7584C139.362 58.8395 140.787 59.664 142.441 60.2427C144.096 60.8161 145.914 61.1054 147.89 61.1054C150.047 61.1054 151.882 60.8816 153.394 60.4284C154.765 60.0189 155.868 59.5602 156.703 59.0524C156.861 58.9541 156.954 58.7794 156.954 58.5883V54.3185C156.954 53.898 156.496 53.6305 156.135 53.8489C156.032 53.9144 155.928 53.9745 155.824 54.0345L155.819 54.0236ZM143.408 42.2898C144.773 41.1213 146.372 40.5371 148.207 40.5371C149.288 40.5371 150.151 40.7773 150.795 41.2633C151.445 41.7492 151.767 42.4426 151.767 43.3381C151.767 43.9879 151.576 44.5612 151.199 45.0635C150.823 45.5659 150.211 45.9808 149.365 46.303C148.518 46.6251 147.404 46.8599 146.018 47.0019C144.631 47.1438 142.933 47.1821 140.918 47.1111C141.207 45.0635 142.032 43.4528 143.402 42.2843L143.408 42.2898Z",fill:"#16342F"})),a=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:104,height:119,fill:"none",...e},(0,r.createElement)("path",{fill:"#E8E8E8",d:"M85.814 5.774 31.448.024C27.9-.35 24.72 2.229 24.346 5.783L14.693 97.45c-.375 3.554 2.198 6.74 5.745 7.116l67.8 7.17c3.546.376 6.725-2.203 7.1-5.757l8.237-78.206-17.76-21.998-.001-.001Z"}),(0,r.createElement)("path",{fill:"#051735",d:"M85.383 23.406c.42.585 4.788 6.998 17.769 8.37l.423-4.004-18.192-4.366Z",opacity:.25,style:{mixBlendMode:"multiply"}}),(0,r.createElement)("path",{fill:"#DDD",d:"M84.4 19.235c-.375 3.555 2.197 6.74 5.745 7.116l13.433 1.42-17.76-21.998-1.417 13.462H84.4Z"}),(0,r.createElement)("path",{fill:"#DDD",d:"M89.332 33.209 71.346 13.203H16.678c-3.567 0-6.745 2.898-7.099 6.472L.466 111.852c-.354 3.575 2.252 6.472 5.819 6.472H74.46c3.567 0 6.746-2.897 7.098-6.472l7.378-74.616.398-4.025v-.003h-.003Z",opacity:.5}),(0,r.createElement)("path",{fill:"#F7F7F7",d:"M61.56 13.203H6.892c-3.567 0-6.458 2.898-6.458 6.472v92.177c0 3.575 2.89 6.472 6.458 6.472h68.176c3.568 0 6.459-2.897 6.459-6.472v-78.64L61.56 13.203Z"}),(0,r.createElement)("path",{fill:"#051735",d:"M62.984 30.781c.48.538 5.495 6.455 18.549 6.455V33.21L62.984 30.78Z",opacity:.25,style:{mixBlendMode:"multiply"}}),(0,r.createElement)("path",{fill:"#E8E8E8",d:"M61.555 26.74c0 3.574 2.891 6.472 6.458 6.472h13.508L61.555 13.203V26.74Z"})),i=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M10 3H3v7h7V3zM21 3h-7v7h7V3zM21 14h-7v7h7v-7zM10 14H3v7h7v-7z"})),s=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12h18M3 6h18M3 18h18"})),l=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("g",{clipPath:"url(#clip0_3860_17242)"},(0,r.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 1v2m0 18v2M4.22 4.22l1.42 1.42m12.72 12.72l1.42 1.42M1 12h2m18 0h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42M17 12a5 5 0 11-10 0 5 5 0 0110 0z"})),(0,r.createElement)("defs",null,(0,r.createElement)("clipPath",{id:"clip0_3860_17242"},(0,r.createElement)("path",{fill:"#fff",d:"M0 0H24V24H0z"})))),c=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",...e},(0,r.createElement)("path",{d:"M21.0009 12.79C20.8436 14.4922 20.2047 16.1144 19.1591 17.4668C18.1135 18.8192 16.7044 19.8458 15.0966 20.4265C13.4888 21.0073 11.7489 21.1181 10.0804 20.7461C8.4119 20.3741 6.88387 19.5345 5.6751 18.3258C4.46633 17.117 3.62682 15.589 3.25479 13.9205C2.88275 12.252 2.99359 10.5121 3.57434 8.9043C4.15508 7.29651 5.18171 5.88737 6.53409 4.84175C7.88647 3.79614 9.50867 3.15731 11.2109 3C10.2143 4.34827 9.73473 6.00945 9.85941 7.68141C9.98409 9.35338 10.7047 10.9251 11.8903 12.1106C13.0758 13.2961 14.6475 14.0168 16.3195 14.1415C17.9914 14.2662 19.6526 13.7866 21.0009 12.79Z",stroke:"#FFFFFF",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),u=e=>(0,r.createElement)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M1.5 3.9987H2.83333M2.83333 3.9987H13.5M2.83333 3.9987V13.332C2.83333 13.6857 2.97381 14.0248 3.22386 14.2748C3.47391 14.5249 3.81304 14.6654 4.16667 14.6654H10.8333C11.187 14.6654 11.5261 14.5249 11.7761 14.2748C12.0262 14.0248 12.1667 13.6857 12.1667 13.332V3.9987H2.83333ZM4.83333 3.9987V2.66536C4.83333 2.31174 4.97381 1.9726 5.22386 1.72256C5.47391 1.47251 5.81304 1.33203 6.16667 1.33203H8.83333C9.18696 1.33203 9.52609 1.47251 9.77614 1.72256C10.0262 1.9726 10.1667 2.31174 10.1667 2.66536V3.9987M6.16667 7.33203V11.332M8.83333 7.33203V11.332",stroke:"#475467",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})),d=e=>(0,r.createElement)("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M11.5 7.66667V11.6667C11.5 12.0203 11.3595 12.3594 11.1095 12.6095C10.8594 12.8595 10.5203 13 10.1667 13H2.83333C2.47971 13 2.14057 12.8595 1.89052 12.6095C1.64048 12.3594 1.5 12.0203 1.5 11.6667V4.33333C1.5 3.97971 1.64048 3.64057 1.89052 3.39052C2.14057 3.14048 2.47971 3 2.83333 3H6.83333M9.5 1H13.5M13.5 1V5M13.5 1L6.16667 8.33333",stroke:"#475467",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})),p=e=>(0,r.createElement)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M7.5 12.3322H13.5M10.5 1.33218C10.7652 1.06697 11.1249 0.917969 11.5 0.917969C11.6857 0.917969 11.8696 0.954548 12.0412 1.02562C12.2128 1.09669 12.3687 1.20086 12.5 1.33218C12.6313 1.4635 12.7355 1.61941 12.8066 1.79099C12.8776 1.96257 12.9142 2.14647 12.9142 2.33218C12.9142 2.5179 12.8776 2.7018 12.8066 2.87338C12.7355 3.04496 12.6313 3.20086 12.5 3.33218L4.16667 11.6655L1.5 12.3322L2.16667 9.66552L10.5 1.33218Z",stroke:"#475467",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})),f=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("mask",{id:"mask0_3860_17252",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0 0H24V24H0z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17252)"},(0,r.createElement)("path",{fill:"#475467",d:"M9 20c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 017 18c0-.55.196-1.02.588-1.413A1.926 1.926 0 019 16c.55 0 1.02.196 1.412.587.392.392.588.863.588 1.413s-.196 1.02-.588 1.413A1.926 1.926 0 019 20zm6 0c-.55 0-1.02-.196-1.412-.587A1.926 1.926 0 0113 18c0-.55.196-1.02.588-1.413A1.926 1.926 0 0115 16c.55 0 1.02.196 1.413.587.391.392.587.863.587 1.413s-.196 1.02-.587 1.413A1.926 1.926 0 0115 20zm-6-6c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 017 12c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 10c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412 0 .55-.196 1.02-.588 1.412A1.926 1.926 0 019 14zm6 0c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 0113 12c0-.55.196-1.02.588-1.412A1.926 1.926 0 0115 10c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.926 1.926 0 0115 14zM9 8c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 017 6c0-.55.196-1.02.588-1.412A1.926 1.926 0 019 4c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412 0 .55-.196 1.02-.588 1.412A1.926 1.926 0 019 8zm6 0c-.55 0-1.02-.196-1.412-.588A1.926 1.926 0 0113 6c0-.55.196-1.02.588-1.412A1.926 1.926 0 0115 4c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412 0 .55-.196 1.02-.587 1.412A1.926 1.926 0 0115 8z"}))),h=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{stroke:"#4A5568",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M11 19a8 8 0 100-16 8 8 0 000 16zM20.998 21.002l-4.35-4.35"})),m=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17259",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.031 0.75H24.031V24.75H0.031z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17259)"},(0,r.createElement)("path",{fill:"#475467",d:"M12.023 22.75l-6-6 1.425-1.425 4.575 4.575 4.575-4.575 1.425 1.425-6 6zm-4.55-12.6l-1.45-1.4 6-6 6 6-1.45 1.4-4.55-4.55-4.55 4.55z"}))),g=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17265",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.688 0.945H24.688V24.945H0.688z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17265)"},(0,r.createElement)("path",{fill:"#475467",d:"M5.695 22.945c-.55 0-1.02-.195-1.412-.587a1.926 1.926 0 01-.588-1.413v-14c0-.55.196-1.02.588-1.412a1.926 1.926 0 011.412-.588h1v-2h2v2h8v-2h2v2h1c.55 0 1.021.196 1.413.588.392.391.587.862.587 1.412v14c0 .55-.195 1.021-.587 1.413a1.926 1.926 0 01-1.413.587h-14zm0-2h14v-10h-14v10zm0-12h14v-2h-14v2zm7 6a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.192.191.287.429.287.712 0 .284-.095.521-.287.713a.968.968 0 01-.713.287zm-4 0a.967.967 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.967.967 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.967.967 0 01-.713.287zm8 0a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.968.968 0 01-.713.287zm-4 4a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.192.191.287.429.287.712 0 .284-.095.521-.287.713a.968.968 0 01-.713.287zm-4 0a.967.967 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.967.967 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.967.967 0 01-.713.287zm8 0a.968.968 0 01-.712-.287.968.968 0 01-.288-.713c0-.283.096-.52.288-.712a.968.968 0 01.712-.288c.284 0 .521.096.713.288.191.191.287.429.287.712 0 .284-.096.521-.287.713a.968.968 0 01-.713.287z"}))),y=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17268",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.672 0.766H24.672V24.766H0.672z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17268)"},(0,r.createElement)("path",{fill:"#475467",d:"M6.514 17.866c.85-.65 1.8-1.163 2.85-1.538a9.738 9.738 0 013.3-.562c1.15 0 2.25.187 3.3.562 1.05.375 2 .888 2.85 1.538a7.73 7.73 0 001.363-2.325 7.838 7.838 0 00.487-2.775c0-2.217-.78-4.105-2.337-5.663-1.559-1.558-3.446-2.337-5.663-2.337s-4.104.779-5.662 2.337c-1.559 1.558-2.338 3.446-2.338 5.663 0 .983.163 1.908.488 2.775.325.866.779 1.641 1.362 2.325zm6.15-4.1c-.983 0-1.812-.338-2.487-1.013-.675-.675-1.013-1.504-1.013-2.487 0-.984.338-1.813 1.013-2.488.675-.675 1.504-1.012 2.487-1.012.983 0 1.813.337 2.488 1.012s1.012 1.504 1.012 2.488c0 .983-.337 1.812-1.012 2.487s-1.505 1.013-2.488 1.013zm0 9a9.738 9.738 0 01-3.9-.788 10.099 10.099 0 01-3.175-2.137c-.9-.9-1.612-1.959-2.137-3.175a9.737 9.737 0 01-.788-3.9c0-1.384.263-2.684.788-3.9A10.099 10.099 0 015.589 5.69c.9-.9 1.958-1.613 3.175-2.138a9.738 9.738 0 013.9-.787c1.383 0 2.683.262 3.9.787a10.1 10.1 0 013.175 2.138c.9.9 1.613 1.958 2.138 3.175a9.738 9.738 0 01.787 3.9 9.737 9.737 0 01-.787 3.9 10.098 10.098 0 01-2.138 3.175 10.1 10.1 0 01-3.175 2.137 9.738 9.738 0 01-3.9.788zm0-2a7.93 7.93 0 002.5-.388c.783-.258 1.5-.629 2.15-1.112a7.533 7.533 0 00-2.15-1.113 7.934 7.934 0 00-2.5-.387c-.883 0-1.717.129-2.5.387-.783.259-1.5.63-2.15 1.113.65.483 1.367.854 2.15 1.112a7.93 7.93 0 002.5.388zm0-9c.433 0 .792-.142 1.075-.425.283-.284.425-.642.425-1.075 0-.434-.142-.792-.425-1.075-.283-.284-.642-.425-1.075-.425-.433 0-.792.141-1.075.425-.283.283-.425.641-.425 1.075 0 .433.142.791.425 1.075.283.283.642.425 1.075.425z"}))),v=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17271",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.305 0.766H24.305V24.766H0.305z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17271)"},(0,r.createElement)("path",{fill:"#475467",d:"M6.813 11.766l5.5-9 5.5 9h-11zm11 11c-1.25 0-2.313-.438-3.188-1.313s-1.313-1.937-1.313-3.187c0-1.25.438-2.313 1.313-3.188s1.938-1.312 3.188-1.312c1.25 0 2.312.437 3.187 1.312s1.313 1.938 1.313 3.188c0 1.25-.438 2.312-1.313 3.187s-1.938 1.313-3.188 1.313zm-14.5-.5v-8h8v8h-8zm14.5-1.5c.7 0 1.291-.242 1.774-.725.484-.484.726-1.075.726-1.775s-.242-1.292-.726-1.775c-.483-.484-1.075-.725-1.774-.725-.7 0-1.292.241-1.775.725-.484.483-.726 1.075-.726 1.775s.242 1.291.726 1.775c.483.483 1.075.725 1.774.725zm-12.5-.5h4v-4h-4v4zm5.05-10.5h3.9l-1.95-3.15-1.95 3.15z"}))),b=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"none",viewBox:"0 0 25 25"},(0,r.createElement)("mask",{id:"mask0_3860_17274",style:{maskType:"alpha"},width:"25",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0.875 0.789H24.875V24.789H0.875z"})),(0,r.createElement)("g",{mask:"url(#mask0_3860_17274)"},(0,r.createElement)("path",{fill:"#475467",d:"M7.883 17.785h7v-2h-7v2zm0-4h10v-2h-10v2zm0-4h10v-2h-10v2zm-2 12c-.55 0-1.021-.196-1.413-.587a1.926 1.926 0 01-.587-1.413v-14c0-.55.196-1.02.587-1.412a1.926 1.926 0 011.413-.588h14c.55 0 1.02.196 1.412.588.392.391.588.862.588 1.412v14c0 .55-.196 1.021-.588 1.413a1.926 1.926 0 01-1.412.587h-14zm0-2h14v-14h-14v14z"}))),w=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("mask",{id:"mask0_3920_17295",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#000",fillRule:"evenodd",d:"M5.47 15.22a.75.75 0 011.06 0L12 20.69l5.47-5.47a.75.75 0 111.06 1.06l-6 6a.75.75 0 01-1.06 0l-6-6a.75.75 0 010-1.06zM5.47 8.78a.75.75 0 001.06 0L12 3.31l5.47 5.47a.75.75 0 101.06-1.06l-6-6a.75.75 0 00-1.06 0l-6 6a.75.75 0 000 1.06zM1.5 12a.75.75 0 01.75-.75h19.5a.75.75 0 010 1.5H2.25A.75.75 0 011.5 12z",clipRule:"evenodd"})),(0,r.createElement)("g",{mask:"url(#mask0_3920_17295)"},(0,r.createElement)("path",{fill:"#475467",d:"M0 0H24V24H0z"}))),E=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"#475467",fillRule:"evenodd",d:"M7 12a2 2 0 10-4 0 2 2 0 004 0zM14 12a2 2 0 10-4 0 2 2 0 004 0zM21 12a2 2 0 10-4 0 2 2 0 004 0z",clipRule:"evenodd"}))},x=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},(0,r.createElement)("path",{fill:"url(#paint0_radial_4425_15936)",d:"M7.999 15.998C4.151 15.998 0 13.494 0 7.999 0 2.504 4.151 0 7.999 0c2.138 0 4.11.73 5.572 2.06C15.157 3.52 15.998 5.58 15.998 8c0 2.418-.841 4.465-2.427 5.924-1.462 1.33-3.448 2.075-5.572 2.075z"}),(0,r.createElement)("path",{fill:"#EB8F00",d:"M14.607 3.246c.735 1.23 1.119 2.696 1.119 4.326 0 2.418-.842 4.464-2.428 5.924-1.461 1.33-3.447 2.075-5.571 2.075-2.491 0-5.109-1.052-6.645-3.283C2.566 14.815 5.356 16 8.002 16c2.124 0 4.11-.744 5.572-2.075 1.586-1.46 2.428-3.506 2.428-5.924 0-1.823-.479-3.443-1.395-4.755z"}),(0,r.createElement)("path",{fill:"url(#paint1_radial_4425_15936)",d:"M2.984 11.782c1.333 0 2.413-1.121 2.413-2.504s-1.08-2.505-2.413-2.505C1.65 6.773.57 7.895.57 9.278c0 1.383 1.08 2.504 2.414 2.504z",opacity:"0.8"}),(0,r.createElement)("path",{fill:"url(#paint2_radial_4425_15936)",d:"M13.12 11.782c1.334 0 2.414-1.121 2.414-2.504s-1.08-2.505-2.414-2.505c-1.332 0-2.413 1.122-2.413 2.505 0 1.383 1.08 2.504 2.413 2.504z",opacity:"0.8"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M5.978 7.139l-.022-.029a12.547 12.547 0 00-.058-.077l-.074-.082c-.03-.034-.065-.07-.1-.107-.038-.036-.077-.073-.117-.103-.038-.033-.081-.057-.116-.077-.035-.023-.069-.029-.09-.036-.01-.004-.02-.004-.028-.006-.004.002-.008-.001-.013 0l-.005.002H5.35c.016 0-.038.001.037-.002l-.076.003c-.02 0-.007.002-.005.002.004 0 .006 0 .01-.002.01-.004 0 0-.004 0a.035.035 0 00-.015.004c-.022.008-.055.013-.09.036-.034.02-.077.045-.115.078a1.94 1.94 0 00-.295.301l-.07.086-.032.039a.57.57 0 01-.775.087.516.516 0 01-.203-.498s.01-.058.037-.16a1.905 1.905 0 01.639-.966 1.552 1.552 0 01.546-.279c.045-.011.081-.024.143-.033l.086-.013.07-.007.076-.006.043-.001h.012l.018.001h.033l.07.005c.047.004.093.013.138.02a1.528 1.528 0 01.68.31c.233.182.371.38.466.55.049.084.085.164.11.234.03.068.05.14.067.192.015.052.015.079.022.103l.005.036a.532.532 0 01-.456.61.565.565 0 01-.545-.215zM11.429 7.139l-.022-.029a10.632 10.632 0 00-.058-.077 11.77 11.77 0 00-.075-.082c-.029-.034-.064-.07-.1-.107a1.306 1.306 0 00-.116-.103c-.039-.033-.082-.057-.116-.077-.036-.023-.069-.029-.09-.036-.01-.004-.02-.004-.029-.006-.004.002-.008-.001-.012 0l-.005.002H10.8l.037-.002-.076.003c-.019 0-.007.002-.005.002.004 0 .007 0 .01-.002.01-.004 0 0-.003 0a.036.036 0 00-.015.004c-.022.008-.056.013-.09.036-.035.02-.077.045-.116.078a1.934 1.934 0 00-.295.301l-.07.086-.032.039a.57.57 0 01-.775.087.516.516 0 01-.203-.498s.01-.058.037-.16a1.905 1.905 0 01.639-.966 1.552 1.552 0 01.546-.279c.046-.011.081-.024.143-.033l.086-.013.07-.007.076-.006.043-.001h.012l.018.001h.033l.07.005c.048.004.093.013.139.02a1.528 1.528 0 01.68.31c.232.182.37.38.466.55.048.084.084.164.11.234.029.068.05.14.066.192.015.052.015.079.022.103a.532.532 0 01-.451.645.562.562 0 01-.543-.214zM8.058 12.446c-1.734 0-3.105-.851-3.86-1.762a.305.305 0 01-.046-.322.295.295 0 01.266-.182c.051 0 .103.014.149.041.78.467 2.088 1.043 3.486 1.043h.022c1.4 0 2.708-.578 3.487-1.043a.283.283 0 01.149-.041c.113 0 .218.071.266.181a.308.308 0 01-.046.322c-.755.91-2.127 1.763-3.86 1.763"}),(0,r.createElement)("defs",null,(0,r.createElement)("radialGradient",{id:"paint0_radial_4425_15936",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(7.85555 0 0 8.15064 7.999 7.999)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{offset:"0.5",stopColor:"#FDE030"}),(0,r.createElement)("stop",{offset:"0.919",stopColor:"#F7C02B"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F4A223"})),(0,r.createElement)("radialGradient",{id:"paint1_radial_4425_15936",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(2.62561 0 0 2.5879 2.984 9.277)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"#ED7770"}),(0,r.createElement)("stop",{offset:"0.9",stopColor:"#ED7770",stopOpacity:"0"})),(0,r.createElement)("radialGradient",{id:"paint2_radial_4425_15936",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(2.62561 0 0 2.5879 13.12 9.277)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"#ED7770"}),(0,r.createElement)("stop",{offset:"0.9",stopColor:"#ED7770",stopOpacity:"0"}))))},C=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},(0,r.createElement)("path",{fill:"url(#paint0_radial_4420_18224)",d:"M8 16c-3.848 0-8-2.505-8-8 0-5.496 4.152-8 8-8 2.137 0 4.11.73 5.572 2.06 1.586 1.46 2.427 3.521 2.427 5.94 0 2.419-.841 4.465-2.427 5.925C12.11 15.255 10.124 16 8 16z"}),(0,r.createElement)("path",{fill:"#EB8F00",d:"M14.608 3.246c.736 1.23 1.119 2.696 1.119 4.326 0 2.419-.841 4.465-2.428 5.925-1.461 1.331-3.448 2.075-5.572 2.075-2.49 0-5.103-1.051-6.645-3.283 1.484 2.528 4.276 3.713 6.921 3.713 2.124 0 4.11-.744 5.572-2.075 1.587-1.46 2.428-3.507 2.428-5.925 0-1.824-.479-3.444-1.395-4.756z"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M11.503 11.594H4.606a.562.562 0 01-.551-.572c0-.317.247-.573.551-.573h6.897c.304 0 .551.256.551.573a.562.562 0 01-.551.572zM5.389 5.574c-.578 0-1.104.507-1.104 1.348 0 .842.526 1.347 1.104 1.347.577 0 1.103-.507 1.103-1.347s-.526-1.348-1.103-1.348z"}),(0,r.createElement)("path",{fill:"#896024",d:"M5.335 6.138a.39.39 0 00-.527.192.422.422 0 00.083.472.39.39 0 00.527-.192.422.422 0 00-.083-.472z"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M10.678 5.574c-.578 0-1.104.507-1.104 1.348 0 .842.526 1.347 1.104 1.347.577 0 1.103-.507 1.103-1.347s-.523-1.348-1.103-1.348z"}),(0,r.createElement)("path",{fill:"#896024",d:"M10.624 6.138a.39.39 0 00-.527.192.422.422 0 00.083.472.39.39 0 00.527-.192.422.422 0 00-.083-.472z"}),(0,r.createElement)("defs",null,(0,r.createElement)("radialGradient",{id:"paint0_radial_4420_18224",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(7.8562 0 0 8.15162 8 8)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{offset:"0.5",stopColor:"#FDE030"}),(0,r.createElement)("stop",{offset:"0.92",stopColor:"#F7C02B"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F4A223"}))))},_=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},(0,r.createElement)("path",{fill:"url(#paint0_radial_4420_18232)",d:"M8 16c-3.848 0-8-2.505-8-8 0-5.496 4.152-8 8-8 2.137 0 4.11.73 5.572 2.06 1.586 1.46 2.427 3.521 2.427 5.94 0 2.419-.841 4.465-2.427 5.925C12.11 15.255 10.124 16 8 16z"}),(0,r.createElement)("path",{fill:"#EB8F00",d:"M14.604 3.246c.736 1.23 1.12 2.696 1.12 4.326 0 2.419-.842 4.465-2.428 5.925-1.462 1.331-3.449 2.075-5.573 2.075-2.49 0-5.103-1.051-6.645-3.283C2.562 14.817 5.354 16.002 8 16.002c2.124 0 4.11-.744 5.572-2.075C15.158 12.467 16 10.42 16 8.002c0-1.824-.479-3.444-1.395-4.756z"}),(0,r.createElement)("path",{fill:"#422B0D",d:"M8.057 11.477c1.49 0 2.455 1.13 2.717 1.66.097.2.097.372.014.443a.265.265 0 01-.29 0 .602.602 0 01-.124-.071 3.943 3.943 0 00-2.317-.787 4.046 4.046 0 00-2.317.772.597.597 0 01-.124.072.266.266 0 01-.29 0c-.083-.086-.083-.243.014-.444.262-.515 1.227-1.645 2.717-1.645zM9.492 8.685a.49.49 0 00.069.759c.403.31.855.543 1.338.686.487.126.99.165 1.49.115a.481.481 0 00.44-.615.553.553 0 00-.565-.387c-.37.037-.742.015-1.103-.071a3.31 3.31 0 01-.993-.516.525.525 0 00-.676.03zM6.622 8.685a.49.49 0 01-.069.759c-.403.31-.855.543-1.338.686a4.25 4.25 0 01-1.49.115.466.466 0 01-.448-.482.535.535 0 01.021-.133.553.553 0 01.566-.387c.37.037.742.015 1.103-.071.356-.113.692-.288.993-.516a.506.506 0 01.662.03z"}),(0,r.createElement)("defs",null,(0,r.createElement)("radialGradient",{id:"paint0_radial_4420_18232",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(7.85619 0 0 8.15162 8 8)",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{offset:"0.5",stopColor:"#FDE030"}),(0,r.createElement)("stop",{offset:"0.92",stopColor:"#F7C02B"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F4A223"}))))},S=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...e},(0,r.createElement)("mask",{id:"a",width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0 0h16v16H0z"})),(0,r.createElement)("g",{mask:"url(#a)"},(0,r.createElement)("path",{fill:"#475467",d:"M3.401 10.701a5.5 5.5 0 0 1-.55-1.3 5.13 5.13 0 0 1-.183-1.366c0-1.49.517-2.756 1.55-3.8C5.251 3.19 6.512 2.668 8.001 2.668h.117L7.051 1.601l.934-.933 2.666 2.667L7.985 6l-.934-.933 1.067-1.067h-.117c-1.11 0-2.055.392-2.833 1.175-.778.784-1.167 1.736-1.167 2.859 0 .289.034.572.1.85.067.277.167.55.3.816l-1 1Zm4.617 4.634-2.667-2.667 2.667-2.667.933.934L7.885 12H8c1.111 0 2.056-.391 2.834-1.175C11.612 10.043 12 9.09 12 7.968c0-.289-.033-.572-.1-.85a3.815 3.815 0 0 0-.3-.817l1-1c.245.423.428.856.55 1.3.123.445.184.9.184 1.367 0 1.489-.517 2.755-1.55 3.8C10.75 12.812 9.49 13.335 8 13.335h-.116L8.95 14.4l-.933.934Z"}))),O=e=>(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",...e},(0,r.createElement)("path",{fill:"#fff",d:"M9.168 9.168v-5h1.667v5h5v1.667h-5v5H9.168v-5h-5V9.168h5Z"})),k=function(){return(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},(0,r.createElement)("mask",{id:"mask0_4912_21972",style:{maskType:"alpha"},width:"24",height:"24",x:"0",y:"0",maskUnits:"userSpaceOnUse"},(0,r.createElement)("path",{fill:"#D9D9D9",d:"M0 0H24V24H0z"})),(0,r.createElement)("g",{mask:"url(#mask0_4912_21972)"},(0,r.createElement)("path",{fill:"#475467",d:"M6.4 19L5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19z"})))},N=()=>(0,r.createElement)("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M7.5013 12.9128L1.66797 7.07943L7.5013 1.24609",stroke:"#00B884",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),M=()=>(0,r.createElement)("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("path",{d:"M1.4987 12.9128L7.33203 7.07943L1.4987 1.24609",stroke:"#00B884",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),A=()=>(0,r.createElement)("svg",{width:"300",height:"300",viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("mask",{id:"mask0_6843_25662",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"300",height:"300"},(0,r.createElement)("path",{d:"M300 0H0V300H300V0Z",fill:"white"})),(0,r.createElement)("g",{mask:"url(#mask0_6843_25662)"},(0,r.createElement)("path",{d:"M150 269C216.274 269 270 215.274 270 149C270 82.726 216.274 29 150 29C83.726 29 30 82.726 30 149C30 215.274 83.726 269 150 269Z",fill:"#F2F4F7"}),(0,r.createElement)("path",{d:"M105 63.5547H197.537C206.374 63.5547 213.537 70.7177 213.537 79.5547V202.584C213.537 211.421 206.374 218.584 197.537 218.584H105C96.163 218.584 89 211.421 89 202.584V79.5547C89 70.7177 96.163 63.5547 105 63.5547Z",fill:"url(#paint0_linear_6843_25662)"}),(0,r.createElement)("path",{d:"M104.9 83.5547H145.1C147.806 83.5547 150 85.7487 150 88.4547C150 91.1607 147.806 93.3547 145.1 93.3547H104.9C102.194 93.3547 100 91.1607 100 88.4547C100 85.7487 102.194 83.5547 104.9 83.5547Z",fill:"#344054"}),(0,r.createElement)("path",{d:"M104.9 111.355H195.1C197.806 111.355 200 113.549 200 116.255C200 118.961 197.806 121.155 195.1 121.155H104.9C102.194 121.155 100 118.961 100 116.255C100 113.549 102.194 111.355 104.9 111.355Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M104.9 139.156H195.1C197.806 139.156 200 141.35 200 144.056C200 146.762 197.806 148.956 195.1 148.956H104.9C102.194 148.956 100 146.762 100 144.056C100 141.35 102.194 139.156 104.9 139.156Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M104.9 166.957H195.1C197.806 166.957 200 169.151 200 171.857C200 174.563 197.806 176.757 195.1 176.757H104.9C102.194 176.757 100 174.563 100 171.857C100 169.151 102.194 166.957 104.9 166.957Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M104.9 194.758H195.1C197.806 194.758 200 196.952 200 199.658C200 202.364 197.806 204.558 195.1 204.558H104.9C102.194 204.558 100 202.364 100 199.658C100 196.952 102.194 194.758 104.9 194.758Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{d:"M288.15 46.4258H228.069C225.27 46.4258 223 48.8138 223 51.7608V81.4798C223 84.4258 225.27 86.8148 228.069 86.8148H288.15C290.95 86.8148 293.219 84.4258 293.219 81.4798V51.7608C293.219 48.8138 290.95 46.4258 288.15 46.4258Z",fill:"white"}),(0,r.createElement)("path",{d:"M238 73C241.314 73 244 70.314 244 67C244 63.686 241.314 61 238 61C234.686 61 232 63.686 232 67C232 70.314 234.686 73 238 73Z",fill:"#C5D8D3"}),(0,r.createElement)("path",{d:"M258 61H278C281.314 61 284 63.686 284 67C284 70.314 281.314 73 278 73H258C254.686 73 252 70.314 252 67C252 63.686 254.686 61 258 61Z",fill:"#DCEAE9"}),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M185.109 225.562C197.988 225.562 209.958 221.667 219.904 214.989L260.603 253.84L275.364 236.715L236.091 199.226C243.344 189.018 247.609 176.538 247.609 163.062C247.609 128.546 219.626 100.562 185.109 100.562C150.591 100.562 122.609 128.546 122.609 163.062C122.609 197.581 150.591 225.562 185.109 225.562ZM238.418 163.062C238.418 192.286 214.727 215.976 185.504 215.976C156.281 215.976 132.591 192.286 132.591 163.062C132.591 133.84 156.281 110.149 185.504 110.149C214.727 110.149 238.418 133.84 238.418 163.062Z",fill:"#90B8B1"}),(0,r.createElement)("path",{d:"M185.5 217C215.6 217 240 192.823 240 163C240 133.177 215.6 109 185.5 109C155.4 109 131 133.177 131 163C131 192.823 155.4 217 185.5 217Z",fill:"white",fillOpacity:"0.3"}),(0,r.createElement)("path",{d:"M194.923 163L208.112 149.862C209.348 148.562 210.025 146.835 209.999 145.047C209.974 143.259 209.248 141.552 207.976 140.287C206.704 139.023 204.986 138.301 203.187 138.276C201.388 138.251 199.65 138.923 198.342 140.151L185.124 153.289L171.935 140.151C171.3 139.484 170.537 138.95 169.691 138.58C168.845 138.211 167.933 138.014 167.009 138.001C166.085 137.988 165.168 138.159 164.312 138.504C163.456 138.85 162.678 139.362 162.024 140.012C161.371 140.661 160.855 141.434 160.508 142.285C160.16 143.136 159.988 144.048 160.001 144.967C160.014 145.885 160.212 146.791 160.584 147.632C160.955 148.473 161.493 149.231 162.165 149.862L175.376 163L162.165 176.138C161.493 176.769 160.955 177.527 160.584 178.368C160.212 179.209 160.014 180.115 160.001 181.033C159.988 181.952 160.16 182.864 160.508 183.715C160.855 184.566 161.371 185.339 162.024 185.988C162.678 186.638 163.456 187.15 164.312 187.496C165.168 187.841 166.085 188.012 167.009 187.999C167.933 187.986 168.845 187.789 169.691 187.42C170.537 187.05 171.3 186.516 171.935 185.849L185.124 172.711L198.342 185.849C199.65 187.077 201.388 187.749 203.187 187.724C204.986 187.699 206.704 186.977 207.976 185.713C209.248 184.448 209.974 182.741 209.999 180.953C210.025 179.165 209.348 177.438 208.112 176.138L194.923 163Z",fill:"#90B8B1"})),(0,r.createElement)("defs",null,(0,r.createElement)("linearGradient",{id:"paint0_linear_6843_25662",x1:"89",y1:"63.5547",x2:"214.988",y2:"218.584",gradientUnits:"userSpaceOnUse"},(0,r.createElement)("stop",{stopColor:"white"}),(0,r.createElement)("stop",{offset:"1",stopColor:"#F2F4F7"}))))},337:(e,t,n)=>{"use strict";var r=n(3583),o=n(7987),a=n(4151),i=n(8960);e.exports=i||r.call(a,o)},7987:e=>{"use strict";e.exports=Function.prototype.apply},4151:e=>{"use strict";e.exports=Function.prototype.call},8467:(e,t,n)=>{"use strict";var r=n(3583),o=n(7379),a=n(4151),i=n(337);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return i(r,a,e)}},8960:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},9459:(e,t,n)=>{"use strict";var r=n(211),o=n(8467),a=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?o([n]):n}},6265:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to});const o=function(){for(var e,t,n=0,o="";n{"use strict";var r=n(5664),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),i()}return u}},8994:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},2095:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(8994),i=n(2399);o(n(2399),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new i.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},2399:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=f;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=i.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?i.ElementType.Script:"style"===t?i.ElementType.Style:i.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=o,a}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,i.isTag)(e)}function y(e){return e.type===i.ElementType.CDATA}function v(e){return e.type===i.ElementType.Text}function b(e){return e.type===i.ElementType.Comment}function w(e){return e.type===i.ElementType.Directive}function E(e){return e.type===i.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?C(e.children):[],o=new m(e.name,a({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?C(e.children):[];var i=new f(r);r.forEach((function(e){return e.parent=i})),n=i}else if(E(e)){r=t?C(e.children):[];var s=new h(r);r.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n{"use strict";function r(e){for(var t=1;t{"use strict";var r=n(3112).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},4920:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(4814),a=n(6784),i=n(3112),s=i.List,l=i.Repeat,c=i.Record,u=function(){return!0},d=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),f={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new p({start:0,end:0,decoratorKey:null,leaves:s.of(new d({start:0,end:0}))}));var a=[],i=n?n.getDecorations(t,e):s(l(null,r)),c=t.getCharacterList();return o(i,h,u,(function(e,t){var n,r,l,f;a.push(new p({start:e,end:t,decoratorKey:i.get(e),leaves:(n=c.slice(e,t).toList(),r=e,l=[],f=n.map((function(e){return e.getStyle()})).toList(),o(f,h,u,(function(e,t){l.push(new d({start:e+r,end:t+r}))})),s(l))}))})),s(a)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["leaves"]);return new p(function(e){for(var t=1;t{"use strict";var r=n(3112),o=r.Map,a=r.OrderedSet,i=r.Record,s=a(),l={style:s,entity:null},c=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return u;var t=o({style:s,entity:null}).merge(e),n=d.get(t);if(n)return n;var a=new r(t);return d=d.set(t,a),a},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?a(t):t,entity:Array.isArray(n)?a(n):n})},r}(i(l)),u=new c,d=o([[o(l),u]]);c.EMPTY=u,e.exports=c},2014:(e,t,n)=>{"use strict";var r=n(3112).List,o=function(){function e(e){var t,n;n=void 0,(t="_decorators")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var a=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r{"use strict";var r=n(1559),o=n(4814),a=n(3112),i=a.List,s=a.Map,l=a.OrderedSet,c=a.Record,u=a.Repeat,d=l(),p=function(e){var t,n;function a(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},a}(c({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:s()}));function f(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=p},7479:(e,t,n)=>{"use strict";var r=n(1559),o=n(4814),a=n(3112),i=a.List,s=a.Map,l=a.OrderedSet,c=a.Record,u=a.Repeat,d=l(),p={parent:null,characterList:i(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},f=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){var t,n;function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.getKey=function(){return this.get("key")},s.getType=function(){return this.get("type")},s.getText=function(){return this.get("text")},s.getCharacterList=function(){return this.get("characterList")},s.getLength=function(){return this.getText().length},s.getDepth=function(){return this.get("depth")},s.getData=function(){return this.get("data")},s.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.getChildKeys=function(){return this.get("children")},s.getParentKey=function(){return this.get("parent")},s.getPrevSiblingKey=function(){return this.get("prevSibling")},s.getNextSiblingKey=function(){return this.get("nextSibling")},s.findStyleRanges=function(e,t){o(this.getCharacterList(),f,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},a}(c(p));e.exports=m},6515:(e,t,n)=>{"use strict";function r(e){for(var t=1;t1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},s.createEntity=function(e,t,n){return c.__create(e,t,n),this},s.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},s.addEntity=function(e){return c.__add(e),this},s.getEntity=function(e){return c.__get(e)},s.getAllEntities=function(){return c.__getAll()},s.loadWithEntities=function(e){return c.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=a.createFromArray(n),i=r.isEmpty()?new u:u.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||c,selectionBefore:i,selectionAfter:i})},o.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=m(e),new x({key:d(),text:e,type:"unstyled",characterList:g(v(i.EMPTY,e.length))})}));return o.createFromBlockArray(n)},o.fromJS=function(e){return new o(r({},e,{blockMap:w(e.blockMap).map(o.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},o.createContentBlockFromJS=function(e){var t=e.characterList;return new x(r({},e,{data:b(e.data),characterList:null!=t?g((Array.isArray(t)?t:p(t)).map((function(e){return i.fromJS(e)}))):void 0}))},o}(E);e.exports=C},7389:(e,t,n)=>{"use strict";var r=n(1559),o=n(3112).Map,a={add:function(e,t,n){return i(e,t,n,!0)},remove:function(e,t,n){return i(e,t,n,!1)}};function i(e,t,n,a){var i=e.getBlockMap(),s=t.getStartKey(),l=t.getStartOffset(),c=t.getEndKey(),u=t.getEndOffset(),d=i.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===c})).concat(o([[c,i.get(c)]])).map((function(e,t){var o,i;s===c?(o=l,i=u):(o=t===s?l:0,i=t===c?u:e.getLength());for(var d,p=e.getCharacterList();o{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(2211),a=n(8101),i=n(5162),s=n(3112),l=n(6835),c=n(1799),u=s.Map,d={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),f=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=u();var n=i(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||l(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,d):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=u(),t},t.registerMutations=function(e){for(var t=0;t{"use strict";var r=n(1609),o=n(2668),a=(0,n(3112).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:r.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:r.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:r.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},9095:e=>{"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},1330:(e,t,n)=>{"use strict";var r=n(154),o=n(9185),a=n(1559),i=n(2014),s=n(3219),l=n(6515),c=n(1472),u=n(9095),d=n(9642),p=n(511),f=n(7785),h=n(6651),m=n(1010),g=n(2643),y=n(9861),v=n(6670),b=n(353),w=n(7746),E=n(9101),x=n(2999),C=n(298),_=n(5532),S=n(1539),O={Editor:d,EditorBlock:p,EditorState:g,CompositeDecorator:i,Entity:f,EntityInstance:m,BlockMapBuilder:o,CharacterMetadata:a,ContentBlock:s,ContentState:l,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:u,convertFromHTML:n(835),convertFromRaw:x,convertToRaw:E,genKey:C,getDefaultKeyBinding:_,getVisibleSelectionRect:S};e.exports=O},9642:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t0&&window.scrollTo(a.x,a.y+r+10)}else y(n)||g(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+a.y))>0&&l.setTop(o,l.getTop(o)+r+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),l=this.props.tree.size-1,c=b(this.props.selection,n);return this.props.tree.map((function(p,f){var h=p.get("leaves");if(0===h.size)return null;var m=h.size-1,g=h.map((function(o,u){var d=i.encode(n,f,u),p=o.get("start"),h=o.get("end");return s.createElement(a,{key:d,offsetKey:d,block:t,start:p,selection:c?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===l&&u===m})})).toArray(),y=p.get("decoratorKey");if(null==y)return g;if(!e.props.decorator)return g;var b=v(e.props.decorator),w=b.getComponentForKey(y);if(!w)return g;var E=b.getPropsForKey(y),x=i.encode(n,f,0),C=h.first().get("start"),_=h.last().get("end"),S=r.slice(C,_),O=t.getEntityAt(p.get("start")),k=d.getHTMLDirIfDifferent(u.getDirection(S),e.props.direction),N={contentState:e.props.contentState,decoratedText:S,dir:k,start:C,end:_,blockKey:n,entityKey:O,offsetKey:x};return s.createElement(w,o({},E,N,{key:x}),g)})).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return s.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(s.Component);e.exports=w},7815:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t0&&window.scrollTo(a.x,a.y+r+10)}else{y(n)||g(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+a.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}},m.render=function(){var e=this,t=this.props,n=t.block,i=t.blockRenderMap,u=t.blockRendererFn,d=t.blockStyleFn,p=t.contentState,f=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,x=t.direction,C=t.forceSelection,_=t.selection,S=t.tree,O=null;n.children.size&&(O=n.children.reduce((function(t,n){var o=l.encode(n,0,0),s=p.getBlockForKey(n),f=w(s,u),g=f.CustomComponent||r,y=b(s,i),v=y.Element,x=y.wrapperTemplate,C=E(s,h,o,d,f,null),_=a({},e.props,{tree:m.getBlockTree(n),blockProps:f.customProps,offsetKey:o,block:s});return t.push(c.createElement(v,C,c.createElement(g,_))),!x||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,p)||function(e,t,n){var r=[],o=!0,a=!1,i=void 0;try{for(var s,u=n.reverse()[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var d=s.value;if(d.type!==t)break;r.push(d)}}catch(e){a=!0,i=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),f=p[0].key;n.push(c.cloneElement(e,{key:"".concat(f,"-wrap"),"data-offset-key":l.encode(f,0,0)},p))}(x,v,t),t}),[]));var k=n.getKey(),N=l.encode(k,0,0),M=w(n,u),A=M.CustomComponent,D=null!=A?c.createElement(A,o({},this.props,{tree:m.getBlockTree(k),blockProps:M.customProps,offsetKey:N,block:n})):c.createElement(s,{block:n,children:O,contentState:p,customStyleFn:g,customStyleMap:y,decorator:f,direction:x,forceSelection:C,hasSelection:v(_,k),selection:_,tree:S});if(n.getParentKey())return D;var I=b(n,i).Element,j=E(n,h,N,d,M,this.wrapperRef);return c.createElement(I,j,D)},r}(c.Component);e.exports=x},1649:(e,t,n)=>{"use strict";var r=n(5879),o=n(6651),a=n(1446),i=n(2643),s=n(559),l=n(2211),c=n(7684),u=n(6389),d=n(8265),p=n(5396),f=n(1799),h=l.isBrowser("IE"),m=!1,g=!1,y=null,v={onCompositionStart:function(e){g=!0,function(e){y||(y=new r(u(e))).start()}(e)},onCompositionEnd:function(e){m=!1,g=!1,setTimeout((function(){m||v.resolveComposition(e)}),20)},onSelect:c,onKeyDown:function(e,t){if(!g)return v.resolveComposition(e),void e._onKeyDown(t);t.which!==s.RIGHT&&t.which!==s.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===s.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=f(y).stopAndFlushMutations();y=null,m=!0;var n=i.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=a.decode(t),l=s.blockKey,c=s.decoratorKey,u=s.leafKey,d=n.getBlockTree(l).getIn([c,"leaves",u]),f=d.start,h=d.end,m=n.getSelection().merge({anchorKey:l,focusKey:l,anchorOffset:f,focusOffset:h,isBackward:!1}),g=p(r,m),y=r.getBlockForKey(l).getInlineStyleAt(f);r=o.replaceText(r,m,e,y,g),n=i.set(n,{currentContent:r})}));var s=d(n,u(e)).selectionState;e.restoreEditorDOM();var l=h?i.forceSelection(n,s):i.acceptSelection(n,s);e.update(i.push(l,r,"insert-characters"))}else e.update(n)}}};e.exports=v},952:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},h=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&a)return!1;var i=t.getCurrentContent(),s=n.getCurrentContent(),l=t.getDecorator(),c=n.getDecorator();return o!==a||i!==s||l!==c||n.mustForceSelection()},i.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleMap,u=e.customStyleFn,h=e.editorState,m=e.editorKey,g=e.preventScroll,y=e.textDirectionality,v=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),E=h.getDecorator(),x=p(h.getDirectionMap()),C=v.getBlocksAsArray(),_=[],S=null,O=null,k=0;kS,L)));var H=I||s,V={className:U,"data-block":!0,"data-editor":m,"data-offset-key":P,key:M};void 0!==T&&(V=a({},V,{contentEditable:T,suppressContentEditableWarning:!0}));var K=c.createElement(z,V,c.createElement(H,o({},R,{key:M})));_.push({block:K,wrapperTemplate:B,key:M,offsetKey:P}),S=B?N.getDepth():null,O=B}for(var G=[],W=0;W<_.length;){var Y=_[W];if(Y.wrapperTemplate){var Q=[];do{Q.push(_[W].block),W++}while(W<_.length&&_[W].wrapperTemplate===Y.wrapperTemplate);var $=c.cloneElement(Y.wrapperTemplate,{key:Y.key+"-wrap","data-offset-key":Y.offsetKey},Q);G.push($)}else G.push(Y.block),W++}return c.createElement("div",{"data-contents":"true"},G)},r}(c.Component);e.exports=h},7364:(e,t,n)=>{"use strict";var r=n(811)("draft_tree_data_support");e.exports=n(r?282:952)},282:(e,t,n)=>{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t{"use strict";var r=n(4059);function o(){return o=r||function(e){for(var t=1;t{"use strict";var r=n(6148),o=n(6651),a=n(2643),i=n(8101),s=n(4878),l=n(7146),c=n(2069),u=n(5162),d=n(8959),p=n(1799),f={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),u=e._latestEditorState,f=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var a=o.caretRangeFromPoint(e.x,e.y);n=a.startContainer,r=a.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var l=p(i(n));return c(t,l,r,l,r)}(t.nativeEvent,u);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=f){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&d(e.props.handleDroppedFiles(f,g)))return;l(g,(function(t){t&&e.update(m(u,f,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&d(e.props.handleDrop(f,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(u,f)):e.update(m(u,f,n.getText()))),h(e)}}}};function h(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:u(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return a.push(e,r,"insert-fragment")}e.exports=f},7339:(e,t,n)=>{"use strict";var r=n(2211),o=n(6475),a=n(4053),i=n(3734),s=n(2233),l=n(1158),c=n(3124),u=n(9220),d=n(1250),p=n(5926),f=n(9393),h=n(3781),m=n(7684),g=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),v=g||y?m:function(e){},b={onBeforeInput:o,onBlur:a,onCompositionStart:i,onCopy:s,onCut:l,onDragOver:c,onDragStart:u,onFocus:d,onInput:p,onKeyDown:f,onPaste:h,onSelect:m,onMouseUp:v,onKeyUp:v};e.exports=b},4183:(e,t,n)=>{"use strict";var r=n(5795).unstable_flushControlled;e.exports=r},3546:(e,t,n)=>{"use strict";var r=n(4059),o=n(1525),a=n(1609),i=n(6835),s=n(2574),l=n(3605).setDraftEditorSelection,c=function(e){var t,n;function c(){for(var t,n,r,o,a=arguments.length,i=new Array(a),s=0;s{"use strict";var r=n(4603),o=n(3546),a=n(1446),i=n(3112),s=n(1609),l=n(2668),c=(i.List,function(e){var t,n;function i(){return e.apply(this,arguments)||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,i=e.customStyleFn,c=e.customStyleMap,u=e.decorator,d=e.direction,p=e.forceSelection,f=e.hasSelection,h=e.selection,m=e.tree,g=t.getKey(),y=t.getText(),v=m.size-1,b=this.props.children||m.map((function(e,l){var m=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,E=b.map((function(e,n){var r=a.encode(g,l,n),u=e.get("start"),d=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:u,selection:f?h:null,forceSelection:p,text:y.slice(u,d),styleSet:t.getInlineStyleAt(u),customStyleMap:c,customStyleFn:i,isLast:m===v&&n===w})})).toArray();return m&&u?s.createElement(r,{block:t,children:E,contentState:n,decorator:u,decoratorKey:m,direction:d,leafSet:e,text:y,key:l}):E})).toArray();return s.createElement("div",{"data-offset-key":a.encode(g,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},i}(s.Component));e.exports=c},7651:(e,t,n)=>{"use strict";var r=n(1609),o=n(2668),a=function(e){var t,n;function a(){return e.apply(this,arguments)||this}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=a.prototype;return i.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},i.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r.createElement("div",{className:t},r.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},a}(r.Component);e.exports=a},1525:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(1609),i=n(2211),s=n(6835),l=n(9345),c=i.isBrowser("IE <= 11"),u=function(e){var t,n;function i(t){var n;return o(r(n=e.call(this,t)||this),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=i.prototype;return u.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;l(t)||s(!1);var r=t;return n?!function(e){return c?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},u.componentDidMount=function(){this._forceFlag=!this._forceFlag},u.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},u.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},c?a.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return c?a.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):a.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):a.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},i}(a.Component);e.exports=u},4978:e=>{"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},7785:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1010),a=n(3112),i=n(6835),s=n(638),l=(0,a.Map)(),c=s();function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var d={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),d.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),d.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),d.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),d.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,c=s()},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),d.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),d.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return c},__create:function(e,t,n){return d.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return c=s(),l=l.set(c,e),c},__get:function(e){var t=l.get(e);return t||i(!1),t},__mergeData:function(e,t){var n=d.__get(e),o=function(e){for(var t=1;t{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,n(3112).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=r},6419:e=>{"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var a=n.split(" ");a=a.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t{"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},6651:(e,t,n)=>{"use strict";var r=n(1559),o=n(7389),a=n(505),i=n(9887),s=n(175),l=n(3112),c=n(4976),u=n(5415),d=n(6835),p=n(5053),f=n(9585),h=n(9214),m=n(3765),g=l.OrderedSet,y={replaceText:function(e,t,n,o,a){var i=f(e,t),s=h(i,t),l=r.create({style:o||g(),entity:a||null});return u(s,s.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||d(!1),y.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=s(e,t),o=y.removeRange(e,t,"backward");return y.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=f(e,t),a=h(o,t);return c(a,a.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),s=e.getBlockForKey(o);var l=t.getStartOffset(),c=t.getEndOffset(),u=a.getEntityAt(l),d=s.getEntityAt(c-1);if(r===o&&u&&u===d){var p=i(e.getEntityMap(),a,s,t,n);return h(e,p)}var m=f(e,t);return h(m,t)},splitBlock:function(e,t){var n=f(e,t),r=h(n,t);return m(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=f(e,t);return a(r,t,n)}};e.exports=y},1446:e=>{"use strict";var t="-",n={encode:function(e,n,r){return e+t+n+t+r},decode:function(e){var n=e.split(t).reverse(),r=n[0],o=n[1];return{blockKey:n.slice(2).reverse().join(t),decoratorKey:parseInt(o,10),leafKey:parseInt(r,10)}}};e.exports=n},5335:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3219),a=n(7479),i=n(835),s=n(298),l=n(7037),c=n(811),u=n(3112),d=n(1088),p=u.List,f=u.Repeat,h=c("draft_tree_data_support"),m=h?a:o,g={processHTML:function(e,t){return i(e,l,t)},processText:function(e,t,n){return e.reduce((function(e,o,a){o=d(o);var i=s(),l={key:i,type:n,text:o,characterList:p(f(t,o.length))};if(h&&0!==a){var c=a-1;l=function(e){for(var t=1;t{"use strict";var r="['‘’]",o="\\s|(?![_])"+n(5310).getPunctuation(),a=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),i=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var n=t?i.exec(e):a.exec(e);return n?n[0]:e}var l={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=l},9808:e=>{"use strict";var t={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=t},5815:(e,t,n)=>{"use strict";function r(e){for(var t=1;t0)||(delete c.children,n.push(c));var a=o.children;Array.isArray(a)||i(!1),t=t.concat([].concat(a.reverse()))}var l,c}(t),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var o=s(e),i=e.depth||0,l=r({},e,{children:[]});if(o){var c=n[0];if(null==c&&0===i)t.push(l);else if(null==c||c.depth=i;)n.shift(),c=n[0];i>0?c.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=l},6564:(e,t,n)=>{"use strict";n(2775),e.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return!1;if(!e.getChildKeys().map((function(e){return t.get(e)})).every((function(e){return e.getParentKey()===n})))return!1;var o=e.getPrevSiblingKey();if(null!=o&&t.get(o).getNextSiblingKey()!==n)return!1;var a=e.getNextSiblingKey();return(null==a||t.get(a).getPrevSiblingKey()===n)&&!(null!==a&&null!==o&&o===a||""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var a=e.get(r),i=a.getChildKeys(),s=a.getNextSiblingKey();if(i.size>0){null!=s&&o.unshift(s);var l=i.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==l)return!1;r=l.getKey()}else r=null!=a.getNextSiblingKey()?a.getNextSiblingKey():o.shift();n++}return n===e.size},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}}},9243:(e,t,n)=>{"use strict";var r,o=n(8559),a=n(3112),i=n(1799),s=a.OrderedMap,l={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),l=n.valueSeq().map((function(e){return i(r).getDirection(e.getText())})),c=s(n.keySeq().zip(l));return null!=t&&a.is(t,c)?t:c}};e.exports=l},2643:(e,t,n)=>{"use strict";function r(e){for(var t=1;t0?o.getInlineStyleAt(r-1):o.getLength()?o.getInlineStyleAt(0):b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);return r0?o.getInlineStyleAt(r-1):b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return y(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),y(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new l({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var i=e.getSelection(),l=e.getCurrentContent(),c=e.getUndoStack(),u=n;i!==l.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(l),u=u.set("selectionBefore",i)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",l.getSelectionBefore()));var d=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(d=null);var f={currentContent:u,directionMap:a,undoStack:c,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:d};return t.set(e,f)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function y(e,t,n){return g.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function v(e,t){return e.getBlockMap().map((function(n){return a.generate(e,n,t)})).toOrderedMap()}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}e.exports=g},9861:(e,t,n)=>{"use strict";var r=n(2211),o=n(5269),a=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return a&&e.altKey},usesMacOSHeuristics:function(){return a},hasCommandModifier:function(e){return a?!!e.metaKey&&!e.altKey:i.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=i},6670:()=>{},353:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(5763),i=n(1799),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var i=n.getBlockMap().delete(a.getKey()),l=n.merge({blockMap:i,selectionAfter:t});if(l!==n)return o.push(e,l,"remove-range")}var c=s.tryToRemoveBlockStyle(e);return c?o.push(e,c,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),i=n.getBlockForKey(a).getLength();if(t.getStartOffset(){"use strict";var r=n(6651),o=n(2643),a=n(175),i=n(1799),s=null,l={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),l=null;if(n.isCollapsed()){var c=n.getAnchorKey(),u=t.getBlockForKey(c).getLength();if(u===n.getAnchorOffset()){var d=t.getKeyAfter(c);if(null==d)return e;l=n.set("focusKey",d).set("focusOffset",0)}else l=n.set("focusOffset",u)}else l=n;l=i(l),s=a(t,l);var p=r.removeRange(t,l,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=l},7746:(e,t,n)=>{"use strict";var r=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var a=this.getStartOffset(),i=this.getEndOffset();return t<=a&&a<=n||t<=i&&i<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,n(3112).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=r},5763:e=>{"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),s=i.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).concat([[a,i.get(a)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return i=i.merge(s),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t})}},3557:(e,t,n)=>{"use strict";var r=n(1559);e.exports=function(e,t,n,o){for(var a=t,i=e.getCharacterList();a{"use strict";var r=n(3557),o=n(3112);e.exports=function(e,t,n){var a=e.getBlockMap(),i=t.getStartKey(),s=t.getStartOffset(),l=t.getEndKey(),c=t.getEndOffset(),u=a.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).toOrderedMap().merge(o.OrderedMap([[l,a.get(l)]])).map((function(e,t){var o=t===i?s:0,a=t===l?c:e.getLength();return r(e,o,a,n)}));return e.merge({blockMap:a.merge(u),selectionBefore:t,selectionAfter:t})}},9101:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(3219),a=n(7479),i=n(9808),s=n(130),l=n(2007),c=n(6835),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l(e),entityRanges:s(e,t),data:e.getData().toObject()}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,s=[],l={},d={},p=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=i.stringify(r);d[o]||(d[o]=r,n[o]="".concat(p),p++)})),function(e,t,n,i){if(e instanceof o)n.push(u(e,t));else{e instanceof a||c(!1);var s=e.getParentKey(),l=i[e.getKey()]=function(e){for(var t=1;t{"use strict";var r;function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(L).some((function(n){e.classList.contains(n)&&(t=L[n])})),t},B=function(e){if(!w(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new d(t.href),!0}catch(e){return!1}},z=function(e){if(!C(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},q=function(e,t){if(!x(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations((function(e){D.indexOf(r)>=0?e.add("BOLD"):I.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===a&&e.add("UNDERLINE"),"line-through"===a&&e.add("STRIKETHROUGH"),"none"===a&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},U=function(e){return"ul"===e||"ol"===e},H=function(){function e(e,t){a(this,"characterList",y()),a(this,"currentBlockType","unstyled"),a(this,"currentDepth",0),a(this,"currentEntity",null),a(this,"currentText",""),a(this,"wrapper",null),a(this,"blockConfigs",[]),a(this,"contentBlocks",[]),a(this,"entityMap",u),a(this,"blockTypeMap",void 0),a(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(_?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o({key:e.key||f(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(k,"")).replace(O," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){E(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(C(e)){var n=e,r={};T.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),m("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(w(e)){var r=e,o={};j.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new d(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var a=e[r];a.parent=t,a.prevSibling=r>0?e[r-1].key:null,a.nextSibling=r2&&void 0!==arguments[2]?arguments[2]:c,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(S,"").replace(N," ").replace(M,"").replace(A,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),v(t)}(t);return new H(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()}},2999:(e,t,n)=>{"use strict";function r(e){for(var t=1;t0})),o=v&&!n?c.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return E(e.map((function(e){var n=new a(x(e,t));return[n.getKey(),n]})))}(n?c.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(_).reduce((function(n,o,a){Array.isArray(o.children)||y(!1);var s=o.children.map(_),l=new i(r({},x(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(l.getKey(),l);for(var c=S([],s,l);c.length>0;){var u=c.pop(),d=u.parentRef,p=d.getChildKeys(),f=p.indexOf(u.key),h=Array.isArray(u.children);if(!h){h||y(!1);break}var m=u.children.map(_),g=new i(r({},x(u,t),{parent:d.getKey(),children:b(m.map((function(e){return e.key}))),prevSibling:0===f?null:p.get(f-1),nextSibling:f===p.size-1?null:p.get(f+1)}));n=n.set(g.getKey(),g),c=S(c,m,g)}return n}),E())}(o,t);return s}(e,t),o=n.isEmpty()?new u:u.createEmpty(n.first().getKey());return new s({blockMap:n,entityMap:t,selectionBefore:o,selectionAfter:o})}},9334:(e,t,n)=>{"use strict";var r=n(1559),o=n(3112).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},9390:(e,t,n)=>{"use strict";var r=n(9031).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,a=o+r(e,t.offset,t.length).length,i=o;i{"use strict";var r=n(9031),o=n(3112).OrderedSet,a=r.substr,i=o();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach((function(t){for(var r=a(e,0,t.offset).length,o=r+a(e,t.offset,t.length).length;r{"use strict";e.exports={notEmptyKey:function(e){return null!=e&&""!=e}}},6475:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(2211),i=n(5396),s=n(8959),l=n(6500),c=n(1799),u=n(5258),d=a.isBrowser("Firefox");function p(e,t,n,a,i){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,a);return o.push(e,s,"insert-characters",i)}e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&s(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var a=n.getSelection(),f=a.getStartOffset(),h=a.getAnchorKey();if(!a.isCollapsed())return t.preventDefault(),void e.update(p(n,r,n.getCurrentInlineStyle(),i(n.getCurrentContent(),n.getSelection()),!0));var m,g=p(n,r,n.getCurrentInlineStyle(),i(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=l(e._latestCommittedEditorState)),!y){var v=n.getBlockTree(h),b=g.getBlockTree(h);y=v.size!==b.size||v.zip(b).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=f?r.length:0),i=t.get("end"),s=i+(i>=f?r.length:0),l=n.get("start"),c=n.get("end"),u=n.get("decoratorKey");return t.get("decoratorKey")!==u||t.get("leaves").size!==n.get("leaves").size||a!==l||s!==c||null!=u&&c-l!=i-o}))}if(y||(m=r,y=d&&("'"==m||"/"==m)),y||(y=c(g.getDirectionMap()).get(h)!==c(n.getDirectionMap()).get(h)),y)return t.preventDefault(),g=o.set(g,{forceSelection:!0}),void e.update(g);g=o.set(g,{nativelyRenderedContent:g.getCurrentContent()}),e._pendingStateFromBeforeInput=g,u((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}},4053:(e,t,n)=>{"use strict";var r=n(2643),o=n(2462),a=n(2533);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&a(n)===n.body){var i=n.defaultView.getSelection(),s=e.editor;1===i.rangeCount&&o(s,i.anchorNode)&&o(s,i.focusNode)&&i.removeAllRanges()}var l=e._latestEditorState,c=l.getSelection();if(c.getHasFocus()){var u=c.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(l,u))}}},3734:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},2233:(e,t,n)=>{"use strict";var r=n(9659);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},1158:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(2394),i=n(9659),s=n(1489),l=n(1879);e.exports=function(e,t){var n,c=e._latestEditorState,u=c.getSelection(),d=t.target;if(u.isCollapsed())t.preventDefault();else{if(l(d)){var p=d;n=s(a.getScrollParent(p))}var f=i(c);e.setClipboard(f),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")}(c))}),0)}}},3124:e=>{"use strict";e.exports=function(e,t){e.setMode("drag"),t.preventDefault()}},9220:e=>{"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},1250:(e,t,n)=>{"use strict";var r=n(2643),o=n(2211);e.exports=function(e,t){var n=e._latestEditorState,a=n.getSelection();if(!a.getHasFocus()){var i=a.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,i)):e.update(r.acceptSelection(n,i))}}},5926:(e,t,n)=>{"use strict";var r=n(6651),o=n(1446),a=n(2643),i=n(2211),s=n(2542).notEmptyKey,l=n(8101),c=n(1274),u=n(1799),d=i.isEngine("Gecko");e.exports=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),i=n.anchorNode,p=n.isCollapsed,f=(null==i?void 0:i.nodeType)!==Node.TEXT_NODE&&(null==i?void 0:i.nodeType)!==Node.ELEMENT_NODE;if(null!=i&&!f){if(i.nodeType===Node.TEXT_NODE&&(null!==i.previousSibling||null!==i.nextSibling)){var h=i.parentNode;if(null==h)return;i.nodeValue=h.textContent;for(var m=h.firstChild;null!=m;m=m.nextSibling)m!==i&&h.removeChild(m)}var g=i.textContent,y=e._latestEditorState,v=u(l(i)),b=o.decode(v),w=b.blockKey,E=b.decoratorKey,x=b.leafKey,C=y.getBlockTree(w).getIn([E,"leaves",x]),_=C.start,S=C.end,O=y.getCurrentContent(),k=O.getBlockForKey(w),N=k.getText().slice(_,S);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==N){var M,A,D,I,j=y.getSelection(),T=j.merge({anchorOffset:_,focusOffset:S,isBackward:!1}),L=k.getEntityAt(_),P=s(L)?O.getEntity(L):null,R="MUTABLE"===(null!=P?P.getMutability():null),F=R?"spellcheck-change":"apply-entity",B=r.replaceText(O,T,g,k.getInlineStyleAt(_),R?k.getEntityAt(_):null);if(d)M=n.anchorOffset,A=n.focusOffset,I=(D=_+Math.min(M,A))+Math.abs(M-A),M=D,A=I;else{var z=g.length-N.length;D=j.getStartOffset(),I=j.getEndOffset(),M=p?I+z:D,A=I+z}var q=B.merge({selectionBefore:O.getSelectionAfter(),selectionAfter:j.merge({anchorOffset:M,focusOffset:A})});e.update(a.push(y,q,F))}else{var U=t.nativeEvent.inputType;if(U){var H=function(e,t){return"deleteContentBackward"===e?c(t):t}(U,y);if(H!==y)return e.restoreEditorDOM(),void e.update(H)}}}}},9393:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(9861),i=n(559),s=n(9213),l=n(2211),c=n(8959),u=n(9792),d=n(8238),p=n(3690),f=n(7950),h=n(7084),m=n(2267),g=n(1274),y=n(3918),v=n(8578),b=n(6947),w=a.isOptionKeyCommand,E=l.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,a=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case i.RETURN:if(t.preventDefault(),e.props.handleReturn&&c(e.props.handleReturn(t,a)))return;break;case i.ESC:if(t.preventDefault(),l("onEscape"))return;break;case i.TAB:if(l("onTab"))return;break;case i.UP:if(l("onUpArrow"))return;break;case i.RIGHT:if(l("onRightArrow"))return;break;case i.DOWN:if(l("onDownArrow"))return;break;case i.LEFT:if(l("onLeftArrow"))return;break;case i.SPACE:E&&w(t)&&t.preventDefault()}var x=e.props.keyBindingFn(t);if(null!=x&&""!==x)if("undo"!==x){if(t.preventDefault(),!e.props.handleKeyCommand||!c(e.props.handleKeyCommand(x,a,t.timeStamp))){var C=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return g(t);case"backspace-word":return d(t);case"backspace-to-start-of-line":return u(t,n);case"split-block":return f(t);case"transpose-characters":return v(t);case"move-selection-to-start-of-block":return m(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}}(x,a,t);C!==a&&e.update(C)}}else b(t,a,e.update);else if(n===i.SPACE&&E&&w(t)){var _=r.replaceText(a.getCurrentContent(),a.getSelection()," ");e.update(o.push(a,_,"insert-characters"))}}},3781:(e,t,n)=>{"use strict";var r=n(9185),o=n(1559),a=n(6148),i=n(6651),s=n(5335),l=n(2643),c=n(353),u=n(5396),d=n(7146),p=n(8959),f=n(7137);function h(e,t,n){var r=i.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return l.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new a(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(m)))return;return void d(m,(function(t){if(t=t||g){var n=e._latestEditorState,a=f(t),d=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),p=c.getCurrentBlockType(n),h=s.processText(a,d,p),m=r.createFromArray(h),y=i.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(l.push(n,y,"insert-fragment"))}}))}}var y=[],v=n.getText(),b=n.getHTML(),w=e._latestEditorState;if(e.props.formatPastedText){var E=e.props.formatPastedText(v,b);v=E.text,b=E.html}if(!e.props.handlePastedText||!p(e.props.handlePastedText(v,b,w))){if(v&&(y=f(v)),!e.props.stripPastedStyles){var x,C=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&C){if(-1!==(null===(x=b)||void 0===x?void 0:x.indexOf(e.getEditorKey()))||1===y.length&&1===C.size&&C.first().getText()===v)return void e.update(h(e._latestEditorState,C))}else if(C&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(y,C))return void e.update(h(e._latestEditorState,C));if(b){var _=s.processHTML(b,e.props.blockRenderMap);if(_){var S=_.contentBlocks,O=_.entityMap;if(S){var k=r.createFromArray(S);return void e.update(h(e._latestEditorState,k,O))}}}e.setClipboard(null)}if(y.length){var N=o.create({style:w.getCurrentInlineStyle(),entity:u(w.getCurrentContent(),w.getSelection())}),M=c.getCurrentBlockType(w),A=s.processText(y,N,M),D=r.createFromArray(A);e.update(h(e._latestEditorState,D))}}}},7684:(e,t,n)=>{"use strict";var r=n(7565),o=n(2643),a=n(6389),i=n(8265);e.exports=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,s=i(n,a(e)),l=s.selectionState;l!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,l):o.acceptSelection(n,l),e.update(n))}}},130:(e,t,n)=>{"use strict";var r=n(9808),o=n(9031).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(a,i){var s=e.getText(),l=e.getEntityAt(a);n.push({offset:o(s.slice(0,a)),length:o(s.slice(a,i)),key:Number(t[r.stringify(l)])})})),n}},2007:(e,t,n)=>{"use strict";var r=n(9031),o=n(4814),a=function(e,t){return e===t},i=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var s=[],l=t.map((function(e){return e.has(n)})).toList();return o(l,a,i,(function(t,o){var a=e.getText();s.push({offset:r.strlen(a.slice(0,t)),length:r.strlen(a.slice(t,o)),style:n})})),s}(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},1374:(e,t,n)=>{"use strict";var r=n(9031),o=n(4878),a=n(5488),i=n(6835);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,a=-1/0,i=0;i=0;h--)if(!(null!=f&&h>0&&r.isSurrogatePair(f,h-1))){if(e.setStart(d,h),!s(a(e),n))break;c=d,u=h}if(-1===h||0===d.childNodes.length)break;p=l(d=d.childNodes[h])}return e.setStart(c,u),e}},8101:(e,t,n)=>{"use strict";var r=n(4878),o=n(2626);e.exports=function(e){for(var t=e;t&&t!==r(e).documentElement;){var n=o(t);if(null!=n)return n;t=t.parentNode}return null}},4814:e=>{"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,a,i){return t(e,a)||(n(e)&&r(o,i),o=i),a})),n(e.last())&&r(o,e.count())}}},298:e=>{"use strict";var t={},n=Math.pow(2,24);e.exports=function(){for(var e;void 0===e||t.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n).toString(32);return t[e]=!0,e}},9887:(e,t,n)=>{"use strict";var r=n(6419),o=n(8258),a=n(6835);function i(e,t,n,i,s,l,c){var u=n.getStartOffset(),d=n.getEndOffset(),p=e.__get(s).getMutability(),f=c?u:d;if("MUTABLE"===p)return n;var h=o(t,s).filter((function(e){return f<=e.end&&f>=e.start}));1!=h.length&&a(!1);var m=h[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});l||(c?d=m.end:u=m.start);var g=r.getRemovalRange(u,d,t.getText().slice(m.start,m.end),m.start,i);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var a=r.getStartOffset(),s=r.getEndOffset(),l=t.getEntityAt(a),c=n.getEntityAt(s-1);if(!l&&!c)return r;var u=r;if(l&&l===c)u=i(e,t,u,o,l,!0,!0);else if(l&&c){var d=i(e,t,u,o,l,!1,!0),p=i(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:d.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(l){var f=i(e,t,u,o,l,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(c){var h=i(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return u}},6389:(e,t,n)=>{"use strict";var r=n(6835),o=n(1214);e.exports=function(e){var t=e.editorContainer;return t||r(!1),o(t.firstChild)||r(!1),t.firstChild}},175:(e,t,n)=>{"use strict";var r=n(1199),o=n(9585);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),i=t.getEndKey(),s=t.getEndOffset(),l=o(e,t).getBlockMap(),c=l.keySeq(),u=c.indexOf(n),d=c.indexOf(i)+1;return r(l.slice(u,d).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===i?e.merge({text:r.slice(a,s),characterList:o.slice(a,s)}):t===n?e.merge({text:r.slice(a),characterList:o.slice(a)}):t===i?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},4878:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument?e.ownerDocument:document}},5532:(e,t,n)=>{"use strict";var r=n(9861),o=n(559),a=n(2211),i=a.isPlatform("Mac OS X"),s=i&&a.isBrowser("Firefox < 29"),l=r.hasCommandModifier,c=r.isCtrlKeyCommand;function u(e){return i&&e.altKey||c(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return c(e)?"delete":null;case 72:return c(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return i&&c(e)?"secondary-cut":null;case 77:case 79:return c(e)?"split-block":null;case 84:return i&&c(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return i&&c(e)?"backspace-word":null;case 89:return c(e)?i?"secondary-paste":"redo":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!i&&e.shiftKey?null:u(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&i?"backspace-to-start-of-line":u(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},8265:(e,t,n)=>{"use strict";var r=n(8564);e.exports=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),o=n.anchorNode,a=n.anchorOffset,i=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,a,i,s)}},8564:(e,t,n)=>{"use strict";var r=n(8101),o=n(2626),a=n(2069),i=n(6835),s=n(9345),l=n(1799);function c(e,t,n){var a=t,c=r(a);if(null!=c||e&&(e===a||e.firstChild===a)||i(!1),e===a&&(a=a.firstChild,s(a)||i(!1),"true"!==a.getAttribute("data-contents")&&i(!1),n>0&&(n=a.childNodes.length)),0===n){var d=null;if(null!=c)d=c;else{var p=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(a);d=l(o(p))}return{key:d,offset:0}}var f=a.childNodes[n-1],h=null,m=null;if(o(f)){var g=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);h=l(o(g)),m=u(g)}else h=l(c),m=u(f);return{key:h,offset:m}}function u(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,i,s){var u=n.nodeType===Node.TEXT_NODE,d=i.nodeType===Node.TEXT_NODE;if(u&&d)return{selectionState:a(e,l(r(n)),o,l(r(i)),s),needsRecovery:!1};var p=null,f=null,h=!0;return u?(p={key:l(r(n)),offset:o},f=c(t,i,s)):d?(f={key:l(r(i)),offset:s},p=c(t,n,o)):(p=c(t,n,o),f=c(t,i,s),n===i&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,p.key,p.offset,f.key,f.offset),needsRecovery:h}}},5396:(e,t,n)=>{"use strict";var r=n(2542).notEmptyKey;function o(e,t){return r(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(r).getEntityAt(a-1))!==e.getBlockForKey(r).getEntityAt(a)?null:o(e.getEntityMap(),n):null}var i=t.getStartKey(),s=t.getStartOffset(),l=e.getBlockForKey(i);return n=s===l.getLength()?null:l.getEntityAt(s),o(e.getEntityMap(),n)}},9659:(e,t,n)=>{"use strict";var r=n(175);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},967:(e,t,n)=>{"use strict";var r=n(7479);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var a=t.get(o);a&&!a.getNextSiblingKey();){var i=a.getParentKey();a=i?t.get(i):null}return a?a.getNextSiblingKey():null}},6784:e=>{"use strict";e.exports=function(e){return Object.keys(e).map((function(t){return e[t]}))}},8366:(e,t,n)=>{"use strict";var r=n(5488);e.exports=function(e){var t=r(e),n=0,o=0,a=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,a=s.bottom,i=s.left}else{var l=t[0];n=l.top,o=l.right,a=l.bottom,i=l.left}for(var c=1;c{"use strict";var r=n(2211),o=n(6835),a=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var a=r===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,s=Array.from(t.getClientRects());if(n.push(s),a)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=a},8258:(e,t,n)=>{"use strict";var r=n(6835);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}},7037:(e,t,n)=>{"use strict";var r=n(2211),o=n(6835),a=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},2626:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function e(t){if(r(t)){var n=t,o=n.getAttribute("data-offset-key");if(o)return o;for(var a=0;a{"use strict";var r=n(6835),o=/\.textClipping$/,a={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var i=0,s=[];e.forEach((function(l){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in a))t("");else{if(""===e.type){var i="";return o.test(e.name)&&(i=e.name.replace(o,"")),void t(i)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&r(!1),t(e)},s.onerror=function(){t("")},s.readAsText(e)}}(l,(function(n){i++,n&&s.push(n.slice(0,5e3)),i==e.length&&t(s.join("\r"))}))}))}},2069:(e,t,n)=>{"use strict";var r=n(1446),o=n(1799);e.exports=function(e,t,n,a,i){var s=o(e.getSelection());if(!t||!a)return s;var l=r.decode(t),c=l.blockKey,u=e.getBlockTree(c),d=u&&u.getIn([l.decoratorKey,"leaves",l.leafKey]),p=r.decode(a),f=p.blockKey,h=e.getBlockTree(f),m=h&&h.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!d||!m)return s;var g=d.get("start"),y=m.get("start"),v=d?g+n:null,b=m?y+i:null;if(s.getAnchorKey()===c&&s.getAnchorOffset()===v&&s.getFocusKey()===f&&s.getFocusOffset()===b)return s;var w=!1;if(c===f){var E=d.get("end"),x=m.get("end");w=y===g&&x===E?i{"use strict";var r=n(8366);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),a=o.top,i=o.right,s=o.bottom,l=o.left;return 0===a&&0===i&&0===s&&0===l?null:o}},5162:e=>{"use strict";e.exports=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}},811:e=>{"use strict";e.exports=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX||!window.__DRAFT_GKX[e])}},4976:(e,t,n)=>{"use strict";var r=n(9185),o=n(7479),a=n(3112),i=n(3686),s=n(6835),l=n(1199),c=a.List;e.exports=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var u=e.getBlockMap(),d=l(n),p=t.getStartKey(),f=t.getStartOffset(),h=u.get(p);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===d.size?function(e,t,n,r,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(o),c=l.getText(),u=l.getCharacterList(),d=o,p=a+r.getText().length,f=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var h=l.getType();c&&"unstyled"===h&&(h=r.getType());var m=l.merge({text:c.slice(0,a)+r.getText()+c.slice(a),characterList:i(u,r.getCharacterList(),a),type:h,data:f});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}(e,t,u,d.first(),p,f,a):function(e,t,n,a,i,s){var l=n.first()instanceof o,u=[],d=a.size,p=n.get(i),f=a.first(),h=a.last(),m=h.getLength(),g=h.getKey(),y=l&&(!p.getChildKeys().isEmpty()||!f.getChildKeys().isEmpty());n.forEach((function(e,t){t===i?(y?u.push(e):u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),a=r.slice(0,t),i=o.slice(0,t),s=n.first();return e.merge({text:a+s.getText(),characterList:i.concat(s.getCharacterList()),type:a?e.getType():s.getType(),data:s.getData()})}(e,s,a)),a.slice(y?0:1,d-1).forEach((function(e){return u.push(e)})),u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),a=r.length,i=r.slice(t,a),s=o.slice(t,a),l=n.last();return l.merge({text:l.getText()+i,characterList:l.getCharacterList().concat(s),data:l.getData()})}(e,s,a))):u.push(e)}));var v=r.createFromArray(u);return l&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),a=r.getKey(),i=n.getNextSiblingKey(),s=n.getParentKey(),l=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var a=r.getNextSiblingKey();if(!a)break;o.push(a),r=t.get(a)}return o}(r,e),u=l[l.length-1];if(t.get(a)?(t.setIn([o,"nextSibling"],a),t.setIn([a,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],i),i&&t.setIn([i,"prevSibling"],u),l.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var d=e.get(s).getChildKeys(),p=d.indexOf(o)+1,f=d.toArray();f.splice.apply(f,[p,0].concat(l)),t.setIn([s,"children"],c(f))}}))}(v,0,p,f)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})}(e,t,u,d,p,f)}},3686:e=>{"use strict";e.exports=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),a=r.slice(n);r=o.concat(t,a).toList()}return r}},5415:(e,t,n)=>{"use strict";var r=n(3112),o=n(3686),a=n(6835),i=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||a(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var l=e.getBlockMap(),c=t.getStartKey(),u=t.getStartOffset(),d=l.get(c),p=d.getText(),f=d.merge({text:p.slice(0,u)+n+p.slice(u,d.getLength()),characterList:o(d.getCharacterList(),i(r,s).toList(),u)}),h=u+s;return e.merge({blockMap:l.set(c,f),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}},9345:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}},8959:e=>{"use strict";e.exports=function(e){return"handled"===e||!0===e}},3213:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"A"===e.nodeName}},2574:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"BR"===e.nodeName}},1214:e=>{"use strict";e.exports=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}},5175:(e,t,n)=>{"use strict";var r=n(9345);e.exports=function(e){return!(!e||!e.ownerDocument)&&r(e)&&"IMG"===e.nodeName}},1879:e=>{"use strict";e.exports=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},6500:e=>{"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),a=!1;return r.some((function(e){return o===e.get("start")?(a=!0,!0):o{"use strict";var r=n(559);e.exports=function(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}},9792:(e,t,n)=>{"use strict";var r=n(2643),o=n(1374),a=n(8564),i=n(9097),s=n(4191);e.exports=function(e,t){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return i(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),a(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}},8238:(e,t,n)=>{"use strict";var r=n(8937),o=n(2643),a=n(9097),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return a(e,1);var o=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(i);return a(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},3690:(e,t,n)=>{"use strict";var r=n(8937),o=n(2643),a=n(7831),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(i);return a(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},7950:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},7084:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},2267:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},1274:(e,t,n)=>{"use strict";var r=n(2643),o=n(9031),a=n(9097),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[i-1];return a(e,s?o.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},3918:(e,t,n)=>{"use strict";var r=n(2643),o=n(9031),a=n(7831),i=n(4191);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[i];return a(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},8578:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),a=n(175);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var i,s,l=t.getAnchorKey(),c=e.getCurrentContent(),u=c.getBlockForKey(l).getLength();if(u<=1)return e;n===u?(i=t.set("anchorOffset",n-1),s=t):s=(i=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var d=a(c,i),p=r.removeRange(c,i,"backward"),f=p.getSelectionAfter(),h=f.getAnchorOffset()-1,m=f.merge({anchorOffset:h,focusOffset:h}),g=r.replaceWithFragment(p,m,d),y=o.push(e,g,"insert-fragment");return o.acceptSelection(y,s)}},6947:(e,t,n)=>{"use strict";var r=n(2643);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var a=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:a}))}}},5053:(e,t,n)=>{"use strict";var r=n(3112).Map;e.exports=function(e,t,n){var o=t.getStartKey(),a=t.getEndKey(),i=e.getBlockMap(),s=i.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).concat(r([[a,i.get(a)]])).map(n);return e.merge({blockMap:i.merge(s),selectionBefore:t,selectionAfter:t})}},4446:(e,t,n)=>{"use strict";var r=n(7479),o=n(967),a=n(3112),i=n(6835),s=a.OrderedMap,l=a.List,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,o){if(!o)return e;var a="after"===r,i=t.getKey(),s=n.getKey(),u=t.getParentKey(),d=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),f=n.getParentKey(),h=a?n.getNextSiblingKey():s,m=a?s:n.getPrevSiblingKey();return e.withMutations((function(e){c(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(i))})})),c(p,e,(function(e){return e.merge({nextSibling:d})})),c(d,e,(function(e){return e.merge({prevSibling:p})})),c(h,e,(function(e){return e.merge({prevSibling:i})})),c(m,e,(function(e){return e.merge({nextSibling:i})})),c(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=a?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,i),e.merge({children:l(o)})})),c(i,e,(function(e){return e.merge({nextSibling:h,prevSibling:m,parent:f})}))}))};e.exports=function(e,t,n,a){"replace"===a&&i(!1);var l=n.getKey(),c=t.getKey();c===l&&i(!1);var d=e.getBlockMap(),p=t instanceof r,f=[t],h=d.delete(c);p&&(f=[],h=d.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===c})).takeWhile((function(e){var t=e.getKey(),o=t===c,a=n&&t!==n,i=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||i)})).forEach((function(t){f.push(t),e.delete(t.getKey())}))})));var m=h.toSeq().takeUntil((function(e){return e===n})),g=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=f.map((function(e){return[e.getKey(),e]})),v=s();if("before"===a){var b=e.getBlockBefore(l);b&&b.getKey()===t.getKey()&&i(!1),v=m.concat([].concat(y,[[l,n]]),g).toOrderedMap()}else if("after"===a){var w=e.getBlockAfter(l);w&&w.getKey()===c&&i(!1),v=m.concat([[l,n]].concat(y),g).toOrderedMap()}return e.merge({blockMap:u(v,t,n,a,p),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},9097:(e,t,n)=>{"use strict";n(2775),e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),a=n.getStartOffset(),i=o,s=0;if(t>a){var l=r.getKeyBefore(o);null==l?i=o:(i=l,s=r.getBlockForKey(l).getText().length)}else s=a-t;return n.merge({focusKey:i,focusOffset:s,isBackward:!0})}},7831:(e,t,n)=>{"use strict";n(2775),e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),a=r.getStartOffset(),i=e.getCurrentContent(),s=o;return t>i.getBlockForKey(o).getText().length-a?(s=i.getKeyAfter(o),n=0):n=a+t,r.merge({focusKey:s,focusOffset:n})}},1199:(e,t,n)=>{"use strict";var r=n(7479),o=n(298),a=n(3112).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return a(e.withMutations((function(e){e.forEach((function(r,a){var i=r.getKey(),s=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),d=o();if(n[i]=d,s&&(e.get(s)?e.setIn([s,"prevSibling"],d):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],d):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var p=e.get(u).getChildKeys();e.setIn([u,"children"],p.set(p.indexOf(r.getKey()),d))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],d),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);c.forEach((function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return a(e.toArray().map((function(e){var t=o();return[t,e.set("key",t)]})))}(e)}},9585:(e,t,n)=>{"use strict";var r=n(1559),o=n(4814),a=n(6835);function i(e,t,n){var i=t.getCharacterList(),s=n>0?i.get(n-1):void 0,l=n=n&&(r={start:e,end:t})})),"object"!=typeof r&&a(!1),r}(i,u,n),f=p.start,h=p.end;f{"use strict";var r=n(7479),o=n(967),a=n(3112),i=(a.List,a.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},c=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r};e.exports=function(e,t){if(t.isCollapsed())return e;var n,a=e.getBlockMap(),d=t.getStartKey(),p=t.getStartOffset(),f=t.getEndKey(),h=t.getEndOffset(),m=a.get(d),g=a.get(f),y=m instanceof r,v=[];if(y){var b=g.getChildKeys(),w=l(f,a);g.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([f]))),v=v.concat(l(o(g,a),a))}n=m===g?function(e,t,n){if(0===t)for(;tt;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e}(m.getCharacterList(),p,h):m.getCharacterList().slice(0,p).concat(g.getCharacterList().slice(h));var E=m.merge({text:m.getText().slice(0,p)+g.getText().slice(h),characterList:n}),x=y&&0===p&&0===h&&g.getParentKey()===d&&null==g.getPrevSiblingKey()?i([[d,null]]):a.toSeq().skipUntil((function(e,t){return t===d})).takeUntil((function(e,t){return t===f})).filter((function(e,t){return-1===v.indexOf(t)})).concat(i([[f,null]])).map((function(e,t){return t===d?E:null})),C=a.merge(x).filter((function(e){return!!e}));return y&&m!==g&&(C=function(e,t,n,r){return e.withMutations((function(a){if(s(t.getKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:u(e,a,r)})})),s(n.getKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:u(e,a,r)})})),l(t.getKey(),r).forEach((function(e){return s(e,a,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return a.get(e)})),nextSibling:c(e,a,r),prevSibling:u(e,a,r)})}))})),s(t.getNextSiblingKey(),a,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r)})})),s(n.getNextSiblingKey(),a,(function(e){return e.merge({prevSibling:u(e,a,r)})})),s(n.getPrevSiblingKey(),a,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),l(n.getKey(),r).forEach((function(e){s(e,a,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return a.get(e)})),nextSibling:c(e,a,r),prevSibling:u(e,a,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var a=t.get(r);n.push(r),r=a.getParentKey()?o(a,t):null}return n}(n,r).forEach((function(e){return s(e,a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:u(e,a,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();s(n.getKey(),a,(function(e){return e.merge({prevSibling:i})})),s(i,a,(function(e){return e.merge({nextSibling:n.getKey()})}));var d=i?e.get(i):null,p=d?d.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,a,(function(e){return e.merge({parent:p})}))})),null!=p){var f=e.get(p);s(p,a,(function(e){return e.merge({children:f.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),a,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(C,m,g,a)),e.merge({blockMap:C,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})}},4191:(e,t,n)=>{"use strict";var r=n(6651),o=n(811)("draft_tree_data_support");e.exports=function(e,t,n){var a=e.getSelection(),i=e.getCurrentContent(),s=a,l=a.getAnchorKey(),c=a.getFocusKey(),u=i.getBlockForKey(l);if(o&&"forward"===n&&l!==c)return i;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i;if(o&&a.getAnchorOffset()===i.getBlockForKey(l).getLength()){var d=i.getBlockForKey(u.nextSibling);if(!d||0===d.getLength())return i}}else if(e.isSelectionAtStartOfContent())return i;if((s=t(e))===a)return i}return r.removeRange(i,s,n)}},1088:e=>{"use strict";var t=new RegExp("\r","g");e.exports=function(e){return e.replace(t,"")}},3605:(e,t,n)=>{"use strict";var r=n(4978),o=n(7565),a=n(2211),i=n(2462),s=n(2533),l=n(4878),c=n(6835),u=n(9345),d=a.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var n=f(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(u(n)||c(!1),n.outerHTML)}function f(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return l(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,i=0;im(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var l=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(i){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===a&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:a?a.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:l,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:i?""+i:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),i}}else if(t&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(t,n),e.addRange(c.cloneRange())}}function y(e,t,n,a){var i=l(t).createRange();if(n>m(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())}),r.handleExtensionCausedError()),i.setStart(t,n),d)try{e.addRange(i)}catch(e){}else e.addRange(i)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var a=l(t);if(i(a.documentElement,t)){var s=a.defaultView.getSelection(),c=e.getAnchorKey(),u=e.getAnchorOffset(),d=e.getFocusKey(),p=e.getFocusOffset(),f=e.getIsBackward();if(!s.extend&&f){var h=c,m=u;c=d,u=p,d=h,p=m,f=!1}var v=c===n&&r<=u&&o>=u,b=d===n&&r<=p&&o>=p;if(v&&b)return s.removeAllRanges(),y(s,t,u-r,e),void g(s,t,p-r,e);if(f){if(b&&(s.removeAllRanges(),y(s,t,p-r,e)),v){var w=s.focusNode,E=s.focusOffset;s.removeAllRanges(),y(s,t,u-r,e),g(s,w,E,e)}}else v&&(s.removeAllRanges(),y(s,t,u-r,e)),b&&g(s,t,p-r,e)}},addFocusToSelection:g}},3765:(e,t,n)=>{"use strict";var r=n(7479),o=n(298),a=n(3112),i=n(6835),s=n(5053),l=a.List,c=a.Map,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),a=e.getBlockMap(),d=a.get(n),p=d.getText();if(!p){var f=d.getType();if("unordered-list-item"===f||"ordered-list-item"===f)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=d.getCharacterList(),g=o(),y=d instanceof r,v=d.merge({text:p.slice(0,h),characterList:m.slice(0,h)}),b=v.merge({key:g,text:p.slice(h),characterList:m.slice(h),data:c()}),w=a.toSeq().takeUntil((function(e){return e===d})),E=a.toSeq().skipUntil((function(e){return e===d})).rest(),x=w.concat([[n,v],[g,b]],E).toOrderedMap();return y&&(d.getChildKeys().isEmpty()||i(!1),x=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();u(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,o),e.merge({children:l(a)})})),u(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),u(r,e,(function(e){return e.merge({nextSibling:o})})),u(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(x,v,b)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:0,focusKey:g,focusOffset:0,isBackward:!1})})}},7137:e=>{"use strict";var t=/\r\n?|\n/g;e.exports=function(e){return e.split(t)}},638:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},6253:function(e){e.exports=function(){"use strict";function e(e,t){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&t(n,e[n])}var t={unstyled:"p","header-one":"h1","header-two":"h2","header-three":"h3","header-four":"h4","header-five":"h5","header-six":"h6","unordered-list-item":"ul","ordered-list-item":"ol",blockquote:"blockquote",code:"pre"};function n(e){return e&&t[e]}function r(t){var n="";return e(t,(function(e,t){t&&(n+="".concat(e,":").concat(t,";"))})),n}function o(e,t){var n={};return e.COLOR[t]&&(n.COLOR=e.COLOR[t]),e.BGCOLOR[t]&&(n.BGCOLOR=e.BGCOLOR[t]),e.FONTSIZE[t]&&(n.FONTSIZE=e.FONTSIZE[t]),e.FONTFAMILY[t]&&(n.FONTFAMILY=e.FONTFAMILY[t]),e.UNDERLINE[t]&&(n.UNDERLINE=!0),e.ITALIC[t]&&(n.ITALIC=!0),e.BOLD[t]&&(n.BOLD=!0),e.STRIKETHROUGH[t]&&(n.STRIKETHROUGH=!0),e.CODE[t]&&(n.CODE=!0),e.SUBSCRIPT[t]&&(n.SUBSCRIPT=!0),e.SUPERSCRIPT[t]&&(n.SUPERSCRIPT=!0),n}function a(e,t,n){var r=!0;return n>0&&n').concat(n,"");if("LINK"===o.type){var i=o.data.targetOption||"_self";return'').concat(n,"")}if("IMAGE"===o.type){var s=o.data.alignment;return s&&s.length?'
').concat(o.data.alt,'
'):'').concat(o.data.alt,'')}return"EMBEDDED_LINK"===o.type?''):n}function s(e,t,n,r){var i=[],s=Array.from(e.text);if(s.length>0)for(var l,c=function(e){var t=e.text,n=e.inlineStyleRanges,r={BOLD:new Array(t.length),ITALIC:new Array(t.length),UNDERLINE:new Array(t.length),STRIKETHROUGH:new Array(t.length),CODE:new Array(t.length),SUPERSCRIPT:new Array(t.length),SUBSCRIPT:new Array(t.length),COLOR:new Array(t.length),BGCOLOR:new Array(t.length),FONTSIZE:new Array(t.length),FONTFAMILY:new Array(t.length),length:t.length};return n&&n.length>0&&n.forEach((function(e){for(var t=e.offset,n=t+e.length,o=t;o0?n.map((function(e){switch(e){case"\n":return"
";case"&":return"&";case"<":return"<";case">":return">";default:return e}})).join(""):"";return e(r,(function(e,t){o=function(e,t){return"BOLD"===e?"".concat(t,""):"ITALIC"===e?"".concat(t,""):"UNDERLINE"===e?"".concat(t,""):"STRIKETHROUGH"===e?"".concat(t,""):"CODE"===e?"".concat(t,""):"SUPERSCRIPT"===e?"".concat(t,""):"SUBSCRIPT"===e?"".concat(t,""):t}(e,o)})),o}(t)})),o=function(e,t){if(e&&(e.COLOR||e.BGCOLOR||e.FONTSIZE||e.FONTFAMILY)){var n='style="';return e.COLOR&&(n+="color: ".concat(e.COLOR,";")),e.BGCOLOR&&(n+="background-color: ".concat(e.BGCOLOR,";")),e.FONTSIZE&&(n+="font-size: ".concat(e.FONTSIZE).concat(/^\d+$/.test(e.FONTSIZE)?"px":"",";")),e.FONTFAMILY&&(n+="font-family: ".concat(e.FONTFAMILY,";")),"").concat(t,"")}return t}(n.styles,o)}function c(e,t,n,r){var o=[],a=function(e,t){var n=[],r=0,o=e.entityRanges.map((function(e){return{offset:e.offset,length:e.length,key:e.key,type:"ENTITY"}}));return(o=(o=o.concat(function(e,t){var n=[];if(t)for(var r=0,o=0,a=e,i=t.trigger||"#",s=t.separator||" ";a.length>0&&o>=0;)if(a[0]===i?(o=0,r=0,a=a.substr(i.length)):(o=a.indexOf(s+i))>=0&&(a=a.substr(o+(s+i).length),r+=o+s.length),o>=0){var l=a.indexOf(s)>=0?a.indexOf(s):a.length,c=a.substr(0,l);c&&c.length>0&&n.push({offset:r,length:c.length+i.length,type:"HASHTAG"}),r+=i.length}return n}(e.text,t))).sort((function(e,t){return e.offset-t.offset}))).forEach((function(e){e.offset>r&&n.push({start:r,end:e.offset}),n.push({start:e.offset,end:e.offset+e.length,entityKey:e.key,type:e.type}),r=e.offset+e.length})),r').concat(a,"")),a}(e,t,n,r);0===c&&(u=function(e){if(e){for(var t=e,n=0;n=0&&" "===t[n];n-=1)t="".concat(t.substring(0,n)," ").concat(t.substring(n+1));return t}return e}(u)),o.push(u)})),o.join("")}function u(e,t,o,a,i){var s,l=[],d=[];return e.forEach((function(e){var p=!1;if(s?s.type!==e.type?(l.push("\n")),l.push("<".concat(n(e.type),">\n"))):s.depth===e.depth?d&&d.length>0&&(l.push(u(d,t,o,a,i)),d=[]):(p=!0,d.push(e)):l.push("<".concat(n(e.type),">\n")),!p){l.push(""),l.push(c(e,t,o,i)),l.push("\n"),s=e}})),d&&d.length>0&&l.push(u(d,t,o,a,i)),l.push("\n")),l.join("")}return function(e,t,o,a){var s=[];if(e){var l=e.blocks,d=e.entityMap;if(l&&l.length>0){var p=[];if(l.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)p.push(e);else{if(p.length>0){var l=u(p,d,t,a);s.push(l),p=[]}var f=function(e,t,o,a,s){var l=[];if(function(e){return!(!(e.entityRanges.length>0)||(t=e.text,null!=t&&0!==t.length&&0!==t.trim().length&&"atomic"!==e.type));var t}(e))l.push(i(t,e.entityRanges[0].key,void 0,s));else{var u=n(e.type);if(u){l.push("<".concat(u));var d=r(e.data);d&&l.push(' style="'.concat(d,'"')),a&&l.push(' dir = "auto"'),l.push(">"),l.push(c(e,t,o,s)),l.push(""))}}return l.push("\n"),l.join("")}(e,d,t,o,a);s.push(f)}var h})),p.length>0){var f=u(p,d,t,o,a);s.push(f),p=[]}}}return s.join("")}}()},1449:(e,t,n)=>{"use strict";var r,o=n(8467),a=n(3492);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=i&&"function"==typeof i.get?o([i.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},9173:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},3482:e=>{"use strict";e.exports=EvalError},9183:e=>{"use strict";e.exports=Error},7570:e=>{"use strict";e.exports=RangeError},9898:e=>{"use strict";e.exports=ReferenceError},7388:e=>{"use strict";e.exports=SyntaxError},7379:e=>{"use strict";e.exports=TypeError},4585:e=>{"use strict";e.exports=URIError},2430:e=>{"use strict";e.exports=Object},3092:(e,t,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},6148:(e,t,n)=>{"use strict";var r=n(7066),o=n(4655),a=n(7546),i=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function l(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(e){this.data=e,this.types=e.types?o(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=c},559:e=>{"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},7066:e=>{"use strict";var t={isImage:function(e){return"image"===n(e)[0]},isJpeg:function(e){var r=n(e);return t.isImage(e)&&("jpeg"===r[1]||"pjpeg"===r[1])}};function n(e){return e.split("/")}e.exports=t},4654:e=>{"use strict";function t(e,t){return!!t&&(e===t.documentElement||e===t.body)}var n={getTop:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollTop||n.documentElement.scrollTop:e.scrollTop},setTop:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollTop=r.documentElement.scrollTop=n:e.scrollTop=n},getLeft:function(e){var n=e.ownerDocument;return t(e,n)?n.body.scrollLeft||n.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,n){var r=e.ownerDocument;t(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:e.scrollLeft=n}};e.exports=n},2394:(e,t,n)=>{"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(7367),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},5310:e=>{"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},8673:e=>{"use strict";var t=function(){function e(e){var t,n;n=void 0,(t="_uri")in this?Object.defineProperty(this,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[t]=n,this._uri=e}return e.prototype.toString=function(){return this._uri},e}();e.exports=t},8106:(e,t,n)=>{"use strict";var r=n(7329),o=n(6835),a="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",i="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+a+i+"]"),l=new RegExp("["+a+i+"]");function c(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=c(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function d(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function p(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),d(e,t)}var f={firstStrongChar:c,firstStrongCharDir:u,resolveBlockDir:d,getDirection:p,isDirectionLTR:function(e,t){return p(e,t)===r.LTR},isDirectionRTL:function(e,t){return p(e,t)===r.RTL}};e.exports=f},7329:(e,t,n)=>{"use strict";var r=n(6835),o="LTR",a=null;function i(e){return e===o||"RTL"===e}function s(e){return i(e)||r(!1),e===o?"ltr":"rtl"}function l(e){a=e}var c={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:i,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1),i(t)||r(!1),e===t?null:s(e)},setGlobalDir:l,initGlobalDir:function(){l(o)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1),a}};e.exports=c},8559:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8106),a=n(7329),i=n(6835),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?a.isStrong(e)||i(!1):e=a.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=o.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=s},9031:(e,t,n)=>{"use strict";var r=n(6835),o=/[\uD800-\uDFFF]/;function a(e){return 55296<=e&&e<=57343}function i(e){return o.test(e)}function s(e,t){return 1+a(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!i(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o=r)return""}else if(t<0){for(o=r;t<0&&00&&a{"use strict";var r=n(6267),o=n(4462),a=n(9194),i=n(8824);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=r?r(a):a,o.contains(a,t))}function l(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var c={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,l)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=a(c,i)},6267:(e,t,n)=>{"use strict";var r,o="Unknown",a=(new(n(2603))).getResult(),i=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(a.browser.version),s={browserArchitecture:a.cpu.architecture||o,browserFullVersion:a.browser.version||o,browserMinorVersion:i.minor||o,browserName:a.browser.name||o,browserVersion:a.browser.major||o,deviceName:a.device.model||o,engineName:a.engine.name||o,engineVersion:a.engine.version||o,platformArchitecture:a.cpu.architecture||o,platformName:(r=a.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:a.os.version||o,platformFullVersion:a.os.version||o};e.exports=s},4462:(e,t,n)=>{"use strict";var r=n(6835),o=/\./,a=/\|\|/,i=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,l=/^(\d*)(.*)/;function c(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),a=p(e),i=a.modifier,s=a.rangeComponents;switch(i){case"<":return u(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return d(r,s);case">":return 1===v(r,s);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,a=parseInt(r[o],10);return f(a)&&(r[o]=a+1+""),d(e,n)&&u(e,r)}(r,s);default:return function(e,t){return 0===v(e,t)}(r,s)}}function u(e,t){return-1===v(e,t)}function d(e,t){var n=v(e,t);return 1===n||0===n}function p(e){var t=e.split(o),n=t[0].match(s);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function f(e){return!isNaN(e)&&isFinite(e)}function h(e){return!p(e).modifier}function m(e,t){for(var n=e.length;nt?1:e1?n.some((function(e){return b.contains(e,t)})):function(e,t){var n=e.split(i);if(n.length>0&&n.length<=2||r(!1),1===n.length)return c(n[0],t);var o=n[0],a=n[1];return h(o)&&h(a)||r(!1),c(">="+o,t)&&c("<="+a,t)}(e=n[0].trim(),t)}(e.trim(),t.trim())}};e.exports=b},227:e=>{"use strict";var t=/-(.)/g;e.exports=function(e){return e.replace(t,(function(e,t){return t.toUpperCase()}))}},2462:(e,t,n)=>{"use strict";var r=n(2832);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},4655:(e,t,n)=>{"use strict";var r=n(6835);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o{"use strict";function t(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(t).join(" "):Array.prototype.map.call(arguments,t).join(" ")}},7546:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},2533:e=>{"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},6503:e=>{"use strict";var t="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:t||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},5384:(e,t,n)=>{"use strict";var r=n(9385);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},9385:(e,t,n)=>{"use strict";var r=n(2462);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},1489:(e,t,n)=>{"use strict";var r=n(6503),o=n(3001);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),a=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,s)),n}},7367:(e,t,n)=>{"use strict";var r=n(227),o=n(2439);function a(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return a(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return a(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?a("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):a(e.style&&e.style[r(t)])}},3001:e=>{"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},2400:e=>{"use strict";function t(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function n(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function r(){return{width:window.innerWidth||t(),height:window.innerHeight||n()}}r.withoutScrollbars=function(){return{width:t(),height:n()}},e.exports=r},2439:e=>{"use strict";var t=/([A-Z])/g;e.exports=function(e){return e.replace(t,"-$1").toLowerCase()}},6835:e=>{"use strict";e.exports=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o{"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},2832:(e,t,n)=>{"use strict";var r=n(5807);e.exports=function(e){return r(e)&&3==e.nodeType}},5463:e=>{"use strict";e.exports=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=function(e,n,r){if(!e)return null;var o={};for(var a in e)t.call(e,a)&&(o[a]=n.call(r,e[a],a,e));return o}},8824:e=>{"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},1799:e=>{"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},5258:(e,t,n)=>{"use strict";n(6080),e.exports=n.g.setImmediate},2775:(e,t,n)=>{"use strict";var r=n(7546);e.exports=r},1777:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(1777);e.exports=Function.prototype.bind||r},211:(e,t,n)=>{"use strict";var r,o=n(2430),a=n(9183),i=n(3482),s=n(7570),l=n(9898),c=n(7388),u=n(7379),d=n(4585),p=n(2276),f=n(2153),h=n(457),m=n(1179),g=n(5985),y=Function,v=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},b=n(3492),w=n(9173),E=function(){throw new u},x=b?function(){try{return E}catch(e){try{return b(arguments,"callee").get}catch(e){return E}}}():E,C=n(7657)(),_=n(1449),S="function"==typeof Reflect&&Reflect.getPrototypeOf||o.getPrototypeOf||_,O=n(7987),k=n(4151),N={},M="undefined"!=typeof Uint8Array&&S?S(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&S?S([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":N,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&S?S(S([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&S?S((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&S?S((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&S?S(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":x,"%TypedArray%":M,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":w,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g};if(S)try{null.error}catch(e){var D=S(S(e));A["%Error.prototype%"]=D}var I=function e(t){var n;if("%AsyncFunction%"===t)n=v("async function () {}");else if("%GeneratorFunction%"===t)n=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=v("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&S&&(n=S(o.prototype))}return A[t]=n,n},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(3583),L=n(9914),P=T.call(k,Array.prototype.concat),R=T.call(O,Array.prototype.splice),F=T.call(k,String.prototype.replace),B=T.call(k,String.prototype.slice),z=T.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,H=function(e,t){var n,r=e;if(L(j,r)&&(r="%"+(n=j[r])[0]+"%"),L(A,r)){var o=A[r];if(o===N&&(o=I(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=B(e,0,1),n=B(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,q,(function(e,t,n,o){r[r.length]=n?F(o,U,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=H("%"+r+"%",t),a=o.name,i=o.value,s=!1,l=o.alias;l&&(r=l[0],R(n,P([0,1],l)));for(var d=1,p=!0;d=n.length){var g=b(i,f);i=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:i[f]}else p=L(i,f),i=i[f];p&&!s&&(A[a]=i)}}return i}},668:(e,t,n)=>{"use strict";e.exports=n(6497),e.exports=n(4680)},4680:(e,t,n)=>{"use strict";n.d(t,{BuilderProvider:()=>Ne,FormBuilder:()=>Ho,GenericInput:()=>jt,isArray:()=>te,isObject:()=>ne,merge:()=>pe,useBuilder:()=>Re,useBuilderContext:()=>Me,useOptions:()=>Ae,validFieldProps:()=>ue,valueExists:()=>re,when:()=>be,withLabel:()=>Ze,wpFetch:()=>Z});var r=n(1609),o=n.n(r);const a=window.wp.data;var i=n(7723),s=n(3867),l=n.n(s),c=n(1455),u=n.n(c);const d=window.lodash,p=window.wp.date,f=window.moment;var h=n.n(f),m=n(2619),g=n(7500),y=n.n(g),v=(n(1419),n(8552)),b=n(6427),w=n(3042),E=n.n(w),x=n(4417),C=n(1330),_=n(6253),S=n.n(_),O=n(3622),k=n.n(O);const N=window.wp.mediaUtils;var M,A=n(3291),D=n.n(A),I=n(1336),j=new Uint8Array(16);function T(){if(!M&&!(M="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return M(j)}const L=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var P=[],R=0;R<256;++R)P.push((R+256).toString(16).substr(1));const F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(P[e[t+0]]+P[e[t+1]]+P[e[t+2]]+P[e[t+3]]+"-"+P[e[t+4]]+P[e[t+5]]+"-"+P[e[t+6]]+P[e[t+7]]+"-"+P[e[t+8]]+P[e[t+9]]+"-"+P[e[t+10]]+P[e[t+11]]+P[e[t+12]]+P[e[t+13]]+P[e[t+14]]+P[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&L.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},B=function(e,t,n){var r=(e=e||{}).random||(e.rng||T)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return F(r)};var z=n(726);z.domToReact,z.htmlToDOM,z.attributesToProps,z.Comment,z.Element,z.ProcessingInstruction,z.Text;const q=z;var U=n(5798),H=n(5795);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t,n){return(t=function(e){return e=function(e){if("object"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=V(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==V(e)?e:e+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt.priority?1:-1}))},le=function(e,t){var n=t,r=e;if(!J(e)){e.persist&&e.persist();var o=(e=e.target||e.currentTarget).type,a=e.value,i=e.checked,s=e.multiple;switch(n=t||e.name,o){case"number":case"range":r=parseFloat(a);break;case"checkbox":r=s?a:i;break;default:r=a}}return{field:n,val:r}},ce=function(e,t,n){for(var r=(0,d.clone)(e),o=r,a=0,i=(0,d.toPath)(t);at},gte:function(e,t,n){return he(n,e)>=t},lt:function(e,t,n){return he(n,e){var r;return n||(r=function(e){var t=ct.get(e)||0;return ct.set(e,t+1),t}(e),t?t+"-"+r:r)}),[e])}var dt=function(e){var t=Me(),n=e.fields,o=e.onChange,a=e.index,i=e.parent,s=(u=Se((0,r.useState)(e.isCollapsed),2))[0],l=u[1],c=ut(dt),u=(u=(null==(u=null==(u=t.values)||null==(u=u[i])?void 0:u[a])?void 0:u.title)||(null==u?void 0:u.post_title)||(null==u?void 0:u.username)||(null==u?void 0:u.plugin_theme_name))?u.length<40?u:u.substr(0,40)+"...":"";return(0,r.useEffect)((function(){t.setFieldValue([i,a,"isCollapsed"],s)}),[s]),(0,r.createElement)("div",{className:"wprf-repeater-field"},(0,r.createElement)("div",{className:"wprf-repeater-field-title",onClick:function(){return l(!s)}},(0,r.createElement)("h4",null,(0,r.createElement)(b.Icon,{icon:"move"}),e.index+1,": ",u),(0,r.createElement)("div",{className:"wprf-repeater-field-controls"},(0,r.createElement)(b.Icon,{onClick:function(t){null!=t&&t.stopPropagation(),e.clone(e.index)},icon:"admin-page"}),(0,r.createElement)(b.Icon,{onClick:function(t){null!=t&&t.stopPropagation(),e.remove(e.index)},icon:"trash"}))),!s&&(0,r.createElement)("div",{className:"wprf-repeater-inner-field"},n.map((function(e,t){return(0,r.createElement)(Ot,_e({key:"field-".concat(a,"-").concat(t)},e,{id:"field-".concat(c,"-").concat(a,"-").concat(t),index:a,parenttype:"repeater",parent:i,onChange:function(e){return o(e,a)}}))}))))};function pt(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function ft(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=i}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-checkbox-wrapper wprf-control"},(0,r.createElement)(ze,null,c.map((function(n){return(0,r.createElement)(qe,{key:n.value,column:u.column},(0,r.createElement)(Ct,xt(xt({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?i:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(jt,xt(xt({},e),{},{type:"checkbox"}))})),St=function(e){if(!e.type||0===e.type.length)throw console.error(e),new Error((0,i.__)("Field must have a #type. see documentation.","betterdocs"));switch(e.type){case"text":case"radio":case"email":case"range":case"number":case"hidden":return(0,r.createElement)(Tt,e);case"checkbox":return(0,r.createElement)(_t,e);case"textarea":return(0,r.createElement)(Do,e);case"codeviewer":return(0,r.createElement)(rt,e);case"copy-to-clipboard":return(0,r.createElement)(st,e);case"message":return(0,r.createElement)(Rt,e);case"select":return(0,r.createElement)(Oo,e);case"checkbox-select":return(0,r.createElement)(tt,e);case"select-async":return(0,r.createElement)(ko,e);case"slider":return(0,r.createElement)(No,e);case"group":return(0,r.createElement)(Mt,e);case"radio-card":return(0,r.createElement)(Ut,e);case"section":return(0,r.createElement)(Xt,e);case"date":return(0,r.createElement)(lt,e);case"toggle":return(0,r.createElement)(Lo,e);case"colorpicker":return(0,r.createElement)(ot,e);case"jsonuploader":return(0,r.createElement)(Lt,e);case"repeater":return(0,r.createElement)(Kt,e);case"media":return(0,r.createElement)(Pt,e);case"editor":return(0,r.createElement)(bt,e);case"action":return(0,r.createElement)(Xe,e);case"button":return(0,r.createElement)(et,e);case"modal":return(0,r.createElement)(Ft,e);case"tab":return(0,r.createElement)(zo,e);case"responsive-number":return(0,r.createElement)(Qt,e);default:var t=(0,m.applyFilters)("custom_field","",e.type,e);return(0,r.createElement)(r.Fragment,null,t)}},Ot=Je(St,!0),kt=Je(St),Nt=["name","fields"],Mt=Ze((function(e){var t,n,o,a,s=e.name,l=e.fields,c=Oe(e,Nt);if(l&&te(l)&&0!==l.length)return t=Me(),n=(0,r.useCallback)((function(e){e.persist&&e.persist();var n=(e=le(e)).field;t.setFieldValue([s,n],e.val)}),[e.value]),o=se(l),(0,r.useEffect)((function(){t.setFormField([].concat(Y(e.parentIndex),["fields"]),o)}),[]),l=o.map((function(t,o){return o=[].concat(Y(e.parentIndex),["fields",o]),(0,r.createElement)(Ot,_e({},c,{key:t.name,index:e.index,onChange:n},t,{parenttype:"group",parent:s,parentIndex:o}))})),a=y()("wprf-group-control-inner",{"wprf-display-inline":"inline"===(null==e?void 0:e.display)}),(0,r.createElement)("div",{className:"wprf-group-control"},(0,r.createElement)("div",{className:a},l));throw new Error((0,i.__)("You should give a #fields arguments to a group field.","betterdocs"))}));function At(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function Dt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n{var t,n=function(e,t){var n,r,o,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(i=function(e,t){var n;if(e)return"string"==typeof e?$t(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(document.cookie.split("; "));try{for(n.s();!(t=n.n()).done;){var r=Se(t.value.split("="),2);if("betterdocs_insights_allowed"===r[0])return decodeURIComponent(r[1])}}catch(e){n.e(e)}finally{n.f()}return null})("betterdocs_insights_allowed");d(t&&(p||n))}),[e.active,e.fields,p]),(0,r.useEffect)((function(){var e;a.setFieldValue("active_tab",null==a||null==(e=a.config)?void 0:e.active)}),[e.active]),(0,r.createElement)("div",{className:"wprf-stepped-button"},e.config.buttons&&Object.keys(e.config.buttons).map((function(n,a){return(0,r.createElement)(o().Fragment,{key:"button_".concat(n,"_").concat(a)},"skip"===n&&void 0!==i&&(0,r.createElement)(b.Button,{className:"wprf-btn wprf-step-btn-".concat(n),onClick:function(){return t(n)}},null==(a=e.config.buttons)?void 0:a[n]),"start"===n&&void 0===l&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-next"},(0,r.createElement)(kt,{type:"button",ajax:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.ajax,name:"step-button",onClick:function(){return t(n)},text:"object"===V(null==(a=e.config.buttons)?void 0:a[n])?(null==e?void 0:e.active)===(null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.condition)?null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.customName:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.name:null==(a=e.config.buttons)?void 0:a[n]})),("next"===n&&void 0!==i&&void 0!==l||"prev"===n&&void 0!==l)&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-".concat(n," ").concat("prev"===n&&u?"disabled":"")},(0,r.createElement)(kt,{type:"button",ajax:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.ajax,name:"step-button",disabled:"prev"===n&&u,onClick:function(){return t(n)},text:"object"===V(null==(a=e.config.buttons)?void 0:a[n])?(null==e?void 0:e.active)===(null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.condition)?null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.customName:null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.name:null==(a=e.config.buttons)?void 0:a[n]})),void 0===i&&(null==(a=e.config.buttons)||null==(a=a[n])?void 0:a.type)&&(0,r.createElement)(kt,null==(a=e.config.buttons)?void 0:a[n]))})))})),Jt=function(e){e=_e({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));var t=Me(),n=(null==e?void 0:e.label)||(0,i.__)("Save Changes","betterdocs");return t.isSubmitting&&(n=null!=(e=null==e?void 0:e.loadingLabel)?e:"Saving..."),e=(0,r.useCallback)((function(e){var n;null!=(n=t.submit)&&n.onSubmit&&t.submit.onSubmit(e,t)}),[t]),(0,r.createElement)("div",{className:"wprf-submit wprf-control"},(0,r.createElement)(b.Button,{disabled:null==t?void 0:t.isSubmitting,className:"wprf-submit-button",onClick:e},n))},Xt=o().memo((function(e){var t=void 0!==(t=e.searchable)&&t,n=e.searchNotFoundMessage,o=void 0===(o=e.searchPlaceholder)?"Search...":o,a=Me(),i=(h=Se((0,r.useState)(null!=(h=e.collapsed)&&h),2))[0],s=h[1],l=(h=Se((0,r.useState)([]),2))[0],c=h[1],u=(h=Se((0,r.useState)([]),2))[0],d=h[1],p=(h=Se((0,r.useState)(""),2))[0],f=h[1],h=((0,r.useEffect)((function(){var t=se(e.fields);a.setFormField([].concat(Y(e.parentIndex),["fields"]),t),t=t.map((function(t,n){return n=[].concat(Y(e.parentIndex),["fields",n]),(0,r.createElement)(kt,_e({key:t.name},t,{parentIndex:n}))})),c(t),d(t)}),[]),(0,r.useEffect)((function(){var e;p?(e=l.filter((function(e){return null==e||null==(e=e.props)||null==(e=e.label)||null==(e=e.toLowerCase())?void 0:e.includes(p.toLowerCase())})),d(e)):d(l)}),[p,l]),y()("wprf-control-section",null==e?void 0:e.classes,null==e?void 0:e.name,{"wprf-section-collapsed":(null==e?void 0:e.collapsible)&&i}));return(0,r.createElement)("div",{id:null==e?void 0:e.name,className:h},e.placeholder&&(0,r.createElement)("div",{className:"wprf-section-title"},(0,r.createElement)("h4",null,e.placeholder),e.collapsible&&(0,r.createElement)("button",{onClick:function(){return s(!i)}},"Icon")),t?(0,r.createElement)("div",{className:"wprf-section-fields"},(0,r.createElement)("div",{className:"wprf-section-search-form"},(0,r.createElement)("span",{className:"wprf-section-search"},(0,r.createElement)("input",{type:"text",name:"",id:"",placeholder:o,onChange:function(e){f(null==e||null==(e=e.target)?void 0:e.value)},value:p}))),(0,r.createElement)("div",{className:"wprf-section-search-results"},null!=u&&u.length?u:(0,r.createElement)("div",{className:"wprf-result-not-found",dangerouslySetInnerHTML:{__html:null!=n?n:"Not found!"}}))):(0,r.createElement)("div",{className:"wprf-section-fields"},u),e.showSubmit&&(0,r.createElement)(Jt,a.submit),e.showSteps&&(0,r.createElement)(Zt,{fields:a.tabs,active:a.config.active,setActive:a.setActiveTab,config:null!=(h=a.config.step)?h:{show:!1}}))})),en="top",tn="bottom",nn="right",rn="left",on="auto",an=[en,tn,nn,rn],sn="start",ln="end",cn="viewport",un="popper",dn=an.reduce((function(e,t){return e.concat([t+"-"+sn,t+"-"+ln])}),[]),pn=[].concat(an,[on]).reduce((function(e,t){return e.concat([t,t+"-"+sn,t+"-"+ln])}),[]),fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function hn(e){return e?(e.nodeName||"").toLowerCase():null}function mn(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function gn(e){return e instanceof mn(e).Element||e instanceof Element}function yn(e){return e instanceof mn(e).HTMLElement||e instanceof HTMLElement}function vn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof mn(e).ShadowRoot||e instanceof ShadowRoot)}var bn={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];yn(o)&&hn(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{};e=Object.keys((t.styles.hasOwnProperty(e)?t.styles:n)[e]).reduce((function(e,t){return e[t]="",e}),{}),yn(r)&&hn(r)&&(Object.assign(r.style,e),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var En=Math.max,xn=Math.min,Cn=Math.round;function Sn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function On(){return!/^((?!chrome|android).)*safari/i.test(Sn())}function kn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;return t&&yn(e)&&(o=0m[C]&&(S=Yn(S)),x=Yn(S),C=[],o&&C.push(_[E]<=0),a&&C.push(_[S]<=0,_[x]<=0),C.every((function(e){return e}))){v=w,y=!1;break}g.set(w,C)}if(y)for(var O=d?3:1;0{var t=f.find((function(t){if(t=g.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return v=t,"break"})(O);O--);t.placement!==v&&(t.modifiersData[e]._skip=!0,t.placement=v,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sr(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lr(e){return[en,nn,tn,rn].some((function(t){return 0<=e[t]}))}var cr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=(e=e.name,t.rects.reference),r=t.rects.popper,o=t.modifiersData.preventOverflow,a=ar(t,{elementContext:"reference"}),i=ar(t,{altBoundary:!0});a=sr(a,n),n=sr(i,r,o),i=lr(a),r=lr(n),t.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:n,isReferenceHidden:i,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":i,"data-popper-escaped":r})}},ur={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.name,r=void 0===(e=e.options.offset)?[0,0]:e,o=(e=pn.reduce((function(e,n){return e[n]=function(e,t,n){var r=wn(e),o=0<=[rn,en].indexOf(r)?-1:1;return e=(t="function"==typeof n?n(Object.assign({},t,{placement:e})):n)[0]||0,n=(t[1]||0)*o,0<=[rn,nn].indexOf(r)?{x:n,y:e}:{x:e,y:n}}(n,t.rects,r),e}),{}),(a=e[t.placement]).x),a=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=a),t.modifiersData[n]=e}},dr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=or({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},pr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,n,r,o,a,i,s,l,c,u=e.state,d=e.options,p=(e=e.name,void 0===(p=d.mainAxis)||p),f=void 0!==(f=d.altAxis)&&f,h=void 0===(h=d.tether)||h,m=void 0===(m=d.tetherOffset)?0:m,g=(d=ar(u,{boundary:d.boundary,rootBoundary:d.rootBoundary,padding:d.padding,altBoundary:d.altBoundary}),wn(u.placement)),y=qn(u.placement),v=!y,b=Pn(g),w=function(e){return"x"===e?"y":"x"}(b),E=u.modifiersData.popperOffsets,x=u.rects.reference,C=u.rects.popper,_=(m="number"==typeof(m="function"==typeof m?m(Object.assign({},u.rects,{placement:u.placement})):m)?{mainAxis:m,altAxis:m}:Object.assign({mainAxis:0,altAxis:0},m),u.modifiersData.offset?u.modifiersData.offset[u.placement]:null),S={x:0,y:0};E&&(p&&(p="y"===b?"height":"width",l=(t=E[b])+d[o="y"===b?en:rn],c=t-d[n="y"===b?tn:nn],r=h?-C[p]/2:0,i=(y===sn?x:C)[p],y=y===sn?-C[p]:-x[p],s=u.elements.arrow,s=h&&s?Nn(s):{width:0,height:0},o=(a=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[o],a=a[n],n=Rn(0,x[p],s[p]),s=v?x[p]/2-r-n-o-m.mainAxis:i-n-o-m.mainAxis,i=v?-x[p]/2+r+n+a+m.mainAxis:y+n+a+m.mainAxis,v=(o=u.elements.arrow&&Ln(u.elements.arrow))?"y"===b?o.clientTop||0:o.clientLeft||0:0,y=t+i-(r=null!=(p=null==_?void 0:_[b])?p:0),n=Rn(h?xn(l,t+s-r-v):l,t,h?En(c,y):c),E[b]=n,S[b]=n-t),f&&(a="y"===w?"height":"width",i=(o=E[w])+d["x"===b?en:rn],p=o-d["x"===b?tn:nn],s=-1!==[en,rn].indexOf(g),v=null!=(r=null==_?void 0:_[w])?r:0,l=s?i:o-x[a]-C[a]-v+m.altAxis,y=s?o+x[a]+C[a]-v-m.altAxis:p,c=h&&s?function(e,t,n){return n<(e=Rn(e,t,n))?n:e}(l,o,y):Rn(h?l:i,o,h?y:p),E[w]=c,S[w]=c-o),u.modifiersData[e]=S)},requiresIfExists:["offset"]};function fr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hr(e,t,n){void 0===n&&(n=!1);var r=yn(t),o=yn(t)&&function(e){var t=e.getBoundingClientRect(),n=Cn(t.width)/e.offsetWidth||1;return t=Cn(t.height)/e.offsetHeight||1,1!==n||1!==t}(t),a=In(t),i=(e=kn(e,o,n),o={scrollLeft:0,scrollTop:0},{x:0,y:0});return!r&&n||("body"===hn(t)&&!Xn(a)||(o=function(e){return(e!==mn(e)&&yn(e)?fr:Zn)(e)}(t)),yn(t)?((i=kn(t,!0)).x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=Jn(a))),{x:e.left+o.scrollLeft-i.x,y:e.top+o.scrollTop-i.y,width:e.width,height:e.height}}function mr(e){var t;return function(){return t=t||new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))}}var gr={placement:"bottom",modifiers:[],strategy:"absolute"};function yr(){for(var e=arguments.length,t=new Array(e),n=0;n or tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" ")))},hide:function(){var e,t=!E.state.isVisible,n=E.state.isDestroyed,r=!E.state.isEnabled,o=Nr(E.props.duration,1,Jr.duration);t||n||r||(A("onHide",[E],!1),!1!==E.props.onHide(E)&&(E.state.isVisible=!1,E.state.isShown=!1,h=y=!1,_()&&(c.style.visibility="hidden"),j(),F(),M(!0),_()&&(n=(t=k()).box,r=t.content,E.props.animation)&&(Fr([n,r],o),Br([n,r],"hidden")),D(),I(),E.props.animation?_()&&(e=E.unmount,B(o,(function(){!E.state.isVisible&&c.parentNode&&c.parentNode.contains(c)&&e()}))):E.unmount()))},hideWithInteractivity:function(e){O().addEventListener("mousemove",b),jr(lo,b),b(e)},enable:function(){E.state.isEnabled=!0},disable:function(){E.hide(),E.state.isEnabled=!1},unmount:function(){E.state.isVisible&&E.hide(),E.state.isMounted&&(Q(),$().forEach((function(e){e._tippy.unmount()})),c.parentNode&&c.parentNode.removeChild(c),co=co.filter((function(e){return e!==E})),E.state.isMounted=!1,A("onHidden",[E]))},destroy:function(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),U(),delete e._tippy,E.state.isDestroyed=!0,A("onDestroy",[E]))}};return!!f.render&&(t=f.render(E),c=t.popper,u=t.onUpdate,c.setAttribute("data-tippy-root",""),c.id="tippy-"+E.id,E.popper=c,e._tippy=E,c._tippy=E,d=w.map((function(e){return e.fn(E)})),p=e.hasAttribute("aria-expanded"),q(),I(),M(),A("onCreate",[E]),f.showOnCreate&&Z(),c.addEventListener("mouseenter",(function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()})),c.addEventListener("mouseleave",(function(){E.props.interactive&&0<=E.props.trigger.indexOf("mouseenter")&&O().addEventListener("mousemove",b)}))),E;function x(){var e=E.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===x()[0]}function _(){var e;return null!=(e=E.props.render)&&e.$$tippy}function S(){return l||e}function O(){var e=S().parentNode;return e?function(e){var t;return null!=(e=Ir(e)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}(e):document}function k(){return ao(c)}function N(e){return E.state.isMounted&&!E.state.isVisible||Ur.isTouch||a&&"focus"===a.type?0:Nr(E.props.delay,e?0:1,Jr.delay)}function M(e){void 0===e&&(e=!1),c.style.pointerEvents=E.props.interactive&&!e?"":"none",c.style.zIndex=""+E.props.zIndex}function A(e,t,n){void 0===n&&(n=!0),d.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(n=E.props)[e].apply(n,t)}function D(){var t,n,r=E.props.aria;r.content&&(t="aria-"+r.content,n=c.id,Ir(E.props.triggerTarget||e).forEach((function(e){var r=e.getAttribute(t);E.state.isVisible?e.setAttribute(t,r?r+" "+n:n):(r=r&&r.replace(n,"").trim())?e.setAttribute(t,r):e.removeAttribute(t)})))}function I(){!p&&E.props.aria.expanded&&Ir(E.props.triggerTarget||e).forEach((function(e){E.props.interactive?e.setAttribute("aria-expanded",E.state.isVisible&&e===S()?"true":"false"):e.removeAttribute("aria-expanded")}))}function j(){O().removeEventListener("mousemove",b),lo=lo.filter((function(e){return e!==b}))}function T(t){if(!Ur.isTouch||!g&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!E.props.interactive||!qr(c,n)){if(Ir(E.props.triggerTarget||e).some((function(e){return qr(e,n)}))){if(Ur.isTouch)return;if(E.state.isVisible&&0<=E.props.trigger.indexOf("click"))return}else A("onClickOutside",[E,t]);!0===E.props.hideOnClick&&(E.clearDelayTimeouts(),E.hide(),m=!0,setTimeout((function(){m=!1})),E.state.isMounted||F())}}}function L(){g=!0}function P(){g=!1}function R(){var e=O();e.addEventListener("mousedown",T,!0),e.addEventListener("touchend",T,Or),e.addEventListener("touchstart",P,Or),e.addEventListener("touchmove",L,Or)}function F(){var e=O();e.removeEventListener("mousedown",T,!0),e.removeEventListener("touchend",T,Or),e.removeEventListener("touchstart",P,Or),e.removeEventListener("touchmove",L,Or)}function B(e,t){var n=k().box;function r(e){e.target===n&&(zr(n,"remove",r),t())}if(0===e)return t();zr(n,"remove",i),zr(n,"add",r),i=r}function z(t,n,r){void 0===r&&(r=!1),Ir(E.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function q(){C()&&(z("touchstart",H,{passive:!0}),z("touchend",K,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(E.props.trigger).forEach((function(e){if("manual"!==e)switch(z(e,H),e){case"mouseenter":z("mouseleave",K);break;case"focus":z(Yr?"focusout":"blur",G);break;case"focusin":z("focusout",G)}}))}function U(){v.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),v=[]}function H(e){var t,n=!1;!E.state.isEnabled||W(e)||m||(t="focus"===(null==a?void 0:a.type),l=(a=e).currentTarget,I(),!E.state.isVisible&&function(e){return Mr(e,"MouseEvent")}(e)&&lo.forEach((function(t){return t(e)})),"click"===e.type&&(E.props.trigger.indexOf("mouseenter")<0||h)&&!1!==E.props.hideOnClick&&E.state.isVisible?n=!0:Z(e),"click"===e.type&&(h=!n),n&&!t&&J(e))}function V(e){var t=e.target;t=S().contains(t)||c.contains(t),"mousemove"===e.type&&t||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t,o,a,i=e.popperRect,s=e.popperState,l=(e=e.props.interactiveBorder,function(e){return e.split("-")[0]}(s.placement));return!(s=s.modifiersData.offset)||(t="bottom"===l?s.top.y:0,o="top"===l?s.bottom.y:0,a="right"===l?s.left.x:0,l="left"===l?s.right.x:0,s=i.top-r+t>e,t=r-i.bottom-o>e,o=i.left-n+a>e,a=n-i.right-l>e,s)||t||o||a}))}($().concat(c).map((function(e){var t=null==(t=e._tippy.popperInstance)?void 0:t.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:f}:null})).filter(Boolean),e)&&(j(),J(e))}function K(e){W(e)||0<=E.props.trigger.indexOf("click")&&h||(E.props.interactive?E.hideWithInteractivity(e):J(e))}function G(e){E.props.trigger.indexOf("focusin")<0&&e.target!==S()||E.props.interactive&&e.relatedTarget&&c.contains(e.relatedTarget)||J(e)}function W(e){return!!Ur.isTouch&&C()!==0<=e.type.indexOf("touch")}function Y(){Q();var t=(a=E.props).popperOptions,n=a.placement,r=a.offset,o=a.getReferenceClientRect,a=a.moveTransition,i=_()?ao(c).arrow:null;o=o?{getBoundingClientRect:o,contextElement:o.contextElement||S()}:e,r=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state;_()&&(t=k().box,["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?t.setAttribute("data-placement",n.placement):n.attributes.popper["data-popper-"+e]?t.setAttribute("data-"+e,""):t.removeAttribute("data-"+e)})),n.attributes.popper={})}}],_()&&i&&r.push({name:"arrow",options:{element:i,padding:3}}),r.push.apply(r,(null==t?void 0:t.modifiers)||[]),E.popperInstance=xr(o,c,Object.assign({},t,{placement:n,onFirstUpdate:s,modifiers:r}))}function Q(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function $(){return Tr(c.querySelectorAll("[data-tippy-root]"))}function Z(e){E.clearDelayTimeouts(),e&&A("onTrigger",[E,e]),R(),e=N(!0);var t=(r=x())[0],r=r[1];(e=Ur.isTouch&&"hold"===t&&r?r:e)?n=setTimeout((function(){E.show()}),e):E.show()}function J(e){E.clearDelayTimeouts(),A("onUntrigger",[E,e]),E.state.isVisible?0<=E.props.trigger.indexOf("mouseenter")&&0<=E.props.trigger.indexOf("click")&&0<=["mouseleave","mousemove"].indexOf(e.type)&&h||((e=N(!1))?r=setTimeout((function(){E.state.isVisible&&E.hide()}),e):o=requestAnimationFrame((function(){E.hide()}))):F()}}(t,r))&&e.push(t),e}),[]),Rr(e)?n[0]:n}function po(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),a=0;a$1"),o=null==(o=e.address)?void 0:o.replace(n,"$1"),(0,r.createElement)(r.Fragment,null,q(t||"")," ",(0,r.createElement)("small",null,q(o||"")))):(0,r.createElement)(r.Fragment,null,e.name?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("b",null,e.name)," "):(0,r.createElement)(r.Fragment,null,e.label," "),e.address&&(0,r.createElement)("small",null,e.address))},value:p,isClearable:!0,isOptionDisabled:function(e){return null==e?void 0:e.disabled},onChange:function(e){return f(e)}}))})),No=function(e){var t,n=e.name,o=e.id,a=e.label,i=e.units,s=e.min,l=e.max,c=e.unit,u=e.reset,d=(t=Se((0,r.useState)(e.value||0),2))[0],p=t[1],f=(t=Se((0,r.useState)(c),2))[0],h=t[1];return(0,r.useEffect)((function(){var t;d&&(function(e){return null!==e&&"number"==typeof e}(d)?t=f?"".concat(d).concat(f):"".concat(d):J(d)&&(t=-1e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=i}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-toggle-wrapper wprf-control"},(0,r.createElement)(ze,null,c.map((function(n){return(0,r.createElement)(qe,{key:n.value,column:u.column},(0,r.createElement)(ht,To(To({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?i:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(ht,e)},Po=function(e){var t=e.fields,n=e.parentIndex,o=e.context,a=(e=Se((0,r.useState)([]),2))[0],i=e[1],s=(e=Se((0,r.useState)([]),2))[0],l=e[1];return(0,r.useEffect)((function(){var e=se(t);o.setFormField([n,"fields"],e),i(e)}),[]),(0,r.useEffect)((function(){var e;te(a)&&0{"use strict";e.exports=Object.getOwnPropertyDescriptor},3492:(e,t,n)=>{"use strict";var r=n(4656);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},7657:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(8123);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},8123:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9914:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(3583);e.exports=a.call(r,o)},1035:(e,t,n)=>{"use strict";var r=n(5959),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},8593:e=>{var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,a=//i,i=//i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;s=l=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();s=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,f="object"==typeof document?document.createElement("template"):{};f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var c,u,d,f,h=e.match(o);switch(h&&h[1]&&(c=h[1].toLowerCase()),c){case t:return u=l(e),a.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),i.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case r:return f=(u=s(e)).querySelectorAll(c),i.test(e)&&a.test(e)?f[0].parentNode.childNodes:f;default:return p?p(e):(d=s(e,r).querySelector(r)).childNodes}}},6374:(e,t,n)=>{var r=n(8593),o=n(7310).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(a);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},7310:(e,t,n)=>{for(var r,o=n(2095),a=n(4523).CASE_SENSITIVE_TAG_NAMES,i=o.Comment,s=o.Element,l=o.ProcessingInstruction,c=o.Text,u={},d=0,p=a.length;d'"&]/g,nonAscii:/[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintable:/[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,nonAsciiPrintableOnly:/[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,extensive:/[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g},u={mode:"specialChars",level:"all",numeric:"decimal"};t.encode=function(e,t){var n=void 0===t?u:t,r=n.mode,o=void 0===r?"specialChars":r,a=n.numeric,d=void 0===a?"decimal":a,p=n.level;if(!e)return"";var f=c[o],h=s[void 0===p?"all":p].characters,m="hexadecimal"===d;return l(e,f,(function(e){var t=h[e];if(!t){var n=e.length>1?i.getCodePoint(e,0):e.charCodeAt(0);t=(m?"&#x"+n.toString(16):"&#"+n)+";"}return t}))};var d={scope:"body",level:"all"},p=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,f=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,h={xml:{strict:p,attribute:f,body:o.bodyRegExps.xml},html4:{strict:p,attribute:f,body:o.bodyRegExps.html4},html5:{strict:p,attribute:f,body:o.bodyRegExps.html5}},m=r(r({},h),{all:h.html5}),g=String.fromCharCode,y=g(65533),v={level:"all"};function b(e,t,n,r){var o=e,s=e[e.length-1];if(n&&"="===s)o=e;else if(r&&";"!==s)o=e;else{var l=t[e];if(l)o=l;else if("&"===e[0]&&"#"===e[1]){var c=e[2],u="x"==c||"X"==c?parseInt(e.substr(3),16):parseInt(e.substr(2));o=u>=1114111?y:u>65535?i.fromCodePoint(u):g(a.numericUnicodeMap[u]||u)}}return o}t.decodeEntity=function(e,t){var n=(void 0===t?v:t).level;return e?b(e,s[void 0===n?"all":n].entities,!1,!1):""},t.decode=function(e,t){var n=void 0===t?d:t,r=n.level,o=void 0===r?"all":r,a=n.scope,i=void 0===a?"xml"===o?"strict":"body":a;if(!e)return"";var c=m[o][i],u=s[o].entities,p="attribute"===i,f="strict"===i;return l(e,c,(function(e){return b(e,u,p,f)}))}},7350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},t.namedReferences={xml:{entities:{"<":"<",">":">",""":'"',"'":"'","&":"&"},characters:{"<":"<",">":">",'"':""","'":"'","&":"&"}},html4:{entities:{"'":"'"," ":" "," ":" ","¡":"¡","¡":"¡","¢":"¢","¢":"¢","£":"£","£":"£","¤":"¤","¤":"¤","¥":"¥","¥":"¥","¦":"¦","¦":"¦","§":"§","§":"§","¨":"¨","¨":"¨","©":"©","©":"©","ª":"ª","ª":"ª","«":"«","«":"«","¬":"¬","¬":"¬","­":"­","­":"­","®":"®","®":"®","¯":"¯","¯":"¯","°":"°","°":"°","±":"±","±":"±","²":"²","²":"²","³":"³","³":"³","´":"´","´":"´","µ":"µ","µ":"µ","¶":"¶","¶":"¶","·":"·","·":"·","¸":"¸","¸":"¸","¹":"¹","¹":"¹","º":"º","º":"º","»":"»","»":"»","¼":"¼","¼":"¼","½":"½","½":"½","¾":"¾","¾":"¾","¿":"¿","¿":"¿","À":"À","À":"À","Á":"Á","Á":"Á","Â":"Â","Â":"Â","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","Å":"Å","Å":"Å","Æ":"Æ","Æ":"Æ","Ç":"Ç","Ç":"Ç","È":"È","È":"È","É":"É","É":"É","Ê":"Ê","Ê":"Ê","Ë":"Ë","Ë":"Ë","Ì":"Ì","Ì":"Ì","Í":"Í","Í":"Í","Î":"Î","Î":"Î","Ï":"Ï","Ï":"Ï","Ð":"Ð","Ð":"Ð","Ñ":"Ñ","Ñ":"Ñ","Ò":"Ò","Ò":"Ò","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","Õ":"Õ","Õ":"Õ","Ö":"Ö","Ö":"Ö","×":"×","×":"×","Ø":"Ø","Ø":"Ø","Ù":"Ù","Ù":"Ù","Ú":"Ú","Ú":"Ú","Û":"Û","Û":"Û","Ü":"Ü","Ü":"Ü","Ý":"Ý","Ý":"Ý","Þ":"Þ","Þ":"Þ","ß":"ß","ß":"ß","à":"à","à":"à","á":"á","á":"á","â":"â","â":"â","ã":"ã","ã":"ã","ä":"ä","ä":"ä","å":"å","å":"å","æ":"æ","æ":"æ","ç":"ç","ç":"ç","è":"è","è":"è","é":"é","é":"é","ê":"ê","ê":"ê","ë":"ë","ë":"ë","ì":"ì","ì":"ì","í":"í","í":"í","î":"î","î":"î","ï":"ï","ï":"ï","ð":"ð","ð":"ð","ñ":"ñ","ñ":"ñ","ò":"ò","ò":"ò","ó":"ó","ó":"ó","ô":"ô","ô":"ô","õ":"õ","õ":"õ","ö":"ö","ö":"ö","÷":"÷","÷":"÷","ø":"ø","ø":"ø","ù":"ù","ù":"ù","ú":"ú","ú":"ú","û":"û","û":"û","ü":"ü","ü":"ü","ý":"ý","ý":"ý","þ":"þ","þ":"þ","ÿ":"ÿ","ÿ":"ÿ",""":'"',""":'"',"&":"&","&":"&","<":"<","<":"<",">":">",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"‌","‍":"‍","‎":"‎","‏":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","⟨":"〈","⟩":"〉","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"},characters:{"'":"'"," ":" ","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©",ª:"ª","«":"«","¬":"¬","­":"­","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´",µ:"µ","¶":"¶","·":"·","¸":"¸","¹":"¹",º:"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿",À:"À",Á:"Á",Â:"Â",Ã:"Ã",Ä:"Ä",Å:"Å",Æ:"Æ",Ç:"Ç",È:"È",É:"É",Ê:"Ê",Ë:"Ë",Ì:"Ì",Í:"Í",Î:"Î",Ï:"Ï",Ð:"Ð",Ñ:"Ñ",Ò:"Ò",Ó:"Ó",Ô:"Ô",Õ:"Õ",Ö:"Ö","×":"×",Ø:"Ø",Ù:"Ù",Ú:"Ú",Û:"Û",Ü:"Ü",Ý:"Ý",Þ:"Þ",ß:"ß",à:"à",á:"á",â:"â",ã:"ã",ä:"ä",å:"å",æ:"æ",ç:"ç",è:"è",é:"é",ê:"ê",ë:"ë",ì:"ì",í:"í",î:"î",ï:"ï",ð:"ð",ñ:"ñ",ò:"ò",ó:"ó",ô:"ô",õ:"õ",ö:"ö","÷":"÷",ø:"ø",ù:"ù",ú:"ú",û:"û",ü:"ü",ý:"ý",þ:"þ",ÿ:"ÿ",'"':""","&":"&","<":"<",">":">",Œ:"Œ",œ:"œ",Š:"Š",š:"š",Ÿ:"Ÿ",ˆ:"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"‌","‍":"‍","‎":"‎","‏":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€",ƒ:"ƒ",Α:"Α",Β:"Β",Γ:"Γ",Δ:"Δ",Ε:"Ε",Ζ:"Ζ",Η:"Η",Θ:"Θ",Ι:"Ι",Κ:"Κ",Λ:"Λ",Μ:"Μ",Ν:"Ν",Ξ:"Ξ",Ο:"Ο",Π:"Π",Ρ:"Ρ",Σ:"Σ",Τ:"Τ",Υ:"Υ",Φ:"Φ",Χ:"Χ",Ψ:"Ψ",Ω:"Ω",α:"α",β:"β",γ:"γ",δ:"δ",ε:"ε",ζ:"ζ",η:"η",θ:"θ",ι:"ι",κ:"κ",λ:"λ",μ:"μ",ν:"ν",ξ:"ξ",ο:"ο",π:"π",ρ:"ρ",ς:"ς",σ:"σ",τ:"τ",υ:"υ",φ:"φ",χ:"χ",ψ:"ψ",ω:"ω",ϑ:"ϑ",ϒ:"ϒ",ϖ:"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄",℘:"℘",ℑ:"ℑ",ℜ:"ℜ","™":"™",ℵ:"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","〈":"⟨","〉":"⟩","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"}},html5:{entities:{"Æ":"Æ","Æ":"Æ","&":"&","&":"&","Á":"Á","Á":"Á","Ă":"Ă","Â":"Â","Â":"Â","А":"А","𝔄":"𝔄","À":"À","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"⁡","Å":"Å","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","ℬ":"ℬ","≎":"≎","Ч":"Ч","©":"©","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","ℭ":"ℭ","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","ⅅ":"ⅅ","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","∯":"∯","¨":"¨","⇓":"⇓","⇐":"⇐","⇔":"⇔","⫤":"⫤","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","⇓":"⇓","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","Ð":"Ð","É":"É","É":"É","Ě":"Ě","Ê":"Ê","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","ℱ":"ℱ","Ѓ":"Ѓ",">":">",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","ℋ":"ℋ","Ħ":"Ħ","≎":"≎","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Í":"Í","Î":"Î","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ì":"Ì","ℑ":"ℑ","Ī":"Ī","ⅈ":"ⅈ","⇒":"⇒","∬":"∬","∫":"∫","⋂":"⋂","⁣":"⁣","⁢":"⁢","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⇐":"⇐","⇔":"⇔","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","⟸":"⟸","⟺":"⟺","⟹":"⟹","𝕃":"𝕃","↙":"↙","↘":"↘","ℒ":"ℒ","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","ℳ":"ℳ","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"​","​":"​","​":"​","​":"​","≫":"≫","≪":"≪"," ":"\n","𝔑":"𝔑","⁠":"⁠"," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Ø":"Ø","Õ":"Õ","Õ":"Õ","⨷":"⨷","Ö":"Ö","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℌ":"ℌ","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∷":"∷","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",""":'"',""":'"',"𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","ℜ":"ℜ","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","⇒":"⇒","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↓":"↓","←":"←","→":"→","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∋":"∋","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","⋑":"⋑","Þ":"Þ","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц"," ":"\t","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":"  "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ù":"Ù","Ū":"Ū","_":"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","↑":"↑","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","⇑":"⇑","⇕":"⇕","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","​":"​","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"⁡","𝔞":"𝔞","à":"à","à":"à","ℵ":"ℵ","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","&":"&","&":"&","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∠":"∠","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","Å":"Å","⍼":"⍼","ą":"ą","𝕒":"𝕒","≈":"≈","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","≈":"≈","≊":"≊","å":"å","å":"å","𝒶":"𝒶","*":"*","≈":"≈","≍":"≍","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"∳","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⌅":"⌅","⎵":"⎵","⎶":"⎶","≌":"≌","б":"б","„":"„","∵":"∵","∵":"∵","⦰":"⦰","϶":"϶","ℬ":"ℬ","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","⋂":"⋂","◯":"◯","⋃":"⋃","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⋁":"⋁","⋀":"⋀","⤍":"⤍","⧫":"⧫","▪":"▪","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⊥":"⊥","⊥":"⊥","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","─":"─","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","‵":"‵","˘":"˘","¦":"¦","¦":"¦","𝒷":"𝒷","⁏":"⁏","∽":"∽","⋍":"⋍","\":"\\","⧅":"⧅","⟈":"⟈","•":"•","•":"•","≎":"≎","⪮":"⪮","≏":"≏","≏":"≏","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","ˇ":"ˇ","⩍":"⩍","č":"č","ç":"ç","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"𝔠","ч":"ч","✓":"✓","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","®":"®","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","≗":"≗","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣","♣":"♣",":":":","≔":"≔","≔":"≔",",":",","@":"@","∁":"∁","∘":"∘","∁":"∁","ℂ":"ℂ","≅":"≅","⩭":"⩭","∮":"∮","𝕔":"𝕔","∐":"∐","©":"©","©":"©","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋞":"⋞","⋟":"⋟","⋎":"⋎","⋏":"⋏","¤":"¤","¤":"¤","↶":"↶","↷":"↷","⋎":"⋎","⋏":"⋏","∲":"∲","∱":"∱","⌭":"⌭","⇓":"⇓","⥥":"⥥","†":"†","ℸ":"ℸ","↓":"↓","‐":"‐","⊣":"⊣","⤏":"⤏","˝":"˝","ď":"ď","д":"д","ⅆ":"ⅆ","‡":"‡","⇊":"⇊","⩷":"⩷","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","⇃":"⇃","⇂":"⇂","⋄":"⋄","⋄":"⋄","♦":"♦","♦":"♦","¨":"¨","ϝ":"ϝ","⋲":"⋲","÷":"÷","÷":"÷","÷":"÷","⋇":"⋇","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍","$":"$","𝕕":"𝕕","˙":"˙","≐":"≐","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌆":"⌆","↓":"↓","⇊":"⇊","⇃":"⇃","⇂":"⇂","⤐":"⤐","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","▾":"▾","⇵":"⇵","⥯":"⥯","⦦":"⦦","џ":"џ","⟿":"⟿","⩷":"⩷","≑":"≑","é":"é","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","ê":"ê","≕":"≕","э":"э","ė":"ė","ⅇ":"ⅇ","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅","∅":"∅","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"≖","≕":"≕","≂":"≂","⪖":"⪖","⪕":"⪕","=":"=","≟":"≟","≡":"≡","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","≐":"≐","≂":"≂","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"€","!":"!","∃":"∃","ℰ":"ℰ","ⅇ":"ⅇ","≒":"≒","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi","fj":"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","∀":"∀","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","½":"½","⅓":"⅓","¼":"¼","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","≧":"≧","⪌":"⪌","ǵ":"ǵ","γ":"γ","ϝ":"ϝ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","≥":"≥","⋛":"⋛","≥":"≥","≧":"≧","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","≫":"≫","⋙":"⋙","ℷ":"ℷ","ѓ":"ѓ","≷":"≷","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪊":"⪊","⪈":"⪈","⪈":"⪈","≩":"≩","⋧":"⋧","𝕘":"𝕘","`":"`","ℊ":"ℊ","≳":"≳","⪎":"⪎","⪐":"⪐",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⪆":"⪆","⥸":"⥸","⋗":"⋗","⋛":"⋛","⪌":"⪌","≷":"≷","≳":"≳","≩︀":"≩︀","≩︀":"≩︀","⇔":"⇔"," ":" ","½":"½","ℋ":"ℋ","ъ":"ъ","↔":"↔","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ℏ":"ℏ","ħ":"ħ","⁃":"⁃","‐":"‐","í":"í","í":"í","⁣":"⁣","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"⇔","𝔦":"𝔦","ì":"ì","ì":"ì","ⅈ":"ⅈ","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ℑ":"ℑ","ℐ":"ℐ","ℑ":"ℑ","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","∈":"∈","℅":"℅","∞":"∞","⧝":"⧝","ı":"ı","∫":"∫","⊺":"⊺","ℤ":"ℤ","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"𝒾","∈":"∈","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","∈":"∈","⁢":"⁢","ĩ":"ĩ","і":"і","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⇚":"⇚","⇐":"⇐","⤛":"⤛","⤎":"⤎","≦":"≦","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"ℒ","λ":"λ","⟨":"⟨","⦑":"⦑","⟨":"⟨","⪅":"⪅","«":"«","«":"«","←":"←","⇤":"⇤","⤟":"⤟","⤝":"⤝","↩":"↩","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","⌈":"⌈","{":"{","л":"л","⤶":"⤶","“":"“","„":"„","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","←":"←","↢":"↢","↽":"↽","↼":"↼","⇇":"⇇","↔":"↔","⇆":"⇆","⇋":"⇋","↭":"↭","⋋":"⋋","⋚":"⋚","≤":"≤","≦":"≦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⪅":"⪅","⋖":"⋖","⋚":"⋚","⪋":"⪋","≶":"≶","≲":"≲","⥼":"⥼","⌊":"⌊","𝔩":"𝔩","≶":"≶","⪑":"⪑","↽":"↽","↼":"↼","⥪":"⥪","▄":"▄","љ":"љ","≪":"≪","⇇":"⇇","⌞":"⌞","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","⎰":"⎰","≨":"≨","⪉":"⪉","⪉":"⪉","⪇":"⪇","⪇":"⪇","≨":"≨","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟦":"⟦","⟵":"⟵","⟷":"⟷","⟼":"⟼","⟶":"⟶","↫":"↫","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","_":"_","◊":"◊","◊":"◊","⧫":"⧫","(":"(","⦓":"⦓","⇆":"⇆","⌟":"⌟","⇋":"⇋","⥭":"⥭","‎":"‎","⊿":"⊿","‹":"‹","𝓁":"𝓁","↰":"↰","≲":"≲","⪍":"⪍","⪏":"⪏","[":"[","‘":"‘","‚":"‚","ł":"ł","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"⋖","⋋":"⋋","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⊴":"⊴","◂":"◂","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","≨︀":"≨︀","∺":"∺","¯":"¯","¯":"¯","♂":"♂","✠":"✠","✠":"✠","↦":"↦","↦":"↦","↧":"↧","↤":"↤","↥":"↥","▮":"▮","⨩":"⨩","м":"м","—":"—","∡":"∡","𝔪":"𝔪","℧":"℧","µ":"µ","µ":"µ","∣":"∣","*":"*","⫰":"⫰","·":"·","·":"·","−":"−","⊟":"⊟","∸":"∸","⨪":"⨪","⫛":"⫛","…":"…","∓":"∓","⊧":"⊧","𝕞":"𝕞","∓":"∓","𝓂":"𝓂","∾":"∾","μ":"μ","⊸":"⊸","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","≫̸":"≫̸","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","≪̸":"≪̸","⇏":"⇏","⊯":"⊯","⊮":"⊮","∇":"∇","ń":"ń","∠⃒":"∠⃒","≉":"≉","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","≉":"≉","♮":"♮","♮":"♮","ℕ":"ℕ"," ":" "," ":" ","≎̸":"≎̸","≏̸":"≏̸","⩃":"⩃","ň":"ň","ņ":"ņ","≇":"≇","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","≠":"≠","⇗":"⇗","⤤":"⤤","↗":"↗","↗":"↗","≐̸":"≐̸","≢":"≢","⤨":"⤨","≂̸":"≂̸","∄":"∄","∄":"∄","𝔫":"𝔫","≧̸":"≧̸","≱":"≱","≱":"≱","≧̸":"≧̸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"≵","≯":"≯","≯":"≯","⇎":"⇎","↮":"↮","⫲":"⫲","∋":"∋","⋼":"⋼","⋺":"⋺","∋":"∋","њ":"њ","⇍":"⇍","≦̸":"≦̸","↚":"↚","‥":"‥","≰":"≰","↚":"↚","↮":"↮","≰":"≰","≦̸":"≦̸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"≮","≴":"≴","≮":"≮","⋪":"⋪","⋬":"⋬","∤":"∤","𝕟":"𝕟","¬":"¬","¬":"¬","∉":"∉","⋹̸":"⋹̸","⋵̸":"⋵̸","∉":"∉","⋷":"⋷","⋶":"⋶","∌":"∌","∌":"∌","⋾":"⋾","⋽":"⋽","∦":"∦","∦":"∦","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","⊀":"⊀","⋠":"⋠","⪯̸":"⪯̸","⊀":"⊀","⪯̸":"⪯̸","⇏":"⇏","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","↛":"↛","⋫":"⋫","⋭":"⋭","⊁":"⊁","⋡":"⋡","⪰̸":"⪰̸","𝓃":"𝓃","∤":"∤","∦":"∦","≁":"≁","≄":"≄","≄":"≄","∤":"∤","∦":"∦","⋢":"⋢","⋣":"⋣","⊄":"⊄","⫅̸":"⫅̸","⊈":"⊈","⊂⃒":"⊂⃒","⊈":"⊈","⫅̸":"⫅̸","⊁":"⊁","⪰̸":"⪰̸","⊅":"⊅","⫆̸":"⫆̸","⊉":"⊉","⊃⃒":"⊃⃒","⊉":"⊉","⫆̸":"⫆̸","≹":"≹","ñ":"ñ","ñ":"ñ","≸":"≸","⋪":"⋪","⋬":"⋬","⋫":"⋫","⋭":"⋭","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","↖":"↖","↖":"↖","⤧":"⤧","Ⓢ":"Ⓢ","ó":"ó","ó":"ó","⊛":"⊛","⊚":"⊚","ô":"ô","ô":"ô","о":"о","⊝":"⊝","ő":"ő","⨸":"⨸","⊙":"⊙","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","ò":"ò","⧁":"⧁","⦵":"⦵","Ω":"Ω","∮":"∮","↺":"↺","⦾":"⦾","⦻":"⦻","‾":"‾","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","⊖":"⊖","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","⊕":"⊕","∨":"∨","↻":"↻","⩝":"⩝","ℴ":"ℴ","ℴ":"ℴ","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ℴ":"ℴ","ø":"ø","ø":"ø","⊘":"⊘","õ":"õ","õ":"õ","⊗":"⊗","⨶":"⨶","ö":"ö","ö":"ö","⌽":"⌽","∥":"∥","¶":"¶","¶":"¶","∥":"∥","⫳":"⫳","⫽":"⫽","∂":"∂","п":"п","%":"%",".":".","‰":"‰","⊥":"⊥","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","ℳ":"ℳ","☎":"☎","π":"π","⋔":"⋔","ϖ":"ϖ","ℏ":"ℏ","ℎ":"ℎ","ℏ":"ℏ","+":"+","⨣":"⨣","⊞":"⊞","⨢":"⨢","∔":"∔","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"⨕","𝕡":"𝕡","£":"£","£":"£","≺":"≺","⪳":"⪳","⪷":"⪷","≼":"≼","⪯":"⪯","≺":"≺","⪷":"⪷","≼":"≼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"⋨","≾":"≾","′":"′","ℙ":"ℙ","⪵":"⪵","⪹":"⪹","⋨":"⋨","∏":"∏","⌮":"⌮","⌒":"⌒","⌓":"⌓","∝":"∝","∝":"∝","≾":"≾","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","⨌":"⨌","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","ℍ":"ℍ","⨖":"⨖","?":"?","≟":"≟",""":'"',""":'"',"⇛":"⇛","⇒":"⇒","⤜":"⤜","⤏":"⤏","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","√":"√","⦳":"⦳","⟩":"⟩","⦒":"⦒","⦥":"⦥","⟩":"⟩","»":"»","»":"»","→":"→","⥵":"⥵","⇥":"⇥","⤠":"⤠","⤳":"⤳","⤞":"⤞","↪":"↪","↬":"↬","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","ℚ":"ℚ","⤍":"⤍","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","⌉":"⌉","}":"}","р":"р","⤷":"⤷","⥩":"⥩","”":"”","”":"”","↳":"↳","ℜ":"ℜ","ℛ":"ℛ","ℜ":"ℜ","ℝ":"ℝ","▭":"▭","®":"®","®":"®","⥽":"⥽","⌋":"⌋","𝔯":"𝔯","⇁":"⇁","⇀":"⇀","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","→":"→","↣":"↣","⇁":"⇁","⇀":"⇀","⇄":"⇄","⇌":"⇌","⇉":"⇉","↝":"↝","⋌":"⋌","˚":"˚","≓":"≓","⇄":"⇄","⇌":"⇌","‏":"‏","⎱":"⎱","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⟧":"⟧","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","⇉":"⇉","›":"›","𝓇":"𝓇","↱":"↱","]":"]","’":"’","’":"’","⋌":"⋌","⋊":"⋊","▹":"▹","⊵":"⊵","▸":"▸","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","‚":"‚","≻":"≻","⪴":"⪴","⪸":"⪸","š":"š","≽":"≽","⪰":"⪰","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","≿":"≿","с":"с","⋅":"⋅","⊡":"⊡","⩦":"⩦","⇘":"⇘","⤥":"⤥","↘":"↘","↘":"↘","§":"§","§":"§",";":";","⤩":"⤩","∖":"∖","∖":"∖","✶":"✶","𝔰":"𝔰","⌢":"⌢","♯":"♯","щ":"щ","ш":"ш","∣":"∣","∥":"∥","­":"­","­":"­","σ":"σ","ς":"ς","ς":"ς","∼":"∼","⩪":"⩪","≃":"≃","≃":"≃","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","←":"←","∖":"∖","⨳":"⨳","⧤":"⧤","∣":"∣","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","♠":"♠","∥":"∥","⊓":"⊓","⊓︀":"⊓︀","⊔":"⊔","⊔︀":"⊔︀","⊏":"⊏","⊑":"⊑","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊐":"⊐","⊒":"⊒","□":"□","□":"□","▪":"▪","▪":"▪","→":"→","𝓈":"𝓈","∖":"∖","⌣":"⌣","⋆":"⋆","☆":"☆","★":"★","ϵ":"ϵ","ϕ":"ϕ","¯":"¯","⊂":"⊂","⫅":"⫅","⪽":"⪽","⊆":"⊆","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⊂":"⊂","⊆":"⊆","⫅":"⫅","⊊":"⊊","⫋":"⫋","⫇":"⫇","⫕":"⫕","⫓":"⫓","≻":"≻","⪸":"⪸","≽":"≽","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"⋩","≿":"≿","∑":"∑","♪":"♪","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"⊃","⫆":"⫆","⪾":"⪾","⫘":"⫘","⊇":"⊇","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⊃":"⊃","⊇":"⊇","⫆":"⫆","⊋":"⊋","⫌":"⫌","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤦":"⤦","↙":"↙","↙":"↙","⤪":"⤪","ß":"ß","ß":"ß","⌖":"⌖","τ":"τ","⎴":"⎴","ť":"ť","ţ":"ţ","т":"т","⃛":"⃛","⌕":"⌕","𝔱":"𝔱","∴":"∴","∴":"∴","θ":"θ","ϑ":"ϑ","ϑ":"ϑ","≈":"≈","∼":"∼"," ":" ","≈":"≈","∼":"∼","þ":"þ","þ":"þ","˜":"˜","×":"×","×":"×","⊠":"⊠","⨱":"⨱","⨰":"⨰","∭":"∭","⤨":"⤨","⊤":"⊤","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","⤩":"⤩","‴":"‴","™":"™","▵":"▵","▿":"▿","◃":"◃","⊴":"⊴","≜":"≜","▹":"▹","⊵":"⊵","◬":"◬","≜":"≜","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","≬":"≬","↞":"↞","↠":"↠","⇑":"⇑","⥣":"⥣","ú":"ú","ú":"ú","↑":"↑","ў":"ў","ŭ":"ŭ","û":"û","û":"û","у":"у","⇅":"⇅","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"𝔲","ù":"ù","ù":"ù","↿":"↿","↾":"↾","▀":"▀","⌜":"⌜","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","¨":"¨","¨":"¨","ų":"ų","𝕦":"𝕦","↑":"↑","↕":"↕","↿":"↿","↾":"↾","⊎":"⊎","υ":"υ","ϒ":"ϒ","υ":"υ","⇈":"⇈","⌝":"⌝","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","▵":"▵","▴":"▴","⇈":"⇈","ü":"ü","ü":"ü","⦧":"⦧","⇕":"⇕","⫨":"⫨","⫩":"⫩","⊨":"⊨","⦜":"⦜","ϵ":"ϵ","ϰ":"ϰ","∅":"∅","ϕ":"ϕ","ϖ":"ϖ","∝":"∝","↕":"↕","ϱ":"ϱ","ς":"ς","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","ϑ":"ϑ","⊲":"⊲","⊳":"⊳","в":"в","⊢":"⊢","∨":"∨","⊻":"⊻","≚":"≚","⋮":"⋮","|":"|","|":"|","𝔳":"𝔳","⊲":"⊲","⊂⃒":"⊂⃒","⊃⃒":"⊃⃒","𝕧":"𝕧","∝":"∝","⊳":"⊳","𝓋":"𝓋","⫋︀":"⫋︀","⊊︀":"⊊︀","⫌︀":"⫌︀","⊋︀":"⊋︀","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","∧":"∧","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","℘":"℘","≀":"≀","≀":"≀","𝓌":"𝓌","⋂":"⋂","◯":"◯","⋃":"⋃","▽":"▽","𝔵":"𝔵","⟺":"⟺","⟷":"⟷","ξ":"ξ","⟸":"⟸","⟵":"⟵","⟼":"⟼","⋻":"⋻","⨀":"⨀","𝕩":"𝕩","⨁":"⨁","⨂":"⨂","⟹":"⟹","⟶":"⟶","𝓍":"𝓍","⨆":"⨆","⨄":"⨄","△":"△","⋁":"⋁","⋀":"⋀","ý":"ý","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"ℨ","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"‍","‌":"‌"},characters:{Æ:"Æ","&":"&",Á:"Á",Ă:"Ă",Â:"Â",А:"А",𝔄:"𝔄",À:"À",Α:"Α",Ā:"Ā","⩓":"⩓",Ą:"Ą",𝔸:"𝔸","⁡":"⁡",Å:"Å",𝒜:"𝒜","≔":"≔",Ã:"Ã",Ä:"Ä","∖":"∖","⫧":"⫧","⌆":"⌆",Б:"Б","∵":"∵",ℬ:"ℬ",Β:"Β",𝔅:"𝔅",𝔹:"𝔹","˘":"˘","≎":"≎",Ч:"Ч","©":"©",Ć:"Ć","⋒":"⋒",ⅅ:"ⅅ",ℭ:"ℭ",Č:"Č",Ç:"Ç",Ĉ:"Ĉ","∰":"∰",Ċ:"Ċ","¸":"¸","·":"·",Χ:"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮",ℂ:"ℂ","∐":"∐","∳":"∳","⨯":"⨯",𝒞:"𝒞","⋓":"⋓","≍":"≍","⤑":"⤑",Ђ:"Ђ",Ѕ:"Ѕ",Џ:"Џ","‡":"‡","↡":"↡","⫤":"⫤",Ď:"Ď",Д:"Д","∇":"∇",Δ:"Δ",𝔇:"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄",ⅆ:"ⅆ",𝔻:"𝔻","¨":"¨","⃜":"⃜","≐":"≐","⇓":"⇓","⇐":"⇐","⇔":"⇔","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧",𝒟:"𝒟",Đ:"Đ",Ŋ:"Ŋ",Ð:"Ð",É:"É",Ě:"Ě",Ê:"Ê",Э:"Э",Ė:"Ė",𝔈:"𝔈",È:"È","∈":"∈",Ē:"Ē","◻":"◻","▫":"▫",Ę:"Ę",𝔼:"𝔼",Ε:"Ε","⩵":"⩵","≂":"≂","⇌":"⇌",ℰ:"ℰ","⩳":"⩳",Η:"Η",Ë:"Ë","∃":"∃",ⅇ:"ⅇ",Ф:"Ф",𝔉:"𝔉","◼":"◼","▪":"▪",𝔽:"𝔽","∀":"∀",ℱ:"ℱ",Ѓ:"Ѓ",">":">",Γ:"Γ",Ϝ:"Ϝ",Ğ:"Ğ",Ģ:"Ģ",Ĝ:"Ĝ",Г:"Г",Ġ:"Ġ",𝔊:"𝔊","⋙":"⋙",𝔾:"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳",𝒢:"𝒢","≫":"≫",Ъ:"Ъ",ˇ:"ˇ","^":"^",Ĥ:"Ĥ",ℌ:"ℌ",ℋ:"ℋ",ℍ:"ℍ","─":"─",Ħ:"Ħ","≏":"≏",Е:"Е",IJ:"IJ",Ё:"Ё",Í:"Í",Î:"Î",И:"И",İ:"İ",ℑ:"ℑ",Ì:"Ì",Ī:"Ī",ⅈ:"ⅈ","∬":"∬","∫":"∫","⋂":"⋂","⁣":"⁣","⁢":"⁢",Į:"Į",𝕀:"𝕀",Ι:"Ι",ℐ:"ℐ",Ĩ:"Ĩ",І:"І",Ï:"Ï",Ĵ:"Ĵ",Й:"Й",𝔍:"𝔍",𝕁:"𝕁",𝒥:"𝒥",Ј:"Ј",Є:"Є",Х:"Х",Ќ:"Ќ",Κ:"Κ",Ķ:"Ķ",К:"К",𝔎:"𝔎",𝕂:"𝕂",𝒦:"𝒦",Љ:"Љ","<":"<",Ĺ:"Ĺ",Λ:"Λ","⟪":"⟪",ℒ:"ℒ","↞":"↞",Ľ:"Ľ",Ļ:"Ļ",Л:"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲",𝔏:"𝔏","⋘":"⋘","⇚":"⇚",Ŀ:"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶",𝕃:"𝕃","↙":"↙","↘":"↘","↰":"↰",Ł:"Ł","≪":"≪","⤅":"⤅",М:"М"," ":" ",ℳ:"ℳ",𝔐:"𝔐","∓":"∓",𝕄:"𝕄",Μ:"Μ",Њ:"Њ",Ń:"Ń",Ň:"Ň",Ņ:"Ņ",Н:"Н","​":"​","\n":" ",𝔑:"𝔑","⁠":"⁠"," ":" ",ℕ:"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤",𝒩:"𝒩",Ñ:"Ñ",Ν:"Ν",Œ:"Œ",Ó:"Ó",Ô:"Ô",О:"О",Ő:"Ő",𝔒:"𝔒",Ò:"Ò",Ō:"Ō",Ω:"Ω",Ο:"Ο",𝕆:"𝕆","“":"“","‘":"‘","⩔":"⩔",𝒪:"𝒪",Ø:"Ø",Õ:"Õ","⨷":"⨷",Ö:"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂",П:"П",𝔓:"𝔓",Φ:"Φ",Π:"Π","±":"±",ℙ:"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∝":"∝",𝒫:"𝒫",Ψ:"Ψ",'"':""",𝔔:"𝔔",ℚ:"ℚ",𝒬:"𝒬","⤐":"⤐","®":"®",Ŕ:"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖",Ř:"Ř",Ŗ:"Ŗ",Р:"Р",ℜ:"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯",Ρ:"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓",ℝ:"ℝ","⥰":"⥰","⇛":"⇛",ℛ:"ℛ","↱":"↱","⧴":"⧴",Щ:"Щ",Ш:"Ш",Ь:"Ь",Ś:"Ś","⪼":"⪼",Š:"Š",Ş:"Ş",Ŝ:"Ŝ",С:"С",𝔖:"𝔖","↑":"↑",Σ:"Σ","∘":"∘",𝕊:"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔",𝒮:"𝒮","⋆":"⋆","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇",Þ:"Þ","™":"™",Ћ:"Ћ",Ц:"Ц","\t":" ",Τ:"Τ",Ť:"Ť",Ţ:"Ţ",Т:"Т",𝔗:"𝔗","∴":"∴",Θ:"Θ","  ":"  "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈",𝕋:"𝕋","⃛":"⃛",𝒯:"𝒯",Ŧ:"Ŧ",Ú:"Ú","↟":"↟","⥉":"⥉",Ў:"Ў",Ŭ:"Ŭ",Û:"Û",У:"У",Ű:"Ű",𝔘:"𝔘",Ù:"Ù",Ū:"Ū",_:"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎",Ų:"Ų",𝕌:"𝕌","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","↖":"↖","↗":"↗",ϒ:"ϒ",Υ:"Υ",Ů:"Ů",𝒰:"𝒰",Ũ:"Ũ",Ü:"Ü","⊫":"⊫","⫫":"⫫",В:"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ",𝔙:"𝔙",𝕍:"𝕍",𝒱:"𝒱","⊪":"⊪",Ŵ:"Ŵ","⋀":"⋀",𝔚:"𝔚",𝕎:"𝕎",𝒲:"𝒲",𝔛:"𝔛",Ξ:"Ξ",𝕏:"𝕏",𝒳:"𝒳",Я:"Я",Ї:"Ї",Ю:"Ю",Ý:"Ý",Ŷ:"Ŷ",Ы:"Ы",𝔜:"𝔜",𝕐:"𝕐",𝒴:"𝒴",Ÿ:"Ÿ",Ж:"Ж",Ź:"Ź",Ž:"Ž",З:"З",Ż:"Ż",Ζ:"Ζ",ℨ:"ℨ",ℤ:"ℤ",𝒵:"𝒵",á:"á",ă:"ă","∾":"∾","∾̳":"∾̳","∿":"∿",â:"â",а:"а",æ:"æ",𝔞:"𝔞",à:"à",ℵ:"ℵ",α:"α",ā:"ā","⨿":"⨿","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","⍼":"⍼",ą:"ą",𝕒:"𝕒","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'",å:"å",𝒶:"𝒶","*":"*",ã:"ã",ä:"ä","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⎶":"⎶",б:"б","„":"„","⦰":"⦰",β:"β",ℶ:"ℶ","≬":"≬",𝔟:"𝔟","◯":"◯","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⤍":"⤍","⧫":"⧫","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐",𝕓:"𝕓","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","¦":"¦",𝒷:"𝒷","⁏":"⁏","\\":"\","⧅":"⧅","⟈":"⟈","•":"•","⪮":"⪮",ć:"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","⩍":"⩍",č:"č",ç:"ç",ĉ:"ĉ","⩌":"⩌","⩐":"⩐",ċ:"ċ","⦲":"⦲","¢":"¢",𝔠:"𝔠",ч:"ч","✓":"✓",χ:"χ","○":"○","⧃":"⧃",ˆ:"ˆ","≗":"≗","↺":"↺","↻":"↻","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣",":":":",",":",","@":"@","∁":"∁","⩭":"⩭",𝕔:"𝕔","℗":"℗","↵":"↵","✗":"✗",𝒸:"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋎":"⋎","⋏":"⋏","¤":"¤","∱":"∱","⌭":"⌭","⥥":"⥥","†":"†",ℸ:"ℸ","‐":"‐","⤏":"⤏",ď:"ď",д:"д","⇊":"⇊","⩷":"⩷","°":"°",δ:"δ","⦱":"⦱","⥿":"⥿",𝔡:"𝔡","♦":"♦",ϝ:"ϝ","⋲":"⋲","÷":"÷","⋇":"⋇",ђ:"ђ","⌞":"⌞","⌍":"⌍",$:"$",𝕕:"𝕕","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌟":"⌟","⌌":"⌌",𝒹:"𝒹",ѕ:"ѕ","⧶":"⧶",đ:"đ","⋱":"⋱","▿":"▿","⦦":"⦦",џ:"џ","⟿":"⟿",é:"é","⩮":"⩮",ě:"ě","≖":"≖",ê:"ê","≕":"≕",э:"э",ė:"ė","≒":"≒",𝔢:"𝔢","⪚":"⪚",è:"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧",ℓ:"ℓ","⪕":"⪕","⪗":"⪗",ē:"ē","∅":"∅"," ":" "," ":" "," ":" ",ŋ:"ŋ"," ":" ",ę:"ę",𝕖:"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱",ε:"ε",ϵ:"ϵ","=":"=","≟":"≟","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱",ℯ:"ℯ",η:"η",ð:"ð",ë:"ë","€":"€","!":"!",ф:"ф","♀":"♀",ffi:"ffi",ff:"ff",ffl:"ffl",𝔣:"𝔣",fi:"fi",fj:"fj","♭":"♭",fl:"fl","▱":"▱",ƒ:"ƒ",𝕗:"𝕗","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","⅓":"⅓","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢",𝒻:"𝒻","⪌":"⪌",ǵ:"ǵ",γ:"γ","⪆":"⪆",ğ:"ğ",ĝ:"ĝ",г:"г",ġ:"ġ","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔",𝔤:"𝔤",ℷ:"ℷ",ѓ:"ѓ","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪈":"⪈","⋧":"⋧",𝕘:"𝕘",ℊ:"ℊ","⪎":"⪎","⪐":"⪐","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⥸":"⥸","≩︀":"≩︀",ъ:"ъ","⥈":"⥈","↭":"↭",ℏ:"ℏ",ĥ:"ĥ","♥":"♥","…":"…","⊹":"⊹",𝔥:"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪",𝕙:"𝕙","―":"―",𝒽:"𝒽",ħ:"ħ","⁃":"⁃",í:"í",î:"î",и:"и",е:"е","¡":"¡",𝔦:"𝔦",ì:"ì","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩",ij:"ij",ī:"ī",ı:"ı","⊷":"⊷",Ƶ:"Ƶ","℅":"℅","∞":"∞","⧝":"⧝","⊺":"⊺","⨗":"⨗","⨼":"⨼",ё:"ё",į:"į",𝕚:"𝕚",ι:"ι","¿":"¿",𝒾:"𝒾","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳",ĩ:"ĩ",і:"і",ï:"ï",ĵ:"ĵ",й:"й",𝔧:"𝔧",ȷ:"ȷ",𝕛:"𝕛",𝒿:"𝒿",ј:"ј",є:"є",κ:"κ",ϰ:"ϰ",ķ:"ķ",к:"к",𝔨:"𝔨",ĸ:"ĸ",х:"х",ќ:"ќ",𝕜:"𝕜",𝓀:"𝓀","⤛":"⤛","⤎":"⤎","⪋":"⪋","⥢":"⥢",ĺ:"ĺ","⦴":"⦴",λ:"λ","⦑":"⦑","⪅":"⪅","«":"«","⤟":"⤟","⤝":"⤝","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍",ľ:"ľ",ļ:"ļ",л:"л","⤶":"⤶","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","⇇":"⇇","⋋":"⋋","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⋖":"⋖","⥼":"⥼",𝔩:"𝔩","⪑":"⪑","⥪":"⥪","▄":"▄",љ:"љ","⥫":"⥫","◺":"◺",ŀ:"ŀ","⎰":"⎰","≨":"≨","⪉":"⪉","⪇":"⪇","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟼":"⟼","↬":"↬","⦅":"⦅",𝕝:"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","◊":"◊","(":"(","⦓":"⦓","⥭":"⥭","‎":"‎","⊿":"⊿","‹":"‹",𝓁:"𝓁","⪍":"⪍","⪏":"⪏","‚":"‚",ł:"ł","⪦":"⪦","⩹":"⩹","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","∺":"∺","¯":"¯","♂":"♂","✠":"✠","▮":"▮","⨩":"⨩",м:"м","—":"—",𝔪:"𝔪","℧":"℧",µ:"µ","⫰":"⫰","−":"−","⨪":"⨪","⫛":"⫛","⊧":"⊧",𝕞:"𝕞",𝓂:"𝓂",μ:"μ","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","⇏":"⇏","⊯":"⊯","⊮":"⊮",ń:"ń","∠⃒":"∠⃒","⩰̸":"⩰̸","≋̸":"≋̸",ʼn:"ʼn","♮":"♮","⩃":"⩃",ň:"ň",ņ:"ņ","⩭̸":"⩭̸","⩂":"⩂",н:"н","–":"–","⇗":"⇗","⤤":"⤤","≐̸":"≐̸","⤨":"⤨",𝔫:"𝔫","↮":"↮","⫲":"⫲","⋼":"⋼","⋺":"⋺",њ:"њ","≦̸":"≦̸","↚":"↚","‥":"‥",𝕟:"𝕟","¬":"¬","⋹̸":"⋹̸","⋵̸":"⋵̸","⋷":"⋷","⋶":"⋶","⋾":"⋾","⋽":"⋽","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸",𝓃:"𝓃","⊄":"⊄","⫅̸":"⫅̸","⊅":"⊅","⫆̸":"⫆̸",ñ:"ñ",ν:"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","⤧":"⤧",ó:"ó",ô:"ô",о:"о",ő:"ő","⨸":"⨸","⦼":"⦼",œ:"œ","⦿":"⦿",𝔬:"𝔬","˛":"˛",ò:"ò","⧁":"⧁","⦵":"⦵","⦾":"⦾","⦻":"⦻","⧀":"⧀",ō:"ō",ω:"ω",ο:"ο","⦶":"⦶",𝕠:"𝕠","⦷":"⦷","⦹":"⦹","∨":"∨","⩝":"⩝",ℴ:"ℴ",ª:"ª",º:"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛",ø:"ø","⊘":"⊘",õ:"õ","⨶":"⨶",ö:"ö","⌽":"⌽","¶":"¶","⫳":"⫳","⫽":"⫽",п:"п","%":"%",".":".","‰":"‰","‱":"‱",𝔭:"𝔭",φ:"φ",ϕ:"ϕ","☎":"☎",π:"π",ϖ:"ϖ",ℎ:"ℎ","+":"+","⨣":"⨣","⨢":"⨢","⨥":"⨥","⩲":"⩲","⨦":"⨦","⨧":"⨧","⨕":"⨕",𝕡:"𝕡","£":"£","⪳":"⪳","⪷":"⪷","⪹":"⪹","⪵":"⪵","⋨":"⋨","′":"′","⌮":"⌮","⌒":"⌒","⌓":"⌓","⊰":"⊰",𝓅:"𝓅",ψ:"ψ"," ":" ",𝔮:"𝔮",𝕢:"𝕢","⁗":"⁗",𝓆:"𝓆","⨖":"⨖","?":"?","⤜":"⤜","⥤":"⥤","∽̱":"∽̱",ŕ:"ŕ","⦳":"⦳","⦒":"⦒","⦥":"⦥","»":"»","⥵":"⥵","⤠":"⤠","⤳":"⤳","⤞":"⤞","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐",ř:"ř",ŗ:"ŗ",р:"р","⤷":"⤷","⥩":"⥩","↳":"↳","▭":"▭","⥽":"⥽",𝔯:"𝔯","⥬":"⥬",ρ:"ρ",ϱ:"ϱ","⇉":"⇉","⋌":"⋌","˚":"˚","‏":"‏","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⦆":"⦆",𝕣:"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","›":"›",𝓇:"𝓇","⋊":"⋊","▹":"▹","⧎":"⧎","⥨":"⥨","℞":"℞",ś:"ś","⪴":"⪴","⪸":"⪸",š:"š",ş:"ş",ŝ:"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓",с:"с","⋅":"⋅","⩦":"⩦","⇘":"⇘","§":"§",";":";","⤩":"⤩","✶":"✶",𝔰:"𝔰","♯":"♯",щ:"щ",ш:"ш","­":"­",σ:"σ",ς:"ς","⩪":"⩪","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","⨳":"⨳","⧤":"⧤","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀",ь:"ь","/":"/","⧄":"⧄","⌿":"⌿",𝕤:"𝕤","♠":"♠","⊓︀":"⊓︀","⊔︀":"⊔︀",𝓈:"𝓈","☆":"☆","⊂":"⊂","⫅":"⫅","⪽":"⪽","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⫇":"⫇","⫕":"⫕","⫓":"⫓","♪":"♪","¹":"¹","²":"²","³":"³","⫆":"⫆","⪾":"⪾","⫘":"⫘","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤪":"⤪",ß:"ß","⌖":"⌖",τ:"τ",ť:"ť",ţ:"ţ",т:"т","⌕":"⌕",𝔱:"𝔱",θ:"θ",ϑ:"ϑ",þ:"þ","×":"×","⨱":"⨱","⨰":"⨰","⌶":"⌶","⫱":"⫱",𝕥:"𝕥","⫚":"⫚","‴":"‴","▵":"▵","≜":"≜","◬":"◬","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢",𝓉:"𝓉",ц:"ц",ћ:"ћ",ŧ:"ŧ","⥣":"⥣",ú:"ú",ў:"ў",ŭ:"ŭ",û:"û",у:"у",ű:"ű","⥾":"⥾",𝔲:"𝔲",ù:"ù","▀":"▀","⌜":"⌜","⌏":"⌏","◸":"◸",ū:"ū",ų:"ų",𝕦:"𝕦",υ:"υ","⇈":"⇈","⌝":"⌝","⌎":"⌎",ů:"ů","◹":"◹",𝓊:"𝓊","⋰":"⋰",ũ:"ũ",ü:"ü","⦧":"⦧","⫨":"⫨","⫩":"⫩","⦜":"⦜","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀",в:"в","⊻":"⊻","≚":"≚","⋮":"⋮",𝔳:"𝔳",𝕧:"𝕧",𝓋:"𝓋","⦚":"⦚",ŵ:"ŵ","⩟":"⩟","≙":"≙",℘:"℘",𝔴:"𝔴",𝕨:"𝕨",𝓌:"𝓌",𝔵:"𝔵",ξ:"ξ","⋻":"⋻",𝕩:"𝕩",𝓍:"𝓍",ý:"ý",я:"я",ŷ:"ŷ",ы:"ы","¥":"¥",𝔶:"𝔶",ї:"ї",𝕪:"𝕪",𝓎:"𝓎",ю:"ю",ÿ:"ÿ",ź:"ź",ž:"ž",з:"з",ż:"ż",ζ:"ζ",𝔷:"𝔷",ж:"ж","⇝":"⇝",𝕫:"𝕫",𝓏:"𝓏","‍":"‍","‌":"‌"}}}},7588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},8744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},t.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536},t.highSurrogateFrom=55296,t.highSurrogateTo=56319},726:(e,t,n)=>{var r=n(2095),o=n(6374),a=n(2520),i=n(2868);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:i(o(e,(t=t||{}).htmlparser2||s),t)}l.domToReact=i,l.htmlToDOM=o,l.attributesToProps=a,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},2520:(e,t,n)=>{var r=n(7159),o=n(9774),a=["checked","value"],i=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,p,f={},h=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))f[n]=u;else if(d=l(c=n.toLowerCase()))switch(p=r.getPropertyInfo(d),-1===a.indexOf(d)||-1===i.indexOf(t)||h||(d=l("default"+c)),f[d]=u,p&&p.type){case r.BOOLEAN:f[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(f[d]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(f[n]=u);return o.setStyleProp(e.style,f),f}},2868:(e,t,n)=>{var r=n(1609),o=n(2520),a=n(9774),i=a.setStyleProp,s=a.canTextBeChildOfNode;function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var a,c,u,d,p,f=(n=n||{}).library||r,h=f.cloneElement,m=f.createElement,g=f.isValidElement,y=[],v="function"==typeof n.replace,b=n.trim,w=0,E=t.length;w1&&(u=h(u,{key:u.key||w})),y.push(u);else if("text"!==a.type){switch(d=a.attribs,l(a)?i(d.style,d):d&&(d=o(d,a.name)),p=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,n));break;default:continue}E>1&&(d.key=w),y.push(m(a.name,d,p))}else{if((c=!a.data.trim().length)&&a.parent&&!s(a.parent))continue;if(b&&c)continue;y.push(a.data)}return 1===y.length?y[0]:y}},9774:(e,t,n)=>{var r=n(1609),o=n(7545).default,a={reactCompat:!0},i=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:i,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,a={},i={};for(n in e)r=e[n],o&&(a=t(n,r))&&2===a.length?i[a[0]]=a[1]:"string"==typeof r&&(i[r]=n);return i},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,a)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!s.has(e.name)},elementsWithNoTextChildren:s}},3622:(e,t,n)=>{window,e.exports=function(e,t){return o={},n.m=r=[function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),a=function(e,t,n){var r,a=e.textContent;return""===a.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:a,inlines:Array(a.length).fill(t),entities:Array(a.length).fill(n),blocks:[]}}},i=function(){return{text:"\n",inlines:[new o.OrderedSet],entities:new Array(1),blocks:[]}},s=function(e,t){return{text:"",inlines:[],entities:[],blocks:[{type:e,depth:0,data:t||new o.Map({})}]}},l=function(e,t,n){return{text:"\r",inlines:[],entities:[],blocks:[{type:e,depth:Math.max(0,Math.min(4,t)),data:n||new o.Map({})}]}},c=function(e){return{text:"\r ",inlines:[new o.OrderedSet],entities:[e],blocks:[{type:"atomic",depth:0,data:new o.Map({})}]}},u=function(e,t){return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},d=new o.Map({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:"ul"},"ordered-list-item":{element:"li",wrapper:"ol"},blockquote:{element:"blockquote"},code:{element:"pre"},atomic:{element:"figure"},unstyled:{element:"p",aliasedElements:["div"]}}),p={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function f(e){return e.style.textAlign?new o.Map({"text-align":e.style.textAlign}):e.style.marginLeft?new o.Map({"margin-left":e.style.marginLeft}):void 0}var h=function(e){var t=void 0;if(e instanceof HTMLAnchorElement){var n={};t=e.dataset&&void 0!==e.dataset.mention?(n.url=e.href,n.text=e.innerHTML,n.value=e.dataset.value,r.Entity.__create("MENTION","IMMUTABLE",n)):(n.url=e.getAttribute&&e.getAttribute("href")||e.href,n.title=e.innerHTML,n.targetOption=e.target,r.Entity.__create("LINK","MUTABLE",n))}return t};n.d(t,"default",(function(){return b}));var m=" ",g=new RegExp(" ","g"),y=!0;function v(e,t,n,o,m,g){var b=e.nodeName.toLowerCase();if(g){var w=g(b,e);if(w){var E=r.Entity.__create(w.type,w.mutability,w.data||{});return{chunk:c(E)}}}if("#text"===b&&"\n"!==e.textContent)return a(e,t,m);if("br"===b)return{chunk:i()};if("img"===b&&e instanceof HTMLImageElement){var x={};x.src=e.getAttribute&&e.getAttribute("src")||e.src,x.alt=e.alt,x.height=e.style.height,x.width=e.style.width,e.style.float&&(x.alignment=e.style.float);var C=r.Entity.__create("IMAGE","MUTABLE",x);return{chunk:c(C)}}if("video"===b&&e instanceof HTMLVideoElement){var _={};_.src=e.getAttribute&&e.getAttribute("src")||e.src,_.alt=e.alt,_.height=e.style.height,_.width=e.style.width,e.style.float&&(_.alignment=e.style.float);var S=r.Entity.__create("VIDEO","MUTABLE",_);return{chunk:c(S)}}if("iframe"===b&&e instanceof HTMLIFrameElement){var O={};O.src=e.getAttribute&&e.getAttribute("src")||e.src,O.height=e.height,O.width=e.width;var k=r.Entity.__create("EMBEDDED_LINK","MUTABLE",O);return{chunk:c(k)}}var N,M=function(e,t){var n=d.filter((function(n){return n.element===e&&(!n.wrapper||n.wrapper===t)||n.wrapper===e||n.aliasedElements&&-1>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?S(e)+t:t}function k(){return!0}function N(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function M(e,t){return D(e,t,0)}function A(e,t){return D(e,t,t)}function D(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var I="function"==typeof Symbol&&Symbol.iterator,j="@@iterator",T=I||j;function L(e){this.next=e}function P(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function R(){return{value:void 0,done:!0}}function F(e){return!!q(e)}function B(e){return e&&"function"==typeof e.next}function z(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(I&&e[I]||e[j]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function H(e){return null==e?ne():i(e)?e.toSeq():function(e){var t=ae(e)||"object"==typeof e&&new J(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?ne().toKeyedSeq():i(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function K(e){return null==e?ne():i(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function G(e){return(null==e?ne():i(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=0,L.VALUES=1,L.ENTRIES=2,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[T]=function(){return this},t(H,n),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return ie(this,e,t,!0)},H.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(V,H),V.prototype.toKeyedSeq=function(){return this},t(K,H),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return ie(this,e,t,!1)},K.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(G,H),G.of=function(){return G(arguments)},G.prototype.toSetSeq=function(){return this},H.isSeq=te,H.Keyed=V,H.Set=G,H.Indexed=K;var W,Y,Q,$="@@__IMMUTABLE_SEQ__@@";function Z(e){this._array=e,this.size=e.length}function J(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function X(e){this._iterable=e,this.size=e.length||e.size}function ee(e){this._iterator=e,this._iteratorCache=[]}function te(e){return!(!e||!e[$])}function ne(){return W||(W=new Z([]))}function re(e){var t=Array.isArray(e)?new Z(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():F(e)?new X(e).fromEntrySeq():"object"==typeof e?new J(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=ae(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ae(e){return U(e)?new Z(e):B(e)?new ee(e):F(e)?new X(e):void 0}function ie(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var s=o[n?a-i:i];if(!1===t(s[1],r?s[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function se(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new L((function(){var e=o[n?a-i:i];return i++>a?{value:void 0,done:!0}:P(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function le(e,t){return t?ce(t,e,"",{"":e}):ue(e)}function ce(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map((function(n,r){return ce(e,n,r,t)}))):de(t)?e.call(r,n,V(t).map((function(n,r){return ce(e,n,r,t)}))):t}function ue(e){return Array.isArray(e)?K(e).map(ue).toList():de(e)?V(e).map(ue).toMap():e}function de(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function fe(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||l(e)!==l(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&pe(o[1],e)&&(n||pe(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var d=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!pe(t,e.get(r,v)):!pe(e.get(r,v),t))return d=!1,!1}));return d&&e.size===p}function he(e,t){if(!(this instanceof he))return new he(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Y)return Y;Y=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(me(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:P(e,o,n[t?r-o++:o++])}))},t(J,V),J.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},J.prototype.has=function(e){return this._object.hasOwnProperty(e)},J.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},J.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new L((function(){var i=r[t?o-a:a];return a++>o?{value:void 0,done:!0}:P(e,i,n[i])}))},J.prototype[h]=!0,t(X,K),X.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=z(this._iterable),r=0;if(B(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},X.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=z(this._iterable);if(!B(n))return new L(R);var r=0;return new L((function(){var t=n.next();return t.done?t:P(e,r++,t.value)}))},t(ee,K),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return P(e,o,r[o++])}))},t(he,K),he.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},he.prototype.get=function(e,t){return this.has(e)?this._value:t},he.prototype.includes=function(e){return pe(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return N(e,t,n)?this:new he(this._value,A(t,n)-M(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},he.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:P(e,a++,i)}))},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:fe(this,e)},t(ye,n),t(ve,ye),t(be,ye),t(we,ye),ye.Keyed=ve,ye.Indexed=be,ye.Set=we;var Ee="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ce(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return xe(n)}if("string"===t)return e.length>De?function(e){var t=Te[e];return void 0===t&&(t=_e(e),je===Ie&&(je=0,Te={}),je++,Te[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ne&&void 0!==(t=ke.get(e)))return t;if(void 0!==(t=e[Ae]))return t;if(!Oe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ae]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Me,1073741824&Me&&(Me=0),Ne)ke.set(e,t);else{if(void 0!==Se&&!1===Se(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Oe)Object.defineProperty(e,Ae,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ae]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ae]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,n=0;n>>n)&y,s=(0===n?r:r>>>n)&y;return new Ue(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function st(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}ze[Be]=!0,ze[m]=ze.remove,ze.removeIn=ze.deleteIn,qe.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a=lt)return function(e,t,n,r){e||(e=new C);for(var o=new Ke(e,Ce(n),[n,r]),a=0;a>>e)&y),a=this.bitmap;return a&o?this.nodes[it(a&o-1)].get(e+5,t,n,r):r},Ue.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var s=(0===t?n:n>>>t)&y,l=1<=ct)return function(e,t,n,r,o){for(var a=0,i=new Array(g),s=0;0!==n;s++,n>>>=1)i[s]=1&n?t[a++]:void 0;return i[r]=o,new He(e,a+1,i)}(e,p,c,s,h);if(u&&!h&&2===p.length&&Xe(p[1^d]))return p[1^d];if(u&&h&&1===p.length&&Xe(h))return h;var m=e&&e===this.ownerID,b=u?h?c:c^l:c|l,w=u?h?st(p,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e)&y,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},He.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=Ce(r));var s=(0===t?n:n>>>t)&y,l=o===v,c=this.nodes,u=c[s];if(l&&!u)return this;var d=Je(u,e,t+5,n,r,o,a,i);if(d===u)return this;var p=this.count;if(u){if(!d&&--p0&&r=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?St(e,t).set(0,n):St(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=E(w);return t>=kt(e._capacity)?r=xt(r,e.__ownerID,0,t,n,a):o=xt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):wt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Et()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){St(n,0,t+e.length);for(var r=0;r>>t&y;if(r>=this.array.length)return new mt([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var s=Ct(this,e);if(!a)for(var l=0;l>>t&y;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var i=Ct(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var gt,yt,vt={};function bt(e,t){var n=e._origin,r=e._capacity,o=kt(r),a=e._tail;return i(e._root,e._level,0);function i(e,s,l){return 0===s?function(e,i){var s=i===o?a&&a.array:e&&e.array,l=i>n?0:n-i,c=r-i;return c>g&&(c=g),function(){if(l===c)return vt;var e=t?--c:l++;return s&&s[e]}}(e,l):function(e,o,a){var s,l=e&&e.array,c=a>n?0:n-a>>o,u=1+(r-a>>o);return u>g&&(u=g),function(){for(;;){if(s){var e=s();if(e!==vt)return e;s=null}if(c===u)return vt;var n=t?--u:c++;s=i(l&&l[n],o-5,a+(n<>>n&y,l=e&&s0){var c=e&&e.array[s],u=xt(c,t,n-5,r,o,a);return u===c?e:((i=Ct(e,t)).array[s]=u,i)}return l&&e.array[s]===o?e:(x(a),i=Ct(e,t),void 0===o&&s===i.array.length-1?i.array.pop():i.array[s]=o,i)}function Ct(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function _t(e,t){if(t>=kt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&y],r-=5;return n}}function St(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new C,o=e._origin,a=e._capacity,i=o+t,s=void 0===n?a:n<0?a+n:o+n;if(i===o&&s===a)return e;if(i>=s)return e.clear();for(var l=e._level,c=e._root,u=0;i+u<0;)c=new mt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=5);u&&(i+=u,o+=u,s+=u,a+=u);for(var d=kt(a),p=kt(s);p>=1<d?new mt([],r):f;if(f&&p>d&&i5;g-=5){var v=d>>>g&y;m=m.array[v]=Ct(m.array[v],r)}m.array[d>>>5&y]=f}if(s=p)i-=p,s-=p,l=5,c=null,h=h&&h.removeBefore(r,0,i);else if(i>o||p>>l&y;if(b!==p>>>l&y)break;b&&(u+=(1<o&&(c=c.removeBefore(r,l,i-u)),c&&pa&&(a=c.size),i(l)||(c=c.map((function(e){return le(e)}))),r.push(c)}return a>e.size&&(e=e.setSize(a)),ot(e,t,r)}function kt(e){return e>>5<<5}function Nt(e){return null==e?Dt():Mt(e)?e:Dt().withMutations((function(t){var n=r(e);Le(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Mt(e){return Re(e)&&u(e)}function At(e,t,n,r){var o=Object.create(Nt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Dt(){return yt||(yt=At($e(),Et()))}function It(e,t,n){var r,o,a=e._map,i=e._list,s=a.get(t),l=void 0!==s;if(n===v){if(!l)return e;i.size>=g&&i.size>=2*a.size?(r=(o=i.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=s===i.size-1?i.pop():i.set(s,void 0))}else if(l){if(n===i.get(s)[1])return e;r=a,o=i.set(s,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):At(r,o)}function jt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Pt(e){this._iter=e,this.size=e.size}function Rt(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Xt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new L((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Ft(e,t,n){var r=Jt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,v);return a===v?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new L((function(){var o=a.next();if(o.done)return o;var i=o.value,s=i[0];return P(r,s,t.call(n,i[1],s,e),o)}))},r}function Bt(e,t){var n=Jt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Rt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Xt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function zt(e,t,n,r){var o=Jt(e);return r&&(o.has=function(r){var o=e.get(r,v);return o!==v&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,v);return a!==v&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,s=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return s++,o(e,r?a:s-1,i)}),a),s},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),s=0;return new L((function(){for(;;){var a=i.next();if(a.done)return a;var l=a.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return P(o,r?c:s++,u,a)}}))},o}function qt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),N(t,n,o))return e;var a=M(t,o),i=A(n,o);if(a!=a||i!=i)return qt(e.toSeq().cacheResult(),t,n,r);var s,l=i-a;l==l&&(s=l<0?0:l);var c=Jt(e);return c.size=0===s?s:e.size&&s||void 0,!r&&te(e)&&s>=0&&(c.get=function(t,n){return(t=O(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:P(t,l-1,0===t?void 0:e.value[1],e)}))},c}function Ut(e,t,n,r){var o=Jt(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,l=0;return e.__iterate((function(e,a,c){if(!s||!(s=t.call(n,e,a,c)))return l++,o(e,r?a:l-1,i)})),l},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),l=!0,c=0;return new L((function(){var e,a,u;do{if((e=s.next()).done)return r||1===o?e:P(o,c++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],l&&(l=t.call(n,u,a,i))}while(l);return 2===o?e:P(o,a,u,e)}))},o}function Ht(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(l,c){var u=this;l.__iterate((function(o,l){return(!t||c0}function Wt(e,t,r){var o=Jt(e);return o.size=new Z(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=r.map((function(e){return e=n(e),z(o?e.reverse():e)})),i=0,s=!1;return new L((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:P(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Yt(e,t){return te(e)?t:e.constructor(t)}function Qt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $t(e){return Le(e.size),S(e)}function Zt(e){return s(e)?r:l(e)?o:a}function Jt(e){return Object.create((s(e)?V:l(e)?K:G).prototype)}function Xt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):H.prototype.cacheResult.call(this)}function en(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Nn(e,t)},xn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Le(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Nn(t,n)},xn.prototype.pop=function(){return this.slice(1)},xn.prototype.unshift=function(){return this.push.apply(this,arguments)},xn.prototype.unshiftAll=function(e){return this.pushAll(e)},xn.prototype.shift=function(){return this.pop.apply(this,arguments)},xn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Mn()},xn.prototype.slice=function(e,t){if(N(e,t,this.size))return this;var n=M(e,this.size);if(A(t,this.size)!==this.size)return be.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Nn(r,o)},xn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},xn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},xn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new L((function(){if(r){var t=r.value;return r=r.next,P(e,n++,t)}return{value:void 0,done:!0}}))},xn.isStack=Cn;var Sn,On="@@__IMMUTABLE_STACK__@@",kn=xn.prototype;function Nn(e,t,n,r){var o=Object.create(kn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Mn(){return Sn||(Sn=Nn(0))}function An(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}kn[On]=!0,kn.withMutations=ze.withMutations,kn.asMutable=ze.asMutable,kn.asImmutable=ze.asImmutable,kn.wasAltered=ze.wasAltered,n.Iterator=L,An(n,{toArray:function(){Le(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Tt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new jt(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Le(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Nt(this.toKeyedSeq())},toOrderedSet:function(){return gn(s(this)?this.valueSeq():this)},toSet:function(){return ln(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Lt(this)},toSeq:function(){return l(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xn(s(this)?this.valueSeq():this)},toList:function(){return dt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Yt(this,function(e,t){var n=s(e),o=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?re(e):oe(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var a=o[0];if(a===e||n&&s(a)||l(e)&&l(a))return a}var c=new Z(o);return n?c=c.toKeyedSeq():l(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return pe(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Le(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return Yt(this,zt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,a){if(e.call(t,r,o,a))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Le(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Le(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Yt(this,Ft(this,e,t))},reduce:function(e,t,n){var r,o;return Le(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Yt(this,Bt(this,!0))},slice:function(e,t){return Yt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Ln(e),t)},sort:function(e){return Yt(this,Vt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Pe().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return fe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Z(e._cache);var t=e.toSeq().map(Tn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Ln(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(k)},flatMap:function(e,t){return Yt(this,function(e,t,n){var r=Zt(e);return e.toSeq().map((function(o,a){return r(t.call(n,o,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Yt(this,Ht(this,e,!0))},fromEntrySeq:function(){return new Pt(this)},get:function(e,t){return this.find((function(t,n){return pe(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=tn(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,v):v)===v)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(u(e)?Nt():Pe()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Zt(e);return o.map((function(t){return Yt(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(jn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Kt(this,e)},maxBy:function(e,t){return Kt(this,t,e)},min:function(e){return Kt(this,e?Pn(e):Bn)},minBy:function(e,t){return Kt(this,t?Pn(t):Bn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Yt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Yt(this,Ut(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Ln(e),t)},sortBy:function(e,t){return Yt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Yt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Yt(this,function(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),s=!0;return new L((function(){if(!s)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,a)?2===r?e:P(r,l,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Ln(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return function(e,t){return t=Ee(t,3432918353),t=Ee(t<<15|t>>>-15,461845907),t=Ee(t<<13|t>>>-13,5),t=Ee((t=t+3864292196^e)^t>>>16,2246822507),xe((t=Ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+zn(Ce(e),Ce(t))|0}:function(e,t){r=r+zn(Ce(e),Ce(t))|0}:t?function(e){r=31*r+Ce(e)|0}:function(e){r=r+Ce(e)|0}),r)}(this))}});var Dn=n.prototype;Dn[d]=!0,Dn[T]=Dn.values,Dn.__toJS=Dn.toArray,Dn.__toStringMapper=Rn,Dn.inspect=Dn.toSource=function(){return this.toString()},Dn.chain=Dn.flatMap,Dn.contains=Dn.includes,function(){try{Object.defineProperty(Dn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),An(r,{flip:function(){return Yt(this,Rt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return pe(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return pe(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Yt(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Yt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var In=r.prototype;function jn(e,t){return t}function Tn(e,t){return[t,e]}function Ln(e){return function(){return!e.apply(this,arguments)}}function Pn(e){return function(){return-e.apply(this,arguments)}}function Rn(e){return"string"==typeof e?JSON.stringify(e):e}function Fn(){return _(arguments)}function Bn(e,t){return et?-1:0}function zn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return In[p]=!0,In[T]=Dn.entries,In.__toJS=Dn.toObject,In.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rn(e)},An(o,{toKeyedSeq:function(){return new jt(this,!1)},filter:function(e,t){return Yt(this,zt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Yt(this,Bt(this,!1))},slice:function(e,t){return Yt(this,qt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=M(e,e<0?this.count():this.size);var r=this.slice(0,e);return Yt(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Yt(this,Ht(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e{"use strict";n.r(t),n.d(t,{Collection:()=>_,Iterable:()=>Sr,List:()=>on,Map:()=>Tt,OrderedMap:()=>bn,OrderedSet:()=>sr,PairSorting:()=>pr,Range:()=>Vn,Record:()=>fr,Repeat:()=>wr,Seq:()=>W,Set:()=>Rn,Stack:()=>On,default:()=>Or,fromJS:()=>Er,get:()=>ot,getIn:()=>Kn,has:()=>rt,hasIn:()=>Wn,hash:()=>fe,is:()=>ce,isAssociative:()=>C,isCollection:()=>v,isImmutable:()=>I,isIndexed:()=>x,isKeyed:()=>w,isList:()=>rn,isMap:()=>ie,isOrdered:()=>T,isOrderedMap:()=>se,isOrderedSet:()=>jn,isPlainObject:()=>et,isRecord:()=>D,isSeq:()=>M,isSet:()=>In,isStack:()=>Sn,isValueObject:()=>le,merge:()=>wt,mergeDeep:()=>xt,mergeDeepWith:()=>Ct,mergeWith:()=>Et,remove:()=>it,removeIn:()=>pt,set:()=>st,setIn:()=>ut,update:()=>ht,updateIn:()=>lt,version:()=>_r});var r="delete",o=32,a=31,i={};function s(e){e&&(e.value=!0)}function l(){}function c(e){return void 0===e.size&&(e.size=e.__iterate(d)),e.size}function u(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?c(e)+t:t}function d(){return!0}function p(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function f(e,t){return m(e,t,0)}function h(e,t){return m(e,t,t)}function m(e,t,n){return void 0===e?n:g(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function g(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function v(e){return Boolean(e&&e[y])}var b="@@__IMMUTABLE_KEYED__@@";function w(e){return Boolean(e&&e[b])}var E="@@__IMMUTABLE_INDEXED__@@";function x(e){return Boolean(e&&e[E])}function C(e){return w(e)||x(e)}var _=function(e){return v(e)?e:W(e)},S=function(e){function t(e){return w(e)?e:Y(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_),O=function(e){function t(e){return x(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_),k=function(e){function t(e){return v(e)&&!C(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(_);_.Keyed=S,_.Indexed=O,_.Set=k;var N="@@__IMMUTABLE_SEQ__@@";function M(e){return Boolean(e&&e[N])}var A="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[A])}function I(e){return v(e)||D(e)}var j="@@__IMMUTABLE_ORDERED__@@";function T(e){return Boolean(e&&e[j])}var L="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",R=L||P,F=function(e){this.next=e};function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function q(e){return!!Array.isArray(e)||!!V(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(L&&e[L]||e[P]);if("function"==typeof t)return t}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=0,F.VALUES=1,F.ENTRIES=2,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[R]=function(){return this};var K=Object.prototype.hasOwnProperty;function G(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var W=function(e){function t(e){return null==e?te():I(e)?e.toSeq():function(e){var t,n,r=oe(e);if(r)return(n=V(t=e))&&n===t.entries?r.fromEntrySeq():function(e){var t=V(e);return t&&t===e.keys}(e)?r.toSetSeq():r;if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var a=n[t?r-++o:o++];if(!1===e(a[1],a[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new F((function(){if(o===r)return{value:void 0,done:!0};var a=n[t?r-++o:o++];return B(e,a[0],a[1])}))}return this.__iteratorUncached(e,t)},t}(_),Y=function(e){function t(e){return null==e?te().toKeyedSeq():v(e)?w(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():ne(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(W),Q=function(e){function t(e){return null==e?te():v(e)?w(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():re(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(W),$=function(e){function t(e){return(v(e)&&!C(e)?e:Q(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(W);W.isSeq=M,W.Keyed=Y,W.Set=$,W.Indexed=Q,W.prototype[N]=!0;var Z=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[u(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var a=t?r-++o:o++;if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new F((function(){if(o===r)return{value:void 0,done:!0};var a=t?r-++o:o++;return B(e,a,n[a])}))},t}(Q),J=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return K.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,a=0;a!==o;){var i=r[t?o-++a:a++];if(!1===e(n[i],i,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,a=0;return new F((function(){if(a===o)return{value:void 0,done:!0};var i=r[t?o-++a:a++];return B(e,i,n[i])}))},t}(Y);J.prototype[j]=!0;var X,ee=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._collection),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._collection);if(!U(n))return new F(z);var r=0;return new F((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t}(Q);function te(){return X||(X=new Z([]))}function ne(e){var t=oe(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new J(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function re(e){var t=oe(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function oe(e){return G(e)?new Z(e):q(e)?new ee(e):void 0}var ae="@@__IMMUTABLE_MAP__@@";function ie(e){return Boolean(e&&e[ae])}function se(e){return ie(e)&&T(e)}function le(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ce(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(le(e)&&le(t)&&e.equals(t))}var ue="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function de(e){return e>>>1&1073741824|3221225471&e}var pe=Object.prototype.valueOf;function fe(e){if(null==e)return he(e);if("function"==typeof e.hashCode)return de(e.hashCode(e));var t,n,r,o=(t=e).valueOf!==pe&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==o)return he(o);switch(typeof o){case"boolean":return o?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return de(t)}(o);case"string":return o.length>_e?(void 0===(r=ke[n=o])&&(r=me(n),Oe===Se&&(Oe=0,ke={}),Oe++,ke[n]=r),r):me(o);case"object":case"function":return function(e){var t;if(we&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Ce]))return t;if(!ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ve(),we)be.set(e,t);else{if(void 0!==ge&&!1===ge(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ye)Object.defineProperty(e,Ce,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(o);case"symbol":return function(e){var t=Ee[e];return void 0!==t||(t=ve(),Ee[e]=t),t}(o);default:if("function"==typeof o.toString)return me(o.toString());throw new Error("Value type "+typeof o+" cannot be hashed.")}}function he(e){return null===e?1108378658:1108378659}function me(e){for(var t=0,n=0;n=0&&(l.get=function(t,n){return(t=u(this,t))>=0&&ta)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:B(t,l-1,0===t?void 0:e.value[1],e)}))},l}function Re(e,t,n,r){var o=Ge(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,l=0;return e.__iterate((function(e,a,c){if(!s||!(s=t.call(n,e,a,c)))return l++,o(e,r?a:l-1,i)})),l},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),l=!0,c=0;return new F((function(){var e,a,u;do{if((e=s.next()).done)return r||1===o?e:B(o,c++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],l&&(l=t.call(n,u,a,i))}while(l);return 2===o?e:B(o,a,u,e)}))},o}function Fe(e,t,n){var r=Ge(e);return r.__iterateUncached=function(o,a){if(a)return this.cacheResult().__iterate(o,a);var i=0,s=!1;return function e(l,c){l.__iterate((function(a,l){return(!t||c0}function Ue(e,t,n,r){var o=Ge(e),a=new Z(n).map((function(e){return e.size}));return o.size=r?a.max():a.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=n.map((function(e){return e=_(e),H(o?e.reverse():e)})),i=0,s=!1;return new F((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:B(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function He(e,t){return e===t?e:M(e)?t:e.constructor(t)}function Ve(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ke(e){return w(e)?S:x(e)?O:k}function Ge(e){return Object.create((w(e)?Y:x(e)?Q:$).prototype)}function We(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Ye(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return bt(this,t,e)}function bt(e,t,n){for(var r=[],o=0;o0;)t[n]=arguments[n+1];return St(e,t)}function Et(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return St(t,n,e)}function xt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _t(e,t)}function Ct(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return _t(t,n,e)}function _t(e,t,n){return St(e,t,function(e){return function t(n,r,o){return tt(n)&&tt(r)&&(a=r,i=W(n),s=W(a),x(i)===x(s)&&w(i)===w(s))?St(n,[r],t):e?e(n,r,o):r;var a,i,s}}(n))}function St(e,t,n){if(!tt(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(I(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,a=r?O:S,i=r?function(t){o===e&&(o=at(o)),o.push(t)}:function(t,r){var a=K.call(o,r),i=a&&n?n(o[r],t,r):t;a&&i===o[r]||(o===e&&(o=at(o)),o[r]=i)},s=0;s0;)t[n]=arguments[n+1];return _t(this,t,e)}function Nt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,Gt(),(function(e){return St(e,t)}))}function Mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return lt(this,e,Gt(),(function(e){return _t(e,t)}))}function At(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Dt(){return this.__ownerID?this:this.__ensureOwner(new l)}function It(){return this.__ensureOwner()}function jt(){return this.__altered}var Tt=function(e){function t(t){return null==t?Gt():ie(t)&&!T(t)?t:Gt().withMutations((function(n){var r=e(t);Ze(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Gt().withMutations((function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Wt(this,e,t)},t.prototype.remove=function(e){return Wt(this,e,i)},t.prototype.deleteAll=function(e){var t=_(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Gt()},t.prototype.sort=function(e){return bn(Be(this,e))},t.prototype.sortBy=function(e,t){return bn(Be(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,a){r.set(a,e.call(t,o,a,n))}))}))},t.prototype.__iterator=function(e,t){return new Ut(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Kt(this.size,this._root,e,this.__hash):0===this.size?Gt():(this.__ownerID=e,this.__altered=!1,this)},t}(S);Tt.isMap=ie;var Lt=Tt.prototype;Lt[ae]=!0,Lt[r]=Lt.remove,Lt.removeAll=Lt.deleteAll,Lt.setIn=dt,Lt.removeIn=Lt.deleteIn=ft,Lt.update=mt,Lt.updateIn=gt,Lt.merge=Lt.concat=yt,Lt.mergeWith=vt,Lt.mergeDeep=Ot,Lt.mergeDeepWith=kt,Lt.mergeIn=Nt,Lt.mergeDeepIn=Mt,Lt.withMutations=At,Lt.wasAltered=jt,Lt.asImmutable=It,Lt["@@transducer/init"]=Lt.asMutable=Dt,Lt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Lt["@@transducer/result"]=function(e){return e.asImmutable()};var Pt=function(e,t){this.ownerID=e,this.entries=t};Pt.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a=Xt)return function(e,t,n,r){e||(e=new l);for(var o=new zt(e,fe(n),[n,r]),a=0;a>>e)&a),i=this.bitmap;return i&o?this.nodes[Zt(i&o-1)].get(e+5,t,n,r):r},Rt.prototype.update=function(e,t,n,r,s,l,c){void 0===n&&(n=fe(r));var u=(0===t?n:n>>>t)&a,d=1<=en)return function(e,t,n,r,a){for(var i=0,s=new Array(o),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[i++]:void 0;return s[r]=a,new Ft(e,i+1,s)}(e,m,p,u,y);if(f&&!y&&2===m.length&&Qt(m[1^h]))return m[1^h];if(f&&y&&1===m.length&&Qt(y))return y;var v=e&&e===this.ownerID,b=f?y?p:p^d:p|d,w=f?y?Jt(m,h,y,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e)&a,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Ft.prototype.update=function(e,t,n,r,o,s,l){void 0===n&&(n=fe(r));var c=(0===t?n:n>>>t)&a,u=o===i,d=this.nodes,p=d[c];if(u&&!p)return this;var f=Yt(p,e,t+5,n,r,o,s,l);if(f===p)return this;var h=this.count;if(p){if(!f&&--h>>n)&a,l=(0===n?r:r>>>n)&a,c=s===l?[$t(e,t,n+5,r,o)]:(i=new zt(t,r,o),s>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Jt(e,t,n,r){var o=r?e:Qe(e);return o[t]=n,o}var Xt=8,en=16,tn=8,nn="@@__IMMUTABLE_LIST__@@";function rn(e){return Boolean(e&&e[nn])}var on=function(e){function t(t){var n=pn();if(null==t)return n;if(rn(t))return t;var r=e(t),a=r.size;return 0===a?n:(Ze(a),a>0&&a=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?gn(e,t).set(0,n):gn(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a={value:!1};return t>=yn(e._capacity)?r=fn(r,e.__ownerID,0,t,n,a):o=fn(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):dn(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gn(n,0,t+e.length);for(var r=0;r>>t&a;if(r>=this.array.length)return new sn([],e);var o,i=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&i)return this}if(i&&!o)return this;var l=hn(this,e);if(!i)for(var c=0;c>>t&a;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var s=hn(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var ln,cn={};function un(e,t){var n=e._origin,r=e._capacity,a=yn(r),i=e._tail;return function e(s,l,c){return 0===l?function(e,s){var l=s===a?i&&i.array:e&&e.array,c=s>n?0:n-s,u=r-s;return u>o&&(u=o),function(){if(c===u)return cn;var e=t?--u:c++;return l&&l[e]}}(s,c):function(a,i,s){var l,c=a&&a.array,u=s>n?0:n-s>>i,d=1+(r-s>>i);return d>o&&(d=o),function(){for(;;){if(l){var n=l();if(n!==cn)return n;l=null}if(u===d)return cn;var r=t?--d:u++;l=e(c&&c[r],i-5,s+(r<>>n&a,u=e&&c0){var d=e&&e.array[c],p=fn(d,t,n-5,r,o,i);return p===d?e:((l=hn(e,t)).array[c]=p,l)}return u&&e.array[c]===o?e:(i&&s(i),l=hn(e,t),void 0===o&&c===l.array.length-1?l.array.pop():l.array[c]=o,l)}function hn(e,t){return t&&e&&t===e.ownerID?e:new sn(e?e.array.slice():[],t)}function mn(e,t){if(t>=yn(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&a],r-=5;return n}}function gn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new l,o=e._origin,i=e._capacity,s=o+t,c=void 0===n?i:n<0?i+n:o+n;if(s===o&&c===i)return e;if(s>=c)return e.clear();for(var u=e._level,d=e._root,p=0;s+p<0;)d=new sn(d&&d.array.length?[void 0,d]:[],r),p+=1<<(u+=5);p&&(s+=p,o+=p,c+=p,i+=p);for(var f=yn(i),h=yn(c);h>=1<f?new sn([],r):m;if(m&&h>f&&s5;v-=5){var b=f>>>v&a;y=y.array[b]=hn(y.array[b],r)}y.array[f>>>5&a]=m}if(c=h)s-=h,c-=h,u=5,d=null,g=g&&g.removeBefore(r,0,s);else if(s>o||h>>u&a;if(w!==h>>>u&a)break;w&&(p+=(1<o&&(d=d.removeBefore(r,u,s-p)),d&&h>>5<<5}var vn,bn=function(e){function t(e){return null==e?En():se(e)?e:En().withMutations((function(t){var n=S(e);Ze(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):En()},t.prototype.set=function(e,t){return xn(this,e,t)},t.prototype.remove=function(e){return xn(this,e,i)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?wn(t,n,e,this.__hash):0===this.size?En():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Tt);function wn(e,t,n,r){var o=Object.create(bn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function En(){return vn||(vn=wn(Gt(),pn()))}function xn(e,t,n){var r,a,s=e._map,l=e._list,c=s.get(t),u=void 0!==c;if(n===i){if(!u)return e;l.size>=o&&l.size>=2*s.size?(r=(a=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=a.__ownerID=e.__ownerID)):(r=s.remove(t),a=c===l.size-1?l.pop():l.set(c,void 0))}else if(u){if(n===l.get(c)[1])return e;r=s,a=l.set(c,[t,n])}else r=s.set(t,l.size),a=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=a,e.__hash=void 0,e.__altered=!0,e):wn(r,a)}bn.isOrderedMap=se,bn.prototype[j]=!0,bn.prototype[r]=bn.prototype.remove;var Cn="@@__IMMUTABLE_STACK__@@";function Sn(e){return Boolean(e&&e[Cn])}var On=function(e){function t(e){return null==e?An():Sn(e)?e:An().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=u(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Mn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Sn(t))return t;Ze(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Mn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):An()},t.prototype.slice=function(t,n){if(p(t,n,this.size))return this;var r=f(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=o,this._head=a,this.__hash=void 0,this.__altered=!0,this):Mn(o,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Mn(this.size,this._head,e,this.__hash):0===this.size?An():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new Z(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Z(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}}))},t}(O);On.isStack=Sn;var kn,Nn=On.prototype;function Mn(e,t,n,r){var o=Object.create(Nn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function An(){return kn||(kn=Mn(0))}Nn[Cn]=!0,Nn.shift=Nn.pop,Nn.unshift=Nn.push,Nn.unshiftAll=Nn.pushAll,Nn.withMutations=At,Nn.wasAltered=jt,Nn.asImmutable=It,Nn["@@transducer/init"]=Nn.asMutable=Dt,Nn["@@transducer/step"]=function(e,t){return e.unshift(t)},Nn["@@transducer/result"]=function(e){return e.asImmutable()};var Dn="@@__IMMUTABLE_SET__@@";function In(e){return Boolean(e&&e[Dn])}function jn(e){return In(e)&&T(e)}function Tn(e,t){if(e===t)return!0;if(!v(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||w(e)!==w(t)||x(e)!==x(t)||T(e)!==T(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!C(e);if(T(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ce(o[1],e)&&(n||ce(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var s=!0,l=t.__iterate((function(t,r){if(n?!e.has(t):o?!ce(t,e.get(r,i)):!ce(e.get(r,i),t))return s=!1,!1}));return s&&e.size===l}function Ln(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Pn(e){if(!e||"object"!=typeof e)return e;if(!v(e)){if(!tt(e))return e;e=W(e)}if(w(e)){var t={};return e.__iterate((function(e,n){t[n]=Pn(e)})),t}var n=[];return e.__iterate((function(e){n.push(Pn(e))})),n}var Rn=function(e){function t(t){return null==t?Un():In(t)&&!T(t)?t:Un().withMutations((function(n){var r=e(t);Ze(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.intersect=function(e){return(e=_(e).toArray()).length?Bn.intersect.apply(t(e.pop()),e):Un()},t.union=function(e){return(e=_(e).toArray()).length?Bn.union.apply(t(e.pop()),e):Un()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return zn(this,this._map.set(e,e))},t.prototype.remove=function(e){return zn(this,this._map.remove(e))},t.prototype.clear=function(){return zn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=zn(this,this._map.mapEntries((function(o){var a=o[1],i=e.call(t,a,a,n);return i!==a&&(r=!0),[i,i]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=ue(t<<13|t>>>-13,5),t=ue((t=t+3864292196^e)^t>>>16,2246822507),t=de((t=ue(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+ir(fe(e),fe(t))|0}:function(e,t){r=r+ir(fe(e),fe(t))|0}:t?function(e){r=31*r+fe(e)|0}:function(e){r=r+fe(e)|0}),r)}(this))}});var Qn=_.prototype;Qn[y]=!0,Qn[R]=Qn.values,Qn.toJSON=Qn.toArray,Qn.__toStringMapper=nt,Qn.inspect=Qn.toSource=function(){return this.toString()},Qn.chain=Qn.flatMap,Qn.contains=Qn.includes,Ln(S,{flip:function(){return He(this,Ie(this))},mapEntries:function(e,t){var n=this,r=0;return He(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return He(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var $n=S.prototype;$n[b]=!0,$n[R]=Qn.entries,$n.toJSON=Yn,$n.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Ln(O,{toKeyedSeq:function(){return new Ne(this,!1)},filter:function(e,t){return He(this,Le(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return He(this,Te(this,!1))},slice:function(e,t){return He(this,Pe(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=f(e,e<0?this.count():this.size);var r=this.slice(0,e);return He(this,1===n?r:r.concat(Qe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return He(this,Fe(this,e,!1))},get:function(e,t){return(e=u(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=u(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function ir(e,t){return e^t+2654435769+(e<<6)+(e>>2)}Jn.has=Qn.includes,Jn.contains=Jn.includes,Jn.keys=Jn.values,Ln(Y,$n),Ln(Q,Zn),Ln($,Jn);var sr=function(e){function t(e){return null==e?dr():jn(e)?e:dr().withMutations((function(t){var n=k(e);Ze(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(S(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Rn);sr.isOrderedSet=jn;var lr,cr=sr.prototype;function ur(e,t){var n=Object.create(cr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function dr(){return lr||(lr=ur(En()))}cr[j]=!0,cr.zip=Zn.zip,cr.zipWith=Zn.zipWith,cr.zipAll=Zn.zipAll,cr.__empty=dr,cr.__make=ur;var pr={LeftThenRight:-1,RightThenLeft:1},fr=function(e,t){var n;!function(e){if(D(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(I(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(a){var i=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c2?[]:void 0,{"":e})}function xr(e,t,n,r,o,a){if("string"!=typeof n&&!I(n)&&(G(n)||q(n)||et(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var i=t.call(a,r,W(n).map((function(r,a){return xr(e,t,r,a,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),i}return n}function Cr(e,t){return x(t)?t.toList():w(t)?t.toMap():t.toSet()}var _r="4.3.7",Sr=_;const Or={version:_r,Collection:_,Iterable:_,Seq:W,Map:Tt,OrderedMap:bn,List:on,Stack:On,Set:Rn,OrderedSet:sr,PairSorting:pr,Record:fr,Range:Vn,Repeat:wr,is:ce,fromJS:Er,hash:fe,isImmutable:I,isCollection:v,isKeyed:w,isIndexed:x,isAssociative:C,isOrdered:T,isValueObject:le,isPlainObject:et,isSeq:M,isList:rn,isMap:ie,isOrderedMap:se,isStack:Sn,isSet:In,isOrderedSet:jn,isRecord:D,get:ot,getIn:Kn,has:rt,hasIn:Wn,merge:wt,mergeDeep:xt,mergeWith:Et,mergeDeepWith:Ct,remove:it,removeIn:pt,set:st,setIn:ut,update:ht,updateIn:lt}},223:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function f(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function h(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+p+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=p,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function b(){v(r)}function w(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=v(o);if(n){if(E(),!v(a))return y("property missing ':'");var r=v(i),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(w(t);e=x();)!1!==e&&(t.push(e),w(t));return t}()}},3867:e=>{function t(e){var t={},n=e.length-1,r=e[0],o=e[n];for(var a in r)t[r[a]]=0;for(a=1;a<=n;a++){var i=e[a];for(var s in i)t[c=i[s]]===a-1&&(t[c]=a)}var l=[];for(var a in o){var c;t[c=o[a]]===n&&l.push(c)}return l}function n(e,n){if(!n)return t(e);for(var o=[],a=0;a-1&&o.push(e[a]);return o}function r(e,t){for(var n=0;n{"use strict";e.exports=Math.abs},2153:e=>{"use strict";e.exports=Math.floor},457:e=>{"use strict";e.exports=Math.max},1179:e=>{"use strict";e.exports=Math.min},5985:e=>{"use strict";e.exports=Math.pow},6497:()=>{},4259:()=>{},4059:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,x=RegExp.prototype.test,C=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),a=v.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var L=n(8954),P=L.custom,R=V(P)?P:null,F={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,t,n){var r=n.quoteStyle||t,o=F[r];return o+e+o}function q(e){return b.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==W(e)||D&&"object"==typeof e&&D in e)}function H(e){return!("[object RegExp]"!==W(e)||D&&"object"==typeof e&&D in e)}function V(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(G(l,"quoteStyle")&&!G(F,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!G(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return w?T(t,x):x}if("bigint"==typeof t){var O=String(t)+"n";return w?T(t,O):O}var N=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=N&&N>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var P,B=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(l,o);if(void 0===s)s=[];else if(Y(s,t)>=0)return"[Circular]";function K(t,n,r){if(n&&(s=S.call(s)).push(n),r){var a={depth:l.depth};return G(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!H(t)){var $=function(e){if(e.name)return e.name;var t=y.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=te(t,K);return"[Function"+($?": "+$:" (anonymous)")+"]"+(ne.length>0?" { "+_.call(ne,", ")+" }":"")}if(V(t)){var re=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(t);return"object"!=typeof t||A?re:Z(re)}if((P=t)&&"object"==typeof P&&("undefined"!=typeof HTMLElement&&P instanceof HTMLElement||"string"==typeof P.nodeName&&"function"==typeof P.getAttribute)){for(var oe="<"+E.call(String(t.nodeName)),ae=t.attributes||[],ie=0;ie"}if(U(t)){if(0===t.length)return"[]";var se=te(t,K);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(se)?"["+ee(se,B)+"]":"[ "+_.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||D&&"object"==typeof e&&D in e)}(t)){var le=te(t,K);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(C.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(R&&"function"==typeof t[R]&&L)return L(t,{depth:N-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return i&&i.call(t,(function(e,n){ce.push(K(n,t,!0)+" => "+K(e,t))})),X("Map",a.call(t),ce,B)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(K(e,t))})),X("Set",c.call(t),ue,B)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==W(e)||D&&"object"==typeof e&&D in e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}(t))return Z(K(k.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||D&&"object"==typeof e&&D in e)}(t))return Z(h.call(t));if(function(e){return!("[object String]"!==W(e)||D&&"object"==typeof e&&D in e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==W(e)||D&&"object"==typeof e&&D in e)}(t)&&!H(t)){var de=te(t,K),pe=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",he=!pe&&D&&Object(t)===t&&D in t?v.call(W(t),8,-1):fe?"Object":"",me=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||fe?"["+_.call(C.call([],he||[],fe||[]),": ")+"] ":"");return 0===de.length?me+"{}":B?me+"{"+ee(de,B)+"}":me+"{ "+_.call(de,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return K.call(e,t)}function W(e){return m.call(e)}function Y(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Q(v.call(e,0,t.maxStringLength),t)+r}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,z(b.call(b.call(e,o,"\\$1"),/[\x00-\x1f]/g,$),"single",t)}function $(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?ee(n,r):_.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o{"use strict";var r=n(2985);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},2736:(e,t,n)=>{e.exports=n(6186)()},2985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9522:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},3654:(e,t,n)=>{"use strict";var r=n(5483),o=n(7861),a=n(9522);e.exports={formats:a,parse:o,stringify:r}},7861:(e,t,n)=>{"use strict";var r=n(3095),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),c=s?a.slice(0,s.index):a,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=i.exec(a))&&d=0;--a){var i,s=e[a];if("[]"===s&&n.parseArrays)i=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{i=n.plainObjects?{__proto__:null}:{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(i=[])[d]=o:"__proto__"!==u&&(i[u]=o):i={0:o}}o=i}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset,n=void 0===e.duplicates?i.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||i.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,d),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u-1&&(g=a(g)?[g]:g);var w=o.call(n,m);w&&"combine"===t.duplicates?n[m]=r.combine(n[m],g):w&&"last"!==t.duplicates||(n[m]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),f=0;f{"use strict";var r=n(5717),o=n(3095),a=n(9522),i=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,a,i,s,c,d,p,m,g,y,v,b,w,E,x,C,_){for(var S,O=t,k=_,N=0,M=!1;void 0!==(k=k.get(h))&&!M;){var A=k.get(t);if(N+=1,void 0!==A){if(A===N)throw new RangeError("Cyclic object value");M=!0}void 0===k.get(h)&&(N=0)}if("function"==typeof g?O=g(n,O):O instanceof Date?O=b(O):"comma"===a&&l(O)&&(O=o.maybeMap(O,(function(e){return e instanceof Date?b(e):e}))),null===O){if(c)return m&&!x?m(n,f.encoder,C,"key",w):n;O=""}if("string"==typeof(S=O)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(O))return m?[E(x?n:m(n,f.encoder,C,"key",w))+"="+E(m(O,f.encoder,C,"value",w))]:[E(n)+"="+E(String(O))];var D,I=[];if(void 0===O)return I;if("comma"===a&&l(O))x&&m&&(O=o.maybeMap(O,m)),D=[{value:O.length>0?O.join(",")||null:void 0}];else if(l(g))D=g;else{var j=Object.keys(O);D=y?j.sort(y):j}var T=p?String(n).replace(/\./g,"%2E"):String(n),L=i&&l(O)&&1===O.length?T+"[]":T;if(s&&l(O)&&0===O.length)return L+"[]";for(var P=0;P0?E+w:""}},3095:(e,t,n)=>{"use strict";var r=n(9522),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o=l?s.slice(u,u+l):s,p=[],f=0;f=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===r.RFC1738&&(40===h||41===h)?p[p.length]=d.charAt(f):h<128?p[p.length]=i[h]:h<2048?p[p.length]=i[192|h>>6]+i[128|63&h]:h<55296||h>=57344?p[p.length]=i[224|h>>12]+i[128|h>>6&63]+i[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&d.charCodeAt(f)),p[p.length]=i[240|h>>18]+i[128|h>>12&63]+i[128|h>>6&63]+i[128|63&h])}c+=p.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r{"use strict";n.d(t,{A:()=>k});var r=n(5890),o=n(6313),a=n(2367),i=n(9755),s=n(531),l=n(5007),c=n(4296),u=n(3205),d=n(7500),p=n.n(d),f="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function h(e,t){return 0===e.indexOf(t)}var m=n(1609),g=n.n(m);const y=13,v=38,b=40;var w=function(e){(0,l.A)(n,e);var t=(0,c.A)(n);function n(){var e;(0,a.A)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=0||t.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||o(e.getValidValue()))})),(0,u.A)((0,s.A)(e),"go",(function(t){""!==e.state.goInputText&&(t.keyCode!==y&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))})),e}return(0,i.A)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,a=t.changeSize,i=t.quickGo,s=t.goButton,l=t.selectComponentClass,c=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,p=this.state.goInputText,f="".concat(o,"-options"),h=l,m=null,y=null,v=null;if(!a&&!i)return null;var b=this.getPageSizeOptions();if(a&&h){var w=b.map((function(t,n){return g().createElement(h.Option,{key:n,value:t.toString()},(c||e.buildOptionText)(t))}));m=g().createElement(h,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},w)}return i&&(s&&(v="boolean"==typeof s?g().createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(f,"-quick-jumper-button")},r.jump_to_confirm):g().createElement("span",{onClick:this.go,onKeyUp:this.go},s)),y=g().createElement("div",{className:"".concat(f,"-quick-jumper")},r.jump_to,g().createElement("input",{disabled:d,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,v)),g().createElement("li",{className:"".concat(f)},m,y)}}]),n}(g().Component);(0,u.A)(w,"defaultProps",{pageSizeOptions:["10","20","50","100"]});const E=w,x=function(e){var t,n=e.rootPrefixCls,r=e.page,o=e.active,a=e.className,i=e.showTitle,s=e.onClick,l=e.onKeyPress,c=e.itemRender,d="".concat(n,"-item"),f=p()(d,"".concat(d,"-").concat(r),(t={},(0,u.A)(t,"".concat(d,"-active"),o),(0,u.A)(t,"".concat(d,"-disabled"),!r),(0,u.A)(t,e.className,a),t)),h=c(r,"page",g().createElement("a",{rel:"nofollow"},r));return h?g().createElement("li",{title:i?r.toString():null,className:f,onClick:function(){s(r)},onKeyPress:function(e){l(e,s,r)},tabIndex:0},h):null};function C(){}function _(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function S(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var O=function(e){(0,l.A)(n,e);var t=(0,c.A)(n);function n(e){var r;(0,a.A)(this,n),r=t.call(this,e),(0,u.A)((0,s.A)(r),"paginationNode",g().createRef()),(0,u.A)((0,s.A)(r),"getJumpPrevPage",(function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))})),(0,u.A)((0,s.A)(r),"getJumpNextPage",(function(){return Math.min(S(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))})),(0,u.A)((0,s.A)(r),"getItemIcon",(function(e,t){var n=r.props.prefixCls,a=e||g().createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(a=g().createElement(e,(0,o.A)({},r.props))),a})),(0,u.A)((0,s.A)(r),"isValid",(function(e){var t=r.props.total;return _(e)&&e!==r.state.current&&_(t)&&t>0})),(0,u.A)((0,s.A)(r),"shouldDisplayQuickJumper",(function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t})),(0,u.A)((0,s.A)(r),"handleKeyDown",(function(e){e.keyCode!==v&&e.keyCode!==b||e.preventDefault()})),(0,u.A)((0,s.A)(r),"handleKeyUp",(function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===y?r.handleChange(t):e.keyCode===v?r.handleChange(t-1):e.keyCode===b&&r.handleChange(t+1)})),(0,u.A)((0,s.A)(r),"handleBlur",(function(e){var t=r.getValidValue(e);r.handleChange(t)})),(0,u.A)((0,s.A)(r),"changePageSize",(function(e){var t=r.state.current,n=S(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)})),(0,u.A)((0,s.A)(r),"handleChange",(function(e){var t=r.props,n=t.disabled,o=t.onChange,a=r.state,i=a.pageSize,s=a.current,l=a.currentInputValue;if(r.isValid(e)&&!n){var c=S(void 0,r.state,r.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==l&&r.setState({currentInputValue:u}),o(u,i),u}return s})),(0,u.A)((0,s.A)(r),"prev",(function(){r.hasPrev()&&r.handleChange(r.state.current-1)})),(0,u.A)((0,s.A)(r),"next",(function(){r.hasNext()&&r.handleChange(r.state.current+1)})),(0,u.A)((0,s.A)(r),"jumpPrev",(function(){r.handleChange(r.getJumpPrevPage())})),(0,u.A)((0,s.A)(r),"jumpNext",(function(){r.handleChange(r.getJumpNextPage())})),(0,u.A)((0,s.A)(r),"hasPrev",(function(){return r.state.current>1})),(0,u.A)((0,s.A)(r),"hasNext",(function(){return r.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,a=e.style,i=e.disabled,s=e.hideOnSinglePage,l=e.total,c=e.locale,d=e.showQuickJumper,y=e.showLessItems,v=e.showTitle,b=e.showTotal,w=e.simple,C=e.itemRender,_=e.showPrevNextJumpers,O=e.jumpPrevIcon,k=e.jumpNextIcon,N=e.selectComponentClass,M=e.selectPrefixCls,A=e.pageSizeOptions,D=this.state,I=D.current,j=D.pageSize,T=D.currentInputValue;if(!0===s&&l<=j)return null;var L=S(void 0,this.state,this.props),P=[],R=null,F=null,B=null,z=null,q=null,U=d&&d.goButton,H=y?1:2,V=I-1>0?I-1:0,K=I+11&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,o.A)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||h(n,"aria-"))||t.data&&h(n,"data-")||t.attr&&f.includes(n))&&(r[n]=e[n])})),r}(this.props,{aria:!0,data:!0}),W=b&&g().createElement("li",{className:"".concat(t,"-total-text")},b(l,[0===l?0:(I-1)*j+1,I*j>l?l:I*j]));if(w){U&&(q="boolean"==typeof U?g().createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},c.jump_to_confirm):g().createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},U),q=g().createElement("li",{title:v?"".concat(c.jump_to).concat(I,"/").concat(L):null,className:"".concat(t,"-simple-pager")},q));var Y=this.renderPrev(V);return g().createElement("ul",(0,r.A)({className:p()(t,"".concat(t,"-simple"),(0,u.A)({},"".concat(t,"-disabled"),i),n),style:a,ref:this.paginationNode},G),W,Y?g().createElement("li",{title:v?c.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:p()("".concat(t,"-prev"),(0,u.A)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Y):null,g().createElement("li",{title:v?"".concat(I,"/").concat(L):null,className:"".concat(t,"-simple-pager")},g().createElement("input",{type:"text",value:T,disabled:i,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),g().createElement("span",{className:"".concat(t,"-slash")},"/"),L),g().createElement("li",{title:v?c.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:p()("".concat(t,"-next"),(0,u.A)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(K)),g().createElement(E,{disabled:i,locale:c,rootPrefixCls:t,selectComponentClass:N,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:j,pageSizeOptions:A,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:q}))}if(L<=3+2*H){var Q={locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:v,itemRender:C};L||P.push(g().createElement(x,(0,r.A)({},Q,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var $=1;$<=L;$+=1){var Z=I===$;P.push(g().createElement(x,(0,r.A)({},Q,{key:$,page:$,active:Z})))}}else{var J=y?c.prev_3:c.prev_5,X=y?c.next_3:c.next_5,ee=C(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(O,"prev page")),te=C(this.getJumpNextPage(),"jump-next",this.getItemIcon(k,"next page"));_&&(R=ee?g().createElement("li",{title:v?J:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:p()("".concat(t,"-jump-prev"),(0,u.A)({},"".concat(t,"-jump-prev-custom-icon"),!!O))},ee):null,F=te?g().createElement("li",{title:v?X:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:p()("".concat(t,"-jump-next"),(0,u.A)({},"".concat(t,"-jump-next-custom-icon"),!!k))},te):null),z=g().createElement(x,{locale:c,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:L,page:L,active:!1,showTitle:v,itemRender:C}),B=g().createElement(x,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:v,itemRender:C});var ne=Math.max(1,I-H),re=Math.min(I+H,L);I-1<=H&&(re=1+2*H),L-I<=H&&(ne=L-2*H);for(var oe=ne;oe<=re;oe+=1){var ae=I===oe;P.push(g().createElement(x,{locale:c,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:oe,page:oe,active:ae,showTitle:v,itemRender:C}))}I-1>=2*H&&3!==I&&(P[0]=(0,m.cloneElement)(P[0],{className:"".concat(t,"-item-after-jump-prev")}),P.unshift(R)),L-I>=2*H&&I!==L-2&&(P[P.length-1]=(0,m.cloneElement)(P[P.length-1],{className:"".concat(t,"-item-before-jump-next")}),P.push(F)),1!==ne&&P.unshift(B),re!==L&&P.push(z)}var ie=!this.hasPrev()||!L,se=!this.hasNext()||!L,le=this.renderPrev(V),ce=this.renderNext(K);return g().createElement("ul",(0,r.A)({className:p()(t,n,(0,u.A)({},"".concat(t,"-disabled"),i)),style:a,ref:this.paginationNode},G),W,le?g().createElement("li",{title:v?c.prev_page:null,onClick:this.prev,tabIndex:ie?null:0,onKeyPress:this.runIfEnterPrev,className:p()("".concat(t,"-prev"),(0,u.A)({},"".concat(t,"-disabled"),ie)),"aria-disabled":ie},le):null,P,ce?g().createElement("li",{title:v?c.next_page:null,onClick:this.next,tabIndex:se?null:0,onKeyPress:this.runIfEnterNext,className:p()("".concat(t,"-next"),(0,u.A)({},"".concat(t,"-disabled"),se)),"aria-disabled":se},ce):null,g().createElement(E,{disabled:i,locale:c,rootPrefixCls:t,selectComponentClass:N,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:j,pageSizeOptions:A,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:U}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=S(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(g().Component);(0,u.A)(O,"defaultProps",{defaultCurrent:1,total:0,defaultPageSize:10,onChange:C,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:C,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50});const k=O},309:(e,t,n)=>{"use strict";n.d(t,{JY:()=>io,sx:()=>Lo,gL:()=>Bo});var r=n(1609),o=n.n(r),a=n(4652);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,a.A)(e,t)}var s=n(5890),l=n(6313);function c(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var u="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(c(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(c(2));var o=e,a=t,i=[],s=i,l=!1;function d(){s===i&&(s=i.slice())}function h(){if(l)throw new Error(c(3));return a}function m(e){if("function"!=typeof e)throw new Error(c(4));if(l)throw new Error(c(5));var t=!0;return d(),s.push(e),function(){if(t){if(l)throw new Error(c(6));t=!1,d();var n=s.indexOf(e);s.splice(n,1),i=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(c(7));if(void 0===e.type)throw new Error(c(8));if(l)throw new Error(c(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=s,n=0;n=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function X(e,t){return e===t}function ee(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?R:n,o=t.mapStateToPropsFactories,a=void 0===o?V:o,i=t.mapDispatchToPropsFactories,l=void 0===i?H:i,c=t.mergePropsFactories,u=void 0===c?G:c,d=t.selectorFactory,p=void 0===d?$:d;return function(e,t,n,o){void 0===o&&(o={});var i=o,c=i.pure,d=void 0===c||c,f=i.areStatesEqual,h=void 0===f?X:f,m=i.areOwnPropsEqual,g=void 0===m?B:m,y=i.areStatePropsEqual,v=void 0===y?B:y,b=i.areMergedPropsEqual,w=void 0===b?B:b,E=(0,_.A)(i,Z),x=J(e,a,"mapStateToProps"),C=J(t,l,"mapDispatchToProps"),S=J(n,u,"mergeProps");return r(p,(0,s.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:C,initMergeProps:S,pure:d,areStatesEqual:h,areOwnPropsEqual:g,areStatePropsEqual:v,areMergedPropsEqual:w},E))}}const te=ee();var ne,re=n(5795),oe=n.n(re);function ae(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),a=(0,r.useRef)(n),i=o.current||Boolean(t&&a.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}i(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=_e(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof ke))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(o().Component),Ae=function(e){return e+1},De=function(e,t){var n=e.droppableId===t.droppableId,r=Ae(e.index),o=Ae(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Ie=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},je=function(e){return"\n The item has returned to its starting position\n of "+Ae(e.index)+"\n"},Te={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+Ae(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return De(e.source,t);var n=e.combine;return n?Ie(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+je(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+De(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Ie(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+je(e.source)+"\n "}},Le={x:0,y:0},Pe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Re=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Fe=function(e,t){return e.x===t.x&&e.y===t.y},Be=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},ze=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},qe=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ue=function(e,t){return Math.min.apply(Math,t.map((function(t){return qe(e,t)})))},He=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ve=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Ke=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ge=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=le({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):le(e)},We=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Ve(e,t.scroll.diff.displacement):e}(t.marginBox,o),i=function(e,t,n){var r;return n&&n.increasedBy?(0,s.A)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Ge(i,o)}},Ye=function(e,t){e.frame||Ne(!1);var n=e.frame,r=Re(t,n.scroll.initial),o=Be(r),a=(0,s.A)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),i=We({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,s.A)({},e,{frame:a,subject:i})};function Qe(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function $e(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,s=r.lefte.right;return!(!i||!s)||i&&a||s&&o}},ft=function(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ht={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},mt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},gt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Le;return Ve(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},yt=function(e){return gt((0,s.A)({},e,{isVisibleThroughFrameFn:ft}))};function vt(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l,c=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return le(ce(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),l={target:c,destination:n,viewport:o,withDroppableDisplacement:!0},!gt((0,s.A)({},l,{isVisibleThroughFrameFn:pt})))return e.invisible[t.descriptor.id]=!0,e;var d=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var a=o[e];return!a||a.shouldAnimate}(u,i,a),p={draggableId:u,shouldAnimate:d};return e.visible[u]=p,e}),{all:[],visible:{},invisible:{}})}function bt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:ct,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function wt(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,s=e.index,l=e.forceShouldAnimate,c=st(t,r);if(null==s)return bt({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var u=Ze(n,(function(e){return e.descriptor.index===s}));if(!u)return bt({insideDestination:n,inHomeList:c,displacedBy:a,destination:r});var d=it(t,n),p=n.indexOf(u);return{displaced:vt({afterDragging:d.slice(p),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:l}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function Et(e,t){return Boolean(t.effected[e])}var xt=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Ct=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},_t=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return ze(t.line,n.marginBox[t.end]+xt(t,r),Ct(t,n.marginBox,r))},St=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return ze(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Ct(t,n.marginBox,r))},Ot=function(e,t){var n=e.frame;return n?Pe(t,n.scroll.diff.displacement):t},kt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=rt(o.descriptor.id,r),s=n.page,l=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return ze(t.line,n.contentBox[t.start]+xt(t,r),Ct(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var p=r[d];if(Et(d,a))return St({axis:l,moveRelativeTo:p.page,isMoving:s});var f=he(p.page,u.point);return St({axis:l,moveRelativeTo:f,isMoving:s})}var h=i[i.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(Et(h.descriptor.id,a)){var m=he(h.page,Be(a.displacedBy.point));return _t({axis:l,moveRelativeTo:m,isMoving:s})}return _t({axis:l,moveRelativeTo:h.page,isMoving:s})}({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=at(n);o||Ne(!1);var a=o.draggableId,i=r[a].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return Et(r,n)?a?Le:Be(o.point):a?o.point:Le}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return Pe(i,s)}({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?Ot(n,t):t},Nt=function(e,t){var n=Re(t,e.scroll.initial),r=Be(n);return{frame:le({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Mt(e,t){return e.map((function(e){return t[e]}))}var At=function(e){var t,n,r=e.pageBorderBoxCenter,o=e.draggable,a=(t=e.viewport,n=r,Pe(t.scroll.diff.displacement,n)),i=Re(a,o.page.borderBox.center);return Pe(o.client.borderBox.center,i)},Dt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,l=void 0!==i&&i,c=Re(r,t.page.borderBox.center),u={target:Ve(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return gt((0,s.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=dt(e.top,e.bottom),r=dt(e.left,e.right);return function(e){return t===ht?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):yt(u)},It=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=rt(r.descriptor.id,o),p=st(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!ot(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,s.A)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?i(c):null;var u=it(n,o);if(!c)return u.length?i(u[u.length-1].descriptor.id):null;var d=$e(u,(function(e){return e.descriptor.id===c}));-1===d&&Ne(!1);var p=d-1;return p<0?null:i(u[p].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||Ne(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var a=o.index,i=t?a+1:a-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return i(n?l:l+1)?null:i}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:i});return null==d?null:wt({draggable:r,insideDestination:i,destination:a,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var p=function(e){var t=e.isMovingForward,n=e.draggables,r=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var a=r.draggableId,i=n[a].descriptor.index;return Et(a,o)?t?i:i-1:t?i+1:i}({isMovingForward:t,destination:a,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==p?null:wt({draggable:r,insideDestination:i,destination:a,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:p})}({isMovingForward:t,isInHomeList:p,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:i,afterCritical:u});if(!f)return null;var h=kt({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Dt({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:At({pageBorderBoxCenter:h,draggable:n,viewport:i}),impact:f,scrollJumpRequest:null};var m=Re(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=Nt(n,Pe(n.scroll.current,a)),l=r.frame?Ye(r,Pe(r.frame.scroll.current,a)):r,c=t.displaced,u=vt({afterDragging:Mt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:c,forceShouldAnimate:!1}),d=vt({afterDragging:Mt(c.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),p={},f={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n1?u.sort((function(e,t){return jt(e)[s.start]-jt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Ue(n,Ke(jt(e))),o=Ue(n,Ke(jt(t)));return r!==o?r-o:jt(e)[s.start]-jt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:s});if(!c)return null;var u=rt(c.descriptor.id,a),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.afterCritical,a=e.insideDestination.filter((function(e){return yt({target:Lt(e,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var a=qe(t,Ot(r,Tt(e,o))),i=qe(t,Ot(r,Tt(n,o)));return ar.left&&n.topr.top))return!1;if(Ut(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],s=t[a.crossAxisStart],l=t[a.crossAxisEnd],c=dt(o[a.crossAxisStart],o[a.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?si)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.candidates,r=e.draggable.page.borderBox.center,o=n.map((function(e){var n=e.axis,o=ze(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:qe(r,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}({pageBorderBox:l,draggable:n,droppables:o});if(!c)return ut;var u=o[c],d=rt(u.descriptor.id,r),p=function(e,t){var n=e.frame;return n?Ht(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Pt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],p=Ze(it(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,a=Et(t,i),l=Vt({displaced:r.displaced,id:t});return a?l?d>n[s.start]+o&&dn[s.start]-c+o&&un[s.start]+c+o&&dn[s.start]+o&&ut.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ze(it(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=Et(t,s),o=Vt({displaced:a,id:t});return r?o?p<=n:d=1500)return.55;var r=kn+Nn*(n/1500);return Number(("CANCEL"===t?.6*r:r).toFixed(2))}({current:o.current.client.offset,destination:y,reason:a});n({type:"DROP_ANIMATE",payload:{newHomeClientOffset:y,dropDuration:b,completed:v}})}else n(gn({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},An=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var Dn=function(e){var t=function(e){var t=e.onWindowScroll,n=Ee((function(){t(An())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Ce;function a(){return o!==Ce}return{start:function(){a()&&Ne(!1),o=_e(window,[r])},stop:function(){a()||Ne(!1),n.cancel(),o(),o=Ce},isActive:a}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},In=function(e,t){t()},jn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Tn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Ln=function(e,t){var n=function(e,t){var n,r=(n=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=$e(n,(function(t){return t.timerId===e}));-1===t&&Ne(!1),n.splice(t,1)[0].callback()}(t)})),r={timerId:t,callback:e};n.push(r)},flush:function(){if(n.length){var e=[].concat(n);n.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,a=function(n){o||Ne(!1),o=null,In(0,(function(){return Tn(e().onDragEnd,n,t,Te.onDragEnd)}))};return{beforeCapture:function(t,n){o&&Ne(!1),In(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){o&&Ne(!1),In(0,(function(){var r=e().onBeforeDragStart;r&&r(jn(t,n))}))},start:function(n,a){o&&Ne(!1);var i=jn(n,a);o={mode:a,lastCritical:n,lastLocation:i.source,lastCombine:null},r.add((function(){In(0,(function(){return Tn(e().onDragStart,i,t,Te.onDragStart)}))}))},update:function(n,a){var i=ot(a),l=at(a);o||Ne(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(n,o.lastCritical);c&&(o.lastCritical=n);var u,d,p=(d=i,!(null==(u=o.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));p&&(o.lastLocation=i);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(f&&(o.lastCombine=l),c||p||f){var h=(0,s.A)({},jn(n,o.mode),{combine:l,destination:i});r.add((function(){In(0,(function(){return Tn(e().onDragUpdate,h,t,Te.onDragUpdate)}))}))}},flush:function(){o||Ne(!1),r.flush()},drop:a,abort:function(){if(o){var e=(0,s.A)({},jn(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Pn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&Ne(!1),e.dispatch(gn({completed:r.completed}))}else t(n)}}},Rn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=_e(window,[a])}))}}}},Fn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(yn({reason:r.reason})))}}}},Bn=g,zn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,s=e.autoScroller;return f(nn,Bn(function(){for(var e=arguments.length,t=new Array(e),n=0;nt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var n=Jn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=28*Zn(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=er,o=Date.now()-n;if(o>=er)return e;if(ot.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Fe(u,Le)?null:u:null},ar=He((function(e){return 0===e?0:e>0?1:-1})),ir=(Kn=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Pe(t,r),a={x:Kn(o.x,n.x),y:Kn(o.y,n.y)};return Fe(a,Le)?null:a}),sr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=ar(r),i=ir({max:o,current:n,change:a});return!i||0!==a.x&&0===i.x||0!==a.y&&0===i.y},lr=function(e,t){return sr({current:e.scroll.current,max:e.scroll.max,change:t})},cr=function(e,t){var n=e.frame;return!!n&&sr({current:n.scroll.current,max:n.scroll.max,change:t})},ur=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.shouldUseTimeDampening,a=or({dragStartTime:e.dragStartTime,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return a&&lr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:i,shouldUseTimeDampening:r});if(l)return void o(l)}var c=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var a=function(e,t){var n=Ze($n(t),(function(t){return t.frame||Ne(!1),Ut(t.frame.pageMarginBox)(e)}));return n}(t,r);return a}({center:i,destination:Bt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var s=or({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return s&&cr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:i,shouldUseTimeDampening:r});u&&a(c.descriptor.id,u)}},dr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var a=Bt(e.impact);a||Ne(!1);var i=function(e,t){if(!cr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&cr(e,t)?ir({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Re(t,r);return n(e.descriptor.id,o),Re(t,o)}(e.dimensions.droppables[a],o);if(i){var s=e.viewport,l=function(e,t,n){if(!e)return n;if(!lr(t,n))return n;var o=function(e,t){if(!lr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return ir({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=Re(n,o);return r(a),Re(n,a)}(e.isWindowScrollAllowed,s,i);l&&function(e,n){var r=Pe(e.current.client.selection,n);t({client:r})}(e,l)}}}},pr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollDroppable,n=Ee(e.scrollWindow),r=Ee(t),o=null,a=function(e){o||Ne(!1);var t=o,a=t.shouldUseTimeDampening,i=t.dragStartTime;ur({state:e,scrollWindow:n,scrollDroppable:r,dragStartTime:i,shouldUseTimeDampening:a})};return{start:function(e){o&&Ne(!1);var t=Date.now(),n=!1,r=function(){n=!0};ur({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),o={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){o&&(n.cancel(),r.cancel(),o=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),a=dr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},fr="data-rbd",hr={base:Gn=fr+"-drag-handle",draggableId:Gn+"-draggable-id",contextId:Gn+"-context-id"},mr=function(){var e=fr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),gr=function(){var e=fr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),yr={contextId:fr+"-scroll-container-context-id"},vr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},br=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(hr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n transition: "+Cn.outOfTheWay+";\n ",{selector:o(mr.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(gr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:vr(i,"always"),resting:vr(i,"resting"),dragging:vr(i,"dragging"),dropAnimating:vr(i,"dropAnimating"),userCancel:vr(i,"userCancel")}},wr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Er=function(){var e=document.querySelector("head");return e||Ne(!1),e},xr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},Cr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function _r(e){return e instanceof Cr(e).HTMLElement}function Sr(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||Ne(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Qe(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||Ne(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Qe(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Or=o().createContext(null),kr=function(){var e=document.body;return e||Ne(!1),e},Nr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Mr=function(e){return"rbd-announcement-"+e},Ar=0,Dr={separator:"::"};function Ir(e,t){return void 0===t&&(t=Dr),ie((function(){return""+e+t.separator+Ar++}),[t.separator,e])}var jr=o().createContext(null);function Tr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Lr,Pr,Rr=((Lr={})[13]=!0,Lr[9]=!0,Lr),Fr=function(e){Rr[e.keyCode]&&e.preventDefault()},Br=function(){var e="visibilitychange";return"undefined"==typeof document?e:Ze([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),zr={type:"IDLE"};function qr(){}var Ur=((Pr={})[34]=!0,Pr[33]=!0,Pr[36]=!0,Pr[35]=!0,Pr);var Hr={type:"IDLE"},Vr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kr(e,t){if(null==t)return!1;if(Boolean(Vr[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Kr(e,t.parentElement)}function Gr(e,t){var n=t.target;return!!_r(n)&&Kr(e,n)}var Wr=function(e){return le(e.getBoundingClientRect()).center},Yr=function(){var e="matches";return"undefined"==typeof document?e:Ze([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Qr(e,t){return null==e?null:e[Yr](t)?e:Qr(e.parentElement,t)}function $r(e,t){return e.closest?e.closest(t):Qr(e,t)}function Zr(e){e.preventDefault()}function Jr(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function Xr(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&!!a.options.isEnabled&&!!Yn(n.getState(),o)}var eo=[function(e){var t=(0,r.useRef)(zr),n=(0,r.useRef)(Ce),o=ie((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var a={x:t.clientX,y:t.clientY};n.current(),u(o,a)}}}}}}),[e]),a=ie((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=se((function(){n.current=_e(window,[a,o],{passive:!1,capture:!0})}),[a,o]),s=se((function(){"IDLE"!==t.current.type&&(t.current=zr,n.current(),i())}),[i]),l=se((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=se((function(){var e=function(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(i);if("PENDING"!==s.type&&Ne(!1),l=s.point,c=i,Math.abs(c.x-l.x)>=5||Math.abs(c.y-l.y)>=5){var l,c;e.preventDefault();var u=s.actions.fluidLift(i);o({type:"DRAGGING",actions:u})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Fr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&Ne(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Br,fn:t}]}({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=_e(window,e,{capture:!0,passive:!1})}),[l,s]),u=se((function(e,n){"IDLE"!==t.current.type&&Ne(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);wr((function(){return i(),function(){n.current()}}),[i])},function(e){var t=(0,r.useRef)(qr),n=ie((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var r=e.findClosestDraggableId(n);if(r){var a=e.tryGetLock(r,l,{sourceEvent:n});if(a){n.preventDefault();var i=!0,s=a.snapLift();t.current(),t.current=_e(window,function(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Ur[r.keyCode]?r.preventDefault():Fr(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Br,fn:n}]}(s,l),{capture:!0,passive:!1})}}}function l(){i||Ne(!1),i=!1,t.current(),o()}}}}),[e]),o=se((function(){t.current=_e(window,[n],{passive:!1,capture:!0})}),[n]);wr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Hr),n=(0,r.useRef)(Ce),o=se((function(){return t.current}),[]),a=se((function(e){t.current=e}),[]),i=ie((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var a=t.touches[0],i={x:a.clientX,y:a.clientY};n.current(),p(o,i)}}}}}}),[e]),s=se((function(){n.current=_e(window,[i],{capture:!0,passive:!1})}),[i]),l=se((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Hr),n.current(),s())}),[s,a]),c=se((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=se((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=_e(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&Ne(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Br,fn:t}]}(t),e),a=_e(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Br,fn:t}]}(t),e);n.current=function(){r(),a()}}),[c,o,l]),d=se((function(){var e=o();"PENDING"!==e.type&&Ne(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,a]),p=se((function(e,t){"IDLE"!==o().type&&Ne(!1);var n=setTimeout(d,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,a,d]);wr((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Hr))}}),[o,s,a]),wr((function(){return _e(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function to(e){var t=e.contextId,n=e.store,o=e.registry,a=e.customSensors,i=e.enableDefaultSensors,l=[].concat(i?eo:[],a||[]),c=(0,r.useState)((function(){return function(){var e=null;function t(){e||Ne(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&Ne(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],u=se((function(e,t){e.isDragging&&!t.isDragging&&c.tryAbandon()}),[c]);wr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();u(e,t),e=t}))}),[c,n,u]),wr((function(){return c.tryAbandon}),[c.tryAbandon]);for(var d=se((function(e){return Xr({lockAPI:c,registry:o,store:n,draggableId:e})}),[c,o,n]),p=se((function(e,r,a){return function(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,l=e.sourceEvent;if(!Xr({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.draggable.getById(a),u=function(e,t){var n="["+mr.contextId+'="'+e+'"]',r=Ze(Je(document.querySelectorAll(n)),(function(e){return e.getAttribute(mr.id)===t}));return r&&_r(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&Gr(u,l))return null;var d=t.claim(i||Ce),p="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){Jr({expected:e,phase:p,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),p="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=_e(window,[{eventName:"click",fn:Zr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(yn({reason:t}))}return"PRE_DRAG"!==p&&(n(),"PRE_DRAG"!==p&&Ne(!1)),r.dispatch(rn(e.liftActionArgs)),p="DRAGGING",(0,s.A)({isActive:function(){return Jr({expected:"DRAGGING",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Jr({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=Ee((function(e){m((function(){return un({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,s.A)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(dn)},moveRight:function(){return m(fn)},moveDown:function(){return m(pn)},moveLeft:function(){return m(hn)}};return g({liftActionArgs:{id:a,clientSelection:Wr(u),movementMode:"SNAP"},cleanup:Ce,actions:e})},abort:function(){Jr({expected:"PRE_DRAG",phase:p,isLockActive:h,shouldWarn:!0})&&t.release()}}}({lockAPI:c,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[t,c,o,n]),f=se((function(e){return function(e,t){var n=function(e,t){var n,r=t.target;if(!((n=r)instanceof Cr(n).Element))return null;var o=function(e){return"["+hr.contextId+'="'+e+'"]'}(e),a=$r(r,o);return a&&_r(a)?a:null}(e,t);return n?n.getAttribute(hr.draggableId):null}(t,e)}),[t]),h=se((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=se((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(mn()))}),[c,n]),g=se(c.isClaimed,[c]),y=ie((function(){return{canGetLock:d,tryGetLock:p,findClosestDraggableId:f,findOptionsForDraggable:h,tryReleaseLock:m,isLockClaimed:g}}),[d,p,f,h,m,g]),v=0;v0?{timer:setTimeout((function(){return e.onConfirm()}),e.timeout),prevTimeout:e.timeout}:null},t.isAnimation=function(e){return e&&"boolean"!=typeof e},t.animationFromProp=function(e){return e.name+" "+e.duration+"ms"},t.handleAnimState=function(e,n,r){var o="boolean"!=typeof e.show||n.closingAction?n.show:e.show,a="";if(o)e.openAnim&&(t.isAnimation(e.openAnim)?a=t.animationFromProp(e.openAnim):t.isAnimation(t.defaultProps.openAnim)&&(a=t.animationFromProp(t.defaultProps.openAnim)));else if(n.closingAction&&e.closeAnim){var i=void 0;t.isAnimation(e.closeAnim)?i=e.closeAnim:t.isAnimation(t.defaultProps.closeAnim)&&(i=t.defaultProps.closeAnim),i&&(a=t.animationFromProp(i),r(i.duration),o=!0)}return{show:o,animation:a}},t.prototype.render=function(){return this.state.show?d.default.createElement("div",null,this.getInjectedStyles(),d.default.createElement(x.default,{show:!this.props.hideOverlay,onClick:this.onClickOutside,onKeyDown:this.onKeyDown},d.default.createElement("div",{style:this.getComposedStyle(),tabIndex:0,onKeyDown:this.onKeyDown,onClick:this.onClickInside,className:"sweet-alert "+this.props.customClass},this.getCloseButton(),this.getIcon(),d.default.createElement(w.default,null,this.props.title),d.default.createElement(E.default,null,this.getAlertContent()),this.getInputField(),this.getValidationMessage(),this.getButtons()))):null},t.propTypes=S.SWEET_ALERT_PROP_TYPES,t.defaultProps=O.SWEET_ALERT_DEFAULT_PROPS,t.SuccessIcon=p.default,t.ErrorIcon=f.default,t.InfoIcon=h.default,t.WarningIcon=m.default,t.CustomIcon=g.default,t.Buttons=y.default,t.Input=v.default,t.ValidationMessage=b.default,t.Title=w.default,t.Content=E.default,t.getStateFromProps=function(e){var n=t.getTypeFromProps(e);return{type:n,focusConfirmBtn:e.focusConfirmBtn&&"input"!==n,focusCancelBtn:e.focusCancelBtn&&"input"!==n,dependencies:e.dependencies}},t.getTypeFromProps=function(e){return e.type?e.type:e.secondary?"secondary":e.info?"info":e.success?"success":e.warning?"warning":e.danger||e.error?"danger":e.input?"input":e.custom?"custom":"default"},t}(d.default.Component);t.default=A},6406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(1609)),a=n(9768);t.default=function(e){var t=e.children;return o.default.createElement("h2",{style:a.title},t)}},2366:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(e){var t=e.validationMsg,n=e.inputType,r=t||("email"===n?"Please enter a valid email!":"Please enter a response!");return s.default.createElement("div",{style:l.validationMessage},s.default.createElement("div",{style:l.exclamationIcon},"!"),r)}},2669:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(1609)),l=a(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},l.icon,l.iconWarning)},s.default.createElement("span",{style:l.iconWarningBody}),s.default.createElement("span",{style:l.iconWarningDot}))}},5638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.emailRegex=t.defaultRegex=void 0,t.defaultRegex=/^.+$/,t.emailRegex=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},1761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SWEET_ALERT_DEFAULT_PROPS=void 0,t.SWEET_ALERT_DEFAULT_PROPS={allowEscape:!0,closeOnClickOutside:!0,inputType:"text",customClass:"",validationMsg:null,validationRegex:null,hideOverlay:!1,required:!0,disabled:!1,focusConfirmBtn:!0,focusCancelBtn:!1,showCloseButton:!1,confirmBtnBsStyle:"primary",cancelBtnBsStyle:"link",beforeMount:function(){},afterMount:function(){},beforeUpdate:null,afterUpdate:function(){},beforeUnmount:function(){},style:{},closeBtnStyle:{},timeout:0,openAnim:{name:"showSweetAlert",duration:300},closeAnim:!1,reverseButtons:!1,dependencies:[]}},3291:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(9324));t.default=o.default},166:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SWEET_ALERT_PROP_TYPES=void 0;var o=r(n(2736));t.SWEET_ALERT_PROP_TYPES={type:o.default.oneOf(["default","info","success","warning","danger","error","input","custom","controlled"]),info:o.default.bool,success:o.default.bool,warning:o.default.bool,danger:o.default.bool,error:o.default.bool,input:o.default.bool,custom:o.default.bool,controlled:o.default.bool,title:o.default.oneOfType([o.default.node,o.default.string]).isRequired,onCancel:o.default.func,onConfirm:o.default.func.isRequired,confirmBtnText:o.default.oneOfType([o.default.node,o.default.string]),confirmBtnBsStyle:o.default.string,confirmBtnCssClass:o.default.string,confirmBtnStyle:o.default.object,cancelBtnText:o.default.oneOfType([o.default.node,o.default.string]),cancelBtnBsStyle:o.default.string,cancelBtnCssClass:o.default.string,cancelBtnStyle:o.default.object,btnSize:o.default.string,customIcon:o.default.oneOfType([o.default.node,o.default.string]),show:o.default.bool,required:o.default.bool,placeholder:o.default.string,validationMsg:o.default.string,validationRegex:o.default.object,defaultValue:o.default.oneOfType([o.default.number,o.default.string]),inputType:o.default.string,style:o.default.object,closeBtnStyle:o.default.object,customClass:o.default.string,showConfirm:o.default.bool,showCancel:o.default.bool,showCloseButton:o.default.bool,allowEscape:o.default.bool,closeOnClickOutside:o.default.bool,hideOverlay:o.default.bool,disabled:o.default.bool,focusConfirmBtn:o.default.bool,focusCancelBtn:o.default.bool,beforeMount:o.default.func,afterMount:o.default.func,beforeUpdate:o.default.func,afterUpdate:o.default.func,beforeUnmount:o.default.func,timeout:o.default.number,openAnim:o.default.any,closeAnim:o.default.any,reverseButtons:o.default.bool,customButtons:o.default.node,dependencies:o.default.arrayOf(o.default.any)}},9768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closeButton=t.inputErrorIconAfter=t.inputErrorIconBefore=t.inputErrorIconBeforeAfter=t.inputErrorIcon=t.exclamationIcon=t.validationMessage=t.button=t.iconCustom=t.iconSuccessLineLong=t.iconSuccessLineTip=t.iconSuccessLine=t.iconSuccessFix=t.iconSuccessPlaceholder=t.iconSuccessAfter=t.iconSuccessBefore=t.iconSuccessBeforeAfter=t.iconSuccess=t.iconInfoAfter=t.iconInfoBefore=t.iconInfo=t.iconWarningDot=t.iconWarningBody=t.iconWarning=t.iconErrorLineRight=t.iconErrorLineLeft=t.iconErrorLine=t.iconErrorX=t.iconError=t.icon=t.actions=t.contentContainer=t.title=t.sweetAlert=t.sweetAlertContainer=t.overlay=void 0,t.overlay={backgroundColor:"rgba(0, 0, 0, 0.4)",position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:5e3},t.sweetAlertContainer={display:"flex",position:"fixed",top:0,right:0,left:0,bottom:0,flexDirection:"row",alignItems:"center",justifyContent:"center",padding:".625em",overflowX:"hidden",overflowY:"auto",zIndex:5400},t.sweetAlert={display:"flex",overflow:"hidden",backgroundColor:"#fff",outline:"none",width:"32em",padding:"1.25rem",margin:"auto",borderRadius:".3125em",textAlign:"center",position:"relative",flexDirection:"column",justifyContent:"center",maxWidth:"100%",zIndex:5600},t.title={position:"relative",maxWidth:"100%",margin:"0 0 .4em",padding:0,fontSize:"1.875em",fontWeight:600,textAlign:"center",textTransform:"none",wordWrap:"break-word"},t.contentContainer={zIndex:1,justifyContent:"center",margin:0,padding:0,fontSize:"1.125em",fontWeight:300,lineHeight:"normal",textAlign:"center",wordWrap:"break-word"},t.actions={display:"flex",zIndex:1,flexWrap:"wrap",alignItems:"center",justifyContent:"center",width:"100%",margin:"1.25em auto 0"},t.icon={width:80,height:80,borderWidth:4,borderStyle:"solid",borderColor:"gray",borderRadius:"50%",margin:"20px auto",position:"relative",boxSizing:"content-box"},t.iconError={borderColor:"#d43f3a",animation:"animateErrorIcon 0.5s"},t.iconErrorX={position:"relative",display:"block",animation:"animateXMark 0.5s"},t.iconErrorLine={position:"absolute",height:5,width:47,backgroundColor:"#d9534f",display:"block",top:37,borderRadius:2},t.iconErrorLineLeft={transform:"rotate(45deg)",left:17},t.iconErrorLineRight={transform:"rotate(-45deg)",right:16},t.iconWarning={borderColor:"#eea236",animation:"pulseWarning 0.75s infinite alternate"},t.iconWarningBody={position:"absolute",width:5,height:47,left:"50%",top:10,borderRadius:2,marginLeft:-2,backgroundColor:"#f0ad4e",animation:"pulseWarningIns 0.75s infinite alternate"},t.iconWarningDot={position:"absolute",width:7,height:7,borderRadius:"50%",marginLeft:-3,left:"50%",bottom:10,backgroundColor:"#f0ad4e",animation:"pulseWarningIns 0.75s infinite alternate"},t.iconInfo={borderColor:"#46b8da"},t.iconInfoBefore={content:"",position:"absolute",width:5,height:29,left:"50%",bottom:17,borderRadius:2,marginLeft:-2,backgroundColor:"#5bc0de"},t.iconInfoAfter={content:"",position:"absolute",width:7,height:7,borderRadius:"50%",marginLeft:-3,left:"50%",top:19,backgroundColor:"#5bc0de"},t.iconSuccess={borderColor:"#4cae4c"},t.iconSuccessBeforeAfter={content:"",borderRadius:"50%",position:"absolute",width:60,height:120,background:"white",transform:"rotate(45deg)"},t.iconSuccessBefore={borderRadius:"120px 0 0 120px",height:100,top:-7,left:-33,transform:"rotate(-45deg)",transformOrigin:"60px 60px"},t.iconSuccessAfter={borderRadius:"0 120px 120px 0",top:-11,left:30,transform:"rotate(-45deg)",transformOrigin:"0px 60px",animation:"rotatePlaceholder 4.25s ease-in"},t.iconSuccessPlaceholder={width:80,height:80,border:"4px solid rgba(92, 184, 92, 0.2)",borderRadius:"50%",boxSizing:"content-box",position:"absolute",left:-4,top:-4,zIndex:2},t.iconSuccessFix={width:5,height:90,backgroundColor:"#fff",position:"absolute",left:28,top:8,zIndex:1,transform:"rotate(-45deg)"},t.iconSuccessLine={height:5,backgroundColor:"#5cb85c",display:"block",borderRadius:2,position:"absolute",zIndex:2},t.iconSuccessLineTip={width:25,left:14,top:46,transform:"rotate(45deg)",animation:"animateSuccessTip 0.75s"},t.iconSuccessLineLong={width:47,right:8,top:38,transform:"rotate(-45deg)",animation:"animateSuccessLong 0.75s"},t.iconCustom={backgroundSize:"contain",borderRadius:0,border:"none",backgroundPosition:"center center",backgroundRepeat:"no-repeat"},t.button={marginRight:8},t.validationMessage={display:"block",backgroundColor:"#f1f1f1",marginLeft:"-1.25rem",marginRight:"-1.25rem",marginTop:20,overflow:"hidden",padding:10,maxHeight:100,transition:"padding 0.25s, max-height 0.25s",color:"#797979",fontSize:16,textAlign:"center",fontWeight:300},t.exclamationIcon={display:"inline-block",width:24,height:24,borderRadius:"50%",backgroundColor:"#ea7d7d",color:"white",lineHeight:"24px",textAlign:"center",marginRight:5},t.inputErrorIcon={position:"absolute",top:8,right:8,width:20,height:20,transformOrigin:"50% 50%",transition:"all 0.1s",opacity:1,transform:"scale(1)"},t.inputErrorIconBeforeAfter={content:"",width:20,height:6,backgroundColor:"#f06e57",borderRadius:3,position:"absolute",top:"50%",marginTop:-4,left:"50%",marginLeft:-9},t.inputErrorIconBefore={transform:"rotate(-45deg)"},t.inputErrorIconAfter={transform:"rotate(45deg)"},t.closeButton={position:"absolute",right:4,top:-2,fontSize:25,fontWeight:900,color:"rgb(113, 113, 113)",zIndex:1,cursor:"pointer"}},7517:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>l});var r=n(1609),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},4417:(e,t,n)=>{window,e.exports=function(e,t,n){return a={},r.m=o=[function(e,t,n){e.exports=n(10)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<|]|"+t.src_ZPCc+"))("+d+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+d+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),(u=e).__index__=-1,u.__text_cache__=""}function d(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function p(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=c,this.__tlds_replaced__=!1,this.re={},u(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,a,i,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&0<=(l=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=i)),0<=this.__index__},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),u(this),this},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){e.exports=n(40)},function(e,t,n){},function(e,t,n){"use strict";var r=n(11);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(22).source,t.src_Cc=n(23).source,t.src_Z=n(24).source,t.src_P=n(25).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"Editor",(function(){return Er}));var r=n(1),o=n.n(r),a=n(0),i=n.n(a),s=n(3),l=n(4),c=n(2),u=n.n(c);function d(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||E(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},5959:(e,t,n)=>{"use strict";e.exports=n(5843)},6017:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,a=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,p=60115,f=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),o=h("react.fragment"),a=h("react.strict_mode"),i=h("react.profiler"),s=h("react.provider"),l=h("react.context"),c=h("react.forward_ref"),u=h("react.suspense"),d=h("react.suspense_list"),p=h("react.memo"),f=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case p:case s:return e;default:return t}}case r:return t}}}(e)===l}},8141:(e,t,n)=>{"use strict";e.exports=n(6017)},5818:(e,t,n)=>{"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,{polyfill:()=>i}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},2359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&0==(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&d.add(i.body,o),r&&d.add(i.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=n?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,i);return this.props.overlayElement(c,d)}}]),t}(i.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(p.SafeHTMLCollection),s.default.instanceOf(p.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},4009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return i=t||i},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(3730))&&r.__esModule?r:{default:r},a=n(1747),i=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,i],t=0;t0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))}))},9443:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var i in r)o(a,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},9784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(5420))&&r.__esModule?r:{default:r},a=[],i=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},5509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},1747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(3092))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},7308:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!i)return;r=l}if(l!==c||i||(r=s),s===c&&i&&(r=l),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=i?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=i?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(5420))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},5420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(2359))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},7159:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},5387:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,Ix:()=>A,KC:()=>v,Ye:()=>w,Zp:()=>g,jb:()=>l,sv:()=>M,x$:()=>b,zy:()=>h});var r=n(1609),o=n(339);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,a({fromRouteId:t},o)))}),[e,t])}():function(){f()||(0,o.Oi)(!1);let e=r.useContext(i),{basename:t,future:n,navigator:a}=r.useContext(l),{matches:s}=r.useContext(u),{pathname:c}=h(),d=JSON.stringify((0,o.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return m((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void a.go(n);let i=(0,o.Gh)(n,JSON.parse(d),c,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,o.HS)([t,i.pathname])),(r.replace?a.replace:a.push)(i,r.state,r)}),[t,a,d,c,e])}()}const y=r.createContext(null);function v(){return r.useContext(y)}function b(e,t){let{relative:n}=void 0===t?{}:t,{future:a}=r.useContext(l),{matches:i}=r.useContext(u),{pathname:s}=h(),c=JSON.stringify((0,o.yD)(i,a.v7_relativeSplatPath));return r.useMemo((()=>(0,o.Gh)(e,JSON.parse(c),s,"path"===n)),[e,c,s,n])}function w(e,t){return function(e,t,n,i){f()||(0,o.Oi)(!1);let{navigator:s}=r.useContext(l),{matches:d}=r.useContext(u),p=d[d.length-1],m=p?p.params:{},g=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let y,v=h();if(t){var b;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,o.Oi)(!1),y=e}else y=v;let w=y.pathname||"/",E=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,o.ue)(e,{pathname:E}),O=function(e,t,n,a){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=a)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,c=null==(i=n)?void 0:i.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,o,a)=>{let i,s=!1,p=null,f=null;var h;n&&(i=c&&o.route.id?c[o.route.id]:void 0,p=o.route.errorElement||x,u&&(d<0&&0===a?(N[h="route-fallback"]||(N[h]=!0),s=!0,f=null):d===a&&(s=!0,f=o.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,a+1)),g=()=>{let t;return t=i?p:s?f:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(_,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?r.createElement(C,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(S&&S.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,n,i);return t&&O?r.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.rc.Pop}},O):O}(e,t)}function E(){let e=function(){var e;let t=r.useContext(d),n=function(){let e=r.useContext(s);return e||(0,o.Oi)(!1),e}(O.UseRouteError),a=k(O.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[a]}(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const x=r.createElement(E,null);class C extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(u.Provider,{value:this.props.routeContext},r.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _(e){let{routeContext:t,match:n,children:o}=e,a=r.useContext(i);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(u.Provider,{value:t},o)}var S=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S||{}),O=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(O||{});function k(e){let t=function(){let e=r.useContext(u);return e||(0,o.Oi)(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.Oi)(!1),n.route.id}const N={};function M(e){return function(e){let t=r.useContext(u).outlet;return t?r.createElement(y.Provider,{value:e},t):t}(e.context)}function A(e){let{basename:t="/",children:n=null,location:i,navigationType:s=o.rc.Pop,navigator:u,static:d=!1,future:p}=e;f()&&(0,o.Oi)(!1);let h=t.replace(/^\/*/,"/"),m=r.useMemo((()=>({basename:h,navigator:u,static:d,future:a({v7_relativeSplatPath:!1},p)})),[h,p,u,d]);"string"==typeof i&&(i=(0,o.Rr)(i));let{pathname:g="/",search:y="",hash:v="",state:b=null,key:w="default"}=i,E=r.useMemo((()=>{let e=(0,o.pb)(g,h);return null==e?null:{location:{pathname:e,search:y,hash:v,state:b,key:w},navigationType:s}}),[h,g,y,v,b,w,s]);return null==E?null:r.createElement(l.Provider,{value:m},r.createElement(c.Provider,{children:n,value:E}))}r.startTransition,new Promise((()=>{})),r.Component},5798:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(5890),o=n(1609),a=n(4547),i=n(7533),s=n(4350),l=(n(5795),n(3327),(0,o.forwardRef)((function(e,t){var n=(0,s.u)(e),l=(0,i.u)(n);return o.createElement(a.S,(0,r.A)({ref:t},l))})))},4547:(e,t,n)=>{"use strict";n.d(t,{S:()=>pe});var r=n(5890),o=n(6313),a=n(2367),i=n(9755),s=n(5007),l=n(4296),c=n(2663),u=n(2410);function d(e){return function(e){if(Array.isArray(e))return(0,c.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,u.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=n(1609),f=n(6012),h=n(2588),m=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function g(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(a," focused, ").concat(u(i,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},E=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,i=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=e.isAppleDevice,d=l.ariaLiveMessages,f=l.getOptionLabel,m=l.inputValue,g=l.isMulti,y=l.isOptionDisabled,v=l.isSearchable,E=l.menuIsOpen,x=l.options,C=l.screenReaderStatus,_=l.tabSelectsValue,S=l.isLoading,O=l["aria-label"],k=l["aria-live"],N=(0,p.useMemo)((function(){return(0,o.A)((0,o.A)({},w),d||{})}),[d]),M=(0,p.useMemo)((function(){var e,n="";if(t&&N.onChange){var r=t.option,a=t.options,i=t.removedValue,l=t.removedValues,c=t.value,u=i||r||(e=c,Array.isArray(e)?null:e),d=u?f(u):"",p=a||l||void 0,h=p?p.map(f):[],m=(0,o.A)({isDisabled:u&&y(u,s),label:d,labels:h},t);n=N.onChange(m)}return n}),[t,N,y,s,f]),A=(0,p.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&N.onFocus){var i={focused:t,label:f(t),isDisabled:y(t,s),isSelected:o,options:a,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=N.onFocus(i)}return e}),[n,r,f,y,N,a,s,u]),D=(0,p.useMemo)((function(){var e="";if(E&&x.length&&!S&&N.onFilter){var t=C({count:a.length});e=N.onFilter({inputValue:m,resultsMessage:t})}return e}),[a,m,E,N,x,C,S]),I="initial-input-focus"===(null==t?void 0:t.action),j=(0,p.useMemo)((function(){var e="";if(N.guidance){var t=r?"value":E?"menu":"input";e=N.guidance({"aria-label":O,context:t,isDisabled:n&&y(n,s),isMulti:g,isSearchable:v,tabSelectsValue:_,isInitialFocus:I})}return e}),[O,n,r,g,y,v,E,N,s,_,I]),T=(0,h.Y)(p.Fragment,null,(0,h.Y)("span",{id:"aria-selection"},M),(0,h.Y)("span",{id:"aria-focused"},A),(0,h.Y)("span",{id:"aria-results"},D),(0,h.Y)("span",{id:"aria-guidance"},j));return(0,h.Y)(p.Fragment,null,(0,h.Y)(b,{id:c},I&&T),(0,h.Y)(b,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!I&&T))},x=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],C=new RegExp("["+x.map((function(e){return e.letters})).join("")+"]","g"),_={},S=0;S0,m=d-p-u,g=!1;m>t&&i.current&&(r&&r(e),i.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(n&&!i.current&&n(e),f.scrollTop=d,g=!0,i.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,a]),d=(0,p.useCallback)((function(e){u(e,e.deltaY)}),[u]),h=(0,p.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,p.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),g=(0,p.useCallback)((function(e){if(e){var t=!!f.s&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}}),[m,h,d]),y=(0,p.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))}),[m,h,d]);return(0,p.useEffect)((function(){if(t){var e=c.current;return g(e),function(){y(e)}}}),[t,g,y]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,p.useRef)({}),a=(0,p.useRef)(null),i=(0,p.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;if(r&&T.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&q<1){var a=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+a||0;Object.keys(L).forEach((function(e){var t=L[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&B()&&(t.addEventListener("touchmove",P,U),e&&(e.addEventListener("touchstart",F,U),e.addEventListener("touchmove",R,U))),q+=1}}),[r]),s=(0,p.useCallback)((function(e){if(z){var t=document.body,n=t&&t.style;q=Math.max(q-1,0),r&&q<1&&T.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&B()&&(t.removeEventListener("touchmove",P,U),e&&(e.removeEventListener("touchstart",F,U),e.removeEventListener("touchmove",R,U)))}}),[r]);return(0,p.useEffect)((function(){if(t){var e=a.current;return i(e),function(){s(e)}}}),[t,i,s]),function(e){a.current=e}}({isEnabled:n});return(0,h.Y)(p.Fragment,null,n&&(0,h.Y)("div",{onClick:H,css:V}),t((function(e){o(e),a(e)})))}var G={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},W=function(e){var t=e.name,n=e.onFocus;return(0,h.Y)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:G,value:"",onChange:function(){}})};function Y(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Q(){return Y(/^Mac/i)}var $={clearIndicator:f.a,container:f.b,control:f.d,dropdownIndicator:f.e,group:f.g,groupHeading:f.f,indicatorsContainer:f.i,indicatorSeparator:f.h,input:f.j,loadingIndicator:f.l,loadingMessage:f.k,menu:f.m,menuList:f.n,menuPortal:f.o,multiValue:f.p,multiValueLabel:f.q,multiValueRemove:f.t,noOptionsMessage:f.u,option:f.v,placeholder:f.w,singleValue:f.x,valueContainer:f.y},Z={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},J={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,f.z)(),captureMenuScroll:!(0,f.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.A)({ignoreCase:!0,ignoreAccents:!0,stringify:D,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,a=n.ignoreAccents,i=n.stringify,s=n.trim,l=n.matchFrom,c=s?A(t):t,u=s?A(i(e)):i(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=M(c),u=N(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,f.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function X(e,t,n,r){return{type:"option",data:t,isDisabled:se(e,t,n),isSelected:le(e,t,n),label:ae(e,t),value:ie(e,t),index:r}}function ee(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return X(e,n,t,r)})).filter((function(t){return re(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=X(e,n,t,r);return re(e,a)?a:void 0})).filter(f.K)}function te(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,d(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ne(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,d(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function re(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,s=t.value;return(!ue(e)||!a)&&ce(e,{label:i,value:s,data:o},r)}var oe=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ae=function(e,t){return e.getOptionLabel(t)},ie=function(e,t){return e.getOptionValue(t)};function se(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function le(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ie(e,t);return n.some((function(t){return ie(e,t)===r}))}function ce(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ue=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},de=1,pe=function(e){(0,s.A)(n,e);var t=(0,l.A)(n);function n(e){var r;if((0,a.A)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Q()||Y(/^iPhone/i)||Y(/^iPad/i)||Q()&&navigator.maxTouchPoints>1,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,a=o.closeMenuOnSelect,i=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=t.name,i=r.state.selectValue,s=o&&r.isOptionSelected(e,i),l=r.isOptionDisabled(e,i);if(s){var c=r.getOptionValue(e);r.setValue((0,f.B)(i.filter((function(e){return r.getOptionValue(e)!==c}))),"deselect-option",e)}else{if(l)return void r.ariaOnChange((0,f.C)(e),{action:"select-option",option:e,name:a});o?r.setValue((0,f.B)([].concat(d(i),[e])),"select-option",e):r.setValue((0,f.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=(0,f.D)(t,a,a[0]||null);r.onChange(i,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,f.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=(0,f.D)(e,o,o[0]||null);n&&r.onChange(a,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return oe(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return ne(ee(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return ue(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:i}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(i)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++de),r.state.selectValue=(0,f.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),l=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=s[l],r.state.focusedOptionId=oe(i,s[l])}return r}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,f.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,f.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[i],focusedOptionId:this.getFocusedOptionId(a[i])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Z):(0,o.A)((0,o.A)({},Z),this.props.theme):Z}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,i=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:a,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return se(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return le(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ce(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,a=e.inputId,i=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,u=e.required,d=this.getComponents().Input,h=this.state,m=h.inputIsHidden,g=h.ariaSelection,y=this.commonProps,v=a||this.getElementId("input"),b=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?p.createElement(d,(0,r.A)({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:i},b)):p.createElement(j,(0,r.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:f.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,h=u.isMulti,m=u.inputValue,g=u.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,w=y.isFocused;if(!this.hasValue()||!d)return m?null:p.createElement(l,(0,r.A)({},c,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var l=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return p.createElement(n,(0,r.A)({},c,{components:{Container:o,Label:a,Remove:i},isFocused:l,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var E=v[0];return p.createElement(s,(0,r.A)({},c,{data:E,isDisabled:f}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,i=this.state.isFocused;return e&&a?p.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return p.createElement(n,(0,r.A)({},o,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return p.createElement(e,(0,r.A)({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,a=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,h=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,w=m.minMenuHeight,E=m.maxMenuHeight,x=m.menuIsOpen,C=m.menuPlacement,_=m.menuPosition,S=m.menuPortalTarget,O=m.menuShouldBlockScroll,k=m.menuShouldScrollIntoView,N=m.noOptionsMessage,M=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!x)return null;var D,I=function(t,n){var o=t.type,a=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,f=h===a,m=i?void 0:function(){return e.onOptionHover(a)},g=i?void 0:function(){return e.selectOption(a)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:s};return p.createElement(u,(0,r.A)({},d,{innerProps:v,data:a,isDisabled:i,isSelected:s,key:y,label:l,type:o,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return p.createElement(n,(0,r.A)({},d,{key:l,data:a,options:i,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(v){var j=b({inputValue:y});if(null===j)return null;D=p.createElement(l,d,j)}else{var T=N({inputValue:y});if(null===T)return null;D=p.createElement(c,d,T)}var L={minMenuHeight:w,maxMenuHeight:E,menuPlacement:C,menuPosition:_,menuShouldScrollIntoView:k},P=p.createElement(f.M,(0,r.A)({},d,L),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return p.createElement(a,(0,r.A)({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),p.createElement(K,{captureEnabled:g,onTopArrive:M,onBottomArrive:A,lockEnabled:O},(function(t){return p.createElement(i,(0,r.A)({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:l,focusedOption:h}),D)})))}));return S||"fixed"===_?p.createElement(s,(0,r.A)({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:C,menuPosition:_}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,a=t.name,i=t.required,s=this.state.selectValue;if(i&&!this.hasValue()&&!r)return p.createElement(W,{name:a,onFocus:this.onValueInputFocus});if(a&&!r){if(o){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return p.createElement("input",{name:a,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return p.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):p.createElement("input",{name:a,type:"hidden",value:""});return p.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return p.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,a=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return p.createElement(E,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:a,isFocused:i,selectValue:s,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return p.createElement(o,(0,r.A)({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),p.createElement(t,(0,r.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),p.createElement(a,(0,r.A)({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),p.createElement(n,(0,r.A)({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=t.instancePrefix,u=e.options,d=e.value,p=e.menuIsOpen,h=e.inputValue,m=e.isMulti,g=(0,f.H)(d),y={};if(n&&(d!==n.value||u!==n.options||p!==n.menuIsOpen||h!==n.inputValue)){var v=p?function(e,t){return te(ee(e,t))}(e,g):[],b=p?ne(ee(e,g),"".concat(c,"-option")):[],w=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,v);y={selectValue:g,focusedOption:E,focusedOptionId:oe(b,E),focusableOptionsWithIds:b,focusedValue:w,clearFocusValueOnUpdate:!1}}var x=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},C=i,_=s&&l;return s&&!_&&(C={value:(0,f.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},_=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),(0,o.A)((0,o.A)((0,o.A)({},y),x),{},{prevProps:e,ariaSelection:C,prevWasFocused:_})}}]),n}(p.Component);pe.defaultProps=J},6012:(e,t,n)=>{"use strict";n.d(t,{A:()=>$,B:()=>oe,C:()=>re,D:()=>ne,E:()=>B,F:()=>Xe,G:()=>V,H:()=>z,I:()=>Y,J:()=>R,K:()=>te,L:()=>H,M:()=>he,a:()=>De,b:()=>we,d:()=>Pe,e:()=>Ae,f:()=>Be,g:()=>Fe,h:()=>Ie,i:()=>xe,j:()=>qe,k:()=>ve,l:()=>Te,m:()=>pe,n:()=>me,o:()=>be,p:()=>Ke,q:()=>Ge,r:()=>ae,s:()=>ee,t:()=>We,u:()=>ye,v:()=>Qe,w:()=>$e,x:()=>Ze,y:()=>Ee,z:()=>Q});var r=n(6313),o=n(5890),a=n(2588),i=n(9086),s=n(2511),l=n(9826),c=n(3205),u=n(1609),d=n(5795);const p=Math.min,f=Math.max,h=Math.round,m=Math.floor,g=e=>({x:e,y:e});function y(){return"undefined"!=typeof window}function v(e){return E(e)?(e.nodeName||"").toLowerCase():"#document"}function b(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function w(e){var t;return null==(t=(E(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function E(e){return!!y()&&(e instanceof Node||e instanceof b(e).Node)}function x(e){return!!y()&&(e instanceof Element||e instanceof b(e).Element)}function C(e){return!!y()&&(e instanceof HTMLElement||e instanceof b(e).HTMLElement)}function _(e){return!(!y()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof b(e).ShadowRoot)}function S(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=O(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function O(e){return b(e).getComputedStyle(e)}function k(e){const t=function(e){if("html"===v(e))return e;const t=e.assignedSlot||e.parentNode||_(e)&&e.host||w(e);return _(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(v(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:C(t)&&S(t)?t:k(t)}function N(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=k(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=b(o);if(a){const e=M(i);return t.concat(i,i.visualViewport||[],S(o)?o:[],e&&n?N(e):[])}return t.concat(o,N(o,[],n))}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function A(e){return x(e)?e:e.contextElement}function D(e){const t=A(e);if(!C(t))return g(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=O(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=C(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=h(n)!==a||h(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}(t);let i=(a?h(n.width):n.width)/r,s=(a?h(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const I=g(0);function j(e){const t=b(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:I}function T(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=A(e);let i=g(1);t&&(r?x(r)&&(i=D(r)):i=D(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==b(e))&&t}(a,n,r)?j(a):g(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=b(a),t=r&&x(r)?b(r):r;let n=e,o=M(n);for(;o&&r&&t!==n;){const e=D(o),t=o.getBoundingClientRect(),r=O(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=b(o),o=M(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}var L=n(3327),P=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],R=function(){};function F(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function B(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function K(e){return V(e)?window.pageYOffset:e.scrollTop}function G(e,t){V(e)?window.scrollTo(0,t):e.scrollTop=t}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,o=K(e),a=t-o,i=0;!function t(){var s,l=a*((s=(s=i+=10)/n-1)*s*s+1)+o;G(e,l),in.bottom?G(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o1?t-1:0),r=1;r=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!i)return a&&W(l,S,k),{placement:"bottom",maxHeight:t};if(!i&&_>=r||i&&x>=r)return a&&W(l,S,k),{placement:"bottom",maxHeight:i?x-b:_-b};if("auto"===o||i){var N=t,M=i?E:C;return M>=r&&(N=Math.min(M-b-s,t)),{placement:"top",maxHeight:N}}if("bottom"===o)return a&&G(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(E>=h)return{placement:"top",maxHeight:t};if(C>=h&&!i)return a&&W(l,O,k),{placement:"top",maxHeight:t};if(!i&&C>=r||i&&E>=r){var A=t;return(!i&&C>=r||i&&E>=r)&&(A=i?E-w:C-w),a&&W(l,O,k),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:a,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:E});g(r.maxHeight),w(r.placement),null==d||d(r.placement)}}),[o,a,s,l,n,d,E]),t({ref:p,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:b||de(a),maxHeight:m})})},me=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,r.A)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},ge=function(e,t){var n=e.theme,o=n.spacing.baseUnit,a=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ye=ge,ve=ge,be=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},we=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Ee=function(e,t){var n=e.theme.spacing,o=e.isMulti,a=e.hasValue,i=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:o&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},xe=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Ce=["size"],_e=["innerProps","isRtl","size"],Se={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Oe=function(e){var t=e.size,n=(0,s.A)(e,Ce);return(0,a.Y)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Se},n))},ke=function(e){return(0,a.Y)(Oe,(0,o.A)({size:20},e),(0,a.Y)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ne=function(e){return(0,a.Y)(Oe,(0,o.A)({size:20},e),(0,a.Y)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Me=function(e,t){var n=e.isFocused,o=e.theme,a=o.spacing.baseUnit,i=o.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a,":hover":{color:n?i.neutral80:i.neutral40}})},Ae=Me,De=Me,Ie=function(e,t){var n=e.isDisabled,o=e.theme,a=o.spacing.baseUnit,i=o.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*a,marginTop:2*a})},je=(0,a.i7)(le||(ce=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ue||(ue=ce.slice(0)),le=Object.freeze(Object.defineProperties(ce,{raw:{value:Object.freeze(ue)}})))),Te=function(e,t){var n=e.isFocused,o=e.size,a=e.theme,i=a.colors,s=a.spacing.baseUnit;return(0,r.A)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},Le=function(e){var t=e.delay,n=e.offset;return(0,a.Y)("span",{css:(0,a.AH)({animation:"".concat(je," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Pe=function(e,t){var n=e.isDisabled,o=e.isFocused,a=e.theme,i=a.colors,s=a.borderRadius,l=a.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},Re=["data"],Fe=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},Be=function(e,t){var n=e.theme,o=n.colors,a=n.spacing;return(0,r.A)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},ze=["innerRef","isDisabled","isHidden","inputClassName"],qe=function(e,t){var n=e.isDisabled,o=e.value,a=e.theme,i=a.spacing,s=a.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},He),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},Ue={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},He={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ue)},Ve=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ue)},Ke=function(e,t){var n=e.theme,o=n.spacing,a=n.borderRadius,i=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},Ge=function(e,t){var n=e.theme,o=n.borderRadius,a=n.colors,i=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},We=function(e,t){var n=e.theme,o=n.spacing,a=n.borderRadius,i=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},Ye=function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",n,t)},Qe=function(e,t){var n=e.isDisabled,o=e.isFocused,a=e.isSelected,i=e.theme,s=i.spacing,l=i.colors;return(0,r.A)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?l.primary:o?l.primary25:"transparent",color:n?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?l.primary:l.primary50}})},$e=function(e,t){var n=e.theme,o=n.spacing,a=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ze=function(e,t){var n=e.isDisabled,o=e.theme,a=o.spacing,i=o.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Je={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,a.Y)(ke,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,a.Y)("div",(0,o.A)({ref:i},U(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,a.Y)(Ne,null))},DownChevron:Ne,CrossIcon:ke,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,s=e.Heading,l=e.headingProps,c=e.innerProps,u=e.label,d=e.theme,p=e.selectProps;return(0,a.Y)("div",(0,o.A)({},U(e,"group",{group:!0}),c),(0,a.Y)(s,(0,o.A)({},l,{selectProps:p,theme:d,getStyles:r,getClassNames:i,cx:n}),u),(0,a.Y)("div",null,t))},GroupHeading:function(e){var t=q(e);t.data;var n=(0,s.A)(t,Re);return(0,a.Y)("div",(0,o.A)({},U(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,a.Y)("span",(0,o.A)({},t,U(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=q(e),i=r.innerRef,l=r.isDisabled,c=r.isHidden,u=r.inputClassName,d=(0,s.A)(r,ze);return(0,a.Y)("div",(0,o.A)({},U(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,a.Y)("input",(0,o.A)({className:t({input:!0},u),ref:i,style:Ve(c),disabled:l},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,i=e.size,l=void 0===i?4:i,c=(0,s.A)(e,_e);return(0,a.Y)("div",(0,o.A)({},U((0,r.A)((0,r.A)({},c),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,a.Y)(Le,{delay:0,offset:n}),(0,a.Y)(Le,{delay:160,offset:!0}),(0,a.Y)(Le,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return(0,a.Y)("div",(0,o.A)({},U(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,l=e.innerProps,c=e.menuPlacement,h=e.menuPosition,g=(0,u.useRef)(null),y=(0,u.useRef)(null),v=(0,u.useState)(de(c)),b=(0,i.A)(v,2),E=b[0],x=b[1],C=(0,u.useMemo)((function(){return{setPortalPlacement:x}}),[]),_=(0,u.useState)(null),S=(0,i.A)(_,2),O=S[0],k=S[1],M=(0,u.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===h?0:window.pageYOffset,n=e[E]+t;n===(null==O?void 0:O.offset)&&e.left===(null==O?void 0:O.rect.left)&&e.width===(null==O?void 0:O.rect.width)||k({offset:n,rect:e})}}),[s,h,E,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);(0,L.A)((function(){M()}),[M]);var D=(0,u.useCallback)((function(){"function"==typeof y.current&&(y.current(),y.current=null),s&&g.current&&(y.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=A(e),u=o||a?[...c?N(c):[],...N(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=w(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const g={rootMargin:-m(u)+"px "+-m(o.clientWidth-(c+d))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(c)+"px",threshold:f(0,p(1,l))||1};let y=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!y)return i();t?i(!1,t):n=setTimeout((()=>{i(!1,1e-7)}),1e3)}y=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),a}(c,n):null;let h,g=-1,y=null;i&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),c&&!l&&y.observe(c),y.observe(t));let v=l?T(e):null;return l&&function t(){const r=T(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n(),v=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=y)||e.disconnect(),y=null,l&&cancelAnimationFrame(h)}}(s,g.current,M,{elementResize:"ResizeObserver"in window}))}),[s,M]);(0,L.A)((function(){D()}),[D]);var I=(0,u.useCallback)((function(e){g.current=e,D()}),[D]);if(!t&&"fixed"!==h||!O)return null;var j=(0,a.Y)("div",(0,o.A)({ref:I},U((0,r.A)((0,r.A)({},e),{},{offset:O.offset,position:h,rect:O.rect}),"menuPortal",{"menu-portal":!0}),l),n);return(0,a.Y)(fe.Provider,{value:C},t?(0,d.createPortal)(j,t):j)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,i=e.innerProps,l=(0,s.A)(e,se);return(0,a.Y)("div",(0,o.A)({},U((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,i=e.innerProps,l=(0,s.A)(e,ie);return(0,a.Y)("div",(0,o.A)({},U((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,s=e.isDisabled,l=e.removeProps,c=e.selectProps,u=n.Container,d=n.Label,p=n.Remove;return(0,a.Y)(u,{data:o,innerProps:(0,r.A)((0,r.A)({},U(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:c},(0,a.Y)(d,{data:o,innerProps:(0,r.A)({},U(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},t),(0,a.Y)(p,{data:o,innerProps:(0,r.A)((0,r.A)({},U(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:c}))},MultiValueContainer:Ye,MultiValueLabel:Ye,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({role:"button"},n),t||(0,a.Y)(ke,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return(0,a.Y)("div",(0,o.A)({},U(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,a.Y)("div",(0,o.A)({},U(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return(0,a.Y)("div",(0,o.A)({},U(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Xe=function(e){return(0,r.A)((0,r.A)({},Je),e.components)}},8552:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7533),o=n(5890),a=n(1609),i=n(4547),s=(n(2096),n(5795),n(3327),(0,a.forwardRef)((function(e,t){var n=(0,r.u)(e);return a.createElement(i.S,(0,o.A)({ref:t},n))})))},4350:(e,t,n)=>{"use strict";n.d(t,{u:()=>u});var r=n(3205),o=n(6313),a=n(9086),i=n(2511),s=n(1609),l=n(6012),c=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function u(e){var t=e.defaultOptions,n=void 0!==t&&t,u=e.cacheOptions,d=void 0!==u&&u,p=e.loadOptions;e.options;var f=e.isLoading,h=void 0!==f&&f,m=e.onInputChange,g=e.filterOption,y=void 0===g?null:g,v=(0,i.A)(e,c),b=v.inputValue,w=(0,s.useRef)(void 0),E=(0,s.useRef)(!1),x=(0,s.useState)(Array.isArray(n)?n:void 0),C=(0,a.A)(x,2),_=C[0],S=C[1],O=(0,s.useState)(void 0!==b?b:""),k=(0,a.A)(O,2),N=k[0],M=k[1],A=(0,s.useState)(!0===n),D=(0,a.A)(A,2),I=D[0],j=D[1],T=(0,s.useState)(void 0),L=(0,a.A)(T,2),P=L[0],R=L[1],F=(0,s.useState)([]),B=(0,a.A)(F,2),z=B[0],q=B[1],U=(0,s.useState)(!1),H=(0,a.A)(U,2),V=H[0],K=H[1],G=(0,s.useState)({}),W=(0,a.A)(G,2),Y=W[0],Q=W[1],$=(0,s.useState)(void 0),Z=(0,a.A)($,2),J=Z[0],X=Z[1],ee=(0,s.useState)(void 0),te=(0,a.A)(ee,2),ne=te[0],re=te[1];d!==ne&&(Q({}),re(d)),n!==J&&(S(Array.isArray(n)?n:void 0),X(n)),(0,s.useEffect)((function(){return E.current=!0,function(){E.current=!1}}),[]);var oe=(0,s.useCallback)((function(e,t){if(!p)return t();var n=p(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[p]);(0,s.useEffect)((function(){!0===n&&oe(N,(function(e){E.current&&(S(e||[]),j(!!w.current))}))}),[]);var ae=(0,s.useCallback)((function(e,t){var n=(0,l.L)(e,t,m);if(!n)return w.current=void 0,M(""),R(""),q([]),j(!1),void K(!1);if(d&&Y[n])M(n),R(n),q(Y[n]),j(!1),K(!1);else{var a=w.current={};M(n),j(!0),K(!P),oe(n,(function(e){E&&a===w.current&&(w.current=void 0,j(!1),R(n),q(e||[]),K(!1),Q(e?(0,o.A)((0,o.A)({},Y),{},(0,r.A)({},n,e)):Y))}))}}),[d,oe,P,Y,m]),ie=V?[]:N&&P?z:_||[];return(0,o.A)((0,o.A)({},v),{},{options:ie,isLoading:I||h,onInputChange:ae,filterOption:y})}},7533:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(6313),o=n(9086),a=n(2511),i=n(1609),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function l(e){var t=e.defaultInputValue,n=void 0===t?"":t,l=e.defaultMenuIsOpen,c=void 0!==l&&l,u=e.defaultValue,d=void 0===u?null:u,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,a.A)(e,s),w=(0,i.useState)(void 0!==p?p:n),E=(0,o.A)(w,2),x=E[0],C=E[1],_=(0,i.useState)(void 0!==f?f:c),S=(0,o.A)(_,2),O=S[0],k=S[1],N=(0,i.useState)(void 0!==v?v:d),M=(0,o.A)(N,2),A=M[0],D=M[1],I=(0,i.useCallback)((function(e,t){"function"==typeof h&&h(e,t),D(e)}),[h]),j=(0,i.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),C(void 0!==n?n:e)}),[m]),T=(0,i.useCallback)((function(){"function"==typeof y&&y(),k(!0)}),[y]),L=(0,i.useCallback)((function(){"function"==typeof g&&g(),k(!1)}),[g]),P=void 0!==p?p:x,R=void 0!==f?f:O,F=void 0!==v?v:A;return(0,r.A)((0,r.A)({},b),{},{inputValue:P,menuIsOpen:R,onChange:I,onInputChange:j,onMenuClose:L,onMenuOpen:T,value:F})}},1336:(e,t,n)=>{var r=n(2299),o=n(6265),a=n(1609),i=n(4599);function s(e){return e&&e.__esModule?e.default:e}function l(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>c(e.element)))}function d(e){e.forEach((e=>{!function(e,t,n){const r=e.children[n]||null;e.insertBefore(t,r)}(e.parentElement,e.element,e.oldIndex)}))}function p(e,t){const n=m(e),r={parentElement:e.from};let o=[];switch(n){case"normal":o=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":o=[{element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex,...r},{element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex,...r}];break;case"multidrag":o=e.oldIndicies.map(((t,n)=>({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index,...r})))}const a=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(o,t);return a}function f(e,t){const n=[...t];return e.concat().reverse().forEach((e=>n.splice(e.oldIndex,1))),n}function h(e,t,n,r){const o=[...t];return e.forEach((e=>{const t=r&&n&&r(e.item,n);o.splice(e.newIndex,0,t||e.item)})),o}function m(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}l(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),l(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),l(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),l(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),l(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),l(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),l(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),l(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),l(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),l(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),l(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),l(e.exports,"ReactSortable",(()=>y));const g={dragging:null};class y extends a.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,a.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),s(i)(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n ')}componentDidMount(){if(null===this.ref.current)return;const e=this.makeOptions();s(r).create(this.ref.current,e)}componentDidUpdate(e){e.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:e,style:t,className:n,id:r}=this.props,o={style:t,className:n,id:r},i=e&&null!==e?e:"div";return(0,a.createElement)(i,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:i="sortable-drag",fallbackClass:l="sortable-falback",ghostClass:c="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:d="sortable-filter",list:p}=this.props;if(!e||null==e)return null;const f=t||"data-id";return a.Children.map(e,((e,t)=>{if(void 0===e)return;const i=p[t]||{},{className:l}=e.props,c="string"==typeof d&&{[d.replace(".","")]:!!i.filtered},u=s(o)(l,{[n]:i.selected,[r]:i.chosen,...c});return(0,a.cloneElement)(e,{[f]:e.key,className:u})}))}get sortable(){const e=this.ref.current;if(null===e)return null;const t=Object.keys(e).find((e=>e.includes("Sortable")));return t?e[t]:null}makeOptions(){const e=function(e){const{list:t,setList:n,children:r,tag:o,style:a,className:i,clone:s,onAdd:l,onChange:c,onChoose:u,onClone:d,onEnd:p,onFilter:f,onRemove:h,onSort:m,onStart:g,onUnchoose:y,onUpdate:v,onMove:b,onSpill:w,onSelect:E,onDeselect:x,...C}=e;return C}(this.props);return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((t=>e[t]=this.prepareOnHandlerPropAndDOM(t))),["onChange","onClone","onFilter","onSort"].forEach((t=>e[t]=this.prepareOnHandlerProp(t))),{...e,onMove:(e,t)=>{const{onMove:n}=this.props,r=e.willInsertAfter||-1;if(!n)return r;const o=n(e,t,this.sortable,g);return void 0!==o&&o}}}prepareOnHandlerPropAndDOM(e){return t=>{this.callOnHandlerProp(t,e),this[e](t)}}prepareOnHandlerProp(e){return t=>{this.callOnHandlerProp(t,e)}}callOnHandlerProp(e,t){const n=this.props[t];n&&n(e,this.sortable,g)}onAdd(e){const{list:t,setList:n,clone:r}=this.props,o=p(e,[...g.dragging.props.list]);u(o),n(h(o,t,e,r).map((e=>Object.assign(e,{selected:!1}))),this.sortable,g)}onRemove(e){const{list:t,setList:n}=this.props,r=m(e),o=p(e,t);d(o);let a=[...t];if("clone"!==e.pullMode)a=f(o,a);else{let t=o;switch(r){case"multidrag":t=o.map(((t,n)=>({...t,element:e.clones[n]})));break;case"normal":t=o.map((t=>({...t,element:e.clone})));break;default:s(i)(!0,`mode "${r}" cannot clone. Please remove "props.clone" from when using the "${r}" plugin`)}u(t),o.forEach((t=>{const n=t.oldIndex,r=this.props.clone(t.item,e);a.splice(n,1,r)}))}a=a.map((e=>Object.assign(e,{selected:!1}))),n(a,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,r=p(e,t);return u(r),d(r),n(function(e,t){return h(e,f(e,t))}(r,t),this.sortable,g)}onStart(){g.dragging=this}onEnd(){g.dragging=null}onChoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(t,{chosen:!0})),r})),this.sortable,g)}onUnchoose(e){const{list:t,setList:n}=this.props;n(t.map(((t,n)=>{let r=t;return n===e.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,g)}onSpill(e){const{removeOnSpill:t,revertOnSpill:n}=this.props;t&&!n&&c(e.item)}onSelect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((t=>{const n=t.index;if(-1===n)return console.log(`"${e.type}" had indice of "${t.index}", which is probably -1 and doesn't usually happen here.`),void console.log(e);r[n].selected=!0})),n(r,this.sortable,g)}onDeselect(e){const{list:t,setList:n}=this.props,r=t.map((e=>Object.assign(e,{selected:!1})));e.newIndicies.forEach((e=>{const t=e.index;-1!==t&&(r[t].selected=!0)})),n(r,this.sortable,g)}}var v,b;v=e.exports,b={},Object.keys(b).forEach((function(e){"default"===e||"__esModule"===e||v.hasOwnProperty(e)||Object.defineProperty(v,e,{enumerable:!0,get:function(){return b[e]}})}))},6080:function(e,t,n){!function(e){"use strict";if(!e.setImmediate){var t,n,r,o,a,i=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?t=function(e){process.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){p(e.data)},t=function(e){r.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,t=function(e){var t=c.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(p,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var n=new Array(arguments.length-1),r=0;r{"use strict";var r=n(8131),o=n(7379),a=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+r(e))},delete:function(t){var n=e&&e.next,r=function(e,t){if(e)return a(e,t,!0)}(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},1085:(e,t,n)=>{"use strict";var r=n(211),o=n(9459),a=n(8131),i=n(7379),s=r("%Map%",!0),l=o("Map.prototype.get",!0),c=o("Map.prototype.set",!0),u=o("Map.prototype.has",!0),d=o("Map.prototype.delete",!0),p=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},7706:(e,t,n)=>{"use strict";var r=n(211),o=n(9459),a=n(8131),i=n(1085),s=n(7379),l=r("%WeakMap%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(i&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,r)):i&&(t||(t=i()),t.set(n,r))}};return n}:i},5717:(e,t,n)=>{"use strict";var r=n(7379),o=n(8131),a=n(9552),i=n(1085),s=n(7706)||i||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=s()),e.set(t,n)}};return t}},2299:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nwt,Sortable:()=>qe,Swap:()=>ct,default:()=>Ct});var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),p=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),h=c(/iP(ad|od|hone)/i),m=c(/chrome/i)&&c(/android/i),g={capture:!1,passive:!1};function y(e,t,n){e.addEventListener(t,n,!u&&g)}function v(e,t,n){e.removeEventListener(t,n,!u&&g)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function w(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function E(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||r&&e===n)return e;if(e===n)break}while(e=w(e))}return null}var x,C=/\s+/g;function _(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function S(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function O(e,t){var n="";if("string"==typeof e)n=e;else do{var r=S(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function k(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o=a:o<=a))return r;if(r===N())break;r=L(r,!1)}return!1}function D(e,t,n,r){for(var o=0,a=0,i=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Y);G.pluginEvent.bind(qe)(e,t,o({dragEl:Z,parentEl:J,ghostEl:X,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:ye,putSortable:ue,activeSortable:qe.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:se,newIndex:ie,newDraggableIndex:le,hideGhostForTarget:Re,unhideGhostForTarget:Fe,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){$({sortable:t,name:e,originalEvent:r})}},a))};function $(e){W(o({putSortable:ue,cloneEl:re,targetEl:Z,rootEl:ee,oldIndex:ae,oldDraggableIndex:se,newIndex:ie,newDraggableIndex:le},e))}var Z,J,X,ee,te,ne,re,oe,ae,ie,se,le,ce,ue,de,pe,fe,he,me,ge,ye,ve,be,we,Ee,xe=!1,Ce=!1,_e=[],Se=!1,Oe=!1,ke=[],Ne=!1,Me=[],Ae="undefined"!=typeof document,De=h,Ie=d||u?"cssFloat":"float",je=Ae&&!m&&!h&&"draggable"in document.createElement("div"),Te=function(){if(Ae){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Le=function(e,t){var n=S(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=D(e,0,t),a=D(e,1,t),i=o&&S(o),s=a&&S(a),l=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+M(o).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(a).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||l>=r&&"none"===n[Ie]||a&&"none"===n[Ie]&&l+c>r)?"vertical":"horizontal"},Pe=function(e){function t(e,n){return function(r,o,a,i){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var l=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==a(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Re=function(){!Te&&X&&S(X,"display","none")},Fe=function(){!Te&&X&&S(X,"display","")};Ae&&!m&&document.addEventListener("click",(function(e){if(Ce)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ce=!1,!1}),!0);var Be=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,_e.some((function(e){var t=e[H].options.emptyInsertThreshold;if(t&&!I(e)){var n=M(e),r=o>=n.left-t&&o<=n.right+t,s=a>=n.top-t&&a<=n.bottom+t;return r&&s?i=e:void 0}})),i);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[H]._onDragOver(n)}}var o,a,i},ze=function(e){Z&&Z.parentNode[H]._isOutsideThisEl(e.target)};function qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[H]=this;var n,r,a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Le(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==qe.supportPointer&&"PointerEvent"in window&&(!f||h),emptyInsertThreshold:5};for(var i in G.initializePlugins(this,e,a),a)!(i in t)&&(t[i]=a[i]);for(var l in Pe(t),this)"_"===l.charAt(0)&&"function"==typeof this[l]&&(this[l]=this[l].bind(this));this.nativeDraggable=!t.forceFallback&&je,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(e,"pointerdown",this._onTapStart):(y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),_e.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==S(e,"display")&&e!==qe.ghost){r.push({target:e,rect:M(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=O(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,a=0;r.forEach((function(e){var n=0,r=e.target,i=r.fromRect,s=M(r),l=r.prevFromRect,c=r.prevToRect,u=e.rect,d=O(r,!0);d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&P(l,s)&&!P(i,s)&&(u.top-s.top)/(u.left-s.left)==(i.top-s.top)/(i.left-s.left)&&(n=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,t.options)),P(s,i)||(r.prevFromRect=i,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,u,s,n)),n&&(o=!0,a=Math.max(a,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){S(e,"transition",""),S(e,"transform","");var o=O(this.el),a=o&&o.a,i=o&&o.d,s=(t.left-n.left)/(a||1),l=(t.top-n.top)/(i||1);e.animatingX=!!s,e.animatingY=!!l,S(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),S(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),S(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){S(e,"transition",""),S(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Ue(e,t,n,r,o,a,i,s){var l,c,p=e[H],f=p.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=o||t,l.relatedRect=a||M(t),l.willInsertAfter=s,l.originalEvent=i,e.dispatchEvent(l),f&&(c=f.call(p,l,i)),c}function He(e){e.draggable=!1}function Ve(){Ne=!1}function Ke(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Ge(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}qe.prototype={constructor:qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(i||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Me.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Me.push(r)}}(n),!Z&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!f||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=E(s,r.draggable,n,!1))&&s.animated||ne===s)){if(ae=j(s),se=j(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return $({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),Q("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=E(l,r.trim(),n,!1))return $({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Q("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!E(l,r.handle,n,!1)||this._prepareDragStart(e,i,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,s=a.ownerDocument;if(n&&!Z&&n.parentNode===a){var l=M(n);if(ee=a,J=(Z=n).parentNode,te=Z.nextSibling,ne=n,ce=i.group,qe.dragged=Z,de={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},me=de.clientX-l.left,ge=de.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",r=function(){Q("delayEnded",o,{evt:e}),qe.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!p&&o.nativeDraggable&&(Z.draggable=!0),o._triggerDragStart(e,t),$({sortable:o,name:"choose",originalEvent:e}),_(Z,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){k(Z,e.trim(),He)})),y(s,"dragover",Be),y(s,"mousemove",Be),y(s,"touchmove",Be),i.supportPointer?(y(s,"pointerup",o._onDrop),!this.nativeDraggable&&y(s,"pointercancel",o._onDrop)):(y(s,"mouseup",o._onDrop),y(s,"touchend",o._onDrop),y(s,"touchcancel",o._onDrop)),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),Q("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(qe.eventCanceled)return void this._onDrop();i.supportPointer?(y(s,"pointerup",o._disableDelayedDrag),y(s,"pointercancel",o._disableDelayedDrag)):(y(s,"mouseup",o._disableDelayedDrag),y(s,"touchend",o._disableDelayedDrag),y(s,"touchcancel",o._disableDelayedDrag)),y(s,"mousemove",o._delayedDragTouchMoveHandler),y(s,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&y(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Z&&He(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"pointerup",this._disableDelayedDrag),v(e,"pointercancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,t?"touchmove":"mousemove",this._onTouchMove):(y(Z,"dragend",this),y(ee,"dragstart",this._onDragStart));try{document.selection?Ge((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(xe=!1,ee&&Z){Q("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",ze);var n=this.options;!e&&_(Z,n.dragClass,!1),_(Z,n.ghostClass,!0),qe.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,Re();for(var e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY))!==t;)t=e;if(Z.parentNode[H]._isOutsideThisEl(e),t)do{if(t[H]&&t[H]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=w(t));Fe()}},_onTouchMove:function(e){if(de){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=X&&O(X,!0),i=X&&a&&a.a,s=X&&a&&a.d,l=De&&Ee&&T(Ee),c=(o.clientX-de.clientX+r.x)/(i||1)+(l?l[0]-ke[0]:0)/(i||1),u=(o.clientY-de.clientY+r.y)/(s||1)+(l?l[1]-ke[1]:0)/(s||1);if(!qe.active&&!xe){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))o.right+10||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>o.bottom+10||e.clientX>r.right&&e.clientY>r.top}(e,a,this)&&!g.animated){if(g===Z)return q(!1);if(g&&i===e.target&&(s=g),s&&(n=M(s)),!1!==Ue(ee,i,Z,t,s,n,e,!!s))return z(),g&&g.nextSibling?i.insertBefore(Z,g.nextSibling):i.appendChild(Z),J=i,V(),q(!0)}else if(g&&function(e,t,n){var r=M(D(n.el,0,n.options,!0)),o=U(n.el,n.options,X);return t?e.clientXu+c*a/2:ld-we)return-be}else if(l>u+c*(1-o)/2&&ld-c*a/2)?l>u+c/2?1:-1:0}(e,s,n,a,C?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Oe,ve===s),0!==v){var T=j(Z);do{T-=v,w=J.children[T]}while(w&&("none"===S(w,"display")||w===X))}if(0===v||w===s)return q(!1);ve=s,be=v;var L=s.nextElementSibling,P=!1,R=Ue(ee,i,Z,t,s,n,e,P=1===v);if(!1!==R)return 1!==R&&-1!==R||(P=1===R),Ne=!0,setTimeout(Ve,30),z(),P&&!L?i.appendChild(Z):s.parentNode.insertBefore(Z,P?L:s),k&&F(k,0,N-k.scrollTop),J=Z.parentNode,void 0===b||Oe||(we=Math.abs(b-M(s)[O])),V(),q(!0)}if(i.contains(Z))return q(!1)}return!1}function B(l,c){Q(l,h,o({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:p,fromSortable:f,target:s,completed:q,onMove:function(n,r){return Ue(ee,i,Z,t,n,M(n),e,r)},changed:V},c))}function z(){B("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function q(t){return B("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==f&&(_(Z,ue?ue.options.ghostClass:u.options.ghostClass,!1),_(Z,l.ghostClass,!0)),ue!==h&&h!==qe.active?ue=h:h===qe.active&&ue&&(ue=null),f===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){B("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===i&&!s.animated)&&(ve=null),l.dragoverBubble||e.rootEl||s===document||(Z.parentNode[H]._isOutsideThisEl(e.target),!t&&Be(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function V(){ie=j(Z),le=j(Z,l.draggable),$({sortable:h,name:"change",toEl:i,newIndex:ie,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Be),v(document,"mousemove",Be),v(document,"touchmove",Be)},_offUpEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._onDrop),v(e,"touchend",this._onDrop),v(e,"pointerup",this._onDrop),v(e,"pointercancel",this._onDrop),v(e,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=j(Z),le=j(Z,n.draggable),Q("drop",this,{evt:e}),J=Z&&Z.parentNode,ie=j(Z),le=j(Z,n.draggable),qe.eventCanceled||(xe=!1,Oe=!1,Se=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&S(document.body,"user-select",""),S(Z,"transform",""),e&&(ye&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(ee===J||ue&&"clone"!==ue.lastPutMode)&&re&&re.parentNode&&re.parentNode.removeChild(re),Z&&(this.nativeDraggable&&v(Z,"dragend",this),He(Z),Z.style["will-change"]="",ye&&!xe&&_(Z,ue?ue.options.ghostClass:this.options.ghostClass,!1),_(Z,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ie>=0&&($({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),$({sortable:this,name:"remove",toEl:J,originalEvent:e}),$({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),$({sortable:this,name:"sort",toEl:J,originalEvent:e})),ue&&ue.save()):ie!==ae&&ie>=0&&($({sortable:this,name:"update",toEl:J,originalEvent:e}),$({sortable:this,name:"sort",toEl:J,originalEvent:e})),qe.active&&(null!=ie&&-1!==ie||(ie=ae,le=se),$({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),ee=Z=J=X=te=re=ne=oe=de=pe=ye=ie=le=ae=se=ve=be=ue=ce=qe.dragged=qe.ghost=qe.clone=qe.active=null,Me.forEach((function(e){e.checked=!0})),Me.length=fe=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,a=this.options;r1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?M(e):o}),q(e),e.fromRect=o,t.removeAnimationState(e)})),vt=!1,function(e,t){mt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,a=e.parentEl,i=e.putSortable,s=this.options;if(r){if(n&&o._hideClone(),yt=!1,s.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!i)){var l=M(pt,!1,!0,!0);mt.forEach((function(e){e!==pt&&(z(e,l),a.appendChild(e))})),vt=!0}if(!n)if(vt||xt(),mt.length>1){var c=ht;o._showClone(t),o.options.animation&&!ht&&c&>.forEach((function(e){o.addAnimationState({target:e,rect:ft}),e.fromRect=ft,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ft=s({},t);var o=O(pt,!0);ft.top-=o.f,ft.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,xt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!bt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),_(pt,c.selectedClass,!~mt.indexOf(pt)),~mt.indexOf(pt))mt.splice(mt.indexOf(pt),1),ut=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:pt,originalEvent:t});else{if(mt.push(pt),W({sortable:o,rootEl:n,name:"select",targetEl:pt,originalEvent:t}),t.shiftKey&&ut&&o.el.contains(ut)){var d=j(ut),p=j(pt);~d&&~p&&d!==p&&function(){var e,a;p>d?(a=d,e=p):(a=p,e=d+1);for(var i=c.filter;a1){var f=M(pt),h=j(pt,":not(."+this.options.selectedClass+")");if(!yt&&c.animation&&(pt.thisAnimationDuration=null),l.captureAnimationState(),!yt&&(c.animation&&(pt.fromRect=f,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==pt){var t=vt?M(e):f;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),xt(),mt.forEach((function(e){u[h]?r.insertBefore(e,u[h]):r.appendChild(e),h++})),i===j(pt))){var m=!1;mt.forEach((function(e){e.sortableIndex===j(e)||(m=!0)})),m&&(a("update"),a("sort"))}mt.forEach((function(e){q(e)})),l.animateAll()}dt=l}(n===r||s&&"clone"!==s.lastPutMode)&>.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=bt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==bt&&bt||dt!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];_(t,this.options.selectedClass,!1),mt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[H];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(dt&&dt!==t&&(dt.multiDrag._deselectMultiDrag(),dt=t),_(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[H],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(_(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return mt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=vt&&e!==pt?-1:vt?j(e,":not(."+t.options.selectedClass+")"):j(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),clones:[].concat(gt),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Et(e,t){gt.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function xt(){mt.forEach((function(e){e!==pt&&e.parentNode&&e.parentNode.removeChild(e)}))}qe.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),rt(),nt(),clearTimeout(x),x=void 0},nulling:function(){Je=Qe=Ye=tt=Xe=$e=Ze=null,et.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||d||u||f){at(e,this.options,a,t);var i=L(a,!0);!tt||Xe&&r===$e&&o===Ze||(Xe&&rt(),Xe=setInterval((function(){var a=L(document.elementFromPoint(r,o),!0);a!==i&&(i=a,nt()),at(e,n.options,a,t)}),10),$e=r,Ze=o)}else{if(!this.options.bubbleScroll||L(a,!0)===N())return void nt();at(e,this.options,L(a,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),qe.mount(lt,st);const Ct=qe},7545:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var o=r(n(6382)),a=n(747);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)})),n):n}},747:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(a,l)).replace(r,s))}},6382:(e,t,n)=>{var r=n(223);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var a,i,s=r(e),l="function"==typeof t,c=0,u=s.length;ce.charAt(0).toUpperCase()+e.slice(1),n=e=>Array.prototype.slice.call(e),r=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},o=t=>{console.error("".concat(e," ").concat(t))},a=[],i=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),a.includes(n)||(a.push(n),r(n))},s=e=>"function"==typeof e?e():e,l=e=>e&&"function"==typeof e.toPromise,c=e=>l(e)?e.toPromise():Promise.resolve(e),u=e=>e&&Promise.resolve(e)===e,d={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},p=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],f={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(d,e),g=e=>-1!==p.indexOf(e),y=e=>f[e],v=e=>{m(e)||r('Unknown parameter "'.concat(e,'"'))},b=e=>{h.includes(e)&&r('The parameter "'.concat(e,'" is incompatible with toasts'))},w=e=>{y(e)&&i(e,y(e))},E=e=>{const t={};for(const n in e)t[e[n]]="swal2-"+e[n];return t},x=E(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),C=E(["success","warning","info","question","error"]),_=()=>document.body.querySelector(".".concat(x.container)),S=e=>{const t=_();return t?t.querySelector(e):null},O=e=>S(".".concat(e)),k=()=>O(x.popup),N=()=>O(x.icon),M=()=>O(x.title),A=()=>O(x["html-container"]),D=()=>O(x.image),I=()=>O(x["progress-steps"]),j=()=>O(x["validation-message"]),T=()=>S(".".concat(x.actions," .").concat(x.confirm)),L=()=>S(".".concat(x.actions," .").concat(x.deny)),P=()=>S(".".concat(x.loader)),R=()=>S(".".concat(x.actions," .").concat(x.cancel)),F=()=>O(x.actions),B=()=>O(x.footer),z=()=>O(x["timer-progress-bar"]),q=()=>O(x.close),U=()=>{const e=n(k().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((e,t)=>{const n=parseInt(e.getAttribute("tabindex")),r=parseInt(t.getAttribute("tabindex"));return n>r?1:n"-1"!==e.getAttribute("tabindex")));return(e=>{const t=[];for(let n=0;nie(e)))},H=()=>W(document.body,x.shown)&&!W(document.body,x["toast-shown"])&&!W(document.body,x["no-backdrop"]),V=()=>k()&&W(k(),x.toast),K={previousBodyPadding:null},G=(e,t)=>{if(e.textContent="",t){const r=(new DOMParser).parseFromString(t,"text/html");n(r.querySelector("head").childNodes).forEach((t=>{e.appendChild(t)})),n(r.querySelector("body").childNodes).forEach((t=>{e.appendChild(t)}))}},W=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let t=0;t{if(((e,t)=>{n(e.classList).forEach((n=>{Object.values(x).includes(n)||Object.values(C).includes(n)||Object.values(t.showClass).includes(n)||e.classList.remove(n)}))})(e,t),t.customClass&&t.customClass[o]){if("string"!=typeof t.customClass[o]&&!t.customClass[o].forEach)return r("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(typeof t.customClass[o],'"'));J(e,t.customClass[o])}},Q=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(x.popup," > .").concat(x[t]));case"checkbox":return e.querySelector(".".concat(x.popup," > .").concat(x.checkbox," input"));case"radio":return e.querySelector(".".concat(x.popup," > .").concat(x.radio," input:checked"))||e.querySelector(".".concat(x.popup," > .").concat(x.radio," input:first-child"));case"range":return e.querySelector(".".concat(x.popup," > .").concat(x.range," input"));default:return e.querySelector(".".concat(x.popup," > .").concat(x.input))}},$=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},Z=(e,t,n)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((t=>{Array.isArray(e)?e.forEach((e=>{n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},J=(e,t)=>{Z(e,t,!0)},X=(e,t)=>{Z(e,t,!1)},ee=(e,t)=>{const r=n(e.childNodes);for(let e=0;e{n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.display=t},re=e=>{e.style.display="none"},oe=(e,t,n,r)=>{const o=e.querySelector(t);o&&(o.style[n]=r)},ae=(e,t,n)=>{t?ne(e,n):re(e)},ie=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),le=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=z();ie(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((()=>{n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},ue=()=>"undefined"==typeof window||"undefined"==typeof document,de={},pe=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;de.restoreFocusTimeout=setTimeout((()=>{de.previousActiveElement&&de.previousActiveElement.focus?(de.previousActiveElement.focus(),de.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),fe='\n
\n \n
    \n
    \n \n

    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),he=()=>{de.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=_();return!!e&&(e.remove(),X([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]),!0)})();if(ue())return void o("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=x.container,t&&J(n,x["no-transition"]),G(n,fe);const r="string"==typeof(a=e.target)?document.querySelector(a):a;var a;r.appendChild(n),(e=>{const t=k();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&J(_(),x.rtl)})(r),(()=>{const e=k(),t=ee(e,x.input),n=ee(e,x.file),r=e.querySelector(".".concat(x.range," input")),o=e.querySelector(".".concat(x.range," output")),a=ee(e,x.select),i=e.querySelector(".".concat(x.checkbox," input")),s=ee(e,x.textarea);t.oninput=he,n.onchange=he,a.onchange=he,i.onchange=he,s.oninput=he,r.oninput=()=>{he(),o.value=r.value},r.onchange=()=>{he(),r.nextSibling.value=r.value}})()},ge=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?ye(e,t):e&&G(t,e)},ye=(e,t)=>{e.jquery?ve(t,e):G(t,e.toString())},ve=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},be=(()=>{if(ue())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&void 0!==e.style[n])return t[n];return!1})(),we=(e,t)=>{const n=F(),r=P();t.showConfirmButton||t.showDenyButton||t.showCancelButton?ne(n):re(n),Y(n,t,"actions"),function(e,t,n){const r=T(),o=L(),a=R();Ee(r,"confirm",n),Ee(o,"deny",n),Ee(a,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return X([e,t,n],x.styled);J([e,t,n],x.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,J(e,x["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,J(t,x["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,J(n,x["default-outline"]))}(r,o,a,n),n.reverseButtons&&(n.toast?(e.insertBefore(a,r),e.insertBefore(o,r)):(e.insertBefore(a,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),G(r,t.loaderHtml),Y(r,t,"loader")};function Ee(e,n,r){ae(e,r["show".concat(t(n),"Button")],"inline-block"),G(e,r["".concat(n,"ButtonText")]),e.setAttribute("aria-label",r["".concat(n,"ButtonAriaLabel")]),e.className=x[n],Y(e,r,"".concat(n,"Button")),J(e,r["".concat(n,"ButtonClass")])}const xe=(e,t)=>{const n=_();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],x["no-backdrop"])}(n,t.backdrop),function(e,t){t in x?J(e,x[t]):(r('The "position" parameter is not valid, defaulting to "center"'),J(e,x.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const n="grow-".concat(t);n in x&&J(e,x[n])}}(n,t.grow),Y(n,t,"container"))};var Ce={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const _e=["input","file","range","select","radio","checkbox","textarea"],Se=e=>{if(!De[e.input])return o('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));const t=Ae(e.input),n=De[e.input](t,e);ne(n),setTimeout((()=>{$(n)}))},Oe=(e,t)=>{const n=Q(k(),e);if(n){(e=>{for(let t=0;t{const t=Ae(e.input);e.customClass&&J(t,e.customClass.input)},Ne=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Me=(e,t,n)=>{if(n.inputLabel){e.id=x.input;const r=document.createElement("label"),o=x["input-label"];r.setAttribute("for",e.id),r.className=o,J(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},Ae=e=>{const t=x[e]?x[e]:x.input;return ee(k(),t)},De={};De.text=De.email=De.password=De.number=De.tel=De.url=(e,t)=>("string"==typeof t.inputValue||"number"==typeof t.inputValue?e.value=t.inputValue:u(t.inputValue)||r('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue,'"')),Me(e,e,t),Ne(e,t),e.type=t.input,e),De.file=(e,t)=>(Me(e,e,t),Ne(e,t),e),De.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,r.value=t.inputValue,Me(n,e,t),e},De.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");G(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return Me(e,e,t),e},De.radio=e=>(e.textContent="",e),De.checkbox=(e,t)=>{const n=Q(k(),"checkbox");n.value="1",n.id=x.checkbox,n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return G(r,t.inputPlaceholder),e},De.textarea=(e,t)=>{e.value=t.inputValue,Ne(e,t),Me(e,e,t);return setTimeout((()=>{if("MutationObserver"in window){const t=parseInt(window.getComputedStyle(k()).width);new MutationObserver((()=>{const n=e.offsetWidth+(r=e,parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight));var r;k().style.width=n>t?"".concat(n,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};const Ie=(e,t)=>{const n=A();Y(n,t,"htmlContainer"),t.html?(ge(t.html,n),ne(n,"block")):t.text?(n.textContent=t.text,ne(n,"block")):re(n),((e,t)=>{const n=k(),r=Ce.innerParams.get(e),o=!r||t.input!==r.input;_e.forEach((e=>{const r=x[e],a=ee(n,r);Oe(e,t.inputAttributes),a.className=r,o&&re(a)})),t.input&&(o&&Se(t),ke(t))})(e,t)},je=(e,t)=>{for(const n in C)t.icon!==n&&X(e,C[n]);J(e,C[t.icon]),Pe(e,t),Te(),Y(e,t,"icon")},Te=()=>{const e=k(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e{e.textContent="",t.iconHtml?G(e,Re(t.iconHtml)):"success"===t.icon?G(e,'\n
    \n \n
    \n
    \n'):"error"===t.icon?G(e,'\n \n \n \n \n'):G(e,Re({question:"?",warning:"!",info:"i"}[t.icon]))},Pe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])oe(e,n,"backgroundColor",t.iconColor);oe(e,".swal2-success-ring","borderColor",t.iconColor)}},Re=e=>'
    ').concat(e,"
    "),Fe=(e,t)=>{const n=I();if(!t.progressSteps||0===t.progressSteps.length)return re(n);ne(n),n.textContent="",t.currentProgressStep>=t.progressSteps.length&&r("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(((e,r)=>{const o=(e=>{const t=document.createElement("li");return J(t,x["progress-step"]),G(t,e),t})(e);if(n.appendChild(o),r===t.currentProgressStep&&J(o,x["active-progress-step"]),r!==t.progressSteps.length-1){const e=(e=>{const t=document.createElement("li");return J(t,x["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t})(t);n.appendChild(e)}}))},Be=(e,t)=>{e.className="".concat(x.popup," ").concat(ie(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],x["toast-shown"]),J(e,x.toast)):J(e,x.modal),Y(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,x["icon-".concat(t.icon)])},ze=(e,t)=>{((e,t)=>{const n=_(),r=k();t.toast?(te(n,"width",t.width),r.style.width="100%",r.insertBefore(P(),N())):te(r,"width",t.width),te(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),re(j()),Be(r,t)})(0,t),xe(0,t),Fe(0,t),((e,t)=>{const n=Ce.innerParams.get(e),r=N();n&&t.icon===n.icon?(Le(r,t),je(r,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(C).indexOf(t.icon)?(o('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),re(r)):(ne(r),Le(r,t),je(r,t),J(r,t.showClass.icon)):re(r)})(e,t),((e,t)=>{const n=D();if(!t.imageUrl)return re(n);ne(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),te(n,"width",t.imageWidth),te(n,"height",t.imageHeight),n.className=x.image,Y(n,t,"image")})(0,t),((e,t)=>{const n=M();ae(n,t.title||t.titleText,"block"),t.title&&ge(t.title,n),t.titleText&&(n.innerText=t.titleText),Y(n,t,"title")})(0,t),((e,t)=>{const n=q();G(n,t.closeButtonHtml),Y(n,t,"closeButton"),ae(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Ie(e,t),we(0,t),((e,t)=>{const n=B();ae(n,t.footer),t.footer&&ge(t.footer,n),Y(n,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(k())},qe=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ue=()=>{n(document.body.children).forEach((e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))},He=["swal-title","swal-html","swal-footer"],Ve=e=>{const t={};return n(e.querySelectorAll("swal-param")).forEach((e=>{Ze(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");"boolean"==typeof d[n]&&"false"===r&&(t[n]=!1),"object"==typeof d[n]&&(t[n]=JSON.parse(r))})),t},Ke=e=>{const r={};return n(e.querySelectorAll("swal-button")).forEach((e=>{Ze(e,["type","color","aria-label"]);const n=e.getAttribute("type");r["".concat(n,"ButtonText")]=e.innerHTML,r["show".concat(t(n),"Button")]=!0,e.hasAttribute("color")&&(r["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(r["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label"))})),r},Ge=e=>{const t={},n=e.querySelector("swal-image");return n&&(Ze(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt"))),t},We=e=>{const t={},n=e.querySelector("swal-icon");return n&&(Ze(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Ye=e=>{const t={},r=e.querySelector("swal-input");r&&(Ze(r,["type","label","placeholder","value"]),t.input=r.getAttribute("type")||"text",r.hasAttribute("label")&&(t.inputLabel=r.getAttribute("label")),r.hasAttribute("placeholder")&&(t.inputPlaceholder=r.getAttribute("placeholder")),r.hasAttribute("value")&&(t.inputValue=r.getAttribute("value")));const o=e.querySelectorAll("swal-input-option");return o.length&&(t.inputOptions={},n(o).forEach((e=>{Ze(e,["value"]);const n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},Qe=(e,t)=>{const n={};for(const r in t){const o=t[r],a=e.querySelector(o);a&&(Ze(a,[]),n[o.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},$e=e=>{const t=He.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);n(e.children).forEach((e=>{const n=e.tagName.toLowerCase();-1===t.indexOf(n)&&r("Unrecognized element <".concat(n,">"))}))},Ze=(e,t)=>{n(e.attributes).forEach((n=>{-1===t.indexOf(n.name)&&r(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))};var Je={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Xe(e){(function(e){e.inputValidator||Object.keys(Je).forEach((t=>{e.input===t&&(e.inputValidator=Je[t])}))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&r("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(r('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
    ")),me(e)}class et{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const tt=()=>{null===K.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(K.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(K.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=x["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})(),"px"))},nt=()=>{const e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);if(t&&n&&!e.match(/CriOS/i)){const e=44;k().scrollHeight>window.innerHeight-e&&(_().style.paddingBottom="".concat(e,"px"))}},rt=()=>{const e=_();let t;e.ontouchstart=e=>{t=ot(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},ot=e=>{const t=e.target,n=_();return!(at(e)||it(e)||t!==n&&(se(n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(A())&&A().contains(t)))},at=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,it=e=>e.touches&&e.touches.length>1,st=e=>{const t=_(),r=k();"function"==typeof e.willOpen&&e.willOpen(r);const o=window.getComputedStyle(document.body).overflowY;dt(t,r,e),setTimeout((()=>{ct(t,r)}),10),H()&&(ut(t,e.scrollbarPadding,o),n(document.body.children).forEach((e=>{e===_()||e.contains(_())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),V()||de.previousActiveElement||(de.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(r))),X(t,x["no-transition"])},lt=e=>{const t=k();if(e.target!==t)return;const n=_();t.removeEventListener(be,lt),n.style.overflowY="auto"},ct=(e,t)=>{be&&le(t)?(e.style.overflowY="hidden",t.addEventListener(be,lt)):e.style.overflowY="auto"},ut=(e,t,n)=>{(()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!W(document.body,x.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,x.iosfix),rt(),nt()}})(),t&&"hidden"!==n&&tt(),setTimeout((()=>{e.scrollTop=0}))},dt=(e,t,n)=>{J(e,n.showClass.backdrop),t.style.setProperty("opacity","0","important"),ne(t,"grid"),setTimeout((()=>{J(t,n.showClass.popup),t.style.removeProperty("opacity")}),10),J([document.documentElement,document.body],x.shown),n.heightAuto&&n.backdrop&&!n.toast&&J([document.documentElement,document.body],x["height-auto"])},pt=e=>{let t=k();t||new On,t=k();const n=P();V()?re(N()):ft(t,e),ne(n),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},ft=(e,t)=>{const n=F(),r=P();!t&&ie(T())&&(t=T()),ne(n),t&&(re(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),J([e,n],x.loading)},ht=e=>e.checked?1:0,mt=e=>e.checked?e.value:null,gt=e=>e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,yt=(e,t)=>{const n=k(),r=e=>bt[t.input](n,wt(e),t);l(t.inputOptions)||u(t.inputOptions)?(pt(T()),c(t.inputOptions).then((t=>{e.hideLoading(),r(t)}))):"object"==typeof t.inputOptions?r(t.inputOptions):o("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions))},vt=(e,t)=>{const n=e.getInput();re(n),c(t.inputValue).then((r=>{n.value="number"===t.input?parseFloat(r)||0:"".concat(r),ne(n),n.focus(),e.hideLoading()})).catch((t=>{o("Error in inputValue promise: ".concat(t)),n.value="",ne(n),n.focus(),e.hideLoading()}))},bt={select:(e,t,n)=>{const r=ee(e,x.select),o=(e,t,r)=>{const o=document.createElement("option");o.value=r,G(o,t),o.selected=Et(r,n.inputValue),e.appendChild(o)};t.forEach((e=>{const t=e[0],n=e[1];if(Array.isArray(n)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,r.appendChild(e),n.forEach((t=>o(e,t[1],t[0])))}else o(r,n,t)})),r.focus()},radio:(e,t,n)=>{const r=ee(e,x.radio);t.forEach((e=>{const t=e[0],o=e[1],a=document.createElement("input"),i=document.createElement("label");a.type="radio",a.name=x.radio,a.value=t,Et(t,n.inputValue)&&(a.checked=!0);const s=document.createElement("span");G(s,o),s.className=x.label,i.appendChild(a),i.appendChild(s),r.appendChild(i)}));const o=r.querySelectorAll("input");o.length&&o[0].focus()}},wt=e=>{const t=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(((e,n)=>{let r=e;"object"==typeof r&&(r=wt(r)),t.push([n,r])})):Object.keys(e).forEach((n=>{let r=e[n];"object"==typeof r&&(r=wt(r)),t.push([n,r])})),t},Et=(e,t)=>t&&t.toString()===e.toString();function xt(){const e=Ce.innerParams.get(this);if(!e)return;const t=Ce.domCache.get(this);re(t.loader),V()?e.icon&&ne(N()):Ct(t),X([t.popup,t.actions],x.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Ct=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ne(t[0],"inline-block"):!ie(T())&&!ie(L())&&!ie(R())&&re(e.actions)};var _t={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const St=()=>T()&&T().click(),Ot=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},kt=(e,t,n)=>{const r=U();if(r.length)return(t+=n)===r.length?t=0:-1===t&&(t=r.length-1),r[t].focus();k().focus()},Nt=["ArrowRight","ArrowDown"],Mt=["ArrowLeft","ArrowUp"],At=(e,t,n)=>{const r=Ce.innerParams.get(e);r&&(t.isComposing||229===t.keyCode||(r.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Dt(e,t,r):"Tab"===t.key?It(t,r):[...Nt,...Mt].includes(t.key)?jt(t.key):"Escape"===t.key&&Tt(t,r,n)))},Dt=(e,t,n)=>{if(s(n.allowEnterKey)&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;St(),t.preventDefault()}},It=(e,t)=>{const n=e.target,r=U();let o=-1;for(let e=0;e{if(![T(),L(),R()].includes(document.activeElement))return;const t=Nt.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),n(qe.esc))};function Lt(e,t,n,r){V()?Ut(e,r):(pe(n).then((()=>Ut(e,r))),Ot(de)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),H()&&(null!==K.previousBodyPadding&&(document.body.style.paddingRight="".concat(K.previousBodyPadding,"px"),K.previousBodyPadding=null),(()=>{if(W(document.body,x.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,x.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),Ue()),X([document.documentElement,document.body],[x.shown,x["height-auto"],x["no-backdrop"],x["toast-shown"]])}function Pt(e){e=Bt(e);const t=_t.swalPromiseResolve.get(this),n=Rt(this);this.isAwaitingPromise()?e.isDismissed||(Ft(this),t(e)):n&&t(e)}const Rt=e=>{const t=k();if(!t)return!1;const n=Ce.innerParams.get(e);if(!n||W(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),J(t,n.hideClass.popup);const r=_();return X(r,n.showClass.backdrop),J(r,n.hideClass.backdrop),zt(e,t,n),!0};const Ft=e=>{e.isAwaitingPromise()&&(Ce.awaitingPromise.delete(e),Ce.innerParams.get(e)||e._destroy())},Bt=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),zt=(e,t,n)=>{const r=_(),o=be&&le(t);"function"==typeof n.willClose&&n.willClose(t),o?qt(e,t,r,n.returnFocus,n.didClose):Lt(e,r,n.returnFocus,n.didClose)},qt=(e,t,n,r,o)=>{de.swalCloseEventFinishedCallback=Lt.bind(null,e,n,r,o),t.addEventListener(be,(function(e){e.target===t&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback)}))},Ut=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Ht(e,t,n){const r=Ce.domCache.get(e);t.forEach((e=>{r[e].disabled=n}))}function Vt(e,t){if(!e)return!1;if("radio"===e.type){const n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e{const t={};return Object.keys(e).forEach((n=>{g(n)?t[n]=e[n]:r('Invalid parameter to update: "'.concat(n,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),t};const Gt=e=>{Wt(e),delete e.params,delete de.keydownHandler,delete de.keydownTarget,delete de.currentInstance},Wt=e=>{e.isAwaitingPromise()?(Yt(Ce,e),Ce.awaitingPromise.set(e,!0)):(Yt(_t,e),Yt(Ce,e))},Yt=(e,t)=>{for(const n in e)e[n].delete(t)};var Qt=Object.freeze({hideLoading:xt,disableLoading:xt,getInput:function(e){const t=Ce.innerParams.get(e||this),n=Ce.domCache.get(e||this);return n?Q(n.popup,t.input):null},close:Pt,isAwaitingPromise:function(){return!!Ce.awaitingPromise.get(this)},rejectPromise:function(e){const t=_t.swalPromiseReject.get(this);Ft(this),t&&t(e)},handleAwaitingPromise:Ft,closePopup:Pt,closeModal:Pt,closeToast:Pt,enableButtons:function(){Ht(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Ht(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Vt(this.getInput(),!1)},disableInput:function(){return Vt(this.getInput(),!0)},showValidationMessage:function(e){const t=Ce.domCache.get(this),n=Ce.innerParams.get(this);G(t.validationMessage,e),t.validationMessage.className=x["validation-message"],n.customClass&&n.customClass.validationMessage&&J(t.validationMessage,n.customClass.validationMessage),ne(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",x["validation-message"]),$(r),J(r,x.inputerror))},resetValidationMessage:function(){const e=Ce.domCache.get(this);e.validationMessage&&re(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,x.inputerror))},getProgressSteps:function(){return Ce.domCache.get(this).progressSteps},update:function(e){const t=k(),n=Ce.innerParams.get(this);if(!t||W(t,n.hideClass.popup))return r("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Kt(e),a=Object.assign({},n,o);ze(this,a),Ce.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=Ce.domCache.get(this),t=Ce.innerParams.get(this);t?(e.popup&&de.swalCloseEventFinishedCallback&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback),de.deferDisposalTimer&&(clearTimeout(de.deferDisposalTimer),delete de.deferDisposalTimer),"function"==typeof t.didDestroy&&t.didDestroy(),Gt(this)):Wt(this)}});const $t=(e,n)=>{const r=Ce.innerParams.get(e);if(!r.input)return o('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(n)));const a=((e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return ht(n);case"radio":return mt(n);case"file":return gt(n);default:return t.inputAutoTrim?n.value.trim():n.value}})(e,r);r.inputValidator?Zt(e,a,n):e.getInput().checkValidity()?"deny"===n?Jt(e,a):tn(e,a):(e.enableButtons(),e.showValidationMessage(r.validationMessage))},Zt=(e,t,n)=>{const r=Ce.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>c(r.inputValidator(t,r.validationMessage)))).then((r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):"deny"===n?Jt(e,t):tn(e,t)}))},Jt=(e,t)=>{const n=Ce.innerParams.get(e||void 0);n.showLoaderOnDeny&&pt(L()),n.preDeny?(Ce.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),Ft(e)):e.closePopup({isDenied:!0,value:void 0===n?t:n})})).catch((t=>en(e||void 0,t)))):e.closePopup({isDenied:!0,value:t})},Xt=(e,t)=>{e.closePopup({isConfirmed:!0,value:t})},en=(e,t)=>{e.rejectPromise(t)},tn=(e,t)=>{const n=Ce.innerParams.get(e||void 0);n.showLoaderOnConfirm&&pt(),n.preConfirm?(e.resetValidationMessage(),Ce.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>c(n.preConfirm(t,n.validationMessage)))).then((n=>{ie(j())||!1===n?(e.hideLoading(),Ft(e)):Xt(e,void 0===n?t:n)})).catch((t=>en(e||void 0,t)))):Xt(e,t)},nn=(e,t,n)=>{t.popup.onclick=()=>{const t=Ce.innerParams.get(e);t&&(rn(t)||t.timer||t.input)||n(qe.close)}},rn=e=>e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton;let on=!1;const an=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(on=!0)}}},sn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(on=!0)}}},ln=(e,t,n)=>{t.container.onclick=r=>{const o=Ce.innerParams.get(e);on?on=!1:r.target===t.container&&s(o.allowOutsideClick)&&n(qe.backdrop)}},cn=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const un=()=>{if(de.timeout)return(()=>{const e=z(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.removeProperty("transition"),e.style.width="".concat(n,"%")})(),de.timeout.stop()},dn=()=>{if(de.timeout){const e=de.timeout.start();return ce(e),e}};let pn=!1;const fn={};const hn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in fn){const n=t.getAttribute(e);if(n)return void fn[e].fire({template:n})}};var mn=Object.freeze({isValidParameter:m,isUpdatableParameter:g,isDeprecatedParameter:y,argsToParams:e=>{const t={};return"object"!=typeof e[0]||cn(e[0])?["title","html","icon"].forEach(((n,r)=>{const a=e[r];"string"==typeof a||cn(a)?t[n]=a:void 0!==a&&o("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof a))})):Object.assign(t,e[0]),t},isVisible:()=>ie(k()),clickConfirm:St,clickDeny:()=>L()&&L().click(),clickCancel:()=>R()&&R().click(),getContainer:_,getPopup:k,getTitle:M,getHtmlContainer:A,getImage:D,getIcon:N,getInputLabel:()=>O(x["input-label"]),getCloseButton:q,getActions:F,getConfirmButton:T,getDenyButton:L,getCancelButton:R,getLoader:P,getFooter:B,getTimerProgressBar:z,getFocusableElements:U,getValidationMessage:j,isLoading:()=>k().hasAttribute("data-loading"),fire:function(){for(var e=arguments.length,t=new Array(e),n=0;nde.timeout&&de.timeout.getTimerLeft(),stopTimer:un,resumeTimer:dn,toggleTimer:()=>{const e=de.timeout;return e&&(e.running?un():dn())},increaseTimer:e=>{if(de.timeout){const t=de.timeout.increase(e);return ce(t,!0),t}},isTimerRunning:()=>de.timeout&&de.timeout.isRunning(),bindClickHandler:function(){fn[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,pn||(document.body.addEventListener("click",hn),pn=!0)}});let gn;class yn{constructor(){if("undefined"==typeof window)return;gn=this;for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};(e=>{!e.backdrop&&e.allowOutsideClick&&r('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)v(t),e.toast&&b(t),w(t)})(Object.assign({},t,e)),de.currentInstance&&(de.currentInstance._destroy(),H()&&Ue()),de.currentInstance=this;const n=bn(e,t);Xe(n),Object.freeze(n),de.timeout&&(de.timeout.stop(),delete de.timeout),clearTimeout(de.restoreFocusTimeout);const o=wn(this);return ze(this,n),Ce.innerParams.set(this,n),vn(this,o,n)}then(e){return Ce.promise.get(this).then(e)}finally(e){return Ce.promise.get(this).finally(e)}}const vn=(e,t,n)=>new Promise(((r,o)=>{const a=t=>{e.closePopup({isDismissed:!0,dismiss:t})};_t.swalPromiseResolve.set(e,r),_t.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>(e=>{const t=Ce.innerParams.get(e);e.disableButtons(),t.input?$t(e,"confirm"):tn(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=Ce.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?$t(e,"deny"):Jt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(qe.cancel)})(e,a),t.closeButton.onclick=()=>a(qe.close),((e,t,n)=>{Ce.innerParams.get(e).toast?nn(e,t,n):(an(t),sn(t),ln(e,t,n))})(e,t,a),((e,t,n,r)=>{Ot(t),n.toast||(t.keydownHandler=t=>At(e,t,r),t.keydownTarget=n.keydownListenerCapture?window:k(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(e,de,n,a),((e,t)=>{"select"===t.input||"radio"===t.input?yt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(l(t.inputValue)||u(t.inputValue))&&(pt(T()),vt(e,t))})(e,n),st(n),En(de,n,a),xn(t,n),setTimeout((()=>{t.container.scrollTop=0}))})),bn=(e,t)=>{const n=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return $e(n),Object.assign(Ve(n),Ke(n),Ge(n),We(n),Ye(n),Qe(n,He))})(e),r=Object.assign({},d,t,n,e);return r.showClass=Object.assign({},d.showClass,r.showClass),r.hideClass=Object.assign({},d.hideClass,r.hideClass),r},wn=e=>{const t={popup:k(),container:_(),actions:F(),confirmButton:T(),denyButton:L(),cancelButton:R(),loader:P(),closeButton:q(),validationMessage:j(),progressSteps:I()};return Ce.domCache.set(e,t),t},En=(e,t,n)=>{const r=z();re(r),t.timer&&(e.timeout=new et((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ne(r),Y(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&ce(t.timer)}))))},xn=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(Cn(e,t)||kt(0,-1,1)):Sn()},Cn=(e,t)=>t.focusDeny&&ie(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ie(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ie(e.confirmButton)||(e.confirmButton.focus(),0)),Sn=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(yn.prototype,Qt),Object.assign(yn,mn),Object.keys(Qt).forEach((e=>{yn[e]=function(){if(gn)return gn[e](...arguments)}})),yn.DismissReason=qe,yn.version="11.4.8";const On=yn;return On.default=On,On}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 3px}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 3px;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .5s;animation:swal2-animate-i-mark .5s}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-i-mark .8s;animation:swal2-animate-i-mark .8s}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content{-webkit-animation:swal2-animate-question-mark .8s;animation:swal2-animate-question-mark .8s}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@-webkit-keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@-webkit-keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},4599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=!0,o="Invariant failed";function a(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t;throw new Error(n?o+": "+n:o)}}},5664:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):a:this[s[0]]=u?s[1].call(this,u,s[2]):a:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):a):this[s]=u||a;d+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r2&&(e[d]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[p]=a,e[m]=a,Q.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[p]=a,e[m]=a,Q.call(e,r,w.os),E&&!e[p]&&y&&y.platform&&"Unknown"!=y.platform&&(e[p]=y.platform.replace(/chrome os/i,U).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?Y(e,500):e,this},this.setUA(r),this};X.VERSION="0.7.39",X.BROWSER=K([p,m,u]),X.CPU=K([g]),X.DEVICE=K([d,h,f,y,v,w,b,E,x]),X.ENGINE=X.OS=K([p,m]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===a||(e.exports=r):typeof o!==s&&(o.UAParser=X);var ee=typeof o!==s&&(o.jQuery||o.Zepto);if(ee&&!ee.ua){var te=new X;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"==typeof window?window:this)},3327:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var r=n(1609).useLayoutEffect},8880:(e,t,n)=>{"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9835:(e,t,n)=>{"use strict";e.exports=n(8880)},3730:e=>{"use strict";e.exports=function(){}},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},1455:e=>{"use strict";e.exports=window.wp.apiFetch},6427:e=>{"use strict";e.exports=window.wp.components},2619:e=>{"use strict";e.exports=window.wp.hooks},8537:e=>{"use strict";e.exports=window.wp.htmlEntities},7723:e=>{"use strict";e.exports=window.wp.i18n},8954:()=>{},7500:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr})},531:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},2367:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},9755:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(7870);function o(e,t){for(var n=0;n{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}n.d(t,{A:()=>s});var a=n(9826),i=n(531);function s(e){var t=o();return function(){var n,o=r(e);if(t){var s=r(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==(0,a.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}(this,n)}}},3205:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7870);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5890:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},5007:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4652);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},6313:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3205);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t{"use strict";n.d(t,{A:()=>o});var r=n(5045);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},4652:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},9086:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2410);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},7870:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9826);function o(e){var t=function(e){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,r.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},9826:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},2410:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2663);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},2881:(e,t,n)=>{"use strict";n.d(t,{m:()=>i});var r=n(1967),o=n(9275);class a extends r.Q{constructor(){super(),this.setup=e=>{if(!o.S$&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}const i=new a},2794:(e,t,n)=>{"use strict";function r(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,a,i,s;const l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(a=r.meta)?void 0:a.fetchMore,u=null==c?void 0:c.pageParam,d="forward"===(null==c?void 0:c.direction),p="backward"===(null==c?void 0:c.direction),f=(null==(i=e.state.data)?void 0:i.pages)||[],h=(null==(s=e.state.data)?void 0:s.pageParams)||[];let m=h,g=!1;const y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(m=r?[t,...m]:[...m,t],r?[n,...e]:[...e,n]),b=(t,n,r,o)=>{if(g)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const a={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var i;i=a,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{g=!0})),e.signal}});const s=y(a);return Promise.resolve(s).then((e=>v(t,r,e,o)))};let w;if(f.length)if(d){const t=void 0!==u,n=t?u:o(e.options,f);w=b(f,t,n)}else if(p){const t=void 0!==u,n=t?u:(E=e.options,x=f,null==E.getPreviousPageParam?void 0:E.getPreviousPageParam(x[0],x));w=b(f,t,n,!0)}else{m=[];const t=void 0===e.options.getNextPageParam;w=l&&f[0]&&!l(f[0],0,f)?Promise.resolve(v([],h[0],f[0])):b([],t,h[0]);for(let n=1;n{if(!l||!f[n]||l(f[n],n,f)){const a=t?h[n]:o(e.options,r);return b(r,t,a)}return Promise.resolve(v(r,h[n],f[n]))}))}else w=b([]);var E,x;return w.then((e=>({pages:e,pageParams:m})))}}}}function o(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}n.d(t,{PL:()=>r})},1892:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});const r=console},6981:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,s:()=>s});var r=n(1892),o=n(9868),a=n(903),i=n(1091);class s extends a.k{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||r.U,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,a,s,l,c,u;if(!t){var d,p,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(d=(p=this.mutationCache.config).onMutate)?void 0:d.call(p,this.state.variables,this));const e=await(null==(f=(h=this.options).onMutate)?void 0:f.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const i=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,i,this.state.variables,this.state.context,this)),await(null==(o=(a=this.options).onSuccess)?void 0:o.call(a,i,this.state.variables,this.state.context)),await(null==(s=(l=this.mutationCache.config).onSettled)?void 0:s.call(l,i,null,this.state.variables,this.state.context,this)),await(null==(c=(u=this.options).onSettled)?void 0:c.call(u,i,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:i}),i}catch(e){try{var m,g,y,v,b,w,E,x;throw await(null==(m=(g=this.mutationCache.config).onError)?void 0:m.call(g,e,this.state.variables,this.state.context,this)),await(null==(y=(v=this.options).onError)?void 0:y.call(v,e,this.state.variables,this.state.context)),await(null==(b=(w=this.mutationCache.config).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context,this)),await(null==(E=(x=this.options).onSettled)?void 0:E.call(x,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,i.v_)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),o.j.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},7445:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var r=n(9868),o=n(6981),a=n(9275),i=n(1967);class s extends i.Q{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new o.s({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){r.j.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>(0,a.nJ)(e,t)))}findAll(e){return this.mutations.filter((t=>(0,a.nJ)(e,t)))}notify(e){r.j.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return r.j.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(a.lQ)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}},9868:(e,t,n)=>{"use strict";n.d(t,{j:()=>o});var r=n(9275);const o=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()};const a=o=>{t?e.push(o):(0,r.G6)((()=>{n(o)}))};return{batch:a=>{let i;t++;try{i=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&(0,r.G6)((()=>{o((()=>{t.forEach((e=>{n(e)}))}))}))})()}return i},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}()},1358:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(1967),o=n(9275);const a=["online","offline"];class i extends r.Q{constructor(){super(),this.setup=e=>{if(!o.S$&&window.addEventListener){const t=()=>e();return a.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{a.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}const s=new i},5012:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var r=n(9275),o=n(1892),a=n(9868),i=n(1091),s=n(903);class l extends s.k{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||o.U,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=(0,r.pl)(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(r.lQ).catch(r.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,r.j3)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,o;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return null==(a=this.retryer)||a.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const s=(0,r.jY)(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};c(l);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var d;c(u),null==(n=this.options.behavior)||n.onFetch(u),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(o=u.fetchOptions)?void 0:o.meta))&&this.dispatch({type:"fetch",meta:null==(d=u.fetchOptions)?void 0:d.meta});const p=e=>{var t,n,r,o;(0,i.wm)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,i.wm)(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,i.II)({fn:u.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):p(new Error(this.queryHash+" data is undefined"))},onError:p,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,i.v_)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return(0,i.wm)(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),a.j.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}},8002:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(9275),o=n(5012),a=n(9868),i=n(1967);class s extends i.Q{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var a;const i=t.queryKey,s=null!=(a=t.queryHash)?a:(0,r.F$)(i,t);let l=this.get(s);return l||(l=new o.X({cache:this,logger:e.getLogger(),queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(l)),l}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){a.j.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,r.b_)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>(0,r.MK)(n,e)))}findAll(e,t){const[n]=(0,r.b_)(e,t);return Object.keys(n).length>0?this.queries.filter((e=>(0,r.MK)(n,e))):this.queries}notify(e){a.j.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){a.j.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){a.j.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}},5849:(e,t,n)=>{"use strict";n.d(t,{E:()=>d});var r=n(9275),o=n(8002),a=n(7445),i=n(2881),s=n(1358),l=n(9868),c=n(2794),u=n(1892);class d{constructor(e={}){this.queryCache=e.queryCache||new o.$,this.mutationCache=e.mutationCache||new a.q,this.logger=e.logger||u.U,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=i.m.subscribe((()=>{i.m.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=s.t.subscribe((()=>{s.t.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=(0,r.b_)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const o=(0,r.vh)(e,t,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const o=this.queryCache.find(e),a=null==o?void 0:o.state.data,i=(0,r.Zw)(t,a);if(void 0===i)return;const s=(0,r.vh)(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return l.j.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=(0,r.b_)(e,t),o=this.queryCache;l.j.batch((()=>{o.findAll(n).forEach((e=>{o.remove(e)}))}))}resetQueries(e,t,n){const[o,a]=(0,r.b_)(e,t,n),i=this.queryCache,s={type:"active",...o};return l.j.batch((()=>(i.findAll(o).forEach((e=>{e.reset()})),this.refetchQueries(s,a))))}cancelQueries(e,t,n){const[o,a={}]=(0,r.b_)(e,t,n);void 0===a.revert&&(a.revert=!0);const i=l.j.batch((()=>this.queryCache.findAll(o).map((e=>e.cancel(a)))));return Promise.all(i).then(r.lQ).catch(r.lQ)}invalidateQueries(e,t,n){const[o,a]=(0,r.b_)(e,t,n);return l.j.batch((()=>{var e,t;if(this.queryCache.findAll(o).forEach((e=>{e.invalidate()})),"none"===o.refetchType)return Promise.resolve();const n={...o,type:null!=(e=null!=(t=o.refetchType)?t:o.type)?e:"active"};return this.refetchQueries(n,a)}))}refetchQueries(e,t,n){const[o,a]=(0,r.b_)(e,t,n),i=l.j.batch((()=>this.queryCache.findAll(o).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...a,cancelRefetch:null==(t=null==a?void 0:a.cancelRefetch)||t,meta:{refetchPage:o.refetchPage}})}))));let s=Promise.all(i).then(r.lQ);return null!=a&&a.throwOnError||(s=s.catch(r.lQ)),s}fetchQuery(e,t,n){const o=(0,r.vh)(e,t,n),a=this.defaultQueryOptions(o);void 0===a.retry&&(a.retry=!1);const i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(r.lQ).catch(r.lQ)}fetchInfiniteQuery(e,t,n){const o=(0,r.vh)(e,t,n);return o.behavior=(0,c.PL)(),this.fetchQuery(o)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(r.lQ).catch(r.lQ)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>(0,r.Od)(e)===(0,r.Od)(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>(0,r.Cp)(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>(0,r.Od)(e)===(0,r.Od)(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>(0,r.Cp)(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,r.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}},903:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(9275);class o{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r.S$?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},1091:(e,t,n)=>{"use strict";n.d(t,{II:()=>u,v_:()=>s,wm:()=>c});var r=n(2881),o=n(1358),a=n(9275);function i(e){return Math.min(1e3*2**e,3e4)}function s(e){return"online"!==(null!=e?e:"online")||o.t.isOnline()}class l{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function c(e){return e instanceof l}function u(e){let t,n,c,u=!1,d=0,p=!1;const f=new Promise(((e,t)=>{n=e,c=t})),h=()=>!r.m.isFocused()||"always"!==e.networkMode&&!o.t.isOnline(),m=r=>{p||(p=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},g=n=>{p||(p=!0,null==e.onError||e.onError(n),null==t||t(),c(n))},y=()=>new Promise((n=>{t=e=>{const t=p||!h();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,p||null==e.onContinue||e.onContinue()})),v=()=>{if(p)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch((t=>{var n,r;if(p)return;const o=null!=(n=e.retry)?n:3,s=null!=(r=e.retryDelay)?r:i,l="function"==typeof s?s(d,t):s,c=!0===o||"number"==typeof o&&d{if(h())return y()})).then((()=>{u?g(t):v()}))):g(t)}))};return s(e.networkMode)?v():y().then(v),{promise:f,cancel:t=>{p||(g(new l(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?f:Promise.resolve(),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},1967:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},9275:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>m,F$:()=>f,G6:()=>_,GR:()=>c,MK:()=>d,Od:()=>h,S$:()=>r,Zw:()=>a,b_:()=>u,f8:()=>v,gn:()=>i,j3:()=>s,jY:()=>S,lQ:()=>o,nJ:()=>p,pl:()=>O,vh:()=>l,yy:()=>C});const r="undefined"==typeof window||"Deno"in window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function i(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return x(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function c(e,t,n){return x(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function u(e,t,n){return x(e)?[{...t,queryKey:e},n]:[e||{},t]}function d(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(x(i))if(r){if(t.queryHash!==f(i,t.options))return!1}else if(!m(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==o&&o!==t.state.fetchStatus||a&&!a(t))}function p(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(x(a)){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!m(t.options.mutationKey,a))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function f(e,t){return((null==t?void 0:t.queryKeyHashFn)||h)(e)}function h(e){return JSON.stringify(e,((e,t)=>w(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function m(e,t){return g(e,t)}function g(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!g(e[n],t[n])))}function y(e,t){if(e===t)return e;const n=b(e)&&b(t);if(n||w(e)&&w(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),a=o.length,i=n?[]:{};let s=0;for(let r=0;r{setTimeout(t,e)}))}function _(e){C(0).then(e)}function S(){if("function"==typeof AbortController)return new AbortController}function O(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?y(e,t):t}},8401:(e,t,n)=>{"use strict";n.d(t,{Ht:()=>l,jE:()=>s});var r=n(1609);const o=r.createContext(void 0),a=r.createContext(!1);function i(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o)}const s=({context:e}={})=>{const t=r.useContext(i(e,r.useContext(a)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t,context:n,contextSharing:o=!1})=>{r.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const s=i(n,o);return r.createElement(a.Provider,{value:!n&&o},r.createElement(s.Provider,{value:e},t))}},7867:(e,t,n)=>{"use strict";n.d(t,{I:()=>k});var r=n(9275),o=n(9868),a=n(2881),i=n(1967),s=n(1091);class l extends i.Q{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,r.f8)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&d(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===o&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!a||this.currentQuery===o&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!(0,r.f8)(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(r.lQ)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),r.S$||this.currentResult.isStale||!(0,r.gn)(this.options.staleTime))return;const e=(0,r.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!r.S$&&!1!==this.options.enabled&&(0,r.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||a.m.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const n=this.currentQuery,o=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,u=e!==n,f=u?e.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,{state:m}=e;let g,{dataUpdatedAt:y,error:v,errorUpdatedAt:b,fetchStatus:w,status:E}=m,x=!1,C=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&c(e,t),i=r&&d(e,n,t,o);(a||i)&&(w=(0,s.v_)(e.options.networkMode)?"fetching":"paused",y||(E="loading")),"isRestoring"===t._optimisticResults&&(w="idle")}if(t.keepPreviousData&&!m.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==E)g=h.data,y=h.dataUpdatedAt,E=h.status,x=!0;else if(t.select&&void 0!==m.data)if(a&&m.data===(null==i?void 0:i.data)&&t.select===this.selectFn)g=this.selectResult;else try{this.selectFn=t.select,g=t.select(m.data),g=(0,r.pl)(null==a?void 0:a.data,g,t),this.selectResult=g,this.selectError=null}catch(e){this.selectError=e}else g=m.data;if(void 0!==t.placeholderData&&void 0===g&&"loading"===E){let e;if(null!=a&&a.isPlaceholderData&&t.placeholderData===(null==l?void 0:l.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(E="success",g=(0,r.pl)(null==a?void 0:a.data,e,t),C=!0)}this.selectError&&(v=this.selectError,g=this.selectResult,b=Date.now(),E="error");const _="fetching"===w,S="loading"===E,O="error"===E;return{status:E,fetchStatus:w,isLoading:S,isSuccess:"success"===E,isError:O,isInitialLoading:S&&_,data:g,dataUpdatedAt:y,error:v,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:_,isRefetching:_&&!S,isLoadingError:O&&0===m.dataUpdatedAt,isPaused:"paused"===w,isPlaceholderData:C,isPreviousData:x,isRefetchError:O&&0!==m.dataUpdatedAt,isStale:p(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,r.f8)(n,t))return;this.currentResult=n;const o={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(o.listeners=!0),this.notify({...o,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,s.wm)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){o.j.batch((()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var a,i,s,l;null==(a=(i=this.options).onError)||a.call(i,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function c(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&u(e,t,t.refetchOnMount)}function u(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&p(e,t)}return!1}function d(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&p(e,n)}function p(e,t){return e.isStaleByTime(t.staleTime)}var f=n(1609),h=n(4981);const m=f.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),g=()=>f.useContext(m);var y=n(8401);const v=f.createContext(!1),b=()=>f.useContext(v);v.Provider;var w=n(1272);const E=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},x=e=>{f.useEffect((()=>{e.clearReset()}),[e])},C=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,w.G)(n,[e.error,r]),_=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},S=(e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n),O=(e,t,n)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}));function k(e,t,n){return function(e,t){const n=(0,y.jE)({context:e.context}),r=b(),a=g(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=o.j.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=o.j.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=o.j.batchCalls(i.onSettled)),_(i),E(i,a),x(a);const[s]=f.useState((()=>new t(n,i))),l=s.getOptimisticResult(i);if((0,h.r)(f.useCallback((e=>{const t=r?()=>{}:s.subscribe(o.j.batchCalls(e));return s.updateResult(),t}),[s,r]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),f.useEffect((()=>{s.setOptions(i,{listeners:!1})}),[i,s]),S(i,l,r))throw O(i,s,a);if(C({result:l,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:s.trackResult(l)}((0,r.vh)(e,t,n),l)}},4981:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});const r=n(9835).useSyncExternalStore},1272:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(...t):!!e}n.d(t,{G:()=>r})},1890:(e,t,n)=>{"use strict";n.d(t,{N9:()=>_,oR:()=>T});var r=n(1609),o=n(8835);const a=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,s=e=>"function"==typeof e,l=e=>i(e)||s(e)?e:null,c=e=>(0,r.isValidElement)(e)||i(e)||s(e)||a(e);function u(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:p}=e;const f=o?`${t}--${l}`:t,h=o?`${n}--${l}`:n,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=d.current,t=f.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),a?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,u,i):u()};p||(c?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[p]),r.createElement(r.Fragment,null,s)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},f=e=>{let{theme:t,type:n,...o}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},h={info:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(f,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function m(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,o]=(0,r.useState)([]),u=(0,r.useRef)(null),f=(0,r.useRef)(new Map).current,m=e=>-1!==n.indexOf(e),g=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:m,getToast:e=>f.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:n}=g.props;!n||t&&g.containerId!==t||(g.count-=g.queue.length,g.queue=[])}function v(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:n}=g.queue.shift();E(e,t,n)}function w(e,n){let{delay:o,staleId:m,...y}=n;if(!c(e)||function(e){return!u.current||g.props.enableMultiContainer&&e.containerId!==g.props.containerId||f.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:w,updateId:x,data:C}=y,{props:_}=g,S=()=>v(w),O=null==x;O&&g.count++;const k={..._,style:_.toastStyle,key:g.toastKey++,...Object.fromEntries(Object.entries(y).filter((e=>{let[t,n]=e;return null!=n}))),toastId:w,updateId:x,data:C,closeToast:S,isIn:!1,className:l(y.className||_.toastClassName),bodyClassName:l(y.bodyClassName||_.bodyClassName),progressClassName:l(y.progressClassName||_.progressClassName),autoClose:!y.isLoading&&(N=y.autoClose,M=_.autoClose,!1===N||a(N)&&N>0?N:M),deleteToast(){const e=d(f.get(w),"removed");f.delete(w),p.emit(4,e);const n=g.queue.length;if(g.count=null==w?g.count-g.displayedToast:g.count-1,g.count<0&&(g.count=0),n>0){const e=null==w?g.props.limit:1;if(1===n||1===e)g.displayedToast++,b();else{const t=e>n?n:e;g.displayedToast=t;for(let e=0;ee in h)(n)&&(c=h[n](u))),c}(k),s(y.onOpen)&&(k.onOpen=y.onOpen),s(y.onClose)&&(k.onClose=y.onClose),k.closeButton=_.closeButton,!1===y.closeButton||c(y.closeButton)?k.closeButton=y.closeButton:!0===y.closeButton&&(k.closeButton=!c(_.closeButton)||_.closeButton);let A=e;(0,r.isValidElement)(e)&&!i(e.type)?A=(0,r.cloneElement)(e,{closeToast:S,toastProps:k,data:C}):s(e)&&(A=e({closeToast:S,toastProps:k,data:C})),_.limit&&_.limit>0&&g.count>_.limit&&O?g.queue.push({toastContent:A,toastProps:k,staleId:m}):a(o)?setTimeout((()=>{E(A,k,m)}),o):E(A,k,m)}function E(e,t,n){const{toastId:r}=t;n&&f.delete(n);const a={content:e,props:t};f.set(r,a),o((e=>[...e,r].filter((e=>e!==n)))),p.emit(4,d(a,null==a.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(g.containerId=e.containerId,p.cancelEmit(3).on(0,w).on(1,(e=>u.current&&v(e))).on(5,y).emit(2,g),()=>{f.clear(),p.emit(3,g)})),[]),(0,r.useEffect)((()=>{g.props=e,g.isToastActive=m,g.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(f.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:u,isToastActive:m}}function g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function v(e){const[t,n]=(0,r.useState)(!1),[o,a]=(0,r.useState)(!1),i=(0,r.useRef)(null),l=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,r.useRef)(e),{autoClose:u,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:h}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",E),document.addEventListener("mouseup",x),document.addEventListener("touchmove",E),document.addEventListener("touchend",x);const n=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=g(t.nativeEvent),l.y=y(t.nativeEvent),"x"===e.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(t){if(l.boundingRect){const{top:n,bottom:r,left:o,right:a}=l.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&l.x>=o&&l.x<=a&&l.y>=n&&l.y<=r?w():b()}}function b(){n(!0)}function w(){n(!1)}function E(n){const r=i.current;l.canDrag&&r&&(l.didMove=!0,t&&w(),l.x=g(n),l.y=y(n),l.delta="x"===e.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,r.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function x(){document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",x);const t=i.current;if(l.canDrag&&l.didMove&&t){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)((()=>{c.current=e})),(0,r.useEffect)((()=>(i.current&&i.current.addEventListener("d",b,{once:!0}),s(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;s(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||w(),window.addEventListener("focus",b),window.addEventListener("blur",w)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",w))})),[e.pauseOnFocusLoss]);const C={onMouseDown:m,onTouchStart:m,onMouseUp:v,onTouchEnd:v};return u&&d&&(C.onMouseEnter=w,C.onMouseLeave=b),h&&(C.onClick=e=>{f&&f(e),l.canCloseOnClick&&p()}),{playToast:b,pauseToast:w,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:C}}function b(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function w(e){let{delay:t,isRunning:n,closeToast:a,type:i="default",hide:l,className:c,style:u,controlledProgress:d,progress:p,rtl:f,isIn:h,theme:m}=e;const g=l||d&&0===p,y={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};d&&(y.transform=`scaleX(${p})`);const v=(0,o.A)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":f}),b=s(c)?c({rtl:f,type:i,defaultClassName:v}):(0,o.A)(v,c);return r.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{h&&a()}})}const E=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=v(e),{closeButton:l,children:c,autoClose:u,onClick:d,type:p,hideProgressBar:f,closeToast:h,transition:m,position:g,className:y,style:E,bodyClassName:x,bodyStyle:C,progressClassName:_,progressStyle:S,updateId:O,role:k,progress:N,rtl:M,toastId:A,deleteToast:D,isIn:I,isLoading:j,iconOut:T,closeOnClick:L,theme:P}=e,R=(0,o.A)("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":L}),F=s(y)?y({rtl:M,position:g,type:p,defaultClassName:R}):(0,o.A)(R,y),B=!!N||!u,z={closeToast:h,type:p,theme:P};let q=null;return!1===l||(q=s(l)?l(z):(0,r.isValidElement)(l)?(0,r.cloneElement)(l,z):b(z)),r.createElement(m,{isIn:I,done:D,position:g,preventExitTransition:n,nodeRef:a},r.createElement("div",{id:A,onClick:d,className:F,...i,style:E,ref:a},r.createElement("div",{...I&&{role:k},className:s(x)?x({type:p}):(0,o.A)("Toastify__toast-body",x),style:C},null!=T&&r.createElement("div",{className:(0,o.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!j})},T),r.createElement("div",null,c)),q,r.createElement(w,{...O&&!B?{key:`pb-${O}`}:{},rtl:M,theme:P,delay:u,isRunning:t,isIn:I,closeToast:h,hide:f,type:p,style:S,className:_,controlledProgress:B,progress:N||0})))},x=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},C=u(x("bounce",!0)),_=(u(x("slide",!0)),u(x("zoom")),u(x("flip")),(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=m(e),{className:c,style:u,rtl:d,containerId:p}=e;function f(e){const t=(0,o.A)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return s(c)?c({position:e,rtl:d,defaultClassName:t}):(0,o.A)(t,l(c))}return(0,r.useEffect)((()=>{t&&(t.current=a.current)}),[]),r.createElement("div",{ref:a,className:"Toastify",id:p},n(((e,t)=>{const n=t.length?{...u}:{...u,pointerEvents:"none"};return r.createElement("div",{className:f(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return r.createElement(E,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))})));_.displayName="ToastContainer",_.defaultProps={position:"top-right",transition:C,autoClose:5e3,closeButton:b,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let S,O=new Map,k=[],N=1;function M(){return""+N++}function A(e){return e&&(i(e.toastId)||a(e.toastId))?e.toastId:M()}function D(e,t){return O.size>0?p.emit(0,e,t):k.push({content:e,options:t}),t.toastId}function I(e,t){return{...t,type:t&&t.type||e,toastId:A(t)}}function j(e){return(t,n)=>D(t,I(e,n))}function T(e,t){return D(e,I("default",t))}T.loading=(e,t)=>D(e,I("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),T.promise=function(e,t,n){let r,{pending:o,error:a,success:l}=t;o&&(r=i(o)?T.loading(o,n):T.loading(o.render,{...n,...o}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,o)=>{if(null==t)return void T.dismiss(r);const a={type:e,...c,...n,data:o},s=i(t)?{render:t}:t;return r?T.update(r,{...a,...s}):T(s.render,{...a,...s}),o},d=s(e)?e():e;return d.then((e=>u("success",l,e))).catch((e=>u("error",a,e))),d},T.success=j("success"),T.info=j("info"),T.error=j("error"),T.warning=j("warning"),T.warn=T.warning,T.dark=(e,t)=>D(e,I("default",{theme:"dark",...t})),T.dismiss=e=>{O.size>0?p.emit(1,e):k=k.filter((t=>null!=e&&t.options.toastId!==e))},T.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},T.isActive=e=>{let t=!1;return O.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},T.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=O.get(n||S);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:M()};a.toastId!==e&&(a.staleId=e);const i=a.render||o;delete a.render,D(i,a)}}),0)},T.done=e=>{T.update(e,{progress:1})},T.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),T.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},T.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,(e=>{S=e.containerId||e,O.set(S,e),k.forEach((e=>{p.emit(0,e.content,e.options)})),k=[]})).on(3,(e=>{O.delete(e.containerId||e),0===O.size&&p.off(0).off(1).off(5)}))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e,t,r=n(1609),o=n.n(r),a=n(9576),i=n(5387),s=n(5890);(t=e||(e={})).Pop="POP",t.Push="PUSH",t.Replace="REPLACE";var l="beforeunload";function c(e){e.preventDefault(),e.returnValue=""}function u(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}var d=n(3654);const p=window.wp.url;let f;function h(){if(!f){const t=document.location.pathname,n=function(t){void 0===t&&(t={});var n=t.window,r=void 0===n?document.defaultView:n,o=r.history;function a(){var e=r.location,t=e.pathname,n=e.search,a=e.hash,i=o.state||{};return[i.idx,{pathname:t,search:n,hash:a,state:i.usr||null,key:i.key||"default"}]}var i=null;r.addEventListener("popstate",(function(){if(i)g.call(i),i=null;else{var t=e.Pop,n=a(),r=n[0],o=n[1];if(g.length){if(null!=r){var s=f-r;s&&(i={action:t,location:o,retry:function(){x(-1*s)}},x(s))}}else E(t)}}));var d=e.Pop,p=a(),f=p[0],h=p[1],m=u(),g=u();function y(e){return"string"==typeof e?e:(n=(t=e).pathname,r=void 0===n?"/":n,o=t.search,a=void 0===o?"":o,i=t.hash,s=void 0===i?"":i,a&&"?"!==a&&(r+="?"===a.charAt(0)?a:"?"+a),s&&"#"!==s&&(r+="#"===s.charAt(0)?s:"#"+s),r);var t,n,r,o,a,i,s}function v(e,t){return void 0===t&&(t=null),(0,s.A)({pathname:h.pathname,hash:"",search:""},"string"==typeof e?function(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function b(e,t){return[{usr:e.state,key:e.key,idx:t},y(e)]}function w(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function E(e){d=e;var t=a();f=t[0],h=t[1],m.call({action:d,location:h})}function x(e){o.go(e)}return null==f&&(f=0,o.replaceState((0,s.A)({},o.state,{idx:f}),"")),{get action(){return d},get location(){return h},createHref:y,push:function t(n,a){var i=e.Push,s=v(n,a);if(w(i,s,(function(){t(n,a)}))){var l=b(s,f+1),c=l[0],u=l[1];try{o.pushState(c,"",u)}catch(e){r.location.assign(u)}E(i)}},replace:function t(n,r){var a=e.Replace,i=v(n,r);if(w(a,i,(function(){t(n,r)}))){var s=b(i,f),l=s[0],c=s[1];o.replaceState(l,"",c),E(a)}},go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return m.push(e)},block:function(e){var t=g.push(e);return 1===g.length&&r.addEventListener(l,c),function(){t(),g.length||r.removeEventListener(l,c)}}}}({basename:t.substring(0,t.lastIndexOf("/"))});f={get length(){return n.length},get action(){return n.action},get location(){const{location:e}=n;let r=(0,d.parse)(e.search.substring(1)).page||"/";return r.startsWith("/")||(r="/"+r),{...e,actualPathname:t,pathname:r}},get pathname(){return this.location.pathname.substring(1)},createHref:(...e)=>n.createHref.apply(n,e),push:(...e)=>n.push.apply(n,e),replace:(...e)=>n.replace.apply(n,e),go:(...e)=>n.go.apply(n,e),goBack:(...e)=>n.goBack.apply(n,e),goForward:(...e)=>n.goForward.apply(n,e),block:(...e)=>n.block.apply(n,e),listen(e){return n.listen((()=>{e(this.location,this.action)}))}}}return f}const m=h(),g=(e,t=null,n=[],r=!0)=>{let o=(0,p.getQueryArgs)(e);const a=function(){const e=h().location.search;return e.length&&(0,d.parse)(e.substring(1))||{}}();let i=r?{...a,...o}:{...o};return null!=t&&(i={...i,...t}),"/"===e||Array.isArray(e)?Array.isArray(e)&&(i.page=e.join("/")):i.page=e,i.page.startsWith("../")&&(i.page=i.page.substring("3")),"elementor"!==a?.action&&"edit"!==a?.action||n?.push("page"),!0===Boolean(t?.isGutenbergEditor)&&(n?.push("page"),n?.push("isGutenbergEditor")),i?.platform&&i.page?.startsWith(i.platform)&&n?.push("platform"),!0===Boolean(t?.closing)&&n?.push("closing"),""===e&&n?.push("path"),n?.length>0&&(i=((e,t)=>{if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o})(i,n)),(0,p.addQueryArgs)(h().location.actualPathname,i)};var y=n(5795),v=n(339);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const E=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map,r.startTransition,y.flushSync,r.useId;const x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_=r.forwardRef((function(e,t){let n,{onClick:o,relative:a,reloadDocument:s,replace:l,state:c,target:u,to:d,preventScrollReset:p,viewTransition:f}=e,h=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,E),{basename:m}=r.useContext(i.jb),g=!1;if("string"==typeof d&&C.test(d)&&(n=d,x))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=(0,v.pb)(t.pathname,m);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:g=!0}catch(e){}let y=(0,i.$P)(d,{relative:a}),w=function(e,t){let{target:n,replace:o,state:a,preventScrollReset:s,relative:l,viewTransition:c}=void 0===t?{}:t,u=(0,i.Zp)(),d=(0,i.zy)(),p=(0,i.x$)(e,{relative:l});return r.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==o?o:(0,v.AO)(d)===(0,v.AO)(p);u(e,{replace:n,state:a,preventScrollReset:s,relative:l,viewTransition:c})}}),[d,u,p,o,a,n,e,s,l,c])}(d,{replace:l,state:c,target:u,preventScrollReset:p,relative:a,viewTransition:f});return r.createElement("a",b({},h,{href:n||y,onClick:g||s?o:function(e){o&&o(e),e.defaultPrevented||w(e)},ref:t,target:u}))}));var S,O,k,N;function M(e){let t=r.useRef(w(e)),n=r.useRef(!1),o=(0,i.zy)(),a=r.useMemo((()=>function(e,t){let n=w(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(o.search,n.current?null:t.current)),[o.search]),s=(0,i.Zp)(),l=r.useCallback(((e,t)=>{const r=w("function"==typeof e?e(a):e);n.current=!0,s("?"+r,t)}),[s,a]);return[a,l]}(O=S||(S={})).UseScrollRestoration="useScrollRestoration",O.UseSubmit="useSubmit",O.UseSubmitFetcher="useSubmitFetcher",O.UseFetcher="useFetcher",O.useViewTransitionState="useViewTransitionState",(N=k||(k={})).UseFetcher="useFetcher",N.UseFetchers="useFetchers",N.UseScrollRestoration="useScrollRestoration";var A=n(2619),D=n(7723),I=n(1455),j=n.n(I);const T=window.wp.element,L=(e,t=[])=>{const{path:n,parse:r=!0,currentPage:o}=e,[a,i]=(0,T.useState)([]),[s,l]=(0,T.useState)(!0),[c,u]=(0,T.useState)(null),[d,p]=(0,T.useState)(),[f,h]=(0,T.useState)(),[m,g]=(0,T.useState)(!1);return(0,T.useEffect)((()=>{(async(e,t=!0)=>{const n=await wp.apiFetch({path:e,parse:t});return t?{data:n}:{data:await n.json(),totalPages:n.headers.get("x-wp-totalpages"),totalItems:n.headers.get("x-wp-total")}})(n,r).then((({data:e,totalPages:t,totalItems:n})=>{i(e),p(t),h(n),l(!1),g(!1)})).finally((()=>{l(!1),g(!1)}))}),[n,o,...t,m]),{data:a,isLoading:s,error:c,totalPages:d,totalItems:f,setRefetch:g,setData:i,setIsLoading:l}};var P=n(5798);const R=({heading:e,selectedValue:t,setValue:n})=>{const{data:o,isLoading:a}=L({path:"wp/v2/knowledge_base?per_page=100",parse:!1}),[i,s]=(0,r.useState)([]);return(0,r.useEffect)((()=>{if(!a&&o?.length>0){const e=o.map((e=>({label:e.name.charAt(0).toUpperCase()+e.name.slice(1),value:e.slug})));s([{label:(0,D.__)("All Knowledge Base","betterdocs"),value:""},...e])}}),[a,o]),(0,r.createElement)(r.Fragment,null,!a&&o?.length>0&&(0,r.createElement)("div",{className:"kb-filter-wrapper"},(0,r.createElement)(P.A,{cacheOptions:!0,defaultOptions:i,loadOptions:(e,t)=>{t(i.filter((t=>t.label.toLowerCase().includes(e.toLowerCase()))))},onChange:e=>{if("select_all"===e?.value){const e=o.map((e=>e.slug));n(e.join(","))}else n(e?.value||"")},placeholder:(0,D.__)("Select Knowledge Base","betterdocs"),defaultValue:t?{label:t.charAt(0).toUpperCase()+t.slice(1),value:t}:null,classNamePrefix:"kb-filter"})))};var F=n(9386);const B=e=>{e?document.body.classList.add("betterdocs-dark-mode"):document.body.classList.remove("betterdocs-dark-mode")},z=({page:e,filter:t,trash:n,postStatus:o,docs:a,mode:s,handleGlossariesSearch:l,glossariesKeyword:c,faqSearchKeyword:u,handleFAQSearch:d})=>{const[p,f]=(0,r.useState)(Boolean(window.betterdocs_admin.dark_mode)),[h,m]=t,[y,v]=a,b=(0,i.zy)();(0,r.useEffect)((()=>{B(p)}),[p]);const w=(0,r.useCallback)((()=>{f((e=>(j()({method:"POST",path:"betterdocs/v1/dark-mode",data:{mode:!e}}).then((t=>{B(!e&&t)})),!e)))}),[p]);return(0,r.createElement)("section",{className:"betterdocs-dashboard-header"},(0,r.createElement)("div",{className:"betterdocs-dashboard-header-top"},(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},(0,r.createElement)("div",{className:"betterdocs-row betterdocs-logo-action"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-xs-6 betterdocs-dashboard-header-left betterdocs-dashboard-header-items"},(0,r.createElement)("div",{className:"betterdocs-dashboard-logo"},(0,r.createElement)(F.gu,null))),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-xs-6 betterdocs-dashboard-header-right betterdocs-dashboard-header-items"},(0,A.applyFilters)("betterdocs_admin_header_action",null,e))))),(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},(0,r.createElement)("div",{className:"betterdocs-row"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-header-left betterdocs-col-xs-6"},(0,r.createElement)("h2",{className:"betterdocs-dashboard-header-title"},(0,A.applyFilters)("betterdocs_admin_header_title",(0,D.__)("All Docs","betterdocs"),e)),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("betterdocs_kb_filter_section","",[R,h,m,e,o]),"betterdocs-admin"==e&&!y&&v>0&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"trash-line"}),(0,r.createElement)(_,{className:"header-trash",to:g("betterdocs-admin",{mode:"list",post_status:"trash"})}," ",(0,D.__)(`Trash (${v})`,"betterdocs")," "))),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-header-right betterdocs-col-xs-6 betterdocs-d-flex betterdocs-justify-end"},"betterdocs-admin"===e&&(0,r.createElement)("div",{className:"betterdocs-header-button"},(0,r.createElement)("a",{href:"edit.php?post_type=docs&bdocs_view=classic",className:"betterdocs-dashboard-header-action"},(0,r.createElement)("span",null,(0,r.createElement)(F.IX,null))," ",(0,D.__)("Classic UI","betterdocs"))),("betterdocs-glossaries"===e||"betterdocs-faq"==e)&&(0,r.createElement)("div",{className:"betterdocs-glossary-search-field"},(0,r.createElement)("input",{type:"text",placeholder:"betterdocs-glossaries"===e?(0,D.__)("Search Glossary...","betterdocs"):(0,D.__)("Search FAQ","betterdocs"),value:"betterdocs-glossaries"===e?c:u,onChange:"betterdocs-glossaries"===e?l:d,className:"search-input"}),(0,r.createElement)("span",{className:"glossary-search-icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",viewBox:"0 0 50 50"},(0,r.createElement)("path",{d:"M21 3C11.602 3 4 10.602 4 20s7.602 17 17 17c3.355 0 6.46-.984 9.094-2.656l12.281 12.281 4.25-4.25L34.5 30.281C36.68 27.421 38 23.88 38 20c0-9.398-7.602-17-17-17m0 4c7.2 0 13 5.8 13 13s-5.8 13-13 13S8 27.2 8 20 13.8 7 21 7"})))),(0,r.createElement)("ul",{className:"betterdocs-dashboard-header-action-list betterdocs-text-align-right"},(0,A.applyFilters)("betterdocs_admin_header_action_icons",[(0,r.createElement)("li",{key:1},(0,r.createElement)("button",{onClick:w,className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-mode"},p?(0,r.createElement)(F.l0,null):(0,r.createElement)(F.mT,null)))],e,b,s))))))},q=()=>{const[e]=M(),[t,n]=(0,r.useState)(""),[o,a]=(0,r.useState)(!1);let{isLoading:s,totalPages:l,totalItems:c,setRefetch:u}=L({path:(0,p.addQueryArgs)("/wp/v2/docs",{status:"trash"}),parse:!1});const d=e.get("post_status"),[f,h]=(0,r.useState)(""),[m,g]=(0,r.useState)(""),[y,v]=(0,r.useState)(""),[b,w]=(0,r.useState)(""),E=e.get("page");return(0,r.useEffect)((()=>{const e=setTimeout((()=>{"betterdocs-glossaries"==E?w(f):v(m)}),500);return()=>{clearTimeout(e)}}),[f,E,m]),(0,r.useEffect)((()=>{h(""),w(""),g(""),v("")}),[E]),(0,r.useEffect)((()=>{s||(e?.size>=1||"grid"==e?.get("mode")||"list"==e?.get("mode")&&"any"==d||"list"==e.get("mode")&&"trash"==d)&&a(!0)}),[s,c,u,d,e]),(0,r.createElement)("div",null,(0,r.createElement)(z,{glossariesKeyword:f,handleGlossariesSearch:e=>h(e?.target?.value),faqSearchKeyword:m,handleFAQSearch:e=>g(e?.target?.value),page:E,postStatus:e.get("post_status"),filter:[t,n],docs:[s,c],mode:null!=betterdocs_admin?.dashboard_mode&&""!=betterdocs_admin?.dashboard_mode?betterdocs_admin?.dashboard_mode:e.get("mode")}),(0,r.createElement)(i.sv,{context:[t,o?u:null,b,y]}))};var U=n(8120),H=n(1955);function V(){const e=(0,H.g)(),[t,n]=(0,r.useState)(!1),[o,a]=(0,r.useState)(null);if(!e)return console.error("useFAQ context is undefined. Ensure FAQProvider is set up correctly."),null;const{reFetchCategories:i}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",className:"admin-action-button",onClick:()=>n(!0)},(0,r.createElement)("span",{className:"action-button-icon"},(0,r.createElement)(F.uI,null)),(0,r.createElement)("span",{className:"action-button-icon-text"},(0,D.__)("Create a New FAQ Group","betterdocs"))),t||null!==o?(0,r.createElement)(U.A,{open:!0,reFetchCategories:i,setShowCategoryModal:n,updateCategory:o,setUpdateCategory:a}):null)}var K=n(8378);function G(){const{showGlossaryModal:e,setShowGlossaryModal:t}=(0,r.useContext)(K.t);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",className:"admin-action-button",onClick:()=>t(!0)},(0,r.createElement)("span",{className:"action-button-icon"},(0,r.createElement)(F.uI,null)),(0,r.createElement)("span",{className:"action-button-icon-text"},(0,D.__)("Create a New Glossary","betterdocs"))))}var W=n(8061),Y=n(8401),Q=n(7867),$=n(9275),Z=n(6981),J=n(9868),X=n(1967);class ee extends X.Q{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),(0,$.f8)(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:(0,Z.$)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){J.j.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,i,s,l;null==(a=(i=this.mutateOptions).onError)||a.call(i,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}var te=n(4981),ne=n(1272);function re(e,t,n){const o=(0,$.GR)(e,t,n),a=(0,Y.jE)({context:o.context}),[i]=r.useState((()=>new ee(a,o)));r.useEffect((()=>{i.setOptions(o)}),[i,o]);const s=(0,te.r)(r.useCallback((e=>i.subscribe(J.j.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),l=r.useCallback(((e,t)=>{i.mutate(e,t).catch(oe)}),[i]);if(s.error&&(0,ne.G)(i.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}function oe(){}var ae=n(309),ie=n(8537);const se=e=>`${betterdocs_admin?.admin_url}post.php?post=${e}&action=edit`,le=(e,t,n)=>{for(let r of n)""!=e[r]&&null==t[r]&&delete e[r];return e},ce=(0,T.memo)((({doc:e,index:t,deleteIds:n,isLoading:o,termId:a,setQuickEdit:i,mutate:s})=>(0,r.createElement)(ae.sx,{key:e?.unique_id,draggableId:e?.unique_id?.toString(),index:t},((l,c)=>(0,r.createElement)("li",{className:c.isDragging?"is-dragging":"",ref:l.innerRef,...l.draggableProps,...l.dragHandleProps,style:{cursor:(c.isDragging,"move"),...l.draggableProps.style}},n[a]?.post_id==e?.id&&o&&(0,r.createElement)("div",{className:"delete-row"}),(0,r.createElement)("span",{className:"betterdocs-dashboard-doc-drag"},(0,r.createElement)(F.Wj,null)),(0,r.createElement)("a",{href:se(e?.id)},(0,ie.decodeEntities)(e?.title),"publish"!=e?.status&&(0,r.createElement)("span",{className:"status"},` - ${e?.status?.charAt(0).toUpperCase()}${e?.status?.slice(1)}`)),(0,r.createElement)("span",{className:"betterdocs-dashboard-doc-actions"},(0,r.createElement)("a",{className:"betterdocs-dashboard-doc-action-edit",title:(0,D.__)("Quick Edit","betterdocs"),href:se(e.id),onClick:t=>{t.preventDefault(),i((t=>({...t,isOpen:!t.isOpen,data:{docData:e,termId:a,docId:e?.id}})))}},(0,r.createElement)(F.GI,null)),(0,r.createElement)("a",{className:"betterdocs-dashboard-doc-action-open",target:"_blank",title:(0,D.__)("View","betterdocs"),href:e?.link},(0,r.createElement)(F.Yj,null)),(0,r.createElement)("button",{className:"betterdocs-dashboard-doc-action-delete",type:"button",title:(0,D.__)("Trash","betterdocs"),onClick:r=>{n[a]={post_id_index:t,term_id:a,post_id:e.id},s(n)}},(0,r.createElement)(F.xV,null)))))))),ue=({docsData:e,category:t,deleteIds:n,mutate:o,isLoading:a,setQuickEdit:i})=>0===e.length?(0,r.createElement)(ae.gL,{droppableId:t?.id?.toString(),key:t.id},((e,t)=>(0,r.createElement)("div",{className:"betterdocs-dashboard-category-body",ref:e.innerRef,...e.droppableProps},(0,r.createElement)("div",{className:"empty-cat-img"},!t.isDragging&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F.uK,null),(0,r.createElement)("h3",{className:"empty-cat-title"},(0,D.__)("No Docs Found","betterdocs")))),(0,r.createElement)("ul",{className:"custom-placeholder"},e.placeholder)))):(0,r.createElement)(ae.gL,{droppableId:t?.id?.toString(),key:t.id},((s,l)=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"betterdocs-dashboard-category-body"},(0,r.createElement)("ul",{className:"betterdocs-dashboard-category-list",ref:s.innerRef,...s.droppableProps},e.map(((e,s)=>(0,r.createElement)(ce,{doc:e,index:s,key:s,deleteIds:n,isLoading:a,mutate:o,termId:t?.id,setQuickEdit:i})))),(0,r.createElement)("ul",{className:"custom-placeholder"},s.placeholder))))),de=({isDocs:e})=>{const[t,n]=(0,T.useState)("Generate Sample Docs");return(0,r.createElement)("section",{className:"betterdocs-dashboard-body"},(0,r.createElement)("div",{className:"betterdocs-no-docs-wrapper"},(0,r.createElement)("div",{className:"betterdocs-no-docs-img-wrap"},(0,r.createElement)(F.uK,null)),(0,r.createElement)("div",{className:"betterdocs-no-docs-content"},(0,r.createElement)("h3",{className:"betterdocs-no-docs-title"},(0,D.__)("No Category Found","betterdocs")),(0,r.createElement)("p",{className:"betterdocs-no-docs-text"},(0,D.__)("Please create a new category to get started","betterdocs")),!e&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("a",{href:`${betterdocs_admin.admin_url}edit-tags.php?taxonomy=doc_category&post_type=docs`,className:"betterdocs-dashboard-btn betterdocs-dashboard-btn-white"},(0,D.__)("Create A New Category","betterdocs")),(0,r.createElement)("a",{href:"#",className:"betterdocs-dashboard-btn",onClick:async e=>{n("Generating...");let t=await wp.apiFetch({url:betterdocs_admin?.generate_data_url,method:"POST",data:{action:"create-dummy-data",_wpnonce:betterdocs_admin?.nonce}});"success"==t?.status?(n("Generated Successfully"),window.location.reload()):(n("Generation Failed"),setTimeout((()=>{n("Generate Sample Docs")}),1e3))}},t)))))};function pe(e,t,n,r){return j()({url:t,body:e,method:n,parse:r})}function fe(e){let t=new FormData;for(const n in e)if(Array.isArray(e[n]))for(let r of e[n])r?.hasOwnProperty("id")?t.append(`${n}[]`,r?.id):t.append(`${n}[]`,r);else t.append(`${n}`,e[n]);return t}const he=r.createContext({});function me({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=!0,customHighlightBackground:c}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof c&&(u["--custom-highlight-background"]=c),u}function ge({count:e=1,wrapper:t,className:n,containerClassName:o,containerTestId:a,circle:i=!1,style:s,...l}){var c,u,d;const p=r.useContext(he),f={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete f[e];const h={...p,...f,circle:i},m={...s,...me(h)};let g="react-loading-skeleton";n&&(g+=` ${n}`);const y=null!==(c=h.inline)&&void 0!==c&&c,v=[],b=Math.ceil(e);for(let t=0;te&&t===b-1){const t=null!==(u=n.width)&&void 0!==u?u:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const o=r.createElement("span",{className:g,style:n,key:t},"‌");y?v.push(o):v.push(r.createElement(r.Fragment,{key:t},o,r.createElement("br",null)))}return r.createElement("span",{className:o,"data-testid":a,"aria-live":"polite","aria-busy":null===(d=h.enableAnimation)||void 0===d||d},t?v.map(((e,n)=>r.createElement(t,{key:n},e))):v)}const ye=()=>(0,r.createElement)("div",{className:"grid-loader-wrapper"},(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10px",className:"grid-loader-last-child final-child"})),(0,r.createElement)("div",{className:"grid-loader"},(0,r.createElement)(ge,{count:1,height:"60px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child first-child"}),(0,r.createElement)("div",{className:"grid-loader-body"},(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"}),(0,r.createElement)(ge,{count:1,height:"25px",width:"100%",containerClassName:"grid-loader-inner-child",borderRadius:"2px",className:"grid-loader-last-child"})),(0,r.createElement)(ge,{count:1,height:"60px",width:"96%",containerClassName:"grid-loader-inner-child",borderRadius:"10x",className:"grid-loader-last-child final-child"}))),ve=(0,r.createContext)(),be=ve.Provider,we=()=>(0,r.useContext)(ve),Ee=e=>{const{label:t,placeholder:n,doc:o,endpoint:a,setQuickEditData:i,name:s}=e;if(void 0===o?.id)return null;const[l,c]=(0,r.useState)(""),[u,d]=(0,r.useState)([]),{data:f,isLoading:h}=L({path:(0,p.addQueryArgs)(a,{post:o.id})}),{data:m,isLoading:g}=L({path:(0,p.addQueryArgs)(a)}),{data:y,isLoading:v}=L({path:(0,p.addQueryArgs)(a,{search:l})});return(0,r.useEffect)((()=>{d([])}),[o.id]),(0,r.useEffect)((()=>{d((e=>{let t=[],n=[];if(f.length>0&&(t=f.map((e=>(n.push(e.id),{...e,selected:!0})))),y.length>0){let e=y.filter((e=>!n.includes(e.id)));e=e.map((e=>({...e,selected:!1}))),n=[...n,...e.map((e=>e.id))],t=[...t,...e]}if(m.length>0){let e=m.filter((e=>!n.includes(e.id)));e=e.map((e=>({...e,selected:!1}))),t=[...t,...e]}return t}))}),[f,m,y,o]),(0,r.useEffect)((()=>{i((e=>({...e,[s]:u.filter((e=>e.selected)).map((e=>parseInt(e.id)))})))}),[u]),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-category"},t),(0,r.createElement)("div",{className:"betterdocs-quick-edit-multiselect"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-search"},(0,r.createElement)(F.C0,null),(0,r.createElement)("input",{type:"text",placeholder:n,value:l,onChange:e=>c(e.target.value)})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-multiselect-items"},u.map((e=>{let t=!("doc_category"!=s||!o?.doc_category?.includes(e?.id))||!("doc_tag"!=s||!o?.doc_tag?.includes(e?.id))||!("knowledge_base"!=s||!o?.knowledge_base?.includes(e?.id));return(0,r.createElement)("div",{className:"betterdocs-quick-edit-checkbox-group",key:e.id},(0,r.createElement)("input",{type:"checkbox",value:e.name,id:e.id,defaultChecked:t,onChange:(n=e.id,e=>{d((t=>t.map((t=>(t.id===n&&e.target.checked&&(t.selected=!0),t.id!==n||e.target.checked||(t.selected=!1),t)))))})}),(0,r.createElement)("label",{htmlFor:e.id},e.name));var n})))))};var xe=n(8552),Ce=n(1890);const _e=(e,t=500)=>{const[n,o]=(0,r.useState)(e);return(0,r.useEffect)((()=>{let n=setTimeout((()=>{o(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n},Se=(e,t)=>{const[n,o]=(0,r.useState)(t),[a,i]=(0,r.useState)([]),[s,l]=(0,r.useState)(!0),{isLoading:c,data:u}=(0,Q.I)([e,n],(({queryKey:e})=>{let[t,n]=e;return j()({path:(0,p.addQueryArgs)("wp/v2/users",n),method:"GET",parse:!1}).then((e=>e.json())).then((e=>(l(e?.length>0),e)))}),{refetchOnWindowFocus:!1});return(0,r.useEffect)((()=>{if(!c){const e=u?.map((e=>({value:e.id,label:e.name})));i((t=>[...t,...e]))}}),[c,u]),{usersLoading:c,setAuthorParams:o,authorParams:n,setAuthors:i,authors:a,isNextPageAvailable:s}},Oe=()=>{const[e,t]=(0,r.useState)(""),n=_e(e),[o,a]=(0,r.useState)([]),[i,s]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{""!=n?(s(!0),j()({path:(0,p.addQueryArgs)("wp/v2/users",{search:n}),method:"GET"}).then((e=>{if(e?.length>0){let t=e?.map((e=>({value:e.id,label:e.name})));a(t)}s(!1)}))):a([])}),[n]),{setUserSearchValue:t,searchedUsers:o,searchLoading:i}},ke=({data:e,setQuickEdit:t,setCategoriesPosts:n,docCategoriesQueryParams:o})=>{const{docData:a,docId:i,termId:s}=e,[l,c]=(0,r.useState)("Save"),[u,d]=(0,r.useState)({author:"",title:"",slug:"",comment_status:"",status:"",date:"",password:""}),[p,f]=(0,r.useState)({}),{usersLoading:h,authors:m,authorParams:g,setAuthorParams:y,isNextPageAvailable:v}=Se("authors",{per_page:10,page:1}),{searchLoading:b,searchedUsers:w,setUserSearchValue:E}=Oe(),[x,C]=(0,r.useState)("");(0,r.useEffect)((()=>{d({author:a?.author,title:a.title,slug:a.slug,comment_status:a.comment_status,status:a.status,date:a?.date,password:a?.password}),f({value:a.author,label:a.author_info.name}),"private"==a.status?C("private"):C(a?.content?.protected||a?.password?.length>0?"password":"none")}),[a]);const _=[{value:"publish",label:(0,D.__)("Published","betterdocs")},{value:"pending",label:(0,D.__)("Pending review","betterdocs")},{value:"draft",label:(0,D.__)("Draft","betterdocs")}];return(0,r.createElement)("div",{className:"betterdocs-quick-edit-panel"},(0,r.createElement)("div",{onClick:()=>t((e=>({...e,isOpen:!e.isOpen}))),className:"betterdocs-quick-edit-close"},(0,r.createElement)("span",null,(0,r.createElement)(F.gz,null))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-wrap"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-body"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-header"},(0,r.createElement)("h3",{className:"betterdocs-quick-edit-title"},(0,ie.decodeEntities)(u.title))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Authors:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-authors",id:"betterdocs-quick-edit-authors",value:p,onInputChange:e=>{E(e)},onMenuScrollToBottom:e=>{null!=e&&v&&y((e=>({...e,page:g.page+1})))},onChange:e=>{d((t=>({...t,author:e?.value}))),f(e)},filterOption:(e,t)=>e,options:w?.length>0?w:m,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Status:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-status",id:"betterdocs-quick-edit-status",value:_.find((e=>e.value===u.status)),onChange:e=>{d((t=>({...t,status:e?.value})))},options:_,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-title"},(0,D.__)("Title:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-title",type:"text",value:u.title,onChange:e=>d((t=>({...t,title:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-slug"},(0,D.__)("Slug","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-slug",type:"text",placeholder:"Slug",value:u.slug,onChange:e=>d((t=>({...t,slug:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-date"},(0,D.__)("Date:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-date",type:"datetime-local",placeholder:"date",value:u?.date,onChange:e=>{d((t=>({...t,date:e?.target?.value})))}})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",null,(0,D.__)("Select Privacy","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"password",type:"radio",name:"privacy",value:"password",checked:"password"===x,onChange:e=>{C(e.target.value);const t={...u,status:a?.status};a?.password?.length>0&&(t.password=a?.password),d((e=>t))}}),(0,r.createElement)("label",{htmlFor:"password"},(0,D.__)("Password Protected","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"private",type:"radio",name:"privacy",value:"private",checked:"private"===x,onChange:e=>{C(e.target.value),u?.hasOwnProperty("password")&&delete u.password,d((e=>({...u,status:"private"})))}}),(0,r.createElement)("label",{htmlFor:"private"},(0,D.__)("Make Private","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"none",type:"radio",name:"privacy",value:"none",checked:"none"===x,onChange:e=>{C(e.target.value),d((e=>({...u,title:u?.title?.replace("Private:",""),status:"publish",password:""})))}}),(0,r.createElement)("label",{htmlFor:"none"},(0,D.__)("None","betterdocs"))))),"password"===x&&(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group betterdocs-quick-edit-password-field"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-password"},(0,D.__)("Password:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-password",type:"text",placeholder:"",value:u?.password?.length>0?u?.password:"",onChange:e=>{d((t=>({...t,status:"private"==a?.status?"publish":a?.status,password:e?.target?.value})))}})),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("quick_edit_mkb_filter","",[a,d,Ee]),(0,r.createElement)(Ee,{name:"doc_category",endpoint:"wp/v2/doc_category",doc:a,setQuickEditData:d,label:(0,D.__)("Category","betterdocs"),placeholder:(0,D.__)("Search Category","betterdocs")}),(0,r.createElement)(Ee,{name:"doc_tag",endpoint:"wp/v2/doc_tag",doc:a,setQuickEditData:d,label:(0,D.__)("Tags","betterdocs"),placeholder:(0,D.__)("Search Tags","betterdocs")}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-comments"},(0,r.createElement)("input",{type:"checkbox",id:a.id,checked:"open"===u.comment_status,onChange:e=>d((t=>({...t,comment_status:e.target.checked?"open":"closed"})))}),(0,r.createElement)("label",{htmlFor:a.id},(0,D.__)("Allow Comments","betterdocs"))))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-footer"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-nav"}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-submit"},(0,r.createElement)("button",{type:"submit",className:"betterdocs-quick-edit-submit-btn",onClick:async e=>{e.preventDefault(),c("Saving..."),null!=await wp.apiFetch({path:`/wp/v2/docs/${a.id}`,method:"POST",data:u})?(n.setQueryData(["docsCategories",o],(e=>{let t=[...e[s]];return t=t?.map((e=>e?.id==i?{...e,...u}:e)),e[s]=t,{...e,data:{...e}}})),c("Save"),Ce.oR.success((0,D.__)("Saved Successfully","betterdocs"))):(c("Save"),Ce.oR.error((0,D.__)("Error While Saving","betterdocs")))}},l)))))},Ne=()=>{const e=(0,Y.jE)(),[t,n]=(0,r.useState)({isOpen:!1}),[o,a]=(0,i.KC)(),[s,l]=(0,r.useState)(!1),[c,u]=(0,r.useState)({per_page:100,hide_empty:!1,orderby:"doc_category_order",...""!=o?{knowledge_base:o}:{}}),[d,f]=(0,r.useState)({...""!=o?{knowledge_base:o}:{}}),{isLoading:h,data:m}=(0,Q.I)(["docsCategories",d],(({queryKey:e})=>{let[t,n]=e;return j()({path:(0,p.addQueryArgs)("betterdocs/v1/doc-categories",n),method:"GET",parse:!1}).then((e=>e.json())).then((e=>e))})),{isLoading:g,data:y}=(0,Q.I)(["docCategories",c],(({queryKey:e})=>{let[t,n]=e;return j()({path:(0,p.addQueryArgs)("wp/v2/doc_category",n),method:"GET",parse:!1}).then((e=>e.json())).then((e=>e))})),{mutate:v,data:b,isLoading:w,variables:E}=re({mutationKey:["deleteDocs"],mutationFn:e=>{for(let t of Object.keys(e)){const{post_id_index:n,term_id:r,post_id:o}=e[t];return j()({path:`/wp/v2/docs/${o}`,method:"DELETE"})}},onMutate:async e=>e,onSettled:t=>{e.invalidateQueries(["docsCategories",d])},onSuccess:(t,n)=>{const r=e.getQueryData(["docsCategories",d]);for(let t of Object.keys(n)){const{post_id_index:o,term_id:i,post_id:s}=n[t];r[i]?.splice(o,1),delete n[t],"function"==typeof a&&a(!0),e.setQueryData(["docsCategories"],{...r})}}}),{mutate:x}=re({mutationKey:["sortDocsDragDrop"],mutationFn:e=>null,onMutate:async({docsCategoriesData:t,sourceCategoryId:n,sourcePostIndex:r,destinationPostIndex:o,destinationCategoryId:a})=>{await e.cancelQueries(["docsCategories",d]);const i=e.getQueryData(["docsCategories",d]);if("uncategorized"==n||"uncategorized"==a){let t=i[n]?.splice(r,1);return i[a]?.splice(o,0,t[0]),e.setQueryData(["docsCategories",d],{...i}),C(i[n],i[a],"uncategorized"==n?"":n,"uncategorized"==a?"":a,t[0]?.id)}let s=i[parseInt(n)]?.splice(r,1);return i[parseInt(a)]?.splice(o,0,s[0]),e.setQueryData(["docsCategories",d],{...i}),C(t[parseInt(n)],t[parseInt(a)],n,a,s[0]?.id)},onSettled:e=>null});(0,r.useEffect)((()=>{g||h||(""!=o?(null==e?.getQueryData(["docCategories",{...c,knowledge_base:o}])&&l(!1),f({knowledge_base:o}),u({...c,knowledge_base:o})):(null==e?.getQueryData(["docCategories",{per_page:100,hide_empty:!1,orderby:"doc_category_order"}])&&l(!1),f({}),u({per_page:100,hide_empty:!1,orderby:"doc_category_order"})))}),[o]),(0,r.useEffect)((()=>{let e;g||h||(e=setTimeout((()=>{l(!0)}),10))}),[g,h]);const C=(e,t,n,r,o)=>{let a=fe({action:"update_doc_order_by_category",doc_cat_order_nonce:betterdocs_admin?.doc_cat_order_nonce,list_term_id:n,docs_ordering_data:e}),i=fe({action:"update_doc_order_by_category",doc_cat_order_nonce:betterdocs_admin?.doc_cat_order_nonce,list_term_id:r,docs_ordering_data:t}),s=fe({action:"update_docs_term",object_id:o,prev_term_id:n,list_term_id:r,doc_cat_order_nonce:betterdocs_admin?.doc_cat_order_nonce});pe(a,betterdocs_admin?.ajaxurl,"POST",!0),pe(s,betterdocs_admin?.ajaxurl,"POST",!0),pe(i,betterdocs_admin?.ajaxurl,"POST",!0)};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(ae.JY,{onDragEnd:e=>{const{destination:t,source:n}=e;if(!t)return null;const{droppableId:r,index:o}=t,{droppableId:a,index:i}=n;x({docsCategoriesData:m,sourceCategoryId:a,sourcePostIndex:i,destinationPostIndex:o,destinationCategoryId:r})}},(0,r.createElement)("section",{className:"betterdocs-dashboard-body betterdocs-dashboard-category-grid"},(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},(0,r.createElement)("div",{className:"betterdocs-row"},!s&&(0,r.createElement)(ye,null),s&&y?.length>0&&y.map(((e,t)=>(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-4",key:t},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-wrap"},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-header"},(0,r.createElement)("h3",{className:"betterdocs-dashboard-category-name"},(0,ie.decodeEntities)(e?.name))),null!=m[e?.id]&&(0,r.createElement)(ue,{category:e,docsData:m[e?.id],deleteIds:null==E?{}:E,isLoading:w,mutate:v,setQuickEdit:n}),(0,r.createElement)("div",{className:"betterdocs-dashboard-category-footer"},(0,r.createElement)("a",{href:`post-new.php?post_type=docs&cat=${e.id}`,className:"betterdocs-dashboard-btn betterdocs-dashboard-btn-white"},(0,D.__)("Add New Doc","betterdocs"))))))),s&&null!=m.uncategorized&&m.uncategorized?.length>0&&(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-4",key:"uncategorized"},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-wrap"},(0,r.createElement)("div",{className:"betterdocs-dashboard-category-header"},(0,r.createElement)("h3",{className:"betterdocs-dashboard-category-name"},(0,D.__)("Uncategorized","betterdocs"))),(0,r.createElement)(ue,{category:{id:"uncategorized"},docsData:m.uncategorized,deleteIds:null==E?{}:E,isLoading:w,mutate:v,setQuickEdit:n}),(0,r.createElement)("div",{className:"betterdocs-dashboard-category-footer"},(0,r.createElement)("a",{href:"post-new.php?post_type=docs&cat=",className:"betterdocs-dashboard-btn betterdocs-dashboard-btn-white"},(0,D.__)("Add New Doc","betterdocs"))))))))),s&&0==y?.length&&(0,r.createElement)(de,{isDocs:0!=m?.length||null!=m.uncategorized}),t?.isOpen&&(0,r.createElement)(ke,{data:t?.data,setQuickEdit:n,setCategoriesPosts:e,docCategoriesQueryParams:d}))},Me=e=>{const{path:t,filterIcon:n,filterName:o,placeholder:a=o,defaultValue:i,options:s=[],onFilterSelect:l,name:c,setIsLoading:u,...d}=e,[p,f]=(0,r.useState)(s);(0,r.useEffect)((()=>{s?.length>0&&f(s)}),[s]),(0,r.useEffect)((()=>{null!=t&&h("",(e=>e)).then((e=>{f(e)}))}),[t]);const h=(0,r.useCallback)((async(e,n)=>{if(null!=t)return n((await wp.apiFetch({path:t})).map((e=>({label:e.name,value:e.id}))))}),[t]);return(0,r.createElement)("li",{className:e.name},n&&(0,r.createElement)(n,null),(0,r.createElement)(P.A,{placeholder:a,isClearable:!0,isSearchable:!0,loadOptions:h,defaultValue:i,defaultOptions:p,className:`betterdocs-dashboard-filter-select betterdocs-dashboard-filter-select-${c}`,classNamePrefix:"betterdocs-dashboard-filter",onChange:e=>{l((t=>{let n={};return null==t?(n[c]=e?.value,null==e?.value&&delete n[c],{...n}):e?.value==t[c]?t:null!=t&&null!=e?.value?(n[c]=e?.value,{...t,...n}):(delete t[c],{...t,...n})}))},...d}))},Ae=({onFilterSelect:e})=>{const{usersLoading:t,authors:n,authorParams:o,setAuthorParams:a,isNextPageAvailable:i}=Se("authors-list-filter",{per_page:10,page:1});return(0,r.createElement)("ul",{className:"betterdocs-dashboard-filter-list"},(0,r.createElement)(Me,{name:"order",filterIcon:F.qu,placeholder:"Order",onFilterSelect:e,options:[{value:"asc",label:(0,D.__)("Ascending","betterdocs")},{value:"desc",label:(0,D.__)("Descending","betterdocs")}]}),(0,r.createElement)(Me,{name:"year_month",filterIcon:F._v,placeholder:(0,D.__)("All Dates","betterdocs"),path:"/betterdocs/v1/months-with-posts",onFilterSelect:e}),(0,r.createElement)(Me,{options:n,name:"author",filterIcon:F.vg,placeholder:(0,D.__)("All Authors","betterdocs"),onMenuScrollToBottom:e=>{null!=e&&i&&a((e=>({...e,page:o.page+1})))},onFilterSelect:e}),(0,r.createElement)(Me,{name:"doc_category",filterIcon:F.i,placeholder:(0,D.__)("All Categories","betterdocs"),path:"/wp/v2/doc_category?per_page=100",onFilterSelect:e}),(0,r.createElement)(Me,{name:"status",filterIcon:F.YY,placeholder:(0,D.__)("Doc Status","betterdocs"),onFilterSelect:e,options:[{value:"publish",label:(0,D.__)("Publish","betterdocs")},{value:"pending",label:(0,D.__)("Pending","betterdocs")},{value:"draft",label:(0,D.__)("Draft","betterdocs")},{value:"auto-draft",label:(0,D.__)("Auto Draft","betterdocs")},{value:"future",label:"Future"},{value:"private",label:(0,D.__)("Private","betterdocs")},{value:"inherit",label:(0,D.__)("Inherit","betterdocs")}]}))},De=({authorInfo:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-author"},(0,r.createElement)("a",{href:e?.author_url},e?.author_nicename)),Ie=({categories:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-category"},e.map(((t,n)=>(0,r.createElement)(o().Fragment,{key:n},(0,r.createElement)("a",{href:t.term_url},t.term_name),n(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-tag"},e.map(((e,t)=>(0,r.createElement)("a",{key:t,href:e?.term_url,target:"_blank"},e.term_name))));var Te=n(9045);const Le=e=>{const{doc:t,status:n}=e,{data:o,setData:a}=we(),{isListMenuOpen:i,docId:s}=o;return(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-action"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-action-icon",onClick:()=>a((e=>({...e,isListMenuOpen:!i,docId:t.id})))},(0,r.createElement)(F.wb,null)),i&&null!=s&&s==t?.id&&(0,r.createElement)("ul",{className:"betterdocs-dashboard-list-item-action-dropdown open"},"trash"!=n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:se(t.id)},(0,D.__)("Edit","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"#",onClick:()=>a((e=>({...e,isOpen:!0,docData:t})))},(0,D.__)("Quick Edit","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),a((e=>({...e,quickAction:{action:"trash",docId:t?.id}})))}},(0,D.__)("Trash","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:t.link},(0,D.__)("View","betterdocs")))),"trash"==n&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:"#",onClick:e=>{e.preventDefault(),a((e=>({...e,quickAction:{action:"restore",docId:t?.id}})))}},(0,D.__)("Restore","betterdocs"))),(0,r.createElement)("li",null,(0,r.createElement)("a",{target:"_blank",href:"#",onClick:e=>{e.preventDefault(),a((e=>({...e,quickAction:{action:"permanent-delete",docId:t?.id}})))}},(0,D.__)("Delete Permanantly","betterdocs"))))))},Pe=()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"}))),(0,r.createElement)("tr",{className:"list-loader-wrapper"},(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"60%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"72%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"45%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})),(0,r.createElement)("td",{className:"list-header-wrapper"},(0,r.createElement)(ge,{count:1,height:"16px",width:"100%",containerClassName:"list-header-wrapper-inner-child",borderRadius:"2px"})))),Re=({knowledgebase:e})=>(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-category"},e.map(((t,n)=>(0,r.createElement)(o().Fragment,{key:n},(0,r.createElement)("a",{href:t.term_url},t.term_name),n(0,r.createElement)("div",{className:"betterdocs-dashboard-category-body betterdocs-dashboard-no-docs-found"},(0,r.createElement)("div",{className:"empty-cat-img"},(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F.cA,null),(0,r.createElement)("p",{className:"empty-cat-title"},(0,D.__)("No Docs Found","betterdocs"))))),Be=({restoreIDS:e,setLoaderIDS:t,setLoading:n,status:a,onFilterSelect:i,docs:s,isLoading:l,totalItems:c,totalPages:u,setCurrentPage:d,currentPage:p,bulkData:f,setBulkData:h,loaderIDS:m})=>{const{data:g,setData:y}=we();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("table",{className:"betterdocs-dashboard-list-table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",null,(0,r.createElement)("th",{className:"title"},(0,r.createElement)("span",{className:"betterdocs-dashboard-custom-checkbox"},(0,r.createElement)("input",{id:"check-all",type:"checkbox",readOnly:!0,checked:f?.length>0&&!l,onClick:e=>{0==f?.length?(s?.map((e=>{f?.includes(e?.id)||f?.push(e?.id)})),h([...f])):h([])}}),(0,r.createElement)("label",{htmlFor:"check-all"})),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,r.createElement)("button",{onClick:()=>{i((e=>(null==e||(e.order="asc"==e.order?"desc":"asc",e.orderby="title"),{...e})))}},(0,D.__)("Title","betterdocs"),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-icon"},(0,r.createElement)(F.CK,null))))),(0,r.createElement)("th",{className:"author"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Author","betterdocs"))),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("mkb_table_header",""),(0,r.createElement)("th",{className:"doc-category"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Doc Category","betterdocs"))),(0,r.createElement)("th",{className:"doc-tag"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Doc Tag","betterdocs"))),(0,r.createElement)("th",{className:"views"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Views","betterdocs"))),(0,r.createElement)("th",{className:"reaction"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Reaction","betterdocs"))),(0,r.createElement)("th",{className:"date"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,r.createElement)("button",{onClick:()=>{i((e=>(null==e||(e.order="asc"==e.order?"desc":"asc",e.orderby="date"),{...e})))}},(0,D.__)("Date","betterdocs"),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-icon"},(0,r.createElement)(F.CK,null))))),(0,r.createElement)("th",{className:"action"},(0,r.createElement)("span",{className:"betterdocs-dashboard-list-header-title"},(0,D.__)("Action","betterdocs"))))),(0,r.createElement)("tbody",null,!l&&s?.length>0&&s.map(((t,n)=>{var o;let a=t?.author_info,i=t?.doc_category_info,s=t?.doc_tag_info,l=t?.word_count,c=t?.status,u=null!==(o=t?.total_views)&&void 0!==o?o:0,d=new Date(t.date).toLocaleDateString(),p=t?.reactions,v=null==p?.happy?0:parseInt(p?.happy),b=null==p?.sad?0:parseInt(p?.sad),w=null==p?.normal?0:parseInt(p?.normal),E=v+b+w,x=v>b&&v>w?"happy":b>v&&b>w?"sad":w>b&&w>v?"normal":v==b||v==w?"happy":w==b||w==v?"normal":b==w||b==v?"sad":"all-equal",C=t?.knowledge_base_info;return(0,r.createElement)("tr",{className:t.id===g.docId&&g?.isOpen?"quickEdit-open":"",key:n,onClick:e=>{g?.isListMenuOpen&&y((e=>({...e,isListMenuOpen:!1,docId:t.id})))}},(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-title-wrap"},(0,r.createElement)("span",{className:"betterdocs-dashboard-custom-checkbox"},(0,r.createElement)("input",{id:`dashboard-list-item-${t.id}`,type:"checkbox",checked:!!f?.includes(t?.id),onClick:e=>{if(f?.includes(t?.id)){let e=f?.filter((e=>e!=t?.id));h([...e])}else f?.push(t?.id),h([...f])},readOnly:!0}),(0,r.createElement)("label",{htmlFor:`dashboard-list-item-${t.id}`})),(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-title"},(0,r.createElement)("a",{target:"_blank",href:se(t?.id)},null==t.title?.rendered||null==t?.title?.rendered||0==t?.title?.rendered?.length?"(no title) ":(0,ie.decodeEntities)(t.title.rendered)),"publish"!=c&&(0,r.createElement)("span",{className:"status"},`- ${c?.charAt(0).toUpperCase()}${c?.slice(1)}`),(0,r.createElement)("span",{className:"word-count"},"| ",l," ",(0,r.createElement)("span",{className:"word-count-tooltip"},(0,D.__)("Word Count","betterdocs")))))),(0,r.createElement)("td",null,(0,r.createElement)(De,{authorInfo:a})),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("mkb_table_data","",[Re,C]),(0,r.createElement)("td",null,(0,r.createElement)(Ie,{categories:i})),(0,r.createElement)("td",null,(0,r.createElement)(je,{tags:s})),(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-views"},(0,r.createElement)("span",null,u))),(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-views"},(0,r.createElement)("span",{className:"betterdocs-reactions"},(0,r.createElement)("span",{className:"betterdocs-all-reactions"},"happy"==x&&(0,r.createElement)(F.IS,null),"normal"==x&&(0,r.createElement)(F.QC,null),"sad"==x&&(0,r.createElement)(F.bB,null),"all-equal"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(F.IS,null))),(0,r.createElement)("span",null,E),(0,r.createElement)("ul",{className:"betterdocs-reactions-tooltip"},"happy"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))),"normal"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))),"sad"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))),"all-equal"==x&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("li",null,(0,r.createElement)(F.IS,null),(0,r.createElement)("span",null,v)),(0,r.createElement)("li",null,(0,r.createElement)(F.QC,null),(0,r.createElement)("span",null,w)),(0,r.createElement)("li",null,(0,r.createElement)(F.bB,null),(0,r.createElement)("span",null,b))))))),(0,r.createElement)("td",null,(0,r.createElement)("span",{className:"betterdocs-dashboard-list-item-date"},(0,r.createElement)("span",null,d))),(0,r.createElement)("td",null,(0,r.createElement)(Le,{key:t.id,doc:t,status:c})),m.includes(t?.id)&&(0,r.createElement)("div",{className:"delete-row"}),e.includes(t?.id)&&(0,r.createElement)("div",{className:"restore-row"}))})),l&&(0,r.createElement)(Pe,null),0===s?.length&&!l&&(0,r.createElement)("tr",{className:"no-docs-found"},(0,r.createElement)("td",{colSpan:"100%"},(0,r.createElement)(Fe,null))))),null!=u&&null!=c&&u>1&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"doc-list-pagination"},(0,r.createElement)("div",{className:"doc-list-count"},sprintf((0,D.__)("Total %d Docs","betterdocs"),c)),(0,r.createElement)("div",{className:"doc-list-pagination-wrap"},(0,r.createElement)(Te.A,{defaultPageSize:20,current:p,total:c,onChange:e=>{f?.length>0&&h([]),n(!0),d((t=>({...t,page:e})))},itemRender:(e,t,n)=>"prev"===t?0===e?o().cloneElement(n,{title:""},(0,r.createElement)(F.rH,null)):o().cloneElement(n,{title:(0,D.__)("Previous Page","betterdocs")},(0,r.createElement)(F.rH,null)):"next"===t?e===Math.ceil(c/20)?o().cloneElement(n,{title:""},(0,r.createElement)(F.j3,null)):o().cloneElement(n,{title:(0,D.__)("Next Page","betterdocs")},(0,r.createElement)(F.j3,null)):n})))))},ze=({setSearchKeyword:e})=>(0,r.createElement)("div",{className:"betterdocs-dashboard-search-wrap"},(0,r.createElement)("div",{className:"betterdocs-dashboard-search-form"},(0,r.createElement)("button",{className:"betterdocs-dashboard-search-btn"},(0,r.createElement)(F.C0,null)),(0,r.createElement)("input",{className:"betterdocs-dashboard-search-field",type:"text",placeholder:"Search Doc",onChange:t=>{e(t?.target?.value)}}))),qe=({setDocuments:e})=>{const{data:t,setData:n}=we(),{docData:o,docId:a}=t,[i,s]=(0,r.useState)("Save"),[l,c]=(0,r.useState)({author:"",title:"",slug:"",comment_status:"",status:"",date:"",password:""}),[u,d]=(0,r.useState)({}),{usersLoading:p,authors:f,authorParams:h,setAuthorParams:m,isNextPageAvailable:g}=Se("authors-list-view",{per_page:10,page:1}),{searchLoading:y,searchedUsers:v,setUserSearchValue:b}=Oe(),[w,E]=(0,r.useState)("");(0,r.useEffect)((()=>{c({author:o?.author,title:o.title.rendered,slug:o.slug,comment_status:o.comment_status,status:o.status,date:o?.date,password:o?.password}),d({value:o.author,label:o.author_info.name}),"private"==o.status?E("private"):E(o?.content?.protected?"password":"none")}),[o]),o?.author_list?.map((e=>({value:e.ID,label:e.display_name})));const x=[{value:"publish",label:(0,D.__)("Published","betterdocs")},{value:"pending",label:(0,D.__)("Pending review","betterdocs")},{value:"draft",label:(0,D.__)("Draft","betterdocs")}];return(0,r.createElement)("div",{className:"betterdocs-quick-edit-panel"},(0,r.createElement)("div",{onClick:()=>n({isOpen:!1}),className:"betterdocs-quick-edit-close"},(0,r.createElement)("span",null,(0,r.createElement)(F.gz,null))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-wrap"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-body"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-header"},(0,r.createElement)("h3",{className:"betterdocs-quick-edit-title"},(0,ie.decodeEntities)(o.title.rendered))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Authors:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-authors",id:"betterdocs-quick-edit-authors",value:u,onInputChange:e=>{b(e)},onMenuScrollToBottom:e=>{null!=e&&g&&m((e=>({...e,page:h.page+1})))},onChange:e=>{c((t=>({...t,author:e?.value}))),d(e)},filterOption:(e,t)=>e,options:v?.length>0?v:f,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-status"},(0,D.__)("Status:","betterdocs")),(0,r.createElement)(xe.Ay,{className:"quick-edit-select-fields betterdocs-quick-edit-status",id:"betterdocs-quick-edit-status",value:x.find((e=>e.value===l.status)),onChange:e=>{c((t=>({...t,status:e?.value})))},options:x,classNamePrefix:"quick-edit-select-fields"})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-title"},(0,D.__)("Title:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-title",type:"text",value:l.title,onChange:e=>c((t=>({...t,title:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-slug"},(0,D.__)("Slug","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-slug",type:"text",placeholder:"Slug",value:l.slug,onChange:e=>c((t=>({...t,slug:e.target.value})))})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-date"},(0,D.__)("Date:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-date",type:"datetime-local",placeholder:"date",value:l?.date,onChange:e=>{c((t=>({...t,date:e?.target?.value})))}})),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("label",null,(0,D.__)("Select Privacy","betterdocs")),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"password",type:"radio",name:"privacy",value:"password",checked:"password"===w,onChange:e=>{E(e.target.value)}}),(0,r.createElement)("label",{htmlFor:"password"},(0,D.__)("Password Protected","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"private",type:"radio",name:"privacy",value:"private",checked:"private"===w,onChange:e=>{E(e.target.value),l?.hasOwnProperty("password")&&delete l.password,c((e=>({...l,status:"private"})))}}),(0,r.createElement)("label",{htmlFor:"private"},(0,D.__)("Make Private","betterdocs"))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-privacy-radio-group"},(0,r.createElement)("input",{id:"none",type:"radio",name:"privacy",value:"none",checked:"none"===w,onChange:e=>{E(e.target.value),l?.hasOwnProperty("password")&&delete l.password,c((e=>({...l,title:l?.title?.replace("Private:",""),status:"publish"})))}}),(0,r.createElement)("label",{htmlFor:"none"},(0,D.__)("None","betterdocs"))))),"password"===w&&(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group betterdocs-quick-edit-password-field"},(0,r.createElement)("label",{htmlFor:"betterdocs-quick-edit-password"},(0,D.__)("Password:","betterdocs")),(0,r.createElement)("input",{id:"betterdocs-quick-edit-password",type:"text",placeholder:"",value:l?.password?.length>0?l?.password:"",onChange:e=>{c((t=>({...t,status:"private"==o?.status?"publish":o?.status,password:e?.target?.value})))}})),1==betterdocs_admin?.multiple_kb&&(0,A.applyFilters)("quick_edit_mkb_filter","",[o,c,Ee]),(0,r.createElement)(Ee,{name:"doc_category",endpoint:"wp/v2/doc_category",doc:o,setQuickEditData:c,label:(0,D.__)("Category","betterdocs"),placeholder:(0,D.__)("Search Category","betterdocs")}),(0,r.createElement)(Ee,{name:"doc_tag",endpoint:"wp/v2/doc_tag",doc:o,setQuickEditData:c,label:(0,D.__)("Tags","betterdocs"),placeholder:(0,D.__)("Search Tags","betterdocs")}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-form-group"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-comments"},(0,r.createElement)("input",{type:"checkbox",id:o.id,checked:"open"===l.comment_status,onChange:e=>c((t=>({...t,comment_status:e.target.checked?"open":"closed"})))}),(0,r.createElement)("label",{htmlFor:o.id},(0,D.__)("Allow Comments","betterdocs"))))),(0,r.createElement)("div",{className:"betterdocs-quick-edit-footer"},(0,r.createElement)("div",{className:"betterdocs-quick-edit-nav"}),(0,r.createElement)("div",{className:"betterdocs-quick-edit-submit"},(0,r.createElement)("button",{type:"submit",className:"betterdocs-quick-edit-submit-btn",onClick:async t=>{t.preventDefault(),s("Saving...");const n=await wp.apiFetch({path:`/wp/v2/docs/${o.id}`,method:"POST",data:l});null!=n?(e((e=>{let t=e?.map((e=>e?.id==a?n:e));return[...t]})),s("Save"),Ce.oR.success((0,D.__)("Saved Successfully","betterdocs"))):(s("Save"),Ce.oR.error((0,D.__)("Error While Saving","betterdocs")))}},i)))))};var Ue=n(1419),He=n.n(Ue);const Ve=({post_status:e})=>{const[t,n]=(0,i.KC)(),[o,a]=(0,r.useState)([]),{data:s,setData:l}=we(),[c,u]=(0,r.useState)(void 0);let[d,f]=(0,r.useState)([]),[h,m]=(0,r.useState)([]);const[y,v]=(0,r.useState)(""),b=_e(y),[w,E]=(0,r.useState)({per_page:20,status:e,page:1,...""!=t?{knowledge_base_slug:t}:{}}),{data:x,isLoading:C,error:_,totalPages:S,totalItems:O,setRefetch:k,setIsLoading:N,setData:M}=L({path:(0,p.addQueryArgs)("/wp/v2/docs",w),parse:!1}),A=(0,i.Zp)(),{quickAction:I,docId:j}=s;return(0,r.useEffect)((()=>{if(!C){let e;e=""!=b?{...""!=c?c:{},page:1,per_page:20,status:"any",search:b}:{...""!=c?c:{},page:1,status:"any",per_page:20},N(!0),E({...e})}}),[b]),(0,r.useEffect)((()=>{if(!C){let t={page:1,status:e,per_page:20,page:1};E((e=>(N(!0),{...t})))}o?.length>0&&a([])}),[e]),(0,r.useEffect)((()=>{C||"trash"!=e&&E((e=>(""==t?null!=e.knowledge_base_slug&&(N(!0),delete e.knowledge_base_slug):(N(!0),e.knowledge_base_slug=t),{...w,...e})))}),[t,e]),(0,r.useEffect)((()=>{if(null!=I){let{action:t,docId:r,forceDelete:i}=I;if("trash"==t&&(h.push(r),m([...h]),wp.apiFetch({path:`/wp/v2/docs/${r}`,method:"DELETE"}).then((e=>{if(null!=e){let e=x?.filter((e=>e?.id!=r));"function"==typeof n&&n(!0),M([...e]),setTimeout((()=>{m([])}),1e3),l((e=>({...e,quickAction:{}}))),0==e?.length&&(N(!0),k(!0))}})).catch((e=>{l((e=>({...e,quickAction:{}}))),setTimeout((()=>{m([])}),1e3)}))),"permanent-delete"==t&&He().fire({text:(0,D.__)("Are you sure you want to permanently delete this post?","betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,D.__)("Yes","betterdocs"),cancelButtonText:(0,D.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e?.isConfirmed&&(h.push(r),m([...h]),wp.apiFetch({path:`/wp/v2/docs/${r}`,method:"DELETE",data:{force:!0}}).then((e=>{if(null!=e){let e=x?.filter((e=>e?.id!=r));"function"==typeof n&&n(!0),M([...e]),setTimeout((()=>{m([])}),1e3),l((e=>({...e,quickAction:{}}))),0==e?.length&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==e?.length&&(N(!0),k(!0))}})).catch((e=>{Ce.oR.error((0,D.__)("Failed To Delete Permanently","betterdocs")),l((e=>({...e,quickAction:{}}))),setTimeout((()=>{m([])}),1e3)})))})),"bulk-delete"==t){let t={},r=x,s=h;null!=i&&(t.force=!!i);for(let a of o)wp.apiFetch({path:`/wp/v2/docs/${a}`,method:"DELETE",data:t}).then((t=>{null!=t&&(r=r?.filter((e=>e?.id!=a)),s=s?.filter((e=>e!=a)),("function"==typeof n&&"any"==e||"function"==typeof n&&"trash"==e||"function"==typeof n&&null==e)&&n(!0),M([...r]),m([...s]),0==r?.length&&"any"==e&&(N(!0),k(!0)),0==r?.length&&"trash"==e&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==r?.length&&"trash"==e&&(N(!0),k(!0)))}));a([]),l((e=>({...e,quickAction:{}})))}if("restore"==t){let e={status:"publish"};d.push(r),f([...d]),wp.apiFetch({path:`/wp/v2/docs/${r}`,method:"POST",data:e}).then((e=>{if(null!=e){let e=x?.filter((e=>e?.id!=r));"function"==typeof n&&n(!0),M([...e]),l((e=>({...e,quickAction:{}}))),setTimeout((()=>{f([])}),1e3),0==e?.length&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==e?.length&&(N(!0),k(!0))}})).catch((e=>{setTimeout((()=>{f([])}),1e3),l((e=>({...e,quickAction:{}})))}))}if("bulk-restore"==t){let t={status:"publish"},r=x,i=d;for(let a of o)wp.apiFetch({path:`/wp/v2/docs/${a}`,method:"POST",data:t}).then((t=>{null!=t&&(r=r?.filter((e=>e?.id!=a)),i=i?.filter((e=>e!=a)),"function"==typeof n&&n(!0),M([...r]),f([...i]),0==r?.length&&"trash"==e&&1==S?(E((e=>({...e,status:"any",page:1}))),A(g("betterdocs-admin",{mode:"list",post_status:"any"}))):0==r?.length&&"trash"==e&&(N(!0),k(!0)))}));a([]),l((e=>({...e,quickAction:{}})))}}}),[I]),(0,r.useEffect)((()=>{let e={...w,page:1,per_page:20,status:"any"};E((t=>null!=c&&Object.keys(c)?.length>0?(e=le(t,c,["author","doc_category","year_month","status","order"]),N(!0),{...e,...c}):null!=c&&0==Object.keys(c)?.length?(e=le(t,c,["author","doc_category","year_month","status","order"]),N(!0),{...e,status:"any"}):t))}),[c]),(0,r.createElement)("section",{className:"betterdocs-dashboard-body betterdocs-dashboard-category-list",onClick:e=>{s?.isListMenuOpen&&l((e=>({...e,isListMenuOpen:!1})))}},(0,r.createElement)("div",{className:"betterdocs-dashboard-container"},"trash"!=e&&(0,r.createElement)("div",{className:"betterdocs-dashboard-category-list-filter"},(0,r.createElement)("div",{className:"betterdocs-row"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-3"},(0,r.createElement)(ze,{setSearchKeyword:v})),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-9"},(0,r.createElement)("div",{className:"betterdocs-dashboard-filter-wrap"},(0,r.createElement)(Ae,{onFilterSelect:u}))))),o?.length>0&&(0,r.createElement)("div",{className:"betterdocs-dashboard-bulk-option"},(0,r.createElement)("div",{className:"betterdocs-row"},(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-6"},(0,r.createElement)("h5",{className:"bulk-option-item-count"},(0,r.createElement)("span",null,`${o?.length} ${1==o?.length?(0,D.__)("Item Selected","betterdocs"):(0,D.__)("Items Selected","betetrdocs")}`))),(0,r.createElement)("div",{className:"betterdocs-col betterdocs-col-md-6"},(0,r.createElement)("div",{className:"betterdocs-dashboard-bulk-option-actions"},(0,r.createElement)("button",{className:"bulk-option-action-btn",type:"button",onClick:t=>{He().fire({text:"any"==e?(0,D.__)(`Are you sure you want to move ${o?.length} Docs to the trash?`,"betterdocs"):(0,D.__)(`Are you sure you want to permanently delete ${o?.length} Docs?`,"betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,D.__)("Yes","betterdocs"),cancelButtonText:(0,D.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((t=>{t?.isConfirmed&&(m([...o]),l((t=>({...t,quickAction:{action:"bulk-delete",forceDelete:"trash"==e}}))))}))}},"trash"==e?(0,D.__)("Delete Permanently","betterdocs"):(0,D.__)("Move to Trash","betterdocs")),"trash"==e&&(0,r.createElement)("button",{className:"bulk-option-action-btn",type:"button",onClick:e=>{He().fire({text:(0,D.__)(`Are you sure you want to restore ${o?.length} Docs ?`,"betterdocs"),icon:"warning",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:(0,D.__)("Yes","betterdocs"),cancelButtonText:(0,D.__)("No","betterdocs"),customClass:{popup:"betterdocs-bulk-action-popup"}}).then((e=>{e?.isConfirmed&&(f([...o]),l((e=>({...e,quickAction:{action:"bulk-restore"}}))))}))}},(0,D.__)("Restore","betterdocs")))))),(0,r.createElement)("div",{className:"betterdocs-dashboard-item-list-wrap"},(0,r.createElement)(Be,{setLoading:N,onFilterSelect:u,docs:x,totalItems:O,totalPages:S,setCurrentPage:E,currentPage:w?.page,bulkData:o,setBulkData:a,status:e,setLoaderIDS:m,loaderIDS:h,isLoading:C,restoreIDS:d}),s?.isOpen&&(0,r.createElement)(qe,{setDocuments:M}))))};var Ke=n(5849);const Ge=()=>{const[e]=M(),[t,n]=(0,r.useState)({isOpen:!1,isListMenuOpen:!1,quickAction:{}});let o={};if(e.has("kb")&&""!==e.get("kb")&&(o.kb=e.get("kb")),e.has("post_status")&&""!=e.get("post_status")&&(o.post_status=e.get("post_status")),null==betterdocs_admin?.dashboard_mode||""==betterdocs_admin?.dashboard_mode||e.has("mode")||e.set("mode",betterdocs_admin?.dashboard_mode),!e.has("mode")||"grid"===e.get("mode")){const e=new Ke.E;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Y.Ht,{client:e},(0,r.createElement)(Ce.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Ne,{...o})))}const a=new Ke.E;return(0,r.createElement)(Y.Ht,{client:a},(0,r.createElement)(be,{value:{data:t,setData:n}},(0,r.createElement)(Ce.N9,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,r.createElement)(Ve,{...o})))};var We=n(301),Ye=n(2736);function Qe(e){return t=>!!t.type&&t.type.tabsRole===e}const $e=Qe("Tab"),Ze=Qe("TabList"),Je=Qe("TabPanel");function Xe(e,t){return r.Children.map(e,(e=>null===e?null:function(e){return $e(e)||Ze(e)||Je(e)}(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,r.cloneElement)(e,Object.assign({},e.props,{children:Xe(e.props.children,t)})):e))}function et(e,t){return r.Children.forEach(e,(e=>{null!==e&&($e(e)||Je(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(Ze(e)&&t(e),et(e.props.children,t)))}))}function tt(e,t,n){let r,o=0,a=0,i=!1;const s=[];return et(e[t],(e=>{Ze(e)&&(e.props&&e.props.children&&"object"==typeof e.props.children&&et(e.props.children,(e=>s.push(e))),i&&(r=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),i=!0),$e(e)?(i&&-1!==s.indexOf(e)||(r=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),o++):Je(e)&&a++})),r||o===a||(r=new Error(`There should be an equal number of 'Tab' and 'TabPanel' in \`${n}\`. Received ${o} 'Tab' and ${a} 'TabPanel'.`)),r}function nt(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t{$e(e)&&t++})),t}const at=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys","disableLeftRightKeys"];function it(e){return e&&"getAttribute"in e}function st(e){return it(e)&&e.getAttribute("data-rttab")}function lt(e){return it(e)&&"true"===e.getAttribute("aria-disabled")}let ct;const ut={className:"react-tabs",focus:!1},dt={children:tt},pt=e=>{(0,Ye.checkPropTypes)(dt,e,"prop","UncontrolledTabs");let t=(0,r.useRef)([]),n=(0,r.useRef)([]);const a=(0,r.useRef)();function i(t,n){if(t<0||t>=c())return;const{onSelect:r,selectedIndex:o}=e;r(t,o,n)}function s(e){const t=c();for(let n=e+1;ne;)if(!lt(u(t)))return t;return e}function c(){const{children:t}=e;return ot(t)}function u(e){return t.current[`tabs-${e}`]}function d(e){let t=e.target;do{if(p(t)){if(lt(t))return;return void i([].slice.call(t.parentNode.children).filter(st).indexOf(t),e)}}while(null!=(t=t.parentNode))}function p(e){if(!st(e))return!1;let t=e.parentElement;do{if(t===a.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}const f=Object.assign({},ut,e),{className:h,domRef:m}=f,g=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(f,at);return o().createElement("div",Object.assign({},g,{className:rt(h),onClick:d,onKeyDown:function(t){const{direction:n,disableUpDownKeys:r,disableLeftRightKeys:o}=e;if(p(t.target)){let{selectedIndex:a}=e,p=!1,f=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(p=!0,f=!1,d(t)),(o||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?(o||39!==t.keyCode&&"ArrowRight"!==t.code)&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(a=function(){let e=c();for(;e--;)if(!lt(u(e)))return e;return null}(),p=!0,f=!0):36!==t.keyCode&&"Home"!==t.code||(a=function(){const e=c();for(let t=0;t{a.current=e,m&&m(e)},"data-rttabs":!0}),function(){let a=0;const{children:i,disabledTabClassName:s,focus:l,forceRenderTabPanel:d,selectedIndex:p,selectedTabClassName:f,selectedTabPanelClassName:h,environment:m}=e;n.current=n.current||[];let g=n.current.length-c();const y=(0,r.useId)();for(;g++<0;)n.current.push(`${y}${n.current.length}`);return Xe(i,(e=>{let i=e;if(Ze(e)){let a=0,c=!1;null==ct&&function(e){const t=e||("undefined"!=typeof window?window:void 0);try{ct=!(void 0===t||!t.document||!t.document.activeElement)}catch(e){ct=!1}}(m);const d=m||("undefined"!=typeof window?window:void 0);ct&&d&&(c=o().Children.toArray(e.props.children).filter($e).some(((e,t)=>d.document.activeElement===u(t)))),i=(0,r.cloneElement)(e,{children:Xe(e.props.children,(e=>{const o=`tabs-${a}`,i=p===a,u={tabRef:e=>{t.current[o]=e},id:n.current[a],selected:i,focus:i&&(l||c)};return f&&(u.selectedClassName=f),s&&(u.disabledClassName=s),a++,(0,r.cloneElement)(e,u)}))})}else if(Je(e)){const t={id:n.current[a],selected:p===a};d&&(t.forceRender=d),h&&(t.selectedClassName=h),a++,i=(0,r.cloneElement)(e,t)}return i}))}())},ft=["children","defaultFocus","defaultIndex","focusTabOnClick","onSelect"],ht={children:tt,onSelect:function(e,t,n,r,o){const a=e[t],i=o||t;let s=null;return a&&"function"!=typeof a?s=new Error(`Invalid ${r} \`${i}\` of type \`${typeof a}\` supplied to \`${n}\`, expected \`function\`.`):null!=e.selectedIndex&&null==a&&(s=new Error(`The ${r} \`${i}\` is marked as required in \`${n}\`, but its value is \`undefined\` or \`null\`.\n\`onSelect\` is required when \`selectedIndex\` is also set. Not doing so will make the tabs not do anything, as \`selectedIndex\` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace \`selectedIndex\` with \`defaultIndex\`.`)),s},selectedIndex:function(e,t,n,r,o){const a=e[t],i=o||t;let s=null;if(null!=a&&"number"!=typeof a)s=new Error(`Invalid ${r} \`${i}\` of type \`${typeof a}\` supplied to \`${n}\`, expected \`number\`.`);else if(null!=e.defaultIndex&&null!=a)return new Error(`The ${r} \`${i}\` cannot be used together with \`defaultIndex\` in \`${n}\`.\nEither remove \`${i}\` to let \`${n}\` handle the selected tab internally or remove \`defaultIndex\` to handle it yourself.`);return s}},mt={defaultFocus:!1,focusTabOnClick:!0,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1,disableLeftRightKeys:!1},gt=e=>{(0,Ye.checkPropTypes)(ht,e,"prop","Tabs");const t=Object.assign({},mt,e),{children:n,defaultFocus:a,defaultIndex:i,focusTabOnClick:s,onSelect:l}=t,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(t,ft),[u,d]=(0,r.useState)(a),[p]=(0,r.useState)((e=>null===e.selectedIndex?1:0)(c)),[f,h]=(0,r.useState)(1===p?i||0:null);if((0,r.useEffect)((()=>{d(!1)}),[]),1===p){const e=ot(n);(0,r.useEffect)((()=>{if(null!=f){const t=Math.max(0,e-1);h(Math.min(f,t))}}),[e])}let m=Object.assign({},e,c);return m.focus=u,m.onSelect=(e,t,n)=>{"function"==typeof l&&!1===l(e,t,n)||(s&&d(!0),1===p&&h(e))},null!=f&&(m.selectedIndex=f),delete m.defaultFocus,delete m.defaultIndex,delete m.focusTabOnClick,o().createElement(pt,m,n)};gt.tabsRole="Tabs";const yt=gt,vt=["children","className"],bt={className:"react-tabs__tab-list"},wt=e=>{const t=Object.assign({},bt,e),{children:n,className:r}=t,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(t,vt);return o().createElement("ul",Object.assign({},a,{className:rt(r),role:"tablist"}),n)};wt.tabsRole="TabList";const Et=wt,xt=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"],Ct="react-tabs__tab",_t={className:Ct,disabledClassName:`${Ct}--disabled`,focus:!1,id:null,selected:!1,selectedClassName:`${Ct}--selected`},St=e=>{let t=(0,r.useRef)();const n=Object.assign({},_t,e),{children:a,className:i,disabled:s,disabledClassName:l,focus:c,id:u,selected:d,selectedClassName:p,tabIndex:f,tabRef:h}=n,m=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(n,xt);return(0,r.useEffect)((()=>{d&&c&&t.current.focus()}),[d,c]),o().createElement("li",Object.assign({},m,{className:rt(i,{[p]:d,[l]:s}),ref:e=>{t.current=e,h&&h(e)},role:"tab",id:`tab${u}`,"aria-selected":d?"true":"false","aria-disabled":s?"true":"false","aria-controls":`panel${u}`,tabIndex:f||(d?"0":null),"data-rttab":!0}),a)};St.tabsRole="Tab";const Ot=St,kt=["children","className","forceRender","id","selected","selectedClassName"],Nt="react-tabs__tab-panel",Mt={className:Nt,forceRender:!1,selectedClassName:`${Nt}--selected`},At=e=>{const t=Object.assign({},Mt,e),{children:n,className:r,forceRender:a,id:i,selected:s,selectedClassName:l}=t,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(t,kt);return o().createElement("div",Object.assign({},c,{className:rt(r,{[l]:s}),role:"tabpanel",id:`panel${i}`,"aria-labelledby":`tab${i}`}),a||s?n:null)};At.tabsRole="TabPanel";const Dt=At,It=()=>(0,r.createElement)("div",{className:"overlay"},(0,r.createElement)("div",{className:"overlay-content"},(0,r.createElement)("h3",null,(0,D.__)("Unlock Analytics With BetterDocs PRO","betterdocs")," ",(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/lock.png`,id:"img-teaser",alt:""})),(0,r.createElement)("p",{className:"teaser-text teaser-desc"},(0,D.__)("Scale your support tickets tracking the performance of your knowledge base BetterDocs Analytics.","betterdocs")),(0,r.createElement)("ul",{className:"analytics-list"},(0,r.createElement)("li",null,(0,r.createElement)("div",{className:"analytics-item"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/graph.png`,id:"img-teaser-1",alt:""}),(0,r.createElement)("p",{className:"teaser-text"},(0,D.__)("Measure performance of your knowledge base","betterdocs")))),(0,r.createElement)("li",null,(0,r.createElement)("div",{className:"analytics-item"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/magifier.png`,id:"img-teaser-2",alt:""}),(0,r.createElement)("p",{className:"teaser-text"},(0,D.__)("Identify most viewed docs and doc categories","betterdocs")))),(0,r.createElement)("li",null,(0,r.createElement)("div",{className:"analytics-item"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/globe.png`,id:"img-teaser-4",alt:""}),(0,r.createElement)("p",{className:"teaser-text"},(0,D.__)("Identify most used keywords searched by site visitors","betterdocs")," ")))),(0,r.createElement)("div",{className:"analytics-upgrade-btn"},(0,r.createElement)("a",{href:"https://betterdocs.co/upgrade"},(0,D.__)("Upgrade To BetterDocs PRO","betterdocs"))))),jt=()=>{const[e,t]=(0,r.useState)(0),n=o().useRef();return(0,r.createElement)("div",{className:"betterdocs-dashboard-container",ref:n},(0,r.createElement)(yt,{selectedIndex:e,onSelect:e=>(e=>{t(e)})(e),className:"betterdocs-analytics-tab-wrapper"},(0,r.createElement)(Et,{className:"betterdocs-analytics-tab-menu"},(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Overview","betterdocs-pro")),(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Views","betterdocs-pro")),(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Reactions","betterdocs-pro")),(0,r.createElement)(Ot,{className:"betterdocs-analytics-tab-item",selectedClassName:"active"},(0,D.__)("Search","betterdocs-pro"))),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-overview"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/overview.png`,alt:"betterdocs-overview"}),(0,r.createElement)(It,null)),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-view"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/views.png`,alt:"betterdocs-view"}),(0,r.createElement)(It,null)),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-reactions"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/reactions.png`,alt:"betterdocs-reactions"}),(0,r.createElement)(It,null)),(0,r.createElement)(Dt,{className:"betterdocs-analytics-tab-content",id:"betterdocs-analytics-search"},(0,r.createElement)("img",{src:`${betterdocs_admin.dir_url}assets/admin/images/analytics/search.png`,alt:"betterdocs-search"}),(0,r.createElement)(It,null))))},Tt=new Ke.E,Lt=()=>(0,r.createElement)("div",{className:"betterdocs-admin-analytics-wrapper betterdocs-analytics-teaser"},(0,r.createElement)(Y.Ht,{client:Tt},(0,r.createElement)(jt,null)));var Pt=n(5878);const Rt=({Component:e,fallback:t})=>(0,r.createElement)(r.Suspense,{fallback:null!=t?t:"Loading..."},(0,r.createElement)(e,null)),Ft=()=>(0,r.createElement)("a",{href:"post-new.php?post_type=docs",className:"admin-action-button"},(0,r.createElement)("span",{className:"action-button-icon"},(0,r.createElement)(F.uI,null)),(0,r.createElement)("span",{className:"action-button-icon-text"},(0,D.__)("Add New Docs","betterdocs")));(0,A.addFilter)("betterdocs_admin_header_action","betterdocs",((e,t)=>{switch(t){case"betterdocs-admin":return(0,r.createElement)(Ft,null);case"betterdocs-faq":return(0,r.createElement)(V,null);case"betterdocs-glossaries":return(0,r.createElement)(G,null)}return e})),(0,A.addFilter)("betterdocs_admin_header_title","betterdocs",((e,t)=>{switch(t){case"betterdocs-faq":return"FAQ Builder";case"betterdocs-admin":return"All Docs";case"betterdocs-settings":return"Settings";case"betterdocs-analytics":return"Analytics";case"betterdocs-glossaries":return"Glossaries"}return e})),(0,A.addFilter)("betterdocs_admin_header_action_icons","betterdocs",((e,t,n,o)=>{let a=[];return null==o&&"betterdocs-admin"===t||"grid"==o&&"betterdocs-admin"===t?(a.push((0,r.createElement)("li",{key:2},(0,r.createElement)(_,{onClick:e=>{betterdocs_admin.dashboard_mode="",j()({method:"POST",path:"betterdocs/v1/dashboard-mode",data:{dashboard_mode:"list"}})},to:g("betterdocs-admin",{mode:"list",post_status:"any"}),className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-list "+(n.search.includes("mode=list")?"active":"")},(0,r.createElement)(F.uM,null)))),[...a,...e]):"list"==o&&"betterdocs-admin"===t?(a.push((0,r.createElement)("li",{key:3},(0,r.createElement)(_,{onClick:e=>{betterdocs_admin.dashboard_mode="",j()({method:"POST",path:"betterdocs/v1/dashboard-mode",data:{dashboard_mode:"grid"}})},to:g("betterdocs-admin",{mode:"grid"},[],!1),className:"betterdocs-dashboard-header-action betterdocs-dashboard-header-action-grid "+(n.search.includes("mode=grid")?"active":"")},(0,r.createElement)(F.Ut,null)))),[...a,...e]):e}));const Bt=(e,t)=>t?.children?t.children.reduce(Bt,e):(t?.path&&e.push(t.path),e),zt=()=>{const[e]=M(),t=(0,A.applyFilters)("betterdocs_routes_wrapper",[{element:(0,r.createElement)(H.C,null,(0,r.createElement)(q,null)),children:(0,A.applyFilters)("betterdocs_routes",[{path:"betterdocs-admin",element:(0,r.createElement)(Rt,{Component:Ge}),exact:!0,index:!0},{path:"betterdocs-settings",element:(0,r.createElement)(Rt,{Component:W.A}),exact:!0},{path:"betterdocs-faq",element:(0,r.createElement)(Rt,{Component:We.A}),exact:!0},{path:"betterdocs-analytics",element:(0,r.createElement)(Rt,{Component:Lt}),exact:!0},{path:"betterdocs-glossaries",element:(0,r.createElement)(Rt,{Component:Pt.A}),exact:!0}])}]),n=t.reduce(Bt,[]),o=function(t){const r=this.getAttribute("href"),o=this.getAttribute("class"),a=r.split("=")[1];let i={page:a};if(1==betterdocs_admin.betterdocs_pro_plugin&&1==betterdocs_admin.analytics_older&&"betterdocs-analytics"==o)return t.preventDefault(),void(window.location.href=r);if(n.includes(a)&&(t.preventDefault(),r)){e.get("mode")&&(i.mode=e.get("mode"));let t=(0,p.addQueryArgs)(window.location.href?.split("?")[0],i);m.push(t);const n=this.parentNode;let r=function(e){let t=[];if(!e.parentNode)return t;let n=e.parentNode.firstChild;for(;n;)1===n.nodeType&&n!==e&&t.push(n),n=n.nextSibling;return t}(n);r.forEach((e=>{e.classList.remove("current")})),n.classList.add("current"),document.body.classList.add("betterdocs_page_"+a)}};return(0,r.useEffect)((()=>{const e=document.querySelectorAll("#toplevel_page_betterdocs-admin a");return e.forEach((e=>{e.removeEventListener("click",o),e.addEventListener("click",o)})),()=>{e.forEach((e=>{e.removeEventListener("click",o)}))}}),[n]),(0,i.Ye)(t)};n(4259);const qt=document.getElementById("betterdocs-dashboard-app");if(!qt)throw new Error("Failed to find the betterdocs-dashboard-app element");(0,a.H)(qt).render((0,r.createElement)((()=>{const[e,t]=(0,r.useState)({action:m.action,location:m.location});return(0,r.useLayoutEffect)((()=>m.listen(((e,n)=>{t({action:n,location:e})}))),[m]),(0,r.useEffect)((()=>{let t=document.getElementsByClassName("betterdocs-ia");0!==t.length&&("/betterdocs-settings"==e?.location?.pathname&&betterdocsAdminSettings?.values?.enable_disable&&"/betterdocs-settings"==e?.location?.pathname&&betterdocsAdminSettings?.values?.ia_enable_preview?t[0].style.display="block":t[0].style.display="none")}),[e]),(0,r.createElement)(K.K,null,(0,r.createElement)(i.Ix,{location:e.location,basename:"/",navigator:m,navigationType:e.action},(0,r.createElement)(zt,null)))}),null))})()})();