(()=>{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 x(){return b=v2||M(b)>3?"":" "}function T(e,t){for(;--t&&x()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return k(e,C()+(t<6&&32==O()&&32==x()))}function L(e){for(;x();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&L(b);break;case 40:41===e&&L(e);break;case 92:x()}return v}function N(e,t){for(;x()&&e+b!==57&&(e+b!==84||47!==O()););return"/*"+k(t,v-1)+"*"+i(47===e?e:x())}function P(e){for(;!M(O());)x();return k(e,v)}var z="-ms-",R="-moz-",B="-webkit-",F="comm",U="rule",H="decl",K="@keyframes";function V(e,t){for(var n="",r=d(e),o=0;o0&&f(R)-y&&h(b>32?G(R+";",r,n,y-1):G(c(R," ","")+";",r,n,y-2),d);break;case 59:R+=";";default:if(h(z=Q(R,t,n,m,g,o,p,j,D=[],L=[],y),a),123===M)if(0===g)W(R,t,z,z,D,a,y,p,L);else switch(99===v&&110===u(R,3)?100:v){case 100:case 108:case 109:case 115:W(e,z,z,r&&h(Q(e,z,z,0,0,o,p,j,o,D=[],y),L),o,L,y,p,r?D:L);break;default:W(R,z,z,z,[""],L,0,p,L)}}m=g=b=0,E=k=1,j=R="",y=s;break;case 58:y=1+f(R),b=w;default:if(E<1)if(123==M)--E;else if(125==M&&0==E++&&125==_())continue;switch(R+=i(M),M*E){case 38:k=g>0?1:(R+="\f",-1);break;case 44:p[m++]=(f(R)-1)*k,k=1;break;case 64:45===O()&&(R+=A(x())),v=O(),g=y=f(j=R+=P(C())),M++;break;case 45:45===w&&2==f(R)&&(E=0)}}return a}function Q(e,t,n,r,i,a,l,u,f,h,m){for(var g=i-1,y=0===i?a:[""],v=d(y),b=0,w=0,S=0;b0?y[_]+" "+x:c(x,/&\f/g,y[_])))&&(f[S++]=O);return E(e,t,n,0===i?U:u,f,h,m)}function Z(e,t,n){return E(e,t,n,F,i(b),p(e,2,-2),0)}function G(e,t,n,r){return E(e,t,n,H,p(e,0,r),p(e,r+1,-1),r)}var $=function(e,t,n){for(var r=0,o=0;r=o,o=O(),38===r&&12===o&&(t[n]=1),!M(o);)x();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=[],a=function(e,t){return D(function(e,t){var n=-1,r=44;do{switch(M(r)){case 0:38===r&&12===O()&&(t[n]=1),e[n]+=$(v-1,t,n);break;case 2:e[n]+=A(r);break;case 4:if(44===r){e[++n]=58===O()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=x());return e}(j(e),t))}(t,o),s=n.props,c=0,l=0;c6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+R+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?te(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~l(e,"!important")&&10))){case 107:return c(e,":",":"+B)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(45===u(e,14)?"inline-":"")+"box$3$1"+B+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return B+e+z+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+z+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+z+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+z+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case K:return V([S(e,{value:c(e.value,"@","@"+B)})],r);case U: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([S(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([S(e,{props:[c(t,/:(plac\w+)/,":"+B+"input-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,z+"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,i,a=e.stylisPlugins||ne,s={},c=[];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:()=>A,i7:()=>T});var r=n(1609),o=n(2096),i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a={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 c=!1,l=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=function(e){return 45===e.charCodeAt(1)},f=function(e){return null!=e&&"boolean"!=typeof e},d=s((function(e){return p(e)?e:e.replace(l,"-$&").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===a[e]||p(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 i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)y={name:a.name,styles:a.styles,next:y},a=a.next;return i.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)+c;return{name:l,styles:o,next:y}}var w,E,S=!!r.useInsertionEffect&&r.useInsertionEffect,_=S||function(e){return e()},x=(S||r.useLayoutEffect,r.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null)),O=(x.Provider,function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(x);return e(t,o,n)}))}),C=r.createContext({}),k={}.hasOwnProperty,M="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",j=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return i(t,n,r),_((function(){return function(e,t,n){i(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},D=O((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[M],a=[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,a,e.className):null!=e.className&&(s=e.className+" ");var c=b(a,void 0,r.useContext(C));s+=t.key+"-"+c.name;var l={};for(var u in e)k.call(e,u)&&"css"!==u&&u!==M&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),r.createElement(r.Fragment,null,r.createElement(j,{cache:t,serialized:c,isStringTag:"string"==typeof i}),r.createElement(i,l))})),A=(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,i=new Array(o);i[0]=D,i[1]=function(e,t){var n={};for(var r in t)k.call(t,r)&&(n[r]=t[r]);return n[M]=e,n}(e,t);for(var a=2;a{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var r=n(5664),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,c,l,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.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 i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),c.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"),i=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(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),l&&document.body.removeChild(l),a()}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 i=n(8994),a=n(2399);o(n(2399),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new a.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 a.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?i.ElementType.Tag:void 0,r=new a.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===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new a.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.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 a.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=c,t.default=c},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 __)}),i=this&&this.__assign||function(){return i=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=f;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=h;var m=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}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}(f);function g(e){return(0,a.isTag)(e)}function y(e){return e.type===a.ElementType.CDATA}function v(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function w(e){return e.type===a.ElementType.Directive}function E(e){return e.type===a.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new l(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?_(e.children):[],o=new m(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?_(e.children):[];var a=new d(r);r.forEach((function(e){return e.parent=a})),n=a}else if(E(e)){r=t?_(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 c=new p(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return S(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),i=n(6784),a=n(3112),s=a.List,c=a.Repeat,l=a.Record,u=function(){return!0},p=l({start:null,end:null}),f=l({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return s.of(new f({start:0,end:0,decoratorKey:null,leaves:s.of(new p({start:0,end:0}))}));var i=[],a=n?n.getDecorations(t,e):s(c(null,r)),l=t.getCharacterList();return o(a,h,u,(function(e,t){var n,r,c,d;i.push(new f({start:e,end:t,decoratorKey:a.get(e),leaves:(n=l.slice(e,t).toList(),r=e,c=[],d=n.map((function(e){return e.getStyle()})).toList(),o(d,h,u,(function(e,t){c.push(new p({start:e+r,end:t+r}))})),s(c))}))})),s(i)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,["leaves"]);return new f(function(e){for(var t=1;t{"use strict";var r=n(3112),o=r.Map,i=r.OrderedSet,a=r.Record,s=i(),c={style:s,entity:null},l=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 a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.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=p.get(t);if(n)return n;var i=new r(t);return p=p.set(t,i),i},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?i(t):t,entity:Array.isArray(n)?i(n):n})},r}(a(c)),u=new l,p=o([[o(c),u]]);l.EMPTY=u,e.exports=l},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 i=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),i=n(3112),a=i.List,s=i.Map,c=i.OrderedSet,l=i.Record,u=i.Repeat,p=c(),f=function(e){var t,n;function i(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.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():p},s.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},s.findStyleRanges=function(e,t){o(this.getCharacterList(),d,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(l({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}));function d(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},7479:(e,t,n)=>{"use strict";var r=n(1559),o=n(4814),i=n(3112),a=i.List,s=i.Map,c=i.OrderedSet,l=i.Record,u=i.Repeat,p=c(),f={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){var t,n;function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e}(t))||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=i.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():p},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(),d,e,t)},s.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},i}(l(f));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 l.__create(e,t,n),this},s.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},s.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},s.addEntity=function(e){return l.__add(e),this},s.getEntity=function(e){return l.__get(e)},s.getAllEntities=function(){return l.__getAll()},s.loadWithEntities=function(e){return l.__loadWithEntities(e)},o.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,r=i.createFromArray(n),a=r.isEmpty()?new u:u.createEmpty(r.first().getKey());return new o({blockMap:r,entityMap:t||l,selectionBefore:a,selectionAfter:a})},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 S({key:p(),text:e,type:"unstyled",characterList:g(v(a.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 S(r({},e,{data:b(e.data),characterList:null!=t?g((Array.isArray(t)?t:f(t)).map((function(e){return a.fromJS(e)}))):void 0}))},o}(E);e.exports=_},7389:(e,t,n)=>{"use strict";var r=n(1559),o=n(3112).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),p=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===l})).concat(o([[l,a.get(l)]])).map((function(e,t){var o,a;s===l?(o=c,a=u):(o=t===s?c:0,a=t===l?u:e.getLength());for(var p,f=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),i=n(8101),a=n(5162),s=n(3112),c=n(6835),l=n(1799),u=s.Map,p={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},f=o.isBrowser("IE <= 11"),d=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=a(e);n.MutationObserver&&!f?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||c(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,p):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),i=(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=i},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),i=n(1559),a=n(2014),s=n(3219),c=n(6515),l=n(1472),u=n(9095),p=n(9642),f=n(511),d=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),S=n(2999),_=n(298),x=n(5532),O=n(1539),C={Editor:p,EditorBlock:f,EditorState:g,CompositeDecorator:a,Entity:d,EntityInstance:m,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(835),convertFromRaw:S,convertToRaw:E,genKey:_,getDefaultKeyBinding:x,getVisibleSelectionRect:O};e.exports=C},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(i.x,i.y+r+10)}else y(n)||g(!1),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},w._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),c=this.props.tree.size-1,l=b(this.props.selection,n);return this.props.tree.map((function(f,d){var h=f.get("leaves");if(0===h.size)return null;var m=h.size-1,g=h.map((function(o,u){var p=a.encode(n,d,u),f=o.get("start"),h=o.get("end");return s.createElement(i,{key:p,offsetKey:p,block:t,start:f,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,h),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===c&&u===m})})).toArray(),y=f.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),S=a.encode(n,d,0),_=h.first().get("start"),x=h.last().get("end"),O=r.slice(_,x),C=t.getEntityAt(f.get("start")),k=p.getHTMLDirIfDifferent(u.getDirection(O),e.props.direction),M={contentState:e.props.contentState,decoratedText:O,dir:k,start:_,end:x,blockKey:n,entityKey:C,offsetKey:S};return s.createElement(w,o({},E,M,{key:S}),g)})).toArray()},w.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=f({"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(i.x,i.y+r+10)}else{y(n)||g(!1);var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&u.setTop(o,u.getTop(o)+r+10)}}}},m.render=function(){var e=this,t=this.props,n=t.block,a=t.blockRenderMap,u=t.blockRendererFn,p=t.blockStyleFn,f=t.contentState,d=t.decorator,h=t.editorKey,m=t.editorState,g=t.customStyleFn,y=t.customStyleMap,S=t.direction,_=t.forceSelection,x=t.selection,O=t.tree,C=null;n.children.size&&(C=n.children.reduce((function(t,n){var o=c.encode(n,0,0),s=f.getBlockForKey(n),d=w(s,u),g=d.CustomComponent||r,y=b(s,a),v=y.Element,S=y.wrapperTemplate,_=E(s,h,o,p,d,null),x=i({},e.props,{tree:m.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:s});return t.push(l.createElement(v,_,l.createElement(g,x))),!S||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(s,f)||function(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,u=n.reverse()[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=s.value;if(p.type!==t)break;r.push(p)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),d=f[0].key;n.push(l.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},f))}(S,v,t),t}),[]));var k=n.getKey(),M=c.encode(k,0,0),j=w(n,u),D=j.CustomComponent,A=null!=D?l.createElement(D,o({},this.props,{tree:m.getBlockTree(k),blockProps:j.customProps,offsetKey:M,block:n})):l.createElement(s,{block:n,children:C,contentState:f,customStyleFn:g,customStyleMap:y,decorator:d,direction:S,forceSelection:_,hasSelection:v(x,k),selection:x,tree:O});if(n.getParentKey())return A;var I=b(n,a).Element,T=E(n,h,M,p,j,this.wrapperRef);return l.createElement(I,T,A)},r}(l.Component);e.exports=S},1649:(e,t,n)=>{"use strict";var r=n(5879),o=n(6651),i=n(1446),a=n(2643),s=n(559),c=n(2211),l=n(7684),u=n(6389),p=n(8265),f=n(5396),d=n(1799),h=c.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:l,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=d(y).stopAndFlushMutations();y=null,m=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var s=i.decode(t),c=s.blockKey,l=s.decoratorKey,u=s.leafKey,p=n.getBlockTree(c).getIn([l,"leaves",u]),d=p.start,h=p.end,m=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:d,focusOffset:h,isBackward:!1}),g=f(r,m),y=r.getBlockForKey(c).getInlineStyleAt(d);r=o.replaceText(r,m,e,y,g),n=a.set(n,{currentContent:r})}));var s=p(n,u(e)).selectionState;e.restoreEditorDOM();var c=h?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(c,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 a=r.prototype;return a.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(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},a.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=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(),S=f(h.getDirectionMap()),_=v.getBlocksAsArray(),x=[],O=null,C=null,k=0;k<_.length;k++){var M=_[k],j=M.getKey(),D=M.getType(),A=n(M),I=void 0,T=void 0,L=void 0;A&&(I=A.component,T=A.props,L=A.editable);var N=y||S.get(j),P=c.encode(j,0,0),z={contentState:v,block:M,blockProps:T,blockStyleFn:r,customStyleMap:a,customStyleFn:u,decorator:E,direction:N,forceSelection:w,offsetKey:P,preventScroll:g,selection:b,tree:h.getBlockTree(j)},R=t.get(D)||t.get("unstyled"),B=R.wrapper,F=R.element||t.get("unstyled").element,U=M.getDepth(),H="";r&&(H=r(M)),"li"===F&&(H=p(H,d(D,U,C!==B||null===O||U>O,N)));var K=I||s,V={className:H,"data-block":!0,"data-editor":m,"data-offset-key":P,key:j};void 0!==L&&(V=i({},V,{contentEditable:L,suppressContentEditableWarning:!0}));var Y=l.createElement(F,V,l.createElement(K,o({},z,{key:j})));x.push({block:Y,wrapperTemplate:B,key:j,offsetKey:P}),O=B?M.getDepth():null,C=B}for(var q=[],W=0;W{"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),i=n(2643),a=n(8101),s=n(4878),c=n(7146),l=n(2069),u=n(5162),p=n(8959),f=n(1799),d={onDragEnd:function(e){e.exitCurrentMode(),h(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),u=e._latestEditorState,d=function(e,t){var n=null,r=null,o=s(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=f(n),r=f(r);var c=f(a(n));return l(t,c,r,c,r)}(t.nativeEvent,u);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=d){var g=n.getFiles();if(g.length>0){if(e.props.handleDroppedFiles&&p(e.props.handleDroppedFiles(d,g)))return;c(g,(function(t){t&&e.update(m(u,d,t))}))}else{var y=e._internalDrag?"internal":"external";e.props.handleDrop&&p(e.props.handleDrop(d,n,y))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")}(u,d)):e.update(m(u,d,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 i.push(e,r,"insert-fragment")}e.exports=d},7339:(e,t,n)=>{"use strict";var r=n(2211),o=n(6475),i=n(4053),a=n(3734),s=n(2233),c=n(1158),l=n(3124),u=n(9220),p=n(1250),f=n(5926),d=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:i,onCompositionStart:a,onCopy:s,onCut:c,onDragOver:l,onDragStart:u,onFocus:p,onInput:f,onKeyDown:d,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),i=n(1609),a=n(6835),s=n(2574),c=n(3605).setDraftEditorSelection,l=function(e){var t,n;function l(){for(var t,n,r,o,i=arguments.length,a=new Array(i),s=0;s{"use strict";var r=n(4603),o=n(3546),i=n(1446),a=n(3112),s=n(1609),c=n(2668),l=(a.List,function(e){var t,n;function a(){return e.apply(this,arguments)||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState,a=e.customStyleFn,l=e.customStyleMap,u=e.decorator,p=e.direction,f=e.forceSelection,d=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,c){var m=e.get("decoratorKey"),b=e.get("leaves"),w=b.size-1,E=b.map((function(e,n){var r=i.encode(g,c,n),u=e.get("start"),p=e.get("end");return s.createElement(o,{key:r,offsetKey:r,block:t,start:u,selection:d?h:null,forceSelection:f,text:y.slice(u,p),styleSet:t.getInlineStyleAt(u),customStyleMap:l,customStyleFn:a,isLast:m===v&&n===w})})).toArray();return m&&u?s.createElement(r,{block:t,children:E,contentState:n,decorator:u,decoratorKey:m,direction:p,leafSet:e,text:y,key:c}):E})).toArray();return s.createElement("div",{"data-offset-key":i.encode(g,0,0),className:c({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===p,"public/DraftStyleDefault/rtl":"RTL"===p})},b)},a}(s.Component));e.exports=l},7651:(e,t,n)=>{"use strict";var r=n(1609),o=n(2668),i=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=i.prototype;return a.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},a.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))},i}(r.Component);e.exports=i},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 i=n(1609),a=n(2211),s=n(6835),c=n(9345),l=a.isBrowser("IE <= 11"),u=function(e){var t,n;function a(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=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=a.prototype;return u.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;c(t)||s(!1);var r=t;return n?!function(e){return l?"\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},l?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return l?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},a}(i.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),i=n(3112),a=n(6835),s=n(638),c=(0,i.Map)(),l=s();function u(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var p={getLastCreatedEntityKey:function(){return u("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),p.__getLastCreatedEntityKey()},create:function(e,t,n){return u("DraftEntity.create","contentState.createEntity"),p.__create(e,t,n)},add:function(e){return u("DraftEntity.add","contentState.addEntity"),p.__add(e)},get:function(e){return u("DraftEntity.get","contentState.getEntity"),p.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,l=s()},mergeData:function(e,t){return u("DraftEntity.mergeData","contentState.mergeEntityData"),p.__mergeData(e,t)},replaceData:function(e,t){return u("DraftEntity.replaceData","contentState.replaceEntityData"),p.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return l},__create:function(e,t,n){return p.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return l=s(),c=c.set(l,e),l},__get:function(e){var t=c.get(e);return t||a(!1),t},__mergeData:function(e,t){var n=p.__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 i=n.split(" ");i=i.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),i=n(505),a=n(9887),s=n(175),c=n(3112),l=n(4976),u=n(5415),p=n(6835),f=n(5053),d=n(9585),h=n(9214),m=n(3765),g=c.OrderedSet,y={replaceText:function(e,t,n,o,i){var a=d(e,t),s=h(a,t),c=r.create({style:o||g(),entity:i||null});return u(s,s.getSelectionAfter(),n,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||p(!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=d(e,t),i=h(o,t);return l(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,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(),i=e.getBlockForKey(r),s=e.getBlockForKey(o);var c=t.getStartOffset(),l=t.getEndOffset(),u=i.getEntityAt(c),p=s.getEntityAt(l-1);if(r===o&&u&&u===p){var f=a(e.getEntityMap(),i,s,t,n);return h(e,f)}var m=d(e,t);return h(m,t)},splitBlock:function(e,t){var n=d(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 f(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return i(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),i=n(7479),a=n(835),s=n(298),c=n(7037),l=n(811),u=n(3112),p=n(1088),f=u.List,d=u.Repeat,h=l("draft_tree_data_support"),m=h?i:o,g={processHTML:function(e,t){return a(e,c,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=p(o);var a=s(),c={key:a,type:n,text:o,characterList:f(d(t,o.length))};if(h&&0!==i){var l=i-1;c=function(e){for(var t=1;t{"use strict";var r="['‘’]",o="\\s|(?![_])"+n(5310).getPunctuation(),i=new RegExp("^(?:"+o+")*(?:"+r+"|(?!"+o+").)*(?:(?!"+o+").)"),a=new RegExp("(?:(?!"+o+").)(?:"+r+"|(?!"+o+").)*(?:"+o+")*$");function s(e,t){var n=t?a.exec(e):i.exec(e);return n?n[0]:e}var c={getBackward:function(e){return s(e,!0)},getForward:function(e){return s(e,!1)}};e.exports=c},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 l.children,n.push(l));var i=o.children;Array.isArray(i)||a(!1),t=t.concat([].concat(i.reverse()))}var c,l}(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),a=e.depth||0,c=r({},e,{children:[]});if(o){var l=n[0];if(null==l&&0===a)t.push(c);else if(null==l||l.depth=a;)n.shift(),l=n[0];a>0?l.children.push(c):t.push(c)}}else t.push(c)})),r({},e,{blocks:t})}};e.exports=c},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 i=e.getNextSiblingKey();return(null==i||t.get(i).getPrevSiblingKey()===n)&&!(null!==i&&null!==o&&o===i||""!=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 i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var c=a.map((function(t){return e.get(t)})).find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.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),i=n(3112),a=n(1799),s=i.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new o;var n=e.getBlockMap(),c=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),l=s(n.keySeq().zip(c));return null!=t&&i.is(t,l)?t:l}};e.exports=c},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 c({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 i=s.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),c=e.getCurrentContent(),l=e.getUndoStack(),u=n;a!==c.getSelectionAfter()||function(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(l=l.push(c),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",c.getSelectionBefore()));var p=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(p=null);var d={currentContent:u,directionMap:i,undoStack:l,redoStack:f(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:p};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,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(),i=s.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,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 i.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),i=r.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:o};e.exports=a},6670:()=>{},353:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),i=n(5763),a=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(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:t});if(c!==n)return o.push(e,c,"remove-range")}var l=s.tryToRemoveBlockStyle(e);return l?o.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset(){"use strict";var r=n(6651),o=n(2643),i=n(175),a=n(1799),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var l=n.getAnchorKey(),u=t.getBlockForKey(l).getLength();if(u===n.getAnchorOffset()){var p=t.getKeyAfter(l);if(null==p)return e;c=n.set("focusKey",p).set("focusOffset",0)}else c=n.set("focusOffset",u)}else c=n;c=a(c),s=i(t,c);var f=r.removeRange(t,c,"forward");return f===t?e:o.push(e,f,"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=c},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 i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=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(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},3557:(e,t,n)=>{"use strict";var r=n(1559);e.exports=function(e,t,n,o){for(var i=t,a=e.getCharacterList();i{"use strict";var r=n(3557),o=n(3112);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),l=t.getEndOffset(),u=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(o.OrderedMap([[c,i.get(c)]])).map((function(e,t){var o=t===a?s:0,i=t===c?l:e.getLength();return r(e,o,i,n)}));return e.merge({blockMap:i.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),i=n(7479),a=n(9808),s=n(130),c=n(2007),l=n(6835),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(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=[],c={},p={},f=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);p[o]||(p[o]=r,n[o]="".concat(f),f++)})),function(e,t,n,a){if(e instanceof o)n.push(u(e,t));else{e instanceof i||l(!1);var s=e.getParentKey(),c=a[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(N).some((function(n){e.classList.contains(n)&&(t=N[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 p(t.href),!0}catch(e){return!1}},F=function(e){if(!_(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},U=function(e,t){if(!S(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){A.indexOf(r)>=0?e.add("BOLD"):I.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},H=function(e){return"ul"===e||"ol"===e},K=function(){function e(e,t){i(this,"characterList",y()),i(this,"currentBlockType","unstyled"),i(this,"currentDepth",0),i(this,"currentEntity",null),i(this,"currentText",""),i(this,"wrapper",null),i(this,"blockConfigs",[]),i(this,"contentBlocks",[]),i(this,"entityMap",u),i(this,"blockTypeMap",void 0),i(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&&(x?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||d(),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(C," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){E(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(_(e)){var n=e,r={};L.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={};T.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new p(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 i=e[r];i.parent=t,i.prevSibling=r>0?e[r-1].key:null,i.nextSibling=r2&&void 0!==arguments[2]?arguments[2]:l,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(e=e.trim().replace(O,"").replace(M," ").replace(j,"").replace(D,""));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 K(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?l.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!v)return function(e,t){return E(e.map((function(e){var n=new i(S(e,t));return[n.getKey(),n]})))}(n?l.fromRawTreeStateToRawState(e).blocks:o,t);var s=function(e,t){return e.map(x).reduce((function(n,o,i){Array.isArray(o.children)||y(!1);var s=o.children.map(x),c=new a(r({},S(o,t),{prevSibling:0===i?null:e[i-1].key,nextSibling:i===e.length-1?null:e[i+1].key,children:b(s.map((function(e){return e.key})))}));n=n.set(c.getKey(),c);for(var l=O([],s,c);l.length>0;){var u=l.pop(),p=u.parentRef,f=p.getChildKeys(),d=f.indexOf(u.key),h=Array.isArray(u.children);if(!h){h||y(!1);break}var m=u.children.map(x),g=new a(r({},S(u,t),{parent:p.getKey(),children:b(m.map((function(e){return e.key}))),prevSibling:0===d?null:f.get(d-1),nextSibling:d===f.size-1?null:f.get(d+1)}));n=n.set(g.getKey(),g),l=O(l,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,i=o+r(e,t.offset,t.length).length,a=o;a{"use strict";var r=n(9031),o=n(3112).OrderedSet,i=r.substr,a=o();e.exports=function(e,t){var n=Array(e.length).fill(a);return t&&t.forEach((function(t){for(var r=i(e,0,t.offset).length,o=r+i(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),i=n(2211),a=n(5396),s=n(8959),c=n(6500),l=n(1799),u=n(5258),p=i.isBrowser("Firefox");function f(e,t,n,i,a){var s=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,i);return o.push(e,s,"insert-characters",a)}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 i=n.getSelection(),d=i.getStartOffset(),h=i.getAnchorKey();if(!i.isCollapsed())return t.preventDefault(),void e.update(f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));var m,g=f(n,r,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),y=!1;if(y||(y=c(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"),i=o+(o>=d?r.length:0),a=t.get("end"),s=a+(a>=d?r.length:0),c=n.get("start"),l=n.get("end"),u=n.get("decoratorKey");return t.get("decoratorKey")!==u||t.get("leaves").size!==n.get("leaves").size||i!==c||s!==l||null!=u&&l-c!=a-o}))}if(y||(m=r,y=p&&("'"==m||"/"==m)),y||(y=l(g.getDirectionMap()).get(h)!==l(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),i=n(2533);e.exports=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&i(n)===n.body){var a=n.defaultView.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,l=c.getSelection();if(l.getHasFocus()){var u=l.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(c,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),i=n(2394),a=n(9659),s=n(1489),c=n(1879);e.exports=function(e,t){var n,l=e._latestEditorState,u=l.getSelection(),p=t.target;if(u.isCollapsed())t.preventDefault();else{if(c(p)){var f=p;n=s(i.getScrollParent(f))}var d=a(l);e.setClipboard(d),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")}(l))}),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,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},5926:(e,t,n)=>{"use strict";var r=n(6651),o=n(1446),i=n(2643),a=n(2211),s=n(2542).notEmptyKey,c=n(8101),l=n(1274),u=n(1799),p=a.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(),a=n.anchorNode,f=n.isCollapsed,d=(null==a?void 0:a.nodeType)!==Node.TEXT_NODE&&(null==a?void 0:a.nodeType)!==Node.ELEMENT_NODE;if(null!=a&&!d){if(a.nodeType===Node.TEXT_NODE&&(null!==a.previousSibling||null!==a.nextSibling)){var h=a.parentNode;if(null==h)return;a.nodeValue=h.textContent;for(var m=h.firstChild;null!=m;m=m.nextSibling)m!==a&&h.removeChild(m)}var g=a.textContent,y=e._latestEditorState,v=u(c(a)),b=o.decode(v),w=b.blockKey,E=b.decoratorKey,S=b.leafKey,_=y.getBlockTree(w).getIn([E,"leaves",S]),x=_.start,O=_.end,C=y.getCurrentContent(),k=C.getBlockForKey(w),M=k.getText().slice(x,O);if(g.endsWith("\n\n")&&(g=g.slice(0,-1)),g!==M){var j,D,A,I,T=y.getSelection(),L=T.merge({anchorOffset:x,focusOffset:O,isBackward:!1}),N=k.getEntityAt(x),P=s(N)?C.getEntity(N):null,z="MUTABLE"===(null!=P?P.getMutability():null),R=z?"spellcheck-change":"apply-entity",B=r.replaceText(C,L,g,k.getInlineStyleAt(x),z?k.getEntityAt(x):null);if(p)j=n.anchorOffset,D=n.focusOffset,I=(A=x+Math.min(j,D))+Math.abs(j-D),j=A,D=I;else{var F=g.length-M.length;A=T.getStartOffset(),I=T.getEndOffset(),j=f?I+F:A,D=I+F}var U=B.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:T.merge({anchorOffset:j,focusOffset:D})});e.update(i.push(y,U,R))}else{var H=t.nativeEvent.inputType;if(H){var K=function(e,t){return"deleteContentBackward"===e?l(t):t}(H,y);if(K!==y)return e.restoreEditorDOM(),void e.update(K)}}}}},9393:(e,t,n)=>{"use strict";var r=n(6651),o=n(2643),i=n(9861),a=n(559),s=n(9213),c=n(2211),l=n(8959),u=n(9792),p=n(8238),f=n(3690),d=n(7950),h=n(7084),m=n(2267),g=n(1274),y=n(3918),v=n(8578),b=n(6947),w=i.isOptionKeyCommand,E=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;function c(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&l(e.props.handleReturn(t,i)))return;break;case a.ESC:if(t.preventDefault(),c("onEscape"))return;break;case a.TAB:if(c("onTab"))return;break;case a.UP:if(c("onUpArrow"))return;break;case a.RIGHT:if(c("onRightArrow"))return;break;case a.DOWN:if(c("onDownArrow"))return;break;case a.LEFT:if(c("onLeftArrow"))return;break;case a.SPACE:E&&w(t)&&t.preventDefault()}var S=e.props.keyBindingFn(t);if(null!=S&&""!==S)if("undo"!==S){if(t.preventDefault(),!e.props.handleKeyCommand||!l(e.props.handleKeyCommand(S,i,t.timeStamp))){var _=function(e,t,n){switch(e){case"redo":return o.redo(t);case"delete":return y(t);case"delete-word":return f(t);case"backspace":return g(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return u(t,n);case"split-block":return d(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}}(S,i,t);_!==i&&e.update(_)}}else b(t,i,e.update);else if(n===a.SPACE&&E&&w(t)){var x=r.replaceText(i.getCurrentContent(),i.getSelection()," ");e.update(o.push(i,x,"insert-characters"))}}},3781:(e,t,n)=>{"use strict";var r=n(9185),o=n(1559),i=n(6148),a=n(6651),s=n(5335),c=n(2643),l=n(353),u=n(5396),p=n(7146),f=n(8959),d=n(7137);function h(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var m=n.getFiles(),g=n.getText();if(m.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(m)))return;return void p(m,(function(t){if(t=t||g){var n=e._latestEditorState,i=d(t),p=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),f=l.getCurrentBlockType(n),h=s.processText(i,p,f),m=r.createFromArray(h),y=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),m);e.update(c.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||!f(e.props.handlePastedText(v,b,w))){if(v&&(y=d(v)),!e.props.stripPastedStyles){var S,_=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&_){if(-1!==(null===(S=b)||void 0===S?void 0:S.indexOf(e.getEditorKey()))||1===y.length&&1===_.size&&_.first().getText()===v)return void e.update(h(e._latestEditorState,_))}else if(_&&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,_))return void e.update(h(e._latestEditorState,_));if(b){var x=s.processHTML(b,e.props.blockRenderMap);if(x){var O=x.contentBlocks,C=x.entityMap;if(O){var k=r.createFromArray(O);return void e.update(h(e._latestEditorState,k,C))}}}e.setClipboard(null)}if(y.length){var M=o.create({style:w.getCurrentInlineStyle(),entity:u(w.getCurrentContent(),w.getSelection())}),j=l.getCurrentBlockType(w),D=s.processText(y,M,j),A=r.createFromArray(D);e.update(h(e._latestEditorState,A))}}}},7684:(e,t,n)=>{"use strict";var r=n(7565),o=n(2643),i=n(6389),a=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=a(n,i(e)),c=s.selectionState;c!==n.getSelection()&&(n=s.needsRecovery?o.forceSelection(n,c):o.acceptSelection(n,c),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(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})})),n}},2007:(e,t,n)=>{"use strict";var r=n(9031),o=n(4814),i=function(e,t){return e===t},a=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=[],c=t.map((function(e){return e.has(n)})).toList();return o(c,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.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),i=n(5488),a=n(6835);function s(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(e.setStart(p,h),!s(i(e),n))break;l=p,u=h}if(-1===h||0===p.childNodes.length)break;f=c(p=p.childNodes[h])}return e.setStart(l,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,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),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),i=n(6835);function a(e,t,n,a,s,c,l){var u=n.getStartOffset(),p=n.getEndOffset(),f=e.__get(s).getMutability(),d=l?u:p;if("MUTABLE"===f)return n;var h=o(t,s).filter((function(e){return d<=e.end&&d>=e.start}));1!=h.length&&i(!1);var m=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});c||(l?p=m.end:u=m.start);var g=r.getRemovalRange(u,p,t.getText().slice(m.start,m.end),m.start,a);return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),l=n.getEntityAt(s-1);if(!c&&!l)return r;var u=r;if(c&&c===l)u=a(e,t,u,o,c,!0,!0);else if(c&&l){var p=a(e,t,u,o,c,!1,!0),f=a(e,n,u,o,l,!1,!1);u=u.merge({anchorOffset:p.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var d=a(e,t,u,o,c,!1,!0);u=u.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(l){var h=a(e,n,u,o,l,!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(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),l=c.keySeq(),u=l.indexOf(n),p=l.indexOf(a)+1;return r(c.slice(u,p).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?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),i=n(2211),a=i.isPlatform("Mac OS X"),s=a&&i.isBrowser("Firefox < 29"),c=r.hasCommandModifier,l=r.isCtrlKeyCommand;function u(e){return a&&e.altKey||l(e)}e.exports=function(e){switch(e.keyCode){case 66:return c(e)?"bold":null;case 68:return l(e)?"delete":null;case 72:return l(e)?"backspace":null;case 73:return c(e)?"italic":null;case 74:return c(e)?"code":null;case 75:return a&&l(e)?"secondary-cut":null;case 77:case 79:return l(e)?"split-block":null;case 84:return a&&l(e)?"transpose-characters":null;case 85:return c(e)?"underline":null;case 87:return a&&l(e)?"backspace-word":null;case 89:return l(e)?a?"secondary-paste":"redo":null;case 90:return function(e){return c(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return!a&&e.shiftKey?null:u(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return c(e)&&a?"backspace-to-start-of-line":u(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&c(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&c(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,i=n.anchorOffset,a=n.focusNode,s=n.focusOffset;return 0===n.rangeCount||null==o||null==a?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,o,i,a,s)}},8564:(e,t,n)=>{"use strict";var r=n(8101),o=n(2626),i=n(2069),a=n(6835),s=n(9345),c=n(1799);function l(e,t,n){var i=t,l=r(i);if(null!=l||e&&(e===i||e.firstChild===i)||a(!1),e===i&&(i=i.firstChild,s(i)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),n>0&&(n=i.childNodes.length)),0===n){var p=null;if(null!=l)p=l;else{var f=function(e){for(;e.firstChild&&(s(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(i);p=c(o(f))}return{key:p,offset:0}}var d=i.childNodes[n-1],h=null,m=null;if(o(d)){var g=function(e){for(;e.lastChild&&(s(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(d);h=c(o(g)),m=u(g)}else h=c(l),m=u(d);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,a,s){var u=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(u&&p)return{selectionState:i(e,c(r(n)),o,c(r(a)),s),needsRecovery:!1};var f=null,d=null,h=!0;return u?(f={key:c(r(n)),offset:o},d=l(t,a,s)):p?(d={key:c(r(a)),offset:s},f=l(t,n,o)):(f=l(t,n,o),d=l(t,a,s),n===a&&o===s&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,f.key,f.offset,d.key,d.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(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1))!==e.getBlockForKey(r).getEntityAt(i)?null:o(e.getEntityMap(),n):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return n=s===c.getLength()?null:c.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 i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.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,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var l=1;l{"use strict";var r=n(2211),o=n(6835),i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1)}:function(e){return Array.from(e.getClientRects())};e.exports=i},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),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&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 i=0;i{"use strict";var r=n(6835),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,t){var a=0,s=[];e.forEach((function(c){!function(e,t){if(!n.g.FileReader||e.type&&!(e.type in i))t("");else{if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void t(a)}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)}}(c,(function(n){a++,n&&s.push(n.slice(0,5e3)),a==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,i,a){var s=o(e.getSelection());if(!t||!i)return s;var c=r.decode(t),l=c.blockKey,u=e.getBlockTree(l),p=u&&u.getIn([c.decoratorKey,"leaves",c.leafKey]),f=r.decode(i),d=f.blockKey,h=e.getBlockTree(d),m=h&&h.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!p||!m)return s;var g=p.get("start"),y=m.get("start"),v=p?g+n:null,b=m?y+a:null;if(s.getAnchorKey()===l&&s.getAnchorOffset()===v&&s.getFocusKey()===d&&s.getFocusOffset()===b)return s;var w=!1;if(l===d){var E=p.get("end"),S=m.get("end");w=y===g&&S===E?a{"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),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?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),i=n(3112),a=n(3686),s=n(6835),c=n(1199),l=i.List;e.exports=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||s(!1);var u=e.getBlockMap(),p=c(n),f=t.getStartKey(),d=t.getStartOffset(),h=u.get(f);return h instanceof o&&(h.getChildKeys().isEmpty()||s(!1)),1===p.size?function(e,t,n,r,o,i){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",c=n.get(o),l=c.getText(),u=c.getCharacterList(),p=o,f=i+r.getText().length,d=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(c.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var h=c.getType();l&&"unstyled"===h&&(h=r.getType());var m=c.merge({text:l.slice(0,i)+r.getText()+l.slice(i),characterList:a(u,r.getCharacterList(),i),type:h,data:d});return e.merge({blockMap:n.set(o,m),selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})}(e,t,u,p.first(),f,d,i):function(e,t,n,i,a,s){var c=n.first()instanceof o,u=[],p=i.size,f=n.get(a),d=i.first(),h=i.last(),m=h.getLength(),g=h.getKey(),y=c&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(y?u.push(e):u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,s,i)),i.slice(y?0:1,p-1).forEach((function(e){return u.push(e)})),u.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,s,i))):u.push(e)}));var v=r.createFromArray(u);return c&&(v=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var p=e.get(s).getChildKeys(),f=p.indexOf(o)+1,d=p.toArray();d.splice.apply(d,[f,0].concat(c)),t.setIn([s,"children"],l(d))}}))}(v,0,f,d)),e.merge({blockMap:v,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:m,focusKey:g,focusOffset:m,isBackward:!1})})}(e,t,u,p,f,d)}},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),i=r.slice(n);r=o.concat(t,i).toList()}return r}},5415:(e,t,n)=>{"use strict";var r=n(3112),o=n(3686),i=n(6835),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1);var s=null;if(null!=n&&(s=n.length),null==s||0===s)return e;var c=e.getBlockMap(),l=t.getStartKey(),u=t.getStartOffset(),p=c.get(l),f=p.getText(),d=p.merge({text:f.slice(0,u)+n+f.slice(u,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),u)}),h=u+s;return e.merge({blockMap:c.set(l,d),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(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!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),i=n(8564),a=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 a(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=o(r),i(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),i=n(9097),a=n(4191);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(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),i=n(7831),a=n(4191);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(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),i=n(9097),a=n(4191);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(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),i=n(7831),a=n(4191);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(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),i=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 a,s,c=t.getAnchorKey(),l=e.getCurrentContent(),u=l.getBlockForKey(c).getLength();if(u<=1)return e;n===u?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(l,a),f=r.removeRange(l,a,"backward"),d=f.getSelectionAfter(),h=d.getAnchorOffset()-1,m=d.merge({anchorOffset:h,focusOffset:h}),g=r.replaceWithFragment(f,m,p),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 i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},5053:(e,t,n)=>{"use strict";var r=n(3112).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},4446:(e,t,n)=>{"use strict";var r=n(7479),o=n(967),i=n(3112),a=n(6835),s=i.OrderedMap,c=i.List,l=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 i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),p=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),d=n.getParentKey(),h=i?n.getNextSiblingKey():s,m=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){l(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),l(f,e,(function(e){return e.merge({nextSibling:p})})),l(p,e,(function(e){return e.merge({prevSibling:f})})),l(h,e,(function(e){return e.merge({prevSibling:a})})),l(m,e,(function(e){return e.merge({nextSibling:a})})),l(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})})),l(a,e,(function(e){return e.merge({nextSibling:h,prevSibling:m,parent:d})}))}))};e.exports=function(e,t,n,i){"replace"===i&&a(!1);var c=n.getKey(),l=t.getKey();l===c&&a(!1);var p=e.getBlockMap(),f=t instanceof r,d=[t],h=p.delete(l);f&&(d=[],h=p.withMutations((function(e){var n=t.getNextSiblingKey(),r=o(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===l})).takeWhile((function(e){var t=e.getKey(),o=t===l,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){d.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=d.map((function(e){return[e.getKey(),e]})),v=s();if("before"===i){var b=e.getBlockBefore(c);b&&b.getKey()===t.getKey()&&a(!1),v=m.concat([].concat(y,[[c,n]]),g).toOrderedMap()}else if("after"===i){var w=e.getBlockAfter(c);w&&w.getKey()===l&&a(!1),v=m.concat([[c,n]].concat(y),g).toOrderedMap()}return e.merge({blockMap:u(v,t,n,i,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:l,focusKey:l})})}},9097:(e,t,n)=>{"use strict";n(2775),e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);null==c?a=o:(a=c,s=r.getBlockForKey(c).getText().length)}else s=i-t;return n.merge({focusKey:a,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(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},1199:(e,t,n)=>{"use strict";var r=n(7479),o=n(298),i=n(3112).OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),l=r.getChildKeys(),u=r.getParentKey(),p=o();if(n[a]=p,s&&(e.get(s)?e.setIn([s,"prevSibling"],p):e.setIn([a,"nextSibling"],null)),c&&(e.get(c)?e.setIn([c,"nextSibling"],p):e.setIn([a,"prevSibling"],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),p))}else e.setIn([a,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],p),e.setIn([a,"prevSibling"],n[t.getKey()])),t=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],p):e.setIn([a,"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 i(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),i=n(6835);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1),r}(a,u,n),d=f.start,h=f.end;d{"use strict";var r=n(7479),o=n(967),i=n(3112),a=(i.List,i.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=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},l=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,i=e.getBlockMap(),p=t.getStartKey(),f=t.getStartOffset(),d=t.getEndKey(),h=t.getEndOffset(),m=i.get(p),g=i.get(d),y=m instanceof r,v=[];if(y){var b=g.getChildKeys(),w=c(d,i);g.getNextSiblingKey()&&(v=v.concat(w)),b.isEmpty()||(v=v.concat(w.concat([d]))),v=v.concat(c(o(g,i),i))}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(),f,h):m.getCharacterList().slice(0,f).concat(g.getCharacterList().slice(h));var E=m.merge({text:m.getText().slice(0,f)+g.getText().slice(h),characterList:n}),S=y&&0===f&&0===h&&g.getParentKey()===p&&null==g.getPrevSiblingKey()?a([[p,null]]):i.toSeq().skipUntil((function(e,t){return t===p})).takeUntil((function(e,t){return t===d})).filter((function(e,t){return-1===v.indexOf(t)})).concat(a([[d,null]])).map((function(e,t){return t===p?E:null})),_=i.merge(S).filter((function(e){return!!e}));return y&&m!==g&&(_=function(e,t,n,r){return e.withMutations((function(i){if(s(t.getKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})),s(n.getKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})),c(t.getKey(),r).forEach((function(e){return s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}))})),s(t.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:l(e,i,r)})})),s(n.getNextSiblingKey(),i,(function(e){return e.merge({prevSibling:u(e,i,r)})})),s(n.getPrevSiblingKey(),i,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(e){s(e,i,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return i.get(e)})),nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=o(e,t);r&&t.get(r);){var i=t.get(r);n.push(r),r=i.getParentKey()?o(i,t):null}return n}(n,r).forEach((function(e){return s(e,i,(function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var a=t.getPrevSiblingKey();s(n.getKey(),i,(function(e){return e.merge({prevSibling:a})})),s(a,i,(function(e){return e.merge({nextSibling:n.getKey()})}));var p=a?e.get(a):null,f=p?p.getParentKey():null;if(t.getChildKeys().forEach((function(e){s(e,i,(function(e){return e.merge({parent:f})}))})),null!=f){var d=e.get(f);s(f,i,(function(e){return e.merge({children:d.getChildKeys().concat(t.getChildKeys())})}))}s(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),i,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))}(_,m,g,i)),e.merge({blockMap:_,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,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 i=e.getSelection(),a=e.getCurrentContent(),s=i,c=i.getAnchorKey(),l=i.getFocusKey(),u=a.getBlockForKey(c);if(o&&"forward"===n&&c!==l)return a;if(i.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(c).getLength()){var p=a.getBlockForKey(u.nextSibling);if(!p||0===p.getLength())return a}}else if(e.isSelectionAtStartOfContent())return a;if((s=t(e))===i)return a}return r.removeRange(a,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),i=n(2211),a=n(2462),s=n(2533),c=n(4878),l=n(6835),u=n(9345),p=i.isBrowser("IE");function f(e,t){if(!e)return"[empty]";var n=d(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(u(n)||l(!1),n.outerHTML)}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return c(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 i=e.childNodes,a=0;am(t)&&o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===i&&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:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var l=e.getRangeAt(0);l.setEnd(t,n),e.addRange(l.cloneRange())}}function y(e,t,n,i){var a=c(t).createRange();if(n>m(t)&&(o.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),r.handleExtensionCausedError()),a.setStart(t,n),p)try{e.addRange(a)}catch(e){}else e.addRange(a)}e.exports={setDraftEditorSelection:function(e,t,n,r,o){var i=c(t);if(a(i.documentElement,t)){var s=i.defaultView.getSelection(),l=e.getAnchorKey(),u=e.getAnchorOffset(),p=e.getFocusKey(),f=e.getFocusOffset(),d=e.getIsBackward();if(!s.extend&&d){var h=l,m=u;l=p,u=f,p=h,f=m,d=!1}var v=l===n&&r<=u&&o>=u,b=p===n&&r<=f&&o>=f;if(v&&b)return s.removeAllRanges(),y(s,t,u-r,e),void g(s,t,f-r,e);if(d){if(b&&(s.removeAllRanges(),y(s,t,f-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,f-r,e)}},addFocusToSelection:g}},3765:(e,t,n)=>{"use strict";var r=n(7479),o=n(298),i=n(3112),a=n(6835),s=n(5053),c=i.List,l=i.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()||a(!1);var n=t.getAnchorKey(),i=e.getBlockMap(),p=i.get(n),f=p.getText();if(!f){var d=p.getType();if("unordered-list-item"===d||"ordered-list-item"===d)return s(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var h=t.getAnchorOffset(),m=p.getCharacterList(),g=o(),y=p instanceof r,v=p.merge({text:f.slice(0,h),characterList:m.slice(0,h)}),b=v.merge({key:g,text:f.slice(h),characterList:m.slice(h),data:l()}),w=i.toSeq().takeUntil((function(e){return e===p})),E=i.toSeq().skipUntil((function(e){return e===p})).rest(),S=w.concat([[n,v],[g,b]],E).toOrderedMap();return y&&(p.getChildKeys().isEmpty()||a(!1),S=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,i=t.toArray();return i.splice(n,0,o),e.merge({children:c(i)})})),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})}))}))}(S,v,b)),e.merge({blockMap:S,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 i(e,t,n){var r=!0;return n>0&&n').concat(n,"");if("LINK"===o.type){var a=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 a=[],s=Array.from(e.text);if(s.length>0)for(var c,l=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 l(e,t,n,r){var o=[],i=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,i=e,a=t.trigger||"#",s=t.separator||" ";i.length>0&&o>=0;)if(i[0]===a?(o=0,r=0,i=i.substr(a.length)):(o=i.indexOf(s+a))>=0&&(i=i.substr(o+(s+a).length),r+=o+s.length),o>=0){var c=i.indexOf(s)>=0?i.indexOf(s):i.length,l=i.substr(0,c);l&&l.length>0&&n.push({offset:r,length:l.length+a.length,type:"HASHTAG"}),r+=a.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(i,"")),i}(e,t,n,r);0===l&&(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,i,a){var s,c=[],p=[];return e.forEach((function(e){var f=!1;if(s?s.type!==e.type?(c.push("\n")),c.push("<".concat(n(e.type),">\n"))):s.depth===e.depth?p&&p.length>0&&(c.push(u(p,t,o,i,a)),p=[]):(f=!0,p.push(e)):c.push("<".concat(n(e.type),">\n")),!f){c.push(""),c.push(l(e,t,o,a)),c.push("\n"),s=e}})),p&&p.length>0&&c.push(u(p,t,o,i,a)),c.push("\n")),c.join("")}return function(e,t,o,i){var s=[];if(e){var c=e.blocks,p=e.entityMap;if(c&&c.length>0){var f=[];if(c.forEach((function(e){if("unordered-list-item"===(h=e.type)||"ordered-list-item"===h)f.push(e);else{if(f.length>0){var c=u(f,p,t,i);s.push(c),f=[]}var d=function(e,t,o,i,s){var c=[];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))c.push(a(t,e.entityRanges[0].key,void 0,s));else{var u=n(e.type);if(u){c.push("<".concat(u));var p=r(e.data);p&&c.push(' style="'.concat(p,'"')),i&&c.push(' dir = "auto"'),c.push(">"),c.push(l(e,t,o,s)),c.push(""))}}return c.push("\n"),c.join("")}(e,p,t,o,i);s.push(d)}var h})),f.length>0){var d=u(f,p,t,o,i);s.push(d),f=[]}}}return s.join("")}}()},6148:(e,t,n)=>{"use strict";var r=n(7066),o=n(4655),i=n(7546),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var l=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(a,"\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=l},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),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+i+a+"]"),c=new RegExp("["+i+a+"]");function l(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=l(e);return null==t?r.NEUTRAL:c.exec(t)?r.RTL:r.LTR}function p(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function f(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1),p(e,t)}var d={firstStrongChar:l,firstStrongCharDir:u,resolveBlockDir:p,getDirection:f,isDirectionLTR:function(e,t){return f(e,t)===r.LTR},isDirectionRTL:function(e,t){return f(e,t)===r.RTL}};e.exports=d},7329:(e,t,n)=>{"use strict";var r=n(6835),o="LTR",i=null;function a(e){return e===o||"RTL"===e}function s(e){return a(e)||r(!1),e===o?"ltr":"rtl"}function c(e){i=e}var l={NEUTRAL:"NEUTRAL",LTR:o,RTL:"RTL",isStrong:a,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:s(e)},setGlobalDir:c,initGlobalDir:function(){c(o)},getGlobalDir:function(){return i||this.initGlobalDir(),i||r(!1),i}};e.exports=l},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),i=n(7329),a=n(6835),s=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?i.isStrong(e)||a(!1):e=i.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 i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(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&&i{"use strict";var r=n(6267),o=n(4462),i=n(9194),a=n(8824);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var l={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,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=i(l,a)},6267:(e,t,n)=>{"use strict";var r,o="Unknown",i=(new(n(2603))).getResult(),a=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(i.browser.version),s={browserArchitecture:i.cpu.architecture||o,browserFullVersion:i.browser.version||o,browserMinorVersion:a.minor||o,browserName:i.browser.name||o,browserVersion:i.browser.major||o,deviceName:i.device.model||o,engineName:i.engine.name||o,engineVersion:i.engine.version||o,platformArchitecture:i.cpu.architecture||o,platformName:(r=i.os.name,{"Mac OS":"Mac OS X"}[r]||r||o),platformVersion:i.os.version||o,platformFullVersion:i.os.version||o};e.exports=s},4462:(e,t,n)=>{"use strict";var r=n(6835),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function l(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return u(r,s);case"<=":return-1===(n=v(r,s))||0===n;case">=":return p(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,i=parseInt(r[o],10);return d(i)&&(r[o]=i+1+""),p(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 p(e,t){var n=v(e,t);return 1===n||0===n}function f(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 d(e){return!isNaN(e)&&isFinite(e)}function h(e){return!f(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(a);if(n.length>0&&n.length<=2||r(!1),1===n.length)return l(n[0],t);var o=n[0],i=n[1];return h(o)&&h(i)||r(!1),l(">="+o,t)&&l("<="+i,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),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),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 i(e){return null==e?e:String(e)}e.exports=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(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 i in e)t.call(e,i)&&(o[i]=n.call(r,e[i],i,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},668:(e,t,n)=>{"use strict";e.exports=n(6497),e.exports=n(4680)},4680:(e,t,n)=>{"use strict";n.d(t,{BuilderProvider:()=>ke,FormBuilder:()=>Ho,GenericInput:()=>It,isObject:()=>ne,useBuilder:()=>Pe,useBuilderContext:()=>Me,validFieldProps:()=>le,withLabel:()=>Ge});var r=n(1609),o=n.n(r);const i=window.wp.data;var a=n(7723),s=n(3867),c=n.n(s),l=n(1455),u=n.n(l);const p=window.lodash,f=window.wp.date,d=window.moment;var h=n.n(d),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),S=n(4417),_=n(1330),x=n(6253),O=n.n(x),C=n(3622),k=n.n(C);const M=window.wp.mediaUtils;var j,D=n(3291),A=n.n(D),I=n(1336),T=new Uint8Array(16);function L(){if(!j&&!(j="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 j(T)}const N=/^(?:[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=[],z=0;z<256;++z)P.push((z+256).toString(16).substr(1));const R=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&&N.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},B=function(e,t,n){var r=(e=e||{}).random||(e.rng||L)();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 R(r)};var F=n(726);F.domToReact,F.htmlToDOM,F.attributesToProps,F.Comment,F.Element,F.ProcessingInstruction,F.Text;const U=F;var H=n(5798),K=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 Y(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 q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nt.priority?1:-1}))},se=function(e,t){var n=t,r=e;if(!J(e)){e.persist&&e.persist();var o=(e=e.target||e.currentTarget).type,i=e.value,a=e.checked,s=e.multiple;switch(n=t||e.name,o){case"number":case"range":r=parseFloat(i);break;case"checkbox":r=s?i:a;break;default:r=i}}return{field:n,val:r}},ce=function(e,t,n){for(var r=(0,p.clone)(e),o=r,i=0,a=(0,p.toPath)(t);it},gte:function(e,t,n){return de(n,e)>=t},lt:function(e,t,n){return de(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 ut=function(e){var t=Me(),n=e.fields,o=e.onChange,i=e.index,a=e.parent,s=(u=xe((0,r.useState)(e.isCollapsed),2))[0],c=u[1],l=lt(ut),u=(u=(null==(u=null==(u=t.values)||null==(u=u[a])?void 0:u[i])?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([a,i,"isCollapsed"],s)}),[s]),(0,r.createElement)("div",{className:"wprf-repeater-field"},(0,r.createElement)("div",{className:"wprf-repeater-field-title",onClick:function(){return c(!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(i,"-").concat(t)},e,{id:"field-".concat(l,"-").concat(i,"-").concat(t),index:i,parenttype:"repeater",parent:a,onChange:function(e){return o(e,i)}}))}))))};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[i++]}},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.")}(l);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=a}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-checkbox-wrapper wprf-control"},(0,r.createElement)(Be,null,l.map((function(n){return(0,r.createElement)(Fe,{key:n.value,column:u.column},(0,r.createElement)(St,Et(Et({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?a:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(It,Et(Et({},e),{},{type:"checkbox"}))})),xt=function(e){if(!e.type||0===e.type.length)throw console.error(e),new Error((0,a.__)("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)(nt,e);case"copy-to-clipboard":return(0,r.createElement)(at,e);case"message":return(0,r.createElement)(Pt,e);case"select":return(0,r.createElement)(Oo,e);case"checkbox-select":return(0,r.createElement)(et,e);case"select-async":return(0,r.createElement)(Co,e);case"slider":return(0,r.createElement)(ko,e);case"group":return(0,r.createElement)(Mt,e);case"radio-card":return(0,r.createElement)(Ut,e);case"section":return(0,r.createElement)(Jt,e);case"date":return(0,r.createElement)(st,e);case"toggle":return(0,r.createElement)(Lo,e);case"colorpicker":return(0,r.createElement)(rt,e);case"jsonuploader":return(0,r.createElement)(Lt,e);case"repeater":return(0,r.createElement)(Vt,e);case"media":return(0,r.createElement)(Nt,e);case"editor":return(0,r.createElement)(vt,e);case"action":return(0,r.createElement)(Je,e);case"button":return(0,r.createElement)(Xe,e);case"modal":return(0,r.createElement)(zt,e);case"tab":return(0,r.createElement)(Bo,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=$e(xt,!0),Ct=$e(xt),kt=["name","fields"],Mt=Ge((function(e){var t,n,o,i,s=e.name,c=e.fields,l=Oe(e,kt);if(c&&te(c)&&0!==c.length)return t=Me(),n=(0,r.useCallback)((function(e){e.persist&&e.persist();var n=(e=se(e)).field;t.setFieldValue([s,n],e.val)}),[e.value]),o=ae(c),(0,r.useEffect)((function(){t.setFormField([].concat(Q(e.parentIndex),["fields"]),o)}),[]),c=o.map((function(t,o){return o=[].concat(Q(e.parentIndex),["fields",o]),(0,r.createElement)(Ot,_e({},l,{key:t.name,index:e.index,onChange:n},t,{parenttype:"group",parent:s,parentIndex:o}))})),i=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:i},c));throw new Error((0,a.__)("You should give a #fields arguments to a group field.","betterdocs"))}));function jt(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,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(r=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return r=e.done,e},e:function(e){o=!0,n=e},f:function(){try{r||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Zt(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)?Zt(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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=xe(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");p(t&&(f||n))}),[e.active,e.fields,f]),(0,r.useEffect)((function(){var e;i.setFieldValue("active_tab",null==i||null==(e=i.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,i){return(0,r.createElement)(o().Fragment,{key:"button_".concat(n,"_").concat(i)},"skip"===n&&void 0!==a&&(0,r.createElement)(b.Button,{className:"wprf-btn wprf-step-btn-".concat(n),onClick:function(){return t(n)}},null==(i=e.config.buttons)?void 0:i[n]),"start"===n&&void 0===c&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-next"},(0,r.createElement)(Ct,{type:"button",ajax:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.ajax,name:"step-button",onClick:function(){return t(n)},text:"object"===V(null==(i=e.config.buttons)?void 0:i[n])?(null==e?void 0:e.active)===(null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.condition)?null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.customName:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.name:null==(i=e.config.buttons)?void 0:i[n]})),("next"===n&&void 0!==a&&void 0!==c||"prev"===n&&void 0!==c)&&(0,r.createElement)("div",{className:"wprf-btn wprf-step-btn-".concat(n," ").concat("prev"===n&&u?"disabled":"")},(0,r.createElement)(Ct,{type:"button",ajax:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.ajax,name:"step-button",disabled:"prev"===n&&u,onClick:function(){return t(n)},text:"object"===V(null==(i=e.config.buttons)?void 0:i[n])?(null==e?void 0:e.active)===(null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.condition)?null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.customName:null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.name:null==(i=e.config.buttons)?void 0:i[n]})),void 0===a&&(null==(i=e.config.buttons)||null==(i=i[n])?void 0:i.type)&&(0,r.createElement)(Ct,null==(i=e.config.buttons)?void 0:i[n]))})))})),$t=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,a.__)("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))},Jt=o().memo((function(e){var t=void 0!==(t=e.searchable)&&t,n=e.searchNotFoundMessage,o=void 0===(o=e.searchPlaceholder)?"Search...":o,i=Me(),a=(h=xe((0,r.useState)(null!=(h=e.collapsed)&&h),2))[0],s=h[1],c=(h=xe((0,r.useState)([]),2))[0],l=h[1],u=(h=xe((0,r.useState)([]),2))[0],p=h[1],f=(h=xe((0,r.useState)(""),2))[0],d=h[1],h=((0,r.useEffect)((function(){var t=ae(e.fields);i.setFormField([].concat(Q(e.parentIndex),["fields"]),t),t=t.map((function(t,n){return n=[].concat(Q(e.parentIndex),["fields",n]),(0,r.createElement)(Ct,_e({key:t.name},t,{parentIndex:n}))})),l(t),p(t)}),[]),(0,r.useEffect)((function(){var e;f?(e=c.filter((function(e){return null==e||null==(e=e.props)||null==(e=e.label)||null==(e=e.toLowerCase())?void 0:e.includes(f.toLowerCase())})),p(e)):p(c)}),[f,c]),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)&&a}));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(!a)}},"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){d(null==e||null==(e=e.target)?void 0:e.value)},value:f}))),(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)($t,i.submit),e.showSteps&&(0,r.createElement)(Gt,{fields:i.tabs,active:i.config.active,setActive:i.setActiveTab,config:null!=(h=i.config.step)?h:{show:!1}}))})),Xt="top",en="bottom",tn="right",nn="left",rn="auto",on=[Xt,en,tn,nn],an="start",sn="end",cn="viewport",ln="popper",un=on.reduce((function(e,t){return e.concat([t+"-"+an,t+"-"+sn])}),[]),pn=[].concat(on,[rn]).reduce((function(e,t){return e.concat([t,t+"-"+an,t+"-"+sn])}),[]),fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dn(e){return e?(e.nodeName||"").toLowerCase():null}function hn(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function mn(e){return e instanceof hn(e).Element||e instanceof Element}function gn(e){return e instanceof hn(e).HTMLElement||e instanceof HTMLElement}function yn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof hn(e).ShadowRoot||e instanceof ShadowRoot)}var vn={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];gn(o)&&dn(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}),{}),gn(r)&&dn(r)&&(Object.assign(r.style,e),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function bn(e){return e.split("-")[0]}var wn=Math.max,En=Math.min,Sn=Math.round;function xn(){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(xn())}function Cn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;return t&&gn(e)&&(o=0m[_]&&(O=Wn(O)),S=Wn(O),_=[],o&&_.push(x[E]<=0),i&&_.push(x[O]<=0,x[S]<=0),_.every((function(e){return e}))){v=w,y=!1;break}g.set(w,_)}if(y)for(var C=p?3:1;0{var t=d.find((function(t){if(t=g.get(t))return t.slice(0,e).every((function(e){return e}))}));if(t)return v=t,"break"})(C);C--);t.placement!==v&&(t.modifiersData[e]._skip=!0,t.placement=v,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ar(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 sr(e){return[Xt,tn,en,nn].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,i=or(t,{elementContext:"reference"}),a=or(t,{altBoundary:!0});i=ar(i,n),n=ar(a,r,o),a=sr(i),r=sr(n),t.modifiersData[e]={referenceClippingOffsets:i,popperEscapeOffsets:n,isReferenceHidden:a,hasPopperEscaped:r},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":r})}},lr={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=bn(e),o=0<=[nn,Xt].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<=[nn,tn].indexOf(r)?{x:n,y:e}:{x:e,y:n}}(n,t.rects,r),e}),{}),(i=e[t.placement]).x),i=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=i),t.modifiersData[n]=e}},ur={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=rr({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,i,a,s,c,l,u=e.state,p=e.options,f=(e=e.name,void 0===(f=p.mainAxis)||f),d=void 0!==(d=p.altAxis)&&d,h=void 0===(h=p.tether)||h,m=void 0===(m=p.tetherOffset)?0:m,g=(p=or(u,{boundary:p.boundary,rootBoundary:p.rootBoundary,padding:p.padding,altBoundary:p.altBoundary}),bn(u.placement)),y=Fn(u.placement),v=!y,b=Nn(g),w=function(e){return"x"===e?"y":"x"}(b),E=u.modifiersData.popperOffsets,S=u.rects.reference,_=u.rects.popper,x=(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),O={x:0,y:0};E&&(f&&(f="y"===b?"height":"width",c=(t=E[b])+p[o="y"===b?Xt:nn],l=t-p[n="y"===b?en:tn],r=h?-_[f]/2:0,a=(y===an?S:_)[f],y=y===an?-_[f]:-S[f],s=u.elements.arrow,s=h&&s?kn(s):{width:0,height:0},o=(i=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[o],i=i[n],n=Pn(0,S[f],s[f]),s=v?S[f]/2-r-n-o-m.mainAxis:a-n-o-m.mainAxis,a=v?-S[f]/2+r+n+i+m.mainAxis:y+n+i+m.mainAxis,v=(o=u.elements.arrow&&Ln(u.elements.arrow))?"y"===b?o.clientTop||0:o.clientLeft||0:0,y=t+a-(r=null!=(f=null==x?void 0:x[b])?f:0),n=Pn(h?En(c,t+s-r-v):c,t,h?wn(l,y):l),E[b]=n,O[b]=n-t),d&&(i="y"===w?"height":"width",a=(o=E[w])+p["x"===b?Xt:nn],f=o-p["x"===b?en:tn],s=-1!==[Xt,nn].indexOf(g),v=null!=(r=null==x?void 0:x[w])?r:0,c=s?a:o-S[i]-_[i]-v+m.altAxis,y=s?o+S[i]+_[i]-v-m.altAxis:f,l=h&&s?function(e,t,n){return n<(e=Pn(e,t,n))?n:e}(c,o,y):Pn(h?c:a,o,h?y:f),E[w]=l,O[w]=l-o),u.modifiersData[e]=O)},requiresIfExists:["offset"]};function fr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dr(e,t,n){void 0===n&&(n=!1);var r=gn(t),o=gn(t)&&function(e){var t=e.getBoundingClientRect(),n=Sn(t.width)/e.offsetWidth||1;return t=Sn(t.height)/e.offsetHeight||1,1!==n||1!==t}(t),i=An(t),a=(e=Cn(e,o,n),o={scrollLeft:0,scrollTop:0},{x:0,y:0});return!r&&n||("body"===dn(t)&&!Jn(i)||(o=function(e){return(e!==hn(e)&&gn(e)?fr:Gn)(e)}(t)),gn(t)?((a=Cn(t,!0)).x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=$n(i))),{x:e.left+o.scrollLeft-a.x,y:e.top+o.scrollTop-a.y,width:e.width,height:e.height}}function hr(e){var t;return function(){return t=t||new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))}}var mr={placement:"bottom",modifiers:[],strategy:"absolute"};function gr(){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=kr(E.props.duration,1,$r.duration);t||n||r||(D("onHide",[E],!1),!1!==E.props.onHide(E)&&(E.state.isVisible=!1,E.state.isShown=!1,h=y=!1,x()&&(l.style.visibility="hidden"),T(),R(),j(!0),x()&&(n=(t=k()).box,r=t.content,E.props.animation)&&(zr([n,r],o),Rr([n,r],"hidden")),A(),I(),E.props.animation?x()&&(e=E.unmount,B(o,(function(){!E.state.isVisible&&l.parentNode&&l.parentNode.contains(l)&&e()}))):E.unmount()))},hideWithInteractivity:function(e){C().addEventListener("mousemove",b),Ir(so,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&&(Z(),G().forEach((function(e){e._tippy.unmount()})),l.parentNode&&l.parentNode.removeChild(l),co=co.filter((function(e){return e!==E})),E.state.isMounted=!1,D("onHidden",[E]))},destroy:function(){E.state.isDestroyed||(E.clearDelayTimeouts(),E.unmount(),H(),delete e._tippy,E.state.isDestroyed=!0,D("onDestroy",[E]))}};return!!d.render&&(t=d.render(E),l=t.popper,u=t.onUpdate,l.setAttribute("data-tippy-root",""),l.id="tippy-"+E.id,E.popper=l,e._tippy=E,l._tippy=E,p=w.map((function(e){return e.fn(E)})),f=e.hasAttribute("aria-expanded"),U(),I(),j(),D("onCreate",[E]),d.showOnCreate&&$(),l.addEventListener("mouseenter",(function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()})),l.addEventListener("mouseleave",(function(){E.props.interactive&&0<=E.props.trigger.indexOf("mouseenter")&&C().addEventListener("mousemove",b)}))),E;function S(){var e=E.props.touch;return Array.isArray(e)?e:[e,0]}function _(){return"hold"===S()[0]}function x(){var e;return null!=(e=E.props.render)&&e.$$tippy}function O(){return c||e}function C(){var e=O().parentNode;return e?function(e){var t;return null!=(e=Ar(e)[0])&&null!=(t=e.ownerDocument)&&t.body?e.ownerDocument:document}(e):document}function k(){return oo(l)}function M(e){return E.state.isMounted&&!E.state.isVisible||Ur.isTouch||i&&"focus"===i.type?0:kr(E.props.delay,e?0:1,$r.delay)}function j(e){void 0===e&&(e=!1),l.style.pointerEvents=E.props.interactive&&!e?"":"none",l.style.zIndex=""+E.props.zIndex}function D(e,t,n){void 0===n&&(n=!0),p.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(n=E.props)[e].apply(n,t)}function A(){var t,n,r=E.props.aria;r.content&&(t="aria-"+r.content,n=l.id,Ar(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(){!f&&E.props.aria.expanded&&Ar(E.props.triggerTarget||e).forEach((function(e){E.props.interactive?e.setAttribute("aria-expanded",E.state.isVisible&&e===O()?"true":"false"):e.removeAttribute("aria-expanded")}))}function T(){C().removeEventListener("mousemove",b),so=so.filter((function(e){return e!==b}))}function L(t){if(!Ur.isTouch||!g&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!E.props.interactive||!Fr(l,n)){if(Ar(E.props.triggerTarget||e).some((function(e){return Fr(e,n)}))){if(Ur.isTouch)return;if(E.state.isVisible&&0<=E.props.trigger.indexOf("click"))return}else D("onClickOutside",[E,t]);!0===E.props.hideOnClick&&(E.clearDelayTimeouts(),E.hide(),m=!0,setTimeout((function(){m=!1})),E.state.isMounted||R())}}}function N(){g=!0}function P(){g=!1}function z(){var e=C();e.addEventListener("mousedown",L,!0),e.addEventListener("touchend",L,Or),e.addEventListener("touchstart",P,Or),e.addEventListener("touchmove",N,Or)}function R(){var e=C();e.removeEventListener("mousedown",L,!0),e.removeEventListener("touchend",L,Or),e.removeEventListener("touchstart",P,Or),e.removeEventListener("touchmove",N,Or)}function B(e,t){var n=k().box;function r(e){e.target===n&&(Br(n,"remove",r),t())}if(0===e)return t();Br(n,"remove",a),Br(n,"add",r),a=r}function F(t,n,r){void 0===r&&(r=!1),Ar(E.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function U(){_()&&(F("touchstart",K,{passive:!0}),F("touchend",Y,{passive:!0})),function(e){return e.split(/\s+/).filter(Boolean)}(E.props.trigger).forEach((function(e){if("manual"!==e)switch(F(e,K),e){case"mouseenter":F("mouseleave",Y);break;case"focus":F(Wr?"focusout":"blur",q);break;case"focusin":F("focusout",q)}}))}function H(){v.forEach((function(e){e.node.removeEventListener(e.eventType,e.handler,e.options)})),v=[]}function K(e){var t,n=!1;!E.state.isEnabled||W(e)||m||(t="focus"===(null==i?void 0:i.type),c=(i=e).currentTarget,I(),!E.state.isVisible&&function(e){return Mr(e,"MouseEvent")}(e)&&so.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:$(e),"click"===e.type&&(h=!n),n&&!t&&J(e))}function V(e){var t=e.target;t=O().contains(t)||l.contains(t),"mousemove"===e.type&&t||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t,o,i,a=e.popperRect,s=e.popperState,c=(e=e.props.interactiveBorder,function(e){return e.split("-")[0]}(s.placement));return!(s=s.modifiersData.offset)||(t="bottom"===c?s.top.y:0,o="top"===c?s.bottom.y:0,i="right"===c?s.left.x:0,c="left"===c?s.right.x:0,s=a.top-r+t>e,t=r-a.bottom-o>e,o=a.left-n+i>e,i=n-a.right-c>e,s)||t||o||i}))}(G().concat(l).map((function(e){var t=null==(t=e._tippy.popperInstance)?void 0:t.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:d}:null})).filter(Boolean),e)&&(T(),J(e))}function Y(e){W(e)||0<=E.props.trigger.indexOf("click")&&h||(E.props.interactive?E.hideWithInteractivity(e):J(e))}function q(e){E.props.trigger.indexOf("focusin")<0&&e.target!==O()||E.props.interactive&&e.relatedTarget&&l.contains(e.relatedTarget)||J(e)}function W(e){return!!Ur.isTouch&&_()!==0<=e.type.indexOf("touch")}function Q(){Z();var t=(i=E.props).popperOptions,n=i.placement,r=i.offset,o=i.getReferenceClientRect,i=i.moveTransition,a=x()?oo(l).arrow:null;o=o?{getBoundingClientRect:o,contextElement:o.contextElement||O()}: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:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state;x()&&(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={})}}],x()&&a&&r.push({name:"arrow",options:{element:a,padding:3}}),r.push.apply(r,(null==t?void 0:t.modifiers)||[]),E.popperInstance=Er(o,l,Object.assign({},t,{placement:n,onFirstUpdate:s,modifiers:r}))}function Z(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function G(){return Tr(l.querySelectorAll("[data-tippy-root]"))}function $(e){E.clearDelayTimeouts(),e&&D("onTrigger",[E,e]),z(),e=M(!0);var t=(r=S())[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(),D("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=M(!1))?r=setTimeout((function(){E.state.isVisible&&E.hide()}),e):o=requestAnimationFrame((function(){E.hide()}))):R()}}(t,r))&&e.push(t),e}),[]),Pr(e)?n[0]:n}function uo(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i$1"),o=null==(o=e.address)?void 0:o.replace(n,"$1"),(0,r.createElement)(r.Fragment,null,U(t||"")," ",(0,r.createElement)("small",null,U(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:f,isClearable:!0,isOptionDisabled:function(e){return null==e?void 0:e.disabled},onChange:function(e){return d(e)}}))})),ko=function(e){var t,n=e.name,o=e.id,i=e.label,a=e.units,s=e.min,c=e.max,l=e.unit,u=e.reset,p=(t=xe((0,r.useState)(e.value||0),2))[0],f=t[1],d=(t=xe((0,r.useState)(l),2))[0],h=t[1];return(0,r.useEffect)((function(){var t;p&&(function(e){return null!==e&&"number"==typeof e}(p)?t=d?"".concat(p).concat(d):"".concat(p):J(p)&&(t=-1e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},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.")}(l);try{for(r.s();!(e=r.n()).done;)t[e.value.value]=a}catch(e){r.e(e)}finally{r.f()}n(t)}}),[]),(0,r.createElement)("div",{className:"wprf-toggle-wrapper wprf-control"},(0,r.createElement)(Be,null,l.map((function(n){return(0,r.createElement)(Fe,{key:n.value,column:u.column},(0,r.createElement)(dt,To(To({},n),{},{context:null==e?void 0:e.context,id:n.value,checked:void 0===t[n.value]||(null!=t&&t[n.value]?a:!(null==t||!t[n.value])),type:"checkbox",onChange:o,style:u})))}))))):(0,r.createElement)(dt,e)},No=function(e){var t=e.fields,n=e.parentIndex,o=e.context,i=(e=xe((0,r.useState)([]),2))[0],a=e[1],s=(e=xe((0,r.useState)([]),2))[0],c=e[1];return(0,r.useEffect)((function(){var e=ae(t);o.setFormField([n,"fields"],e),a(e)}),[]),(0,r.useEffect)((function(){var e;te(i)&&0{"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},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=c(t),m=c(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]?)/,i=//i,a=//i,s=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l="object"==typeof window&&window.DOMParser;if("function"==typeof l){var u=new l;s=c=function(e,t){return t&&(e="<"+t+">"+e+""),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();s=function(e,t){return t?(p.documentElement.querySelector(t).innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var f,d="object"==typeof document?document.createElement("template"):{};d.content&&(f=function(e){return d.innerHTML=e,d.content.childNodes}),e.exports=function(e){var l,u,p,d,h=e.match(o);switch(h&&h[1]&&(l=h[1].toLowerCase()),l){case t:return u=c(e),i.test(e)||(p=u.querySelector(n))&&p.parentNode.removeChild(p),a.test(e)||(p=u.querySelector(r))&&p.parentNode.removeChild(p),u.querySelectorAll(t);case n:case r:return d=(u=s(e)).querySelectorAll(l),a.test(e)&&i.test(e)?d[0].parentNode.childNodes:d;default:return f?f(e):(p=s(e,r).querySelector(r)).childNodes}}},6374:(e,t,n)=>{var r=n(8593),o=n(7310).formatDOM,i=/<(![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(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},7310:(e,t,n)=>{for(var r,o=n(2095),i=n(4523).CASE_SENSITIVE_TAG_NAMES,a=o.Comment,s=o.Element,c=o.ProcessingInstruction,l=o.Text,u={},p=0,f=i.length;p{var r=n(2095),o=n(6374),i=n(2520),a=n(2868);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function c(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:a(o(e,(t=t||{}).htmlparser2||s),t)}c.domToReact=a,c.htmlToDOM=o,c.attributesToProps=i,c.Comment=r.Comment,c.Element=r.Element,c.ProcessingInstruction=r.ProcessingInstruction,c.Text=r.Text,e.exports=c,c.default=c},2520:(e,t,n)=>{var r=n(7159),o=n(9774),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function c(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,l,u,p,f,d={},h=(e=e||{}).type&&s[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))d[n]=u;else if(p=c(l=n.toLowerCase()))switch(f=r.getPropertyInfo(p),-1===i.indexOf(p)||-1===a.indexOf(t)||h||(p=c("default"+l)),d[p]=u,f&&f.type){case r.BOOLEAN:d[p]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(d[p]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(d[n]=u);return o.setStyleProp(e.style,d),d}},2868:(e,t,n)=>{var r=n(1609),o=n(2520),i=n(9774),a=i.setStyleProp,s=i.canTextBeChildOfNode;function c(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var i,l,u,p,f,d=(n=n||{}).library||r,h=d.cloneElement,m=d.createElement,g=d.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"!==i.type){switch(p=i.attribs,c(i)?a(p.style,p):p&&(p=o(p,i.name)),f=null,i.type){case"script":case"style":i.children[0]&&(p.dangerouslySetInnerHTML={__html:i.children[0].data});break;case"tag":"textarea"===i.name&&i.children[0]?p.defaultValue=i.children[0].data:i.children&&i.children.length&&(f=e(i.children,n));break;default:continue}E>1&&(p.key=w),y.push(m(i.name,p,f))}else{if((l=!i.data.trim().length)&&i.parent&&!s(i.parent))continue;if(b&&l)continue;y.push(i.data)}return 1===y.length?y[0]:y}},9774:(e,t,n)=>{var r=n(1609),o=n(7545).default,i={reactCompat:!0},a=r.version.split(".")[0]>=16,s=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,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,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},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,i)}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),i=function(e,t,n){var r,i=e.textContent;return""===i.trim()?{chunk:(r=n,{text:" ",inlines:[new o.OrderedSet],entities:[r],blocks:[]})}:{chunk:{text:i,inlines:Array(i.length).fill(t),entities:Array(i.length).fill(n),blocks:[]}}},a=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({})}]}},c=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({})}]}},l=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)}},p=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"]}}),f={code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",strong:"BOLD",ins:"UNDERLINE",sub:"SUBSCRIPT",sup:"SUPERSCRIPT"};function d(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:l(E)}}}if("#text"===b&&"\n"!==e.textContent)return i(e,t,m);if("br"===b)return{chunk:a()};if("img"===b&&e instanceof HTMLImageElement){var S={};S.src=e.getAttribute&&e.getAttribute("src")||e.src,S.alt=e.alt,S.height=e.style.height,S.width=e.style.width,e.style.float&&(S.alignment=e.style.float);var _=r.Entity.__create("IMAGE","MUTABLE",S);return{chunk:l(_)}}if("video"===b&&e instanceof HTMLVideoElement){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 O=r.Entity.__create("VIDEO","MUTABLE",x);return{chunk:l(O)}}if("iframe"===b&&e instanceof HTMLIFrameElement){var C={};C.src=e.getAttribute&&e.getAttribute("src")||e.src,C.height=e.height,C.width=e.width;var k=r.Entity.__create("EMBEDDED_LINK","MUTABLE",C);return{chunk:l(k)}}var M,j=function(e,t){var n=p.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?O(e)+t:t}function k(){return!0}function M(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(e,t){return A(e,t,0)}function D(e,t){return A(e,t,t)}function A(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,T="@@iterator",L=I||T;function N(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 z(){return{value:void 0,done:!0}}function R(e){return!!U(e)}function B(e){return e&&"function"==typeof e.next}function F(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(I&&e[I]||e[T]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function K(e){return null==e?ne():a(e)?e.toSeq():function(e){var t=ie(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():a(e)?s(e)?e.toSeq():e.fromEntrySeq():re(e)}function Y(e){return null==e?ne():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function q(e){return(null==e?ne():a(e)?s(e)?e.entrySeq():e:oe(e)).toSetSeq()}N.prototype.toString=function(){return"[Iterator]"},N.KEYS=0,N.VALUES=1,N.ENTRIES=2,N.prototype.inspect=N.prototype.toSource=function(){return this.toString()},N.prototype[L]=function(){return this},t(K,n),K.of=function(){return K(arguments)},K.prototype.toSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq {","}")},K.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},K.prototype.__iterate=function(e,t){return ae(this,e,t,!0)},K.prototype.__iterator=function(e,t){return se(this,e,t,!0)},t(V,K),V.prototype.toKeyedSeq=function(){return this},t(Y,K),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return ae(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return se(this,e,t,!1)},t(q,K),q.of=function(){return q(arguments)},q.prototype.toSetSeq=function(){return this},K.isSeq=te,K.Keyed=V,K.Set=q,K.Indexed=Y;var W,Q,Z,G="@@__IMMUTABLE_SEQ__@@";function $(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[G])}function ne(){return W||(W=new $([]))}function re(e){var t=Array.isArray(e)?new $(e).fromEntrySeq():B(e)?new ee(e).fromEntrySeq():R(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=ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ie(e){return H(e)?new $(e):B(e)?new ee(e):R(e)?new X(e):void 0}function ae(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function se(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new N((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:P(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function ce(e,t){return t?le(t,e,"",{"":e}):ue(e)}function le(e,t,n,r){return Array.isArray(t)?e.call(r,n,Y(t).map((function(n,r){return le(e,n,r,t)}))):pe(t)?e.call(r,n,V(t).map((function(n,r){return le(e,n,r,t)}))):t}function ue(e){return Array.isArray(e)?Y(e).map(ue).toList():pe(e)?V(e).map(ue).toMap():e}function pe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function fe(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 de(e,t){if(e===t)return!0;if(!a(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)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&fe(o[1],e)&&(n||fe(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 i=e;e=t,t=i}var p=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!fe(t,e.get(r,v)):!fe(e.get(r,v),t))return p=!1,!1}));return p&&e.size===f}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(Q)return Q;Q=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,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},J.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new N((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:P(e,a,n[a])}))},J.prototype[h]=!0,t(X,Y),X.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=F(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=F(this._iterable);if(!B(n))return new N(z);var r=0;return new N((function(){var t=n.next();return t.done?t:P(e,r++,t.value)}))},t(ee,Y),ee.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return P(e,o,r[o++])}))},t(he,Y),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 fe(this._value,e)},he.prototype.slice=function(e,t){var n=this.size;return M(e,t,n)?this:new he(this._value,D(t,n)-j(e,n))},he.prototype.reverse=function(){return this},he.prototype.indexOf=function(e){return fe(this._value,e)?0:-1},he.prototype.lastIndexOf=function(e){return fe(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+C(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,i++,a)}))},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:de(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 Se(e){return e>>>1&1073741824|3221225471&e}function _e(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 Se(n)}if("string"===t)return e.length>Ae?function(e){var t=Le[e];return void 0===t&&(t=xe(e),Te===Ie&&(Te=0,Le={}),Te++,Le[e]=t),t}(e):xe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Me&&void 0!==(t=ke.get(e)))return t;if(void 0!==(t=e[De]))return t;if(!Ce){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[De]))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=++je,1073741824&je&&(je=0),Me)ke.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ce)Object.defineProperty(e,De,{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[De]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[De]=t}}return t}(e);if("function"==typeof e.toString)return xe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function xe(e){for(var t=0,n=0;n>>n)&y,s=(0===n?r:r>>>n)&y;return new He(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:x(e);return o[t]=n,o}Fe[Be]=!0,Fe[m]=Fe.remove,Fe.removeIn=Fe.deleteIn,Ue.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=ct)return function(e,t,n,r){e||(e=new _);for(var o=new Ye(e,_e(n),[n,r]),i=0;i>>e)&y),i=this.bitmap;return i&o?this.nodes[at(i&o-1)].get(e+5,t,n,r):r},He.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=_e(r));var s=(0===t?n:n>>>t)&y,c=1<=lt)return function(e,t,n,r,o){for(var i=0,a=new Array(g),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Ke(e,i+1,a)}(e,f,l,s,h);if(u&&!h&&2===f.length&&Xe(f[1^p]))return f[1^p];if(u&&h&&1===f.length&&Xe(h))return h;var m=e&&e===this.ownerID,b=u?h?l:l^c:l|c,w=u?h?st(f,p,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),i=0,a=0;a>>e)&y,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Ke.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=_e(r));var s=(0===t?n:n>>>t)&y,c=o===v,l=this.nodes,u=l[s];if(c&&!u)return this;var p=Je(u,e,t+5,n,r,o,i,a);if(p===u)return this;var f=this.count;if(u){if(!p&&--f0&&r=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?Ot(e,t).set(0,n):Ot(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=E(w);return t>=kt(e._capacity)?r=St(r,e.__ownerID,0,t,n,i):o=St(o,e.__ownerID,e._level,t,n,i),i.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)},pt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},pt.prototype.insert=function(e,t){return this.splice(e,0,t)},pt.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()},pt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ot(n,0,t+e.length);for(var r=0;r>>t&y;if(r>=this.array.length)return new mt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=_t(this,e);if(!i)for(var c=0;c>>t&y;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 a=_t(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var gt,yt,vt={};function bt(e,t){var n=e._origin,r=e._capacity,o=kt(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,l=r-a;return l>g&&(l=g),function(){if(c===l)return vt;var e=t?--l:c++;return s&&s[e]}}(e,c):function(e,o,i){var s,c=e&&e.array,l=i>n?0:n-i>>o,u=1+(r-i>>o);return u>g&&(u=g),function(){for(;;){if(s){var e=s();if(e!==vt)return e;s=null}if(l===u)return vt;var n=t?--u:l++;s=a(c&&c[n],o-5,i+(n<>>n&y,c=e&&s0){var l=e&&e.array[s],u=St(l,t,n-5,r,o,i);return u===l?e:((a=_t(e,t)).array[s]=u,a)}return c&&e.array[s]===o?e:(S(i),a=_t(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function _t(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function xt(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 Ot(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,l=e._root,u=0;a+u<0;)l=new mt(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=5);u&&(a+=u,o+=u,s+=u,i+=u);for(var p=kt(i),f=kt(s);f>=1<p?new mt([],r):d;if(d&&f>p&&a5;g-=5){var v=p>>>g&y;m=m.array[v]=_t(m.array[v],r)}m.array[p>>>5&y]=d}if(s=f)a-=f,s-=f,c=5,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f>>c&y;if(b!==f>>>c&y)break;b&&(u+=(1<o&&(l=l.removeBefore(r,c,a-u)),l&&fi&&(i=l.size),a(c)||(l=l.map((function(e){return ce(e)}))),r.push(l)}return i>e.size&&(e=e.setSize(i)),ot(e,t,r)}function kt(e){return e>>5<<5}function Mt(e){return null==e?At():jt(e)?e:At().withMutations((function(t){var n=r(e);Ne(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function jt(e){return ze(e)&&u(e)}function Dt(e,t,n,r){var o=Object.create(Mt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function At(){return yt||(yt=Dt(Ge(),Et()))}function It(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===v){if(!c)return e;a.size>=g&&a.size>=2*i.size?(r=(o=a.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=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Dt(r,o)}function Tt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Lt(e){this._iter=e,this.size=e.size}function Nt(e){this._iter=e,this.size=e.size}function Pt(e){this._iter=e,this.size=e.size}function zt(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 N((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 Rt(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 i=e.get(r,v);return i===v?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new N((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return P(r,s,t.call(n,a[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=zt(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 Ft(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 i=e.get(r,v);return i!==v&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new N((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return P(o,r?l:s++,u,i)}}))},o}function Ut(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),M(t,n,o))return e;var i=j(t,o),a=D(n,o);if(i!=i||a!=a)return Ut(e.toSeq().cacheResult(),t,n,r);var s,c=a-i;c==c&&(s=c<0?0:c);var l=Jt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&te(e)&&s>=0&&(l.get=function(t,n){return(t=C(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:P(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Ht(e,t,n,r){var o=Jt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,l=0;return new N((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:P(o,l++,0===o?void 0:e.value[1],e);var p=e.value;i=p[0],u=p[1],c&&(c=t.call(n,u,i,a))}while(c);return 2===o?e:P(o,i,u,e)}))},o}function Kt(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(c,l){var u=this;c.__iterate((function(o,c){return(!t||l0}function Wt(e,t,r){var o=Jt(e);return o.size=new $(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 i=r.map((function(e){return e=n(e),F(o?e.reverse():e)})),a=0,s=!1;return new N((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:P(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Qt(e,t){return te(e)?t:e.constructor(t)}function Zt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Gt(e){return Ne(e.size),O(e)}function $t(e){return s(e)?r:c(e)?o:i}function Jt(e){return Object.create((s(e)?V:c(e)?Y:q).prototype)}function Xt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.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):Mn(e,t)},Sn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ne(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):Mn(t,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(e){return this.pushAll(e)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.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):jn()},Sn.prototype.slice=function(e,t){if(M(e,t,this.size))return this;var n=j(e,this.size);if(D(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):Mn(r,o)},Sn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Mn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Sn.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},Sn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new N((function(){if(r){var t=r.value;return r=r.next,P(e,n++,t)}return{value:void 0,done:!0}}))},Sn.isStack=xn;var On,Cn="@@__IMMUTABLE_STACK__@@",kn=Sn.prototype;function Mn(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 jn(){return On||(On=Mn(0))}function Dn(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[Cn]=!0,kn.withMutations=Fe.withMutations,kn.asMutable=Fe.asMutable,kn.asImmutable=Fe.asImmutable,kn.wasAltered=Fe.wasAltered,n.Iterator=N,Dn(n,{toArray:function(){Ne(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Lt(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 Tt(this,!0)},toMap:function(){return Pe(this.toKeyedSeq())},toObject:function(){Ne(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Mt(this.toKeyedSeq())},toOrderedSet:function(){return gn(s(this)?this.valueSeq():this)},toSet:function(){return cn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Nt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return pt(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 Qt(this,function(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(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 i=o[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var l=new $(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return fe(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Ne(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Qt(this,Ft(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,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ne(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ne(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 Qt(this,Rt(this,e,t))},reduce:function(e,t,n){var r,o;return Ne(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Qt(this,Bt(this,!0))},slice:function(e,t){return Qt(this,Ut(this,e,t,!0))},some:function(e,t){return!this.every(Nn(e),t)},sort:function(e){return Qt(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 O(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,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return de(this,e)},entrySeq:function(){var e=this;if(e._cache)return new $(e._cache);var t=e.toSeq().map(Ln).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Nn(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 Qt(this,function(e,t,n){var r=$t(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Qt(this,Kt(this,e,!0))},fromEntrySeq:function(){return new Pt(this)},get:function(e,t){return this.find((function(t,n){return fe(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=tn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,v):v)===v)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(u(e)?Mt():Pe()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=$t(e);return o.map((function(t){return Qt(e,i(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(Tn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Yt(this,e)},maxBy:function(e,t){return Yt(this,t,e)},min:function(e){return Yt(this,e?Pn(e):Bn)},minBy:function(e,t){return Yt(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 Qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Qt(this,Ht(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Nn(e),t)},sortBy:function(e,t){return Qt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Qt(this,function(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new N((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,i)?2===r?e:P(r,c,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Nn(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),Se((t=Ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Fn(_e(e),_e(t))|0}:function(e,t){r=r+Fn(_e(e),_e(t))|0}:t?function(e){r=31*r+_e(e)|0}:function(e){r=r+_e(e)|0}),r)}(this))}});var An=n.prototype;An[p]=!0,An[L]=An.values,An.__toJS=An.toArray,An.__toStringMapper=zn,An.inspect=An.toSource=function(){return this.toString()},An.chain=An.flatMap,An.contains=An.includes,function(){try{Object.defineProperty(An,"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){}}(),Dn(r,{flip:function(){return Qt(this,zt(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 fe(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return fe(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Qt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Qt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var In=r.prototype;function Tn(e,t){return t}function Ln(e,t){return[t,e]}function Nn(e){return function(){return!e.apply(this,arguments)}}function Pn(e){return function(){return-e.apply(this,arguments)}}function zn(e){return"string"==typeof e?JSON.stringify(e):e}function Rn(){return x(arguments)}function Bn(e,t){return et?-1:0}function Fn(e,t){return e^t+2654435769+(e<<6)+(e>>2)}return In[f]=!0,In[L]=An.entries,In.__toJS=An.toObject,In.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+zn(e)},Dn(o,{toKeyedSeq:function(){return new Tt(this,!1)},filter:function(e,t){return Qt(this,Ft(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 Qt(this,Bt(this,!1))},slice:function(e,t){return Qt(this,Ut(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=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return Qt(this,1===n?r:r.concat(x(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 Qt(this,Kt(this,e,!1))},get:function(e,t){return(e=C(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=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e{"use strict";n.r(t),n.d(t,{Collection:()=>x,Iterable:()=>Or,List:()=>on,Map:()=>Lt,OrderedMap:()=>bn,OrderedSet:()=>sr,PairSorting:()=>fr,Range:()=>Vn,Record:()=>dr,Repeat:()=>wr,Seq:()=>W,Set:()=>zn,Stack:()=>Cn,default:()=>Cr,fromJS:()=>Er,get:()=>ot,getIn:()=>Yn,has:()=>rt,hasIn:()=>Wn,hash:()=>de,is:()=>le,isAssociative:()=>_,isCollection:()=>v,isImmutable:()=>I,isIndexed:()=>S,isKeyed:()=>w,isList:()=>rn,isMap:()=>ae,isOrdered:()=>L,isOrderedMap:()=>se,isOrderedSet:()=>Tn,isPlainObject:()=>et,isRecord:()=>A,isSeq:()=>j,isSet:()=>In,isStack:()=>On,isValueObject:()=>ce,merge:()=>wt,mergeDeep:()=>St,mergeDeepWith:()=>_t,mergeWith:()=>Et,remove:()=>at,removeIn:()=>ft,set:()=>st,setIn:()=>ut,update:()=>ht,updateIn:()=>ct,version:()=>xr});var r="delete",o=32,i=31,a={};function s(e){e&&(e.value=!0)}function c(){}function l(e){return void 0===e.size&&(e.size=e.__iterate(p)),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?l(e)+t:t}function p(){return!0}function f(e,t,n){return(0===e&&!g(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function d(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 S(e){return Boolean(e&&e[E])}function _(e){return w(e)||S(e)}var x=function(e){return v(e)?e:W(e)},O=function(e){function t(e){return w(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),C=function(e){function t(e){return S(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),k=function(e){function t(e){return v(e)&&!_(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x);x.Keyed=O,x.Indexed=C,x.Set=k;var M="@@__IMMUTABLE_SEQ__@@";function j(e){return Boolean(e&&e[M])}var D="@@__IMMUTABLE_RECORD__@@";function A(e){return Boolean(e&&e[D])}function I(e){return v(e)||A(e)}var T="@@__IMMUTABLE_ORDERED__@@";function L(e){return Boolean(e&&e[T])}var N="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",z=N||P,R=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 F(){return{value:void 0,done:!0}}function U(e){return!!Array.isArray(e)||!!V(e)}function H(e){return e&&"function"==typeof e.next}function K(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(N&&e[N]||e[P]);if("function"==typeof t)return t}R.prototype.toString=function(){return"[Iterator]"},R.KEYS=0,R.VALUES=1,R.ENTRIES=2,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[z]=function(){return this};var Y=Object.prototype.hasOwnProperty;function q(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 i=n[t?r-++o:o++];if(!1===e(i[1],i[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 R((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return B(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(x),Q=function(e){function t(e){return null==e?te().toKeyedSeq():v(e)?w(e)?e.toSeq():e.fromEntrySeq():A(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),Z=function(e){function t(e){return null==e?te():v(e)?w(e)?e.entrySeq():e.toIndexedSeq():A(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),G=function(e){function t(e){return(v(e)&&!_(e)?e:Z(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=j,W.Keyed=Q,W.Set=G,W.Indexed=Z,W.prototype[M]=!0;var $=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 i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new R((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return B(e,i,n[i])}))},t}(Z),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 Y.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new R((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return B(e,a,n[a])}))},t}(Q);J.prototype[T]=!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=K(this._collection),r=0;if(H(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=K(this._collection);if(!H(n))return new R(F);var r=0;return new R((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t}(Z);function te(){return X||(X=new $([]))}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 q(e)?new $(e):U(e)?new ee(e):void 0}var ie="@@__IMMUTABLE_MAP__@@";function ae(e){return Boolean(e&&e[ie])}function se(e){return ae(e)&&L(e)}function ce(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function le(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!!(ce(e)&&ce(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 pe(e){return e>>>1&1073741824|3221225471&e}var fe=Object.prototype.valueOf;function de(e){if(null==e)return he(e);if("function"==typeof e.hashCode)return pe(e.hashCode(e));var t,n,r,o=(t=e).valueOf!==fe&&"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 pe(t)}(o);case"string":return o.length>xe?(void 0===(r=ke[n=o])&&(r=me(n),Ce===Oe&&(Ce=0,ke={}),Ce++,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[_e]))return t;if(!ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[_e]))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,_e,{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[_e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[_e]=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&&(c.get=function(t,n){return(t=u(this,t))>=0&&ti)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:B(t,c-1,0===t?void 0:e.value[1],e)}))},c}function ze(e,t,n,r){var o=qe(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),c=!0,l=0;return new R((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:B(o,l++,0===o?void 0:e.value[1],e);var p=e.value;i=p[0],u=p[1],c&&(c=t.call(n,u,i,a))}while(c);return 2===o?e:B(o,i,u,e)}))},o}function Re(e,t,n){var r=qe(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(c,l){c.__iterate((function(i,c){return(!t||l0}function He(e,t,n,r){var o=qe(e),i=new $(n).map((function(e){return e.size}));return o.size=r?i.max():i.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 i=n.map((function(e){return e=x(e),K(o?e.reverse():e)})),a=0,s=!1;return new R((function(){var n;return s||(n=i.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,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ke(e,t){return e===t?e:j(e)?t:e.constructor(t)}function Ve(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ye(e){return w(e)?O:S(e)?C:k}function qe(e){return Object.create((w(e)?Q:S(e)?Z:G).prototype)}function We(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):W.prototype.cacheResult.call(this)}function Qe(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 Ot(e,t)}function Et(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ot(t,n,e)}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return xt(e,t)}function _t(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return xt(t,n,e)}function xt(e,t,n){return Ot(e,t,function(e){return function t(n,r,o){return tt(n)&&tt(r)&&(i=r,a=W(n),s=W(i),S(a)===S(s)&&w(a)===w(s))?Ot(n,[r],t):e?e(n,r,o):r;var i,a,s}}(n))}function Ot(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,i=r?C:O,a=r?function(t){o===e&&(o=it(o)),o.push(t)}:function(t,r){var i=Y.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=it(o)),o[r]=a)},s=0;s0;)t[n]=arguments[n+1];return xt(this,t,e)}function Mt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(this,e,qt(),(function(e){return Ot(e,t)}))}function jt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(this,e,qt(),(function(e){return xt(e,t)}))}function Dt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function At(){return this.__ownerID?this:this.__ensureOwner(new c)}function It(){return this.__ensureOwner()}function Tt(){return this.__altered}var Lt=function(e){function t(t){return null==t?qt():ae(t)&&!L(t)?t:qt().withMutations((function(n){var r=e(t);$e(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 qt().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,a)},t.prototype.deleteAll=function(e){var t=x(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):qt()},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,i){r.set(i,e.call(t,o,i,n))}))}))},t.prototype.__iterator=function(e,t){return new Ht(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?Yt(this.size,this._root,e,this.__hash):0===this.size?qt():(this.__ownerID=e,this.__altered=!1,this)},t}(O);Lt.isMap=ae;var Nt=Lt.prototype;Nt[ie]=!0,Nt[r]=Nt.remove,Nt.removeAll=Nt.deleteAll,Nt.setIn=pt,Nt.removeIn=Nt.deleteIn=dt,Nt.update=mt,Nt.updateIn=gt,Nt.merge=Nt.concat=yt,Nt.mergeWith=vt,Nt.mergeDeep=Ct,Nt.mergeDeepWith=kt,Nt.mergeIn=Mt,Nt.mergeDeepIn=jt,Nt.withMutations=Dt,Nt.wasAltered=Tt,Nt.asImmutable=It,Nt["@@transducer/init"]=Nt.asMutable=At,Nt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Nt["@@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,i=0,a=o.length;i=Xt)return function(e,t,n,r){e||(e=new c);for(var o=new Ft(e,de(n),[n,r]),i=0;i>>e)&i),a=this.bitmap;return a&o?this.nodes[$t(a&o-1)].get(e+5,t,n,r):r},zt.prototype.update=function(e,t,n,r,s,c,l){void 0===n&&(n=de(r));var u=(0===t?n:n>>>t)&i,p=1<=en)return function(e,t,n,r,i){for(var a=0,s=new Array(o),c=0;0!==n;c++,n>>>=1)s[c]=1&n?t[a++]:void 0;return s[r]=i,new Rt(e,a+1,s)}(e,m,f,u,y);if(d&&!y&&2===m.length&&Zt(m[1^h]))return m[1^h];if(d&&y&&1===m.length&&Zt(y))return y;var v=e&&e===this.ownerID,b=d?y?f:f^p:f|p,w=d?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),i=0,a=0;a>>e)&i,a=this.nodes[o];return a?a.get(e+5,t,n,r):r},Rt.prototype.update=function(e,t,n,r,o,s,c){void 0===n&&(n=de(r));var l=(0===t?n:n>>>t)&i,u=o===a,p=this.nodes,f=p[l];if(u&&!f)return this;var d=Qt(f,e,t+5,n,r,o,s,c);if(d===f)return this;var h=this.count;if(f){if(!d&&--h>>n)&i,c=(0===n?r:r>>>n)&i,l=s===c?[Gt(e,t,n+5,r,o)]:(a=new Ft(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:Ze(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=fn();if(null==t)return n;if(rn(t))return t;var r=e(t),i=r.size;return 0===i?n:($e(i),i>0&&i=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,i={value:!1};return t>=yn(e._capacity)?r=dn(r,e.__ownerID,0,t,n,i):o=dn(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pn(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):fn()},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&i;if(r>=this.array.length)return new sn([],e);var o,a=0===r;if(t>0){var s=this.array[r];if((o=s&&s.removeBefore(e,t-5,n))===s&&a)return this}if(a&&!o)return this;var c=hn(this,e);if(!a)for(var l=0;l>>t&i;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 s=hn(this,e);return s.array.splice(o+1),r&&(s.array[o]=r),s};var cn,ln={};function un(e,t){var n=e._origin,r=e._capacity,i=yn(r),a=e._tail;return function e(s,c,l){return 0===c?function(e,s){var c=s===i?a&&a.array:e&&e.array,l=s>n?0:n-s,u=r-s;return u>o&&(u=o),function(){if(l===u)return ln;var e=t?--u:l++;return c&&c[e]}}(s,l):function(i,a,s){var c,l=i&&i.array,u=s>n?0:n-s>>a,p=1+(r-s>>a);return p>o&&(p=o),function(){for(;;){if(c){var n=c();if(n!==ln)return n;c=null}if(u===p)return ln;var r=t?--p:u++;c=e(l&&l[r],a-5,s+(r<>>n&i,u=e&&l0){var p=e&&e.array[l],f=dn(p,t,n-5,r,o,a);return f===p?e:((c=hn(e,t)).array[l]=f,c)}return u&&e.array[l]===o?e:(a&&s(a),c=hn(e,t),void 0===o&&l===c.array.length-1?c.array.pop():c.array[l]=o,c)}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&i],r-=5;return n}}function gn(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,s=o+t,l=void 0===n?a:n<0?a+n:o+n;if(s===o&&l===a)return e;if(s>=l)return e.clear();for(var u=e._level,p=e._root,f=0;s+f<0;)p=new sn(p&&p.array.length?[void 0,p]:[],r),f+=1<<(u+=5);f&&(s+=f,o+=f,l+=f,a+=f);for(var d=yn(a),h=yn(l);h>=1<d?new sn([],r):m;if(m&&h>d&&s5;v-=5){var b=d>>>v&i;y=y.array[b]=hn(y.array[b],r)}y.array[d>>>5&i]=m}if(l=h)s-=h,l-=h,u=5,p=null,g=g&&g.removeBefore(r,0,s);else if(s>o||h>>u&i;if(w!==h>>>u&i)break;w&&(f+=(1<o&&(p=p.removeBefore(r,u,s-f)),p&&h>>5<<5}var vn,bn=function(e){function t(e){return null==e?En():se(e)?e:En().withMutations((function(t){var n=O(e);$e(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 Sn(this,e,t)},t.prototype.remove=function(e){return Sn(this,e,a)},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}(Lt);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(qt(),fn()))}function Sn(e,t,n){var r,i,s=e._map,c=e._list,l=s.get(t),u=void 0!==l;if(n===a){if(!u)return e;c.size>=o&&c.size>=2*s.size?(r=(i=c.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=l===c.size-1?c.pop():c.set(l,void 0))}else if(u){if(n===c.get(l)[1])return e;r=s,i=c.set(l,[t,n])}else r=s.set(t,c.size),i=c.set(c.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e.__altered=!0,e):wn(r,i)}bn.isOrderedMap=se,bn.prototype[T]=!0,bn.prototype[r]=bn.prototype.remove;var xn="@@__IMMUTABLE_STACK__@@";function On(e){return Boolean(e&&e[xn])}var Cn=function(e){function t(e){return null==e?Dn():On(e)?e:Dn().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):jn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&On(t))return t;$e(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):jn(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):Dn()},t.prototype.slice=function(t,n){if(f(t,n,this.size))return this;var r=d(t,this.size);if(h(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):jn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):0===this.size?Dn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new $(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 $(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new R((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}}))},t}(C);Cn.isStack=On;var kn,Mn=Cn.prototype;function jn(e,t,n,r){var o=Object.create(Mn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return kn||(kn=jn(0))}Mn[xn]=!0,Mn.shift=Mn.pop,Mn.unshift=Mn.push,Mn.unshiftAll=Mn.pushAll,Mn.withMutations=Dt,Mn.wasAltered=Tt,Mn.asImmutable=It,Mn["@@transducer/init"]=Mn.asMutable=At,Mn["@@transducer/step"]=function(e,t){return e.unshift(t)},Mn["@@transducer/result"]=function(e){return e.asImmutable()};var An="@@__IMMUTABLE_SET__@@";function In(e){return Boolean(e&&e[An])}function Tn(e){return In(e)&&L(e)}function Ln(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)||S(e)!==S(t)||L(e)!==L(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!_(e);if(L(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&le(o[1],e)&&(n||le(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 i=e;e=t,t=i}var s=!0,c=t.__iterate((function(t,r){if(n?!e.has(t):o?!le(t,e.get(r,a)):!le(e.get(r,a),t))return s=!1,!1}));return s&&e.size===c}function Nn(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 zn=function(e){function t(t){return null==t?Hn():In(t)&&!L(t)?t:Hn().withMutations((function(n){var r=e(t);$e(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(O(e).keySeq())},t.intersect=function(e){return(e=x(e).toArray()).length?Bn.intersect.apply(t(e.pop()),e):Hn()},t.union=function(e){return(e=x(e).toArray()).length?Bn.union.apply(t(e.pop()),e):Hn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Fn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Fn(this,this._map.remove(e))},t.prototype.clear=function(){return Fn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Fn(this,this._map.mapEntries((function(o){var i=o[1],a=e.call(t,i,i,n);return a!==i&&(r=!0),[a,a]}),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=pe((t=ue(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+ar(de(e),de(t))|0}:function(e,t){r=r+ar(de(e),de(t))|0}:t?function(e){r=31*r+de(e)|0}:function(e){r=r+de(e)|0}),r)}(this))}});var Zn=x.prototype;Zn[y]=!0,Zn[z]=Zn.values,Zn.toJSON=Zn.toArray,Zn.__toStringMapper=nt,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,Nn(O,{flip:function(){return Ke(this,Ie(this))},mapEntries:function(e,t){var n=this,r=0;return Ke(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ke(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Gn=O.prototype;Gn[b]=!0,Gn[z]=Zn.entries,Gn.toJSON=Qn,Gn.__toStringMapper=function(e,t){return nt(t)+": "+nt(e)},Nn(C,{toKeyedSeq:function(){return new Me(this,!1)},filter:function(e,t){return Ke(this,Ne(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 Ke(this,Le(this,!1))},slice:function(e,t){return Ke(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=d(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ke(this,1===n?r:r.concat(Ze(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 Ke(this,Re(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 ar(e,t){return e^t+2654435769+(e<<6)+(e>>2)}Jn.has=Zn.includes,Jn.contains=Jn.includes,Jn.keys=Jn.values,Nn(Q,Gn),Nn(Z,$n),Nn(G,Jn);var sr=function(e){function t(e){return null==e?pr():Tn(e)?e:pr().withMutations((function(t){var n=k(e);$e(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(O(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(zn);sr.isOrderedSet=Tn;var cr,lr=sr.prototype;function ur(e,t){var n=Object.create(lr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function pr(){return cr||(cr=ur(En()))}lr[T]=!0,lr.zip=$n.zip,lr.zipWith=$n.zipWith,lr.zipAll=$n.zipAll,lr.__empty=pr,lr.__make=ur;var fr={LeftThenRight:-1,RightThenLeft:1},dr=function(e,t){var n;!function(e){if(A(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(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),c=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var l=0;l2?[]:void 0,{"":e})}function Sr(e,t,n,r,o,i){if("string"!=typeof n&&!I(n)&&(q(n)||U(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 a=t.call(i,r,W(n).map((function(r,i){return Sr(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),a}return n}function _r(e,t){return S(t)?t.toList():w(t)?t.toMap():t.toSet()}var xr="4.3.7",Or=x;const Cr={version:xr,Collection:x,Iterable:x,Seq:W,Map:Lt,OrderedMap:bn,List:on,Stack:Cn,Set:zn,OrderedSet:sr,PairSorting:fr,Record:dr,Range:Vn,Repeat:wr,is:le,fromJS:Er,hash:de,isImmutable:I,isCollection:v,isKeyed:w,isIndexed:S,isAssociative:_,isOrdered:L,isValueObject:ce,isPlainObject:et,isSeq:j,isList:rn,isMap:ae,isOrderedMap:se,isStack:On,isSet:In,isOrderedSet:Tn,isRecord:A,get:ot,getIn:Yn,has:rt,hasIn:Wn,merge:wt,mergeDeep:St,mergeWith:Et,mergeDeepWith:_t,remove:at,removeIn:ft,set:st,setIn:ut,update:ht,updateIn:ct}},223:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(c,l):l}e.exports=function(e,c){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];c=c||{};var p=1,f=1;function d(e){var t=e.match(n);t&&(p+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:p,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:p,column:f},this.source=c.source}m.prototype.content=e;var g=[];function y(t){var n=new Error(c.source+":"+p+":"+f+": "+t);if(n.reason=t,n.filename=c.source,n.line=p,n.column=f,n.source=e,!c.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return d(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;l!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,l===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return f+=2,d(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function S(){var e=h(),n=v(o);if(n){if(E(),!v(i))return y("property missing ':'");var r=v(a),c=e({type:"declaration",property:u(n[0].replace(t,l)),value:r?u(r[0].replace(t,l)):l});return v(s),c}}return b(),function(){var e,t=[];for(w(t);e=S();)!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 i in r)t[r[i]]=0;for(i=1;i<=n;i++){var a=e[i];for(var s in a)t[l=a[s]]===i-1&&(t[l]=i)}var c=[];for(var i in o){var l;t[l=o[i]]===n&&c.push(l)}return c}function n(e,n){if(!n)return t(e);for(var o=[],i=0;i-1&&o.push(e[i]);return o}function r(e,t){for(var n=0;n{},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 i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{"use strict";var r=n(2985);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==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:i,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"},9493: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)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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)&&i(t,e,n);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=c(n(1609)),u=s(n(9768)),p=n(9768),f=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.buttonStyles={},n.confirmButtonElement=null,n.cancelButtonElement=null,n.setConfirmButtonElementRef=function(e){n.confirmButtonElement=e},n.setCancelButtonElementRef=function(e){n.cancelButtonElement=e},n.getButtonStyle=function(e){if("error"===e&&(e="danger"),null==n.buttonStyles[e]){var r=t.styles[e]||t.styles.default;n.buttonStyles[e]={borderColor:""+r.borderColor,boxShadow:"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px "+r.shadowColor}}return n.buttonStyles[e]},n}return o(t,e),t.prototype.componentDidMount=function(){this.focusButton()},t.prototype.componentDidUpdate=function(e){var t=this;e.type===this.props.type&&e.confirmBtnText===this.props.confirmBtnText&&e.title===this.props.title||setTimeout((function(){return t.focusButton()}),0)},t.prototype.focusButton=function(){if(this.props.focusCancelBtn&&this.cancelButtonElement)try{this.cancelButtonElement.focus()}catch(e){}else if(this.props.focusConfirmBtn&&this.confirmButtonElement)try{this.confirmButtonElement.focus()}catch(e){}},t.prototype.confirmButtonRender=function(){var e=this;if(!this.props.showConfirm)return!1;var t="error"===this.props.confirmBtnBsStyle?"danger":this.props.confirmBtnBsStyle,n=Object.assign({},u.button,this.getButtonStyle(t),this.props.confirmBtnStyle||{});return l.default.createElement("a",{ref:this.setConfirmButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.confirmBtnCssClass+" "+(this.props.disabled?"disabled":""),onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.disabled||e.props.onConfirm()}},this.props.confirmBtnText)},t.prototype.cancelButtonRender=function(){var e=this;if(!this.props.showCancel)return!1;var t="error"===this.props.cancelBtnBsStyle?"danger":this.props.cancelBtnBsStyle,n=Object.assign({},u.button,this.props.cancelBtnStyle||{});return l.default.createElement("a",{ref:this.setCancelButtonElementRef,href:"#",style:n,className:"btn btn-"+this.props.btnSize+" btn-"+t+" "+this.props.cancelBtnCssClass,onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onCancel()}},this.props.cancelBtnText)},t.prototype.render=function(){return!(!this.props.showConfirm&&!this.props.showCancel)&&l.default.createElement("p",{style:p.actions},this.props.customButtons?this.props.customButtons:l.default.createElement(l.default.Fragment,null,this.props.reverseButtons?l.default.createElement(l.default.Fragment,null,this.confirmButtonRender(),this.cancelButtonRender()):l.default.createElement(l.default.Fragment,null,this.cancelButtonRender(),this.confirmButtonRender())))},t.defaultProps={confirmBtnText:"OK",confirmBtnBsStyle:"primary",confirmBtnCssClass:"",confirmBtnStyle:{},cancelBtnText:"Cancel",cancelBtnBsStyle:"link",cancelBtnCssClass:"",cancelBtnStyle:{},focusConfirmBtn:!0,focusCancelBtn:!1,showConfirm:!0,showCancel:!1,reverseButtons:!1,btnSize:"lg"},t.styles={primary:{borderColor:"#286090",shadowColor:"rgb(165, 202, 234)"},success:{borderColor:"#4cae4c",shadowColor:"rgba(76, 174, 76, 0.6)"},info:{borderColor:"#46b8da",shadowColor:"rgba(70, 184, 218, 0.6)"},danger:{borderColor:"#d43f3a",shadowColor:"rgba(212, 63, 58, 0.6)"},warning:{borderColor:"#eea236",shadowColor:"rgba(238, 162, 54, 0.6)"},default:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"},secondary:{borderColor:"#cccccc",shadowColor:"rgba(204, 204, 204, 0.6)"}},t}(l.default.Component);t.default=f},9977: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)),i=n(9768);t.default=function(e){var t=e.children;return o.default.createElement("div",{style:i.contentContainer},t)}},3796: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}),i=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},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(1609)),c=i(n(9768)),l=Object.assign({},c.icon,c.iconCustom);t.default=function(e){var t="url("+e.iconUrl,n=Object.assign({},l,{backgroundImage:t});return s.default.createElement("div",{style:n})}},2983: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}),i=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},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(1609)),c=i(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconError)},s.default.createElement("span",{style:c.iconErrorX},s.default.createElement("span",{style:Object.assign({},c.iconErrorLine,c.iconErrorLineLeft)}),s.default.createElement("span",{style:Object.assign({},c.iconErrorLine,c.iconErrorLineRight)})))}},5827: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}),i=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},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(1609)),c=i(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconInfo)},s.default.createElement("div",{style:c.iconInfoBefore}),s.default.createElement("div",{style:c.iconInfoAfter}))}},8276: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)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=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]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=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)&&i(t,e,n);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=c(n(1609)),u=s(n(9768)),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputElement=null,t.setInputElementRef=function(e){t.inputElement=e},t}return o(t,e),t.prototype.componentDidMount=function(){if("input"===this.props.type)try{this.inputElement.focus()}catch(e){}},t.prototype.render=function(){var e=this;return l.default.createElement("div",{style:{position:"relative"}},"textarea"===this.props.inputType?l.default.createElement("textarea",{ref:this.setInputElementRef,rows:4,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}):l.default.createElement("input",{type:this.props.inputType,ref:this.setInputElementRef,className:"form-control",value:this.props.inputValue||"",onChange:function(t){return e.props.onChangeInput(t)},onKeyDown:function(t){return e.props.onInputKeyDown(t)},placeholder:this.props.placeholder}),this.props.showValidationMessage&&l.default.createElement("div",{style:u.inputErrorIcon},l.default.createElement("div",{style:Object.assign({},u.inputErrorIconBeforeAfter,u.inputErrorIconBefore)}),l.default.createElement("div",{style:Object.assign({},u.inputErrorIconBeforeAfter,u.inputErrorIconAfter)})))},t}(l.default.Component);t.default=p},7004: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)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?{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,i="";if(o)e.openAnim&&(t.isAnimation(e.openAnim)?i=t.animationFromProp(e.openAnim):t.isAnimation(t.defaultProps.openAnim)&&(i=t.animationFromProp(t.defaultProps.openAnim)));else if(n.closingAction&&e.closeAnim){var a=void 0;t.isAnimation(e.closeAnim)?a=e.closeAnim:t.isAnimation(t.defaultProps.closeAnim)&&(a=t.defaultProps.closeAnim),a&&(i=t.animationFromProp(a),r(a.duration),o=!0)}return{show:o,animation:i}},t.prototype.render=function(){return this.state.show?p.default.createElement("div",null,this.getInjectedStyles(),p.default.createElement(S.default,{show:!this.props.hideOverlay,onClick:this.onClickOutside,onKeyDown:this.onKeyDown},p.default.createElement("div",{style:this.getComposedStyle(),tabIndex:0,onKeyDown:this.onKeyDown,onClick:this.onClickInside,className:"sweet-alert "+this.props.customClass},this.getCloseButton(),this.getIcon(),p.default.createElement(w.default,null,this.props.title),p.default.createElement(E.default,null,this.getAlertContent()),this.getInputField(),this.getValidationMessage(),this.getButtons()))):null},t.propTypes=O.SWEET_ALERT_PROP_TYPES,t.defaultProps=C.SWEET_ALERT_DEFAULT_PROPS,t.SuccessIcon=f.default,t.ErrorIcon=d.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}(p.default.Component);t.default=D},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)),i=n(9768);t.default=function(e){var t=e.children;return o.default.createElement("h2",{style:i.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}),i=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},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(1609)),c=i(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:c.validationMessage},s.default.createElement("div",{style:c.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}),i=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},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(1609)),c=i(n(9768));t.default=function(){return s.default.createElement("div",{style:Object.assign({},c.icon,c.iconWarning)},s.default.createElement("span",{style:c.iconWarningBody}),s.default.createElement("span",{style:c.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"}},4417:(e,t,n)=>{window,e.exports=function(e,t,n){return i={},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+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","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 p(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 f(e,t){var n=new p(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(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({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,c;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<=(c=e.search(this.re.host_fuzzy_test))&&(this.__index__<0||cthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),0<=this.__index__},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];0<=this.__index__&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.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},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},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 i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==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:i,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),i=n(0),a=n.n(i),s=n(3),c=n(4),l=n(2),u=n.n(l);function p(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,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=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 p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return E(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},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)===a},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||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)},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}},5798:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(5890),o=n(1609),i=n(4547),a=n(7533),s=n(4350),c=(n(5795),n(3327),(0,o.forwardRef)((function(e,t){var n=(0,s.u)(e),c=(0,a.u)(n);return o.createElement(i.S,(0,r.A)({ref:t},c))})))},4547:(e,t,n)=>{"use strict";n.d(t,{S:()=>fe});var r=n(5890),o=n(6313),i=n(2367),a=n(9755),s=n(5007),c=n(4296),l=n(2663),u=n(2410);function p(e){return function(e){if(Array.isArray(e))return(0,l.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 f=n(1609),d=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,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&l){var p=s?" disabled":"",f="".concat(c?" selected":"").concat(p);return"".concat(i).concat(f,", ").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,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,p=c.ariaLiveMessages,d=c.getOptionLabel,m=c.inputValue,g=c.isMulti,y=c.isOptionDisabled,v=c.isSearchable,E=c.menuIsOpen,S=c.options,_=c.screenReaderStatus,x=c.tabSelectsValue,O=c.isLoading,C=c["aria-label"],k=c["aria-live"],M=(0,f.useMemo)((function(){return(0,o.A)((0,o.A)({},w),p||{})}),[p]),j=(0,f.useMemo)((function(){var e,n="";if(t&&M.onChange){var r=t.option,i=t.options,a=t.removedValue,c=t.removedValues,l=t.value,u=a||r||(e=l,Array.isArray(e)?null:e),p=u?d(u):"",f=i||c||void 0,h=f?f.map(d):[],m=(0,o.A)({isDisabled:u&&y(u,s),label:p,labels:h},t);n=M.onChange(m)}return n}),[t,M,y,s,d]),D=(0,f.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&M.onFocus){var a={focused:t,label:d(t),isDisabled:y(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=M.onFocus(a)}return e}),[n,r,d,y,M,i,s,u]),A=(0,f.useMemo)((function(){var e="";if(E&&S.length&&!O&&M.onFilter){var t=_({count:i.length});e=M.onFilter({inputValue:m,resultsMessage:t})}return e}),[i,m,E,M,S,_,O]),I="initial-input-focus"===(null==t?void 0:t.action),T=(0,f.useMemo)((function(){var e="";if(M.guidance){var t=r?"value":E?"menu":"input";e=M.guidance({"aria-label":C,context:t,isDisabled:n&&y(n,s),isMulti:g,isSearchable:v,tabSelectsValue:x,isInitialFocus:I})}return e}),[C,n,r,g,y,v,E,M,s,x,I]),L=(0,h.Y)(f.Fragment,null,(0,h.Y)("span",{id:"aria-selection"},j),(0,h.Y)("span",{id:"aria-focused"},D),(0,h.Y)("span",{id:"aria-results"},A),(0,h.Y)("span",{id:"aria-guidance"},T));return(0,h.Y)(f.Fragment,null,(0,h.Y)(b,{id:l},I&&L),(0,h.Y)(b,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!I&&L))},S=[{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źẑżžẓẕƶȥɀⱬꝣ"}],_=new RegExp("["+S.map((function(e){return e.letters})).join("")+"]","g"),x={},O=0;O0,m=p-f-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=p,g=!0,a.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),d.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),p=(0,f.useCallback)((function(e){u(e,e.deltaY)}),[u]),h=(0,f.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),m=(0,f.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;u(e,t)}),[u]),g=(0,f.useCallback)((function(e){if(e){var t=!!d.s&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}}),[m,h,p]),y=(0,f.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))}),[m,h,p]);return(0,f.useEffect)((function(){if(t){var e=l.current;return g(e),function(){y(e)}}}),[t,g,y]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,f.useRef)({}),i=(0,f.useRef)(null),a=(0,f.useCallback)((function(e){if(F){var t=document.body,n=t&&t.style;if(r&&L.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&U<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(N).forEach((function(e){var t=N[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&B()&&(t.addEventListener("touchmove",P,H),e&&(e.addEventListener("touchstart",R,H),e.addEventListener("touchmove",z,H))),U+=1}}),[r]),s=(0,f.useCallback)((function(e){if(F){var t=document.body,n=t&&t.style;U=Math.max(U-1,0),r&&U<1&&L.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&B()&&(t.removeEventListener("touchmove",P,H),e&&(e.removeEventListener("touchstart",R,H),e.removeEventListener("touchmove",z,H)))}}),[r]);return(0,f.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return(0,h.Y)(f.Fragment,null,n&&(0,h.Y)("div",{onClick:K,css:V}),t((function(e){o(e),i(e)})))}var q={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:q,value:"",onChange:function(){}})};function Q(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 Z(){return Q(/^Mac/i)}var G={clearIndicator:d.a,container:d.b,control:d.d,dropdownIndicator:d.e,group:d.g,groupHeading:d.f,indicatorsContainer:d.i,indicatorSeparator:d.h,input:d.j,loadingIndicator:d.l,loadingMessage:d.k,menu:d.m,menuList:d.n,menuPortal:d.o,multiValue:d.p,multiValueLabel:d.q,multiValueRemove:d.t,noOptionsMessage:d.u,option:d.v,placeholder:d.w,singleValue:d.x,valueContainer:d.y},$={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,d.z)(),captureMenuScroll:!(0,d.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:A,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,c=n.matchFrom,l=s?D(t):t,u=s?D(a(e)):a(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),i&&(l=j(l),u=M(u)),"start"===c?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,d.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:ce(e,t,n),label:ie(e,t),value:ae(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 i=X(e,n,t,r);return re(e,i)?i:void 0})).filter(d.K)}function te(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,p(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,p(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,i=t.isSelected,a=t.label,s=t.value;return(!ue(e)||!i)&&le(e,{label:a,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},ie=function(e,t){return e.getOptionLabel(t)},ae=function(e,t){return e.getOptionValue(t)};function se(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ce(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=ae(e,t);return n.some((function(t){return ae(e,t)===r}))}function le(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},pe=1,fe=function(e){(0,s.A)(n,e);var t=(0,c.A)(n);function n(e){var r;if((0,i.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=Z()||Q(/^iPhone/i)||Q(/^iPad/i)||Z()&&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,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),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,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),c=r.isOptionDisabled(e,a);if(s){var l=r.getOptionValue(e);r.setValue((0,d.B)(a.filter((function(e){return r.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(c)return void r.ariaOnChange((0,d.C)(e),{action:"select-option",option:e,name:i});o?r.setValue((0,d.B)([].concat(p(a),[e])),"select-option",e):r.setValue((0,d.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=(0,d.D)(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,d.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),i=(0,d.D)(e,o,o[0]||null);n&&r.onChange(i,{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||i>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,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,l=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(c||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)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||!l||!p||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++pe),r.state.selectValue=(0,d.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var a=r.getFocusableOptionsWithIds(),s=r.buildFocusableOptions(),c=s.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=a,r.state.focusedOption=s[c],r.state.focusedOptionId=oe(a,s[c])}return r}return(0,a.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,d.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,d.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,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(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 i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i: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,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+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($):(0,o.A)((0,o.A)({},$),this.props.theme):$}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:c,isRtl:l,options:u,selectOption:i,selectProps:s,setValue:a,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 ce(this.props,e,t)}},{key:"filterOption",value:function(e,t){return le(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,i=e.inputId,a=e.inputValue,s=e.tabIndex,c=e.form,l=e.menuIsOpen,u=e.required,p=this.getComponents().Input,h=this.state,m=h.inputIsHidden,g=h.ariaSelection,y=this.commonProps,v=i||this.getElementId("input"),b=(0,o.A)((0,o.A)((0,o.A)({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"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?f.createElement(p,(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:c,type:"text",value:a},b)):f.createElement(T,(0,r.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:d.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:c,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,l=this.commonProps,u=this.props,p=u.controlShouldRenderValue,d=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()||!p)return m?null:f.createElement(c,(0,r.A)({},l,{key:"placeholder",isDisabled:d,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var c=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return f.createElement(n,(0,r.A)({},l,{components:{Container:o,Label:i,Remove:a},isFocused:c,isDisabled:d,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 f.createElement(s,(0,r.A)({},l,{data:E,isDisabled:d}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,(0,r.A)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?f.createElement(e,(0,r.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return f.createElement(n,(0,r.A)({},o,{isDisabled:i,isFocused:a}))}},{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,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return f.createElement(e,(0,r.A)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,p=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,S=m.menuIsOpen,_=m.menuPlacement,x=m.menuPosition,O=m.menuPortalTarget,C=m.menuShouldBlockScroll,k=m.menuShouldScrollIntoView,M=m.noOptionsMessage,j=m.onMenuScrollToTop,D=m.onMenuScrollToBottom;if(!S)return null;var A,I=function(t,n){var o=t.type,i=t.data,a=t.isDisabled,s=t.isSelected,c=t.label,l=t.value,d=h===i,m=a?void 0:function(){return e.onOptionHover(i)},g=a?void 0:function(){return e.selectOption(i)},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 f.createElement(u,(0,r.A)({},p,{innerProps:v,data:i,isDisabled:a,isSelected:s,key:y,label:c,type:o,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())A=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,s=t.index,c="".concat(e.getElementId("group"),"-").concat(s),l="".concat(c,"-heading");return f.createElement(n,(0,r.A)({},p,{key:c,data:i,options:a,Heading:o,headingProps:{id:l,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 T=b({inputValue:y});if(null===T)return null;A=f.createElement(c,p,T)}else{var L=M({inputValue:y});if(null===L)return null;A=f.createElement(l,p,L)}var N={minMenuHeight:w,maxMenuHeight:E,menuPlacement:_,menuPosition:x,menuShouldScrollIntoView:k},P=f.createElement(d.M,(0,r.A)({},p,N),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,c=o.maxHeight;return f.createElement(i,(0,r.A)({},p,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),f.createElement(Y,{captureEnabled:g,onTopArrive:j,onBottomArrive:D,lockEnabled:C},(function(t){return f.createElement(a,(0,r.A)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:e.getElementId("listbox")},isLoading:v,maxHeight:c,focusedOption:h}),A)})))}));return O||"fixed"===x?f.createElement(s,(0,r.A)({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:_,menuPosition:x}),P):P}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return f.createElement(W,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return f.createElement("input",{name:i,type:"hidden",value:c})}var l=s.length>0?s.map((function(t,n){return f.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):f.createElement("input",{name:i,type:"hidden",value:""});return f.createElement("div",null,l)}var u=s[0]?this.getOptionValue(s[0]):"";return f.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,a=t.isFocused,s=t.selectValue,c=this.getFocusableOptions();return f.createElement(E,(0,r.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:a,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,c=a.id,l=a.isDisabled,u=a.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return f.createElement(o,(0,r.A)({},d,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),f.createElement(t,(0,r.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:u}),f.createElement(i,(0,r.A)({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),f.createElement(n,(0,r.A)({},d,{isDisabled:l}),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,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,c=t.prevWasFocused,l=t.instancePrefix,u=e.options,p=e.value,f=e.menuIsOpen,h=e.inputValue,m=e.isMulti,g=(0,d.H)(p),y={};if(n&&(p!==n.value||u!==n.options||f!==n.menuIsOpen||h!==n.inputValue)){var v=f?function(e,t){return te(ee(e,t))}(e,g):[],b=f?ne(ee(e,g),"".concat(l,"-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 S=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=a,x=s&&c;return s&&!x&&(_={value:(0,d.D)(m,g,g[0]||null),options:g,action:"initial-input-focus"},x=!c),"initial-input-focus"===(null==a?void 0:a.action)&&(_=null),(0,o.A)((0,o.A)((0,o.A)({},y),S),{},{prevProps:e,ariaSelection:_,prevWasFocused:x})}}]),n}(f.Component);fe.defaultProps=J},6012:(e,t,n)=>{"use strict";n.d(t,{A:()=>G,B:()=>oe,C:()=>re,D:()=>ne,E:()=>B,F:()=>Xe,G:()=>V,H:()=>F,I:()=>Q,J:()=>z,K:()=>te,L:()=>K,M:()=>he,a:()=>Ae,b:()=>we,d:()=>Pe,e:()=>De,f:()=>Be,g:()=>Re,h:()=>Ie,i:()=>Se,j:()=>Ue,k:()=>ve,l:()=>Le,m:()=>fe,n:()=>me,o:()=>be,p:()=>Ye,q:()=>qe,r:()=>ie,s:()=>ee,t:()=>We,u:()=>ye,v:()=>Ze,w:()=>Ge,x:()=>$e,y:()=>Ee,z:()=>Z});var r=n(6313),o=n(5890),i=n(2588),a=n(9086),s=n(2511),c=n(9826),l=n(3205),u=n(1609),p=n(5795);const f=Math.min,d=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 S(e){return!!y()&&(e instanceof Element||e instanceof b(e).Element)}function _(e){return!!y()&&(e instanceof HTMLElement||e instanceof b(e).HTMLElement)}function x(e){return!(!y()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof b(e).ShadowRoot)}function O(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function C(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||x(e)&&e.host||w(e);return x(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(v(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:_(t)&&O(t)?t:k(t)}function M(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=k(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=b(o);if(i){const e=j(a);return t.concat(a,a.visualViewport||[],O(o)?o:[],e&&n?M(e):[])}return t.concat(o,M(o,[],n))}function j(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function D(e){return S(e)?e:e.contextElement}function A(e){const t=D(e);if(!_(t))return g(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=C(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=h(n)!==i||h(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?h(n.width):n.width)/r,s=(i?h(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const I=g(0);function T(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 L(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=D(e);let a=g(1);t&&(r?S(r)&&(a=A(r)):a=A(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==b(e))&&t}(i,n,r)?T(i):g(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,p=o.height/a.y;if(i){const e=b(i),t=r&&S(r)?b(r):r;let n=e,o=j(n);for(;o&&r&&t!==n;){const e=A(o),t=o.getBoundingClientRect(),r=C(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,p*=e.y,c+=i,l+=a,n=b(o),o=j(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:p,x:c,y:l})}var N=n(3327),P=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],z=function(){};function R(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 Y(e){return V(e)?window.pageYOffset:e.scrollTop}function q(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]:z,o=Y(e),i=t-o,a=0;!function t(){var s,c=i*((s=(s=a+=10)/n-1)*s*s+1)+o;q(e,c),an.bottom?q(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(x>=h&&!a)return i&&W(c,O,k),{placement:"bottom",maxHeight:t};if(!a&&x>=r||a&&S>=r)return i&&W(c,O,k),{placement:"bottom",maxHeight:a?S-b:x-b};if("auto"===o||a){var M=t,j=a?E:_;return j>=r&&(M=Math.min(j-b-s,t)),{placement:"top",maxHeight:M}}if("bottom"===o)return i&&q(c,O),{placement:"bottom",maxHeight:t};break;case"top":if(E>=h)return{placement:"top",maxHeight:t};if(_>=h&&!a)return i&&W(c,C,k),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&E>=r){var D=t;return(!a&&_>=r||a&&E>=r)&&(D=a?E-w:_-w),i&&W(c,C,k),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:c&&!t,isFixedPosition:t,controlHeight:E});g(r.maxHeight),w(r.placement),null==p||p(r.placement)}}),[o,i,s,c,n,p,E]),t({ref:f,placerProps:(0,r.A)((0,r.A)({},e),{},{placement:b||pe(i),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,i=n.colors;return(0,r.A)({textAlign:"center"},t?{}:{color:i.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,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,r.A)({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},Se=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},_e=["size"],xe=["innerProps","isRtl","size"],Oe={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ce=function(e){var t=e.size,n=(0,s.A)(e,_e);return(0,i.Y)("svg",(0,o.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Oe},n))},ke=function(e){return(0,i.Y)(Ce,(0,o.A)({size:20},e),(0,i.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"}))},Me=function(e){return(0,i.Y)(Ce,(0,o.A)({size:20},e),(0,i.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"}))},je=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.A)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},De=je,Ae=je,Ie=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return(0,r.A)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},Te=(0,i.i7)(ce||(le=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],ue||(ue=le.slice(0)),ce=Object.freeze(Object.defineProperties(le,{raw:{value:Object.freeze(ue)}})))),Le=function(e,t){var n=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.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?a.neutral60:a.neutral20,padding:2*s})},Ne=function(e){var t=e.delay,n=e.offset;return(0,i.Y)("span",{css:(0,i.AH)({animation:"".concat(Te," 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,i=e.theme,a=i.colors,s=i.borderRadius,c=i.spacing;return(0,r.A)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},ze=["data"],Re=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,i=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*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},Fe=["innerRef","isDisabled","isHidden","inputClassName"],Ue=function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,r.A)((0,r.A)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Ke),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},He={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ke={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"},He)},Ve=function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},He)},Ye=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors;return(0,r.A)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},qe=function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,r.A)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},We=function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,r.A)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Qe=function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",n,t)},Ze=function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,c=a.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:i?c.primary:o?c.primary25:"transparent",color:n?c.neutral20:i?c.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?c.primary:c.primary50}})},Ge=function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,r.A)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},$e=function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return(0,r.A)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Je={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.Y)(ke,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,s=e.innerProps,c=e.menuIsOpen;return(0,i.Y)("div",(0,o.A)({ref:a},H(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":c}),s,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.Y)(Me,null))},DownChevron:Me,CrossIcon:ke,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,s=e.Heading,c=e.headingProps,l=e.innerProps,u=e.label,p=e.theme,f=e.selectProps;return(0,i.Y)("div",(0,o.A)({},H(e,"group",{group:!0}),l),(0,i.Y)(s,(0,o.A)({},c,{selectProps:f,theme:p,getStyles:r,getClassNames:a,cx:n}),u),(0,i.Y)("div",null,t))},GroupHeading:function(e){var t=U(e);t.data;var n=(0,s.A)(t,ze);return(0,i.Y)("div",(0,o.A)({},H(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.Y)("span",(0,o.A)({},t,H(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=U(e),a=r.innerRef,c=r.isDisabled,l=r.isHidden,u=r.inputClassName,p=(0,s.A)(r,Fe);return(0,i.Y)("div",(0,o.A)({},H(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.Y)("input",(0,o.A)({className:t({input:!0},u),ref:a,style:Ve(l),disabled:c},p)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,c=void 0===a?4:a,l=(0,s.A)(e,xe);return(0,i.Y)("div",(0,o.A)({},H((0,r.A)((0,r.A)({},l),{},{innerProps:t,isRtl:n,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.Y)(Ne,{delay:0,offset:n}),(0,i.Y)(Ne,{delay:160,offset:!0}),(0,i.Y)(Ne,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return(0,i.Y)("div",(0,o.A)({},H(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,c=e.innerProps,l=e.menuPlacement,h=e.menuPosition,g=(0,u.useRef)(null),y=(0,u.useRef)(null),v=(0,u.useState)(pe(l)),b=(0,a.A)(v,2),E=b[0],S=b[1],_=(0,u.useMemo)((function(){return{setPortalPlacement:S}}),[]),x=(0,u.useState)(null),O=(0,a.A)(x,2),C=O[0],k=O[1],j=(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==C?void 0:C.offset)&&e.left===(null==C?void 0:C.rect.left)&&e.width===(null==C?void 0:C.rect.width)||k({offset:n,rect:e})}}),[s,h,E,null==C?void 0:C.offset,null==C?void 0:C.rect.left,null==C?void 0:C.rect.width]);(0,N.A)((function(){j()}),[j]);var A=(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:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=D(e),u=o||i?[...l?M(l):[],...M(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=l&&s?function(e,t){let n,r=null;const o=w(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const{left:l,top:u,width:p,height:h}=e.getBoundingClientRect();if(s||t(),!p||!h)return;const g={rootMargin:-m(u)+"px "+-m(o.clientWidth-(l+p))+"px "+-m(o.clientHeight-(u+h))+"px "+-m(l)+"px",threshold:d(0,f(1,c))||1};let y=!0;function v(e){const t=e[0].intersectionRatio;if(t!==c){if(!y)return a();t?a(!1,t):n=setTimeout((()=>{a(!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),i}(l,n):null;let h,g=-1,y=null;a&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),l&&!c&&y.observe(l),y.observe(t));let v=c?L(e):null;return c&&function t(){const r=L(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),i&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=y)||e.disconnect(),y=null,c&&cancelAnimationFrame(h)}}(s,g.current,j,{elementResize:"ResizeObserver"in window}))}),[s,j]);(0,N.A)((function(){A()}),[A]);var I=(0,u.useCallback)((function(e){g.current=e,A()}),[A]);if(!t&&"fixed"!==h||!C)return null;var T=(0,i.Y)("div",(0,o.A)({ref:I},H((0,r.A)((0,r.A)({},e),{},{offset:C.offset,position:h,rect:C.rect}),"menuPortal",{"menu-portal":!0}),c),n);return(0,i.Y)(de.Provider,{value:_},t?(0,p.createPortal)(T,t):T)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,c=(0,s.A)(e,se);return(0,i.Y)("div",(0,o.A)({},H((0,r.A)((0,r.A)({},c),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,c=(0,s.A)(e,ae);return(0,i.Y)("div",(0,o.A)({},H((0,r.A)((0,r.A)({},c),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,a=e.innerProps,s=e.isDisabled,c=e.removeProps,l=e.selectProps,u=n.Container,p=n.Label,f=n.Remove;return(0,i.Y)(u,{data:o,innerProps:(0,r.A)((0,r.A)({},H(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},(0,i.Y)(p,{data:o,innerProps:(0,r.A)({},H(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,i.Y)(f,{data:o,innerProps:(0,r.A)((0,r.A)({},H(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},c),selectProps:l}))},MultiValueContainer:Qe,MultiValueLabel:Qe,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({role:"button"},n),t||(0,i.Y)(ke,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,s=e.innerRef,c=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:s,"aria-disabled":n},c),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return(0,i.Y)("div",(0,o.A)({},H(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.Y)("div",(0,o.A)({},H(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,a=e.hasValue;return(0,i.Y)("div",(0,o.A)({},H(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),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),i=n(1609),a=n(4547),s=(n(2096),n(5795),n(3327),(0,i.forwardRef)((function(e,t){var n=(0,r.u)(e);return i.createElement(a.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),i=n(9086),a=n(2511),s=n(1609),c=n(6012),l=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function u(e){var t=e.defaultOptions,n=void 0!==t&&t,u=e.cacheOptions,p=void 0!==u&&u,f=e.loadOptions;e.options;var d=e.isLoading,h=void 0!==d&&d,m=e.onInputChange,g=e.filterOption,y=void 0===g?null:g,v=(0,a.A)(e,l),b=v.inputValue,w=(0,s.useRef)(void 0),E=(0,s.useRef)(!1),S=(0,s.useState)(Array.isArray(n)?n:void 0),_=(0,i.A)(S,2),x=_[0],O=_[1],C=(0,s.useState)(void 0!==b?b:""),k=(0,i.A)(C,2),M=k[0],j=k[1],D=(0,s.useState)(!0===n),A=(0,i.A)(D,2),I=A[0],T=A[1],L=(0,s.useState)(void 0),N=(0,i.A)(L,2),P=N[0],z=N[1],R=(0,s.useState)([]),B=(0,i.A)(R,2),F=B[0],U=B[1],H=(0,s.useState)(!1),K=(0,i.A)(H,2),V=K[0],Y=K[1],q=(0,s.useState)({}),W=(0,i.A)(q,2),Q=W[0],Z=W[1],G=(0,s.useState)(void 0),$=(0,i.A)(G,2),J=$[0],X=$[1],ee=(0,s.useState)(void 0),te=(0,i.A)(ee,2),ne=te[0],re=te[1];p!==ne&&(Z({}),re(p)),n!==J&&(O(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(!f)return t();var n=f(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[f]);(0,s.useEffect)((function(){!0===n&&oe(M,(function(e){E.current&&(O(e||[]),T(!!w.current))}))}),[]);var ie=(0,s.useCallback)((function(e,t){var n=(0,c.L)(e,t,m);if(!n)return w.current=void 0,j(""),z(""),U([]),T(!1),void Y(!1);if(p&&Q[n])j(n),z(n),U(Q[n]),T(!1),Y(!1);else{var i=w.current={};j(n),T(!0),Y(!P),oe(n,(function(e){E&&i===w.current&&(w.current=void 0,T(!1),z(n),U(e||[]),Y(!1),Z(e?(0,o.A)((0,o.A)({},Q),{},(0,r.A)({},n,e)):Q))}))}}),[p,oe,P,Q,m]),ae=V?[]:M&&P?F:x||[];return(0,o.A)((0,o.A)({},v),{},{options:ae,isLoading:I||h,onInputChange:ie,filterOption:y})}},7533:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(6313),o=n(9086),i=n(2511),a=n(1609),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function c(e){var t=e.defaultInputValue,n=void 0===t?"":t,c=e.defaultMenuIsOpen,l=void 0!==c&&c,u=e.defaultValue,p=void 0===u?null:u,f=e.inputValue,d=e.menuIsOpen,h=e.onChange,m=e.onInputChange,g=e.onMenuClose,y=e.onMenuOpen,v=e.value,b=(0,i.A)(e,s),w=(0,a.useState)(void 0!==f?f:n),E=(0,o.A)(w,2),S=E[0],_=E[1],x=(0,a.useState)(void 0!==d?d:l),O=(0,o.A)(x,2),C=O[0],k=O[1],M=(0,a.useState)(void 0!==v?v:p),j=(0,o.A)(M,2),D=j[0],A=j[1],I=(0,a.useCallback)((function(e,t){"function"==typeof h&&h(e,t),A(e)}),[h]),T=(0,a.useCallback)((function(e,t){var n;"function"==typeof m&&(n=m(e,t)),_(void 0!==n?n:e)}),[m]),L=(0,a.useCallback)((function(){"function"==typeof y&&y(),k(!0)}),[y]),N=(0,a.useCallback)((function(){"function"==typeof g&&g(),k(!1)}),[g]),P=void 0!==f?f:S,z=void 0!==d?d:C,R=void 0!==v?v:D;return(0,r.A)((0,r.A)({},b),{},{inputValue:P,menuIsOpen:z,onChange:I,onInputChange:T,onMenuClose:N,onMenuOpen:L,value:R})}},1336:(e,t,n)=>{var r=n(2299),o=n(6265),i=n(1609),a=n(4599);function s(e){return e&&e.__esModule?e.default:e}function c(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function u(e){e.forEach((e=>l(e.element)))}function p(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 f(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 i=function(e,t){return e.map((e=>({...e,item:t[e.oldIndex]}))).sort(((e,t)=>e.oldIndex-t.oldIndex))}(o,t);return i}function d(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"}c(e.exports,"Sortable",(()=>$882b6d93070905b3$re_export$Sortable)),c(e.exports,"Direction",(()=>$882b6d93070905b3$re_export$Direction)),c(e.exports,"DOMRect",(()=>$882b6d93070905b3$re_export$DOMRect)),c(e.exports,"GroupOptions",(()=>$882b6d93070905b3$re_export$GroupOptions)),c(e.exports,"MoveEvent",(()=>$882b6d93070905b3$re_export$MoveEvent)),c(e.exports,"Options",(()=>$882b6d93070905b3$re_export$Options)),c(e.exports,"PullResult",(()=>$882b6d93070905b3$re_export$PullResult)),c(e.exports,"PutResult",(()=>$882b6d93070905b3$re_export$PutResult)),c(e.exports,"SortableEvent",(()=>$882b6d93070905b3$re_export$SortableEvent)),c(e.exports,"SortableOptions",(()=>$882b6d93070905b3$re_export$SortableOptions)),c(e.exports,"Utils",(()=>$882b6d93070905b3$re_export$Utils)),c(e.exports,"ReactSortable",(()=>y));const g={dragging:null};class y extends i.Component{static defaultProps={clone:e=>e};constructor(e){super(e),this.ref=(0,i.createRef)();const t=[...e.list].map((e=>Object.assign(e,{chosen:!1,selected:!1})));e.setList(t,this.sortable,g),s(a)(!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},a=e&&null!==e?e:"div";return(0,i.createElement)(a,{ref:this.ref,...o},this.getChildren())}getChildren(){const{children:e,dataIdAttr:t,selectedClass:n="sortable-selected",chosenClass:r="sortable-chosen",dragClass:a="sortable-drag",fallbackClass:c="sortable-falback",ghostClass:l="sortable-ghost",swapClass:u="sortable-swap-highlight",filter:p="sortable-filter",list:f}=this.props;if(!e||null==e)return null;const d=t||"data-id";return i.Children.map(e,((e,t)=>{if(void 0===e)return;const a=f[t]||{},{className:c}=e.props,l="string"==typeof p&&{[p.replace(".","")]:!!a.filtered},u=s(o)(c,{[n]:a.selected,[r]:a.chosen,...l});return(0,i.cloneElement)(e,{[d]: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:i,className:a,clone:s,onAdd:c,onChange:l,onChoose:u,onClone:p,onEnd:f,onFilter:d,onRemove:h,onSort:m,onStart:g,onUnchoose:y,onUpdate:v,onMove:b,onSpill:w,onSelect:E,onDeselect:S,..._}=e;return _}(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=f(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=f(e,t);p(o);let i=[...t];if("clone"!==e.pullMode)i=d(o,i);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(a)(!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);i.splice(n,1,r)}))}i=i.map((e=>Object.assign(e,{selected:!1}))),n(i,this.sortable,g)}onUpdate(e){const{list:t,setList:n}=this.props,r=f(e,t);return u(r),p(r),n(function(e,t){return h(e,d(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&&l(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,i,a=1,s={},c=!1,l=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(){f(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()+"$",i=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&f(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),t=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){f(e.data)},t=function(e){r.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,t=function(e){var t=l.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):t=function(e){setTimeout(f,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";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:()=>Ue,Swap:()=>lt,default:()=>_t});var u=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=l(/Edge/i),f=l(/firefox/i),d=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),h=l(/iP(ad|od|hone)/i),m=l(/chrome/i)&&l(/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 S,_=/\s+/g;function x(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(_," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(_," ")}}function O(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 C(e,t){var n="";if("string"==typeof e)n=e;else do{var r=O(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,i=r.length;if(n)for(;o=i:o<=i))return r;if(r===M())break;r=N(r,!1)}return!1}function A(e,t,n,r){for(var o=0,i=0,a=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,Q);q.pluginEvent.bind(Ue)(e,t,o({dragEl:$,parentEl:J,ghostEl:X,rootEl:ee,nextEl:te,lastDownEl:ne,cloneEl:re,cloneHidden:oe,dragStarted:ye,putSortable:ue,activeSortable:Ue.active,originalEvent:r,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:ce,hideGhostForTarget:ze,unhideGhostForTarget:Re,cloneNowHidden:function(){oe=!0},cloneNowShown:function(){oe=!1},dispatchSortableEvent:function(e){G({sortable:t,name:e,originalEvent:r})}},i))};function G(e){W(o({putSortable:ue,cloneEl:re,targetEl:$,rootEl:ee,oldIndex:ie,oldDraggableIndex:se,newIndex:ae,newDraggableIndex:ce},e))}var $,J,X,ee,te,ne,re,oe,ie,ae,se,ce,le,ue,pe,fe,de,he,me,ge,ye,ve,be,we,Ee,Se=!1,_e=!1,xe=[],Oe=!1,Ce=!1,ke=[],Me=!1,je=[],De="undefined"!=typeof document,Ae=h,Ie=p||u?"cssFloat":"float",Te=De&&!m&&!h&&"draggable"in document.createElement("div"),Le=function(){if(De){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ne=function(e,t){var n=O(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=A(e,0,t),i=A(e,1,t),a=o&&O(o),s=i&&O(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(i).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&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=r&&"none"===n[Ie]||i&&"none"===n[Ie]&&c+l>r)?"vertical":"horizontal"},Pe=function(e){function t(e,n){return function(r,o,i,a){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,i,a),n)(r,o,i,a);var c=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;r&&"object"==i(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},ze=function(){!Le&&X&&O(X,"display","none")},Re=function(){!Le&&X&&O(X,"display","")};De&&!m&&document.addEventListener("click",(function(e){if(_e)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_e=!1,!1}),!0);var Be=function(e){if($){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,xe.some((function(e){var t=e[K].options.emptyInsertThreshold;if(t&&!I(e)){var n=j(e),r=o>=n.left-t&&o<=n.right+t,s=i>=n.top-t&&i<=n.bottom+t;return r&&s?a=e:void 0}})),a);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[K]._onDragOver(n)}}var o,i,a},Fe=function(e){$&&$.parentNode[K]._isOutsideThisEl(e.target)};function Ue(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[K]=this;var n,r,i={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 Ne(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!==Ue.supportPointer&&"PointerEvent"in window&&(!d||h),emptyInsertThreshold:5};for(var a in q.initializePlugins(this,e,i),i)!(a in t)&&(t[a]=i[a]);for(var c in Pe(t),this)"_"===c.charAt(0)&&"function"==typeof this[c]&&(this[c]=this[c].bind(this));this.nativeDraggable=!t.forceFallback&&Te,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)),xe.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"!==O(e,"display")&&e!==Ue.ghost){r.push({target:e,rect:j(e)});var t=o({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=C(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,i=0;r.forEach((function(e){var n=0,r=e.target,a=r.fromRect,s=j(r),c=r.prevFromRect,l=r.prevToRect,u=e.rect,p=C(r,!0);p&&(s.top-=p.f,s.left-=p.e),r.toRect=s,r.thisAnimationDuration&&P(c,s)&&!P(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.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,c,l,t.options)),P(s,a)||(r.prevFromRect=a,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,u,s,n)),n&&(o=!0,i=Math.max(i,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()}),i):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){O(e,"transition",""),O(e,"transform","");var o=C(this.el),i=o&&o.a,a=o&&o.d,s=(t.left-n.left)/(i||1),c=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!c,O(e,"transform","translate3d("+s+"px,"+c+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),O(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),O(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){O(e,"transition",""),O(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function He(e,t,n,r,o,i,a,s){var c,l,f=e[K],d=f.options.onMove;return!window.CustomEvent||u||p?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=o||t,c.relatedRect=i||j(t),c.willInsertAfter=s,c.originalEvent=a,e.dispatchEvent(c),d&&(l=d.call(f,c,a)),l}function Ke(e){e.draggable=!1}function Ve(){Me=!1}function Ye(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 qe(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}Ue.prototype={constructor:Ue,_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,$):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(function(e){je.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&je.push(r)}}(n),!$&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!d||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=E(s,r.draggable,n,!1))&&s.animated||ne===s)){if(ie=T(s),se=T(s,r.draggable),"function"==typeof l){if(l.call(this,e,s,this))return G({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(o&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=E(c,r.trim(),n,!1))return G({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0}))))return void(o&&e.preventDefault());r.handle&&!E(c,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!$&&n.parentNode===i){var c=j(n);if(ee=i,J=($=n).parentNode,te=$.nextSibling,ne=n,le=a.group,Ue.dragged=$,pe={target:$,clientX:(t||e).clientX,clientY:(t||e).clientY},me=pe.clientX-c.left,ge=pe.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,$.style["will-change"]="all",r=function(){Z("delayEnded",o,{evt:e}),Ue.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!f&&o.nativeDraggable&&($.draggable=!0),o._triggerDragStart(e,t),G({sortable:o,name:"choose",originalEvent:e}),x($,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){k($,e.trim(),Ke)})),y(s,"dragover",Be),y(s,"mousemove",Be),y(s,"touchmove",Be),a.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)),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$.draggable=!0),Z("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(p||u))r();else{if(Ue.eventCanceled)return void this._onDrop();a.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),a.supportPointer&&y(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.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(){$&&Ke($),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($,"dragend",this),y(ee,"dragstart",this._onDragStart));try{document.selection?qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Se=!1,ee&&$){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&y(document,"dragover",Fe);var n=this.options;!e&&x($,n.dragClass,!1),x($,n.ghostClass,!0),Ue.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(fe){this._lastX=fe.clientX,this._lastY=fe.clientY,ze();for(var e=document.elementFromPoint(fe.clientX,fe.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(fe.clientX,fe.clientY))!==t;)t=e;if($.parentNode[K]._isOutsideThisEl(e),t)do{if(t[K]&&t[K]._onDragOver({clientX:fe.clientX,clientY:fe.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=w(t));Re()}},_onTouchMove:function(e){if(pe){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=X&&C(X,!0),a=X&&i&&i.a,s=X&&i&&i.d,c=Ae&&Ee&&L(Ee),l=(o.clientX-pe.clientX+r.x)/(a||1)+(c?c[0]-ke[0]:0)/(a||1),u=(o.clientY-pe.clientY+r.y)/(s||1)+(c?c[1]-ke[1]:0)/(s||1);if(!Ue.active&&!Se){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,i,this)&&!g.animated){if(g===$)return U(!1);if(g&&a===e.target&&(s=g),s&&(n=j(s)),!1!==He(ee,a,$,t,s,n,e,!!s))return F(),g&&g.nextSibling?a.insertBefore($,g.nextSibling):a.appendChild($),J=a,V(),U(!0)}else if(g&&function(e,t,n){var r=j(A(n.el,0,n.options,!0)),o=H(n.el,n.options,X);return t?e.clientXu+l*i/2:cp-we)return-be}else if(c>u+l*(1-o)/2&&cp-l*i/2)?c>u+l/2?1:-1:0}(e,s,n,i,_?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,Ce,ve===s),0!==v){var L=T($);do{L-=v,w=J.children[L]}while(w&&("none"===O(w,"display")||w===X))}if(0===v||w===s)return U(!1);ve=s,be=v;var N=s.nextElementSibling,P=!1,z=He(ee,a,$,t,s,n,e,P=1===v);if(!1!==z)return 1!==z&&-1!==z||(P=1===z),Me=!0,setTimeout(Ve,30),F(),P&&!N?a.appendChild($):s.parentNode.insertBefore($,P?N:s),k&&R(k,0,M-k.scrollTop),J=$.parentNode,void 0===b||Ce||(we=Math.abs(b-j(s)[C])),V(),U(!0)}if(a.contains($))return U(!1)}return!1}function B(c,l){Z(c,h,o({evt:e,isOwner:p,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:s,completed:U,onMove:function(n,r){return He(ee,a,$,t,n,j(n),e,r)},changed:V},l))}function F(){B("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function U(t){return B("dragOverCompleted",{insertion:t}),t&&(p?u._hideClone():u._showClone(h),h!==d&&(x($,ue?ue.options.ghostClass:u.options.ghostClass,!1),x($,c.ghostClass,!0)),ue!==h&&h!==Ue.active?ue=h:h===Ue.active&&ue&&(ue=null),d===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){B("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(s===$&&!$.animated||s===a&&!s.animated)&&(ve=null),c.dragoverBubble||e.rootEl||s===document||($.parentNode[K]._isOutsideThisEl(e.target),!t&&Be(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function V(){ae=T($),ce=T($,c.draggable),G({sortable:h,name:"change",toEl:a,newIndex:ae,newDraggableIndex:ce,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;ae=T($),ce=T($,n.draggable),Z("drop",this,{evt:e}),J=$&&$.parentNode,ae=T($),ce=T($,n.draggable),Ue.eventCanceled||(Se=!1,Ce=!1,Oe=!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(),d&&O(document.body,"user-select",""),O($,"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),$&&(this.nativeDraggable&&v($,"dragend",this),Ke($),$.style["will-change"]="",ye&&!Se&&x($,ue?ue.options.ghostClass:this.options.ghostClass,!1),x($,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),ee!==J?(ae>=0&&(G({rootEl:J,name:"add",toEl:J,fromEl:ee,originalEvent:e}),G({sortable:this,name:"remove",toEl:J,originalEvent:e}),G({rootEl:J,name:"sort",toEl:J,fromEl:ee,originalEvent:e}),G({sortable:this,name:"sort",toEl:J,originalEvent:e})),ue&&ue.save()):ae!==ie&&ae>=0&&(G({sortable:this,name:"update",toEl:J,originalEvent:e}),G({sortable:this,name:"sort",toEl:J,originalEvent:e})),Ue.active&&(null!=ae&&-1!==ae||(ae=ie,ce=se),G({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Z("nulling",this),ee=$=J=X=te=re=ne=oe=pe=fe=ye=ae=ce=ie=se=ve=be=ue=le=Ue.dragged=Ue.ghost=Ue.clone=Ue.active=null,je.forEach((function(e){e.checked=!0})),je.length=de=he=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":$&&(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,i=this.options;r1&&(mt.forEach((function(e){r.addAnimationState({target:e,rect:vt?j(e):o}),U(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,i=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&o._hideClone(),yt=!1,s.animation&&mt.length>1&&(vt||!n&&!o.options.sort&&!a)){var c=j(ft,!1,!0,!0);mt.forEach((function(e){e!==ft&&(F(e,c),i.appendChild(e))})),vt=!0}if(!n)if(vt||St(),mt.length>1){var l=ht;o._showClone(t),o.options.animation&&!ht&&l&>.forEach((function(e){o.addAnimationState({target:e,rect:dt}),e.fromRect=dt,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){dt=s({},t);var o=C(ft,!0);dt.top-=o.f,dt.left-=o.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,St())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!bt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),x(ft,l.selectedClass,!~mt.indexOf(ft)),~mt.indexOf(ft))mt.splice(mt.indexOf(ft),1),ut=null,W({sortable:o,rootEl:n,name:"deselect",targetEl:ft,originalEvent:t});else{if(mt.push(ft),W({sortable:o,rootEl:n,name:"select",targetEl:ft,originalEvent:t}),t.shiftKey&&ut&&o.el.contains(ut)){var p=T(ut),f=T(ft);~p&&~f&&p!==f&&function(){var e,i;f>p?(i=p,e=f):(i=f,e=p+1);for(var a=l.filter;i1){var d=j(ft),h=T(ft,":not(."+this.options.selectedClass+")");if(!yt&&l.animation&&(ft.thisAnimationDuration=null),c.captureAnimationState(),!yt&&(l.animation&&(ft.fromRect=d,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==ft){var t=vt?j(e):d;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),St(),mt.forEach((function(e){u[h]?r.insertBefore(e,u[h]):r.appendChild(e),h++})),a===T(ft))){var m=!1;mt.forEach((function(e){e.sortableIndex===T(e)||(m=!0)})),m&&(i("update"),i("sort"))}mt.forEach((function(e){U(e)})),c.animateAll()}pt=c}(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||pt!==this.sortable||e&&E(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];x(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[K];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(pt&&pt!==t&&(pt.multiDrag._deselectMultiDrag(),pt=t),x(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[K],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(x(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!==ft?-1:vt?T(e,":not(."+t.options.selectedClass+")"):T(e),r.push({multiDragElement:e,index:o})})),{items:(e=mt,function(e){if(Array.isArray(e))return c(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 c(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)?c(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 St(){mt.forEach((function(e){e!==ft&&e.parentNode&&e.parentNode.removeChild(e)}))}Ue.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(S),S=void 0},nulling:function(){Je=Ze=Qe=tt=Xe=Ge=$e=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,i=document.elementFromPoint(r,o);if(Je=e,t||this.options.forceAutoScrollFallback||p||u||d){it(e,this.options,i,t);var a=N(i,!0);!tt||Xe&&r===Ge&&o===$e||(Xe&&rt(),Xe=setInterval((function(){var i=N(document.elementFromPoint(r,o),!0);i!==a&&(a=i,nt()),it(e,n.options,i,t)}),10),Ge=r,$e=o)}else{if(!this.options.bubbleScroll||N(i,!0)===M())return void nt();it(e,this.options,N(i,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}),Ue.mount(ct,st);const _t=Ue},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)),i=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,i.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=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},c=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(a,c):e.replace(i,c)).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 i,a,s=r(e),c="function"==typeof t,l=0,u=s.length;le.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))},i=[],a=(e,t)=>{var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),i.includes(n)||(i.push(n),r(n))},s=e=>"function"==typeof e?e():e,c=e=>e&&"function"==typeof e.toPromise,l=e=>c(e)?e.toPromise():Promise.resolve(e),u=e=>e&&Promise.resolve(e)===e,p={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},f=["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"],d={},h=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],m=e=>Object.prototype.hasOwnProperty.call(p,e),g=e=>-1!==f.indexOf(e),y=e=>d[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)&&a(e,y(e))},E=e=>{const t={};for(const n in e)t[e[n]]="swal2-"+e[n];return t},S=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"]),_=E(["success","warning","info","question","error"]),x=()=>document.body.querySelector(".".concat(S.container)),O=e=>{const t=x();return t?t.querySelector(e):null},C=e=>O(".".concat(e)),k=()=>C(S.popup),M=()=>C(S.icon),j=()=>C(S.title),D=()=>C(S["html-container"]),A=()=>C(S.image),I=()=>C(S["progress-steps"]),T=()=>C(S["validation-message"]),L=()=>O(".".concat(S.actions," .").concat(S.confirm)),N=()=>O(".".concat(S.actions," .").concat(S.deny)),P=()=>O(".".concat(S.loader)),z=()=>O(".".concat(S.actions," .").concat(S.cancel)),R=()=>C(S.actions),B=()=>C(S.footer),F=()=>C(S["timer-progress-bar"]),U=()=>C(S.close),H=()=>{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;nae(e)))},K=()=>W(document.body,S.shown)&&!W(document.body,S["toast-shown"])&&!W(document.body,S["no-backdrop"]),V=()=>k()&&W(k(),S.toast),Y={previousBodyPadding:null},q=(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(S).includes(n)||Object.values(_).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])}},Z=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(S.popup," > .").concat(S[t]));case"checkbox":return e.querySelector(".".concat(S.popup," > .").concat(S.checkbox," input"));case"radio":return e.querySelector(".".concat(S.popup," > .").concat(S.radio," input:checked"))||e.querySelector(".".concat(S.popup," > .").concat(S.radio," input:first-child"));case"range":return e.querySelector(".".concat(S.popup," > .").concat(S.range," input"));default:return e.querySelector(".".concat(S.popup," > .").concat(S.input))}},G=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},$=(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)=>{$(e,t,!0)},X=(e,t)=>{$(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)},ie=(e,t,n)=>{t?ne(e,n):re(e)},ae=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),se=e=>!!(e.scrollHeight>e.clientHeight),ce=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},le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=F();ae(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,pe={},fe=e=>new Promise((t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;pe.restoreFocusTimeout=setTimeout((()=>{pe.previousActiveElement&&pe.previousActiveElement.focus?(pe.previousActiveElement.focus(),pe.previousActiveElement=null):document.body&&document.body.focus(),t()}),100),window.scrollTo(n,r)})),de='\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=()=>{pe.currentInstance.resetValidationMessage()},me=e=>{const t=(()=>{const e=x();return!!e&&(e.remove(),X([document.documentElement,document.body],[S["no-backdrop"],S["toast-shown"],S["has-column"]]),!0)})();if(ue())return void o("SweetAlert2 requires document to initialize");const n=document.createElement("div");n.className=S.container,t&&J(n,S["no-transition"]),q(n,de);const r="string"==typeof(i=e.target)?document.querySelector(i):i;var i;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(),S.rtl)})(r),(()=>{const e=k(),t=ee(e,S.input),n=ee(e,S.file),r=e.querySelector(".".concat(S.range," input")),o=e.querySelector(".".concat(S.range," output")),i=ee(e,S.select),a=e.querySelector(".".concat(S.checkbox," input")),s=ee(e,S.textarea);t.oninput=he,n.onchange=he,i.onchange=he,a.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&&q(t,e)},ye=(e,t)=>{e.jquery?ve(t,e):q(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=R(),r=P();t.showConfirmButton||t.showDenyButton||t.showCancelButton?ne(n):re(n),Q(n,t,"actions"),function(e,t,n){const r=L(),o=N(),i=z();Ee(r,"confirm",n),Ee(o,"deny",n),Ee(i,"cancel",n),function(e,t,n,r){if(!r.buttonsStyling)return X([e,t,n],S.styled);J([e,t,n],S.styled),r.confirmButtonColor&&(e.style.backgroundColor=r.confirmButtonColor,J(e,S["default-outline"])),r.denyButtonColor&&(t.style.backgroundColor=r.denyButtonColor,J(t,S["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,J(n,S["default-outline"]))}(r,o,i,n),n.reverseButtons&&(n.toast?(e.insertBefore(i,r),e.insertBefore(o,r)):(e.insertBefore(i,t),e.insertBefore(o,t),e.insertBefore(r,t)))}(n,r,t),q(r,t.loaderHtml),Q(r,t,"loader")};function Ee(e,n,r){ie(e,r["show".concat(t(n),"Button")],"inline-block"),q(e,r["".concat(n,"ButtonText")]),e.setAttribute("aria-label",r["".concat(n,"ButtonAriaLabel")]),e.className=S[n],Q(e,r,"".concat(n,"Button")),J(e,r["".concat(n,"ButtonClass")])}const Se=(e,t)=>{const n=x();n&&(function(e,t){"string"==typeof t?e.style.background=t:t||J([document.documentElement,document.body],S["no-backdrop"])}(n,t.backdrop),function(e,t){t in S?J(e,S[t]):(r('The "position" parameter is not valid, defaulting to "center"'),J(e,S.center))}(n,t.position),function(e,t){if(t&&"string"==typeof t){const n="grow-".concat(t);n in S&&J(e,S[n])}}(n,t.grow),Q(n,t,"container"))};var _e={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const xe=["input","file","range","select","radio","checkbox","textarea"],Oe=e=>{if(!Ae[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=De(e.input),n=Ae[e.input](t,e);ne(n),setTimeout((()=>{G(n)}))},Ce=(e,t)=>{const n=Z(k(),e);if(n){(e=>{for(let t=0;t{const t=De(e.input);e.customClass&&J(t,e.customClass.input)},Me=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},je=(e,t,n)=>{if(n.inputLabel){e.id=S.input;const r=document.createElement("label"),o=S["input-label"];r.setAttribute("for",e.id),r.className=o,J(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},De=e=>{const t=S[e]?S[e]:S.input;return ee(k(),t)},Ae={};Ae.text=Ae.email=Ae.password=Ae.number=Ae.tel=Ae.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,'"')),je(e,e,t),Me(e,t),e.type=t.input,e),Ae.file=(e,t)=>(je(e,e,t),Me(e,t),e),Ae.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,je(n,e,t),e},Ae.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");q(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return je(e,e,t),e},Ae.radio=e=>(e.textContent="",e),Ae.checkbox=(e,t)=>{const n=Z(k(),"checkbox");n.value="1",n.id=S.checkbox,n.checked=Boolean(t.inputValue);const r=e.querySelector("span");return q(r,t.inputPlaceholder),e},Ae.textarea=(e,t)=>{e.value=t.inputValue,Me(e,t),je(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=D();Q(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=_e.innerParams.get(e),o=!r||t.input!==r.input;xe.forEach((e=>{const r=S[e],i=ee(n,r);Ce(e,t.inputAttributes),i.className=r,o&&re(i)})),t.input&&(o&&Oe(t),ke(t))})(e,t)},Te=(e,t)=>{for(const n in _)t.icon!==n&&X(e,_[n]);J(e,_[t.icon]),Pe(e,t),Le(),Q(e,t,"icon")},Le=()=>{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?q(e,ze(t.iconHtml)):"success"===t.icon?q(e,'\n
    \n \n
    \n
    \n'):"error"===t.icon?q(e,'\n \n \n \n \n'):q(e,ze({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)}},ze=e=>'
    ').concat(e,"
    "),Re=(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,S["progress-step"]),q(t,e),t})(e);if(n.appendChild(o),r===t.currentProgressStep&&J(o,S["active-progress-step"]),r!==t.progressSteps.length-1){const e=(e=>{const t=document.createElement("li");return J(t,S["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t})(t);n.appendChild(e)}}))},Be=(e,t)=>{e.className="".concat(S.popup," ").concat(ae(e)?t.showClass.popup:""),t.toast?(J([document.documentElement,document.body],S["toast-shown"]),J(e,S.toast)):J(e,S.modal),Q(e,t,"popup"),"string"==typeof t.customClass&&J(e,t.customClass),t.icon&&J(e,S["icon-".concat(t.icon)])},Fe=(e,t)=>{((e,t)=>{const n=x(),r=k();t.toast?(te(n,"width",t.width),r.style.width="100%",r.insertBefore(P(),M())):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(T()),Be(r,t)})(0,t),Se(0,t),Re(0,t),((e,t)=>{const n=_e.innerParams.get(e),r=M();n&&t.icon===n.icon?(Ne(r,t),Te(r,t)):t.icon||t.iconHtml?t.icon&&-1===Object.keys(_).indexOf(t.icon)?(o('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),re(r)):(ne(r),Ne(r,t),Te(r,t),J(r,t.showClass.icon)):re(r)})(e,t),((e,t)=>{const n=A();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=S.image,Q(n,t,"image")})(0,t),((e,t)=>{const n=j();ie(n,t.title||t.titleText,"block"),t.title&&ge(t.title,n),t.titleText&&(n.innerText=t.titleText),Q(n,t,"title")})(0,t),((e,t)=>{const n=U();q(n,t.closeButtonHtml),Q(n,t,"closeButton"),ie(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)})(0,t),Ie(e,t),we(0,t),((e,t)=>{const n=B();ie(n,t.footer),t.footer&&ge(t.footer,n),Q(n,t,"footer")})(0,t),"function"==typeof t.didRender&&t.didRender(k())},Ue=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),He=()=>{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")}))},Ke=["swal-title","swal-html","swal-footer"],Ve=e=>{const t={};return n(e.querySelectorAll("swal-param")).forEach((e=>{$e(e,["name","value"]);const n=e.getAttribute("name"),r=e.getAttribute("value");"boolean"==typeof p[n]&&"false"===r&&(t[n]=!1),"object"==typeof p[n]&&(t[n]=JSON.parse(r))})),t},Ye=e=>{const r={};return n(e.querySelectorAll("swal-button")).forEach((e=>{$e(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},qe=e=>{const t={},n=e.querySelector("swal-image");return n&&($e(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&&($e(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},Qe=e=>{const t={},r=e.querySelector("swal-input");r&&($e(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=>{$e(e,["value"]);const n=e.getAttribute("value"),r=e.innerHTML;t.inputOptions[n]=r}))),t},Ze=(e,t)=>{const n={};for(const r in t){const o=t[r],i=e.querySelector(o);i&&($e(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Ge=e=>{const t=Ke.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,">"))}))},$e=(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===Y.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(Y.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Y.previousBodyPadding+(()=>{const e=document.createElement("div");e.className=S["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&&(x().style.paddingBottom="".concat(e,"px"))}},rt=()=>{const e=x();let t;e.ontouchstart=e=>{t=ot(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},ot=e=>{const t=e.target,n=x();return!(it(e)||at(e)||t!==n&&(se(n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||se(D())&&D().contains(t)))},it=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,at=e=>e.touches&&e.touches.length>1,st=e=>{const t=x(),r=k();"function"==typeof e.willOpen&&e.willOpen(r);const o=window.getComputedStyle(document.body).overflowY;pt(t,r,e),setTimeout((()=>{lt(t,r)}),10),K()&&(ut(t,e.scrollbarPadding,o),n(document.body.children).forEach((e=>{e===x()||e.contains(x())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),V()||pe.previousActiveElement||(pe.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((()=>e.didOpen(r))),X(t,S["no-transition"])},ct=e=>{const t=k();if(e.target!==t)return;const n=x();t.removeEventListener(be,ct),n.style.overflowY="auto"},lt=(e,t)=>{be&&ce(t)?(e.style.overflowY="hidden",t.addEventListener(be,ct)):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,S.iosfix)){const e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),J(document.body,S.iosfix),rt(),nt()}})(),t&&"hidden"!==n&&tt(),setTimeout((()=>{e.scrollTop=0}))},pt=(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],S.shown),n.heightAuto&&n.backdrop&&!n.toast&&J([document.documentElement,document.body],S["height-auto"])},ft=e=>{let t=k();t||new Cn,t=k();const n=P();V()?re(M()):dt(t,e),ne(n),t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},dt=(e,t)=>{const n=R(),r=P();!t&&ae(L())&&(t=L()),ne(n),t&&(re(t),r.setAttribute("data-button-to-replace",t.className)),r.parentNode.insertBefore(r,t),J([e,n],S.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);c(t.inputOptions)||u(t.inputOptions)?(ft(L()),l(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),l(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,S.select),o=(e,t,r)=>{const o=document.createElement("option");o.value=r,q(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,S.radio);t.forEach((e=>{const t=e[0],o=e[1],i=document.createElement("input"),a=document.createElement("label");i.type="radio",i.name=S.radio,i.value=t,Et(t,n.inputValue)&&(i.checked=!0);const s=document.createElement("span");q(s,o),s.className=S.label,a.appendChild(i),a.appendChild(s),r.appendChild(a)}));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 St(){const e=_e.innerParams.get(this);if(!e)return;const t=_e.domCache.get(this);re(t.loader),V()?e.icon&&ne(M()):_t(t),X([t.popup,t.actions],S.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const _t=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ne(t[0],"inline-block"):!ae(L())&&!ae(N())&&!ae(z())&&re(e.actions)};var xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const Ot=()=>L()&&L().click(),Ct=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},kt=(e,t,n)=>{const r=H();if(r.length)return(t+=n)===r.length?t=0:-1===t&&(t=r.length-1),r[t].focus();k().focus()},Mt=["ArrowRight","ArrowDown"],jt=["ArrowLeft","ArrowUp"],Dt=(e,t,n)=>{const r=_e.innerParams.get(e);r&&(t.isComposing||229===t.keyCode||(r.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?At(e,t,r):"Tab"===t.key?It(t,r):[...Mt,...jt].includes(t.key)?Tt(t.key):"Escape"===t.key&&Lt(t,r,n)))},At=(e,t,n)=>{if(s(n.allowEnterKey)&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Ot(),t.preventDefault()}},It=(e,t)=>{const n=e.target,r=H();let o=-1;for(let e=0;e{if(![L(),N(),z()].includes(document.activeElement))return;const t=Mt.includes(e)?"nextElementSibling":"previousElementSibling";let n=document.activeElement;for(let e=0;e{s(t.allowEscapeKey)&&(e.preventDefault(),n(Ue.esc))};function Nt(e,t,n,r){V()?Ht(e,r):(fe(n).then((()=>Ht(e,r))),Ct(pe)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),K()&&(null!==Y.previousBodyPadding&&(document.body.style.paddingRight="".concat(Y.previousBodyPadding,"px"),Y.previousBodyPadding=null),(()=>{if(W(document.body,S.iosfix)){const e=parseInt(document.body.style.top,10);X(document.body,S.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),He()),X([document.documentElement,document.body],[S.shown,S["height-auto"],S["no-backdrop"],S["toast-shown"]])}function Pt(e){e=Bt(e);const t=xt.swalPromiseResolve.get(this),n=zt(this);this.isAwaitingPromise()?e.isDismissed||(Rt(this),t(e)):n&&t(e)}const zt=e=>{const t=k();if(!t)return!1;const n=_e.innerParams.get(e);if(!n||W(t,n.hideClass.popup))return!1;X(t,n.showClass.popup),J(t,n.hideClass.popup);const r=x();return X(r,n.showClass.backdrop),J(r,n.hideClass.backdrop),Ft(e,t,n),!0};const Rt=e=>{e.isAwaitingPromise()&&(_e.awaitingPromise.delete(e),_e.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),Ft=(e,t,n)=>{const r=x(),o=be&&ce(t);"function"==typeof n.willClose&&n.willClose(t),o?Ut(e,t,r,n.returnFocus,n.didClose):Nt(e,r,n.returnFocus,n.didClose)},Ut=(e,t,n,r,o)=>{pe.swalCloseEventFinishedCallback=Nt.bind(null,e,n,r,o),t.addEventListener(be,(function(e){e.target===t&&(pe.swalCloseEventFinishedCallback(),delete pe.swalCloseEventFinishedCallback)}))},Ht=(e,t)=>{setTimeout((()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()}))};function Kt(e,t,n){const r=_e.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 qt=e=>{Wt(e),delete e.params,delete pe.keydownHandler,delete pe.keydownTarget,delete pe.currentInstance},Wt=e=>{e.isAwaitingPromise()?(Qt(_e,e),_e.awaitingPromise.set(e,!0)):(Qt(xt,e),Qt(_e,e))},Qt=(e,t)=>{for(const n in e)e[n].delete(t)};var Zt=Object.freeze({hideLoading:St,disableLoading:St,getInput:function(e){const t=_e.innerParams.get(e||this),n=_e.domCache.get(e||this);return n?Z(n.popup,t.input):null},close:Pt,isAwaitingPromise:function(){return!!_e.awaitingPromise.get(this)},rejectPromise:function(e){const t=xt.swalPromiseReject.get(this);Rt(this),t&&t(e)},handleAwaitingPromise:Rt,closePopup:Pt,closeModal:Pt,closeToast:Pt,enableButtons:function(){Kt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Kt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Vt(this.getInput(),!1)},disableInput:function(){return Vt(this.getInput(),!0)},showValidationMessage:function(e){const t=_e.domCache.get(this),n=_e.innerParams.get(this);q(t.validationMessage,e),t.validationMessage.className=S["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",S["validation-message"]),G(r),J(r,S.inputerror))},resetValidationMessage:function(){const e=_e.domCache.get(this);e.validationMessage&&re(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),X(t,S.inputerror))},getProgressSteps:function(){return _e.domCache.get(this).progressSteps},update:function(e){const t=k(),n=_e.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=Yt(e),i=Object.assign({},n,o);Fe(this,i),_e.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){const e=_e.domCache.get(this),t=_e.innerParams.get(this);t?(e.popup&&pe.swalCloseEventFinishedCallback&&(pe.swalCloseEventFinishedCallback(),delete pe.swalCloseEventFinishedCallback),pe.deferDisposalTimer&&(clearTimeout(pe.deferDisposalTimer),delete pe.deferDisposalTimer),"function"==typeof t.didDestroy&&t.didDestroy(),qt(this)):Wt(this)}});const Gt=(e,n)=>{const r=_e.innerParams.get(e);if(!r.input)return o('The "input" parameter is needed to be set when using returnInputValueOn'.concat(t(n)));const i=((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?$t(e,i,n):e.getInput().checkValidity()?"deny"===n?Jt(e,i):tn(e,i):(e.enableButtons(),e.showValidationMessage(r.validationMessage))},$t=(e,t,n)=>{const r=_e.innerParams.get(e);e.disableInput(),Promise.resolve().then((()=>l(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=_e.innerParams.get(e||void 0);n.showLoaderOnDeny&&ft(N()),n.preDeny?(_e.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(n.preDeny(t,n.validationMessage)))).then((n=>{!1===n?(e.hideLoading(),Rt(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=_e.innerParams.get(e||void 0);n.showLoaderOnConfirm&&ft(),n.preConfirm?(e.resetValidationMessage(),_e.awaitingPromise.set(e||void 0,!0),Promise.resolve().then((()=>l(n.preConfirm(t,n.validationMessage)))).then((n=>{ae(T())||!1===n?(e.hideLoading(),Rt(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=_e.innerParams.get(e);t&&(rn(t)||t.timer||t.input)||n(Ue.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)}}},cn=(e,t,n)=>{t.container.onclick=r=>{const o=_e.innerParams.get(e);on?on=!1:r.target===t.container&&s(o.allowOutsideClick)&&n(Ue.backdrop)}},ln=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const un=()=>{if(pe.timeout)return(()=>{const e=F(),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,"%")})(),pe.timeout.stop()},pn=()=>{if(pe.timeout){const e=pe.timeout.start();return le(e),e}};let fn=!1;const dn={};const hn=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in dn){const n=t.getAttribute(e);if(n)return void dn[e].fire({template:n})}};var mn=Object.freeze({isValidParameter:m,isUpdatableParameter:g,isDeprecatedParameter:y,argsToParams:e=>{const t={};return"object"!=typeof e[0]||ln(e[0])?["title","html","icon"].forEach(((n,r)=>{const i=e[r];"string"==typeof i||ln(i)?t[n]=i:void 0!==i&&o("Unexpected type of ".concat(n,'! Expected "string" or "Element", got ').concat(typeof i))})):Object.assign(t,e[0]),t},isVisible:()=>ae(k()),clickConfirm:Ot,clickDeny:()=>N()&&N().click(),clickCancel:()=>z()&&z().click(),getContainer:x,getPopup:k,getTitle:j,getHtmlContainer:D,getImage:A,getIcon:M,getInputLabel:()=>C(S["input-label"]),getCloseButton:U,getActions:R,getConfirmButton:L,getDenyButton:N,getCancelButton:z,getLoader:P,getFooter:B,getTimerProgressBar:F,getFocusableElements:H,getValidationMessage:T,isLoading:()=>k().hasAttribute("data-loading"),fire:function(){for(var e=arguments.length,t=new Array(e),n=0;npe.timeout&&pe.timeout.getTimerLeft(),stopTimer:un,resumeTimer:pn,toggleTimer:()=>{const e=pe.timeout;return e&&(e.running?un():pn())},increaseTimer:e=>{if(pe.timeout){const t=pe.timeout.increase(e);return le(t,!0),t}},isTimerRunning:()=>pe.timeout&&pe.timeout.isRunning(),bindClickHandler:function(){dn[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,fn||(document.body.addEventListener("click",hn),fn=!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)),pe.currentInstance&&(pe.currentInstance._destroy(),K()&&He()),pe.currentInstance=this;const n=bn(e,t);Xe(n),Object.freeze(n),pe.timeout&&(pe.timeout.stop(),delete pe.timeout),clearTimeout(pe.restoreFocusTimeout);const o=wn(this);return Fe(this,n),_e.innerParams.set(this,n),vn(this,o,n)}then(e){return _e.promise.get(this).then(e)}finally(e){return _e.promise.get(this).finally(e)}}const vn=(e,t,n)=>new Promise(((r,o)=>{const i=t=>{e.closePopup({isDismissed:!0,dismiss:t})};xt.swalPromiseResolve.set(e,r),xt.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>(e=>{const t=_e.innerParams.get(e);e.disableButtons(),t.input?Gt(e,"confirm"):tn(e,!0)})(e),t.denyButton.onclick=()=>(e=>{const t=_e.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Gt(e,"deny"):Jt(e,!1)})(e),t.cancelButton.onclick=()=>((e,t)=>{e.disableButtons(),t(Ue.cancel)})(e,i),t.closeButton.onclick=()=>i(Ue.close),((e,t,n)=>{_e.innerParams.get(e).toast?nn(e,t,n):(an(t),sn(t),cn(e,t,n))})(e,t,i),((e,t,n,r)=>{Ct(t),n.toast||(t.keydownHandler=t=>Dt(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,pe,n,i),((e,t)=>{"select"===t.input||"radio"===t.input?yt(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(c(t.inputValue)||u(t.inputValue))&&(ft(L()),vt(e,t))})(e,n),st(n),En(pe,n,i),Sn(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 Ge(n),Object.assign(Ve(n),Ye(n),qe(n),We(n),Qe(n),Ze(n,Ke))})(e),r=Object.assign({},p,t,n,e);return r.showClass=Object.assign({},p.showClass,r.showClass),r.hideClass=Object.assign({},p.hideClass,r.hideClass),r},wn=e=>{const t={popup:k(),container:x(),actions:R(),confirmButton:L(),denyButton:N(),cancelButton:z(),loader:P(),closeButton:U(),validationMessage:T(),progressSteps:I()};return _e.domCache.set(e,t),t},En=(e,t,n)=>{const r=F();re(r),t.timer&&(e.timeout=new et((()=>{n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ne(r),Q(r,t,"timerProgressBar"),setTimeout((()=>{e.timeout&&e.timeout.running&&le(t.timer)}))))},Sn=(e,t)=>{if(!t.toast)return s(t.allowEnterKey)?void(xn(e,t)||kt(0,-1,1)):On()},xn=(e,t)=>t.focusDeny&&ae(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ae(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ae(e.confirmButton)||(e.confirmButton.focus(),0)),On=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Object.assign(yn.prototype,Zt),Object.assign(yn,mn),Object.keys(Zt).forEach((e=>{yn[e]=function(){if(gn)return gn[e](...arguments)}})),yn.DismissReason=Ue,yn.version="11.4.8";const Cn=yn;return Cn.default=Cn,Cn}(),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:()=>i});var r=!0,o="Invariant failed";function i(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]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;p+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r2&&(e[p]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[m]=i,Z.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[m]=i,Z.call(e,r,w.os),E&&!e[f]&&y&&y.platform&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,H).replace(/macos/i,K)),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===l&&e.length>500?Q(e,500):e,this},this.setUA(r),this};X.VERSION="0.7.39",X.BROWSER=Y([f,m,u]),X.CPU=Y([g]),X.DEVICE=Y([p,h,d,y,v,w,b,E,S]),X.ENGINE=X.OS=Y([f,m]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(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},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},7723:e=>{"use strict";e.exports=window.wp.i18n},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:()=>i});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 i=n(9826),a=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,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}(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:()=>i});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 i(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,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=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,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)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}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.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=n(1609),t=n.n(e);const r="undefined"==typeof window||"Deno"in window;function o(){}function i(e,t,n){return y(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function a(e,t,n){return y(e)?[{...t,queryKey:e},n]:[e||{},t]}function s(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(y(a))if(r){if(t.queryHash!==l(a,t.options))return!1}else if(!p(t.queryKey,a))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||i&&!i(t))}function c(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(y(i)){if(!t.options.mutationKey)return!1;if(n){if(u(t.options.mutationKey)!==u(i))return!1}else if(!p(t.options.mutationKey,i))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function l(e,t){return((null==t?void 0:t.queryKeyHashFn)||u)(e)}function u(e){return JSON.stringify(e,((e,t)=>m(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function p(e,t){return f(e,t)}function f(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!f(e[n],t[n])))}function d(e,t){if(e===t)return e;const n=h(e)&&h(t);if(n||m(e)&&m(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let r=0;r{setTimeout(t,e)}))}function b(e){v(0).then(e)}function w(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?d(e,t):t}const E=console,S=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):b((()=>{n(r)}))};return{batch:o=>{let i;t++;try{i=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&b((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return i},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class _{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(){}}const x=new class extends _{constructor(){super(),this.setup=e=>{if(!r&&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)}},O=["online","offline"],C=new class extends _{constructor(){super(),this.setup=e=>{if(!r&&window.addEventListener){const t=()=>e();return O.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{O.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}};function k(e){return Math.min(1e3*2**e,3e4)}function M(e){return"online"!==(null!=e?e:"online")||C.isOnline()}class j{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function D(e){return e instanceof j}function A(e){let t,n,r,o=!1,i=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),c=()=>!x.isFocused()||"always"!==e.networkMode&&!C.isOnline(),l=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},p=()=>new Promise((n=>{t=e=>{const t=a||!c();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),f=()=>{if(a)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(l).catch((t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,l=null!=(r=e.retryDelay)?r:k,d="function"==typeof l?l(i,t):l,h=!0===s||"number"==typeof s&&i{if(c())return p()})).then((()=>{o?u(t):f()}))):u(t)}))};return M(e.networkMode)?f():p().then(f),{promise:s,cancel:t=>{a||(u(new j(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class I{destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.cacheTime)&&e>=0&&e!==1/0&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:r?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class T extends I{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||E,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=w(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(o).catch(o):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||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(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,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.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 i=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var l;s(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(l=c.fetchOptions)?void 0:l.meta});const u=e=>{var t,n,r,o;D(e)&&e.silent||this.dispatch({type:"error",error:e}),D(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=A({fn:c.fetchFn,abort:null==i?void 0:i.abort.bind(i),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):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.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:M(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 D(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),S.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class L extends _{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,i=null!=(r=t.queryHash)?r:l(o,t);let a=this.get(i);return a||(a=new T({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}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(){S.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=a(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>s(n,e)))}findAll(e,t){const[n]=a(e,t);return Object.keys(n).length>0?this.queries.filter((e=>s(n,e))):this.queries}notify(e){S.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){S.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){S.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class N extends I{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||E,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=A({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,i,a,s,c,l;if(!t){var u,p,f,d;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(p=this.mutationCache.config).onMutate)?void 0:u.call(p,this.state.variables,this));const e=await(null==(f=(d=this.options).onMutate)?void 0:f.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(c=(l=this.options).onSettled)?void 0:c.call(l,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{var h,m,g,y,v,b,w,E;throw await(null==(h=(m=this.mutationCache.config).onError)?void 0:h.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(y=this.options).onError)?void 0:g.call(y,e,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(w=(E=this.options).onSettled)?void 0:w.call(E,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:!M(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),S.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class P extends _{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new N({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(){S.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=>c(e,t)))}findAll(e){return this.mutations.filter((t=>c(e,t)))}notify(e){S.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 S.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(o)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function z(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}const R=e.createContext(void 0),B=e.createContext(!1);var F=n(2619),U=n(5795),H=n.n(U);function K(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"number"==typeof e&&!isNaN(e),q=e=>"string"==typeof e,W=e=>"function"==typeof e,Q=e=>q(e)||W(e)?e:null,Z=t=>(0,e.isValidElement)(t)||q(t)||W(t)||Y(t);function G(t){let{enter:n,exit:r,appendPosition:o=!1,collapse:i=!0,collapseDuration:a=300}=t;return function(t){let{children:s,position:c,preventExitTransition:l,done:u,nodeRef:p,isIn:f}=t;const d=o?`${n}--${c}`:n,h=o?`${r}--${c}`:r,m=(0,e.useRef)(0);return(0,e.useLayoutEffect)((()=>{const e=p.current,t=d.split(" "),n=r=>{r.target===p.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,e.useEffect)((()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),i?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,a):u()};f||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[f]),e.createElement(e.Fragment,null,s)}}function $(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 J={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)}))}},X=t=>{let{theme:n,type:r,...o}=t;return e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${r})`,...o})},ee={info:function(t){return e.createElement(X,{...t},e.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(t){return e.createElement(X,{...t},e.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(t){return e.createElement(X,{...t},e.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(t){return e.createElement(X,{...t},e.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 e.createElement("div",{className:"Toastify__spinner"})}};function te(t){const[,n]=(0,e.useReducer)((e=>e+1),0),[r,o]=(0,e.useState)([]),i=(0,e.useRef)(null),a=(0,e.useRef)(new Map).current,s=e=>-1!==r.indexOf(e),c=(0,e.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function l(e){let{containerId:t}=e;const{limit:n}=c.props;!n||t&&c.containerId!==t||(c.count-=c.queue.length,c.queue=[])}function u(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function p(){const{toastContent:e,toastProps:t,staleId:n}=c.queue.shift();d(e,t,n)}function f(t,r){let{delay:o,staleId:s,...l}=r;if(!Z(t)||function(e){return!i.current||c.props.enableMultiContainer&&e.containerId!==c.props.containerId||a.has(e.toastId)&&null==e.updateId}(l))return;const{toastId:f,updateId:h,data:m}=l,{props:g}=c,y=()=>u(f),v=null==h;v&&c.count++;const b={...g,style:g.toastStyle,key:c.toastKey++,...Object.fromEntries(Object.entries(l).filter((e=>{let[t,n]=e;return null!=n}))),toastId:f,updateId:h,data:m,closeToast:y,isIn:!1,className:Q(l.className||g.toastClassName),bodyClassName:Q(l.bodyClassName||g.bodyClassName),progressClassName:Q(l.progressClassName||g.progressClassName),autoClose:!l.isLoading&&(w=l.autoClose,E=g.autoClose,!1===w||Y(w)&&w>0?w:E),deleteToast(){const e=$(a.get(f),"removed");a.delete(f),J.emit(4,e);const t=c.queue.length;if(c.count=null==f?c.count-c.displayedToast:c.count-1,c.count<0&&(c.count=0),t>0){const e=null==f?c.props.limit:1;if(1===t||1===e)c.displayedToast++,p();else{const n=e>t?t:e;c.displayedToast=n;for(let e=0;ee in ee)(r)&&(a=ee[r](s))),a}(b),W(l.onOpen)&&(b.onOpen=l.onOpen),W(l.onClose)&&(b.onClose=l.onClose),b.closeButton=g.closeButton,!1===l.closeButton||Z(l.closeButton)?b.closeButton=l.closeButton:!0===l.closeButton&&(b.closeButton=!Z(g.closeButton)||g.closeButton);let S=t;(0,e.isValidElement)(t)&&!q(t.type)?S=(0,e.cloneElement)(t,{closeToast:y,toastProps:b,data:m}):W(t)&&(S=t({closeToast:y,toastProps:b,data:m})),g.limit&&g.limit>0&&c.count>g.limit&&v?c.queue.push({toastContent:S,toastProps:b,staleId:s}):Y(o)?setTimeout((()=>{d(S,b,s)}),o):d(S,b,s)}function d(e,t,n){const{toastId:r}=t;n&&a.delete(n);const i={content:e,props:t};a.set(r,i),o((e=>[...e,r].filter((e=>e!==n)))),J.emit(4,$(i,null==i.props.updateId?"added":"updated"))}return(0,e.useEffect)((()=>(c.containerId=t.containerId,J.cancelEmit(3).on(0,f).on(1,(e=>i.current&&u(e))).on(5,l).emit(2,c),()=>{a.clear(),J.emit(3,c)})),[]),(0,e.useEffect)((()=>{c.props=t,c.isToastActive=s,c.displayedToast=r.length})),{getToastToRender:function(e){const n=new Map,r=Array.from(a.values());return t.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,(t=>e(t[0],t[1])))},containerRef:i,isToastActive:s}}function ne(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function re(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function oe(t){const[n,r]=(0,e.useState)(!1),[o,i]=(0,e.useState)(!1),a=(0,e.useRef)(null),s=(0,e.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,e.useRef)(t),{autoClose:l,pauseOnHover:u,closeToast:p,onClick:f,closeOnClick:d}=t;function h(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=ne(e.nativeEvent),s.y=re(e.nativeEvent),"x"===t.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function m(e){if(s.boundingRect){const{top:n,bottom:r,left:o,right:i}=s.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&s.x>=o&&s.x<=i&&s.y>=n&&s.y<=r?y():g()}}function g(){r(!0)}function y(){r(!1)}function v(e){const r=a.current;s.canDrag&&r&&(s.didMove=!0,n&&y(),s.x=ne(e),s.y=re(e),s.delta="x"===t.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${t.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function b(){document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",b);const e=a.current;if(s.canDrag&&s.didMove&&e){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1"}}(0,e.useEffect)((()=>{c.current=t})),(0,e.useEffect)((()=>(a.current&&a.current.addEventListener("d",g,{once:!0}),W(t.onOpen)&&t.onOpen((0,e.isValidElement)(t.children)&&t.children.props),()=>{const t=c.current;W(t.onClose)&&t.onClose((0,e.isValidElement)(t.children)&&t.children.props)})),[]),(0,e.useEffect)((()=>(t.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",g),window.addEventListener("blur",y)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",y))})),[t.pauseOnFocusLoss]);const w={onMouseDown:h,onTouchStart:h,onMouseUp:m,onTouchEnd:m};return l&&u&&(w.onMouseEnter=y,w.onMouseLeave=g),d&&(w.onClick=e=>{f&&f(e),s.canCloseOnClick&&p()}),{playToast:g,pauseToast:y,isRunning:n,preventExitTransition:o,toastRef:a,eventHandlers:w}}function ie(t){let{closeToast:n,theme:r,ariaLabel:o="close"}=t;return e.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),n(e)},"aria-label":o},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.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 ae(t){let{delay:n,isRunning:r,closeToast:o,type:i="default",hide:a,className:s,style:c,controlledProgress:l,progress:u,rtl:p,isIn:f,theme:d}=t;const h=a||l&&0===u,m={...c,animationDuration:`${n}ms`,animationPlayState:r?"running":"paused",opacity:h?0:1};l&&(m.transform=`scaleX(${u})`);const g=V("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),y=W(s)?s({rtl:p,type:i,defaultClassName:g}):V(g,s);return e.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:y,style:m,[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&o()}})}const se=t=>{const{isRunning:n,preventExitTransition:r,toastRef:o,eventHandlers:i}=oe(t),{closeButton:a,children:s,autoClose:c,onClick:l,type:u,hideProgressBar:p,closeToast:f,transition:d,position:h,className:m,style:g,bodyClassName:y,bodyStyle:v,progressClassName:b,progressStyle:w,updateId:E,role:S,progress:_,rtl:x,toastId:O,deleteToast:C,isIn:k,isLoading:M,iconOut:j,closeOnClick:D,theme:A}=t,I=V("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":D}),T=W(m)?m({rtl:x,position:h,type:u,defaultClassName:I}):V(I,m),L=!!_||!c,N={closeToast:f,type:u,theme:A};let P=null;return!1===a||(P=W(a)?a(N):(0,e.isValidElement)(a)?(0,e.cloneElement)(a,N):ie(N)),e.createElement(d,{isIn:k,done:C,position:h,preventExitTransition:r,nodeRef:o},e.createElement("div",{id:O,onClick:l,className:T,...i,style:g,ref:o},e.createElement("div",{...k&&{role:S},className:W(y)?y({type:u}):V("Toastify__toast-body",y),style:v},null!=j&&e.createElement("div",{className:V("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!M})},j),e.createElement("div",null,s)),P,e.createElement(ae,{...E&&!L?{key:`pb-${E}`}:{},rtl:x,theme:A,delay:c,isRunning:n,isIn:k,closeToast:f,hide:p,type:u,style:w,className:b,controlledProgress:L,progress:_||0})))},ce=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},le=G(ce("bounce",!0)),ue=(G(ce("slide",!0)),G(ce("zoom")),G(ce("flip")),(0,e.forwardRef)(((t,n)=>{const{getToastToRender:r,containerRef:o,isToastActive:i}=te(t),{className:a,style:s,rtl:c,containerId:l}=t;function u(e){const t=V("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":c});return W(a)?a({position:e,rtl:c,defaultClassName:t}):V(t,Q(a))}return(0,e.useEffect)((()=>{n&&(n.current=o.current)}),[]),e.createElement("div",{ref:o,className:"Toastify",id:l},r(((t,n)=>{const r=n.length?{...s}:{...s,pointerEvents:"none"};return e.createElement("div",{className:u(t),style:r,key:`container-${t}`},n.map(((t,r)=>{let{content:o,props:a}=t;return e.createElement(se,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":r+1,"--len":n.length},key:`toast-${a.key}`},o)})))})))})));ue.displayName="ToastContainer",ue.defaultProps={position:"top-right",transition:le,autoClose:5e3,closeButton:ie,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let pe,fe=new Map,de=[],he=1;function me(){return""+he++}function ge(e){return e&&(q(e.toastId)||Y(e.toastId))?e.toastId:me()}function ye(e,t){return fe.size>0?J.emit(0,e,t):de.push({content:e,options:t}),t.toastId}function ve(e,t){return{...t,type:t&&t.type||e,toastId:ge(t)}}function be(e){return(t,n)=>ye(t,ve(e,n))}function we(e,t){return ye(e,ve("default",t))}we.loading=(e,t)=>ye(e,ve("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),we.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=q(o)?we.loading(o,n):we.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,o)=>{if(null==t)return void we.dismiss(r);const i={type:e,...s,...n,data:o},a=q(t)?{render:t}:t;return r?we.update(r,{...i,...a}):we(a.render,{...i,...a}),o},l=W(e)?e():e;return l.then((e=>c("success",a,e))).catch((e=>c("error",i,e))),l},we.success=be("success"),we.info=be("info"),we.error=be("error"),we.warning=be("warning"),we.warn=we.warning,we.dark=(e,t)=>ye(e,ve("default",{theme:"dark",...t})),we.dismiss=e=>{fe.size>0?J.emit(1,e):de=de.filter((t=>null!=e&&t.options.toastId!==e))},we.clearWaitingQueue=function(e){return void 0===e&&(e={}),J.emit(5,e)},we.isActive=e=>{let t=!1;return fe.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},we.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=fe.get(n||pe);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:me()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,ye(a,i)}}),0)},we.done=e=>{we.update(e,{progress:1})},we.onChange=e=>(J.on(4,e),()=>{J.off(4,e)}),we.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"},we.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},J.on(2,(e=>{pe=e.containerId||e,fe.set(pe,e),de.forEach((e=>{J.emit(0,e.content,e.options)})),de=[]})).on(3,(e=>{fe.delete(e.containerId||e),0===fe.size&&J.off(0).off(1).off(5)}));var Ee=n(668),Se=n(6427),_e=n(7723),xe=n(1455),Oe=n.n(xe);const Ce=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},Oe()(n).then((e=>e)).catch((e=>e)));delete=(e,t={},n={})=>(n={path:this.getPath(e),method:"DELETE",data:t,...n},Oe()(n).then((e=>e)).catch((e=>console.error(e))));get=(e,t={})=>(t={path:this.getPath(e),method:"GET",...t},Oe()(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};var ke=n(1419),Me=n.n(ke);const je=(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={};return null===e&&(e=sprintf(`
    \n \n
    \n

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

    \n

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

    \n
    \n
    ${(0,_e.__)("Here’s what’s inside BetterDocs Pro.","betterdocs")}
    \n
      \n
    • ${(0,_e.__)("Multiple Knowledge Bases","betterdocs")}
    • \n
    • ${(0,_e.__)("Internal Knowledge Base","betterdocs")}
    • \n
    • ${(0,_e.__)("Instant Answer","betterdocs")}
    • \n
    • ${(0,_e.__)("Advanced Live Search","betterdocs")}
    • \n
    • ${(0,_e.__)("Insightful Analytics Report","betterdocs")}
    • \n
    • ${(0,_e.__)("User Role Management","betterdocs")}
    • \n
    • ${(0,_e.__)("Glossaries & Encyclopedia","betterdocs")}
    • \n
    • ${(0,_e.__)("AI-Powered Chatbot","betterdocs")}
    • \n
    \n
    \n `,"https://betterdocs.co/upgrade")),(0,Ee.isObject)(e)&&(o=e,e=e.message||e.html),((e={})=>{var t,n,r,o,i;return Me().mixin({target:null!==(t=e?.target)&&void 0!==t?t:"#betterdocsQuickBuilder",html:e?.html,title:null!==(n=e?.title)&&void 0!==n?n:(0,_e.__)("Title Goes Here: title","betterdocs"),text:null!==(r=e?.text)&&void 0!==r?r:(0,_e.__)("Text Goes Here: text","betterdocs"),icon:null!==(o=e?.icon)&&void 0!==o?o:e?.type||"success",timer:null!==(i=e?.timer)&&void 0!==i?i:null,...e})})({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})},De={position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,icon:!1},Ae=(e,t,n)=>(e=e||null,t=t||null,new Promise(((r,o)=>{n=n||{};const i={...De,...n,onClose:r};"success"==e&&we.success(t,i),"error"==e&&we.error(t,i),"info"==e&&we.info(t,i),"warning"==e&&we.warning(t,i),e||o()}))),Ie=t=>{const[n,r]=(0,e.useState)(!1),o=(0,Ee.useBuilderContext)(),i=(0,e.useCallback)((e=>{o?.isSubmitting||(o.setSubmitting(!0),o?.values?.enable_sample_data&&Ce.post("create-sample-docs",{action:"create-dummy-data"}),Ce.post("settings",o.values).then((e=>{var t;e?.success?(document.cookie="betterdocs_insights_allowed=; expires=Thu, 01 Jan 2000 00:00:00 UTC; path=/;",Ae("success",(0,_e.__)("Changes Saved Successfully.","betterdocs")).then((()=>{const e=new URL(window.location.href);e.searchParams.set("page","betterdocs-settings"),window.location.replace(e.href)}))):Ae("nothing_changed"===e?.code?"info":"error",(0,_e.__)(null!==(t=e?.message)&&void 0!==t?t:"Something went wrong.","betterdocs"))})).catch((e=>{Ae("error",(0,_e.__)("Something went wrong.","betterdocs"))})).finally((()=>{o.setSubmitting(!1),o?.config?.save_locally&&localStorage.removeItem("quickbuilder_active_tab")})))}),[o.values]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Se.Button,{disabled:n,className:"wprf-btn wprf-step-btn-publish",onClick:i},n&&(0,_e.__)("Finishing...","betterdocs"),!n&&(0,_e.__)("Finish","betterdocs")))},Te=t=>{const n=(0,Ee.useBuilderContext)();return(0,e.useEffect)((()=>{n.registerAlert("pro_alert",je),n.registerAlert("toast",Ae)}),[]),n.submit.onSubmit=(0,e.useCallback)(((e,t)=>0),[]),(0,e.createElement)("div",{className:"betterdocs-quick-setup-builder-wrapper"},(0,e.createElement)(Ee.FormBuilder,{...n}))},Le=t=>{const n=(0,Ee.useBuilder)(betterdocsQuickSetup),[r,o]=(0,e.useState)(!0);return n.values.is_pro_active=betterdocsQuickSetup?.is_pro_active,(0,F.addFilter)("btd_quick_build_launch","betterdocs",(t=>(0,e.createElement)(Ie,{...t}))),(0,e.useEffect)((()=>{o(!1)}),[]),(0,e.createElement)(Ee.BuilderProvider,{value:{...n,isLoading:r,setIsLoading:o}},(0,e.createElement)(Te,{isLoading:r}))};var Ne=n(7500),Pe=n.n(Ne);const ze=t=>{const[n,r]=(0,e.useState)(!1);return(0,e.createElement)("div",{className:Pe()("wprf-control","wprf-collapse",`wprf-${t.name}-collapse`,t?.classes)},(0,e.createElement)("div",{className:"wprf-collapse-header "+(n?"show":"hide")},(0,e.createElement)("h4",{className:"wprf-collapse-title"},t?.label),(0,e.createElement)("h5",{className:"wprf-collapse-collapser",onClick:()=>r(!n)},t?.collapse_title)),(0,e.createElement)("div",{className:"wprf-collapse-body "+(n?"show":"hide")},(0,e.createElement)("span",{className:"wprf-collapse-body-inner"},t?.collapse_message)))},Re=t=>(0,e.createElement)("div",{className:`wprf-control-wrapper wprf-section-header wprf-direction-${t?.direction}`},t?.icon?(0,e.createElement)("div",{className:"wprf-icon header-icon",dangerouslySetInnerHTML:{__html:t?.icon}}):"",(0,e.createElement)("div",{className:"wprf-content"},(0,e.createElement)("h4",{className:"wprf-title",dangerouslySetInnerHTML:{__html:t.title}}),(0,e.createElement)("p",{className:"wprf-description",dangerouslySetInnerHTML:{__html:t.description}})),t?.links?(0,e.createElement)("div",{className:"wprf-link-wrapper"},t?.links?.map((t=>(0,e.createElement)("a",{href:t?.url,target:"_blank",dangerouslySetInnerHTML:{__html:t?.label}})))):""),Be=t=>{var n;return(0,e.createElement)("div",{className:"wprf-image-wrapper"},null!=t?.media?.url&&(0,e.createElement)("img",{src:t.media.url,alt:null!==(n=t?.media?.alt)&&void 0!==n?n:""}))},Fe=(0,Ee.withLabel)((function(t){const n=Pe()("wprf-checkbox-wrap wprf-name-migration_step",t?.classes);return(0,e.createElement)("div",{className:n},(0,e.createElement)(Ee.GenericInput,{...t,type:"checkbox"}),(0,e.createElement)("label",{htmlFor:t.id},t.label))})),Ue=n=>{const r=(0,Ee.validFieldProps)(n,["is_pro","visible","trigger","copyOnClick","disable","parentIndex","context","badge","popup","tags"]),o=(0,e.useCallback)((e=>r.onChange(e,{popup:n?.popup,isPro:!!n.is_pro})),[r?.value]);if(n.tags){let i=Object.values(n.tags);Boolean(n?.context?.is_pro_active)&&n?.context?.values?.multiple_kb||(i=i.filter((e=>"%knowledge_base%"!==e.value)));let a=n.value.length>0?n.value.split("/"):[];const s=t().useRef(null),c=(e,t)=>{var r;const i=s.current,c=null!==(r=i?.selectionStart)&&void 0!==r?r:0;t&&null!=a.find((t=>t===e.value))&&(a=a.filter((t=>t!==e.value)));let l=a.join("/");if(!t){let t=l.indexOf("/",c);if(-1!==t){let n=l.slice(0,t),r=l.slice(t);l=`${n}${n.endsWith("/")?"":"/"}${e.value}${r}`}else l=`${l}${l.endsWith("/")?"":"/"}${e.value}`}o({target:{type:"button",name:n.name,value:l}})};return(0,e.createElement)(e.Fragment,null,t().createElement("input",{...r,onChange:o,ref:s,type:"text"}),(0,e.createElement)("div",{className:"wprf-tags-wrapper"},i.map(((n,r)=>{let o=a.includes(n.value);return(0,e.createElement)(t().Fragment,{key:r},(0,e.createElement)("span",{className:"button button-secondary "+(o?"active":""),title:n.label,onClick:e=>c(n,o)},n.value))}))))}return t().createElement("input",{...r,onChange:o})},He=(t().memo(Ue),(0,Ee.withLabel)(t().memo(Ue))),Ke=t=>(0,e.createElement)("div",{className:"wprf-control-wrapper wprf-video-player",dangerouslySetInnerHTML:{__html:t?.video}});(0,F.addFilter)("custom_field","BetterDocs",((t,n,r)=>{switch(n){case"header":return(0,e.createElement)(Re,{...r});case"migration":return(0,e.createElement)(Fe,{...r});case"image":return(0,e.createElement)(Be,{...r});case"collapse":return(0,e.createElement)(ze,{...r});case"video-player":return(0,e.createElement)(Ke,{...r});case"permalink_structure":return(0,e.createElement)(He,{...r});default:return(0,e.createElement)(e.Fragment,null)}}));const Ve=new class{constructor(e={}){this.queryCache=e.queryCache||new L,this.mutationCache=e.mutationCache||new P,this.logger=e.logger||E,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=x.subscribe((()=>{x.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=C.subscribe((()=>{C.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]=a(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 r=i(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const a=i(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return S.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]=a(e,t),r=this.queryCache;S.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,o]=a(e,t,n),i=this.queryCache,s={type:"active",...r};return S.batch((()=>(i.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(s,o))))}cancelQueries(e,t,n){const[r,i={}]=a(e,t,n);void 0===i.revert&&(i.revert=!0);const s=S.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));return Promise.all(s).then(o).catch(o)}invalidateQueries(e,t,n){const[r,o]=a(e,t,n);return S.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)}))}refetchQueries(e,t,n){const[r,i]=a(e,t,n),s=S.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let c=Promise.all(s).then(o);return null!=i&&i.throwOnError||(c=c.catch(o)),c}fetchQuery(e,t,n){const r=i(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(o).catch(o)}fetchInfiniteQuery(e,t,n){const r=i(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,l=null==c?void 0:c.pageParam,u="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)||[],d=(null==(a=e.state.data)?void 0:a.pageParams)||[];let h=d,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,n,r)=>(h=r?[t,...h]:[...h,t],r?[n,...e]:[...e,n]),v=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const s=g(i);return Promise.resolve(s).then((e=>y(t,r,e,o)))};let b;if(f.length)if(u){const t=void 0!==l,n=t?l:z(e.options,f);b=v(f,t,n)}else if(p){const t=void 0!==l,n=t?l:(w=e.options,E=f,null==w.getPreviousPageParam?void 0:w.getPreviousPageParam(E[0],E));b=v(f,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;b=s&&f[0]&&!s(f[0],0,f)?Promise.resolve(y([],d[0],f[0])):v([],t,d[0]);for(let n=1;n{if(!s||!f[n]||s(f[n],n,f)){const o=t?d[n]:z(e.options,r);return v(r,t,o)}return Promise.resolve(y(r,d[n],f[n]))}))}else b=v([]);var w,E;return b.then((e=>({pages:e,pageParams:h})))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(o).catch(o)}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=>u(e)===u(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>p(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>u(e)===u(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>p(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=l(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()}};H().render((0,e.createElement)((({client:t,children:n,context:r,contextSharing:o=!1})=>{e.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const i=function(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=R),window.ReactQueryClientContext):R)}(r,o);return e.createElement(B.Provider,{value:!r&&o},e.createElement(i.Provider,{value:t},n))}),{client:Ve},(0,e.createElement)(ue,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"colored",limit:4}),(0,e.createElement)((()=>(0,e.createElement)("div",{className:"betterdocs-settings-wrapper"},(0,e.createElement)(Le,null))),null)),document.getElementById("betterdocsQuickSetupBuilder"))})()})();