| Server IP : 104.26.4.103 / Your IP : 216.73.217.51 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-191-generic #201-Ubuntu SMP Fri Aug 7 18:39:04 UTC 2026 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/plugins/metform/build/frontend/app/ |
Upload File : |
!function(){var e={5990:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0,i=t;o<i.length;o++)r(i[o]);return e})},4146:function(e,t,n){"use strict";var r=n(3404),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 l(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 u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var y=d(n,g);try{u(t,g,y)}catch(e){}}}}return t}},3072:function(e,t){"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,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return O(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||O(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return O(e)===u},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},3404:function(e,t,n){"use strict";e.exports=n(3072)},5580:function(e,t,n){var r=n(6110)(n(9325),"DataView");e.exports=r},1549:function(e,t,n){var r=n(2032),o=n(3862),i=n(6721),a=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},79:function(e,t,n){var r=n(3702),o=n(80),i=n(4739),a=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8223:function(e,t,n){var r=n(6110)(n(9325),"Map");e.exports=r},3661:function(e,t,n){var r=n(3040),o=n(7670),i=n(289),a=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},2804:function(e,t,n){var r=n(6110)(n(9325),"Promise");e.exports=r},6545:function(e,t,n){var r=n(6110)(n(9325),"Set");e.exports=r},8859:function(e,t,n){var r=n(3661),o=n(1380),i=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},7217:function(e,t,n){var r=n(79),o=n(1420),i=n(938),a=n(3605),s=n(9817),l=n(945);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},1873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},7828:function(e,t,n){var r=n(9325).Uint8Array;e.exports=r},8303:function(e,t,n){var r=n(6110)(n(9325),"WeakMap");e.exports=r},9770:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},695:function(e,t,n){var r=n(8096),o=n(2428),i=n(6449),a=n(3656),s=n(361),l=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},4528:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},4248:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},6025:function(e,t,n){var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},2199:function(e,t,n){var r=n(4528),o=n(6449);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},2552:function(e,t,n){var r=n(1873),o=n(659),i=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},7534:function(e,t,n){var r=n(2552),o=n(346);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},270:function(e,t,n){var r=n(7068),o=n(346);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},7068:function(e,t,n){var r=n(7217),o=n(5911),i=n(1986),a=n(689),s=n(5861),l=n(6449),u=n(3656),c=n(7167),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var y=l(e),b=l(t),w=y?d:s(e),O=b?d:s(t),x=(w=w==f?p:w)==p,_=(O=O==f?p:O)==p,k=w==O;if(k&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(k&&!x)return g||(g=new r),y||c(e)?o(e,t,n,m,v,g):i(e,t,w,n,m,v,g);if(!(1&n)){var E=x&&h.call(e,"__wrapped__"),C=_&&h.call(t,"__wrapped__");if(E||C){var j=E?e.value():e,S=C?t.value():t;return g||(g=new r),v(j,S,n,m,g)}}return!!k&&(g||(g=new r),a(e,t,n,m,v,g))}},5083:function(e,t,n){var r=n(1882),o=n(7296),i=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},4901:function(e,t,n){var r=n(2552),o=n(294),i=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},8984:function(e,t,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8096:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7301:function(e){e.exports=function(e){return function(t){return e(t)}}},9219:function(e){e.exports=function(e,t){return e.has(t)}},5481:function(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},5911:function(e,t,n){var r=n(8859),o=n(4248),i=n(9219);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var g=e[h],y=t[h];if(a)var b=u?a(y,g,h,t,e,l):a(g,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!o(t,function(e,t){if(!i(v,t)&&(g===e||s(g,e,n,a,l)))return v.push(t)})){m=!1;break}}else if(g!==y&&!s(g,y,n,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},1986:function(e,t,n){var r=n(1873),o=n(7828),i=n(5288),a=n(5911),s=n(317),l=n(4247),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var v=a(p(e),p(t),r,u,f,d);return d.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},689:function(e,t,n){var r=n(2),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var f=c;f--;){var d=u[f];if(!(l?d in t:o.call(t,d)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++f<c;){var g=e[d=u[f]],y=t[d];if(i)var b=l?i(y,g,d,t,e,s):i(g,y,d,e,t,s);if(!(void 0===b?g===y||a(g,y,n,i,s):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,O=t.constructor;w==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof O&&O instanceof O||(m=!1)}return s.delete(e),s.delete(t),m}},4840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:function(e,t,n){var r=n(2199),o=n(4664),i=n(5950);e.exports=function(e){return r(e,i,o)}},2651:function(e,t,n){var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},6110:function(e,t,n){var r=n(5083),o=n(392);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},659:function(e,t,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},4664:function(e,t,n){var r=n(9770),o=n(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},5861:function(e,t,n){var r=n(5580),o=n(8223),i=n(2804),a=n(6545),s=n(8303),l=n(2552),u=n(7473),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(r),v=u(o),g=u(i),y=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case v:return c;case g:return f;case y:return d;case b:return p}return t}),e.exports=w},392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032:function(e,t,n){var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2749:function(e,t,n){var r=n(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},5749:function(e,t,n){var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},4218:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:function(e,t,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},5527:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3702:function(e){e.exports=function(){this.__data__=[],this.size=0}},80:function(e,t,n){var r=n(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4739:function(e,t,n){var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:function(e,t,n){var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:function(e,t,n){var r=n(6025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},3040:function(e,t,n){var r=n(1549),o=n(79),i=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7670:function(e,t,n){var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:function(e,t,n){var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:function(e,t,n){var r=n(2651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},317:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},1042:function(e,t,n){var r=n(6110)(Object,"create");e.exports=r},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},9325:function(e,t,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1380:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:function(e){e.exports=function(e){return this.__data__.has(e)}},4247:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},1420:function(e,t,n){var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:function(e){e.exports=function(e){return this.__data__.get(e)}},9817:function(e){e.exports=function(e){return this.__data__.has(e)}},945:function(e,t,n){var r=n(79),o=n(8223),i=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428:function(e,t,n){var r=n(7534),o=n(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),o=n(294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),o=n(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},2404:function(e,t,n){var r=n(270);e.exports=function(e,t){return r(e,t)}},1882:function(e,t,n){var r=n(2552),o=n(3805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},7167:function(e,t,n){var r=n(4901),o=n(7301),i=n(6009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},5950:function(e,t,n){var r=n(695),o=n(8984),i=n(4894);e.exports=function(e){return i(e)?r(e):o(e)}},3345:function(e){e.exports=function(){return[]}},9935:function(e){e.exports=function(){return!1}},7048:function(e){"use strict";var t=function(){var e={tolerance:0,duration:800,easing:"easeOutQuart",container:window,callback:function(){}};function t(e,t,n,r){return e/=r,-n*(--e*e*e*e-1)+t}function n(e,t){var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function r(e){return e instanceof HTMLElement?e.scrollTop:e.pageYOffset}function o(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.options=n(e,r),this.easeFunctions=n({easeOutQuart:t},o)}return o.prototype.registerTrigger=function(e,t){var r=this;if(e){var o=e.getAttribute("href")||e.getAttribute("data-target"),i=o&&"#"!==o?document.getElementById(o.substring(1)):document.body,a=n(this.options,function(e,t){var n={};return Object.keys(t).forEach(function(t){var r=e.getAttribute("data-mt-".concat(t.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})));r&&(n[t]=isNaN(r)?r:parseInt(r,10))}),n}(e,this.options));"function"==typeof t&&(a.callback=t);var s=function(e){e.preventDefault(),r.move(i,a)};return e.addEventListener("click",s,!1),function(){return e.removeEventListener("click",s,!1)}}},o.prototype.move=function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===e||e){o=n(this.options,o);var i,a="number"==typeof e?e:e.getBoundingClientRect().top,s=r(o.container),l=null;a-=o.tolerance,window.requestAnimationFrame(function n(u){var c=r(t.options.container);l||(l=u-1);var f=u-l;if(i&&(a>0&&i>c||a<0&&i<c))return o.callback(e);i=c;var d=t.easeFunctions[o.easing](f,s,a,o.duration);o.container.scroll(0,d),f<o.duration?window.requestAnimationFrame(n):(o.container.scroll(0,a+s),o.callback(e))})}},o.prototype.addEaseFunction=function(e,t){this.easeFunctions[e]=t},o}();e.exports=t},1574:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),m=n(1),v={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};t.default=v},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var a,s={},l={},u={},c={};function f(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=c[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=c.block:e&a.LEVEL&a.INLINE&&(n=c.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=l[r[o]])break;n=n||u[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var n=f(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=f,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map(function(t){return e(t)});var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(l[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(e){return e.toUpperCase()}):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(function(e){null!=u[e]&&null!=r.className||(u[e]=r)}))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e},0)},l.prototype.length=function(){return this.reduce(function(e,t){return e+a.length(t)},0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=a.length(i)}return new l(n)},l.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var s=i.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),r.push(t.next());i.retain-s>0&&n.next(i.retain-s)}for(var u=new l(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var m=new l(t.rest());return u.concat(m).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&u.push(d)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map(function(t){return t.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),i=new l,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.next(n),l=f.next(n);o(s.insert,l.insert)?i.retain(n,a.attributes.diff(s.attributes,l.attributes)):i.push(l).delete(n)}t-=n}}),i.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new l,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),s=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new l}}r.length()>0&&e(r,{},o)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),s=n.next(i),u=r.next(i);if(s.delete)continue;u.delete?o.push(u):o.retain(i,a.attributes.transform(s.attributes,u.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=u(f,n),f!==(o=u(t,n))&&(h&&o&&(s(o)||(i=a(o)))?(i?(i=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(f,{name:n,newValue:e(h,c,o)})):void 0!==o&&l(f,{name:n,newValue:o}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=f(n(3)),a=f(n(2)),s=f(n(0)),l=f(n(16)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=s.default.create(v.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(s.default.Embed);m.scope=s.default.Scope.BLOCK_BLOT;var v=function(e){function t(e){d(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))},new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;i.reduce(function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length},e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof l.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(s.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,s.default.Embed,c.default],t.bubbleFormats=g,t.BlockEmbed=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=v(n(2)),s=v(n(14)),l=v(n(8)),u=v(n(9)),c=v(n(0)),f=n(15),d=v(f),p=v(n(3)),h=v(n(10)),m=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,h.default)("quill"),b=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;O.call(n,function(){return n.editor.update(null,t,o)},e)});var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach(function(r){n.register(r,e[r],t)})}else null==this.imports[e]||r||y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=x(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],O.call(this,function(){return r.editor.deleteText(e,t)},n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return O.call(this,function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,l.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,s=this,l=x(e,t,n,r,i),u=o(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],O.call(this,function(){return s.editor.formatLine(e,t,a)},i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,s=this,l=x(e,t,n,r,i),u=o(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],O.call(this,function(){return s.editor.formatText(e,t,a)},i,e,0)}},{key:"getBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="number"==typeof e?this.selection.getBounds(e,n):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:t.bottom-r.top,height:t.height,left:t.left-r.left,right:t.right-r.left,top:t.top-r.top,width:t.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=x(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=x(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return O.call(this,function(){return o.editor.insertEmbed(t,n,r)},i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,s=this,l=x(e,0,n,r,i),u=o(l,4);return e=u[0],a=u[2],i=u[3],O.call(this,function(){return s.editor.insertText(e,t,a)},i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=x(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],O.call(this,function(){return r.editor.removeFormat(e,t)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return O.call(this,function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=x(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return O.call(this,function(){return e=new a.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var n=b.import("modules/"+t);return null==n?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},b.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e},{}),t}function O(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,s=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=_(o,s,t):0!==r&&(o=_(o,n,r,t)),this.setSelection(o,l.default.sources.SILENT)),s.length()>0){var u,c,f=[l.default.events.TEXT_CHANGE,s,i,t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),t!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function x(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||l.default.sources.API]}function _(e,t,n,r){if(null==e)return null;var i=void 0,s=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,r!==l.default.sources.USER)}),c=o(u,2);i=c[0],s=c[1]}else{var d=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&r===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)}),p=o(d,2);i=p[0],s=p[1]}return new f.Range(i,s-i)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=w,t.overload=x,t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=s(n(7)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(e,n);i&&s.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);l.allowedChildren=[l,a.default.Embed,i.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(0))&&r.__esModule?r:{default:r}).default.Text);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)})})});var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){s.log.apply(s,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce(function(t,n){return t[n]=i.bind(console,n,e),t},{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=o(e),d=o(t)}catch(e){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),s=f(n(0)),l=f(n(4)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);m.blotName="code",m.tagName="CODE";var v=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,n){return t.insert(n).insert("\n",e.formats())},new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),a=r(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,l=i-a+1,u=this.isolate(a,l),c=u.next;u.format(r,o),c instanceof t&&c.formatAt(0,e-a+n-l,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),a=i[0],s=i[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=g(n(2)),s=g(n(20)),l=g(n(0)),u=g(n(13)),c=g(n(24)),f=n(4),d=g(f),p=g(n(16)),h=g(n(21)),m=g(n(11)),v=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)},new a.default)}(e)).reduce(function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=o(h,2),g=m[0],y=m[1],b=(0,v.default)({},(0,f.bubbleFormats)(g));if(g instanceof d.default){var w=g.descendant(l.default.Leaf,y),O=o(w,1)[0];b=(0,v.default)(b,(0,f.bubbleFormats)(O))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}i+=u}return Object.keys(c).forEach(function(n){t.scroll.formatAt(e,u,n,c[n])}),e+u},0),e.reduce(function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach(function(t){var i=t.length();if(t instanceof u.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,o,r[o])}else t.format(o,r[o]);a-=i})}}),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t,o,r[o])}),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(function(e){var t=o(e,1)[0];t instanceof d.default?n.push(t):t instanceof l.default.Leaf&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(l.default.Leaf,e,t));var i=[n,r].map(function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t});return v.default.apply(v.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t.length,o,r[o])}),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),s=i[0],l=i[1],c=0,f=new a.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,f=s.delta().slice(l,l+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var o=l.default.find(t[0].target),i=(0,f.bubbleFormats)(o),s=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(u),p=(new a.default).insert(o.value());e=(new a.default).retain(s).concat(d.diff(p,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)},new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce(function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n},{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),a=u(n(21)),s=u(n(11)),l=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&r.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(o,i,a,s)}}),this.update(l.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);o=c[0],l=c[1];var f=document.createRange();if(t>0){f.setStart(o,l);var d=this.scroll.leaf(e+t),p=r(d,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),m=r(h,2);return o=m[0],l=m[1],f.setEnd(o,l),f.getBoundingClientRect()}var v="left",g=void 0;return o instanceof Text?(l<o.data.length?(f.setStart(o,l),f.setEnd(o,l+1)):(f.setStart(o,l-1),f.setEnd(o,l),v="right"),g=f.getBoundingClientRect()):(g=s.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map(function(e){var n=r(e,2),o=n[0],a=n[1],s=i.default.find(o,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof i.default.Container?l+s.length():l+s.index(o,a)}),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(o)));return new p(s,a-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach(function(e,n){e=Math.min(i-1,e);var a,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],o.push(a,c)}),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],s=a;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,o));s=r(l,1)[0]}if(null!=a&&null!=s){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),i.removeAllRanges(),i.addRange(s)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=n(0))&&r.__esModule?r:{default:r}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof s.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,n){e.deleteAt(t,n)})},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=a}),o},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,function(e,t,o){e.formatAt(t,o,n,r)})},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?s.create("text",t):s.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(n){e.insertBefore(n,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,n)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),function(e,r,o){e=e.split(r,t),n.appendChild(e)}),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach(function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))}),o.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}}),r.filter(function(e){return e.parentNode==n.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))})},t}(a.default);function u(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(n){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),s=n(17),l=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some(function(e){return e.target===r.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(s.default);t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=s},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce(function(e,t){return null!=r[t]&&(e[t]=r[t]),e},{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return void 0===e[r]&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(i,s,l,u,c){"object"==typeof s&&(l=s.depth,u=s.prototype,c=s.includeNonEnumerable,s=s.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var m,v;if("object"!=typeof l)return l;if(e(l,t))m=new t;else if(e(l,n))m=new n;else if(e(l,r))m=new r(function(e,t){l.then(function(t){e(i(t,h-1))},function(e){t(i(e,h-1))})});else if(o.__isArray(l))m=[];else if(o.__isRegExp(l))m=new RegExp(l.source,a(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(o.__isDate(l))m=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(m),m;e(l,Error)?m=Object.create(l):void 0===u?(v=Object.getPrototypeOf(l),m=Object.create(v)):(m=Object.create(u),v=u)}if(s){var g=f.indexOf(l);if(-1!=g)return d[g];f.push(l),d.push(m)}for(var y in e(l,t)&&l.forEach(function(e,t){var n=i(t,h-1),r=i(e,h-1);m.set(n,r)}),e(l,n)&&l.forEach(function(e){var t=i(e,h-1);m.add(t)}),l){var b;v&&(b=Object.getOwnPropertyDescriptor(v,y)),b&&null==b.set||(m[y]=i(l[y],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(l);for(y=0;y<w.length;y++){var O=w[y];(!(_=Object.getOwnPropertyDescriptor(l,O))||_.enumerable||c)&&(m[O]=i(l[O],h-1),_.enumerable||Object.defineProperty(m,O,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(l);for(y=0;y<x.length;y++){var _,k=x[y];(_=Object.getOwnPropertyDescriptor(l,k))&&_.enumerable||(m[k]=i(l[k],h-1),Object.defineProperty(m,k,{enumerable:!1}))}}return m}(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=p(n(0)),s=p(n(8)),l=n(4),u=p(l),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof u.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),a=r(o,2),s=a[0],u=a[1],d=this.line(e+n),p=r(d,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&s!==p&&u>0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var v=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r}),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[u.default,l.BlockEmbed,d.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=m(n(21)),s=m(n(11)),l=m(n(3)),u=m(n(2)),c=m(n(20)),f=m(n(0)),d=m(n(5)),p=m(n(10)),h=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])}),r.addBinding({key:t.keys.ENTER,shiftKey:null},k),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},O),r.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},O),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},_),r.addBinding({key:t.keys.DELETE},{collapsed:!1},_),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},O),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=j(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!t[n]!==e[n]&&null!==t[n]})&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter(function(e){return t.match(n,e)});if(0!==a.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var u=e.quill.getLine(l.index),c=o(u,2),d=c[0],p=c[1],h=e.quill.getLeaf(l.index),m=o(h,2),v=m[0],g=m[1],y=0===l.length?[v,g]:e.quill.getLeaf(l.index+l.length),b=o(y,2),w=b[0],O=b[1],x=v instanceof f.default.Text?v.value().slice(0,g):"",_=w instanceof f.default.Text?w.value().slice(O):"",k={collapsed:0===l.length,empty:0===l.length&&d.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:x,suffix:_};a.some(function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==k.format[e]}))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,s.default)(t.format[e],k.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix)||!0===t.handler.call(e,l,k))})&&n.preventDefault()}}}})}}]),t}(h.default);function w(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))}),n}function O(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=o(a,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(l,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),s=o(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),u=o(l,1)[0];if(u){var f=s.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d.default.sources.USER)}}function _(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function k(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce(function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e},{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))})}function E(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),s=o(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),p=l.newlineIndex(u,!0)+1,h=l.newlineIndex(c+u+i),m=l.domNode.textContent.slice(p,h).split("\n");u=0,m.forEach(function(t,o){e?(l.insertAt(p+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=t.length+1}),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,i,d.default.sources.SILENT)}}}}function C(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function j(e){if("string"==typeof e||"number"==typeof e)return j({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:C("bold"),italic:C("italic"),underline:C("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":E(!0),"outdent code-block":E(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,l.default)({},r.formats(),{list:"checked"}),s=(new u.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],s=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],s=i[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new u.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,a=0;null!=o&&o.statics.scope!==i.default.Scope.BLOCK_BLOT;)a+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(a,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];r=l[0],o=l[1],s=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(i.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([o,s].map(function(e){return Math.max(0,Math.min(r.data.length,e-1))}),2);return o=c[0],s=c[1],{startNode:r,startOffset:o,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some(function(e){return"characterData"===e.type&&e.target===n.textNode})){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(i.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);s.allowedChildren=[i.default,o.BlockEmbed,s],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=(r=n(0))&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join(""):n}}]),t}(a.default.Attributor.Style),l=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),u=new s("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=l,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return s(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);function s(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(23)),a=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",function(){t.selectItem(n,!0)}),n.addEventListener("keydown",function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),o=g(n(5)),i=n(4),a=g(i),s=g(n(16)),l=g(n(25)),u=g(n(24)),c=g(n(35)),f=g(n(6)),d=g(n(22)),p=g(n(7)),h=g(n(55)),m=g(n(42)),v=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":v.default}),r.default.register(a.default,s.default,u.default,f.default,d.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),s=i.default.keys(this.domNode);t.concat(n).concat(s).forEach(function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=e.attributes[n].value(e.domNode),t},{})},e}();t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});function i(e){var t=e.split("-"),n=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(e){n.contentNode.appendChild(e)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}})}}]),t}(i.default.Embed);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),s=new o.default.Attributor.Class("align","ql-align",i),l=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=s,t.AlignStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),s=new o.default.Attributor.Class("direction","ql-direction",i),l=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=s,t.DirectionStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=(r=n(0))&&r.__esModule?r:{default:r},s={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new a.default.Attributor.Class("font","ql-font",s),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),c=new u("font","font-family",s);t.FontStyle=c,t.FontClass=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=l(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function l(e){var t=e.reduce(function(e,t){return e+(t.delete||0)},0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)}))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=h(n(3)),a=h(n(2)),s=h(n(8)),l=h(n(23)),u=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],O=["1","2","3",!1],x=["small",!1,"large","huge"],_=function(e){function t(e,n){m(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(e){e.container.contains(n.target)||e.close()})}),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&E(e,y),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&E(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?E(e,w):e.classList.contains("ql-header")?E(e,O):e.classList.contains("ql-size")&&E(e,x)),new d.default(e)}),this.quill.on(s.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}(u.default);_.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),s.default.sources.USER),e.quill.setSelection(r.index+1,s.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var k=function(e){function t(e,n){m(this,t);var r=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,s.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",s.default.sources.USER),this.quill.setSelection(i+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)})}t.BaseTooltip=k,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],s=this.iterator(i);(r=s())&&a<e+t;){var l=r.length();e>a?n(r,e-a,Math.min(t,a+l-e)):n(r,0,Math.min(l,e+t-a)),a+=l}},e.prototype.map=function(e){return this.reduce(function(t,n){return t.push(e(n)),t},[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver(function(e){n.update(e)}),n.observer.observe(n.domNode,s),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(l),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=a.find(e,!1);s(t,!1),t instanceof i.default&&t.children.forEach(function(e){s(e,!1)})})):"attributes"===e.type&&s(t.prev)),s(t))}),this.children.forEach(l),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map(function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)}),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach(function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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])},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=s},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var n=-1;function r(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var c=i(e,t),f=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var d=e.substring(e.length-c),p=function(e,t){var s;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return s=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==u.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,s,l,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var d=i(e.substring(n),t.substring(c)),p=a(e.substring(0,n),t.substring(0,c));f.length<p+d&&(f=t.substring(c-p,c)+t.substring(c,c+d),r=e.substring(0,n-p),o=e.substring(n+d),s=t.substring(0,c-p),l=t.substring(c+d))}return 2*f.length>=e.length?[r,o,s,l,f]:null}var s,l,u,c,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));return d||p?(s=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(l=s[0],u=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],l=s[2],u=s[3]),[l,u,c,f,s[4]]):null}(e,t);if(f){var d=f[0],p=f[1],h=f[2],m=f[3],v=f[4],g=r(d,h),y=r(p,m);return g.concat([[0,v]],y)}return function(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),s=a,l=2*a,u=new Array(l),c=new Array(l),f=0;f<l;f++)u[f]=-1,c[f]=-1;u[s+1]=0,c[s+1]=0;for(var d=r-i,p=d%2!=0,h=0,m=0,v=0,g=0,y=0;y<a;y++){for(var b=-y+h;b<=y-m;b+=2){for(var w=s+b,O=(C=b==-y||b!=y&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-b;C<r&&O<i&&e.charAt(C)==t.charAt(O);)C++,O++;if(u[w]=C,C>r)m+=2;else if(O>i)h+=2;else if(p&&(k=s+d-b)>=0&&k<l&&-1!=c[k]&&C>=(_=r-c[k]))return o(e,t,C,O)}for(var x=-y+v;x<=y-g;x+=2){for(var _,k=s+x,E=(_=x==-y||x!=y&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-x;_<r&&E<i&&e.charAt(r-_-1)==t.charAt(i-E-1);)_++,E++;if(c[k]=_,_>r)g+=2;else if(E>i)v+=2;else if(!p){var C;if((w=s+d-x)>=0&&w<l&&-1!=u[w]&&(O=s+(C=u[w])-w,C>=(_=r-_)))return o(e,t,C,O)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),s(p),null!=l&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var a=r+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var s=t-r,l=[i[0],i[1].slice(0,s)],u=[i[0],i[1].slice(s)];return e.splice(o,1,l,u),[o+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],a=o[i],s=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return o.splice(i,2,s,a),u(o,i,2);if(null!=s&&0===s[1].indexOf(a[1])){o.splice(i,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&o.splice(i+2,0,[s[0],l]),u(o,i,3)}return e}(p,l)),function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var a=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&a.push(e[i]);return a}(p)}function o(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=r(i,a),c=r(s,l);return u.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e){e.push([0,""]);for(var t,r=0,o=0,l=0,u="",c="";r<e.length;)switch(e[r][0]){case 1:l++,c+=e[r][1],r++;break;case n:o++,u+=e[r][1],r++;break;case 0:o+l>1?(0!==o&&0!==l&&(0!==(t=i(c,u))&&(r-o-l>0&&0==e[r-o-l-1][0]?e[r-o-l-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),u=u.substring(t)),0!==(t=a(c,u))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===o?e.splice(r-l,o+l,[1,c]):0===l?e.splice(r-o,o+l,[n,u]):e.splice(r-o-l,o+l,[n,u],[1,c]),r=r-o-l+(o?1:0)+(l?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,l=0,o=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&s(e)}var l=r;function u(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}l.INSERT=1,l.DELETE=n,l.EQUAL=0,e.exports=l},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,s=new Array(a);i<a;i++)s[i]=o[i].fn;return s},a.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var 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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=b(n(3)),s=b(n(2)),l=b(n(0)),u=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),m=n(26),v=n(38),g=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(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=(0,c.default)("quill:clipboard"),x="__ql-matcher",_=[[Node.TEXT_NODE,R],[Node.TEXT_NODE,L],["br",function(e,t){return A(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===S(e).fontStyle&&(n.italic=!0),r.fontWeight&&(S(e).fontWeight.startsWith("bold")||parseInt(S(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!A(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",N.bind(N,"bold")],["i",N.bind(N,"italic")],["style",function(){return new s.default}]],k=[d.AlignAttribute,v.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),E=[d.AlignStyle,p.BackgroundStyle,m.ColorStyle,v.DirectionStyle,g.FontStyle,y.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),C=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],_.concat(r.options.matchers).forEach(function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==I)&&r.addMatcher(i,a)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],l=i[1],u=D(this.container,a,l);return A(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),O.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach(function(r){var i=o(r,2),a=i[0],s=i[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),function(e){e[x]=e[x]||[],e[x].push(s)})}}),[t,n]}}]),t}(f.default);function j(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce(function(e,n){return j(e,n,t[n])},e):e.reduce(function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))},new s.default)}function S(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function A(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function P(e){if(0===e.childNodes.length)return!1;var t=S(e);return["block","list-item"].indexOf(t.display)>-1}function D(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce(function(t,n){return n(e,t)},new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(r,o){var i=D(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce(function(e,t){return t(o,e)},i),i=(o[x]||[]).reduce(function(e,t){return t(o,e)},i)),r.concat(i)},new s.default):new s.default}function N(e,t,n){return j(n,e,!0)}function M(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),o=l.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach(function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(n=E[t],i[n.attrName]=n.value(e)||void 0))}),Object.keys(i).length>0&&(t=j(t,i)),t}function T(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new s.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function L(e,t){return A(t,"\n")||(P(e)||t.length()>0&&e.nextSibling&&P(e.nextSibling))&&t.insert("\n"),t}function I(e,t){if(P(e)&&null!=e.nextElementSibling&&!A(t,"\n\n")){var n=e.offsetHeight+parseFloat(S(e).marginTop)+parseFloat(S(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function R(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!S(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&P(e.parentNode)||null!=e.previousSibling&&P(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&P(e.parentNode)||null!=e.nextSibling&&P(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}C.DEFAULTS={matchers:[],matchVisual:!0},t.default=C,t.matchAttributor=M,t.matchBlot=T,t.matchNewline=L,t.matchSpacing=I,t.matchText=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(2)),a=c(n(0)),s=c(n(5)),l=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=(0,l.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");m(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach(function(e){i.addHandler(e,i.options.handlers[e])}),[].forEach.call(i.container.querySelectorAll("button, select"),function(e){i.attach(e)}),i.quill.on(s.default.events.EDITOR_CHANGE,function(e,t){e===s.default.events.SELECTION_CHANGE&&i.update(t)}),i.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)}),i):(o=d.error("Container required for toolbar",i.options),f(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,function(o){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];l=!u.hasAttribute("selected")&&(u.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=r(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),s.default.sources.USER)}else t.quill.format(n,l,s.default.sources.USER);t.update(f)}),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[i])s=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var l=t[i];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])})}}]),t}(u.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):h(n,t,r)}}),e.appendChild(n)})}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=n(28))&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=n[e.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=n(28))&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=d(n(3)),a=d(n(8)),s=n(43),l=d(s),u=d(n(27)),c=n(15),f=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return m(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}(l.default);g.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){p(this,t);var r=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(_n=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.quill.scroll.descendant(u.default,t.index),2),i=o[0],s=o[1];if(null!=i){e.linkRange=new c.Range(t.index-s,i.length());var l=u.default.formats(i.domNode);return e.preview.textContent=l,e.preview.setAttribute("href",l),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=L(n(29)),o=n(36),i=n(38),a=n(64),s=L(n(65)),l=L(n(66)),u=n(67),c=L(u),f=n(37),d=n(26),p=n(39),h=n(40),m=L(n(56)),v=L(n(68)),g=L(n(27)),y=L(n(69)),b=L(n(70)),w=L(n(71)),O=L(n(72)),x=L(n(73)),_=n(13),k=L(_),E=L(n(74)),C=L(n(75)),j=L(n(57)),S=L(n(41)),A=L(n(28)),P=L(n(59)),D=L(n(60)),N=L(n(61)),M=L(n(108)),T=L(n(62));function L(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":k.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":_.Code,"formats/italic":v.default,"formats/link":g.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":O.default,"formats/video":x.default,"formats/list/item":u.ListItem,"modules/formula":E.default,"modules/syntax":C.default,"modules/toolbar":j.default,"themes/bubble":M.default,"themes/snow":T.default,"ui/icons":S.default,"ui/picker":A.default,"ui/icon-picker":D.default,"ui/color-picker":P.default,"ui/tooltip":N.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=(r=n(0))&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),l=new s("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(4))&&r.__esModule?r:{default:r}).default);o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=n(4))&&r.__esModule?r:{default:r}).default);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(4)),s=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){e!==p.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return f(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(56))&&r.__esModule?r:{default:r}).default);o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);o.blotName="strike",o.tagName="S",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=n(6))&&r.__esModule?r:{default:r}).default);o.blotName="underline",o.tagName="U",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=(r=n(0))&&r.__esModule?r:{default:r},s=n(27),l=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){l.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return l.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},a=n(4),s=(r=n(27))&&r.__esModule?r:{default:r},l=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){l.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return l.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(35)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),t}(s.default);t.FormulaBlot=d,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=l(n(0)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(o),o=setTimeout(function(){r.highlight(),o=null},r.options.interval)}),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=f(n(3)),a=f(n(8)),s=n(43),l=f(s),u=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(l.default);v.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){d(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(a.default.events.EDITOR_CHANGE,function(e,t,n,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var s=i[i.length-1],l=r.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-l),f=r.quill.getBounds(new u.Range(l,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=v},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},5708: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;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},l=s(n(1609)),u=s(n(5795)),c=s(n(2404)),f=s(n(1574)),d=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,r,o){var i,a,s,l;"text-change"===e?null===(a=(i=n).onEditorChangeText)||void 0===a||a.call(i,n.editor.root.innerHTML,t,o,n.unprivilegedEditor):"selection-change"===e&&(null===(l=(s=n).onEditorChangeSelection)||void 0===l||l.call(s,t,o,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=null!=r?r:"",n}return o(t,e),t.prototype.validateProps=function(e){var t;if(l.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(e.children)&&"textarea"===(null===(t=l.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,r=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(n=e.value)?n:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some(function(t){return!c.default(e[t],r.props[t])})},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some(function(n){return!c.default(e[n],t.props[n])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var r=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(r=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(r),p(function(){return n.setEditorSelection(s,a)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new f.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?c.default(e.ops,t.ops):c.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var r=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p(function(){return n.setEditorSelection(e,r)})},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,r;(null===(r=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===r?void 0:r.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=u.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,r=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return l.default.Children.count(n)?l.default.cloneElement(l.default.Children.only(n),o):r?l.default.createElement("pre",i({},o)):l.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,r){var o,i;if(this.editor){var a=this.isDelta(this.value)?r.getContents():r.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,n,r))}},t.prototype.onEditorChangeSelection=function(e,t,n){var r,o,i,a,s,l;if(this.editor){var u=this.getEditorSelection(),f=!u&&e,d=u&&!e;c.default(e,u)||(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),f?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,n):d&&(null===(l=(s=this.props).onBlur)||void 0===l||l.call(s,u,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=f.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(l.default.Component);function p(e){Promise.resolve().then(e)}e.exports=d},1609:function(e){"use strict";e.exports=window.React},5795:function(e){"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],i=t[r++];n.o(e,o)?0===i&&r++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(e,n){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=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,n)||t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=window.wp.element;function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],u={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},c={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},f=c,d=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},p=function(e){return!0===e?1:0};function h(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(r,o)},t)}}var m=function(e){return e instanceof Array?e:[e]};function v(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function g(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function b(e,t){return t(e)?e:e.parentNode?b(e.parentNode,t):void 0}function w(e,t){var n=g("div","numInputWrapper"),r=g("input","numInput "+e),o=g("span","arrowUp"),i=g("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var a in t)r.setAttribute(a,t[a]);return n.appendChild(r),n.appendChild(o),n.appendChild(i),n}function O(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var x=function(){},_=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},k={D:x,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*p(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:x,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:x,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},E={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},C={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[C.w(e,t,n)]},F:function(e,t,n){return _(C.n(e,t,n)-1,!1,t)},G:function(e,t,n){return d(C.h(e,t,n))},H:function(e){return d(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[p(e.getHours()>11)]},M:function(e,t){return _(e.getMonth(),!0,t)},S:function(e){return d(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return d(e.getFullYear(),4)},d:function(e){return d(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return d(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return d(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},j=function(e){var t=e.config,n=void 0===t?u:t,r=e.l10n,o=void 0===r?c:r,i=e.isMobile,a=void 0!==i&&i;return function(e,t,r){var i=r||o;return void 0===n.formatDate||a?t.split("").map(function(t,r,o){return C[t]&&"\\"!==o[r-1]?C[t](e,i,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,i)}},S=function(e){var t=e.config,n=void 0===t?u:t,r=e.l10n,o=void 0===r?c:r;return function(e,t,r,i){if(0===e||e){var a,s=i||o,l=e;if(e instanceof Date)a=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)a=new Date(e);else if("string"==typeof e){var c=t||(n||u).dateFormat,f=String(e).trim();if("today"===f)a=new Date,r=!0;else if(n&&n.parseDate)a=n.parseDate(e,c);else if(/Z$/.test(f)||/GMT$/.test(f))a=new Date(e);else{for(var d=void 0,p=[],h=0,m=0,v="";h<c.length;h++){var g=c[h],y="\\"===g,b="\\"===c[h-1]||y;if(E[g]&&!b){v+=E[g];var w=new RegExp(v).exec(e);w&&(d=!0)&&p["Y"!==g?"push":"unshift"]({fn:k[g],val:w[++m]})}else y||(v+=".")}a=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),p.forEach(function(e){var t=e.fn,n=e.val;return a=t(a,n,s)||a}),a=d?a:void 0}}if(a instanceof Date&&!isNaN(a.getTime()))return!0===r&&a.setHours(0,0,0,0),a;n.errorHandler(new Error("Invalid date provided: "+l))}}};function A(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var P=function(e,t,n){return 3600*e+60*t+n};function D(e){var t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),i=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<i&&(n=i),t===o&&n===i&&r<a&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}n(5990);var N=function(){return N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},N.apply(this,arguments)},M=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};function T(e,t){var n={config:N(N({},u),I.defaultConfig),l10n:f};function r(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function o(e){return e.bind(n)}function i(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function a(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||A(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),r=D(n.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=O(e),o=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[p(n.amPM.textContent===n.l10n.amPM[0])]);var i=parseFloat(o.getAttribute("min")),a=parseFloat(o.getAttribute("max")),s=parseFloat(o.getAttribute("step")),l=parseInt(o.value,10),u=l+s*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==o.value&&2===o.value.length){var c=o===n.hourElement,f=o===n.minuteElement;u<i?(u=a+u+p(!c)+(p(c)&&p(!n.amPM)),f&&q(void 0,-1,n.hourElement)):u>a&&(u=o===n.hourElement?u-a-p(!n.amPM):i,f&&q(void 0,1,n.hourElement)),n.amPM&&c&&(1===s?u+l===23:Math.abs(u-l)>s)&&(n.amPM.textContent=n.l10n.amPM[p(n.amPM.textContent===n.l10n.amPM[0])]),o.value=d(u)}}(e);var o=n._input.value;s(),xe(),n._input.value!==o&&n._debouncedChange()}function s(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,r=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,o=(parseInt(n.minuteElement.value,10)||0)%60,i=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=r,t=n.amPM.textContent,r=e%12+12*p(t===n.l10n.amPM[1]));var a=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===A(n.latestSelectedDateObj,n.config.minDate,!0),s=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===A(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var l=P(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),u=P(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),c=P(r,o,i);if(c>u&&c<l){var f=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(l);r=f[0],o=f[1],i=f[2]}}else{if(s){var d=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(r=Math.min(r,d.getHours()))===d.getHours()&&(o=Math.min(o,d.getMinutes())),o===d.getMinutes()&&(i=Math.min(i,d.getSeconds()))}if(a){var h=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(r=Math.max(r,h.getHours()))===h.getHours()&&o<h.getMinutes()&&(o=h.getMinutes()),o===h.getMinutes()&&(i=Math.max(i,h.getSeconds()))}}x(r,o,i)}}function c(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&x(t.getHours(),t.getMinutes(),t.getSeconds())}function x(e,t,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=d(n.config.time_24hr?e:(12+e)%12+12*p(e%12==0)),n.minuteElement.value=d(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[p(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=d(r)))}function k(e){var t=O(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&J(n)}function C(e,t,r,o){return t instanceof Array?t.forEach(function(t){return C(e,t,r,o)}):e instanceof Array?e.forEach(function(e){return C(e,t,r,o)}):(e.addEventListener(t,r,o),void n._handlers.push({remove:function(){return e.removeEventListener(t,r,o)}}))}function T(){ge("onChange")}function L(e,t){var r=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),o=n.currentYear,i=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,n.config.errorHandler(e)}t&&n.currentYear!==o&&(ge("onYearChange"),K()),!t||n.currentYear===o&&n.currentMonth===i||ge("onMonthChange"),n.redraw()}function R(e){var t=O(e);~t.className.indexOf("arrow")&&q(e,t.classList.contains("arrowUp")?1:-1)}function q(e,t,n){var r=e&&O(e),o=n||r&&r.parentNode&&r.parentNode.firstChild,i=ye("increment");i.delta=t,o&&o.dispatchEvent(i)}function F(e,t,r,o){var i=ee(t,!0),a=g("span",e,t.getDate().toString());return a.dateObj=t,a.$i=o,a.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===A(t,n.now)&&(n.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),i?(a.tabIndex=-1,be(t)&&(a.classList.add("selected"),n.selectedDateElem=a,"range"===n.config.mode&&(v(a,"startRange",n.selectedDates[0]&&0===A(t,n.selectedDates[0],!0)),v(a,"endRange",n.selectedDates[1]&&0===A(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&A(e,n.selectedDates[0])>=0&&A(e,n.selectedDates[1])<=0}(t)&&!be(t)&&a.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&o%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),ge("onDayCreate",a),a}function V(e){e.focus(),"range"===n.config.mode&&oe(e)}function B(e){for(var t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1,o=t;o!=r;o+=e)for(var i=n.daysContainer.children[o],a=e>0?0:i.children.length-1,s=e>0?i.children.length:-1,l=a;l!=s;l+=e){var u=i.children[l];if(-1===u.className.indexOf("hidden")&&ee(u.dateObj))return u}}function H(e,t){var o=r(),i=te(o||document.body),a=void 0!==e?e:i?o:void 0!==n.selectedDateElem&&te(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&te(n.todayDateElem)?n.todayDateElem:B(t>0?1:-1);void 0===a?n._input.focus():i?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,o=t>0?n.config.showMonths:-1,i=t>0?1:-1,a=r-n.currentMonth;a!=o;a+=i)for(var s=n.daysContainer.children[a],l=r-n.currentMonth===a?e.$i+t:t<0?s.children.length-1:0,u=s.children.length,c=l;c>=0&&c<u&&c!=(t>0?u:-1);c+=i){var f=s.children[c];if(-1===f.className.indexOf("hidden")&&ee(f.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return V(f)}n.changeMonth(i),H(B(i),0)}(a,t):V(a)}function U(e,t){for(var r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,o=n.utils.getDaysInMonth((t-1+12)%12,e),i=n.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),s=n.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",u=s?"nextMonthDay hidden":"nextMonthDay",c=o+1-r,f=0;c<=o;c++,f++)a.appendChild(F("flatpickr-day "+l,new Date(e,t-1,c),0,f));for(c=1;c<=i;c++,f++)a.appendChild(F("flatpickr-day",new Date(e,t,c),0,f));for(var d=i+1;d<=42-r&&(1===n.config.showMonths||f%7!=0);d++,f++)a.appendChild(F("flatpickr-day "+u,new Date(e,t+1,d%i),0,f));var p=g("div","dayContainer");return p.appendChild(a),p}function z(){if(void 0!==n.daysContainer){y(n.daysContainer),n.weekNumbers&&y(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(U(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&oe()}}function K(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth()||void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=g("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=_(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function W(){var e,t=g("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=g("span","cur-month"):(n.monthsDropdownContainer=g("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),C(n.monthsDropdownContainer,"change",function(e){var t=O(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),ge("onMonthChange")}),K(),e=n.monthsDropdownContainer);var o=w("cur-year",{tabindex:"-1"}),i=o.getElementsByTagName("input")[0];i.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&i.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(i.setAttribute("max",n.config.maxDate.getFullYear().toString()),i.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var a=g("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(o),r.appendChild(a),t.appendChild(r),{container:t,yearElement:i,monthElement:e}}function Y(){y(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=W();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function $(){n.weekdayContainer?y(n.weekdayContainer):n.weekdayContainer=g("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=g("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return Q(),n.weekdayContainer}function Q(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=M(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=M(t.splice(e,t.length),t.splice(0,e)));for(var r=n.config.showMonths;r--;)n.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function G(e,t){void 0===t&&(t=!0);var r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,ge("onYearChange"),K()),z(),ge("onMonthChange"),we())}function Z(e){return n.calendarContainer.contains(e)}function X(e){if(n.isOpen&&!n.config.inline){var t=O(e),r=Z(t),o=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput))||r||Z(e.relatedTarget)),i=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});o&&i&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&a(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function J(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),ge("onYearChange"),K())}}function ee(e,t){var r;void 0===t&&(t=!0);var o=n.parseDate(e,void 0,t);if(n.config.minDate&&o&&A(o,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&o&&A(o,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===o)return!1;for(var i=!!n.config.enable,a=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,s=0,l=void 0;s<a.length;s++){if("function"==typeof(l=a[s])&&l(o))return i;if(l instanceof Date&&void 0!==o&&l.getTime()===o.getTime())return i;if("string"==typeof l){var u=n.parseDate(l,void 0,!0);return u&&u.getTime()===o.getTime()?i:!i}if("object"==typeof l&&void 0!==o&&l.from&&l.to&&o.getTime()>=l.from.getTime()&&o.getTime()<=l.to.getTime())return i}return!i}function te(e){return void 0!==n.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e)}function ne(e){var t=e.target===n._input,r=n._input.value.trimEnd()!==Oe();!t||!r||e.relatedTarget&&Z(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function re(t){var o=O(t),i=n.config.wrap?e.contains(o):o===n._input,l=n.config.allowInput,u=n.isOpen&&(!l||!i),c=n.config.inline&&i&&!l;if(13===t.keyCode&&i){if(l)return n.setDate(n._input.value,!0,o===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),o.blur();n.open()}else if(Z(o)||u||c){var f=!!n.timeContainer&&n.timeContainer.contains(o);switch(t.keyCode){case 13:f?(t.preventDefault(),a(),fe()):de(t);break;case 27:t.preventDefault(),fe();break;case 8:case 46:i&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(f||i)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var d=r();if(void 0!==n.daysContainer&&(!1===l||d&&te(d))){var p=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),G(p),H(B(1),0)):H(void 0,p)}}break;case 38:case 40:t.preventDefault();var h=40===t.keyCode?1:-1;n.daysContainer&&void 0!==o.$i||o===n.input||o===n.altInput?t.ctrlKey?(t.stopPropagation(),J(n.currentYear-h),H(B(1),0)):f||H(void 0,7*h):o===n.currentYearElement?J(n.currentYear-h):n.config.enableTime&&(!f&&n.hourElement&&n.hourElement.focus(),a(t),n._debouncedChange());break;case 9:if(f){var m=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),v=m.indexOf(o);if(-1!==v){var g=m[v+(t.shiftKey?-1:1)];t.preventDefault(),(g||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(o)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&o===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],s(),xe();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],s(),xe()}(i||Z(o))&&ge("onKeyDown",t)}function oe(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),o=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),i=Math.min(r,n.selectedDates[0].getTime()),a=Math.max(r,n.selectedDates[0].getTime()),s=!1,l=0,u=0,c=i;c<a;c+=864e5)ee(new Date(c),!0)||(s=s||c>i&&c<a,c<o&&(!l||c>l)?l=c:c>o&&(!u||c<u)&&(u=c));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach(function(t){var i,a,c,f=t.dateObj.getTime(),d=l>0&&f<l||u>0&&f>u;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});s&&!d||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),o<r&&f===o?t.classList.add("startRange"):o>r&&f===o&&t.classList.add("endRange"),f>=l&&(0===u||f<=u)&&(a=o,c=r,(i=f)>Math.min(a,c)&&i<Math.max(a,c))&&t.classList.add("inRange")))})}}function ie(){!n.isOpen||n.config.static||n.config.inline||ue()}function ae(e){return function(t){var r=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),o=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return ee(e)}),n.selectedDates.length||"min"!==e||c(r),xe()),n.daysContainer&&(ce(),void 0!==r?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!o&&void 0!==r&&o.getFullYear()===r.getFullYear())}}function se(){return n.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof n.config.locale&&void 0===I.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=N(N({},I.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?I.l10ns[n.config.locale]:void 0),E.D="("+n.l10n.weekdays.shorthand.join("|")+")",E.l="("+n.l10n.weekdays.longhand.join("|")+")",E.M="("+n.l10n.months.shorthand.join("|")+")",E.F="("+n.l10n.months.longhand.join("|")+")",E.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===N(N({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===I.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=j(n),n.parseDate=S({config:n.config,l10n:n.l10n})}function ue(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){ge("onPreCalendarPosition");var t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),o=n.calendarContainer.offsetWidth,i=n.config.position.split(" "),a=i[0],s=i.length>1?i[1]:null,l=t.getBoundingClientRect(),u=window.innerHeight-l.bottom,c="above"===a||"below"!==a&&u<r&&l.top>r,f=window.pageYOffset+l.top+(c?-r-2:t.offsetHeight+2);if(v(n.calendarContainer,"arrowTop",!c),v(n.calendarContainer,"arrowBottom",c),!n.config.inline){var d=window.pageXOffset+l.left,p=!1,h=!1;"center"===s?(d-=(o-l.width)/2,p=!0):"right"===s&&(d-=o-l.width,h=!0),v(n.calendarContainer,"arrowLeft",!p&&!h),v(n.calendarContainer,"arrowCenter",p),v(n.calendarContainer,"arrowRight",h);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=d+o>window.document.body.offsetWidth,y=m+o>window.document.body.offsetWidth;if(v(n.calendarContainer,"rightMost",g),!n.config.static)if(n.calendarContainer.style.top=f+"px",g)if(y){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===b)return;var w=window.document.body.offsetWidth,O=Math.max(0,w/2-o/2),x=b.cssRules.length,_="{left:"+l.left+"px;right:auto;}";v(n.calendarContainer,"rightMost",!1),v(n.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+_,x),n.calendarContainer.style.left=O+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=m+"px";else n.calendarContainer.style.left=d+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function ce(){n.config.noCalendar||n.isMobile||(K(),we(),z())}function fe(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function de(e){e.preventDefault(),e.stopPropagation();var t=b(O(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var r=t,o=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),i=(o.getMonth()<n.currentMonth||o.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[o];else if("multiple"===n.config.mode){var a=be(o);a?n.selectedDates.splice(parseInt(a),1):n.selectedDates.push(o)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=o,n.selectedDates.push(o),0!==A(o,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(s(),i){var l=n.currentYear!==o.getFullYear();n.currentYear=o.getFullYear(),n.currentMonth=o.getMonth(),l&&(ge("onYearChange"),K()),ge("onMonthChange")}if(we(),z(),xe(),i||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():V(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var u="single"===n.config.mode&&!n.config.enableTime,c="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(u||c)&&fe()}T()}}n.parseDate=S({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=C,n._setHoursFromDate=c,n._positionCalendar=ue,n.changeMonth=G,n.changeYear=J,n.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),n.input.value="",void 0!==n.altInput&&(n.altInput.value=""),void 0!==n.mobileInput&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),!0===n.config.enableTime){var r=D(n.config);x(r.hours,r.minutes,r.seconds)}n.redraw(),e&&ge("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active")),ge("onClose")},n.onMouseOver=oe,n._createElement=g,n.createDay=F,n.destroy=function(){void 0!==n.config&&ge("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch(e){}})},n.isEnabled=ee,n.jumpToDate=L,n.updateValue=xe,n.open=function(e,t){if(void 0===t&&(t=n._positionElement),!0===n.isMobile){if(e){e.preventDefault();var r=O(e);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void ge("onOpen")}if(!n._input.disabled&&!n.config.inline){var o=n.isOpen;n.isOpen=!0,o||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),ge("onOpen"),ue(t)),!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))}},n.redraw=ce,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(n.config,e),e)void 0!==pe[r]&&pe[r].forEach(function(e){return e()});else n.config[e]=t,void 0!==pe[e]?pe[e].forEach(function(e){return e()}):l.indexOf(e)>-1&&(n.config[e]=m(t));n.redraw(),xe(!0)},n.setDate=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=n.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);he(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),L(void 0,t),c(),0===n.selectedDates.length&&n.clear(!1),xe(t),t&&ge("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var pe={locale:[le,Q],showMonths:[Y,i,$],minDate:[L],maxDate:[L],positionElement:[ve],clickOpens:[function(){!0===n.config.clickOpens?(C(n._input,"focus",n.open),C(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function he(e,t){var r=[];if(e instanceof Array)r=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":r=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter(function(e){return e instanceof Date&&ee(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function me(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function ve(){n._positionElement=n.config.positionElement||n._input}function ge(e,t){if(void 0!==n.config){var r=n.config[e];if(void 0!==r&&r.length>0)for(var o=0;r[o]&&o<r.length;o++)r[o](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(ye("change")),n.input.dispatchEvent(ye("input")))}}function ye(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function be(e){for(var t=0;t<n.selectedDates.length;t++){var r=n.selectedDates[t];if(r instanceof Date&&0===A(r,e))return""+t}return!1}function we(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=_(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Oe(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Oe(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Oe(n.config.altFormat)),!1!==e&&ge("onValueUpdate")}function _e(e){var t=O(e),r=n.prevMonthNav.contains(t),o=n.nextMonthNav.contains(t);r||o?G(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=N(N({},JSON.parse(JSON.stringify(e.dataset||{}))),t),a={};n.config.parseDate=i.parseDate,n.config.formatDate=i.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=me(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=me(e)}});var s="time"===i.mode;if(!i.dateFormat&&(i.enableTime||s)){var c=I.defaultConfig.dateFormat||u.dateFormat;a.dateFormat=i.noCalendar||s?"H:i"+(i.enableSeconds?":S":""):c+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||s)&&!i.altFormat){var f=I.defaultConfig.altFormat||u.altFormat;a.altFormat=i.noCalendar||s?"h:i"+(i.enableSeconds?":S K":" K"):f+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:ae("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:ae("max")});var d=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:d("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:d("max")}),"time"===i.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,a,i);for(var p=0;p<r.length;p++)n.config[r[p]]=!0===n.config[r[p]]||"true"===n.config[r[p]];for(l.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=m(n.config[e]||[]).map(o)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),p=0;p<n.config.plugins.length;p++){var h=n.config.plugins[p](n)||{};for(var v in h)l.indexOf(v)>-1?n.config[v]=m(h[v]).map(o).concat(n.config[v]):void 0===i[v]&&(n.config[v]=h[v])}i.altInputClass||(n.config.altInputClass=se().className+" "+n.config.altInputClass),ge("onParseConfig")}(),le(),n.input=se(),n.input?(n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=g(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),ve()):n.config.errorHandler(new Error("Invalid input element specified")),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&he(e,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=g("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=g("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=g("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=g("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,Y(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(v(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(v(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],we(),n.monthNav)),n.innerContainer=g("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=g("div","flatpickr-weekwrapper");e.appendChild(g("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=g("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,o=t.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=o,n.weekWrapper=r}n.rContainer=g("div","flatpickr-rContainer"),n.rContainer.appendChild($()),n.daysContainer||(n.daysContainer=g("div","flatpickr-days"),n.daysContainer.tabIndex=-1),z(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=D(n.config);n.timeContainer=g("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=g("span","flatpickr-time-separator",":"),r=w("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var o=w("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=o.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=d(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=d(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(o),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var i=w("flatpickr-second");n.secondElement=i.getElementsByTagName("input")[0],n.secondElement.value=d(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(g("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(i)}return n.config.time_24hr||(n.amPM=g("span","flatpickr-am-pm",n.l10n.amPM[p((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}()),v(n.calendarContainer,"rangeMode","range"===n.config.mode),v(n.calendarContainer,"animate",!0===n.config.animate),v(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var i=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!i&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var a=g("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(a,n.element),a.appendChild(n.element),n.altInput&&a.appendChild(n.altInput),a.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return C(t,"click",n[e])})}),n.isMobile)!function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=g("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}C(n.mobileInput,"change",function(e){n.setDate(O(e).value,!1,n.mobileFormatStr),ge("onChange"),ge("onClose")})}();else{var e=h(ie,50);if(n._debouncedChange=h(T,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&C(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&oe(O(e))}),C(n._input,"keydown",re),void 0!==n.calendarContainer&&C(n.calendarContainer,"keydown",re),n.config.inline||n.config.static||C(window,"resize",e),void 0!==window.ontouchstart?C(window.document,"touchstart",X):C(window.document,"mousedown",X),C(window.document,"focus",X,{capture:!0}),!0===n.config.clickOpens&&(C(n._input,"focus",n.open),C(n._input,"click",n.open)),void 0!==n.daysContainer&&(C(n.monthNav,"click",_e),C(n.monthNav,["keyup","increment"],k),C(n.daysContainer,"click",de)),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){C(n.timeContainer,["increment"],a),C(n.timeContainer,"blur",a,{capture:!0}),C(n.timeContainer,"click",R),C([n.hourElement,n.minuteElement],["focus","click"],function(e){return O(e).select()}),void 0!==n.secondElement&&C(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&C(n.amPM,"click",function(e){a(e)})}n.config.allowInput&&C(n._input,"blur",ne)}}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&c(n.config.noCalendar?n.latestSelectedDateObj:void 0),xe(!1)),i();var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&r&&ue(),ge("onReady")}(),n}function L(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],o=0;o<n.length;o++){var i=n[o];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=T(i,t||{}),r.push(i._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return L(this,e)},HTMLElement.prototype.flatpickr=function(e){return L([this],e)});var I=function(e,t){return"string"==typeof e?L(window.document.querySelectorAll(e),t):e instanceof Node?L([e],t):L(e,t)};I.defaultConfig={},I.l10ns={en:N({},f),default:N({},f)},I.localize=function(e){I.l10ns.default=N(N({},I.l10ns.default),e)},I.setDefaults=function(e){I.defaultConfig=N(N({},I.defaultConfig),e)},I.parseDate=S({}),I.formatDate=j({}),I.compareDates=A,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return L(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=I);var R=I;function q(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 F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var V=["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"],B=["options","value","defaultValue","children"],H=function(e){try{return JSON.stringify(e)}catch(e){return null}},U=function(e){var t=e.options,n=void 0===t?{}:t,r=e.value,i=e.defaultValue,a=(0,o.useRef)(null),s=(0,o.useRef)(null),l=(0,o.useRef)(null),u=(0,o.useRef)(e);u.current=e,(0,o.useEffect)(function(){var e=F({},u.current.options||{});return V.forEach(function(t){e[t]=function(){var e,n,r=u.current[t];"function"!=typeof r?"onClose"===t&&(null===(e=a.current)||void 0===e||null===(n=e.blur)||void 0===n||n.call(e)):r.apply(void 0,arguments)}}),l.current=H(u.current.options||{}),s.current=R(a.current,e),function(){var e;null===(e=s.current)||void 0===e||e.destroy(),s.current=null}},[]),(0,o.useEffect)(function(){var e=s.current;if(e){var t=H(n);null!==t&&t!==l.current&&(l.current=t,Object.keys(n).forEach(function(t){return e.set(t,n[t])}))}}),(0,o.useEffect)(function(){var e=s.current;e&&void 0!==r&&r!==e.input.value&&e.setDate(r,!1)},[r]),(0,o.useEffect)(function(){var e,t=null===(e=a.current)||void 0===e?void 0:e.form;if(t){var n=function(){return window.setTimeout(function(){var e;return null===(e=s.current)||void 0===e?void 0:e.clear(!1)},0)};return t.addEventListener("reset",n),function(){return t.removeEventListener("reset",n)}}},[]);var c={};return Object.keys(e).forEach(function(t){B.includes(t)||V.includes(t)||(c[t]=e[t])}),(0,o.createElement)("input",F(F({},c),{},{defaultValue:null!=r?r:i,ref:a}))};function z(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 K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Y=n(1609),$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(null,arguments)}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}function J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J=function(){return!!e})()}function ee(n){return function(t){if(Array.isArray(t))return e(t)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||t(n)||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 te=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),ne=Math.abs,re=String.fromCharCode,oe=Object.assign;function ie(e){return e.trim()}function ae(e,t,n){return e.replace(t,n)}function se(e,t){return e.indexOf(t)}function le(e,t){return 0|e.charCodeAt(t)}function ue(e,t,n){return e.slice(t,n)}function ce(e){return e.length}function fe(e){return e.length}function de(e,t){return t.push(e),e}var pe=1,he=1,me=0,ve=0,ge=0,ye="";function be(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pe,column:he,length:a,return:""}}function we(e,t){return oe(be("",null,null,"",null,null,0),e,{length:-e.length},t)}function Oe(){return ge=ve>0?le(ye,--ve):0,he--,10===ge&&(he=1,pe--),ge}function xe(){return ge=ve<me?le(ye,ve++):0,he++,10===ge&&(he=1,pe++),ge}function _e(){return le(ye,ve)}function ke(){return ve}function Ee(e,t){return ue(ye,e,t)}function Ce(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function je(e){return pe=he=1,me=ce(ye=e),ve=0,[]}function Se(e){return ye="",e}function Ae(e){return ie(Ee(ve-1,Ne(91===e?e+2:40===e?e+1:e)))}function Pe(e){for(;(ge=_e())&&ge<33;)xe();return Ce(e)>2||Ce(ge)>3?"":" "}function De(e,t){for(;--t&&xe()&&!(ge<48||ge>102||ge>57&&ge<65||ge>70&&ge<97););return Ee(e,ke()+(t<6&&32==_e()&&32==xe()))}function Ne(e){for(;xe();)switch(ge){case e:return ve;case 34:case 39:34!==e&&39!==e&&Ne(ge);break;case 40:41===e&&Ne(e);break;case 92:xe()}return ve}function Me(e,t){for(;xe()&&e+ge!==57&&(e+ge!==84||47!==_e()););return"/*"+Ee(t,ve-1)+"*"+re(47===e?e:xe())}function Te(e){for(;!Ce(_e());)xe();return Ee(e,ve)}var Le="-ms-",Ie="-moz-",Re="-webkit-",qe="comm",Fe="rule",Ve="decl",Be="@keyframes";function He(e,t){for(var n="",r=fe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ue(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ve:return e.return=e.return||e.value;case qe:return"";case Be:return e.return=e.value+"{"+He(e.children,r)+"}";case Fe:e.value=e.props.join(",")}return ce(n=He(e.children,r))?e.return=e.value+"{"+n+"}":""}function ze(e){return Se(Ke("",null,null,null,[""],e=je(e),0,[0],e))}function Ke(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,d=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,O=i,x=r,_=b;v;)switch(h=y,y=xe()){case 40:if(108!=h&&58==le(_,f-1)){-1!=se(_+=ae(Ae(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=Ae(y);break;case 9:case 10:case 13:case 32:_+=Pe(h);break;case 92:_+=De(ke()-1,7);continue;case 47:switch(_e()){case 42:case 47:de(Ye(Me(xe(),ke()),t,n),l);break;default:_+="/"}break;case 123*m:s[u++]=ce(_)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(_=ae(_,/\f/g,"")),p>0&&ce(_)-f&&de(p>32?$e(_+";",r,n,f-1):$e(ae(_," ","")+";",r,n,f-2),l);break;case 59:_+=";";default:if(de(x=We(_,t,n,u,c,o,s,b,w=[],O=[],f),i),123===y)if(0===c)Ke(_,t,x,x,w,i,f,s,O);else switch(99===d&&110===le(_,3)?100:d){case 100:case 108:case 109:case 115:Ke(e,x,x,r&&de(We(e,x,x,0,0,o,s,b,o,w=[],f),O),o,O,f,s,r?w:O);break;default:Ke(_,x,x,x,[""],O,0,s,O)}}u=c=p=0,m=g=1,b=_="",f=a;break;case 58:f=1+ce(_),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Oe())continue;switch(_+=re(y),y*m){case 38:g=c>0?1:(_+="\f",-1);break;case 44:s[u++]=(ce(_)-1)*g,g=1;break;case 64:45===_e()&&(_+=Ae(xe())),d=_e(),c=f=ce(b=_+=Te(ke())),y++;break;case 45:45===h&&2==ce(_)&&(m=0)}}return i}function We(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,d=0===o?i:[""],p=fe(d),h=0,m=0,v=0;h<r;++h)for(var g=0,y=ue(e,f+1,f=ne(m=a[h])),b=e;g<p;++g)(b=ie(m>0?d[g]+" "+y:ae(y,/&\f/g,d[g])))&&(l[v++]=b);return be(e,t,n,0===o?Fe:s,l,u,c)}function Ye(e,t,n){return be(e,t,n,qe,re(ge),ue(e,2,-2),0)}function $e(e,t,n,r){return be(e,t,n,Ve,ue(e,0,r),ue(e,r+1,-1),r)}var Qe=function(e,t,n){for(var r=0,o=0;r=o,o=_e(),38===r&&12===o&&(t[n]=1),!Ce(o);)xe();return Ee(e,ve)},Ge=new WeakMap,Ze=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)||Ge.get(n))&&!r){Ge.set(e,!0);for(var o=[],i=function(e,t){return Se(function(e,t){var n=-1,r=44;do{switch(Ce(r)){case 0:38===r&&12===_e()&&(t[n]=1),e[n]+=Qe(ve-1,t,n);break;case 2:e[n]+=Ae(r);break;case 4:if(44===r){e[++n]=58===_e()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=re(r)}}while(r=xe());return e}(je(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},Xe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Je(e,t){switch(function(e,t){return 45^le(e,0)?(((t<<2^le(e,0))<<2^le(e,1))<<2^le(e,2))<<2^le(e,3):0}(e,t)){case 5103:return Re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+e+Ie+e+Le+e+e;case 6828:case 4268:return Re+e+Le+e+e;case 6165:return Re+e+Le+"flex-"+e+e;case 5187:return Re+e+ae(e,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Le+"flex-$1$2")+e;case 5443:return Re+e+Le+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return Re+e+Le+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return Re+e+Le+ae(e,"shrink","negative")+e;case 5292:return Re+e+Le+ae(e,"basis","preferred-size")+e;case 6060:return Re+"box-"+ae(e,"-grow","")+Re+e+Le+ae(e,"grow","positive")+e;case 4554:return Re+ae(e,/([^-])(transform)/g,"$1"+Re+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,Re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ce(e)-1-t>6)switch(le(e,t+1)){case 109:if(45!==le(e,t+4))break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Ie+(108==le(e,t+3)?"$3":"$2-$3"))+e;case 115:return~se(e,"stretch")?Je(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==le(e,t+1))break;case 6444:switch(le(e,ce(e)-3-(~se(e,"!important")&&10))){case 107:return ae(e,":",":"+Re)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Re+(45===le(e,14)?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(le(e,t+11)){case 114:return Re+e+Le+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Re+e+Le+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Re+e+Le+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Re+e+Le+e+e}return e}var et=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ve:e.return=Je(e.value,e.length);break;case Be:return He([we(e,{value:ae(e.value,"@","@"+Re)})],r);case Fe: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 He([we(e,{props:[ae(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return He([we(e,{props:[ae(t,/:(plac\w+)/,":"+Re+"input-$1")]}),we(e,{props:[ae(t,/:(plac\w+)/,":-moz-$1")]}),we(e,{props:[ae(t,/:(plac\w+)/,Le+"input-$1")]})],r)}return""})}}],tt=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 r,o,i=e.stylisPlugins||et,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c,f,d=[Ue,(f=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],p=(u=[Ze,Xe].concat(i,d),c=fe(u),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,function(e){He(ze(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new te({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},nt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},rt={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 ot(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var it=/[A-Z]|^ms/g,at=/_EMO_([^_]+?)_([^]*?)_EMO_/g,st=function(e){return 45===e.charCodeAt(1)},lt=function(e){return null!=e&&"boolean"!=typeof e},ut=ot(function(e){return st(e)?e:e.replace(it,"-$&").toLowerCase()}),ct=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(at,function(e,t,n){return dt={name:t,styles:n,next:dt},t})}return 1===rt[e]||st(e)||"number"!=typeof t||0===t?t:t+"px"};function ft(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 dt={name:o.name,styles:o.styles,next:dt},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)dt={name:a.name,styles:a.styles,next:dt},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ft(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":lt(s)&&(r+=ut(i)+":"+ct(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ft(e,t,a);switch(i){case"animation":case"animationName":r+=ut(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)lt(a[u])&&(r+=ut(i)+":"+ct(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=dt,l=n(e);return dt=s,ft(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var dt,pt=/label:\s*([^\s;{]+)\s*(;|$)/g;function ht(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";dt=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ft(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ft(n,t,e[a]),r&&(o+=i[a]);pt.lastIndex=0;for(var s,l="";null!==(s=pt.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:dt}}var mt,vt,gt=!!Y.useInsertionEffect&&Y.useInsertionEffect,yt=gt||function(e){return e()},bt=(gt||Y.useLayoutEffect,Y.createContext("undefined"!=typeof HTMLElement?tt({key:"css"}):null)),wt=(bt.Provider,function(e){return(0,Y.forwardRef)(function(t,n){var r=(0,Y.useContext)(bt);return e(t,r,n)})}),Ot=Y.createContext({}),xt={}.hasOwnProperty,_t="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",kt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return nt(t,n,r),yt(function(){return function(e,t,n){nt(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},Et=wt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[_t],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=ht(i,void 0,Y.useContext(Ot));a+=t.key+"-"+s.name;var l={};for(var u in e)xt.call(e,u)&&"css"!==u&&u!==_t&&(l[u]=e[u]);return l.className=a,n&&(l.ref=n),Y.createElement(Y.Fragment,null,Y.createElement(kt,{cache:t,serialized:s,isStringTag:"string"==typeof o}),Y.createElement(o,l))}),Ct=Et,jt=(n(4146),function(e,t){var n=arguments;if(null==t||!xt.call(t,"css"))return Y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ct,o[1]=function(e,t){var n={};for(var r in t)xt.call(t,r)&&(n[r]=t[r]);return n[_t]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return Y.createElement.apply(null,o)});function St(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ht(t)}mt=jt||(jt={}),vt||(vt=mt.JSX||(mt.JSX={}));var At=n(5795);const Pt=Math.min,Dt=Math.max,Nt=Math.round,Mt=Math.floor,Tt=e=>({x:e,y:e});function Lt(){return"undefined"!=typeof window}function It(e){return Ft(e)?(e.nodeName||"").toLowerCase():"#document"}function Rt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function qt(e){var t;return null==(t=(Ft(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ft(e){return!!Lt()&&(e instanceof Node||e instanceof Rt(e).Node)}function Vt(e){return!!Lt()&&(e instanceof Element||e instanceof Rt(e).Element)}function Bt(e){return!!Lt()&&(e instanceof HTMLElement||e instanceof Rt(e).HTMLElement)}function Ht(e){return!(!Lt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Rt(e).ShadowRoot)}function Ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}let zt;function Kt(e){return Rt(e).getComputedStyle(e)}function Wt(e){const t=function(e){if("html"===It(e))return e;const t=e.assignedSlot||e.parentNode||Ht(e)&&e.host||qt(e);return Ht(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(It(e))}(t)?(e.ownerDocument||e).body:Bt(t)&&Ut(t)?t:Wt(t)}function Yt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Wt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Rt(o);if(i){const e=$t(a);return t.concat(a,a.visualViewport||[],Ut(o)?o:[],e&&n?Yt(e):[])}return t.concat(o,Yt(o,[],n))}function $t(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qt(e){return Vt(e)?e:e.contextElement}function Gt(e){const t=Qt(e);if(!Bt(t))return Tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Nt(n)!==i||Nt(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?Nt(n.width):n.width)/r,s=(i?Nt(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Zt=Tt(0);function Xt(e){const t=Rt(e);return null==zt&&(zt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zt&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Zt}function Jt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Qt(e);let a=Tt(1);t&&(r?Vt(r)&&(a=Gt(r)):a=Gt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Rt(e)}(i,n,r)?Xt(i):Tt(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i&&r){const e=Rt(i),t=Vt(r)?Rt(r):r;let n=e,o=$t(n);for(;o&&t!==n;){const e=Gt(o),t=o.getBoundingClientRect(),r=Kt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,f*=e.y,l+=i,u+=a,n=Rt(o),o=$t(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:c,height:f,x:l,y:u})}function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var tn=Y.useLayoutEffect,nn=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],rn=function(){};function on(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function an(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(on(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var sn=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===i(e)&&null!==e?[e]:[];var t},ln=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,K({},W(e,nn))},un=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function cn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function fn(e){return cn(e)?window.pageYOffset:e.scrollTop}function dn(e,t){cn(e)?window.scrollTo(0,t):e.scrollTop=t}function pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rn,o=fn(e),i=t-o,a=0;!function t(){var s,l=i*((s=(s=a+=10)/n-1)*s*s+1)+o;dn(e,l),a<n?window.requestAnimationFrame(t):r(e)}()}function hn(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?dn(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&dn(e,Math.max(t.offsetTop-o,0))}function mn(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var vn=!1,gn={get passive(){return vn=!0}},yn="undefined"!=typeof window?window:{};yn.addEventListener&&yn.removeEventListener&&(yn.addEventListener("p",rn,gn),yn.removeEventListener("p",rn,!1));var bn=vn;function wn(e){return null!=e}function On(e,t,n){return e?t:n}var xn=["children","innerProps"],kn=["children","innerProps"];var En,Cn,jn,Sn=function(e){return"auto"===e?"bottom":e},An=(0,Y.createContext)(null),Pn=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=((0,Y.useContext)(An)||{}).setPortalPlacement,c=(0,Y.useRef)(null),f=r((0,Y.useState)(o),2),d=f[0],p=f[1],h=r((0,Y.useState)(null),2),m=h[0],v=h[1],g=l.spacing.controlHeight;return tn(function(){var e=c.current;if(e){var t="fixed"===a,r=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,f=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,h=d.height,m=d.top,v=n.offsetParent.getBoundingClientRect().top,g=a||cn(c=l)?window.innerHeight:c.clientHeight,y=fn(l),b=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=v-w,x=g-m,_=O+y,k=f-y-m,E=p-g+y+b,C=y+m-w,j=160;switch(o){case"auto":case"bottom":if(x>=h)return{placement:"bottom",maxHeight:t};if(k>=h&&!a)return i&&pn(l,E,j),{placement:"bottom",maxHeight:t};if(!a&&k>=r||a&&x>=r)return i&&pn(l,E,j),{placement:"bottom",maxHeight:a?x-b:k-b};if("auto"===o||a){var S=t,A=a?O:_;return A>=r&&(S=Math.min(A-b-s,t)),{placement:"top",maxHeight:S}}if("bottom"===o)return i&&dn(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(_>=h&&!a)return i&&pn(l,C,j),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&O>=r){var P=t;return(!a&&_>=r||a&&O>=r)&&(P=a?O-w:_-w),i&&pn(l,C,j),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});p(r.maxHeight),v(r.placement),null==u||u(r.placement)}},[o,i,a,s,n,u,g]),t({ref:c,placerProps:K(K({},e),{},{placement:m||Sn(i),maxHeight:d})})},Dn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return K({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Nn=Dn,Mn=Dn,Tn=["size"],Ln=["innerProps","isRtl","size"],In={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Rn=function(e){var t=e.size,n=W(e,Tn);return jt("svg",Q({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:In},n))},qn=function(e){return jt(Rn,Q({size:20},e),jt("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"}))},Fn=function(e){return jt(Rn,Q({size:20},e),jt("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"}))},Vn=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return K({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Bn=Vn,Hn=Vn,Un=function(){var e=St.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(En||(Cn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],jn||(jn=Cn.slice(0)),En=Object.freeze(Object.defineProperties(Cn,{raw:{value:Object.freeze(jn)}})))),zn=function(e){var t=e.delay,n=e.offset;return jt("span",{css:St({animation:"".concat(Un," 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"},"","")})},Kn=["data"],Wn=["innerRef","isDisabled","isHidden","inputClassName"],Yn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},$n={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":K({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Yn)},Qn=function(e){return K({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Yn)},Gn=function(e){var t=e.children,n=e.innerProps;return jt("div",n,t)},Zn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return jt("div",Q({},un(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||jt(qn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return jt("div",Q({ref:o},un(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return jt("div",Q({},un(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||jt(Fn,null))},DownChevron:Fn,CrossIcon:qn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return jt("div",Q({},un(e,"group",{group:!0}),s),jt(i,Q({},a,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),jt("div",null,t))},GroupHeading:function(e){var t=ln(e);t.data;var n=W(t,Kn);return jt("div",Q({},un(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return jt("div",Q({},un(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return jt("span",Q({},t,un(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=ln(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=W(r,Wn);return jt("div",Q({},un(e,"input",{"input-container":!0}),{"data-value":n||""}),jt("input",Q({className:t({input:!0},s),ref:o,style:Qn(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=W(e,Ln);return jt("div",Q({},un(K(K({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),jt(zn,{delay:0,offset:n}),jt(zn,{delay:160,offset:!0}),jt(zn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return jt("div",Q({},un(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return jt("div",Q({},un(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=(0,Y.useRef)(null),u=(0,Y.useRef)(null),c=r((0,Y.useState)(Sn(a)),2),f=c[0],d=c[1],p=(0,Y.useMemo)(function(){return{setPortalPlacement:d}},[]),h=r((0,Y.useState)(null),2),m=h[0],v=h[1],g=(0,Y.useCallback)(function(){if(o){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}}(o),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||v({offset:n,rect:e})}},[o,s,f,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);tn(function(){g()},[g]);var y=(0,Y.useCallback)(function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&l.current&&(u.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:l=!1}=r,u=Qt(e),c=o||i?[...u?Yt(u):[],...t?Yt(t):[]]:[];c.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const f=u&&s?function(e,t,n){let r,o=null;const i=qt(e);function a(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function s(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(n||t(),!d||!p)return;const h={rootMargin:-Mt(f)+"px "+-Mt(i.clientWidth-(c+d))+"px "+-Mt(i.clientHeight-(f+p))+"px "+-Mt(c)+"px",threshold:Dt(0,Pt(1,l))||1};let m=!0;function v(t){const n=t[0].intersectionRatio;if(!en(u,e.getBoundingClientRect()))return s();if(n!==l){if(!m)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(v,h)}o.observe(e)}const l=Rt(e),u=()=>s(n);return l.addEventListener("resize",u),s(!0),()=>{l.removeEventListener("resize",u),a()}}(u,n,i):null;let d,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let m=l?Jt(e):null;return l&&function t(){const r=Jt(e);m&&!en(m,r)&&n(),m=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(d)}}(o,l.current,g,{elementResize:"ResizeObserver"in window}))},[o,g]);tn(function(){y()},[y]);var b=(0,Y.useCallback)(function(e){l.current=e,y()},[y]);if(!t&&"fixed"!==s||!m)return null;var w=jt("div",Q({ref:b},un(K(K({},e),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return jt(An.Provider,{value:p},t?(0,At.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=W(e,kn);return jt("div",Q({},un(K(K({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=W(e,xn);return jt("div",Q({},un(K(K({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return jt(l,{data:r,innerProps:K(K({},un(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},jt(u,{data:r,innerProps:K({},un(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),jt(c,{data:r,innerProps:K(K({},un(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:Gn,MultiValueLabel:Gn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return jt("div",Q({role:"button"},n),t||jt(qn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return jt("div",Q({},un(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return jt("div",Q({},un(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return jt("div",Q({},un(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return jt("div",Q({},un(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,o=e.hasValue;return jt("div",Q({},un(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Xn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Jn(e,t){return e===t||!(!Xn(e)||!Xn(t))}function er(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}for(var tr={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},nr=function(e){return jt("span",Q({css:tr},e))},rr={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"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,l=e.isSelected,u=e.isAppleDevice,c=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(c(a,n),".");if("menu"===t&&u){var f=s?" disabled":"",d="".concat(l?" selected":"").concat(f);return"".concat(i).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},or=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,u=e.isAppleDevice,c=s.ariaLiveMessages,f=s.getOptionLabel,d=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,v=s.menuIsOpen,g=s.options,y=s.screenReaderStatus,b=s.tabSelectsValue,w=s.isLoading,O=s["aria-label"],x=s["aria-live"],_=(0,Y.useMemo)(function(){return K(K({},rr),c||{})},[c]),k=(0,Y.useMemo)(function(){var e,n="";if(t&&_.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,u=i||r||(e=l,Array.isArray(e)?null:e),c=u?f(u):"",d=o||s||void 0,p=d?d.map(f):[],m=K({isDisabled:u&&h(u,a),label:c,labels:p},t);n=_.onChange(m)}return n},[t,_,h,a,f]),E=(0,Y.useMemo)(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&_.onFocus){var s={focused:t,label:f(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=_.onFocus(s)}return e},[n,r,f,h,_,o,a,u]),C=(0,Y.useMemo)(function(){var e="";if(v&&g.length&&!w&&_.onFilter){var t=y({count:o.length});e=_.onFilter({inputValue:d,resultsMessage:t})}return e},[o,d,v,_,g,y,w]),j="initial-input-focus"===(null==t?void 0:t.action),S=(0,Y.useMemo)(function(){var e="";if(_.guidance){var t=r?"value":v?"menu":"input";e=_.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,a),isMulti:p,isSearchable:m,tabSelectsValue:b,isInitialFocus:j})}return e},[O,n,r,p,h,m,v,_,a,b,j]),A=jt(Y.Fragment,null,jt("span",{id:"aria-selection"},k),jt("span",{id:"aria-focused"},E),jt("span",{id:"aria-results"},C),jt("span",{id:"aria-guidance"},S));return jt(Y.Fragment,null,jt(nr,{id:l},j&&A),jt(nr,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!j&&A))},ir=[{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źẑżžẓẕƶȥɀⱬꝣ"}],ar=new RegExp("["+ir.map(function(e){return e.letters}).join("")+"]","g"),sr={},lr=0;lr<ir.length;lr++)for(var ur=ir[lr],cr=0;cr<ur.letters.length;cr++)sr[ur.letters[cr]]=ur.base;var fr=function(e){return e.replace(ar,function(e){return sr[e]})},dr=function(e,t){void 0===t&&(t=er);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(fr),pr=function(e){return e.replace(/^\s+|\s+$/g,"")},hr=function(e){return"".concat(e.label," ").concat(e.value)},mr=["innerRef"];function vr(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Object.entries(e).filter(function(e){var t=r(e,1)[0];return!n.includes(t)});return i.reduce(function(e,t){var n=r(t,2),o=n[0],i=n[1];return e[o]=i,e},{})}(W(e,mr),"onExited","in","enter","exit","appear");return jt("input",Q({ref:t},n,{css:St({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var gr=["boxSizing","height","overflow","paddingRight","position"],yr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function br(e){e.cancelable&&e.preventDefault()}function wr(e){e.stopPropagation()}function Or(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function xr(){return"ontouchstart"in window||navigator.maxTouchPoints}var _r=!("undefined"==typeof window||!window.document||!window.document.createElement),kr=0,Er={capture:!1,passive:!1},Cr=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},jr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Sr(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,Y.useRef)(!1),s=(0,Y.useRef)(!1),l=(0,Y.useRef)(0),u=(0,Y.useRef)(null),c=(0,Y.useCallback)(function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,f=l.scrollHeight,d=l.clientHeight,p=u.current,h=t>0,m=f-d-c,v=!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),p.scrollTop=f,v=!0,a.current=!0):!h&&-t>c&&(o&&!s.current&&o(e),p.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),f=(0,Y.useCallback)(function(e){c(e,e.deltaY)},[c]),d=(0,Y.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),p=(0,Y.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;c(e,t)},[c]),h=(0,Y.useCallback)(function(e){if(e){var t=!!bn&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}},[p,d,f]),m=(0,Y.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))},[p,d,f]);return(0,Y.useEffect)(function(){if(t){var e=u.current;return h(e),function(){m(e)}}},[t,h,m]),function(e){u.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,Y.useRef)({}),i=(0,Y.useRef)(null),a=(0,Y.useCallback)(function(e){if(_r){var t=document.body,n=t&&t.style;if(r&&gr.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&kr<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(yr).forEach(function(e){var t=yr[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&xr()&&(t.addEventListener("touchmove",br,Er),e&&(e.addEventListener("touchstart",Or,Er),e.addEventListener("touchmove",wr,Er))),kr+=1}},[r]),s=(0,Y.useCallback)(function(e){if(_r){var t=document.body,n=t&&t.style;kr=Math.max(kr-1,0),r&&kr<1&&gr.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&xr()&&(t.removeEventListener("touchmove",br,Er),e&&(e.removeEventListener("touchstart",Or,Er),e.removeEventListener("touchmove",wr,Er)))}},[r]);return(0,Y.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 jt(Y.Fragment,null,n&&jt("div",{onClick:Cr,css:jr}),t(function(e){o(e),i(e)}))}var Ar={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Pr=function(e){var t=e.name,n=e.onFocus;return jt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Ar,value:"",onChange:function(){}})};function Dr(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 Nr(){return Dr(/^Mac/i)}var Mr={clearIndicator:Hn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return K({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Bn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return K({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return K({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return K(K({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},$n),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return K({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Mn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,l=o.colors;return K((s(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),s(n,"position","absolute"),s(n,"width","100%"),s(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return K({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal: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}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return K({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return K({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return K({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Nn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return K({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return K({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return K({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return K({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Tr={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}},Lr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mn(),captureMenuScroll:!mn(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=K({ignoreCase:!0,ignoreAccents:!0,stringify:hr,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?pr(t):t,u=a?pr(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=dr(l),u=fr(u)),"start"===s?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:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Ir(e,t,n,r){return{type:"option",data:t,isDisabled:zr(e,t,n),isSelected:Kr(e,t,n),label:Hr(e,t),value:Ur(e,t),index:r}}function Rr(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return Ir(e,n,t,r)}).filter(function(t){return Vr(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ir(e,n,t,r);return Vr(e,i)?i:void 0}).filter(wn)}function qr(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,ee(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Fr(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,ee(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 Vr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Yr(e)||!i)&&Wr(e,{label:a,value:s,data:o},r)}var Br=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Hr=function(e,t){return e.getOptionLabel(t)},Ur=function(e,t){return e.getOptionValue(t)};function zr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Kr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ur(e,t);return n.some(function(t){return Ur(e,t)===r})}function Wr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Yr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},$r=1,Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(n,e);var t=function(e){var t=J();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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:"",isAppleDevice:!1},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.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),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(ee(a),[e]),"select-option",e):r.setValue(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=On(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(On(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=On(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Br(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Fr(Rr(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;n<e;n++)t[n]=arguments[n];return an.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Hr(r.props,e)},r.getOptionValue=function(e){return Ur(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Mr[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,K(K({},Zn),e.components);var e},r.buildCategorizedOptions=function(){return Rr(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return qr(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:K({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&cn(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||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 Yr(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,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!(l||"function"==typeof c&&(c(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||!u||!f||!h||d&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++$r),r.state.selectValue=sn(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Br(o,i[a])}return r}return function(e,t,n){t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(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&&hn(this.menuListRef,this.focusedOptionRef),(Nr()||Dr(/^iPhone/i)||Dr(/^iPad/i)||Nr()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{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&&(hn(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&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&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(Tr):K(K({},Tr),this.props.theme):Tr}},{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,l=s.isMulti,u=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,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 zr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Kr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Wr(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,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,u=this.getComponents().Input,c=this.state,f=c.inputIsHidden,d=c.ariaSelection,p=this.commonProps,h=r||this.getElementId("input"),m=K(K(K({"aria-autocomplete":"list","aria-expanded":s,"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":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?Y.createElement(u,Q({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},m)):Y.createElement(vr,Q({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:rn,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,f=u.isDisabled,d=u.isMulti,p=u.inputValue,h=u.placeholder,m=this.state,v=m.selectValue,g=m.focusedValue,y=m.isFocused;if(!this.hasValue()||!c)return p?null:Y.createElement(s,Q({},l,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),h);if(d)return v.map(function(t,a){var s=t===g,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return Y.createElement(n,Q({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:f,key:u,index:a,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(p)return null;var b=v[0];return Y.createElement(a,Q({},l,{data:b,isDisabled:f}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(e,Q({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?Y.createElement(e,Q({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return Y.createElement(n,Q({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Y.createElement(e,Q({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,f=this.state.focusedOption,d=this.props,p=d.captureMenuScroll,h=d.inputValue,m=d.isLoading,v=d.loadingMessage,g=d.minMenuHeight,y=d.maxMenuHeight,b=d.menuIsOpen,w=d.menuPlacement,O=d.menuPosition,x=d.menuPortalTarget,_=d.menuShouldBlockScroll,k=d.menuShouldScrollIntoView,E=d.noOptionsMessage,C=d.onMenuScrollToTop,j=d.onMenuScrollToBottom;if(!b)return null;var S,A=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,d=f===o,p=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return Y.createElement(u,Q({},c,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())S=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return Y.createElement(n,Q({},c,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return A(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return A(t,"".concat(t.index))});else if(m){var P=v({inputValue:h});if(null===P)return null;S=Y.createElement(s,c,P)}else{var D=E({inputValue:h});if(null===D)return null;S=Y.createElement(l,c,D)}var N={minMenuHeight:g,maxMenuHeight:y,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:k},M=Y.createElement(Pn,Q({},c,N),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return Y.createElement(o,Q({},c,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),Y.createElement(Sr,{captureEnabled:p,onTopArrive:C,onBottomArrive:j,lockEnabled:_},function(t){return Y.createElement(i,Q({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:f}),S)}))});return x||"fixed"===O?Y.createElement(a,Q({},c,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),M):M}},{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 Y.createElement(Pr,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return Y.createElement("input",{name:i,type:"hidden",value:l})}var u=s.length>0?s.map(function(t,n){return Y.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):Y.createElement("input",{name:i,type:"hidden",value:""});return Y.createElement("div",null,u)}var c=s[0]?this.getOptionValue(s[0]):"";return Y.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return Y.createElement(or,Q({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused,f=this.commonProps=this.getCommonProps();return Y.createElement(r,Q({},f,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),Y.createElement(t,Q({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),Y.createElement(o,Q({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),Y.createElement(n,Q({},f,{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,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,f=e.menuIsOpen,d=e.inputValue,p=e.isMulti,h=sn(c),m={};if(n&&(c!==n.value||u!==n.options||f!==n.menuIsOpen||d!==n.inputValue)){var v=f?function(e,t){return qr(Rr(e,t))}(e,h):[],g=f?Fr(Rr(e,h),"".concat(l,"-option")):[],y=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<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedOptionId:Br(g,b),focusableOptionsWithIds:g,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},O=i,x=a&&s;return a&&!x&&(O={value:On(p,h,h[0]||null),options:h,action:"initial-input-focus"},x=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(O=null),K(K(K({},m),w),{},{prevProps:e,ariaSelection:O,prevWasFocused:x})}}]),n}(Y.Component);Qr.defaultProps=Lr;var Gr=(0,Y.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,i=void 0!==o&&o,a=e.defaultValue,s=void 0===a?null:a,l=e.inputValue,u=e.menuIsOpen,c=e.onChange,f=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=W(e,$),v=r((0,Y.useState)(void 0!==l?l:n),2),g=v[0],y=v[1],b=r((0,Y.useState)(void 0!==u?u:i),2),w=b[0],O=b[1],x=r((0,Y.useState)(void 0!==h?h:s),2),_=x[0],k=x[1],E=(0,Y.useCallback)(function(e,t){"function"==typeof c&&c(e,t),k(e)},[c]),C=(0,Y.useCallback)(function(e,t){var n;"function"==typeof f&&(n=f(e,t)),y(void 0!==n?n:e)},[f]),j=(0,Y.useCallback)(function(){"function"==typeof p&&p(),O(!0)},[p]),S=(0,Y.useCallback)(function(){"function"==typeof d&&d(),O(!1)},[d]),A=void 0!==l?l:g,P=void 0!==u?u:w,D=void 0!==h?h:_;return K(K({},m),{},{inputValue:A,menuIsOpen:P,onChange:E,onInputChange:C,onMenuClose:S,onMenuOpen:j,value:D})}(e);return Y.createElement(Qr,Q({ref:t},n))}),Zr=Gr,Xr=n(5708),Jr=n.n(Xr),eo=window.ReactJSXRuntime,to=Xr.Quill.import("formats/font");to.whitelist=["arial","Roboto","georgia","helvetica","lucida"],Xr.Quill.register(to,!0);var no=["font","bold","italic","underline","header","align","strike","script","blockquote","background","list","bullet","link","image","color","code-block"],ro=function(e){e.id;var t=e.onChange,n=void 0===t?function(){return""}:t,r=e.value,i=void 0===r?"":r,a=e.parent,s=e.isReadOnly,l=(0,o.useRef)();(0,o.useEffect)(function(){l.current.getEditor().clipboard.dangerouslyPasteHTML(i)},[]);var u=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{direction:"rtl"}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"]],c=(0,o.useMemo)(function(){return{toolbar:u,history:{delay:500,maxStack:100,userOnly:!1}}},[]);return(0,eo.jsx)(eo.Fragment,{children:(0,eo.jsx)(Jr(),{ref:l,theme:"snow",onChange:n,modules:c,formats:no,readOnly:s},a.state.resetKey)})};function oo(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 io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ao={activeTrack:"input-range__track input-range__track--active",disabledInputRange:"input-range input-range--disabled",inputRange:"input-range",labelContainer:"input-range__label-container",maxLabel:"input-range__label input-range__label--max",minLabel:"input-range__label input-range__label--min",slider:"input-range__slider",sliderContainer:"input-range__slider-container",track:"input-range__track input-range__track--background",valueLabel:"input-range__label input-range__label--value"},so=function(e){return null!=e},lo=function(e,t,n){return Math.min(Math.max(e,t),n)},uo=function(e,t){return Math.abs(e-t)},co=function(e,t,n,r){return t+(n-t)*function(e,t){return(t?e/t:0)||0}(e,r)},fo=function(e,t){return t?io({},e.value):{min:e.minValue,max:e.value}},po=function(e,t,n){return(lo(e,t,n)-t)/(n-t)||0},ho=function(e,t,n,r){return po(e,t,n)*r},mo=function(e,t,n,r){return{min:ho(e.min,t,n,r),max:ho(e.max,t,n,r)}},vo=function(e,t){var n=e.touches?e.touches[0]:e;return lo(n.clientX-t.left,0,t.width)},go=function(e,t){return Math.round(e/t)*t},yo=function(e){var t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current},bo=function(e){var t=e.type,n=e.value,r=e.formatLabel,o=e.classNames,i=r?r(n,t):n;return(0,eo.jsx)("span",{className:o["".concat(t,"Label")],children:(0,eo.jsx)("span",{className:o.labelContainer,children:i})})},wo=function(e){var t=(0,o.useRef)(e);t.current=e;var n=(0,o.useRef)(null),r=yo(function(){var e=function(){var e;null===(e=n.current)||void 0===e||e.ownerDocument.removeEventListener("mousemove",a)},r=function(){var e;null===(e=n.current)||void 0===e||e.ownerDocument.removeEventListener("mouseup",s)},o=function(){var e;null===(e=n.current)||void 0===e||e.ownerDocument.removeEventListener("touchmove",l)},i=function(){var e;null===(e=n.current)||void 0===e||e.ownerDocument.removeEventListener("touchend",u)};function a(e){t.current.onSliderDrag(e,t.current.type)}function s(){e(),r()}function l(e){t.current.onSliderDrag(e,t.current.type)}function u(){o(),i()}return{handleMouseDown:function(){e(),n.current.ownerDocument.addEventListener("mousemove",a),r(),n.current.ownerDocument.addEventListener("mouseup",s)},handleTouchStart:function(){o(),n.current.ownerDocument.addEventListener("touchmove",l),i(),n.current.ownerDocument.addEventListener("touchend",u)},handleKeyDown:function(e){t.current.onSliderKeyDown(e,t.current.type)},cleanup:function(){e(),r(),o(),i()}}});(0,o.useEffect)(function(){return function(){return r.cleanup()}},[r]);var i={position:"absolute",left:"".concat(100*(e.percentage||0),"%")};return(0,eo.jsxs)("span",{className:e.classNames.sliderContainer,ref:n,style:i,children:[(0,eo.jsx)(bo,{classNames:e.classNames,formatLabel:e.formatLabel,type:"value",value:e.value}),(0,eo.jsx)("div",{"aria-labelledby":e.ariaLabelledby,"aria-controls":e.ariaControls,"aria-valuemax":e.maxValue,"aria-valuemin":e.minValue,"aria-valuenow":e.value,className:e.classNames.slider,draggable:"false",onKeyDown:r.handleKeyDown,onMouseDown:r.handleMouseDown,onTouchStart:r.handleTouchStart,role:"slider",tabIndex:0})]})},Oo=function(e){var t=e.classNames,n=e.draggableTrack,r=e.trackRef,i=e.onTrackDrag,a=e.onTrackMouseDown,s=e.percentages,l=e.children,u=(0,o.useRef)();u.current={draggableTrack:n,onTrackDrag:i,onTrackMouseDown:a};var c=yo(function(){var e=null,t=function(){var e;null===(e=r.current)||void 0===e||e.ownerDocument.removeEventListener("mousemove",o)},n=function(){var e;null===(e=r.current)||void 0===e||e.ownerDocument.removeEventListener("mouseup",i)};function o(t){u.current.draggableTrack&&(null!==e&&u.current.onTrackDrag(t,e),e=t)}function i(){u.current.draggableTrack&&(t(),n(),e=null)}function a(e){var a=(e.touches?e.touches[0].clientX:e.clientX)-r.current.getBoundingClientRect().left;u.current.onTrackMouseDown(e,a),u.current.draggableTrack&&(t(),r.current.ownerDocument.addEventListener("mousemove",o),n(),r.current.ownerDocument.addEventListener("mouseup",i))}return{handleMouseDown:a,handleTouchStart:function(e){e.preventDefault(),a(e)},cleanup:function(){t(),n()}}});(0,o.useEffect)(function(){return function(){return c.cleanup()}},[c]);var f={left:"".concat(100*s.min,"%"),width:"".concat(100*(s.max-s.min),"%")};return(0,eo.jsxs)("div",{className:t.track,onMouseDown:c.handleMouseDown,onTouchStart:c.handleTouchStart,ref:r,children:[(0,eo.jsx)("div",{style:f,className:t.activeTrack}),l]})},xo=(0,o.forwardRef)(function(e,t){var n=io({allowSameValues:!1,classNames:ao,disabled:!1,maxValue:10,minValue:0,step:1},e),r=(0,o.useRef)(n);r.current=n;var a=(0,o.useRef)(null),s=(0,o.useRef)(null),l=yo(function(){return{isSliderDragging:!1,lastKeyMoved:null,startValue:null}}),u=yo(function(){var e=function(){return null!==(e=r.current.value)&&"object"===i(e);var e},t=function(){return s.current.getBoundingClientRect()},n=function(t){(function(t){return function(t){var n=r.current,o=n.minValue,i=n.maxValue,a=n.allowSameValues;return e()?t.min>=o&&t.max<=i&&a?t.min<=t.max:t.min<t.max:t.max>=o&&t.max<=i}(t)&&function(t){var n=fo(r.current,e());return uo(t.min,n.min)>=r.current.step||uo(t.max,n.max)>=r.current.step}(t)})(t)&&r.current.onChange(e()?t:t.max)},o=function(t,o){var i=fo(r.current,e());i[t]=o,n(i)},u=function(o,i){var a=fo(r.current,e()),s=t(),u=mo(a,r.current.minValue,r.current.maxValue,s.width);u[o]=i,l.lastKeyMoved=o,function(e){var o=t(),i=r.current,a=i.minValue,s=i.maxValue,l=i.step,u={min:co(e.min,a,s,o.width),max:co(e.max,a,s,o.width)};n({min:go(u.min,l),max:go(u.max,l)})}(u)},c=function(){var e;null===(e=a.current)||void 0===e||e.ownerDocument.removeEventListener("mouseup",h)},f=function(){var e;null===(e=a.current)||void 0===e||e.ownerDocument.removeEventListener("touchend",m)};function d(){r.current.onChangeStart&&r.current.onChangeStart(r.current.value),r.current.onChangeComplete&&!so(l.startValue)&&(l.startValue=r.current.value)}function p(){l.isSliderDragging&&(l.isSliderDragging=!1),r.current.onChangeComplete&&so(l.startValue)&&(l.startValue!==r.current.value&&r.current.onChangeComplete(r.current.value),l.startValue=null)}function h(e){p(),c()}function m(e){p(),f()}return{isMultiValue:e,getKeys:function(){return e()?["min","max"]:["max"]},handleSliderDrag:function(e,n){if(!r.current.disabled){var o=vo(e,t());l.isSliderDragging=!0,requestAnimationFrame(function(){return u(n,o)})}},handleSliderKeyDown:function(t,n){if(!r.current.disabled)switch(t.keyCode){case 37:case 40:t.preventDefault(),function(t){var n=fo(r.current,e());o(t,n[t]-r.current.step)}(n);break;case 39:case 38:t.preventDefault(),function(t){var n=fo(r.current,e());o(t,n[t]+r.current.step)}(n)}},handleTrackDrag:function(e,o){var i=r.current,a=i.disabled,s=i.draggableTrack,u=i.value,c=i.minValue,f=i.maxValue,d=i.step;if(!a&&s&&!l.isSliderDragging){var p=t(),h=u.max,m=u.min,v=vo(e,p),g=go(co(v,c,f,p.width),d),y=vo(o,p),b=go(co(y,c,f,p.width),d)-g;n({min:m-b,max:h-b})}},handleTrackMouseDown:function(n,o){var i=r.current,a=i.disabled,s=i.draggableTrack,l=i.value,c=i.minValue,f=i.maxValue,d=i.step;if(!a){n.preventDefault();var p=l.max,h=l.min,m=go(co(o,c,f,t().width),d);(!s||m>p||m<h)&&u(function(n){var o=fo(r.current,e()),i=t(),a=mo(o,r.current.minValue,r.current.maxValue,i.width);return e()&&uo(n,a.min)<uo(n,a.max)?"min":"max"}(o),o)}},handleKeyDown:function(e){d()},handleKeyUp:function(e){p()},handleMouseDown:function(e){d(),c(),a.current.ownerDocument.addEventListener("mouseup",h)},handleMouseUp:h,handleTouchStart:function(e){d(),f(),a.current.ownerDocument.addEventListener("touchend",m)},handleTouchEnd:m,cleanup:function(){c(),f()}}});(0,o.useEffect)(function(){return function(){return u.cleanup()}},[u]);var c=u.isMultiValue(),f=fo(n,c),d=function(e,t,n){return{min:po(e.min,t,n),max:po(e.max,t,n)}}(f,n.minValue,n.maxValue),p=n.disabled?n.classNames.disabledInputRange:n.classNames.inputRange,h=(n.allowSameValues&&"min"===l.lastKeyMoved?ee(u.getKeys()).reverse():u.getKeys()).map(function(e){var t=n.minValue,r=n.maxValue;return"min"===e?r=f.max:t=f.min,(0,eo.jsx)(wo,{type:e,ariaLabelledby:n.ariaLabelledby,ariaControls:n.ariaControls,classNames:n.classNames,formatLabel:n.formatLabel,maxValue:r,minValue:t,onSliderDrag:u.handleSliderDrag,onSliderKeyDown:u.handleSliderKeyDown,percentage:d[e],value:f[e]},e)}),m=n.name?u.getKeys().map(function(e){return(0,eo.jsx)("input",{type:"hidden",name:c?"".concat(n.name).concat((t=e,t.charAt(0).toUpperCase()+t.slice(1))):n.name,value:f[e],readOnly:!0},e);var t}):null;return(0,eo.jsxs)("div",{"aria-disabled":n.disabled,ref:function(e){a.current=e,"function"==typeof t?t(e):t&&(t.current=e)},className:p,onKeyDown:u.handleKeyDown,onKeyUp:u.handleKeyUp,onMouseDown:u.handleMouseDown,onTouchStart:u.handleTouchStart,children:[(0,eo.jsx)(bo,{classNames:n.classNames,formatLabel:n.formatLabel,type:"min",value:n.minValue}),(0,eo.jsx)(Oo,{classNames:n.classNames,draggableTrack:n.draggableTrack,trackRef:s,onTrackDrag:u.handleTrackDrag,onTrackMouseDown:u.handleTrackMouseDown,percentages:d,children:h}),(0,eo.jsx)(bo,{classNames:n.classNames,formatLabel:n.formatLabel,type:"max",value:n.maxValue}),m]})}),_o=xo,ko="... ... ... ... ..",Eo=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........"],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61","(..) .... ...."],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-...."],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599"],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","..-........."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d’Ivoire","ci","225",".. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599"],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1"],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49",".... ........"],["Ghana","gh","233"],["Greece","gr","30"],["Grenada","gd","1473"],["Guadeloupe","gp","590"],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... ......."],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-.."],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ...."],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",".. ........"],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1"],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-.."],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","(...) ...-..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-...."],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ...."],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["American Samoa","as","1684"],["Anguilla","ai","1264"],["Bermuda","bm","1441"],["British Virgin Islands","vg","1284"],["Cayman Islands","ky","1345"],["Cook Islands","ck","682"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Gibraltar","gi","350"],["Greenland","gl","299"],["Jersey","je","44",".... ......"],["Montserrat","ms","1664"],["Niue","nu","683"],["Norfolk Island","nf","672"],["Northern Mariana Islands","mp","1670"],["Saint Barthélemy","bl","590"],["Saint Helena","sh","290"],["Saint Martin","mf","590"],["Saint Pierre and Miquelon","pm","508"],["Sint Maarten","sx","1721"],["Tokelau","tk","690"],["Turks and Caicos Islands","tc","1649"],["U.S. Virgin Islands","vi","1340"],["Wallis and Futuna","wf","681"]],Co={us:0,ca:1};function jo(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 So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ao=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")},Po=function(e){return(e||"").replace(/\D/g,"")},Do=function(e){return new Set((e||[]).map(function(e){return String(e).toLowerCase()}))},No=function(e,t){for(var n=null,r=0;r<t.length;r++){var o=t[r];0===e.indexOf(o.dialCode)&&(!n||o.dialCode.length>n.dialCode.length||o.dialCode.length===n.dialCode.length&&o.priority<n.priority)&&(n=o)}return n},Mo=function(e,t,n){var r=n.prefix,o=n.disableCountryCode,i=n.autoFormat,a=n.enableLongNumbers;if(!t)return e;if(!e)return o?"":r;var s=function(e,t){var n=t.prefix,r=t.defaultMask,o=t.alwaysDefaultMask,i=t.disableCountryCode,a=o||!e.format?r||ko:e.format,s=n+".".repeat(e.dialCode.length)+" "+a;if(i){var l=s.split(" ");l.shift(),s=l.join(" ")}return s}(t,n);if(e.length<2||!s||!i)return o?e:r+e;for(var l="",u=e.split(""),c=0;c<s.length&&u.length;c++)l+="."===s[c]?u.shift():s[c];return a&&u.length&&(l+=u.join("")),l.includes("(")&&!l.includes(")")&&(l+=")"),l},To=function(e){return{name:e.name,dialCode:e.dialCode,countryCode:e.iso2,format:e.format}},Lo=(0,o.forwardRef)(function(e,t){var n=So({country:"us",value:"",prefix:"+",defaultMask:ko,alwaysDefaultMask:!1,autoFormat:!0,countryCodeEditable:!0,enableSearch:!1,enableLongNumbers:!1,copyNumbersOnly:!0,enableClickOutside:!0,disabled:!1,searchPlaceholder:"Search",searchNotFound:"No entries to show"},e),i=function(e){var t=e.masks,n=e.onlyCountries,i=e.excludeCountries,a=e.preferredCountries,s=(0,o.useMemo)(function(){return function(e){return Eo.map(function(t,n){var o=r(t,4),i=o[0],a=o[1],s=o[2],l=o[3];return{name:i,iso2:a,countryCode:a,dialCode:s,format:e&&e[a]||l||ko,priority:void 0!==Co[a]?Co[a]:n}})}(t)},[t]),l=(0,o.useMemo)(function(){var e=s;if(n&&n.length){var t=Do(n);e=e.filter(function(e){return t.has(e.iso2)})}if(i&&i.length){var r=Do(i);e=e.filter(function(e){return!r.has(e.iso2)})}return e},[s,n,i]),u=(0,o.useMemo)(function(){return a&&a.length?a.map(function(e){return l.find(function(t){return t.iso2===String(e).toLowerCase()})}).filter(Boolean):[]},[l,a]),c=(0,o.useMemo)(function(){if(!u.length)return l;var e=Do(u.map(function(e){return e.iso2}));return[].concat(ee(u),ee(l.filter(function(t){return!e.has(t.iso2)})))},[l,u]);return{all:s,ordered:c,preferredCount:u.length}}(n),a=i.all,s=i.ordered,l=i.preferredCount,u=(0,o.useRef)(null),c=(0,o.useRef)(null),f=(0,o.useRef)(null),d=(0,o.useRef)(null),p=(0,o.useRef)(null),h=(0,o.useRef)("open"),m=(0,o.useCallback)(function(e){d.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),v={prefix:n.prefix,defaultMask:n.defaultMask,alwaysDefaultMask:n.alwaysDefaultMask,disableCountryCode:n.disableCountryCode,autoFormat:n.autoFormat,enableLongNumbers:n.enableLongNumbers},g=r((0,o.useState)(function(){if(!n.disableInitialCountryGuess&&n.value){var e=Po(n.value),t=e&&No(e,s);if(t)return t}return s.find(function(e){return e.iso2===String(n.country||"").toLowerCase()})||s[0]||a[0]}),2),y=g[0],b=g[1],w=r((0,o.useState)(function(){var e=Po(n.value);return e?0===e.indexOf(y.dialCode)?e.slice(y.dialCode.length):e:""}),2),O=w[0],x=w[1],_=r((0,o.useState)(!1),2),k=_[0],E=_[1],C=r((0,o.useState)(""),2),j=C[0],S=C[1],A=r((0,o.useState)(0),2),P=A[0],D=A[1],N=(0,o.useRef)(n.value);(0,o.useEffect)(function(){if(n.value!==N.current){N.current=n.value;var e=Po(n.value);if(e)if(!1!==n.countryCodeEditable){var t=(n.disableInitialCountryGuess?null:No(e,s))||y;b(t),x(0===e.indexOf(t.dialCode)?e.slice(t.dialCode.length):e)}else x(0===e.indexOf(y.dialCode)?e.slice(y.dialCode.length):e);else x("")}},[n.value]);var M=y?y.dialCode+O:O,T=(0,o.useMemo)(function(){return Mo(M,y,v)},[M,y,n.prefix,n.defaultMask,n.alwaysDefaultMask,n.disableCountryCode,n.autoFormat,n.enableLongNumbers]);(0,o.useEffect)(function(){if(null!==p.current&&d.current){var e=p.current;if(p.current=null,!n.jumpCursorToEnd){for(var t=0,r=T.length,o=0;o<T.length;o++)if(/\d/.test(T[o])&&++t===e){r=o+1;break}if(0===e){var i=T.search(/\d/);r=-1===i?T.length:i}try{d.current.setSelectionRange(r,r)}catch(e){}}}},[T]);var L=function(e,t,r){if(b(e),x(t),n.onChange){var o=e.dialCode+t,i=Mo(o,e,v);n.onChange(o,To(e),r,i)}},I=(0,o.useMemo)(function(){if(!n.enableSearch||!j.trim())return s;var e=j.trim().toLowerCase();return s.filter(function(t){return-1!==t.name.toLowerCase().indexOf(e)||-1!==t.dialCode.indexOf(e)})},[s,j,n.enableSearch]),R=n.enableSearch&&!j.trim()&&l>0&&l<I.length,q=function(){if(!n.disabled&&!n.disableDropdown){S(""),E(!0);var e=s.findIndex(function(e){return e.iso2===y.iso2});h.current="open",D(e>=0?e:0)}},F=function(){return E(!1)};(0,o.useEffect)(function(){if(k&&n.enableClickOutside){var e=function(e){u.current&&!u.current.contains(e.target)&&F()};return document.addEventListener("mousedown",e,!0),function(){return document.removeEventListener("mousedown",e,!0)}}},[k,n.enableClickOutside]),(0,o.useEffect)(function(){k&&n.enableSearch&&f.current&&f.current.focus()},[k,n.enableSearch]),(0,o.useEffect)(function(){if(k&&c.current&&"mouse"!==h.current){var e=c.current.querySelector(".country.highlight");e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest"})}},[k,P]);var V=function(e,t){L(e,O,t),F(),requestAnimationFrame(function(){return d.current&&d.current.focus()})},B=So(So(So({},n.inputProps),n.inputExtraProps),{},{id:n.id,name:n.name,placeholder:n.placeholder,disabled:n.disabled});return(0,eo.jsxs)("div",{className:Ao("react-tel-input",n.containerClass),style:n.containerStyle,ref:u,onCopy:function(e){if(!1!==n.copyNumbersOnly){var t=window.getSelection?window.getSelection().toString():"";if(t){var r=Po(t);r&&e.clipboardData&&(e.preventDefault(),e.clipboardData.setData("text/plain",r))}}},children:[(0,eo.jsx)("input",So(So({},B),{},{type:"tel",ref:m,value:T,className:Ao("form-control",n.inputClass,k&&"open"),style:n.inputStyle,onChange:function(e){if(!n.disabled){var t=e.target,r=null==t.selectionStart?t.value.length:t.selectionStart;p.current=Po(t.value.slice(0,r)).length;var o=Po(t.value);if(o)if(!1!==n.countryCodeEditable){var i=(n.disableCountryGuess?null:No(o,s))||y,a=o.length>i.dialCode.length?o.slice(i.dialCode.length):"";L(i,a,e)}else{var l=0===o.indexOf(y.dialCode)||o.length>y.dialCode.length?o.slice(y.dialCode.length):"";L(y,l,e)}else L(y,"",e)}},onFocus:function(e){n.onFocus&&n.onFocus(e,To(y))},onBlur:function(e){n.onBlur&&n.onBlur(e,To(y))},onClick:n.onClick,onKeyDown:n.onKeyDown})),(0,eo.jsxs)("div",{className:Ao("flag-dropdown",n.buttonClass,k&&"open"),style:n.buttonStyle,children:[(0,eo.jsx)("div",{className:"selected-flag",title:y?"".concat(y.name,": + ").concat(y.dialCode):"",tabIndex:n.disabled||n.disableDropdown?-1:0,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox",onClick:q,onKeyDown:function(e){n.disabled||n.disableDropdown||k||"ArrowDown"!==e.key&&"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),q())},children:(0,eo.jsx)("div",{className:Ao("flag",y&&y.iso2),children:(0,eo.jsx)("div",{className:Ao("arrow",k&&"up")})})}),k&&(0,eo.jsxs)("ul",{className:Ao("country-list",n.dropdownClass),style:n.dropdownStyle,ref:c,role:"listbox",onKeyDown:function(e){if("Escape"===e.key)return e.preventDefault(),F(),void(d.current&&d.current.focus());if("ArrowDown"===e.key)return e.preventDefault(),h.current="keyboard",void D(function(e){return Math.min(e+1,I.length-1)});if("ArrowUp"===e.key)return e.preventDefault(),h.current="keyboard",void D(function(e){return Math.max(e-1,0)});if("Enter"===e.key){e.preventDefault();var t=I[P];t&&V(t,e)}},children:[n.enableSearch&&(0,eo.jsxs)("li",{className:"search",onClick:function(e){return e.stopPropagation()},children:[!n.disableSearchIcon&&(0,eo.jsx)("span",{className:"search-emoji",role:"img","aria-label":"search",children:"🔍"}),(0,eo.jsx)("input",{ref:f,type:"text",placeholder:n.searchPlaceholder,className:Ao("search-box",n.searchClass),style:n.searchStyle,value:j,onChange:function(e){S(e.target.value),D(0)},onClick:function(e){return e.stopPropagation()}})]}),0===I.length&&(0,eo.jsx)("li",{className:"no-entries-message",children:n.searchNotFound}),I.map(function(e,t){return(0,eo.jsxs)(o.Fragment,{children:[R&&t===l&&(0,eo.jsx)("li",{className:"divider"}),(0,eo.jsxs)("li",{"data-country-code":e.iso2,className:Ao("country",t===P&&"highlight",y&&e.iso2===y.iso2&&"active"),role:"option","aria-selected":y&&e.iso2===y.iso2,onClick:function(t){return V(e,t)},onMouseEnter:function(){h.current="mouse",D(t)},children:[(0,eo.jsx)("div",{className:Ao("flag",e.iso2)}),(0,eo.jsx)("span",{className:"country-name",children:e.name}),(0,eo.jsxs)("span",{className:"dial-code",children:["+",e.dialCode]})]})]},e.iso2+e.dialCode)})]})]})]})}),Io=Lo;function Ro(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 qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fo(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function Vo(e,t,n){var r,o=(n/=100)*(t/=100),i=e/60,a=o*(1-Math.abs(i%2-1)),s=n-o;return r=i>=0&&i<1?[o,a,0]:i>=1&&i<2?[a,o,0]:i>=2&&i<3?[0,o,a]:i>=3&&i<4?[0,a,o]:i>=4&&i<5?[a,0,o]:i>=5&&i<=6?[o,0,a]:[0,0,0],{r:Math.round(255*(r[0]+s)),g:Math.round(255*(r[1]+s)),b:Math.round(255*(r[2]+s))}}var Bo=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t};function Ho(e,t,n){return"#"+[Bo(e),Bo(t),Bo(n)].join("")}function Uo(e,t,n){var r,o=Math.max(e,t,n),i=o-Math.min(e,t,n);return r=0===i?0:e===o?(t-n)/i%6:t===o?(n-e)/i+2:(e-t)/i+4,(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:i/o)),v:Math.round(o/255*100)}}function zo(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}function Ko(e){var t,n,r=(e=(e||"#000000").toLowerCase()).substr(0,7),o=Fo(r),i=o.r,a=o.g,s=o.b,l=Uo(i,a,s),u=e.length>7?(t=e.substr(7),n=Math.round(parseInt("0x"+t,16)/255*100),isNaN(n)?100:Math.min(100,Math.max(0,n))):100;return qo(qo({},l),{},{r:i,g:a,b:s,a:u,hex:r,rgba:zo(i,a,s,u)})}var Wo=["step","min","max","value","onChange","onKeyDown"];function Yo(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;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Qo=function(e,t,n,r,o){if(""===t)return"number"==typeof r?r:"";var i="+"===e?t+o:t-o;if("number"==typeof n&&i>n)return n;if("number"==typeof r&&i<r)return r;var a=(o.toString().split(".")[1]||"").length;return a?parseFloat(i.toFixed(a)):i},Go=function(e){var t=e.step,n=void 0===t?1:t,i=e.min,a=e.max,s=e.value,l=void 0===s?"":s,u=e.onChange,c=e.onKeyDown,f=W(e,Wo),d=r((0,o.useState)(l),2),p=d[0],h=d[1];return(0,o.useEffect)(function(){h(l)},[l]),(0,eo.jsx)("input",$o($o({},f),{},{type:"text",autoComplete:"off",value:p,onChange:function(e){var t=e.target.value;if(h(t),u){var n=function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=e.trim();if(!t)return"";var n=parseFloat(t);if(!isNaN(n))return n}return""}(t);u(""===n?"":function(e,t,n){return"number"==typeof t&&e<t?t:"number"==typeof n&&e>n?n:e}(n,i,a))}},onKeyDown:function(e){38===e.keyCode&&u?u(Qo("+",l,a,i,n)):40===e.keyCode&&u&&u(Qo("-",l,a,i,n)),c&&c(e)},onWheel:function(e){e.target.blur()},style:$o({MozAppearance:"textfield"},f.style)}))};function Zo(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 Xo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jo=function(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}},ei={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},ti={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},ni={position:"relative",display:"block",width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},ri={x:{track:Xo(Xo({},ei),{},{width:200,height:10}),active:Xo(Xo({},ti),{},{top:0,height:"100%"}),thumb:Xo({},ni)},y:{track:Xo(Xo({},ei),{},{width:10,height:200}),active:Xo(Xo({},ti),{},{left:0,width:"100%"}),thumb:Xo({},ni)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:Xo({},ni)}},oi=function(e){var t=e.disabled,n=void 0!==t&&t,r=e.axis,i=void 0===r?"x":r,a=e.x,s=void 0===a?50:a,l=e.y,u=void 0===l?50:l,c=e.xmin,f=void 0===c?0:c,d=e.xmax,p=void 0===d?100:d,h=e.ymin,m=void 0===h?0:h,v=e.ymax,g=void 0===v?100:v,y=e.xstep,b=void 0===y?1:y,w=e.ystep,O=void 0===w?1:w,x=e.onChange,_=e.onDragStart,k=e.onDragEnd,E=e.onClick,C=e.styles,j=void 0===C?{}:C,S=(0,o.useRef)(null),A=(0,o.useRef)(null),P=(0,o.useRef)({x:0,y:0}),D=(0,o.useRef)({x:0,y:0}),N=(0,o.useRef)(null),M=function(e){var t=e.top,n=e.left;if(x&&S.current){var r=S.current.getBoundingClientRect(),o=r.width,a=r.height,s=0,l=0;n<0&&(n=0),n>o&&(n=o),t<0&&(t=0),t>a&&(t=a),"x"!==i&&"xy"!==i||(s=n/o*(p-f)),"y"!==i&&"xy"!==i||(l=t/a*(g-m));var u=(0!==s?parseInt(s/b,10)*b:0)+f,c=(0!==l?parseInt(l/O,10)*O:0)+m;x({x:u,y:c})}},T=function(e){n||(e.preventDefault(),M(function(e){var t=Jo(e);return{left:t.x+P.current.x-D.current.x,top:t.y+P.current.y-D.current.y}}(e)))},L=function(e){n||(e.preventDefault(),document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",T,{passive:!1}),document.removeEventListener("touchend",L),document.removeEventListener("touchcancel",L),N.current=null,k&&k(e))},I=function(e){if(!n){e.preventDefault();var t=A.current,r=Jo(e);P.current={x:t.offsetLeft,y:t.offsetTop},D.current={x:r.x,y:r.y},document.addEventListener("mousemove",T),document.addEventListener("mouseup",L),document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",L),document.addEventListener("touchcancel",L),N.current=function(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",T,{passive:!1}),document.removeEventListener("touchend",L),document.removeEventListener("touchcancel",L)},_&&_(e)}};(0,o.useEffect)(function(){return function(){N.current&&N.current()}},[]);var R=(0,o.useRef)(I);R.current=I,(0,o.useEffect)(function(){var e=A.current;if(e){var t=function(e){return R.current(e)};return e.addEventListener("touchstart",t,{passive:!1}),function(){return e.removeEventListener("touchstart",t)}}},[]);var q,F,V=((q=(u-m)/(g-m)*100)>100&&(q=100),q<0&&(q=0),"x"===i&&(q=0),(F=(s-f)/(p-f)*100)>100&&(F=100),F<0&&(F=0),"y"===i&&(F=0),{top:q,left:F}),B={position:"absolute",transform:"translate(-50%, -50%)",left:V.left+"%",top:V.top+"%"};"x"===i?B.top="50%":"y"===i&&(B.left="50%");var H={};"x"===i&&(H.width=V.left+"%"),"y"===i&&(H.height=V.top+"%");var U={track:Xo(Xo(Xo({},ri[i].track),j.track),n?{opacity:.5}:{}),active:Xo(Xo({},ri[i].active),j.active),thumb:Xo(Xo({},ri[i].thumb),j.thumb)};return(0,eo.jsxs)("div",{ref:S,style:U.track,onClick:function(e){if(!n){var t=Jo(e),r=S.current.getBoundingClientRect();M({left:t.x-r.left,top:t.y-r.top}),E&&E(e)}},children:[(0,eo.jsx)("div",{style:Xo(Xo({},U.active),H)}),(0,eo.jsx)("div",{ref:A,style:B,onMouseDown:I,onClick:function(e){e.stopPropagation()},children:(0,eo.jsx)("div",{style:U.thumb})})]})};function ii(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 ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var si=/^#?[0-9a-fA-F]{3}$|^#?[0-9a-fA-F]{6}$/,li={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,userSelect:"none"},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},slidersRow:{width:"100%",marginTop:10,marginBottom:10,display:"flex"},slidersColumn:{flex:1,marginRight:10},inputsRow:{display:"flex",justifyContent:"space-between",width:"100%"},inputCell:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000"},inputCellField:{width:30,textAlign:"center"},inputCellLabel:{marginTop:4}},ui=function(e){var t=e.color,n=e.onChange,i=t.r,a=t.g,s=t.b,l=t.a,u=t.h,c=t.s,f=t.v,d=r((0,o.useState)(t.hex),2),p=d[0],h=d[1];(0,o.useEffect)(function(){h(t.hex)},[t.hex]);var m=function(e){n&&n(ai(ai({},e),{},{rgba:zo(e.r,e.g,e.b,e.a)}))},v=function(e,n,r){var o=Vo(e,n,r),i=Ho(o.r,o.g,o.b);m(ai(ai(ai({},t),{},{h:e,s:n,v:r},o),{},{hex:i}))},g=function(e,n,r){if(""!==e&&""!==n&&""!==r){var o=Ho(e,n,r),i=Uo(e,n,r);m(ai(ai(ai({},t),{},{r:e,g:n,b:r},i),{},{hex:o}))}},y=function(e){""!==e&&m(ai(ai({},t),{},{a:e}))},b=function(e){if(!si.test(e.trim()))return!1;var n=function(e){var t=e.trim();return"#"===t[0]?t:"#"+t}(e),r=Fo(n),o=Uo(r.r,r.g,r.b);return m(ai(ai(ai(ai({},t),r),o),{},{hex:n})),!0},w=zo(i,a,s,l),O="linear-gradient(to right, ".concat(zo(i,a,s,0),", ").concat(zo(i,a,s,100),")"),x=function(e){var t=Vo(e,100,100);return Ho(t.r,t.g,t.b)}(u);return(0,eo.jsxs)("div",{style:li.picker,onClick:function(e){e.stopPropagation()},children:[(0,eo.jsxs)("div",{style:ai(ai({},li.selector),{},{backgroundColor:x}),children:[(0,eo.jsx)("div",{style:li.gradientWhite}),(0,eo.jsx)("div",{style:li.gradientDark}),(0,eo.jsx)(oi,{axis:"xy",x:c,xmax:100,y:100-f,ymax:100,onChange:function(e){var t=e.x,n=e.y;return v(u,t,100-n)},styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})]}),(0,eo.jsxs)("div",{style:li.slidersRow,children:[(0,eo.jsxs)("div",{style:li.slidersColumn,children:[(0,eo.jsx)(oi,{axis:"x",x:u,xmax:359,onChange:function(e){var t=e.x;return v(t,c,f)},styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),(0,eo.jsx)(oi,{axis:"x",x:l,xmax:100,onChange:function(e){var t=e.x;return y(t)},styles:{track:{width:"100%",height:12,borderRadius:0,background:O},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}})]}),(0,eo.jsx)("div",{style:{backgroundColor:w,width:30,height:30}})]}),(0,eo.jsxs)("div",{style:li.inputsRow,children:[(0,eo.jsxs)("div",{style:li.inputCell,children:[(0,eo.jsx)("input",{style:{width:70,textAlign:"left"},type:"text",value:p,onChange:function(e){return t=e.target.value,h(t),void b(t);var t},onKeyUp:function(e){13===e.keyCode&&b(e.target.value)}}),(0,eo.jsx)("div",{style:li.inputCellLabel,children:"Hex"})]}),(0,eo.jsxs)("div",{style:li.inputCell,children:[(0,eo.jsx)(Go,{style:li.inputCellField,min:0,max:255,value:i,onChange:function(e){return g(e,a,s)}}),(0,eo.jsx)("div",{style:li.inputCellLabel,children:"R"})]}),(0,eo.jsxs)("div",{style:li.inputCell,children:[(0,eo.jsx)(Go,{style:li.inputCellField,min:0,max:255,value:a,onChange:function(e){return g(i,e,s)}}),(0,eo.jsx)("div",{style:li.inputCellLabel,children:"G"})]}),(0,eo.jsxs)("div",{style:li.inputCell,children:[(0,eo.jsx)(Go,{style:li.inputCellField,min:0,max:255,value:s,onChange:function(e){return g(i,a,e)}}),(0,eo.jsx)("div",{style:li.inputCellLabel,children:"B"})]}),(0,eo.jsxs)("div",{style:li.inputCell,children:[(0,eo.jsx)(Go,{style:li.inputCellField,min:0,max:100,value:l,onChange:function(e){return y(e)}}),(0,eo.jsx)("div",{style:li.inputCellLabel,children:"A"})]})]})]})};function ci(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 fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var di=10,pi=14,hi=function(e,t,n){return Math.min(Math.max(e,t),n)},mi={top:"bottom",bottom:"top",left:"right",right:"left"},vi=function(e){var t={position:"absolute",width:0,height:0,borderStyle:"solid"};switch(e.placement){case"top":return fi(fi({},t),{},{left:e.arrowOffset-8,bottom:-8,borderWidth:"".concat(8,"px ").concat(8,"px 0 ").concat(8,"px"),borderColor:"#fff transparent transparent transparent",filter:"drop-shadow(0 1px 1px rgba(0,0,0,.15))"});case"left":return fi(fi({},t),{},{top:e.arrowOffset-8,right:-8,borderWidth:"".concat(8,"px 0 ").concat(8,"px ").concat(8,"px"),borderColor:"transparent transparent transparent #fff",filter:"drop-shadow(1px 0 1px rgba(0,0,0,.15))"});case"right":return fi(fi({},t),{},{top:e.arrowOffset-8,left:-8,borderWidth:"".concat(8,"px ").concat(8,"px ").concat(8,"px 0"),borderColor:"transparent #fff transparent transparent",filter:"drop-shadow(-1px 0 1px rgba(0,0,0,.15))"});default:return fi(fi({},t),{},{left:e.arrowOffset-8,top:-8,borderWidth:"0 ".concat(8,"px ").concat(8,"px ").concat(8,"px"),borderColor:"transparent transparent #fff transparent",filter:"drop-shadow(0 -1px 1px rgba(0,0,0,.15))"})}},gi=function(e){var t=e.placement,n=void 0===t?"bottom":t,i=e.body,a=e.children,s=e.disabled,l=void 0!==s&&s,u=e.onOpenChange,c=r((0,o.useState)(!1),2),f=c[0],d=c[1],p=r((0,o.useState)(null),2),h=p[0],m=p[1],v=(0,o.useRef)(null),g=(0,o.useRef)(null),y=function(e){d(e),u&&u(e)},b=(0,o.useCallback)(function(){if(v.current&&g.current){var e=v.current.getBoundingClientRect(),t=g.current.getBoundingClientRect();m(function(e,t,n){var r,o,i=window.innerWidth,a=window.innerHeight,s={bottom:t.bottom+di+n.height<=a,top:t.top-di-n.height>=0,right:t.right+di+n.width<=i,left:t.left-di-n.width>=0},l=e;return s[e]||(l=s[mi[e]]?mi[e]:"top"===e||"bottom"===e?t.top>a-t.bottom?"top":"bottom":t.left>i-t.right?"left":"right"),"bottom"===l||"top"===l?(o=t.left+t.width/2-n.width/2,o=hi(o,8,Math.max(8,i-n.width-8)),r="bottom"===l?t.bottom+di:t.top-di-n.height,r=hi(r,8,Math.max(8,a-n.height-8))):(r=t.top+t.height/2-n.height/2,r=hi(r,8,Math.max(8,a-n.height-8)),o="right"===l?t.right+di:t.left-di-n.width,o=hi(o,8,Math.max(8,i-n.width-8))),{placement:l,top:r,left:o,arrowOffset:"bottom"===l||"top"===l?hi(t.left+t.width/2-o,pi,Math.max(pi,n.width-pi)):hi(t.top+t.height/2-r,pi,Math.max(pi,n.height-pi))}}(n,e,t))}},[n]);(0,o.useLayoutEffect)(function(){f&&b()},[f,b]),(0,o.useEffect)(function(){if(f)return window.addEventListener("resize",b),window.addEventListener("scroll",b,!0),function(){window.removeEventListener("resize",b),window.removeEventListener("scroll",b,!0)}},[f,b]),(0,o.useEffect)(function(){if(f){var e=function(e){v.current&&v.current.contains(e.target)||g.current&&g.current.contains(e.target)||y(!1)};return document.addEventListener("mousedown",e,!0),function(){return document.removeEventListener("mousedown",e,!0)}}},[f]);var w=(0,o.cloneElement)(a,{ref:function(e){v.current=e;var t=a.ref;"function"==typeof t?t(e):t&&(t.current=e)},onClick:function(e){a.props.onClick&&a.props.onClick(e),l||y(!f)}});return(0,eo.jsxs)(eo.Fragment,{children:[w,f&&(0,eo.jsxs)("div",{ref:g,style:{position:"fixed",top:h?h.top:-9999,left:h?h.left:-9999,visibility:h?"visible":"hidden",zIndex:999999,backgroundColor:"#fff",borderRadius:4,border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 2px 8px rgba(0,0,0,0.25)"},onClick:function(e){return e.stopPropagation()},children:[h&&(0,eo.jsx)("div",{style:vi(h)}),(0,eo.jsx)("div",{style:{padding:"8px 12px"},children:i})]})]})},yi=["initialValue","onChange","placement"];function bi(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 wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oi="mf-input-color-swatch",xi="mf-input-color-swatch-fill",_i=!1,ki=function(e){var t=e.initialValue,n=void 0===t?"#000000":t,i=e.onChange,a=e.placement,s=void 0===a?"bottom":a,l=W(e,yi);(0,o.useEffect)(function(){!function(){if(!_i&&"undefined"!=typeof document){_i=!0;var e=document.createElement("style");e.setAttribute("data-mf-input-color",""),e.textContent="\n\t\t.".concat(Oi," {\n\t\t\tposition: relative;\n\t\t\tdisplay: inline-block;\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 50px;\n\t\t\theight: 24px;\n\t\t\tpadding: 4px;\n\t\t\tbackground-color: #ffffff;\n\t\t\tborder: 1px solid #bebebe;\n\t\t\tborder-radius: 3px;\n\t\t\tuser-select: none;\n\t\t\tcursor: pointer;\n\t\t\tvertical-align: middle;\n\t\t}\n\t\t.").concat(xi," {\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tcursor: pointer;\n\t\t}\n\t"),document.head.appendChild(e)}}()},[]);var u=r((0,o.useState)(function(){return Ko(n)}),2),c=u[0],f=u[1],d=function(e){f(e),i&&i(e)};return(0,o.useEffect)(function(){d(Ko(n))},[n]),(0,eo.jsx)(gi,{placement:s,body:(0,eo.jsx)(ui,{color:c,onChange:d}),children:(0,eo.jsx)("span",wi(wi({},l),{},{className:[Oi,l.className].filter(Boolean).join(" "),children:(0,eo.jsx)("span",{className:xi,style:{backgroundColor:c.rgba}})}))})},Ei=function(e,t,n,r,o){return t*Math.pow(1-e,3)+3*n*Math.pow(1-e,2)*e+3*r*(1-e)*Math.pow(e,2)+o*Math.pow(e,3)},Ci=function(e,t,n){var r=e.x-t.x,o=e.y-t.y,i=t.x-n.x,a=t.y-n.y,s=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,f=Math.sqrt(r*r+o*o),d=Math.sqrt(i*i+a*a),p=f+d===0?0:d/(f+d),h=u+(s-u)*p,m=c+(l-c)*p,v=t.x-h,g=t.y-m;return{c1:{x:s+v,y:l+g},c2:{x:u+v,y:c+g}}},ji=(0,o.forwardRef)(function(e,t){var n=e.clearButton,r=e.onEnd,i=e.onBegin,a=e.name,s=(0,o.useRef)(null),l=(0,o.useRef)(null),u=(0,o.useRef)(e.penColor||"black"),c=(0,o.useRef)(e.backgroundColor||"rgba(0,0,0,0)"),f=(0,o.useRef)("number"==typeof e.minWidth?e.minWidth:.5),d=(0,o.useRef)("number"==typeof e.maxWidth?e.maxWidth:2.5),p=(0,o.useRef)("number"==typeof e.velocityFilterWeight?e.velocityFilterWeight:.7),h=(0,o.useRef)(e.dotSize||function(){return(f.current+d.current)/2}),m=(0,o.useRef)(r),v=(0,o.useRef)(i),g=(0,o.useRef)(a);(0,o.useEffect)(function(){g.current=a},[a]);var y=(0,o.useRef)([]),b=(0,o.useRef)(0),w=(0,o.useRef)((f.current+d.current)/2),O=(0,o.useRef)(!0),x=function(){y.current=[],b.current=0,w.current=(f.current+d.current)/2,O.current=!0,l.current&&(l.current.fillStyle=u.current)},_=function(){var e=s.current,t=l.current;e&&t&&(t.fillStyle=c.current,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),x(),"function"==typeof m.current&&m.current.call(S()))},k=function(){var e=s.current,t=l.current;if(e&&t){var n=Math.max(window.devicePixelRatio||1,1),r=e.offsetWidth;e.width=r*n,e.height=200*n,e.style.height="200px",t.scale(n,n),O.current=!0}},E=function(){var e;return s.current&&!O.current?(e=s.current).toDataURL.apply(e,arguments):""},C=function(e){var t=s.current,n=l.current;if(t&&n){var r=window.devicePixelRatio||1,o=t.width/r,i=t.height/r;x();var a=new Image;a.src=e,a.onload=function(){n.drawImage(a,0,0,o,i)},O.current=!1}},j=function(){return O.current},S=function(){return{props:{name:g.current},toDataURL:E,clear:_,isEmpty:j,fromDataURL:C}};return(0,o.useImperativeHandle)(t,function(){return{clear:_,isEmpty:j,toDataURL:E,fromDataURL:C}}),(0,o.useEffect)(function(){var e=s.current;if(e){var t=e.getContext("2d");l.current=t,_(),k(),e.style.msTouchAction="none";var n=function(e,n,r){t.moveTo(e,n),t.arc(e,n,r,0,2*Math.PI,!1),O.current=!1},r=function(e){var r,o,i,a,s=(r=e.endPoint,o=e.startPoint,r.time!==o.time?(i=r,a=o,Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2))/(r.time-o.time)):1),l=function(e){return Math.max(d.current/(e+1),f.current)}(s=p.current*s+(1-p.current)*b.current);(function(e,r,o){var i=o-r,a=Math.floor(function(e){for(var t,n,r=0,o=0;o<=10;o++){var i=o/10,a=Ei(i,e.startPoint.x,e.control1.x,e.control2.x,e.endPoint.x),s=Ei(i,e.startPoint.y,e.control1.y,e.control2.y,e.endPoint.y);if(o>0){var l=a-t,u=s-n;r+=Math.sqrt(l*l+u*u)}t=a,n=s}return r}(e));t.beginPath();for(var s=0;s<a;s++){var l=s/a,u=l*l*l,c=Ei(l,e.startPoint.x,e.control1.x,e.control2.x,e.endPoint.x),f=Ei(l,e.startPoint.y,e.control1.y,e.control2.y,e.endPoint.y);n(c,f,r+u*i)}t.closePath(),t.fill()})(e,w.current,l),b.current=s,w.current=l},o=function(t){!function(e){var t=y.current;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=Ci(t[0],t[1],t[2]),o=Ci(t[1],t[2],t[3]),i={startPoint:t[1],control1:n.c2,control2:o.c1,endPoint:t[2]};r(i),t.shift()}}(function(t){var n=e.getBoundingClientRect();return{x:t.clientX-n.left,y:t.clientY-n.top,time:Date.now()}}(t))},i=function(e){x(),o(e),"function"==typeof v.current&&v.current.call(S(),e)},a=function(e){var r=y.current,o=r.length>2,i=r[0];!o&&i&&function(e){var r="function"==typeof h.current?h.current():h.current;t.beginPath(),n(e.x,e.y,r),t.closePath(),t.fill()}(i),"function"==typeof m.current&&m.current.call(S(),e)},u=!1,c=function(e){1===e.which&&(u=!0,i(e))},g=function(e){u&&o(e)},E=function(e){1===e.which&&u&&(u=!1,a(e))},C=function(e){var t=e.changedTouches[0];i(t)},j=function(e){e.preventDefault();var t=e.changedTouches[0];o(t)},A=function(t){t.target===e&&a(t)},P=function(){return k()};e.addEventListener("mousedown",c),e.addEventListener("mousemove",g),document.addEventListener("mouseup",E),e.addEventListener("touchstart",C),e.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",A),window.addEventListener("resize",P);var D="undefined"!=typeof ResizeObserver?new ResizeObserver(P):null;return D&&D.observe(e),function(){e.removeEventListener("mousedown",c),e.removeEventListener("mousemove",g),document.removeEventListener("mouseup",E),e.removeEventListener("touchstart",C),e.removeEventListener("touchmove",j,{passive:!1}),document.removeEventListener("touchend",A),window.removeEventListener("resize",P),D&&D.disconnect()}}},[]),(0,eo.jsxs)("div",{id:"signature-pad",className:"m-signature-pad",children:[(0,eo.jsx)("div",{className:"m-signature-pad--body",children:(0,eo.jsx)("canvas",{ref:s})}),n&&(0,eo.jsx)("div",{className:"m-signature-pad--footer",children:(0,eo.jsx)("button",{type:"button",className:"btn btn-default button clear",onClick:function(e){e.preventDefault(),_()},children:"Clear"})})]})}),Si=ji,Ai=function(e,t,n,r,o){if(e&&e.input){o.activateValidation(n,e.input);var i=window[t];t&&i&&(window.flatpickr.l10ns[t]=i.default[t],e.set("locale",t))}},Pi=window.wp.i18n,Di=function(e,t){return(0,eo.jsx)("div",{className:"mf-main-response-wrap ".concat(t," mf-response-msg-wrap"),"data-show":"1",children:(0,eo.jsxs)("div",{className:"mf-response-msg",children:[(0,eo.jsx)("i",{className:"mf-success-icon ".concat(e)}),(0,eo.jsx)("p",{children:(0,Pi.__)("This is a sample success message.","metform")})]})})},Ni=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t)[2],o=[].concat(t)[3],i=[].concat(t)[4],a=[].concat(t)[5],s=r.errors,l=r.success,u=r.form_res;try{var c,f,d=null!==(c=document.querySelector("#mf-response-props-id-"+r.formId))&&void 0!==c&&c.dataset.response_type?null===(f=document.querySelector("#mf-response-props-id-"+r.formId))||void 0===f?void 0:f.dataset.response_type:"alert";if("cute_alert"==d&&(s.length||l)&&(s.length?(cuteAlert({type:"error",title:s[0],message:"",buttonText:"Ok"}),t[2].errors=[]):(cuteAlert({type:"success",title:l,message:"",buttonText:"Ok"}),t[2].success="")),"alert"==d)return(0,eo.jsx)("div",{className:"mf-main-response-wrap ".concat(a," mf-response-msg-wrap").concat(s.length>0?" mf-error-res":""),"data-show":u,children:(0,eo.jsx)("div",{className:"mf-response-msg",children:s.length?(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("i",{className:"mf-alert-icon ".concat(i)}),(0,eo.jsxs)("p",{children:[s.map(function(e){return e+" "})," "]})]}):(0,eo.jsxs)(eo.Fragment,{children:[(0,eo.jsx)("i",{className:"mf-success-icon ".concat(o)}),(0,eo.jsx)("p",{children:l})]})})})}catch(e){console.error("Error selecting element:",e)}},Mi=function(e,t,n){if("mf-captcha-challenge"!==e&&"g-recaptcha-response"!==e&&"right-answer"!==e&&"wrong-answer"!==e&&"quiz-marks"!==e&&"total-question"!==e){var r=n.getValue(e),o=n.formContainerRef.current,a=function(e){return"File"in window&&e instanceof File};if(Array.isArray(r)&&r.length>0&&a(r[0])?r=r.map(function(e){return e.name}).join(", "):a(r)?r=r.name:Array.isArray(r)?r=r.join(", "):"object"===i(r)&&null!==r&&r.name?r=r.name:"string"==typeof r&&r.includes("data:image")&&(r=(0,eo.jsx)("img",{src:r,alt:e})),!r)return"";var s=null==o?void 0:o.querySelectorAll("input");null==s||s.forEach(function(t){t.name==e&&"password"===t.type&&(r="*".repeat(r.length))});var l=function(e,t,n){var r,o=null==n||null===(r=n.formContainerRef)||void 0===r?void 0:r.current,i=null==o?void 0:o.querySelector('[name="'+e+'"]'),a=i?i.closest(".mf-input-wrapper").querySelector("label"):null,s=t.includes("-")?t.split("-")[1]:t,l=s.charAt(0).toUpperCase()+s.slice(1);return a?a.innerText.replace(/\*/g,"").trim():l}(e,e,n);return(0,eo.jsxs)("li",{children:[(0,eo.jsxs)("strong",{children:[" ",l," "]})," ",(0,eo.jsxs)("span",{children:[" ",r," "]})]},t)}},Ti=n(7048),Li=new(n.n(Ti)())({tolerance:200}),Ii=e=>"checkbox"===e.type,Ri=e=>"file"===e.type,qi=e=>e instanceof Date,Fi=e=>null==e;const Vi=e=>"object"==typeof e;var Bi=e=>!Fi(e)&&!Array.isArray(e)&&Vi(e)&&!qi(e);const Hi=/[.[\]'"]/;var Ui=e=>e.split(Hi).filter(Boolean),zi="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Ki(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e);const t="undefined"!=typeof FileList&&e instanceof FileList;if(zi&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&e.constructor!==Object)return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Ki(e[t]));return r}const Wi="trigger",Yi="onChange",$i="onSubmit",Qi="all",Gi="pattern",Zi="required",Xi="validate",Ji="root",ea=["__proto__","constructor","prototype"],ta=/^\w*$/;var na=e=>ta.test(e),ra=e=>void 0===e,oa=(e,t,n)=>{if(!t||!Bi(e))return n;const r=na(t)?[t]:Ui(t);if(r.some(e=>ea.includes(e)))return n;const o=r.reduce((e,t)=>Fi(e)?void 0:e[t],e);return ra(o)||o===e?ra(e[t])?n:e[t]:o},ia=e=>"boolean"==typeof e,aa=e=>"function"==typeof e,sa=(e,t,n)=>{let r=-1;const o=na(t)?[t]:Ui(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=Bi(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}if(ea.includes(t))return;e[t]=i,e=e[t]}};Y.createContext(null).displayName="HookFormControlContext";const la=zi?Y.useLayoutEffect:Y.useEffect;var ua=e=>Fi(e)||!Vi(e);const ca=(e,t)=>0===t.length&&!Array.isArray(e)&&!(e=>{const t=e.constructor&&e.constructor.prototype;return Bi(t)&&t.hasOwnProperty("isPrototypeOf")})(e);function fa(e,t,n=new WeakMap){if(e===t)return!0;if(ua(e)||ua(t))return Object.is(e,t);if(qi(e)&&qi(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(ca(e,r)||ca(t,o))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;const i=n.get(e);if(i&&i.has(t))return!0;if(i)i.add(t);else{const r=new WeakSet;r.add(t),n.set(e,r)}for(const o of r){const r=e[o];if(!(o in t))return!1;if("ref"!==o){const e=t[o];if(qi(r)&&qi(e)||(Bi(r)||Array.isArray(r))&&(Bi(e)||Array.isArray(e))?!fa(r,e,n):!Object.is(r,e))return!1}}return!0}var da=e=>"string"==typeof e,pa=e=>({isOnSubmit:!e||e===$i,isOnBlur:"onBlur"===e,isOnChange:e===Yi,isOnAll:e===Qi,isOnTouch:"onTouched"===e}),ha=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const n of t.watch)if(e.startsWith(n)&&"."===e.charAt(n.length))return!0;return!1};const ma=(e,t,n,r)=>{for(const o of n||Object.keys(e)){if("_f"===o)continue;const i=n?oa(e,o):e[o];if(i){const{_f:e}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(ma(i,t))break}else if((Bi(i)||Array.isArray(i))&&ma(i,t))break}}};var va=(e,t,n)=>{const r=oa(e,n),o=Array.isArray(r)?r:[];return sa(o,Ji,t[n]),sa(e,n,o),e},ga=e=>Bi(e)&&!Object.keys(e).length,ya=e=>{if(!zi)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ba=e=>"radio"===e.type,wa=e=>e instanceof RegExp,Oa=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{};const xa={value:!1,isValid:!1},_a={value:!0,isValid:!0};var ka=e=>{if(!Array.isArray(e))return xa;if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}const t=e[0];return t&&t.checked&&!t.disabled?t.attributes&&"value"in t.attributes?ra(t.value)||""===t.value?_a:{value:t.value,isValid:!0}:_a:xa};const Ea={isValid:!1,value:null};var Ca=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Ea):Ea;function ja(e,t,n="validate"){if(da(e)||Array.isArray(e)&&e.every(da)||ia(e)&&!e)return{type:n,message:da(e)?e:"",ref:t}}var Sa=e=>Bi(e)&&!wa(e)?e:{value:e,message:""},Aa=async(e,t,n,r,o,i)=>{const{ref:a,refs:s,required:l,maxLength:u,minLength:c,min:f,max:d,pattern:p,validate:h,name:m,valueAsNumber:v,mount:g}=e._f,y=oa(n,m);if(!g||t.has(m))return{};const b=s?s[0]:a,w=e=>{if(o&&b.reportValidity){const t=ia(e)?"":e||"";s?s.forEach(e=>e.setCustomValidity(t)):b.setCustomValidity(t),b.reportValidity()}},O={},x=ba(a),_=Ii(a),k=x||_,E=(v||Ri(a))&&ra(a.value)&&ra(y)||ya(a)&&""===a.value||""===y||Array.isArray(y)&&!y.length,C=Oa.bind(null,m,r,O),j=(e,t,n,r="maxLength",o="minLength")=>{const i=e?t:n;O[m]={type:e?r:o,message:i,ref:a,...C(e?r:o,i)}};if(i?!Array.isArray(y)||!y.length:l&&(!k&&(E||Fi(y))||ia(y)&&!y||_&&!ka(s).isValid||x&&!Ca(s).isValid)){const{value:e,message:t}=da(l)?{value:!!l,message:l}:Sa(l);if(e&&(O[m]={type:Zi,message:t,ref:b,...C(Zi,t)},!r))return w(t),O}if(!(E||Fi(f)&&Fi(d))){let e,t;const n=Sa(d),o=Sa(f);if(Fi(y)||qi(y)||isNaN(y)){const r=a.valueAsDate||new Date(y),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;da(n.value)&&y&&(e=s?i(y)>i(n.value):l?y>n.value:r>new Date(n.value)),da(o.value)&&y&&(t=s?i(y)<i(o.value):l?y<o.value:r<new Date(o.value))}else{const r=a.valueAsNumber||(y?+y:y);Fi(n.value)||(e=r>n.value),Fi(o.value)||(t=r<o.value)}if((e||t)&&(j(!!e,n.message,o.message,"max","min"),!r))return w(O[m].message),O}if((u||c)&&!E&&(da(y)||i&&Array.isArray(y))){const e=Sa(u),t=Sa(c),n=!Fi(e.value)&&y.length>+e.value,o=!Fi(t.value)&&y.length<+t.value;if((n||o)&&(j(n,e.message,t.message),!r))return w(O[m].message),O}if(p&&!E&&da(y)){const{value:e,message:t}=Sa(p);if(wa(e)&&!y.match(e)&&(O[m]={type:Gi,message:t,ref:a,...C(Gi,t)},!r))return w(t),O}if(h)if(aa(h)){const e=ja(await h(y,n),b);if(e&&(O[m]={...e,...C(Xi,e.message)},!r))return w(e.message),O}else if(Bi(h)){let e={};for(const t in h){if(!ga(e)&&!r)break;const o=ja(await h[t](y,n),b,t);o&&(e={...o,...C(t,o.message)},w(o.message),r&&(O[m]=e))}if(!ga(e)&&(O[m]={ref:b,...e},!r))return O}const S=O[m];return w(!S||S.message),O},Pa=e=>Array.isArray(e)?e:[e],Da=e=>Array.isArray(e)?e.filter(Boolean):[];function Na(e,t){if(da(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:na(t)?[t]:Ui(t);if(n.some(e=>ea.includes(String(e))))return e;const r=1===n.length?e:function(e,t){const n=t.length-1;let r=0;for(;r<n;){if(Fi(e)){e=void 0;break}e=e[t[r]],r++}return e}(e,n),o=n.length-1,i=n[o];return r&&delete r[i],0!==o&&(Bi(r)&&ga(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!ra(e[t]))return!1;return!0}(r))&&Na(e,n.slice(0,-1)),e}const Ma=Y.createContext(null);Ma.displayName="HookFormContext";var Ta=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function La(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&Bi(o)&&i){const e=La(o,i);Bi(e)&&(n[r]=e)}else e[r]&&(n[r]=i)}return n}const Ia=(e,t)=>null!==e&&Vi(e)&&Object.prototype.hasOwnProperty.call(e,t);var Ra=(e,t)=>{if(!t)return!1;let n=e;for(const r of na(t)?[t]:Ui(t)){if(!Ia(n,r))return Ia(e,t);n=n[r]}return!0},qa=e=>"select-multiple"===e.type,Fa=e=>ya(e)&&e.isConnected;function Va(e){return Array.isArray(e)||Bi(e)}function Ba(e,t,n="",r=[]){for(const o in e){const i=n?`${n}.${o}`:o,a=e[o];Va(a)&&Va(oa(t,i))?Ba(a,t,i,r):r.push(i)}return r}function Ha(e){return Array.isArray(e)||Bi(e)&&!(e=>{for(const t in e)if(aa(e[t]))return!0;return!1})(e)}function Ua(e){return!(!e||!("_f"in e))}function za(e){return Array.isArray(e)?!e.some(e=>!ra(e)):!Object.keys(e).length}function Ka(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Wa(e,t={},n){for(const r in e){const o=e[r],i=n&&n[r];!Ha(o)||Array.isArray(o)&&Ua(i)?ra(o)||(t[r]=!0):(t[r]=Array.isArray(o)?[]:{},Wa(o,t[r],i),za(t[r])&&Ka(t,r))}return t}function Ya(e,t,n,r){n||(n=Wa(t,{},r));for(const o in e){const i=e[o],a=r&&r[o];!Ha(i)||Array.isArray(i)&&Ua(a)?fa(i,t[o])?Ka(n,o):n[o]=!0:(ra(t)||ua(n[o])?n[o]=Wa(i,Array.isArray(i)?[]:{},a):Ya(i,Fi(t)?{}:t[o],n[o],a),za(n[o])&&Ka(n,o))}return n}var $a=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ra(e)?e:t?""===e?NaN:e?+e:e:n&&da(e)?new Date(e):r?r(e):e;function Qa(e){const t=e.ref;return Ri(t)?t.files:ba(t)?Ca(e.refs).value:qa(t)?[...t.selectedOptions].map(({value:e})=>e):Ii(t)?ka(e.refs).value:$a(t.value,e)}var Ga=e=>ra(e)?e:wa(e)?e.source:Bi(e)?wa(e.value)?e.value.source:e.value:e;const Za="AsyncFunction";var Xa=e=>{if(!e||!e.validate)return!1;if(aa(e.validate))return e.validate.constructor.name===Za;if(Bi(e.validate))for(const t in e.validate)if(e.validate[t].constructor.name===Za)return!0;return!1};function Ja(e,t,n){const r=oa(e,n);if(r||na(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=oa(t,r),a=oa(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};if(a&&a.root&&a.root.type)return{name:`${r}.root`,error:a.root};o.pop()}return{name:n}}const es={mode:$i,reValidateMode:Yi,shouldFocusError:!0},ts="form",ns={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function rs(e={}){let t={...es,...e},n={...Ki(ns),isLoading:aa(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},o=(Bi(t.defaultValues)||Bi(t.values))&&Ki(t.defaultValues||t.values)||{},i=t.shouldUnregister?{}:Ki(o),a={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const l={},u={};let c=0,f=pa(t.mode),d=pa(t.reValidateMode);const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...p};let m={...h};const v={array:Ta(),state:Ta()};let g=0;const y=t.criteriaMode===Qi,b=(e,t)=>n=>{clearTimeout(u[e]),u[e]=setTimeout(t,n)},w=async e=>{if(!a.keepIsValid&&!t.disabled&&(h.isValid||m.isValid||e)){const e=++g;let o;t.resolver?(o=ga((await C()).errors),e===g&&O()):o=await S({fields:r,onlyCheckValid:!0,eventType:"valid"}),e===g&&o!==n.isValid&&v.state.next({isValid:o})}},O=(e,r)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((e||s.mount).forEach(e=>{e&&(r?sa(n.validatingFields,e,r):Na(n.validatingFields,e))}),v.state.next({validatingFields:n.validatingFields,isValidating:!ga(n.validatingFields)}))},x=()=>{n.dirtyFields=Ya(o,i,void 0,r)},_=(e,t)=>{sa(n.errors,e,t),n.errors={...n.errors},v.state.next({errors:n.errors})},k=(t,l,u,c)=>{const f=oa(r,t);if(f){if((e=>{const t=na(e)?[e]:Ui(e);let n=i,r=o;for(let e=0;e<t.length-1;e++){const o=t[e];if(n=Fi(n)?n:n[o],r=Fi(r)?r:r[o],null===n&&null!==r)return!0}return!1})(t)||(e=>{if(!a.actionArrayLengths.size)return!1;const t=na(e)?[e]:Ui(e);let n=i,r="",o=-1,s=0;for(let e=0;e<t.length;e++){if(Fi(n))return!1;const i=t[e];if(r=r?`${r}.${i}`:i,Array.isArray(n)&&+i>=n.length)return-1!==o&&(e!==o||+i<s);a.actionArrayLengths.has(r)&&(o=e+1,s=a.actionArrayLengths.get(r)),n=n[i]}return!1})(t))return;const r=ra(oa(i,t)),d=oa(i,t,ra(u)?oa(o,t):u);ra(d)||c&&c.defaultChecked||l?sa(i,t,l?d:Qa(f._f)):D(t,d),a.mount&&!a.action&&(w(),r&&n.isDirty&&(h.isDirty||m.isDirty)&&(A()||(n.isDirty=!1,v.state.next({...n}))),e.shouldUnregister&&r&&!ra(oa(i,t))&&ha(t,s)&&(a.watch=!0))}},E=(e,a,s,l,u)=>{let c=!1,f=!1;const d={name:e};if(!t.disabled||!0===l){if(!s||l){const t=fa(oa(o,e),a);(h.isDirty||m.isDirty)&&(f=n.isDirty,n.isDirty=d.isDirty=!t||A(),c=f!==d.isDirty),f=!!oa(n.dirtyFields,e),t!==n.isDirty?((e,t)=>{for(const n in e)n in t||delete e[n];Object.assign(e,t)})(n.dirtyFields,Ya(o,i,void 0,r)):t?Na(n.dirtyFields,e):sa(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,c=c||(h.dirtyFields||m.dirtyFields)&&f!==!t}if(s){const t=oa(n.touchedFields,e);t||(sa(n.touchedFields,e,s),d.touchedFields=n.touchedFields,c=c||(h.touchedFields||m.touchedFields)&&t!==s)}c&&u&&v.state.next(d)}return c?d:{}},C=async e=>(O(e,!0),await t.resolver(i,t.context,((e,t,n,r)=>{const o={};for(const n of e){const e=oa(t,n);e&&sa(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),j=async({name:t,eventType:r})=>{if(e.validate){const o=await e.validate({formValues:i,formState:n,name:t,eventType:r});if(Bi(o))for(const e in o){const t=o[e];t&&V(`${ts}.${e}`,{message:da(t.message)?t.message:"",type:t.type||Xi})}else da(o)||!o?V(ts,{message:o||"",type:Xi}):F(ts);return o}return!0},S=async({fields:r,onlyCheckValid:o,name:a,eventType:l,context:u={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(u.runRootValidation=!0,!await j({name:a,eventType:l})&&(u.valid=!1,o)))return u.valid;for(const a in r){const c=r[a];if(c){const{_f:r,...f}=c;if(r){const a=s.array.has(r.name),l=c._f&&Xa(c._f),f=h.validatingFields||h.isValidating||m.validatingFields||m.isValidating;l&&f&&O([r.name],!0);const d=await Aa(c,s.disabled,i,y,t.shouldUseNativeValidation&&!o,a);if(l&&f&&O([r.name]),d[r.name]&&(u.valid=!1,o))break;if(!o&&(oa(d,r.name)?a?va(n.errors,d,r.name):sa(n.errors,r.name,d[r.name]):Na(n.errors,r.name)),e.shouldUseNativeValidation&&d[r.name])break}!ga(f)&&await S({context:u,onlyCheckValid:o,fields:f,name:a,eventType:l})}}return u.valid},A=(e,t)=>(e&&t&&sa(i,e,t),!fa(a.mount?i:o,o)),P=(e,t,n)=>((e,t,n,r,o)=>da(e)?(r&&t.watch.add(e),oa(n,e,o)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),oa(n,e,oa(o,e)))):(r&&(t.watchAll=!0),n))(e,s,{...a.mount?i:ra(t)||da(e)?o:t},n,t),D=(e,t,n={},o=!1,a=!1,s=!1)=>{const l=oa(r,e);let u=t;if(l){const n=l._f;n&&(!n.disabled&&sa(i,e,$a(t,n)),u=ya(n.ref)&&Fi(t)?"":t,qa(n.ref)?[...n.ref.options].forEach(e=>e.selected=u.includes(e.value)):n.refs?Ii(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(u)?e.checked=!!u.find(t=>t===e.value):e.checked=u===e.value||!!u)}):n.refs.forEach(e=>e.checked=e.value===u):Ri(n.ref)?n.ref.value="":(n.ref.value=u,n.ref.type||a||s||v.state.next({name:e,values:o?i:Ki(i)})))}(n.shouldDirty||n.shouldTouch)&&E(e,u,n.shouldTouch,n.shouldDirty,!a),n.shouldValidate&&R(e,{delayError:n.delayError})},N=(e,t,n,o=!1,a=!1,l=!1)=>{s.array.has(e)&&v.array.next({name:e,values:o?i:Ki(i)});for(const i in t){if(!t.hasOwnProperty(i))continue;const u=t[i],c=e+"."+i,f=oa(r,c);(s.array.has(e)||Bi(u)||f&&!f._f)&&!qi(u)?N(c,u,n,o,a,l):D(c,u,n,o,a,l)}},M=(e,t,o,l,u=!1)=>{const c=oa(r,e),f=s.array.has(e),d=l?t:Ki(t),p=fa(oa(i,e),d);if(p||sa(i,e,d),f)v.array.next({name:e,values:l?i:Ki(i)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&o.shouldDirty&&(x(),u||v.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:A(e,d)}));else{const t=Array.isArray(d)&&!d.length||ga(d),n=!p&&!u;!c||c._f||Fi(d)||t?D(e,d,o,l,u,n):N(e,d,o,l,u,n)}if(!p&&!u){const t=ha(e,s),r=l?i:Ki(i);if(v.state.next({...t&&n,name:a.mount||t?e:void 0,values:r}),!f)for(const t of((e,t)=>{const n=t.split("."),r=[];let o=n[0];for(let t=1;t<n.length;o+="."+n[t++])!isNaN(+n[t])&&e.has(o)&&r.push(`${o}.${n[t]}`);return r})(s.array,e))v.state.next({name:t,values:r})}},T=(e,t,n={})=>M(e,t,n,!1),L=async o=>{a.mount=!0;const p=o.target;let g=p.name,x=!0;const k=oa(r,g),A=e=>{x=Number.isNaN(e)||qi(e)&&isNaN(e.getTime())||fa(e,oa(i,g,e))};if(k){let a,P;const D=p.type?Qa(k._f):(e=>Bi(e)&&e.target?Ii(e.target)?e.target.checked:Ri(e.target)?e.target.files:e.target.value:e)(o),N="blur"===o.type||"focusout"===o.type,M=!((e=>e.mount&&(e.required||!ra(e.required)&&!1!==e.required||!ra(e.min)||!ra(e.max)||!ra(e.maxLength)||!ra(e.minLength)||e.pattern||e.validate))(k._f)||e.validate||t.resolver||oa(n.errors,g)||k._f.deps),T=M||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(N,oa(n.touchedFields,g),n.isSubmitted,d,f),L=ha(g,s,N);if(sa(i,g,Ki(D)),N){if(!p||!p.readOnly){k._f.onBlur&&k._f.onBlur(o);const e=l[g];e&&e(0)}}else k._f.onChange&&k._f.onChange(o);const I=E(g,D,N),q=!ga(I)||L;if(!N&&v.state.next({name:g,type:o.type,...c?{values:Ki(i)}:{}}),T)return M&&n.isValid||!h.isValid&&!m.isValid||("onBlur"===t.mode?N&&w():N||w()),q&&v.state.next({name:g,...L?{}:I});if(!t.resolver&&e.validate&&await j({name:g,eventType:o.type}),!N&&L&&v.state.next({...n}),t.resolver){const{errors:e}=await C([g]);if(O([g]),A(D),!x)return void(!ga(I)&&v.state.next(I));const t=Ja(n.errors,r,g),o=Ja(e,r,t.name||g);a=o.error,g=o.name,P=ga(e)}else O([g],!0),a=(await Aa(k,s.disabled,i,y,t.shouldUseNativeValidation))[g],O([g]),A(D),x&&(a?P=!1:(h.isValid||m.isValid)&&(P=await S({fields:r,onlyCheckValid:!0,name:g,eventType:o.type})));x&&(k._f.deps&&(!Array.isArray(k._f.deps)||k._f.deps.length>0)&&R(k._f.deps),((e,r,o,i)=>{const a=oa(n.errors,e),s=(h.isValid||m.isValid)&&ia(r)&&n.isValid!==r;if(t.delayError&&o?(l[e]=b(e,()=>_(e,o)),l[e](t.delayError)):(clearTimeout(u[e]),delete l[e],o?sa(n.errors,e,o):Na(n.errors,e),n.errors={...n.errors}),(o?!fa(a,o):a)||!ga(i)||s){const t={...i,...s&&ia(r)?{isValid:r}:{},errors:n.errors,name:e};v.state.next(t)}})(g,P,a,I))}},I=(e,t)=>{if(oa(n.errors,t)&&e.focus)return e.focus(),1},R=async(e,o={})=>{let i,a;const c=Pa(e);if(t.resolver){const t=await(async e=>{const{errors:t}=await C(e);if(O(e),e){for(const r of e){const e=oa(t,r);e?s.array.has(r)&&Bi(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?va(n.errors,{[r]:e},r):sa(n.errors,r,e):Na(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t})(ra(e)?e:c);i=ga(t),a=e?!c.some(e=>oa(t,e)):i}else e?(a=(await Promise.all(c.map(async e=>{const t=oa(r,e);return await S({fields:t&&t._f?{[e]:t}:t,eventType:Wi})}))).every(Boolean),(a||n.isValid)&&w()):a=i=await S({fields:r,name:e,eventType:Wi});if(o.delayError&&t.delayError&&da(e)){const r=oa(n.errors,e);r?(Na(n.errors,e),l[e]=b(e,()=>_(e,r)),l[e](t.delayError)):(clearTimeout(u[e]),delete l[e])}if(o.shouldTouch)for(const t of e?c:s.mount)!s.array.has(t)&&sa(n.touchedFields,t,!0);return v.state.next({...!da(e)||(h.isValid||m.isValid)&&i!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:i}:{},...o.shouldTouch&&(h.touchedFields||m.touchedFields)?{touchedFields:n.touchedFields}:{},errors:n.errors}),o.shouldFocus&&!a&&ma(r,I,e?c:s.mount),a},q=(e,t)=>{const r=t||n,o=oa(r.errors,e);return{invalid:!!o,isDirty:!!oa(r.dirtyFields,e),error:o,isValidating:!!oa(n.validatingFields,e),isTouched:!!oa(r.touchedFields,e)}},F=e=>{const t=e?Pa(e):void 0;null==t||t.forEach(e=>Na(n.errors,e)),t?t.forEach(e=>{v.state.next({name:e,errors:n.errors})}):(n.errors={},v.state.next({errors:n.errors}))},V=(e,t,o)=>{const i=(oa(r,e,{_f:{}})._f||{}).ref,a=oa(n.errors,e)||{},{ref:s,message:l,type:u,...c}=a;sa(n.errors,e,{...c,...t,ref:i}),v.state.next({name:e,errors:n.errors,isValid:!1}),o&&o.shouldFocus&&i&&i.focus&&i.focus()},B=e=>{var t;const r=!!(null===(t=e.formState)||void 0===t?void 0:t.values);r&&c++;const{unsubscribe:a}=v.state.subscribe({next:t=>{if(r=e.name,a=t.name,s=e.exact,(!r||!a||r===a||Pa(r).some(e=>e&&(s?e===a||e.startsWith(a+"."):e.startsWith(a)||a.startsWith(e))))&&((e,t,n,r)=>{n(e);const o=Object.keys(e).filter(e=>"name"!==e);return!o.length||r&&o.length>=Object.keys(t).length||o.find(e=>t[e]===(!r||Qi))})(t,e.formState||h,Q,e.reRenderRoot)){const r={...i};e.callback({values:r,...n,...t,defaultValues:o})}var r,a,s}});if(!r)return a;let s=!1;return()=>{s||(s=!0,c--,a())}},H=(e,a={})=>{for(const l of e?Pa(e):s.mount)s.mount.delete(l),s.array.delete(l),a.keepValue||(Na(r,l),Na(i,l)),!a.keepError&&Na(n.errors,l),!a.keepDirty&&Na(n.dirtyFields,l),!a.keepTouched&&Na(n.touchedFields,l),!a.keepIsValidating&&Na(n.validatingFields,l),!t.shouldUnregister&&!a.keepDefaultValue&&Na(o,l);c&&v.state.next({values:Ki(i)}),v.state.next({...n,...a.keepDirty?{}:{isDirty:A()}}),!a.keepIsValid&&w()},U=({disabled:e,name:t})=>{if(ia(e)&&a.mount||e||s.disabled.has(t)){const n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&a.mount&&!a.action&&w()}},z=(e,n={})=>{let i=oa(r,e);const l=ia(n.disabled)||ia(t.disabled),u=!s.registerName.has(e)&&i&&i._f&&!i._f.mount;return sa(r,e,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),i&&!u?U({disabled:ia(n.disabled)?n.disabled:t.disabled,name:e}):k(e,!0,n.value),{...l?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Ga(n.min),max:Ga(n.max),minLength:Ga(n.minLength),maxLength:Ga(n.maxLength),pattern:Ga(n.pattern)}:{},name:e,onChange:L,onBlur:L,ref:l=>{if(l){s.registerName.add(e),z(e,n),s.registerName.delete(e),i=oa(r,e);const t=ra(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,a=(e=>ba(e)||Ii(e))(t),u=i._f.refs||[];if(a?u.find(e=>e===t):t===i._f.ref)return;const c={...i._f};a?(c.refs=[...u.filter(Fa),t,...Array.isArray(oa(o,e))?[{}]:[]],c.ref={type:t.type,name:e}):(c.ref=t,delete c.refs),sa(r,e,{_f:c}),k(e,!1,void 0,t)}else i=oa(r,e,{}),i._f&&(i._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&(!((e,t)=>t.split(".").some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join("."))))(s.array,e)||!a.action)&&s.unMount.add(e)}}},K=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&ma(r,I,s.mount),W=(e,o)=>async a=>{let l,u;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let c=Ki(i);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:e,values:t}=await C();O(),n.errors=e,c=Ki(t)}else await S({fields:r,eventType:"submit"});if(s.disabled.size)for(const e of s.disabled)Na(c,e);if(Na(n.errors,Ji),ga(n.errors)){v.state.next({errors:{}});try{l=await e(c,a)}catch(e){u=e}}else o&&await o({...n.errors},a),K(),setTimeout(K);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ga(n.errors)&&!u,submitCount:n.submitCount+1,errors:n.errors}),u)throw u;return l},Y=(e,l={})=>{const u=e?Ki(e):o,c=Ki(u),f=ga(e),d=c,p=r;if(l.keepDefaultValues||(o=u),!l.keepValues){if(l.keepDirtyValues){const e=new Set([...s.mount,...Ba(Ya(o,i,void 0,p),n.dirtyFields)]);for(const t of e){const e=oa(n.dirtyFields,t),r=oa(i,t),o=oa(d,t);e&&!ra(r)?sa(d,t,r):e||ra(o)||T(t,o)}}else{if(zi&&ra(e))for(const e of s.mount){const t=oa(r,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(ya(e)){const t=e.closest("form");if(t){t.reset();break}}}}if(l.keepFieldsRef)for(const e of s.mount)T(e,oa(d,e));else r={}}if(t.shouldUnregister){if(i=l.keepDefaultValues?Ki(o):{},l.keepFieldsRef)for(const e of s.mount)sa(i,e,oa(d,e))}else i=Ki(d);v.array.next({values:{...d}}),v.state.next({name:void 0,type:void 0,values:{...d}})}s={mount:l.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!t.shouldUnregister&&!ga(d),a.watch=!!t.shouldUnregister,a.keepIsValid=!!l.keepIsValid,a.action=!1,a.actionArrayLengths.clear(),l.keepErrors||(n.errors={}),v.state.next({submitCount:l.keepSubmitCount?n.submitCount:0,isDirty:!f&&(l.keepDirty?n.isDirty:l.keepValues?A():!(!l.keepDefaultValues||fa(e,o))),isSubmitted:!!l.keepIsSubmitted&&n.isSubmitted,dirtyFields:f?{}:l.keepDirtyValues?l.keepDefaultValues&&i?Ya(o,i,void 0,p):n.dirtyFields:l.keepDefaultValues&&e?Ya(o,e,void 0,p):l.keepDirty?n.dirtyFields:{},touchedFields:l.keepTouched?n.touchedFields:{},errors:l.keepErrors?n.errors:{},isSubmitSuccessful:!!l.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:o})},$=(e,n)=>Y(aa(e)?e(i):e,{...t.resetOptions,...n}),Q=e=>{const{name:t,type:r,values:o,...i}=e;n={...n,...i}};v.state.subscribe({next:Q});const G={control:{register:z,unregister:H,getFieldState:q,handleSubmit:W,setError:V,_subscribe:B,_runSchema:C,_updateIsValidating:O,_focusError:K,_getWatch:P,_getDirty:A,_setValid:w,_setFieldArray:(e,o=[],s,l,u=!0,c=!0)=>{if(l&&s&&!t.disabled){a.action=!0;const t=oa(r,e);if(a.actionArrayLengths.has(e)||a.actionArrayLengths.set(e,Array.isArray(t)?t.length:0),c&&Array.isArray(t)){const n=s(t,l.argA,l.argB);u&&sa(r,e,n)}const i=oa(n.errors,e);if(c&&Array.isArray(i)){const t=i.root,r=s(i,l.argA,l.argB)||i;t&&(r.root=t),u&&sa(n.errors,e,r),((e,t)=>{const n=oa(e,t);!Da(n).length&&!(null==n?void 0:n.root)&&Na(e,t)})(n.errors,e)}const f=oa(n.touchedFields,e);if((h.touchedFields||m.touchedFields)&&c&&Array.isArray(f)){const t=s(f,l.argA,l.argB);u&&sa(n.touchedFields,e,t)}(h.dirtyFields||m.dirtyFields)&&x(),v.state.next({name:e,isDirty:A(e,o),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else sa(i,e,o)},_setDisabledField:U,_setErrors:e=>{n.errors=e,v.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>Da(oa(a.mount?i:o,e,t.shouldUnregister?oa(o,e,[]):[])),_reset:Y,_resetDefaultValues:()=>aa(t.defaultValues)&&t.defaultValues().then(e=>{$(e,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of s.unMount){const t=oa(r,e);t&&(t._f.refs?t._f.refs.every(e=>!Fa(e)):!Fa(t._f.ref))&&H(e)}s.unMount=new Set},_disableForm:e=>{ia(e)&&(v.state.next({disabled:e}),ma(r,(t,n)=>{const o=oa(r,n);o&&(t.disabled=o._f.disabled||e,Array.isArray(o._f.refs)&&o._f.refs.forEach(t=>{t.disabled=o._f.disabled||e}))},0,!1))},_subjects:v,_proxyFormState:h,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(e){a=e},get _defaultValues(){return o},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},f=pa(t.mode),d=pa(t.reValidateMode)}},subscribe:e=>(a.mount=!0,m={...m,...e.formState},B({...e,formState:{...p,...e.formState}})),trigger:R,register:z,handleSubmit:W,watch:(e,t)=>{if(aa(e)){c++;const{unsubscribe:n}=v.state.subscribe({next:n=>"values"in n&&e(n.values||P(void 0,t),n)});let r=!1;return{unsubscribe:()=>{r||(r=!0,c--,n())}}}return P(e,t,!0)},setValue:T,setValues:(e,t={})=>{const r=aa(e)?e(i):e;if(!fa(i,r)){i={...i,...r};for(const e of s.mount)Ra(r,e)&&M(e,oa(r,e),t,!0,!0);v.state.next({...n,name:void 0,type:void 0,...c?{values:i}:{}}),t.shouldValidate&&w()}},getValues:(e,t)=>{let r={...a.mount?i:o};return t&&(r=La(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),ra(e)?r:da(e)?oa(r,e):e.map(e=>oa(r,e))},getErrors:e=>ra(e)?{...n.errors}:da(e)?oa(n.errors,e):e.map(e=>oa(n.errors,e)),reset:$,resetField:(e,t={})=>{oa(r,e)&&(ra(t.defaultValue)?T(e,Ki(oa(o,e))):(T(e,t.defaultValue),sa(o,e,Ki(t.defaultValue))),t.keepTouched||Na(n.touchedFields,e),t.keepDirty||(Na(n.dirtyFields,e),n.isDirty=t.defaultValue?A(e,Ki(oa(o,e))):A()),t.keepError||(Na(n.errors,e),w()),v.state.next({...n}))},resetDefaultValues:(e,t={})=>{if(o=Ki(e),!t.keepDirty){const e=Ya(o,i,void 0,r);n.dirtyFields=e,n.isDirty=!ga(e)}t.keepIsValid||w(),v.state.next({...n,defaultValues:o})},clearErrors:F,unregister:H,setError:V,setFocus:(e,t={})=>{const n=oa(r,e),o=n&&n._f;if(o){const e=o.refs?o.refs[0]:o.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&aa(e.select)&&e.select()})}},getFieldState:q};return{...G,formControl:G}}var os=function(e){var t=e.as,n=e.errors,r=e.name,o=e.message,i=e.render,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["as","errors","name","message","render"]),s=Y.useContext(Ma),l=oa(n||s.formState.errors,r);if(!l)return null;var u=l.message,c=l.types,f=Object.assign({},a,{children:u||o});return Y.isValidElement(t)?Y.cloneElement(t,f):i?i({message:u||o,messages:c}):Y.createElement(t||Y.Fragment,f)};function is(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 as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ss=function(e){return function(t){var n=function(e={}){const t=Y.useRef(void 0),n=Y.useRef(void 0),r=Y.useRef(e.formControl),[o,i]=Y.useState(()=>({...Ki(ns),isLoading:aa(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:aa(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!aa(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:n,...r}=rs(e);t.current={...r,formState:o}}const a=t.current.control;a._options=e;const{resyncIfNeeded:s,snapshot:l}=function(e){const t=Y.useRef(!1),n=Y.useRef(!1),r=Y.useRef(void 0),o=Y.useRef(0);return o.current++,!n.current&&e&&(n.current=!0,r.current=Ki(e())),{resyncIfNeeded:Y.useCallback((e,i,a)=>{if(e&&(t.current||n.current&&o.current>1)){const e=i();fa(r.current,e)||a(e)}t.current=!0},[]),snapshot:Y.useCallback((e,t)=>{e&&(r.current=Ki(t()))},[])}}();return la(()=>{const e=()=>({...a._formState,defaultValues:a._defaultValues});s(!0,e,i);const t=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState,defaultValues:a._defaultValues}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,()=>{t(),l(!0,e)}},[a,s,l]),Y.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),Y.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),Y.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),Y.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),Y.useEffect(()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==o.isDirty&&a._subjects.state.next({isDirty:e})}},[a,o.isDirty]),Y.useEffect(()=>{var t;e.values&&!fa(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),(null===(t=a._options.resetOptions)||void 0===t?void 0:t.keepIsValid)||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),Y.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Y.useMemo(()=>((e,t,n,r=!0)=>{const o={};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Qi&&(t._proxyFormState[o]=!r||Qi),n&&(n[o]=!0),e[o]}});return o})(o,a),[a,o]),t.current}(),r=n.formState.errors,i=as(as({},n),{},{errors:r,ErrorMessage:os});return(0,o.createElement)(e,as({validation:i},t))}};function ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var us=function(e,t){var n,o=t,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ls(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)?ls(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var _n=0,r=function(){};return{s:r,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(e);try{for(i.s();!(n=i.n()).done;){var a=r(n.value,2),s=a[0],l=a[1];o=o.replaceAll(s,l)}}catch(e){i.e(e)}finally{i.f()}return o},cs=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},fs=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ds=function(e,t){return!(!e||!t)&&e.length===t.length&&e.sort().map(function(e,n){return t.sort()[n]===e}).every(function(e){return e})},ps=function(e,t,n,r){var o=e.trim().split(/\s+/).length;if(0!==e.trim().length)return!!(n?o>=t&&o<=n:o>=t)||r},hs=function(e,t,n){if(t&&0!==e.trim().length)return!!new RegExp(t).test(e)||n};function ms(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 vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gs(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}var ys=function(e){var t=e.mfRefsRef,n=e.MfMathCalcRef,r=e.setValue;return{handleCalculations:function(e,o){var i=e.target.calc_behavior,a=t.current.mainForm,l=(null==a?void 0:a.querySelectorAll(".mf-input-calculation"))||[];!function(e){for(var t in e)Array.isArray(e[t])&&(e[t]=e[t].map(function(e){return isNaN(e)?e:Number(e)}))}(o),l.forEach(function(e){var t=function(e){var t=parseInt(e.dataset.fraction)||2;return{equation:String(e.dataset.equation||""),useComma:"yes"===String(e.dataset.comma),roundToInteger:"yes"===String(e.dataset.fractionDisable),fractionDigits:t<0||t>99?2:t,fractionDigitsMin:parseInt(e.dataset.fractionMin)||0}}(e),a=function(e,t){var n=Array.from(new Set(e.match(/[A-Za-z_][A-Za-z0-9_\-]*/g)||[])),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t);return n.forEach(function(e){var t;r[e]=null==(t=r[e])||""===t?0:Array.isArray(t)?0===t.length?0:t.reduce(function(e,t){return e+(isNaN(t)||""===t?0:Number(t))},0):"string"==typeof t?isNaN(t)||""===t?0:Number(t):isNaN(t)||""===t?t:Number(t)}),r}(t.equation,o),l=n.current.parse(t.equation,a,i)||0;"NaN"!==l&&(t.roundToInteger&&(l=l%1>=.5?Math.ceil(l):Math.floor(l)),o[e.name]=function(e,t){var n=t.useComma,r=t.fractionDigits,o=t.fractionDigitsMin;if(n)return e.toLocaleString("en-US",{minimumFractionDigits:o,maximumFractionDigits:r});var i=e.toString().split(".");return(o>0||r>0)&&(1===i.length?o>0&&i.push("0".repeat(o)):i[1]=i[1].slice(0,r).padEnd(o,"0")),i.join(".")}(l,t),r(e.name,o[e.name]))}),function(e){var t=function(t){Array.isArray(e[t])&&e[t].forEach(function(n,r){"number"==typeof n&&(e[t][r]=n+"")})};for(var n in e)t(n)}(o)}}};function bs(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 ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Os(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 xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Os(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Os(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ks(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)?ks(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var _n=0,r=function(){};return{s:r,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function ks(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Es(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 Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function js(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 Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var As=function(e){var t=e.props,n=e.stateRef,r=e.mfRefsRef;return{handleConditionals:function(e){var o=n.current,i=o.formData,a=o.defaultData,s=t.widgets,l=t.conditionalRefs,u=t.validation,c=u.getValues,f=u.setValue,d=u.register,p=r.current.mainForm,h=function(e){return p?jQuery('[name="'.concat(e,'"]'),p):jQuery('[name="'.concat(e,'"]'))},m=function(e){return h(e).first().closest(".elementor-element[mf-condition-hidden]").attr("mf-condition-hidden")},v=function(e){var t,n;return null!==(t=null!==(n=i[e])&&void 0!==n?n:a[e])&&void 0!==t?t:""},g=function(e){try{var t=h(e);if(!t.length)return v(e);var n=t.get(0);if("select"===(n.tagName||"").toLowerCase()&&n.multiple)return function(e){return e.find("option:selected").map(function(){return this.value}).get()}(t);if(n.classList.contains("mf-input-switch-box")){var r,o,i=n.nextElementSibling;return n.checked?null!==(r=null==i?void 0:i.getAttribute("data-enable"))&&void 0!==r?r:n.value:null!==(o=null==i?void 0:i.getAttribute("data-disable"))&&void 0!==o?o:""}var a=(n.type||"").toLowerCase();return"checkbox"===a?function(e){return e.filter(":checked").map(function(){return this.value}).get()}(t):"radio"===a?function(e){var t=e.filter(":checked").first();return t.length?t.val():""}(t):t.first().val()}catch(t){return v(e)}},y=function(e){for(var t in s){var n,r;if((null===(n=s[t])||void 0===n||null===(n=n.settings)||void 0===n?void 0:n.mf_input_name)===e)return null===(r=s[t])||void 0===r||null===(r=r.el)||void 0===r?void 0:r.getAttribute("data-widget_type")}};l.forEach(function(e){var t=s[e];t.list=t.settings.mf_conditional_logic_form_list,t.operator=t.settings.mf_conditional_logic_form_and_or_operators,t.action=t.settings.mf_conditional_logic_form_action,t.validatedValues=[],t.isValidated=!1,t.list.forEach(function(e){var n=function(e){e.name=e.mf_conditional_logic_form_if;var t=m(e.name);e.value="true"===t?"":g(e.name);var n=function(e){var t="string"==typeof e&&e.match(/^\[(.+?)\]$/);if(!t)return{value:e,isDynamic:!1};var n=t[1];return{value:"true"===m(n)?"":g(n),isDynamic:!0}}(e.mf_conditional_logic_form_value),r=n.value,o=n.isDynamic;if(e.match=isNaN(r)||""===r?r:+r,e.operator=cs(e.mf_conditional_logic_form_comparison_operators),Array.isArray(e.value)&&-1!==e.value.indexOf(e.match)&&(e.value=e.value[e.value.indexOf(e.match)]),"mf-date.default"===y(e.name)&&Date.parse(e.value)&&Date.parse(e.match)&&(e.value=Date.parse(e.value),e.match=Date.parse(e.match)),"mf-switch.default"===y(e.name)){var i=h(e.name).get(0),a=!(null==i||!i.checked);"empty"===e.operator||"not-empty"===e.operator?e.value=a?e.value:"":"string"!=typeof e.value||"string"!=typeof e.match||"=="!==e.operator&&"!="!==e.operator||e.value.toLowerCase()!==e.match.toLowerCase()||(e.match=e.value)}var s=function(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t;case"<":return e<t;case"<=":return e<=t;case">":return e>t;case">=":return e>=t;case"==":return e==t;case"!=":return e!=t;case"not-empty":return void 0!==e&&String(e).length>0;case"empty":return void 0!==e&&0==String(e).length;default:return!1}}(e.value,e.match,e.operator);if(o&&("=="===e.operator||"!="===e.operator)){var l=void 0===e.value||null===e.value||0===String(e.value).length,u=void 0===e.match||null===e.match||0===String(e.match).length;"=="===e.operator&&(l||u)?s=!1:"!="===e.operator&&(l||u)&&(s=!0)}return{passed:s,refHiddenState:t}}(e),r=n.passed,o=n.refHiddenState;t.validatedValues.push(r),t.parentCondition=o}),t.isValidated=t.validatedValues.some(function(e){return!0===e}),"and"===t.operator&&(t.isValidated=t.validatedValues.every(function(e){return!0===e})),("hide"===t.action?t.isValidated:!t.isValidated)?function(e){var t,n,r=e.settings.mf_input_name;e.el.setAttribute("mf-condition-hidden",!0),d(r,{required:!1}),e.el.closest(".elementor-inner-section")||e.el.closest(".e-container")||e.el.closest(".e-con")||Array.isArray(null===(t=Object.values(e.el.closest(".elementor-widget-wrap"))[1])||void 0===t?void 0:t.children)||e.el.closest(".elementor-top-section").classList.add("mf-condition--hidden"),e.el.closest(".e-container")&&(null===(n=Object.values(e.el.closest(".e-container"))[1])||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length)<=2&&e.el.closest(".e-container").classList.add("mf-condition--hidden"),e.el.classList.add("mf-condition--hidden"),Object.values(e.el.classList).indexOf("elementor-widget-mf-select")>-1&&f(r,"noval"),Object.values(e.el.classList).indexOf("elementor-widget-mf-multi-select")>-1&&f(r,"noval")}(t):function(e){var t,n=e.settings.mf_input_name;e.el.setAttribute("mf-condition-hidden",!1),e.el.classList.remove("mf-condition--hidden"),null===(t=e.el.closest(".e-container, .e-con, .elementor-top-section"))||void 0===t||t.classList.remove("mf-condition--hidden"),void 0!==e.parentCondition&&"or"!==e.operator&&e.el.setAttribute("mf-condition-hidden",e.parentCondition),"noval"===c(n)&&f(n,void 0);var r=h(n).get(0),o="true"===e.el.getAttribute("mf-condition-hidden");r&&!o&&void 0!==r.__mfRequiredRule&&d(n,{required:r.__mfRequiredRule})}(t)})}}};function Ps(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 Ds(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ts=function(e,t){var n=e.props,o=e.stateRef,a=e.setState,s=e.mfRefsRef,l=e.formRef,u=e.isPaymentCompleted,c=e.formSubmitResponseRef,f=e.setValue,d=e.proxyThisRef,p=t.resetReCAPTCHA,h=function(){var e,t=s.current.mainForm,n=new FormData(t),o={},i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ms(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)?Ms(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var _n=0,r=function(){};return{s:r,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(n);try{for(i.s();!(e=i.n()).done;){var l=r(e.value,2),u=l[0],c=l[1];o[u]=c}}catch(e){i.e(e)}finally{i.f()}return a(function(e){return{defaultData:Ns(Ns({},e.defaultData),o)}}),o},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>5||null==e)return e;if(Array.isArray(e))return e;if("string"!=typeof e)return e;var r=e.match(/^\[([^\]]+)\]$/);if(!r)return e;var o=r[1];if(!Object.prototype.hasOwnProperty.call(t,o))return"";var i=t[o];return Array.isArray(i)?i.map(function(e){return String(e)}).join(","):null==i?"":"string"==typeof i?m(i,t,n+1):String(i)},v=function(e){var t=Ns({},e);return Object.keys(t).forEach(function(e){t[e]=m(t[e],t)}),t},g=function(e){var t=o.current,r=t.answers,i=t.formData;return"true"===n.quizSummery&&Object.keys(r).length&&e.data.message?"".concat(e.data.message," You have got ").concat(i["quiz-marks"]," Marks. Right Answer ").concat(null==i?void 0:i["right-answer"].length,".\n\t\t\t\tWrong Answer ").concat(null==i?void 0:i["wrong-answer"].length,"."):e.data.message?e.data.message:""},y=function(e){var t,r=e.data.payment_data;if(r.keys&&""!==r.keys)return(t=StripeCheckout.configure({key:r.keys,image:r.image_url,locale:"auto",token:function(t){t.id?(r.stripe_token=t.id,fetch(e.data.ajax_stripe+"&token="+t.id,{headers:{"X-WP-Nonce":n.wpNonce},data:{sandbox:r.sandbox}}).then(function(e){return e.json()}).then(function(e){e.status?e.redirect_url?window.location.href=e.redirect_url:"success"===e.status?a({success:"Payment Successful!",errors:[],form_res:1},function(){jQuery(s.current.mainForm).find(".metform-submit-btn").attr("disabled",!1);var e=n.message_duration||2e3;setTimeout(function(){a({success:"",errors:[],form_res:0})},e)}):a({success:"",errors:[e.message],form_res:1},function(){jQuery(s.current.mainForm).find(".metform-submit-btn").attr("disabled",!1)}):(alert(e.message),jQuery(s.current.mainForm).find(".metform-submit-btn").attr("disabled",!1))}).catch(function(e){jQuery(s.current.mainForm).find(".metform-submit-btn").attr("disabled",!1),alert("Payment processing failed: "+e.message)})):alert("Sorry!! Payment token invalid")}})).open({name:String(r.name_post),description:" Form No.: "+String(r.description),amount:100*Number(r.amount),currency:r.currency_code}),window.addEventListener("popstate",function(){t.close()}),{type:"error",redirect_url:"",message:"Payment Unsuccessful!"};alert("Please set your Stripe Keys in form settings.")};return{handleFormSubmit:function(e,t){var r;if(t.preventDefault(),a(function(e){return Ns(Ns({},e),{},{errors:[]})}),!function(){try{var e,t,n,r,o=null===(e=s.current.mainForm)||void 0===e||null===(t=e.querySelector)||void 0===t?void 0:t.call(e,".metform-submit-btn"),i=null==o||null===(n=o.closest)||void 0===n?void 0:n.call(o,".elementor-element[mf-condition-hidden], .mf-condition--hidden");return"true"===(null==i||null===(r=i.getAttribute)||void 0===r?void 0:r.call(i,"mf-condition-hidden"))||null===(null==o?void 0:o.offsetParent)}catch(e){return!1}}()){var m,b=h(),w=o.current,O=w.formData,x=w.defaultData,_=n.action,k=n.wpNonce,E=n.validation,C=n.widgets,j=v(Ns(Ns(Ns({},x),b),O)),S=s.current.mainForm.closest(".mf-form-wrapper"),A="1"===(null==S||null===(r=S.dataset)||void 0===r?void 0:r.paymentSubmitBefore),P=window.MetFormPaymentHold&&"function"==typeof window.MetFormPaymentHold.handlePaymentFirstSubmit,D=(null==(m=s.current.mainForm.querySelector('input[name*="mf-payment-method"]:checked, input.mf-payment-method-input:checked'))?void 0:m.value)||null,N="paypal"===D||"stripe"===D;if(A&&P&&!u.current&&N)window.MetFormPaymentHold.handlePaymentFirstSubmit.call(d.current,e,t,j);else{jQuery(s.current.mainForm.parentElement).trigger("metform/before_submit",j),jQuery(s.current.mainForm).find(".metform-submit-btn").attr("disabled",!0),function(e,t){try{for(var n=t&&"object"===i(t)?t:{},r=function(){var t,r,i=a[o],s=n[i]||{},l=s.settings||{};if(!(((null===(t=s.el)||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"data-widget_type"))||"").toString().startsWith("mf-range")&&l.mf_input_name.length>0))return 0;var u=l.mf_input_name||"",c=l.mf_input_range_prefix_text||"",f=l.mf_input_range_suffix_text||"",d=void 0!==e[u]&&null!==e[u]&&""!==e[u];if(!c&&!f||!d)return 0;var p=function(e){return"".concat(c?c+" ":"").concat(e).concat(f?" "+f:"").trim()};e[u]=Array.isArray(e[u])?e[u].map(function(e){return p(e)}).join(","):p(e[u])},o=0,a=Object.keys(n);o<a.length;o++)r()}catch(e){console.error("Error processing widgets for range prefix/suffix:",e)}}(j,C);var M=function(e){var t=new FormData;for(var n in e){var r=e[n],o="object"===i(r)?r[0]:void 0;if(Blob&&o instanceof Blob)for(var a=0;a<r.length;a++)t.append(n+"[]",r[a]);else t.append(n,r)}return t}(j),T=function(e){var t=[];for(var n in e){var r=n in e?e[n]:{},o="el"in r&&r.el.getAttribute("mf-condition-hidden"),i="settings"in r&&"mf_input_name"in r.settings?r.settings.mf_input_name:"";"true"===o&&t.push(i)}return t}(C);T.length>0&&M.append("hidden-fields",JSON.stringify(T));var L=1e3*("mf_success_duration"in n.widgetSettings?n.widgetSettings.mf_success_duration:5);fetch(_,{method:"POST",headers:{"X-WP-Nonce":k},body:M}).then(function(e){return e.json()}).then(function(e){c.current=e,e.status?function(e,t,r,i){var u=new CustomEvent("mf_submit_success",{form_data:r,bubbles:!0,cancelable:!0,composed:!1});document.dispatchEvent(u),a({success:g(e),form_res:1},function(){p(),n.validation.clearErrors("g-recaptcha-response")}),e.status&&e.data.hide_form&&(l.current.setAttribute("class","mf-close-this-form"),setTimeout(function(){l.current.innerHTML=""},600)),o.current.formData={},a({formData:{}}),function(e){var t=e||s.current.mainForm||l.current;if(t){if("function"==typeof t.reset)try{t.reset()}catch(e){}jQuery(t).trigger("reset"),jQuery(t).find('input[type="file"], .mf-input-file-upload').val(""),jQuery(t).find(".m-signature-pad .btn.clear").trigger("click"),jQuery(t).find(".mf-repeater-select-field").val(null).trigger("change"),0!==jQuery(t).find(".mf-repater-range-input").length&&jQuery(t).find(".mf-repater-range-input").asRange("set","0"),0!==jQuery(t).find(".g-recaptcha-response-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(jQuery(t).find("#recaptcha_site_key_v3")[0].dataset.sitekey,{action:"submit"}).then(function(e){jQuery(t).find(".g-recaptcha-response-v3").val(e)})})}}(t.target),a(function(e){return{resetKey:e.resetKey+1,mobileWidget:{}}}),a(function(e){return Ns(Ns({},e),{},{defaultData:{form_nonce:e.defaultData.form_nonce}})}),n.validation.reset(),setTimeout(function(){a({errors:[],form_res:0})},i)}(e,t,j,L):function(e){a({errors:ee(e.error),form_res:1},function(){p(),f("mf-captcha-challenge","",!0),n.validation.clearErrors("g-recaptcha-response")})}(e),e.data.store&&"stripe"===e.data.store["mf-payment-method"]&&y(e),jQuery(s.current.mainForm.parentElement).trigger("metform/after_submit",{data:j,response:e}),function(e){var t=e.data.store&&"stripe"!==e.data.store["mf-payment-method"],n=0===e.store_entries&&e.status&&""!==e.data.redirect_to.trim();if((t||n)&&e.status&&e.data.redirect_to.trim()){var r=e.data.redirect_to;setTimeout(function(){window.location.href=r},1500)}}(e),setTimeout(function(){var t=e.data.store&&"stripe"!==e.data.store["mf-payment-method"];!e.data.hide_form&&t&&a({success:"",errors:[],form_res:0})},L)}).catch(function(e){a({errors:["Something went wrong"],form_res:1},function(){p(),f("mf-captcha-challenge","",!0),E.clearErrors("g-recaptcha-response")}),console.error(e.message),setTimeout(function(){a({errors:[],form_res:0})},L)}).finally(function(){!function(){if(a(function(e){return Ns(Ns({},e),{},{submitted:!0})}),jQuery(s.current.mainForm).find(".metform-submit-btn").attr("disabled",!1),!n.stopVerticalEffect){var e=s.current.mainForm.querySelector(".mf-main-response-wrap");Li.move(e)}setTimeout(function(){localStorage.removeItem("metform-".concat(n.formId)),jQuery(s.current.mainForm).find(".mf-toggle-select-input").each(function(){jQuery(this).removeAttr("checked")});var e=o.current;e.hasOwnProperty("QuizInfo")&&(e.formData["total-question"]=e.QuizInfo.totalQuestion,e.formData["right-answer"]=e.QuizInfo.rightAnswer,e.formData["wrong-answer"]=e.QuizInfo.wrongAnswer,e.formData["quiz-marks"]=e.QuizInfo.marks)},350)}()})}}},stripePayment:y,handleDefaultValues:h,resolveDynamicHiddenInputValue:m,resolveDynamicHiddenInputValues:v}},Ls=function(){document.querySelectorAll(".mf-input-map-location").forEach(function(e){if("undefined"!=typeof google&&"1"!==e.dataset.mfMapReady){e.dataset.mfMapReady="1";try{!function(e){var t=e.closest(".mf-input-wrapper"),n=t?t.querySelector(".mf-map-canvas"):null,r=t?t.querySelector(".mf-input-map-lat"):null,o=t?t.querySelector(".mf-input-map-lng"):null;e.addEventListener("keydown",function(e){"Enter"===e.key&&e.preventDefault()});var i=new google.maps.places.Autocomplete(e),a=t?t.querySelector(".mf-map-clear-icon"):null;if(!n)return google.maps.event.addListener(i,"place_changed",function(){e.dispatchEvent(new Event("input",{bubbles:!0}))}),void(a&&a.addEventListener("click",function(){e.value="",e.dispatchEvent(new Event("input",{bubbles:!0}))}));var s=parseFloat(n.dataset.lat)||23.8103,l=parseFloat(n.dataset.lng)||90.4125,u=parseInt(n.dataset.zoom,10)||8,c=parseInt(n.dataset.height,10)||300,f="1"===n.dataset.clickable,d="1"===n.dataset.draggable;n.style.height=c+"px";var p=new google.maps.Map(n,{center:{lat:s,lng:l},zoom:u}),h=new google.maps.Marker({position:{lat:s,lng:l},map:p,draggable:d}),m=new google.maps.Geocoder,v=new google.maps.places.PlacesService(p);function g(e,t){r&&(r.value=e,r.dispatchEvent(new Event("input",{bubbles:!0}))),o&&(o.value=t,o.dispatchEvent(new Event("input",{bubbles:!0})))}function y(e){h.setPosition(e),p.panTo(e),g(e.lat(),e.lng())}var b=/^[23456789CFGHJMPQRVWX]{4,8}\+[23456789CFGHJMPQRVWX]{2,3}\s*,?\s*/i;function w(t){m.geocode({location:t},function(t,n){if("OK"===n&&t&&t.length){var r=(t.find(function(e){return-1===e.types.indexOf("plus_code")})||t[0]).formatted_address.replace(b,"");e.value=r,e.dispatchEvent(new Event("input",{bubbles:!0}))}})}function O(){h.setPosition({lat:s,lng:l}),p.setCenter({lat:s,lng:l}),p.setZoom(u),e.value="",e.dispatchEvent(new Event("input",{bubbles:!0})),g("","")}google.maps.event.addListener(i,"place_changed",function(){var t=i.getPlace();t.geometry&&t.geometry.location?(y(t.geometry.location),p.setZoom(16),e.dispatchEvent(new Event("input",{bubbles:!0}))):e.dispatchEvent(new Event("input",{bubbles:!0}))}),f&&p.addListener("click",function(t){var n,r;t.placeId?(n=t.placeId,r=t.latLng,v.getDetails({placeId:n,fields:["name","formatted_address","geometry"]},function(t,n){if(n===google.maps.places.PlacesServiceStatus.OK&&t&&t.geometry&&t.geometry.location){y(t.geometry.location);var o=t.formatted_address||"";t.name&&0!==o.indexOf(t.name)&&(o=o?t.name+", "+o:t.name),e.value=o,e.dispatchEvent(new Event("input",{bubbles:!0}))}else r&&(y(r),w(r))})):(y(t.latLng),w(t.latLng))}),d&&h.addListener("dragend",function(e){y(e.latLng),w(e.latLng)}),a&&a.addEventListener("click",O),"undefined"!=typeof jQuery&&jQuery(document).on("metform/after_submit",O)}(e)}catch(e){console.error("mfMapLocation: failed to initialize a map field",e)}}})};window.mfMapLocation=Ls;var Is,Rs,qs=function(){var e=function(){this.parser=new c},t=e.prototype;function n(e,t){for(var n=[],r=t,o=e.length;r<o;r++)n.push(e[r]);return n}var r,o,a,s,l=(o=(r=function(e,t,n){this.prefix=(e||"")+":",this.level=t||r.NONE,this.out=n||window.console&&window.console.log.bind(window.console),this.warn=this.log.bind(this,r.WARN),this.info=this.log.bind(this,r.INFO),this.debug=this.log.bind(this,r.DEBUG)}).prototype,r.DEBUG=1,r.INFO=2,r.WARN=3,r.NONE=4,o.log=function(e,t){if(e>=this.level&&"function"==typeof this.out){var r=n(arguments,2);r=[this.prefix+t].concat(r),this.out.apply(this,r)}},r),u=function(){var e=function(e){this.obj=e||{}},t=e.prototype;return t.get=function(e){var t=this.obj[e];return void 0===t&&this.parent&&(t=this.parent.get(e)),t},t.set=function(e,t){return this.obj[e]=t,this.get(e)},e}(),c=function(){var e=new l("PARSER",l.NONE),t=new l("EMIT",l.NONE),r=function(){};function o(r){if(void 0!==r)switch(r.id){case"Expr":case"Tuple":case"Parens":return o(r.expr);case"OpenTuple":return r.expr?s(r.expr):s(r.left,r.right);case"Assign":return r.expr?o(r.expr):(i=r.left,l=o(l=r.right),function(e){return e.set(i.value,l.apply(null,arguments))});case"Sums":case"Prod":case"Power":return r.expr?o(r.expr):function(t,r,i){r=o(r),i=o(i);var a=void 0;function s(e){var t=n(arguments,1);return e(r.apply(this,t),i.apply(this,t))}switch(t.id){case"Plus":return s.bind(a,function(e,t){return+e+t});case"Minus":return s.bind(a,function(e,t){return e-t});case"Mul":return s.bind(a,function(e,t){return e*t});case"Div":return s.bind(a,function(e,t){return e/t});case"Mod":return s.bind(a,function(e,t){return e%t});case"Pow":return s.bind(a,function(e,t){return Math.pow(e,t)})}return e.warn("No emitter for %o",t),function(){}}(r.op,r.left,r.right);case"Unary":return r.expr?o(r.expr):function(t,n){switch(n=o(n),t.id){case"Plus":return function(){return n.apply(this,arguments)};case"Minus":return function(){return-n.apply(this,arguments)}}return e.warn("No emitter for %o",t),function(){}}(r.op,r.right);case"Call":return function(e,t){var n=a(t);return t=o(t),function(r){var o=r.get(e.value);if("function"==typeof o){var i=t.apply(null,arguments);return n||(i=[i]),o.apply(null,i)}r.set("runtimeError",{text:'Call to undefined "'+e.value+'"'})}}(r.token,r.args);case"Value":return o(r.token);case"Number":return function(){return r.value};case"Var":return function(e){return e.get(r.value)};default:t.warn("No emitter for %o",r)}var i,l;return function(){}}function a(e){if(void 0!==e)switch(e.id){case"Expr":case"Tuple":return a(e.expr);case"OpenTuple":return!0}return!1}function s(e,t){if(void 0===e)return function(){return[]};var n="OpenTuple"===e.id;return e=o(e),void 0===t?function(){return[e.apply(null,arguments)]}:(t=o(t),n?function(){var n=e.apply(null,arguments);return n.push(t.apply(null,arguments)),n}:function(){return[e.apply(null,arguments),t.apply(null,arguments)]})}r.prototype.parse=function(n){this.error=void 0;var r=function(e){for(var t,n,r=[],o=0;void 0!==(t=j(e,o));)t.error?n=t.error:"Space"!==t.id&&r.push(t),o=t.end;return{tokens:r,error:n}}(n),a=function(t){for(var n={tokens:t,pos:0,stack:[],scope:{}},r=0,o=t.length,i=!1;!i&&r<=o;){var a=t[r],s=n.stack[n.stack.length-1],l=(s?s.id:"(empty)")+":"+(a?a.id:"(eof)");switch(h[l]){case f:e.debug("shift %s %o",l,v(n.stack)),n=g(n,a),r++;break;case p:e.debug("reduce %s %o",l,v(n.stack)),n=b(n,a);break;case c:e.debug("done %s %o",l,v(n.stack)),i=!0;break;default:if(void 0!==a){var u={pos:a.pos,text:'Unexpected token "'+a.string+'"'};n.error=u,e.warn("%s at %d (%s)",u.text,u.pos,l)}else u={text:"Unexpected EOF",pos:n.pos+1},n.error=u,e.warn("%s (%s)",u.text,l);i=!0}}if(!n.error&&n.stack.length>1){var d=w(n,1);u={pos:d.pos||0,text:"LParen"===d.id?"Open paren":"Invalid expression"},n.error=u,e.warn("%s at %d (eof)",u.text,u.pos)}return{root:n.stack.pop(),vars:Object.keys(n.scope),error:n.error}}(r.tokens);t.debug("AST: %o",a);var s,l,m,y,O=(s=o(a.root),function(e){try{return s.apply(null,arguments)}catch(t){e.set("runtimeError",{text:""+t})}});return l={},{error:r.error||a.error,args:(m=a.vars,y={},m.forEach(function(e,t){y[e]=t}),y),eval:function(){return O(function(e,t,n){if(1===n.length&&"object"===i(n[0])){var r=n[0];t.forEach(function(t){e[t]=r[t]})}else for(var o=0,a=t.length,s=n.length;o<a&&o<s;o++)e[t[o]]=n[o];delete e.runtimeError;var l=new u(e);return l.parent=d,l}(l,a.vars,arguments))},set scope(e){l=e||{}},get scope(){return l}}};var c=0,f=1,p=2,h={};function m(e,t,n){for(var r=0,o=t.length;r<o;r++)for(var i=0,a=n.length;i<a;i++){var s=t[r]+":"+n[i];h[s]=e}}function v(t){return e.level>=l.DEBUG?t.map(function(e){return e.id}):""}function g(e,t){return y(e,0,t)}function y(e,t,n){var r=e.stack.slice(0,e.stack.length-t),o=e.pos;return n&&(r.push(n),void 0!==n.pos&&(o=n.pos)),{tokens:e.tokens,pos:o,stack:r,scope:e.scope,error:e.error}}function b(t,n){switch(w(t,0).id){case"Tuple":return function(e){return y(e,1,{id:"Expr",expr:w(e,0)})}(t);case"OpenTuple":case"Comma":return O(t,n);case"Assign":case"Sums":return function(e,t){var n=w(e,1),r=w(e,0);return void 0!==r&&"Sums"===r.id||void 0!==n&&"Eq"===n.id?x(e,["Eq"],"Assign"):O(e,t)}(t,n);case"Prod":return function(e){return x(e,["Plus","Minus"],"Sums")}(t);case"Power":case"Unary":return function(e){var t=w(e,1),n=w(e,0);return void 0!==n&&"Unary"===n.id?k(e,!1)||y(e,1,{id:"Power",expr:n}):void 0!==n&&"Power"===n.id&&void 0!==t&&"Pow"===t.id?x(e,["Pow"],"Power"):function(e){return x(e,["Mul","Div","Mod"],"Prod")}(e)}(t);case"Call":case"Parens":return k(t);case"Value":case"RParen":return function(t){var n=w(t,3),r=w(t,2),o=w(t,1),i=w(t,0),a={id:"Parens"};if("RParen"===i.id){if(void 0!==o&&"LParen"===o.id)return void 0!==r&&"Var"===r.id?y(t,3,a={id:"Call",token:r}):y(t,2,a={id:"OpenTuple"});if(void 0===r||"LParen"!==r.id){var s={pos:i.pos,text:"Unmatched paren"};return t.error=s,e.warn("%s at %d",s.text,s.pos),y(t,1)}return void 0!==n&&"Var"===n.id?y(t,4,a={id:"Call",token:n,args:o}):(a.expr=o,y(t,3,a))}return a.expr=i,y(t,1,a)}(t);case"Number":case"Var":return function(e){var t=w(e,0);return e=y(e,1,{id:"Value",token:t}),"Var"===t.id&&(e.scope[t.value]=t),e}(t)}return t}function w(e,t){return void 0===t&&(t=0),e.stack[e.stack.length-(t+1)]}function O(e,t){var n=w(e,2),r=w(e,1),o=w(e,0),i={id:"OpenTuple"};return"Comma"===o.id?y(e,2,r):void 0!==r&&"Comma"===r.id?(i.op=r,i.left=n,i.right=o,y(e,3,i)):void 0!==t&&"Comma"===t.id?(i.expr=o,y(e,1,i)):y(e,1,i={id:"Tuple",expr:o})}function x(e,t,n){var r=w(e,2),o=w(e,1),i=w(e,0),a={id:n};return void 0!==o&&-1!==t.indexOf(o.id)?(a.op=o,a.left=r,a.right=i,y(e,3,a)):(a.expr=i,y(e,1,a))}m(f,["(empty)","Plus","Minus","Mul","Div","Mod","Pow","LParen","Eq","Comma"],["Plus","Minus","LParen","Number","Var"]),m(f,["Var"],["LParen","Eq"]),m(f,["Sums"],["Plus","Minus"]),m(f,["Prod"],["Mul","Div","Mod"]),m(f,["Unary"],["Pow"]),m(f,["OpenTuple","Tuple"],["Comma"]),m(f,["LParen","Expr"],["RParen"]),m(p,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign"],["Comma"]),m(p,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod"],["Plus","Minus"]),m(p,["Number","Var","Value","RParen","Parens","Call","Unary","Power"],["Mul","Div","Mod"]),m(p,["Number","Var","Value","RParen","Parens","Call"],["Pow"]),m(p,["Number","Var","Value","RParen","Parens","Call","Unary","Power","Prod","Sums","Assign","Comma","OpenTuple","Tuple"],["RParen","(eof)"]),m(c,["(empty)","Expr"],["(eof)"]);var _=["Pow","Mul","Div","Mod","Plus","Minus","Eq","Comma","LParen"];function k(e,t){var n=w(e,2),r=w(e,1),o=w(e,0),i={id:"Unary"};return void 0===r||"Minus"!==r.id&&"Plus"!==r.id||void 0!==n&&-1===_.indexOf(n.id)?!1!==t?(i.expr=o,y(e,1,i)):void 0:(i.op=r,i.right=o,y(e,2,i))}var E=/^(?:(\s+)|((?:\d+e[-+]?\d+|\d+(?:\.\d*)?|\d*\.\d+))|(\+)|(\-)|(\*)|(\/)|(%)|(\^)|(\()|(\))|(=)|(,)|([a-zA-Z]\w*))/i,C=["Space","Number","Plus","Minus","Mul","Div","Mod","Pow","LParen","RParen","Eq","Comma","Var"];function j(t,n){var r=t.slice(n);if(0!==r.length){var o=E.exec(r);if(null===o){var i=function(e,t){for(var n=e.length;t<n;t++){var r=e.slice(t);if(0===r.length)break;if(null!==E.exec(r))break}return t}(t,n),a={pos:n,text:'Unexpected symbol "'+t.slice(n,i)+'"'};return e.warn("%s at %d",a.text,a.pos),{error:a,end:i}}for(var s=0,l=C.length;s<l;s++){var u=o[s+1];if(void 0!==u)return{id:C[s],string:u,pos:n,end:n+u.length,value:A(C[s],u)}}}}var S=Number.parseFloat||parseFloat;function A(e,t){return"Number"===e?S(t):t}return r}(),f=function(e,t){return Array.isArray(e)?function(e,t){return e.length?e.reduce(function(e,n){return"decrease_first_value"===t?Number(n)-Number(e):Number(e)+Number(n)}):NaN}(e,t):Number(e)},d=((s=new u).set("pi",Math.PI),s.set("e",Math.E),s.set("inf",Number.POSITIVE_INFINITY),a=Math,Object.getOwnPropertyNames(Math).forEach(function(e){s.set(e,a[e])}),s);return t.parse=function(e,t,n){e=(e=e.replace(/\[|\]|-/g,"__")).replace(/\s+(__|–)\s+/g," - "),t=void 0===t?{}:t;var r=/\[|\]|-/g,o={};for(var i in t)o[i.replace(r,"__")]=f(t[i],n);var a=this.parser.parse(e);return a.scope.numberFormat=function(e){if(!Number.isNaN(e))return(new Intl.NumberFormat).format(e)},a.scope.floor=function(e){return Math.floor(e)},a.scope.round=function(e){return Math.round(e)},a.scope.float=function(e,t){return t=void 0===t?0:t,e.toFixed(t)},a.scope.ceil=function(e){return Math.ceil(e)},a.eval(o)},e}();function Fs(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 Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Is=jQuery,Element.prototype.getElSettings=function(e){if("settings"in this.dataset)return JSON.parse(this.dataset.settings.replace(/("\;)/g,'"'))[e]||""},Rs=function(e,t){var n=e.find(".mf-multistep-container"),r=n.find(".elementor-section-wrap");n.find('.e-con.e-parent[data-settings*="metform_multistep_settings_title"]').addClass("e-no-lazyload"),0===r.length&&n.find('div[data-elementor-type="wp-post"]').addClass("elementor-section-wrap");var o=n.find(".e-container--column").length>0?".e-container--column":n.find(".e-con").length>0?".e-con":".elementor-top-section";if(".e-con"==o&&setTimeout(function(){n.find('div[data-elementor-type="wp-post"]').find(".e-con.active").each(function(){Is(this).parent().hasClass('div[data-elementor-type="wp-post"]')||Is(this).hasClass("e-con")&&Is(this).not('div[data-elementor-type="wp-post"] > .e-con.active').removeClass("active")})},1),n.length){var i=[],a="";".e-con"==o?(a=n.find('div[data-elementor-type="wp-post"] '.concat(o,":first-child")).parent()[0],a=jQuery(a)):".elementor-top-section"==o&&(a=n.find('div[data-elementor-type="wp-post"] '.concat(o,":first-child")).parent()),a.find("> ".concat(o)).each(function(e){var t=this.getElSettings("metform_multistep_settings_title")||"Step-"+Is(this).data("id"),r=this.getElSettings("metform_multistep_settings_icon"),o="",a="";r&&(o="svg"===r.library?'<img class="metform-step-svg-icon" src="'+r.value.url+'" alt="SVG Icon" />':r.value.length?'<i class="metform-step-icon '+r.value+'"></i>':""),0===e?(a="active",n.hasClass("mf_slide_direction_vertical")&&Is(this).parents(".elementor-section-wrap").css("height",Is(this).height())):1===e&&(a="next"),t&&i.push("<li class='metform-step-item "+a+"' id='metform-step-item-"+Is(this).attr("data-id")+"' data-value='"+Is(this).attr("data-id")+"'>"+o+'<span class="metform-step-title">'+t+"</span></li>")}),i&&(n.find(".metform-form-content .metform-form-main-wrapper > .elementor").before("<ul class='metform-steps'>"+i.join("")+"</ul>"),n.find("".concat(o,":first-of-type")).addClass("active"),n.find(".mf-progress-step-bar span").attr("data-portion",100/i.length).css("width",100/i.length+"%"))}n.find("".concat(o," .metform-btn")).attr("type","button"),n.find(".mf-input").on("keypress",function(e){13!==e.which||Is(this).hasClass("mf-textarea")||n.find(".metform-step-item.next").trigger("click")}),n.find(o).on("keydown",function(e){var t=Is(this),n=Is(":focus");if(9==e.which)if(t.hasClass("active")){var r=t.find(":focusable"),o=r.index(n),i=r.eq(o),a=r.eq(r.length-1);i.is(a)&&(i.focus(),e.preventDefault())}else n.focus()}),n.find(".metform-steps").on("click",".metform-step-item",function(){var e,r=this,i=Is(this).parents(".mf-form-wrapper").eq(0),a=i.find("".concat(o,".active .mf-input")),s=(Is("body").hasClass("rtl")?100:-100)*Is(this).index()+"%",l=(i.find(".mf-progress-step-bar").attr("data-total"),Is(this.nextElementSibling).hasClass("active")),u=[];Is(this).hasClass("prev","progress")&&Is(this).removeClass("progress"),a.each(function(){var e,t=Is(this),n=this.name;(t.hasClass("mf-input-select")||t.hasClass("mf-input-multiselect"))&&(n=(null===(e=t.find('input[type="hidden"]')[0])||void 0===e?void 0:e.name)||""),t.parents(".mf-input-repeater").length&&(n=""),n&&u.push(n)}),e=function(e){e&&(i.find("".concat(o,".active .metform-btn")).attr("type","button"),(Is(r).hasClass("prev")||Is(r).hasClass("next"))&&(Is(r).addClass("active").removeClass("next prev").prev().addClass("prev").siblings().removeClass("prev").end().end().next().addClass("next").siblings().removeClass("next").end().end().siblings().removeClass("active"),i.find("".concat(o,'[data-id="')+Is(r).data("value")+'"]').addClass("active").siblings().removeClass("active"),n.hasClass("mf_slide_direction_vertical")?(i.find(".elementor-section-wrap ".concat(o)).css({transform:"translateY("+s+")"}),i.find(".elementor-section-wrap").css("height","calc("+i.find("".concat(o,'[data-id="')+Is(r).data("value")+'"]').height()+"px)")):i.find(".elementor-section-wrap").css({transform:"translateX("+s+")"})),i.find(".mf-progress-step-bar span").css("width",(Is(r).index()+1)*i.find(".mf-progress-step-bar span").attr("data-portion")+"%"),i.find("".concat(o,".active")).find(".metform-submit-btn").length&&setTimeout(function(){i.find("".concat(o,".active")).find(".metform-submit-btn").attr("type","submit")},0))},l?e(!0):(t.doValidate(u).then(e),"yes"===Is(this).closest("div[data-previous-steps-style]").attr("data-previous-steps-style")&&setTimeout(function(){Is(r).hasClass("active")&&Is(r).prevAll().addClass("progress")},0))})};var Bs=function(e){var t=(0,o.useRef)(null),n=((0,o.useRef)(null),(0,o.useRef)({})),a=(0,o.useRef)(null),l=(0,o.useRef)(!1),u=(0,o.useRef)(null),c=(0,o.useRef)(new qs),f=(0,o.useRef)(null),d=(0,o.useRef)(null),p=r((0,o.useState)(!1),2),h=p[0],m=p[1],v=(0,o.useRef)(null),g=function(e){var t,n=JSON.parse(localStorage.getItem("metform-".concat(e.formId)))||{};return(null===(t=n)||void 0===t?void 0:t.expireTime)<new Date&&(localStorage.removeItem("metform-".concat(e.formId)),n={}),"false"===e.saveProgress&&(localStorage.removeItem("metform-".concat(e.formId)),n={}),n}(e),y=(0,o.useRef)(e.formId+"_"+Math.random().toString(36).substring(5,10)),b=r((0,o.useState)({formData:"true"===e.saveProgress?g:{},defaultData:{form_nonce:e.formNonce},recaptcha_uid:y.current,result_not_foud:"",total_result:0,form_res:0,errors:[],success:"",config:{},mobileWidget:{},formId:e.formId,answers:{},submitted:!1,resetKey:0}),2),w=b[0],O=b[1],x=(0,o.useRef)(w);x.current=w;var _=(0,o.useCallback)(function(e,t){O(function(n){var r="function"==typeof e?e(n):e,o=Vs(Vs({},n),r);return t&&setTimeout(function(){return t()},0),o})},[]),k=(0,o.useRef)(e.validation.setValue),E=(0,o.useRef)(e.validation.trigger);(0,o.useEffect)(function(){k.current=e.validation.setValue,E.current=e.validation.trigger});var C=function(){return k.current.apply(k,arguments)},j=function(){return E.current.apply(E,arguments)},S={props:e,stateRef:x,setState:_,mfRefsRef:n,formRef:t,intervalRef:a,isPaymentCompleted:l,formSubmitResponseRef:u,MfMathCalcRef:c,conditionalInputHandlerRef:d,recaptchaUid:y,setValue:C,trigger:j,proxyThisRef:v},A=function(e){var t=e.stateRef,n=e.setState,r=e.mfRefsRef,i=(0,o.useCallback)(function(e){if(null!==e){var r=e.name,o=e.value;t.current.defaultData[r]!==o&&n(function(e){return{defaultData:vs(vs({},e.defaultData),{},s({},r,o))}})}},[n,t]);return{getValue:function(e){return e in t.current.formData?t.current.formData[e]:""},getFileLabel:function(e,n){var r=t.current.formData[e];return r&&Array.isArray(r)&&r.length>0?1===r.length?r[0].name:r.map(function(e){return e.name}).join(","):cs(n)},getInputLabel:function(e,t){var n=r.current.mainForm,o=null==n?void 0:n.querySelector('[name="'+e+'"]'),i=o?o.closest(".mf-input-wrapper").querySelector("label"):null;return i?i.innerText.replace(/\*/g,"").trim():t},setDefault:i,setStateValue:function(e,t){return n({name:e,value:t})},setFormData:function(e,n){t.current.formData[e]=n}}}(S),P=ys(S),D=function(e){var t=e.props,n=e.stateRef,r=e.setState;return(0,o.useEffect)(function(){var e=n.current.formData;if(Object.keys(n.current.answers).length&&"quiz-form"===t.formType){var r=n.current.answers;e["right-answer"]=[],e["wrong-answer"]=[],e["quiz-marks"]=0,n.current.QuizInfo={totalQuestion:0,rightAnswer:[],wrongAnswer:[],marks:0},Object.keys(r).forEach(function(t){var n=r[t],o=n.answer,a=n.correctPoint,s=n.incorrectPoint;"string"==typeof o&&""===o||"object"===i(o)&&0===o.length?(e["right-answer"]=[].concat(ee(e["right-answer"]),[t]),e["quiz-marks"]=e["quiz-marks"]+parseFloat(a)):(e["wrong-answer"]=[].concat(ee(e["wrong-answer"]),[t]),e["quiz-marks"]=e["quiz-marks"]-parseFloat(s))}),e["total-question"]=Object.keys(r).length,n.current.QuizInfo.rightAnswer=e["right-answer"],n.current.QuizInfo.wrongAnswer=e["wrong-answer"],n.current.QuizInfo.marks=e["quiz-marks"],n.current.QuizInfo.totalQuestion=Object.keys(r).length}},[]),{handleIncorrectAnswer:function(e,t,n,r,o,i){var a,s;if(!(null===(a=e.formData["wrong-answer"])||void 0===a?void 0:a.includes(n))){var l;t["wrong-answer"]=t["wrong-answer"]?[].concat(ee(t["wrong-answer"]),[n]):[n];var u=!(null!==(l=t["right-answer"])&&void 0!==l&&l.includes(n));t["quiz-marks"]=(t["quiz-marks"]?t["quiz-marks"]:0)-(u&&(i||0))}if(null===(s=t["right-answer"])||void 0===s?void 0:s.includes(n)){var c=t["right-answer"].indexOf(n);t["quiz-marks"]=t["quiz-marks"]-o,t["quiz-marks"]=t["quiz-marks"]-(i||0),t["right-answer"].splice(c,1)}return t},handleCorrectAnswer:function(e,t,n,o){var i,a;e["quiz-marks"]=(e["quiz-marks"]?e["quiz-marks"]:0)+n,e["quiz-marks"]=(e["quiz-marks"]?e["quiz-marks"]:0)+(o||0),e["right-answer"]=e["right-answer"]?[].concat(ee(e["right-answer"]),[t]):[t];var s=null===(i=e["wrong-answer"])||void 0===i?void 0:i.indexOf(t);null===(a=e["wrong-answer"])||void 0===a||a.splice(s,1),r({formData:e})}}}(S),N=function(e){var t=e.props,n=e.stateRef;return(0,o.useEffect)(function(){setTimeout(function(){if(!elementorFrontend.isEditMode()&&"true"===t.saveProgress){var e=n.current.formData;!function(e){var t=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,n=function(){var n,o=e[r];if("string"!=typeof o||!t.test(o.split(",")[1]))return 0;var i=null===(n=document.getElementsByName(r)[0])||void 0===n?void 0:n.parentElement.getElementsByTagName("canvas")[0];if(!i)return 0;var a=i.getContext("2d"),s=new Image;s.onload=function(){a.drawImage(s,0,0)},s.src=o};for(var r in e)n()}(e),function(e){var t,n=document.getElementsByClassName("mf-input-repeater")[0],r=null===(t=document.getElementsByClassName("mf-input-repeater-items attr-items")[0])||void 0===t?void 0:t.outerHTML,o=(new DOMParser).parseFromString(r,"text/html"),i=null,a=1;for(var s in e){var l=s.match(/\[[^\]]*\]/g);if(l&&2===l.length){var u=s.match(/\d+/)[0];if(void 0===document.getElementsByName(s)[0])if(i!==u){var c,f=o.getElementsByClassName("mf-input-repeater-items")[0];f.dataset.index=u,f.removeAttribute("style"),o.getElementsByClassName("mf-input attr-form-control")[0].name=s;var d=null===(c=o.getElementsByClassName("mf-input-repeater-items")[0])||void 0===c?void 0:c.outerHTML;n.insertAdjacentHTML("beforeend",d),document.getElementsByName(s)[0].value=e[s],i=u}else{var p=document.querySelector('[data-index="'.concat(u,'"]')).querySelectorAll(".mf-input");a===p.length&&(a=1),a<p.length&&(p[a].name=s,p[a].value=e[s],a++)}else document.getElementsByName(s)[0].value=e[s]}}}(e)}},10)},[]),{handleSaveProgress:function(e,n){if(!elementorFrontend.isEditMode()&&"true"===t.saveProgress&&function(e){if(!e)return!1;var t=e.className.includes("mf-captcha-input")||e.className.includes("g-recaptcha-response")||e.className.includes("g-recaptcha-response-v3"),n="password"===e.type||"file"===e.type,r=!!e.closest(".mf-credit-card-wrapper");return!(t||n||r)}(document.getElementsByName(e)[0])){var r="metform-".concat(t.formId);if(null===localStorage.getItem(r)){var o=new Date;o.setMinutes(o.getMinutes()+120),localStorage.setItem(r,JSON.stringify({expireTime:o.getTime()}))}setTimeout(function(){var t=document.getElementsByClassName("mf-input-calculation")[0],o=JSON.parse(localStorage.getItem(r));for(var i in null!=t&&t.value&&(o[t.name]=t.value),o[e]=n,o)""===o[i]&&delete o[i];localStorage.setItem(r,JSON.stringify(o))},0)}}}}(S),M=function(e,t){var n=e.props,r=e.stateRef,o=e.setState,i=e.setValue,a=e.trigger,l=t.handleCalculations,u=t.handleSaveProgress,c=t.handleIncorrectAnswer,f=t.handleCorrectAnswer,d=function(e,t){if(!e)return!1;if("onClickForRepeter"===t){var n=r.current.formData,o=e.target;if(void 0!==o.className&&-1!==o.className.indexOf("mf-repeater-checkbox")){var i=o.name,a=[],s=!1;document.querySelectorAll('input[name="'.concat(i,'"]')).forEach(function(e){s||(s=e.name),e.checked&&a.push(e.value)}),n[s]&&a.length&&(e.target={name:s,value:a,type:"checkbox",from_repeter:"from_repeter"},p(e))}}},p=function(e){var t=e.target,s=t.name,p=t.value,h=t.type,m=ws({},r.current.formData);m[s]="number"===h&&"mobile"!==h?""===p?"":Number(p):p,l(e,m),o({formData:m}),i(s,Array.isArray(m[s])||"checkbox"!==h||e.target.checked?m[s]:"");var v=!0;void 0!==e.target.className&&-1!==e.target.className.indexOf("mf-repeater-type-simple")&&(v=!1,void 0===e.target.from_repeter&&d(e,"onClickForRepeter")),"from_repeter"===e.target.from_repeter&&(v=!1),v&&a(s),u(s,p),function(e,t,o,i){if("quiz-form"===n.formType&&Object.keys(r.current.answers).includes(e)&&["multiselect","checkbox","text","radio","select"].includes(t)){var a=r.current.answers[e],s=a.answer,l=a.correctPoint,u=a.incorrectPoint,d=parseFloat(l),p=parseFloat(u),h=c(r.current,i,e,o,d,p),m=!1;"multiselect"===t||"checkbox"===t?m=ds(o,s):"text"===t||"radio"===t?m=(null==o?void 0:o.toLowerCase())===s.toLowerCase():"select"===t&&(m=o===s),m&&f(h,e,d,p)}}(s,h,p,m)};return{handleChange:p,handleDateTime:function(e){var t=e.target,n=t.name,r=t.value;i(n,r,!0),p(e)},handleSelect:function(e,t){var n=e.value;e.target={name:t,value:n,type:"select"},i(t,n,!0),p(e)},handleRadioDefault:function(e){if(e&&e.dataset.checked){var t=e.name;t in r.current.formData||(e.setAttribute("checked",!0),p({target:{name:t,value:e.value}}))}},handleCheckbox:function(e,t){if(!e)return!1;var n=r.current.formData,o=!1;if("onLoad"===t){var i=e.querySelectorAll(".mf-checkbox-input"),a=[];i.forEach(function(e){o||(o=e.name),e.checked&&a.push(e.value)}),!n[o]&&a.length&&p({target:{name:o,value:a}})}if("onClick"===t){o||(o=e.name),n[o]||(n[o]=[]);var s=ee(n[o]);if(e.checked&&s.push(e.value),!e.checked){var l=s.indexOf(e.value);l>-1&&s.splice(l,1)}p({target:{name:o,value:s,type:"checkbox"}})}},handleCheckboxForRepeter:d,handleSwitch:function(e){e.target.value=e.target.nextElementSibling.getAttribute("data-disable"),e.target.checked&&(e.target.value=e.target.nextElementSibling.getAttribute("data-enable")),p(e)},handleOptin:function(e){e.target.checked||(e.target.value="Declined"),e.target.checked&&(e.target.value="Accepted"),p(e)},handleImagePreview:function(e){var t=e.target,n=e.clientX,r=e.clientY,o=e.type,i=t.nextElementSibling;if(i){var a=t.closest(".mf-image-select"),s=a.getBoundingClientRect(),l=r-s.top,u=n-s.left;if(t.closest(".mf-multistep-container")&&(r=l+50,n=u+30),"mouseleave"===o)return i.style.opacity="",void(i.style.visibility="hidden");i.style.opacity||(i.style.opacity="1",i.style.visibility="visible"),i.offsetHeight+r>window.innerHeight||r+2*a.clientHeight>window.innerHeight?(i.className="mf-select-hover-image mf-preview-top",r-=55):i.className="mf-select-hover-image",i.style.top=r+30+"px",i.style.left=n-28+"px"}},handleSignature:function(e){var t="function"==typeof e.isEmpty&&e.isEmpty()?"":e.toDataURL();e.target={name:e.props.name,value:t},p(e),i(e.target.name,e.target.value,!0)},handleEditorState:function(e){var t=e.name,n=e.value;p({target:{name:t,value:n}}),i(t,n,!0)},handleRating:function(e){var t=e.target,n=t.name,o=t.value,i=n in r.current.formData?r.current.formData[n]:"",a={target:{name:n,value:o}};p(o===i?ws(ws({},a),{},{target:ws(ws({},a.target),{},{value:""})}):a)},colorChange:function(e,t){return p({target:{name:t,value:e.hex}})},colorChangeInput:function(e){return p({target:{name:e.target.name,value:e.target.value}})},multiSelectChange:function(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return}var n=[];if(null!==e)try{e.filter(function(e){return n.push(e.value?e.value:e.mf_input_option_value)})}catch(e){return}p({target:{name:t,value:n,type:"multiselect"}})},handleRangeChange:function(e,t){p({target:{name:t,value:Number(e.toFixed(2)),type:"range"}}),n.validation.setValue(t,Number(e.toFixed(2)))},handleMultipileRangeChange:function(e,t){p({target:{name:t,value:[e.min,e.max],calc_behavior:"decrease_first_value"}})},handleOnChangePhoneInput:function(e,t,n){var r="";n&&e!==n.dialCode&&(r=e),e&&(e=e.replace(/[^\d]/g,"")),o(function(n){return{mobileWidget:ws(ws({},n.mobileWidget),{},s({},t,e))}}),p({target:{name:t,value:r,type:"tel"}})}}}(S,{handleCalculations:P.handleCalculations,handleSaveProgress:N.handleSaveProgress,handleIncorrectAnswer:D.handleIncorrectAnswer,handleCorrectAnswer:D.handleCorrectAnswer}),T=function(e,t){var n=e.setState,r=e.mfRefsRef,i=e.intervalRef,a=e.recaptchaUid,s=t.getValue,l=t.handleChange,u=function(){n(function(e){return{captcha_img:e.captcha_path+Date.now()}})},c=function(e){"reset"===e&&(e="",grecaptcha.reset()),l({target:{name:"g-recaptcha-response",value:(e=e||"")||""}})};return(0,o.useEffect)(function(){window["handleReCAPTCHA_"+a.current]=c},[]),(0,o.useEffect)(function(){var e=window.grecaptcha,t=r.current.mainForm,n=null==t?void 0:t.querySelectorAll(".recaptcha_site_key_v3");return(null==n?void 0:n.length)>0&&(i.current=setInterval(function(){n.forEach(function(t){e.ready(function(){e.execute(n[0].dataset.sitekey,{action:""}).then(function(e){t.querySelector(".g-recaptcha-response-v3").value=e})})})},108e3)),function(){clearInterval(i.current)}},[]),{refreshCaptcha:u,renderReCaptcha:function(e,t){var n=window.grecaptcha,r=document.querySelectorAll(".g-recaptcha"),o=document.querySelectorAll(".recaptcha_site_key_v3");r.length?r.forEach(function(e){n.render(e,{sitekey:e.dataset.sitekey})}):o.length&&document.querySelectorAll(".g-recaptcha-response-v3").forEach(function(e){n.ready(function(){n.execute(o[0].dataset.sitekey,{action:"submit"}).then(function(t){e.value=t})})})},resetReCAPTCHA:function(){s("mf-captcha-challenge")&&u(),s("g-recaptcha-response")&&c("reset")},handleReCAPTCHA:c}}(S,{getValue:A.getValue,handleChange:M.handleChange}),L=function(e){var t=e.props,n=e.stateRef,r=function(e){var t=e.closest(".elementor-element");return!!t&&"true"===t.getAttribute("mf-condition-hidden")},o=function(e){var t=n.current.formData[e.name]||[];return Array.isArray(t)&&t.length>0?t:e.files.length>0?Array.from(e.files):[]};return{activateValidation:function(e,i,a){var s,l=n.current.formData,u=t.validation.register,c=e.type,f=e.required,d=e.message,p={};if(i&&(i.__mfRequiredRule=!!f&&d),i&&f&&r(i)?p.required=!1:((c&&"none"!==c||f)&&(p.required=!!f&&d),null!=i&&null!==(s=i.classList)&&void 0!==s&&s.contains("mf-credit-card-number")&&function(e,t,n,r){var o=t[n.name]&&"amex"===t[n.name+"--type"];e.minLength=e.maxLength={value:o?17:19,message:r}}(p,l,i,d),"credit_card_date"===e.inputType&&function(e,t,n){var r=t.minLength,o=t.maxLength;r&&(e.min={value:r,message:n}),o&&(e.max={value:o,message:n})}(p,e,d),i&&"file"===i.type&&function(e,t,n,i){var a=t.file_types,s=t.size_limit,l={};t.required&&(e.required=!1,l.required=function(){return!!r(n)||o(n).length>0||i}),l.fileType=function(){if(r(n))return!0;var e=o(n);if(0===e.length)return!0;var i,s=_s(e);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=l.name.substr(l.name.lastIndexOf(".")+1).toLowerCase();if(a.length>0&&!a.includes("."+u))return t.type_message}}catch(e){s.e(e)}finally{s.f()}return!0},l.fileSize=function(){if(r(n))return!0;var e=o(n);if(0===e.length)return!0;if(-1!==s){var i,a=_s(e);try{for(a.s();!(i=a.n()).done;)if(i.value.size>1024*parseInt(s))return t.limit_message}catch(e){a.e(e)}finally{a.f()}}return!0},e.validate=xs(xs({},e.validate),l)}(p,e,i,d),i&&function(e,t,n){"email"===t.type?e.pattern={value:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@(([^<>()\[\]\\.,;:\s@"]+\.)+[^<>()\[\]\\.,;:\s@"]{2,})$/i,message:n.emailMessage}:"url"===t.type&&(e.pattern={value:/^(https?:\/\/){1}([0-9A-Za-z-\.@:%_\+~#=]+)+((\.[[a-zA-Z]{2,3})+)(\/(.)*)?(\\?(.)*)?/i,message:n.urlMessage})}(p,i,e),function(e,t,n){var r=t.type,o=t.minLength,i=t.maxLength,a=t.message,s=t.expression,l=n&&"number"===n.type?"min":"minLength",u=n&&"number"===n.type?"max":"maxLength";if("by_character_length"===r){var c=Object.keys(mf).length>0?mf:{},f=c.maxMsg1,d=c.minMsg1,p=c.Msg2;o&&(e[l]={value:o,message:"".concat(d+o+p)}),i&&(e[u]={value:i,message:"".concat(f+i+p)})}else if("by_range"===r){var h=Object.keys(mf).length>0?mf:{},m=h.minNum,v=h.maxNum;o&&(e[l]={value:o,message:"".concat(m+o)}),i&&(e[u]={value:i,message:"".concat(v+i)})}else"by_word_length"===r?e.validate={wordLength:function(e){return ps(e,o,i,a)}}:"by_expresssion_based"===r&&(e.validate={expression:function(e){return hs(e,s,a)}})}(p,e,i)),"function"==typeof a&&a(),!i)return p;var h=u(i.name,p).ref;i.__mfRegistered||(i.__mfRegistered=!0,h(i))}}}(S),I=function(e,t){var n=e.stateRef,r=e.setState,o=e.setValue,i=t.handleChange,a=function(e,t){var n=t+"--type",o=function(e){return e.startsWith("34")||e.startsWith("37")?"amex":e.startsWith("4")?"visa":e.startsWith("5")?"master":e.startsWith("6")?"discover":"custom"}(e);r(function(e){return{formData:Cs(Cs({},e.formData),{},s({},n,o))}})};return{handleCardNumber:function(e){var t=e.target,r=t.name,s=t.value,l=n.current.formData,u=l[r+"--type"],c=s.replace(/\s+/g,"").replace(/[^0-9]/gi,""),f="amex"===u?5:4,d="amex"===u?15:16,p=l[r];if(/^[0-9]*$/.test(c)&&c.length<=d){var h=c.match(/\d{4,16}/g),m=function(e,t){for(var n=[],r=0;r<e.length;r+=t)n.push(e.substring(r,r+t));return n}(h&&h[0]||"",f);p=m.length?m.join(" ").trim():c}o(r,p,!0),i(e),e.target.value=p,a(c,e.target.name)},handleCardType:a,handleCardMonth:function(e){var t=e.target,n=t.name,r=t.value,a=parseInt(r.replace(/-/g,""))||"",s=parseInt(a.toString().substring(0,1))||"";o(n,1<s&&s<10?s:a>12?12:a,!0),i(e)},handleSubVal:function(e,t){var n=e.target,r=n.name,a=n.value,s=parseInt(a.replace(/-/g,"").substring(0,t))||"";o(r,s,!0),e.target.value=s,i(e)}}}(S,{handleChange:M.handleChange}),R=function(e){var t=e.props,n=e.stateRef,r=e.setState,o=e.trigger;return{handleFileUpload:function(e){var i,a=e.target.name,l=Array.from(e.target.files),u=e.target.hasAttribute("multiple"),c=n.current.formData,f=Array.isArray(c[a])?c[a]:[];if(u){var d=function(e,t){return e.filter(function(e){return!t.some(function(t){return t.name===e.name&&t.size===e.size})})}(l,f);d.length<l.length&&alert("Some files were already uploaded and have been skipped."),i=f.concat(d)}else i=l;r(function(e){return{formData:Ss(Ss({},e.formData),{},s({},a,i))}},function(){o&&o(a),t.validation.clearErrors&&t.validation.clearErrors(a)})},removeUploadedFile:function(e,i){var a=n.current.formData;if(a[e]){var l=Array.from(a[e]);l.splice(i,1);var u=document.querySelector('input[name="'.concat(e,'"]'));u&&"file"===u.type&&(u.value=""),r(function(t){return{formData:Ss(Ss({},t.formData),{},s({},e,l))}},function(){o&&o(e),t.validation.clearErrors&&t.validation.clearErrors(e)})}}}}(S),q=As(S),F=function(e,t){var n=e.props,r=e.stateRef,o=e.setState,i=t.handleCalculations,a=function(){for(var e,t=window.location.search,n={},r=/[?&]?([^=]+)=([^&]*)/g;e=r.exec(t);)n[decodeURIComponent(e[1])]=decodeURIComponent(e[2]);return n};return{getParams:a,setParamValueState:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r.current.formData),t=a(),l=n.widgets,u=function(n){var r=t[n].split(","),a=function(){var a=l[s].el,u=jQuery(a),c=u.data().settings,f=c.mf_input_list,d=[],p=function(e){return u.find(e).length>0},h=function(t){e[n]=t};if(c.mf_input_name===n&&"yes"===c.mf_input_get_params_enable){if(f&&f.length>0){for(var m=0;m<f.length;m++)d.push(f[m].mf_input_option_value||f[m].value);var v=function(e,t){return e.filter(function(e){return e.length>0&&t.length>0&&t.includes(e)})}(r,d),g=function(){v.length>0&&h(ee(new Set(v)))};if((p(".mf-input-select")||p("input.mf-radio-input:radio")||p("input.mf-image-select-input:radio")||p("input.mf-toggle-select-input:radio"))&&(v[0]&&h(v[0]),p("input.mf-toggle-select-input:radio"))){var y=v[0];y&&u.find("input.mf-toggle-select-input:radio").each(function(){jQuery(this).prop("checked",!1),y.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)})}(p("input.mf-checkbox-input:checkbox")||p("input.mf-image-select-input:checkbox")||p("input.mf-toggle-select-input:checkbox"))&&(g(),v.length>0&&(u.find("input.mf-checkbox-input:checkbox").each(function(){jQuery(this).prop("checked",!1),r.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)}),u.find("input.mf-toggle-select-input:checkbox").each(function(){jQuery(this).prop("checked",!1),r.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)}))),p(".mf-input-multiselect")&&g()}else{var b=r[0];if(p("input[type=email]")&&(h(b),u.find("input[type=email]").val(b)),p("input[type=checkbox]")&&"on"===b&&(h(b),u.find("input[type=checkbox]")[0].checked=!0),p("input[type=number]")){h(Number(b)),u.find("input[type=number]").val(Number(b));var w=u.find("input[type=number]")[0];w&&(w.addEventListener("click",function(t){i(t,e)}),w.click())}if(p(".range-slider")){var O=c.mf_input_min_length_range;c.mf_input_max_length_range>=Number(b)&&O<=Number(b)&&h(Number(b))}if(p(".mf-ratings")&&c.mf_input_rating_number>=Number(b)&&0<=Number(b)&&h(Number(b)),p("input.mf-input-switch-box:checkbox")){var x=c.mf_swtich_enable_text;x===b&&(h(x),u.find("input.mf-input-switch-box:checkbox")[0].checked=!0)}if(p("input.mf-payment-method-input:radio")){var _=["paypal","stripe"],k=r.filter(function(e){return e.length>0&&_.includes(e)})[0];k&&h(k),k&&u.find("input.mf-payment-method-input:radio").each(function(){jQuery(this).prop("checked",!1),r.includes(jQuery(this).val())&&jQuery(this).prop("checked",!0)})}if(p("input[type=text]")||p("input[type=password]")||p("input[type=tel")||p("textarea.mf-input")||p("input[type=url]")){var E=t[n];p("input.flatpickr-input")?(b.match(/^[0-3]?[0-9].[0-3]?[0-9].(?:[0-9]{2})?[0-9]{2}$/)||b.match(/^(?:[0-9]{2})?[0-9]{2}.[0-3]?[0-9].[0-3]?[0-9]$/))&&h(E):(h(E),u.find("input[type=text").val(E),u.find("input[type=password").val(E),u.find("input[type=tel").val(E),u.find("textarea.mf-input").val(E),u.find("input[type=url]").val(E))}p("input.mf-date-range")&&(h(b),u.find("input.mf-date-range").val(b))}o({formData:e})}};for(var s in l)a()};for(var c in t)u(c)}}}(S,{handleCalculations:P.handleCalculations}),V=function(e){var t=e.mfRefsRef,n=e.trigger;return{handleMultiStepBtns:function(e){var r,o=(r=e.currentTarget,jQuery(r).parents(".elementor-top-section.active").length>0?".elementor-top-section":jQuery(r).parents(".e-container--column.active").length>0?".e-container--column":".e-con"),i=jQuery(e.currentTarget).parents("".concat(o,".active")),a=e.currentTarget.dataset.direction,s=function(e,t){var n,r,o=null===(n=e.prev()[0])||void 0===n?void 0:n.dataset,i=null===(r=e.next()[0])||void 0===r?void 0:r.dataset;return(("next"===t?i:o)||{}).id}(i,a);if(!s)return!1;var l=jQuery(e.currentTarget).parents(".metform-form-content").find('.metform-step-item[data-value="'.concat(s,'"]'));if(jQuery(e.currentTarget).parents(".mf-scroll-top-yes").length&&Li.move(t.current.mainForm),"next"===a){var u=function(e){var t=[];return e.find(".mf-input").each(function(){var e,n=jQuery(this),r=this.name;(n.hasClass("mf-input-select")||n.hasClass("mf-input-multiselect"))&&(r=(null===(e=n.find('input[type="hidden"]')[0])||void 0===e?void 0:e.name)||""),n.parents(".mf-input-repeater").length&&(r=""),r&&t.push(r)}),t}(i);n(u).then(function(e){e&&l.trigger("click")})}else l.trigger("click")}}}(S),B=Ts(S,{resetReCAPTCHA:T.resetReCAPTCHA});(0,o.useEffect)(function(){var t=e.templateEl.innerHTML,n=us([["‘","'"],["’","'"],["“",'"'],["”",'"'],["–","--"]],t);f.current=new Function("parent","props","state","validation","register","setValue","html",n),e.templateEl.remove(),m(!0)},[]),(0,o.useEffect)(function(){var e=function(e){var t,n=null===(t=jQuery(e.target).parent().siblings(".mf-input-repeater-content").find(".mf-repeater-field")[0])||void 0===t?void 0:t.name;n&&void 0!==x.current.formData[n]&&_(function(e){var t=Vs({},e.formData);return delete t[n],{formData:t}})};return jQuery(document).on("click",".remove-btn",e),function(){return jQuery(document).off("click",".remove-btn",e)}},[]),(0,o.useEffect)(function(){var t=e.validation.formState.isValid;if(q.handleConditionals(),!t&&!e.stopVerticalEffect){var r=n.current.mainForm,o=null==r?void 0:r.querySelector(".metform-submit-btn");if(o){var i=function(){var e,t=null==r?void 0:r.querySelector(".mf-error-message");Li.move(null==t||null===(e=t.parentElement)||void 0===e?void 0:e.parentElement)};return o.addEventListener("click",i),function(){return o.removeEventListener("click",i)}}}}),(0,o.useEffect)(function(){if(h){var t=n.current.mainForm,r=t?t.querySelectorAll(".elementor-element"):[],o=x.current.formData;window.MetFormPaymentHold&&"function"==typeof window.MetFormPaymentHold.checkPayPalReturn&&window.MetFormPaymentHold.checkPayPalReturn.call(H);var i=null==t?void 0:t.getElementsByTagName("input");for(var a in i)"email"===i[a].type&&""!==i[a].value&&A.setDefault(i[a]);r.forEach(function(t){var n=t.getAttribute("data-element_type"),r=t.getAttribute("data-widget_type"),o=null===r?n:r;t.dataset&&t.dataset.settings&&(t.dataset.settings=t.dataset.settings.replace(/"/g,'"'));var i=window.elementorFrontend.hooks;if(i?i.doAction("frontend/element_ready/"+o,jQuery(t),jQuery):jQuery(window).on("elementor/frontend/init",function(){(i=window.elementorFrontend.hooks).doAction("frontend/element_ready/"+o,jQuery(t),jQuery)}),t.className.search("elementor-widget-mf-")>0&&t.dataset.settings){var a=JSON.parse(t.dataset.settings),s=a.mf_input_name+"-"+t.getAttribute("data-id");e.widgets[s]={el:t,settings:a},a.mf_conditional_logic_form_enable&&e.conditionalRefs.push(s)}}),window.onload=function(e){T.renderReCaptcha(t,e)},q.handleConditionals();try{d.current=function(e){var t=null==e?void 0:e.target;t&&t.name&&(t.classList&&t.classList.contains("metform-submit-btn")||q.handleConditionals(e))},null==t||t.addEventListener("input",d.current,!0),null==t||t.addEventListener("change",d.current,!0)}catch(e){}for(var s in e.formId&&fetch(mf.restURI+e.formId,{method:"POST",headers:{"X-WP-Nonce":e.wpNonce}}),Ls(),Rs(jQuery(t).parents(".mf-multistep-container").parent(),{doValidate:j}),jQuery(t).on("change asRange::change",".mf-repeater-field, .mf-repater-range-input, .mf-repeater-checkbox",M.handleChange),jQuery(t).trigger("metform/after_form_load",o),o)C(s,o[s]);return F.setParamValueState(),function(){try{d.current&&n.current.mainForm&&(n.current.mainForm.removeEventListener("input",d.current,!0),n.current.mainForm.removeEventListener("change",d.current,!0))}catch(e){}}}},[h]);var H=Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs(Vs({get state(){return x.current},get props(){return e},get mfRefs(){return n.current},get formRef(){return t},get formContainerRef(){return $},isPaymentCompleted:l,formSubmitResponse:u,MfMathCalc:c.current,setState:_,setValue:C,trigger:j},M),q),P),A),{},{decodeEntities:cs,isNumeric:fs},I),N),{},{compareArrays:ds},D),R),V),T),L),{},{handleWordValidate:ps,handleExpressionValidate:hs},F),B),{},{replaceWith:us});v.current=H;var U=H,z=e.validation,K=z.register,W=z.setValue,Y=htm.bind(o.createElement),$=(0,o.useCallback)(function(e){e&&(n.current.mainForm=e,t.current=e)},[]);return f.current?(0,eo.jsx)(eo.Fragment,{children:f.current(U,e,x.current,z,K,W,Y)}):null},Hs=function(e){var t=r(e.find(".mf-form-wrapper"),1)[0];if(t){var n=t.dataset,i=n.action,a=n.wpNonce,s=n.formNonce,l=n.formId,u=n.stopVerticalEffect,c=n.saveProgress,f=n.formType,d=n.quizSummery,p=r(e.find("script.mf-template"),1)[0];p&&(0,o.render)((0,o.createElement)(ss(Bs),{formId:l,templateEl:p,action:i,wpNonce:a,formNonce:s,saveProgress:c,formType:f,quizSummery:d,widgets:{},conditionalRefs:[],stopVerticalEffect:u,widgetSettings:e.data("settings")||{},Select:Zr,InputColor:ki,Flatpickr:U,InputRange:_o,ReactPhoneInput:Io,SignaturePad:Si,moveTo:Li,ResponseDummyMarkup:Di,SubmitResponseMarkup:Ni,SummaryWidget:Mi,DateWidget:Ai,TextEditor:ro}),t)}};jQuery(window).on("elementor/frontend/init",function(){var e=["metform","shortcode","text-editor"];"metform-form"!==mf.postType||elementorFrontend.isEditMode()?("metform-form"===mf.postType&&elementorFrontend.isEditMode()&&(e=["mf-date","mf-time","mf-select","mf-multi-select","mf-range","mf-file-upload","mf-mobile","mf-image-select","mf-map-location","mf-color-picker","mf-signature","mf-text-editor"]),e.forEach(function(e){elementorFrontend.hooks.addAction("frontend/element_ready/"+e+".default",Hs)})):Hs(elementorFrontend.elements.$body)}).on("load",function(){document.querySelectorAll(".mf-form-shortcode").forEach(function(e){Hs(jQuery(e))})})}()}();